diff --git a/geonode_mapstore_client/client/js/plugins.js b/geonode_mapstore_client/client/js/plugins.js index 46e5db9b07..068121e514 100644 --- a/geonode_mapstore_client/client/js/plugins.js +++ b/geonode_mapstore_client/client/js/plugins.js @@ -47,6 +47,7 @@ import SearchPlugin from '@mapstore/framework/plugins/Search'; import SearchServicesConfigPlugin from '@mapstore/framework/plugins/SearchServicesConfig'; import SwipePlugin from '@mapstore/framework/plugins/Swipe'; import LocatePlugin from '@mapstore/framework/plugins/Locate'; +import LayerDownloadPlugin from '@mapstore/framework/plugins/LayerDownload'; import SavePlugin from '@js/plugins/Save'; import SaveAsPlugin from '@js/plugins/SaveAs'; @@ -103,6 +104,7 @@ const pluginsDefinition = { SwipePlugin, LocatePlugin, SharePlugin, + LayerDownloadPlugin, AddReducersAndEpics: { reducers: { security, diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index d9c5a0a759..1fa0a1d8bd 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v2.0.9-de095c4f91682e9cbc904b6cba3ade06790c4a24 \ No newline at end of file +geonode-mapstore-client-v2.0.9-56b2b015edc595edb8d3da7a1fff1bc823c7b5ee \ No newline at end of file diff --git a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js index 891326afaa..c2c52d3760 100644 --- a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js +++ b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js @@ -138,6 +138,7 @@ var MS2_BASE_PLUGINS = { }, "compact": true } - }, "Playback" + }, "Playback", + { "name": "LayerDownload" } ] } \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/0.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/0.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/0.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/0.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/10.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/10.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/10.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/10.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/11.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/11.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/11.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/11.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/12.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/12.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/12.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/12.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/13.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/13.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/13.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/13.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/14.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/14.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/14.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/14.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/15.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/15.16eb7e71311ee8695d11.chunk.js similarity index 76% rename from geonode_mapstore_client/static/mapstore/dist/15.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/15.16eb7e71311ee8695d11.chunk.js index 345c4a89ed..97c896ac84 100644 --- a/geonode_mapstore_client/static/mapstore/dist/15.849ba3b532d52b2a2861.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/15.16eb7e71311ee8695d11.chunk.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[15,6,7,"plugins/geostory-navigation-plugin~plugins/share-plugin",10,"vendors~plugins/notifications-plugin"],{"./MapStore2/node_modules/lodash/_assignMergeValue.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/eq.js");e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},"./MapStore2/node_modules/lodash/_baseExtremum.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isSymbol.js");e.exports=function(e,t,n){for(var o=-1,i=e.length;++ot}},"./MapStore2/node_modules/lodash/_baseLt.js":function(e,t){e.exports=function(e,t){return et||a&&s&&u&&!l&&!c||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!c&&e=l?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},"./MapStore2/node_modules/lodash/_createRange.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseRange.js"),o=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),i=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t=t||n<0||g&&e-h>=c}function x(){var e=o();if(w(e))return _(e);p=setTimeout(x,function(e){var n=t-(e-f);return g?s(n,c-(e-h)):n}(e))}function _(e){return p=void 0,y&&l?b(e):(l=u=void 0,d)}function O(){var e=o(),n=w(e);if(l=arguments,u=this,f=e,n){if(void 0===p)return v(f);if(g)return clearTimeout(p),p=setTimeout(x,t),b(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=u=p=void 0},O.flush=function(){return void 0===p?d:_(o())},O}},"./MapStore2/node_modules/lodash/each.js":function(e,t,n){e.exports=n("./MapStore2/node_modules/lodash/forEach.js")},"./MapStore2/node_modules/lodash/filter.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseFilter.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},"./MapStore2/node_modules/lodash/forEach.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayEach.js"),o=n("./MapStore2/node_modules/lodash/_baseEach.js"),i=n("./MapStore2/node_modules/lodash/_castFunction.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},"./MapStore2/node_modules/lodash/forOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),o=n("./MapStore2/node_modules/lodash/_castFunction.js");e.exports=function(e,t){return e&&r(e,o(t))}},"./MapStore2/node_modules/lodash/includes.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js"),o=n("./MapStore2/node_modules/lodash/isArrayLike.js"),i=n("./MapStore2/node_modules/lodash/isString.js"),a=n("./MapStore2/node_modules/lodash/toInteger.js"),s=n("./MapStore2/node_modules/lodash/values.js"),l=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var c=e.length;return n<0&&(n=l(c+n,0)),i(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},"./MapStore2/node_modules/lodash/isNaN.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isNumber.js");e.exports=function(e){return r(e)&&e!=+e}},"./MapStore2/node_modules/lodash/isUndefined.js":function(e,t){e.exports=function(e){return void 0===e}},"./MapStore2/node_modules/lodash/map.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_baseMap.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},"./MapStore2/node_modules/lodash/maxBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseExtremum.js"),o=n("./MapStore2/node_modules/lodash/_baseGt.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},"./MapStore2/node_modules/lodash/merge.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n){r(e,t,n)}));e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/min.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseExtremum.js"),o=n("./MapStore2/node_modules/lodash/_baseLt.js"),i=n("./MapStore2/node_modules/lodash/identity.js");e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},"./MapStore2/node_modules/lodash/negate.js":function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/node_modules/lodash/omit.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseClone.js"),i=n("./MapStore2/node_modules/lodash/_baseUnset.js"),a=n("./MapStore2/node_modules/lodash/_castPath.js"),s=n("./MapStore2/node_modules/lodash/_copyObject.js"),l=n("./MapStore2/node_modules/lodash/_customOmitClone.js"),u=n("./MapStore2/node_modules/lodash/_flatRest.js"),c=n("./MapStore2/node_modules/lodash/_getAllKeysIn.js"),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},"./MapStore2/node_modules/lodash/omitBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),o=n("./MapStore2/node_modules/lodash/negate.js"),i=n("./MapStore2/node_modules/lodash/pickBy.js");e.exports=function(e,t){return i(e,o(r(t)))}},"./MapStore2/node_modules/lodash/pickBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_basePickBy.js"),a=n("./MapStore2/node_modules/lodash/_getAllKeysIn.js");e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},"./MapStore2/node_modules/lodash/range.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createRange.js")();e.exports=r},"./MapStore2/node_modules/lodash/replace.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(){var e=arguments,t=r(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},"./MapStore2/node_modules/lodash/some.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arraySome.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_baseSome.js"),a=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/_isIterateeCall.js");e.exports=function(e,t,n){var l=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,o(t,3))}},"./MapStore2/node_modules/lodash/sortBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseOrderBy.js"),i=n("./MapStore2/node_modules/lodash/_baseRest.js"),a=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},"./MapStore2/node_modules/lodash/sumBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),o=n("./MapStore2/node_modules/lodash/_baseSum.js");e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):0}},"./MapStore2/node_modules/lodash/throttle.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/debounce.js"),o=n("./MapStore2/node_modules/lodash/isObject.js");e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/web/client/actions/additionallayers.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c}));var r="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",o="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",i="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",a="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",o=arguments.length>3?arguments[3]:void 0;return{type:r,id:e,owner:t,actionType:n,options:o}},l=function(e,t){return{type:o,owner:e,options:t}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.owner;return{type:i,id:t,owner:n}},c=function(){return{type:a}}},"./MapStore2/web/client/actions/annotations.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return s}));n("./MapStore2/node_modules/lodash/lodash.js");var r=function(e){return{type:"ANNOTATIONS:HIGHLIGHT_POINT",point:e}},o=function(){return{type:"ANNOTATIONS:NEW"}},i=function(){return{type:"ANNOTATIONS:CLEAN_HIGHLIGHT"}},a=function(){return{type:"ANNOTATIONS:CLOSE"}},s=function(e){return{type:"ANNOTATIONS:SET_EDITING_FEATURE",feature:e}}},"./MapStore2/web/client/actions/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"u",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return b})),n.d(t,"w",(function(){return v})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"p",(function(){return O})),n.d(t,"y",(function(){return S})),n.d(t,"v",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return C}));var r="BACKGROUND_SELECTOR:ADD_BACKGROUND",o="BACKGROUND_SELECTOR:REMOVE_BACKGROUND",i="BACKGROUND_SELECTOR:SET_CURRENT_BACKGROUND_LAYER",a="BACKGROUND_SELECTOR:BACKGROUND_ADDED",s="BACKGROUND_SELECTOR:BACKGROUND_EDITED",l="BACKGROUND_SELECTOR:ADD_BACKGROUND_PROPERTIES",u="BACKGROUND_SELECTOR:SET_BACKGROUND_MODAL_PARAMS",c="BACKGROUND_SELECTOR:UPDATE_BACKGROUND_THUMBNAIL",d="BACKGROUND_SELECTOR:BACKGROUNDS_CLEAR",p="BACKGROUND_SELECTOR:CREATE_BACKGROUNDS_LIST",f="BACKGROUND_SELECTOR:CLEAR_MODAL_PARAMETERS",h="BACKGROUND_SELECTOR:CONFIRM_DELETE_BACKGROUND_MODAL",m="BACKGROUND_SELECTOR:ALLOW_BACKGROUNDS_DELETION";function g(e){return{type:p,backgrounds:e}}function y(e){return{type:r,source:e}}function b(e){return{type:l,modalParams:e}}function v(e){return{type:u,modalParams:e}}function w(e){return{type:a,layerId:e}}function x(e){return{type:s,layerId:e}}function _(e){return{type:i,layerId:e}}function O(e){return{type:m,allow:e}}function S(e,t){return{type:c,thumbnailData:e,id:t}}function j(e){return{type:o,backgroundId:e}}function E(){return{type:f}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:h,show:e,layerTitle:t,layerId:n}}},"./MapStore2/web/client/actions/box.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="BOX_END",o="CHANGE_BOX_SELECTION_STATUS";function i(e){return{type:r,boxEndInfo:e}}function a(e){return{type:o,status:e}}},"./MapStore2/web/client/actions/catalog.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"t",(function(){return x})),n.d(t,"v",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"u",(function(){return S})),n.d(t,"f",(function(){return j})),n.d(t,"c",(function(){return E})),n.d(t,"i",(function(){return C})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return k})),n.d(t,"m",(function(){return A})),n.d(t,"l",(function(){return P})),n.d(t,"n",(function(){return M})),n.d(t,"k",(function(){return I})),n.d(t,"j",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"o",(function(){return R})),n.d(t,"a",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"q",(function(){return B})),n.d(t,"w",(function(){return q})),n.d(t,"s",(function(){return U})),n.d(t,"x",(function(){return G})),n.d(t,"A",(function(){return H})),n.d(t,"B",(function(){return V})),n.d(t,"z",(function(){return W})),n.d(t,"bb",(function(){return Y})),n.d(t,"W",(function(){return K})),n.d(t,"H",(function(){return X})),n.d(t,"Z",(function(){return Z})),n.d(t,"ab",(function(){return Q})),n.d(t,"K",(function(){return $})),n.d(t,"T",(function(){return J})),n.d(t,"I",(function(){return ee})),n.d(t,"O",(function(){return te})),n.d(t,"N",(function(){return ne})),n.d(t,"M",(function(){return re})),n.d(t,"L",(function(){return oe})),n.d(t,"P",(function(){return ie})),n.d(t,"Q",(function(){return ae})),n.d(t,"F",(function(){return se})),n.d(t,"C",(function(){return le})),n.d(t,"R",(function(){return ue})),n.d(t,"S",(function(){return ce})),n.d(t,"Y",(function(){return de})),n.d(t,"V",(function(){return pe})),n.d(t,"G",(function(){return fe})),n.d(t,"D",(function(){return me})),n.d(t,"E",(function(){return ge})),n.d(t,"U",(function(){return ye})),n.d(t,"J",(function(){return be})),n.d(t,"cb",(function(){return ve})),n.d(t,"db",(function(){return we})),n.d(t,"eb",(function(){return xe})),n.d(t,"X",(function(){return _e}));var r=n("./MapStore2/web/client/api/CSW.js"),o=n("./MapStore2/web/client/api/WMS.js"),i=n("./MapStore2/web/client/api/WMTS.js"),a=n("./MapStore2/web/client/api/mapBackground.js"),s=n("./MapStore2/web/client/actions/layers.js"),l=n("./MapStore2/web/client/actions/map.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/selectors/catalog.js"),f=n("./MapStore2/web/client/selectors/layers.js"),h=n("./MapStore2/web/client/actions/notifications.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.url,r=e.startPosition,o=e.maxRecords,i=e.text,a=e.options,s=void 0===a?{}:a;return{type:w,format:t,url:n,startPosition:r,maxRecords:o,text:i,options:s}}function K(e,t){return{type:x,searchOptions:e,result:t}}function X(e){return{type:j,format:e}}function Z(e){return{type:q,status:e}}function Q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:G,loading:e}}function $(e){return{type:C,service:e}}function J(e){return{type:N,status:e}}function ee(e,t){return{type:T,mode:e,isNew:t}}function te(e){return{type:A,title:e}}function ne(e){return{type:P,text:e}}function re(e,t){return{type:I,property:e,value:t}}function oe(e){return{type:D,format:e}}function ie(e){return{type:M,newType:e}}function ae(e){return{type:R,url:e}}function se(){return{type:z}}function le(e){return{type:L,service:e}}function ue(e){return{type:F,service:e}}function ce(){return{type:B}}function de(){return{type:_}}function pe(e){return{type:S,error:e}}function fe(){return{type:O}}function he(e,t){return{type:"CATALOG:DESCRIBE_ERROR",layer:e,error:t}}var me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoomToLayer,r=void 0!==n&&n;return function(t,n){var o=n(),i=Object(f.p)(o),a=Object(u.getLayerId)(e,i||[]);return t(Object(s.D)(g(g({},e),{},{id:a}))),r&&e.bbox&&t(Object(l.I)(e.bbox.bounds,e.bbox.crs)),"wms"===e.type?b.wms.describeLayers(Object(u.getLayerUrl)(e),e.name).then((function(n){if(n){var r=Object(d.find)(n,(function(t){return t.name===e.name}));if(r&&"WFS"===r.owsType){var i=c.filterUrlParams(c.cleanDuplicatedQuestionMarks(r.owsURL),Object(p.b)(o));t(Object(s.H)(a,{search:{url:i,type:"wfs"}}))}}})).catch((function(n){return t(he(e,n))})):null}};function ge(e){return{type:E,error:e}}function ye(e){return{type:U,metadataOptions:e}}var be=function(e){return{type:k,metadataTemplate:e}},ve=function(){return{type:W}},we=function(){return{type:H}},xe=function(){return{type:V}};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(h.f)({title:"catalog.notification.errorTitle",message:"catalog.notification.errorSearchingRecords",values:{records:e}})}},"./MapStore2/web/client/actions/dashboard.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r="DASHBOARD:DASHBOARD_RESET",o="DASHBOARD:DASHBOARD_LOADED"},"./MapStore2/web/client/actions/draw.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"h",(function(){return m}));var r="CHANGE_DRAWING_STATUS",o="DRAW:END_DRAWING",i="DRAW:SET_CURRENT_STYLE",a="DRAW:GEOMETRY_CHANGED",s="DRAW:DRAW_SUPPORT_STOPPED";function l(e,t,n,r,o){return{type:a,features:e,owner:t,enableEdit:n,textChanged:r,circleChanged:o}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:FEATURES_SELECTED",features:e}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:DRAWING_FEATURES",features:e}}function d(){return{type:s}}function p(e,t,n,o,i,a){return{type:r,status:e,method:t,owner:n,features:o,options:i,style:a}}function f(e,t){return{type:o,geometry:e,owner:t}}function h(e){return{type:i,currentStyle:e}}var m=function(e){return p("clean","",e,[],{})}},"./MapStore2/web/client/actions/featuregrid.js":function(e,t,n){"use strict";n.d(t,"L",(function(){return r})),n.d(t,"E",(function(){return o})),n.d(t,"n",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"J",(function(){return s})),n.d(t,"U",(function(){return l})),n.d(t,"T",(function(){return u})),n.d(t,"q",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"A",(function(){return p})),n.d(t,"D",(function(){return f})),n.d(t,"P",(function(){return h})),n.d(t,"O",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"C",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"B",(function(){return w})),n.d(t,"m",(function(){return x})),n.d(t,"F",(function(){return _})),n.d(t,"N",(function(){return O})),n.d(t,"G",(function(){return S})),n.d(t,"Y",(function(){return j})),n.d(t,"b",(function(){return E})),n.d(t,"s",(function(){return C})),n.d(t,"p",(function(){return T})),n.d(t,"W",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"g",(function(){return P})),n.d(t,"z",(function(){return M})),n.d(t,"f",(function(){return I})),n.d(t,"d",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"I",(function(){return R})),n.d(t,"o",(function(){return L})),n.d(t,"a",(function(){return F})),n.d(t,"j",(function(){return z})),n.d(t,"y",(function(){return B})),n.d(t,"Z",(function(){return q})),n.d(t,"v",(function(){return U})),n.d(t,"M",(function(){return G})),n.d(t,"V",(function(){return H})),n.d(t,"u",(function(){return V})),n.d(t,"X",(function(){return W})),n.d(t,"x",(function(){return Y})),n.d(t,"Q",(function(){return K})),n.d(t,"R",(function(){return X})),n.d(t,"S",(function(){return Z})),n.d(t,"w",(function(){return Q})),n.d(t,"t",(function(){return $})),n.d(t,"K",(function(){return J})),n.d(t,"H",(function(){return ee})),n.d(t,"Qb",(function(){return te})),n.d(t,"ub",(function(){return ne})),n.d(t,"qb",(function(){return re})),n.d(t,"Ob",(function(){return oe})),n.d(t,"vb",(function(){return ie})),n.d(t,"cb",(function(){return ae})),n.d(t,"hb",(function(){return se})),n.d(t,"Cb",(function(){return le})),n.d(t,"Ib",(function(){return ue})),n.d(t,"tb",(function(){return ce})),n.d(t,"Mb",(function(){return de})),n.d(t,"Lb",(function(){return pe})),n.d(t,"ob",(function(){return fe})),n.d(t,"mb",(function(){return he})),n.d(t,"nb",(function(){return me})),n.d(t,"eb",(function(){return ge})),n.d(t,"Gb",(function(){return ye})),n.d(t,"Kb",(function(){return be})),n.d(t,"bb",(function(){return ve})),n.d(t,"Db",(function(){return we})),n.d(t,"Tb",(function(){return xe})),n.d(t,"Rb",(function(){return _e})),n.d(t,"jb",(function(){return Oe})),n.d(t,"Pb",(function(){return Se})),n.d(t,"Sb",(function(){return je})),n.d(t,"rb",(function(){return Ee})),n.d(t,"ib",(function(){return Ce})),n.d(t,"zb",(function(){return Te})),n.d(t,"Bb",(function(){return ke})),n.d(t,"lb",(function(){return Ae})),n.d(t,"sb",(function(){return Pe})),n.d(t,"db",(function(){return Me})),n.d(t,"Ab",(function(){return Ie})),n.d(t,"gb",(function(){return De})),n.d(t,"fb",(function(){return Ne})),n.d(t,"yb",(function(){return Re})),n.d(t,"pb",(function(){return Le})),n.d(t,"Fb",(function(){return Fe})),n.d(t,"xb",(function(){return ze})),n.d(t,"Ub",(function(){return Be})),n.d(t,"Nb",(function(){return qe})),n.d(t,"Jb",(function(){return Ue})),n.d(t,"wb",(function(){return Ge})),n.d(t,"ab",(function(){return He})),n.d(t,"kb",(function(){return Ve})),n.d(t,"Hb",(function(){return We})),n.d(t,"Eb",(function(){return Ye}));var r="FEATUREGRID:SET_UP",o="FEATUREGRID:SELECT_FEATURES",i="FEATUREGRID:DESELECT_FEATURES",a="FEATUREGRID:CLEAR_SELECTION",s="FEATUREGRID:SET_SELECTION_OPTIONS",l="FEATUREGRID:TOGGLE_MODE",u="FEATUREGRID:TOGGLE_FEATURES_SELECTION",c="FEATUREGRID:FEATURES_MODIFIED",d="FEATUREGRID:NEW_FEATURE",p="FEATUREGRID:SAVE_CHANGES",f="FEATUREGRID:SAVING",h="FEATUREGRID:START_EDITING_FEATURE",m="FEATUREGRID:START_DRAWING_FEATURE",g="FEATUREGRID:DELETE_GEOMETRY",y="FEATUREGRID:DELETE_GEOMETRY_FEATURE",b="FEATUREGRID:SAVE_SUCCESS",v="FEATUREGRID:CLEAR_CHANGES",w="FEATUREGRID:SAVE_ERROR",x="FEATUREGRID:DELETE_SELECTED_FEATURES",_="SET_FEATURES",O="FEATUREGRID:SORT_BY",S="FEATUREGRID:SET_LAYER",j="QUERY:UPDATE_FILTER",E="FEATUREGRID:CHANGE_PAGE",C="FEATUREGRID:GEOMETRY_CHANGED",T="DOCK_SIZE_FEATURES",k="FEATUREGRID:TOGGLE_TOOL",A="FEATUREGRID:CUSTOMIZE_ATTRIBUTE",P="ASK_CLOSE_FEATURE_GRID_CONFIRM",M="FEATUREGRID:OPEN_GRID",I="FEATUREGRID:CLOSE_GRID",D="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",N="FEATUREGRID:FEATURE_GRID_CLOSE_CONFIRMED",R="FEATUREGRID:SET_PERMISSION",L="FEATUREGRID:DISABLE_TOOLBAR",F="FEATUREGRID:ACTIVATE_TEMPORARY_CHANGES",z="FEATUREGRID:DEACTIVATE_GEOMETRY_FILTER",B="FEATUREGRID:ADVANCED_SEARCH",q="FEATUREGRID:ZOOM_ALL",U="FEATUREGRID:INIT_PLUGIN",G="FEATUREGRID:SIZE_CHANGE",H="FEATUREGRID:TOGGLE_SHOW_AGAIN_FLAG",V="FEATUREGRID:HIDE_SYNC_POPOVER",W="FEATUREGRID:UPDATE_EDITORS_OPTIONS",Y={EDIT:"EDIT",VIEW:"VIEW"},K="FEATUREGRID:START_SYNC_WMS",X="FEATUREGRID:STOP_SYNC_WMS",Z="STORE_ADVANCED_SEARCH_FILTER",Q="LOAD_MORE_FEATURES",$="FEATUREGRID:QUERY_RESULT",J="FEATUREGRID:SET_TIME_SYNC",ee="FEATUREGRID:SET_PAGINATION";function te(){return{type:H}}function ne(){return{type:V}}function re(e,t){return{type:$,features:e,pages:t}}function oe(e){return{type:Z,filterObj:e}}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:U,options:e}}function ae(){return{type:D}}function se(){return{type:N}}function le(e,t){return{type:o,features:e,append:t}}function ue(e){return{type:r,options:e}}function ce(e){return{type:C,features:e}}function de(){return{type:h}}function pe(){return{type:m}}function fe(e){return{type:i,features:e}}function he(){return{type:g}}function me(e){return{type:y,features:e}}function ge(){return{type:a}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiselect,n=void 0!==t&&t;return{type:s,multiselect:n}}function be(e,t){return{type:O,sortBy:e,sortOrder:t}}function ve(e,t){return{type:E,page:e,size:t}}function we(e){return{type:S,id:e}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:j,update:e,append:t}}function _e(e,t){return{type:k,tool:e,value:t}}function Oe(e,t,n){return{type:A,name:e,key:t,value:n}}function Se(){return{type:l,mode:Y.EDIT}}function je(){return{type:l,mode:Y.VIEW}}function Ee(e,t){return{type:c,features:e,updated:t}}function Ce(e){return{type:d,features:e}}function Te(){return{type:p}}function ke(){return{type:b}}function Ae(){return{type:x}}function Pe(){return{type:f}}function Me(){return{type:v}}function Ie(){return{type:w}}function De(){return{type:P}}function Ne(){return{type:I}}function Re(){return{type:M}}function Le(e){return{type:L,disabled:e}}function Fe(e){return{type:R,permission:e}}function ze(){return{type:B}}function Be(){return{type:q}}function qe(){return{type:K}}function Ue(e,t){return{type:G,size:e,dockProps:t}}var Ge=function(e){return{type:Q,pages:e}},He=function(e){return{type:F,activated:e}},Ve=function(e){return{type:z,deactivated:e}},We=function(e){return{type:J,value:e}},Ye=function(e){return{type:ee,size:e}}},"./MapStore2/web/client/actions/highlight.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}));var r="HIGHLIGHT_STATUS",o="UPDATE_HIGHLIGHTED",i="HIGHLIGHT:SET_HIGHLIGHT_FEATURES_PATH";function a(e){return{type:i,featuresPath:e}}function s(e,t){return{type:o,features:e,status:t}}},"./MapStore2/web/client/actions/layerCapabilities.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/api/WMS.js"),i=n("./MapStore2/web/client/api/WFS.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./node_modules/url/url.js"),u=n.n(l),c=n("./node_modules/object-assign/index.js"),d=n.n(c),p=n("./node_modules/xml2js/lib/xml2js.js"),f=n.n(p),h={describeCoverage:function(e,t){var n=u.a.parse(e,!0),r=u.a.format(d()({},n,{query:d()({service:"WCS",version:"1.1.0",identifiers:t,request:"DescribeCoverage"},n.query)}));return s.a.get(r).then((function(e){var t;return f.a.parseString(e.data,{explicitArray:!1},(function(e,n){t=n})),t}))}},m=n("./MapStore2/web/client/utils/LayersUtils.js"),g=n("./MapStore2/node_modules/lodash/lodash.js");function y(e,t,n){return function(a){return o.a.describeLayer(e,t.name,n).then((function(n){return n&&"WFS"===n.owsType?i.describeFeatureTypeOGCSchemas(e,n.name).then((function(e){var o=Object(g.get)(e,"complexType[0].complexContent.extension.sequence.element"),i=Object(g.head)(o&&o.filter((function(e){return"the_geom"===e.name||0===e.type.prefix.indexOf("gml")})));return i=i&&i.type.localPart,n.geometryType=i&&i.split("PropertyType")[0],a(Object(r.cb)(t.id,"id",{describeLayer:n,describeFeatureType:e}))})).catch((function(){return a(Object(r.cb)(t.id,"id",{describeLayer:n||{error:"no describe feature found"}}))})):(n&&"WCS"===n.owsType&&h.describeCoverage(e,n.name).then((function(e){var o=Object(g.get)(e,"wcs:CoverageDescriptions.wcs:CoverageDescription.wcs:Range.wcs:Field.wcs:Axis.wcs:AvailableKeys.wcs:Key");n.bands=o&&"string"==typeof o?["1"]:o.map((function(e,t){return t+1+""})),a(Object(r.cb)(t.id,"id",{describeLayer:n,describeCoverage:e}))})).catch((function(){return a(Object(r.cb)(t.id,"id",{describeLayer:n||{error:"no describe coverage found"}}))})),a(Object(r.cb)(t.id,"id",{describeLayer:n||{error:"no describe Layer found"}})))})).catch((function(e){return a(Object(r.cb)(t.id,"id",{describeLayer:{error:e.status}}))}))}}function b(e,t){var n=Object(m.getCapabilitiesUrl)(e);return function(i){return i(Object(r.cb)(e.id,"id",{capabilitiesLoading:!0})),o.a.getCapabilities(n,t).then((function(t){var n=o.a.parseLayerCapabilities(t,e);i(n?Object(r.cb)(e.id,"id",Object(m.formatCapabitiliesOptions)(n)):Object(r.cb)(e.id,"id",{capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:"no layer info"},description:null}))})).catch((function(t){i(Object(r.cb)(e.id,"id",{capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:t},description:null}))}))}}n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}))},"./MapStore2/web/client/actions/locate.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="CHANGE_LOCATE_STATE",o="LOCATE_ERROR";function i(e){return{type:r,state:e}}function a(e){return{type:o,error:e}}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"t",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"A",(function(){return v})),n.d(t,"w",(function(){return w})),n.d(t,"x",(function(){return x})),n.d(t,"z",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"f",(function(){return S})),n.d(t,"a",(function(){return j})),n.d(t,"y",(function(){return E})),n.d(t,"g",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"v",(function(){return A})),n.d(t,"N",(function(){return P})),n.d(t,"H",(function(){return M})),n.d(t,"I",(function(){return I})),n.d(t,"P",(function(){return D})),n.d(t,"E",(function(){return N})),n.d(t,"O",(function(){return R})),n.d(t,"K",(function(){return L})),n.d(t,"Q",(function(){return F})),n.d(t,"C",(function(){return z})),n.d(t,"T",(function(){return B})),n.d(t,"L",(function(){return q})),n.d(t,"U",(function(){return G})),n.d(t,"M",(function(){return H})),n.d(t,"W",(function(){return V})),n.d(t,"Y",(function(){return W})),n.d(t,"J",(function(){return Y})),n.d(t,"Z",(function(){return K})),n.d(t,"V",(function(){return X})),n.d(t,"D",(function(){return Z})),n.d(t,"F",(function(){return Q})),n.d(t,"B",(function(){return $})),n.d(t,"X",(function(){return J})),n.d(t,"G",(function(){return ee})),n.d(t,"R",(function(){return te})),n.d(t,"S",(function(){return ne}));var r=n("./MapStore2/web/client/api/Nominatim.js"),o="LOAD_FEATURE_INFO",i="ERROR_FEATURE_INFO",a="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",l="NEW_MAPINFO_REQUEST",u="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",d="SHOW_MAPINFO_MARKER",p="HIDE_MAPINFO_MARKER",f="SHOW_REVERSE_GEOCODE",h="HIDE_REVERSE_GEOCODE",m="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",y="CLEAR_WARNING",b="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",w="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",x="TOGGLE_MAPINFO_STATE",_="UPDATE_CENTER_TO_MARKER",O="IDENTIFY:CHANGE_PAGE",S="IDENTIFY:CLOSE_IDENTIFY",j="IDENTIFY:CHANGE_FORMAT",E="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",C="IDENTIFY:EDIT_LAYER_FEATURES",T="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",k="IDENTIFY:SET_MAP_TRIGGER",A="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function P(e,t,n,r,i){return{type:o,data:t,reqId:e,requestParams:n,layerMetadata:r,layer:i}}function M(e,t,n,r){return{type:i,error:t,reqId:e,requestParams:n,layerMetadata:r}}function I(e,t,n,r){return{type:a,reqId:e,exceptions:t,requestParams:n,layerMetadata:r}}function D(){return{type:g}}function N(){return{type:y}}function R(e,t){return{type:l,reqId:e,request:t}}function L(e,t,n,r){return{type:m,layer:e,request:t,metadata:n,queryableLayers:r}}function F(){return{type:u}}function z(e){return{type:c,infoFormat:e}}function B(){return{type:d}}function q(){return{type:p}}function U(e){return{type:f,reverseGeocodeData:e.data}}function G(e){return function(t){r.default.reverseGeocode(e).then((function(e){t(U(e))})).catch((function(e){t(U(e))}))}}function H(){return{type:h}}function V(){return{type:x}}function W(e){return{type:_,status:e}}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:b,point:e,layer:t,filterNameList:n,overrideParams:r,itemId:o}}function K(e){return{type:v,point:e}}function X(e){return{type:w,enabled:e}}function Z(e){return{type:O,index:e}}var Q=function(){return{type:S}},$=function(e){return{type:j,format:e}},J=function(e){return{type:E,showCoordinateEditor:e}},ee=function(e){return{type:C,layer:e}},te=function(e){return{type:T,query:e}},ne=function(e){return{type:k,trigger:e}}},"./MapStore2/web/client/actions/mapPopups.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return{type:"MAP:ADD_POPUP",id:e,popup:o({id:e},t),single:n}},l=function(e){return{type:a,id:e}},u=function(){return{type:"MAP:CLEAN_POPUPS"}}},"./MapStore2/web/client/actions/maplayout.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="MAP_LAYOUT:UPDATE_MAP_LAYOUT";function o(e){return{type:r,layout:e}}},"./MapStore2/web/client/actions/measurement.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"g",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"n",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"p",(function(){return w})),n.d(t,"u",(function(){return _})),n.d(t,"w",(function(){return O})),n.d(t,"t",(function(){return S})),n.d(t,"A",(function(){return j})),n.d(t,"B",(function(){return E})),n.d(t,"z",(function(){return C})),n.d(t,"q",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"r",(function(){return A})),n.d(t,"y",(function(){return P})),n.d(t,"C",(function(){return M})),n.d(t,"v",(function(){return I})),n.d(t,"x",(function(){return D}));var i="CHANGE_MEASUREMENT_TOOL",a="CHANGE_MEASUREMENT_STATE",s="MEASUREMENT:CHANGE_UOM",l="MEASUREMENT:CHANGED_GEOMETRY",u="MEASUREMENT:SET_TEXT_LABELS",c="MEASUREMENT:SET_CURRENT_FEATURE",d="MEASUREMENT:ADD_AS_LAYER",p="MEASUREMENT:RESET_GEOMETRY",f="MEASUREMENT:CHANGE_FORMAT",h="MEASUREMENT:CHANGE_COORDINATES",m="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",g="MEASUREMENT:UPDATE_MEASURES",y="MEASUREMENT:INIT",b="MEASUREMENT:SET_MEASUREMENT_CONFIG",v="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function w(e,t,n,r,o){return{type:m,features:e,textLabels:t,uom:n,save:r,id:o}}function x(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:y,defaultOptions:e}}},"./MapStore2/web/client/actions/playback.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"k",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"j",(function(){return m})),n.d(t,"s",(function(){return g})),n.d(t,"r",(function(){return y})),n.d(t,"w",(function(){return b})),n.d(t,"v",(function(){return v})),n.d(t,"u",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"q",(function(){return _})),n.d(t,"t",(function(){return O})),n.d(t,"p",(function(){return S})),n.d(t,"x",(function(){return j})),n.d(t,"n",(function(){return E})),n.d(t,"y",(function(){return C}));var r="PLAYBACK:START",o="PLAYBACK:PAUSE",i="PLAYBACK:STOP",a="PLAYBACK:SET_FRAMES",s="PLAYBACK:APPEND_FRAMES",l="PLAYBACK:FRAMES_LOADING",u="PLAYBACK:SET_CURRENT_FRAME",c="PLAYBACK:SELECT_PLAYBACK_RANGE",d="PLAYBACK:SETTINGS_CHANGE",p="PLAYBACK:TOGGLE_ANIMATION_MODE",f="PLAYBACK:ANIMATION_STEP_MOVE",h="PLAYBACK:UPDATE_METADATA",m={PLAY:"PLAY",STOP:"STOP",PAUSE:"PAUSE"},g=function(){return{type:r}},y=function(){return{type:o}},b=function(){return{type:i}},v=function(e){return{type:a,frames:e}},w=function(e){return{type:u,frame:e}},x=function(e){return{type:s,frames:e}},_=function(e){return{type:l,loading:e}},O=function(e){return{type:c,range:e}},S=function(e,t){return{type:d,name:e,value:t}},j=function(){return{type:p}},E=function(e){return{type:f,direction:e}},C=function(e){var t=e.next,n=e.previous,r=e.forTime;return{type:h,forTime:r,next:t,previous:n}}},"./MapStore2/web/client/actions/queryform.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"r",(function(){return s})),n.d(t,"H",(function(){return l})),n.d(t,"G",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"K",(function(){return d})),n.d(t,"s",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"A",(function(){return y})),n.d(t,"v",(function(){return b})),n.d(t,"w",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"J",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return S})),n.d(t,"u",(function(){return j})),n.d(t,"C",(function(){return E})),n.d(t,"o",(function(){return C})),n.d(t,"n",(function(){return T})),n.d(t,"B",(function(){return k})),n.d(t,"f",(function(){return A})),n.d(t,"O",(function(){return P})),n.d(t,"P",(function(){return M})),n.d(t,"N",(function(){return I})),n.d(t,"M",(function(){return D})),n.d(t,"L",(function(){return N})),n.d(t,"D",(function(){return R})),n.d(t,"d",(function(){return L})),n.d(t,"t",(function(){return F})),n.d(t,"p",(function(){return z})),n.d(t,"I",(function(){return B})),n.d(t,"l",(function(){return q})),n.d(t,"a",(function(){return U})),n.d(t,"F",(function(){return G})),n.d(t,"q",(function(){return H})),n.d(t,"z",(function(){return V})),n.d(t,"E",(function(){return W})),n.d(t,"m",(function(){return Y})),n.d(t,"R",(function(){return K})),n.d(t,"S",(function(){return X})),n.d(t,"db",(function(){return Z})),n.d(t,"pb",(function(){return Q})),n.d(t,"sb",(function(){return $})),n.d(t,"rb",(function(){return J})),n.d(t,"vb",(function(){return ee})),n.d(t,"mb",(function(){return te})),n.d(t,"eb",(function(){return ne})),n.d(t,"T",(function(){return re})),n.d(t,"X",(function(){return oe})),n.d(t,"Z",(function(){return ie})),n.d(t,"Y",(function(){return ae})),n.d(t,"nb",(function(){return se})),n.d(t,"jb",(function(){return le})),n.d(t,"lb",(function(){return ue})),n.d(t,"ub",(function(){return ce})),n.d(t,"kb",(function(){return de})),n.d(t,"V",(function(){return pe})),n.d(t,"W",(function(){return fe})),n.d(t,"fb",(function(){return he})),n.d(t,"ob",(function(){return me})),n.d(t,"U",(function(){return ge})),n.d(t,"ib",(function(){return ye})),n.d(t,"ab",(function(){return be})),n.d(t,"gb",(function(){return ve})),n.d(t,"yb",(function(){return xe})),n.d(t,"xb",(function(){return _e})),n.d(t,"wb",(function(){return Oe})),n.d(t,"Q",(function(){return Se})),n.d(t,"qb",(function(){return je})),n.d(t,"cb",(function(){return Ee})),n.d(t,"hb",(function(){return Ce})),n.d(t,"bb",(function(){return Te})),n.d(t,"tb",(function(){return ke}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function i(e){return(i="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)}var a="ADD_FILTER_FIELD",s="REMOVE_FILTER_FIELD",l="UPDATE_FILTER_FIELD",u="UPDATE_EXCEPTION_FIELD",c="ADD_GROUP_FIELD",d="UPDATE_LOGIC_COMBO",p="REMOVE_GROUP_FIELD",f="CHANGE_CASCADING_VALUE",h="EXPAND_ATTRIBUTE_PANEL",m="EXPAND_SPATIAL_PANEL",g="QUERYFORM:EXPAND_CROSS_LAYER",y="QUERYFORM:SET_CROSS_LAYER_PARAMETER",b="QUERYFORM:RESET_CROSS_LAYER_FILTER",v="SELECT_SPATIAL_METHOD",w="SELECT_VIEWPORT_SPATIAL_METHOD",x="UPDATE_GEOMETRY",_="SELECT_SPATIAL_OPERATION",O="CHANGE_SPATIAL_ATTRIBUTE",S="CHANGE_SPATIAL_FILTER_VALUE",j="REMOVE_SPATIAL_SELECT",E="SHOW_SPATIAL_DETAILS",C="QUERY_FORM_SEARCH",T="QUERY_FORM_RESET",k="SHOW_GENERATED_FILTER",A="CHANGE_DWITHIN_VALUE",P="ZONE_SEARCH",M="ZONE_SEARCH_ERROR",I="ZONE_FILTER",D="ZONE_CHANGE",N="ZONES_RESET",R="SIMPLE_FILTER_FIELD_UPDATE",L="ADD_SIMPLE_FILTER_FIELD",F="REMOVE_SIMPLE_FILTER_FIELD",z="REMOVE_ALL_SIMPLE_FILTER_FIELDS",B="UPDATE_FILTER_FIELD_OPTIONS",q="LOADING_FILTER_FIELD_OPTIONS",U="QUERYFORM:ADD_CROSS_LAYER_FILTER_FIELD",G="QUERYFORM:UPDATE_CROSS_LAYER_FILTER_FIELD",H="QUERYFORM:REMOVE_CROSS_LAYER_FILTER_FIELD",V="SET_AUTOCOMPLETE_MODE",W="TOGGLE_AUTOCOMPLETE_MENU",Y="QUERYFORM:LOAD_FILTER";function K(e){return{type:a,groupId:e}}function X(e,t){return{type:c,groupId:e,index:t}}function Z(e){return{type:s,rowId:e}}function Q(e,t){return{type:W,rowId:e,status:t}}function $(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:l,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}}function J(e,t){return{type:u,rowId:e,exceptionMessage:t}}function ee(e,t){return{type:d,groupId:e,logic:t}}function te(e){return{type:V,status:e}}function ne(e){return{type:p,groupId:e}}function re(e){return{type:f,attributes:e}}function oe(e){return{type:h,expand:e}}function ie(e){return{type:m,expand:e}}function ae(e){return{type:g,expand:e}}function se(e,t){return{type:y,key:e,value:t}}function le(e,t){return{type:v,fieldName:t,method:e}}function ue(){return{type:w}}function ce(e){return{type:x,geometry:e}}function de(e,t){return{type:_,fieldName:t,operation:e}}function pe(e){return{type:O,attribute:e}}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.feature,n=e.srsName,r=e.collectGeometries,o=e.style,i=e.options,a=e.value;return{type:S,value:a,collectGeometries:r,options:i,geometry:t&&t.geometry,feature:t,srsName:n,style:o}}function he(){return{type:j}}function me(e){return{type:E,show:e}}function ge(e){return{type:A,distance:e}}function ye(e,t){return{type:C,searchUrl:e,filterObj:t}}function be(e){return{type:Y,filter:e}}function ve(e){return{type:T,skip:e}}function we(e,t){return{type:M,error:e,id:t}}function xe(e,t){return{type:P,active:e,id:t}}function _e(e,t,n){return function(r){return o.a.post(e,t,{timeout:1e4,headers:{Accept:"application/json","Content-Type":"text/plain"}}).then((function(o){var a=o.data;if("object"!==i(a))try{a=JSON.parse(a)}catch(o){r(we("Search result broken ("+e+": "+t+"): "+o.message,n))}r(function(e,t){return{type:I,data:e,id:t}}(a,n)),r(xe(!1,n))})).catch((function(e){r(we(e,n))}))}}function Oe(e,t){return{type:D,id:e,value:t}}function Se(e){return{type:U,rowId:(new Date).getTime(),groupId:e}}function je(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:G,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}}function Ee(e){return{type:H,rowId:e}}function Ce(){return{type:b}}function Te(e,t){return{type:q,status:e,filterField:t}}function ke(e,t,n){return{type:B,filterField:e,options:t,valuesCount:n}}},"./MapStore2/web/client/actions/search.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"p",(function(){return i})),n.d(t,"l",(function(){return a})),n.d(t,"m",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"q",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"r",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return _})),n.d(t,"x",(function(){return O})),n.d(t,"L",(function(){return S})),n.d(t,"v",(function(){return j})),n.d(t,"C",(function(){return E})),n.d(t,"D",(function(){return C})),n.d(t,"E",(function(){return T})),n.d(t,"B",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"z",(function(){return P})),n.d(t,"t",(function(){return M})),n.d(t,"J",(function(){return I})),n.d(t,"G",(function(){return D})),n.d(t,"I",(function(){return N})),n.d(t,"F",(function(){return R})),n.d(t,"u",(function(){return L})),n.d(t,"K",(function(){return F})),n.d(t,"w",(function(){return z})),n.d(t,"y",(function(){return B})),n.d(t,"H",(function(){return q}));var r=n("./MapStore2/web/client/actions/notifications.js"),o="SEARCH:SEARCH_WITH_FILTER",i="TEXT_SEARCH_STARTED",a="TEXT_SEARCH_RESULTS_LOADED",s="TEXT_SEARCH_RESULTS_PURGE",l="TEXT_SEARCH_RESET",u="TEXT_SEARCH_ADD_MARKER",c="TEXT_SEARCH_TEXT_CHANGE",d="TEXT_SEARCH_LOADING",p="TEXT_SEARCH_NESTED_SERVICE_SELECTED",f="TEXT_SEARCH_ERROR",h="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",g="TEXT_SEARCH_SHOW_GFI",y="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",b="UPDATE_RESULTS_STYLE",v="CHANGE_SEARCH_TOOL",w="SEARCH:ZOOM_ADD_POINT",x="SEARCH:CHANGE_FORMAT",_="SEARCH:CHANGE_COORD";function O(e){return{type:x,format:e}}function S(e,t,n){return{type:w,pos:e,zoom:t,crs:n}}function j(e){return{type:v,activeSearchTool:e}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return{type:a,results:e,append:t,services:n}}function C(e){return{type:c,searchText:e}}function T(e){return{type:d,loading:e}}function k(e){return{type:f,error:e}}function A(){return{type:s}}function P(){return{type:l}}function M(e,t){return{type:u,markerPosition:e,markerLabel:t}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.services,r=void 0===n?null:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:i,searchText:e,services:r,maxResults:o}}function D(e,t,n){return{type:m,item:e,mapConfig:t,resultsStyle:n}}var N=function(e){return{type:g,item:e}};function R(e,t,n){return{type:p,searchText:n,services:e,items:t}}function L(e){return{type:h,item:e}}function F(e){return{type:b,style:e}}function z(e,t){return{type:_,coord:e,val:t}}function B(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function q(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},"./MapStore2/web/client/actions/searchconfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l}));var r="SET_SEARCH_CONFIG_PROP",o="RESET_SEARCH_CONFIG",i="UPDATE_SERVICE";function a(e,t){return{type:r,property:e,value:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{type:o,page:e}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{type:i,service:e,idx:t}}},"./MapStore2/web/client/actions/styleeditor.js":function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"q",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"k",(function(){return b})),n.d(t,"n",(function(){return v})),n.d(t,"D",(function(){return w})),n.d(t,"F",(function(){return x})),n.d(t,"A",(function(){return _})),n.d(t,"H",(function(){return O})),n.d(t,"y",(function(){return S})),n.d(t,"x",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"z",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"v",(function(){return k})),n.d(t,"G",(function(){return A})),n.d(t,"u",(function(){return P})),n.d(t,"t",(function(){return M})),n.d(t,"w",(function(){return I})),n.d(t,"C",(function(){return D})),n.d(t,"B",(function(){return N})),n.d(t,"E",(function(){return R}));var r="STYLEEDITOR:TOGGLE_STYLE_EDITOR",o="STYLEEDITOR:SELECT_STYLE_TEMPLATE",i="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",a="STYLEEDITOR:UPDATE_STATUS",s="STYLEEDITOR:RESET_STYLE_EDITOR",l="STYLEEDITOR:ADD_STYLE",u="STYLEEDITOR:CREATE_STYLE",c="STYLEEDITOR:LOADING_STYLE",d="STYLEEDITOR:LOADED_STYLE",p="STYLEEDITOR:ERROR_STYLE",f="STYLEEDITOR:UPDATE_STYLE_CODE",h="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",g="STYLEEDITOR:INIT_STYLE_SERVICE",y="STYLEEDITOR:SET_EDIT_PERMISSION",b="STYLEEDITOR:SET_DEFAULT_STYLE",v="STYLEEDITOR:UPDATE_EDITOR_METADATA";function w(e,t){return{type:r,layer:e,enabled:t}}function x(e){return{type:a,status:e}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,n=e.templateId,r=e.format,i=e.languageVersion,a=e.init;return{type:o,code:t,templateId:n,format:r,init:a,languageVersion:i}}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.temporaryId,n=e.templateId,r=e.code,o=e.format,a=e.languageVersion,s=e.init;return{type:i,temporaryId:t,templateId:n,code:r,format:o,init:s,languageVersion:a}}function S(e){return{type:c,status:e}}function j(){return{type:d}}function E(e){return{type:u,settings:e}}function C(){return{type:s}}function T(e){return{type:l,add:e}}function k(e,t){return{type:p,status:e,error:t}}function A(){return{type:f}}function P(e){return{type:h,code:e}}function M(e){return{type:m,styleName:e}}function I(e,t){return{type:g,service:e,canEdit:t}}function D(e){return{type:y,canEdit:e}}function N(){return{type:b}}function R(e){return{type:v,metadata:e}}},"./MapStore2/web/client/actions/wfsquery.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"k",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"i",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"A",(function(){return v})),n.d(t,"z",(function(){return w})),n.d(t,"v",(function(){return x})),n.d(t,"u",(function(){return _})),n.d(t,"t",(function(){return O})),n.d(t,"s",(function(){return S})),n.d(t,"r",(function(){return j})),n.d(t,"y",(function(){return E})),n.d(t,"x",(function(){return C})),n.d(t,"B",(function(){return T})),n.d(t,"q",(function(){return k})),n.d(t,"w",(function(){return A}));n("./MapStore2/web/client/libs/ajax.js");var r="LAYER_SELECTED_FOR_SEARCH",o="FEATURE_TYPE_SELECTED",i="FEATURE_TYPE_LOADED",a="FEATURE_LOADED",s="FEATURE_LOADING",l="FEATURE_TYPE_ERROR",u="FEATURE_ERROR",c="QUERY_CREATE",d="QUERY:UPDATE_QUERY",p="QUERY_RESULT",f="QUERY_ERROR",h="RESET_QUERY",m="QUERY",g="INIT_QUERY_PANEL",y="QUERY:TOGGLE_SYNC_WMS",b="QUERY:TOGGLE_LAYER_FILTER";function v(){return{type:y}}function w(){return{type:b}}function x(){return{type:g}}function _(e,t){return{type:o,url:e,typeName:t}}function O(e,t){return{type:i,typeName:e,featureType:t}}function S(e,t){return{type:l,typeName:e,error:t}}function j(e){return{type:s,isLoading:e}}function E(e,t,n,r,o){return{type:p,searchUrl:t,filterObj:n,result:e,queryOptions:r,reason:o}}function C(e){return{type:f,error:e}}function T(e,t){return{type:d,updates:e,reason:t}}function k(e,t){return{type:c,searchUrl:e,filterObj:t}}function A(e,t,n,r){return{type:m,searchUrl:e,filterObj:t,queryOptions:n,reason:r}}},"./MapStore2/web/client/actions/widgets.js":function(e,t,n){"use strict";n.d(t,"m",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"z",(function(){return f})),n.d(t,"y",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"r",(function(){return v})),n.d(t,"n",(function(){return w})),n.d(t,"s",(function(){return x})),n.d(t,"v",(function(){return _})),n.d(t,"q",(function(){return O})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return j})),n.d(t,"B",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"t",(function(){return P})),n.d(t,"u",(function(){return M})),n.d(t,"w",(function(){return I})),n.d(t,"x",(function(){return D})),n.d(t,"G",(function(){return N})),n.d(t,"F",(function(){return R})),n.d(t,"M",(function(){return L})),n.d(t,"Y",(function(){return F})),n.d(t,"X",(function(){return z})),n.d(t,"H",(function(){return B})),n.d(t,"E",(function(){return q})),n.d(t,"D",(function(){return U})),n.d(t,"J",(function(){return G})),n.d(t,"I",(function(){return H})),n.d(t,"O",(function(){return V})),n.d(t,"C",(function(){return W})),n.d(t,"N",(function(){return Y})),n.d(t,"T",(function(){return K})),n.d(t,"Q",(function(){return X})),n.d(t,"K",(function(){return Z})),n.d(t,"L",(function(){return Q})),n.d(t,"P",(function(){return $})),n.d(t,"U",(function(){return J})),n.d(t,"R",(function(){return ee})),n.d(t,"S",(function(){return te})),n.d(t,"V",(function(){return ne})),n.d(t,"W",(function(){return re}));var r=n("./node_modules/uuid/v1.js"),o=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="WIDGETS:INSERT",l="WIDGETS:NEW",u="WIDGETS:EDIT",c="WIDGETS:EDIT_NEW",d="WIDGETS:EDITOR_CHANGE",p="WIDGETS:EDITOR_SETTING_CHANGE",f="WIDGETS:UPDATE_PROPERTY",h="WIDGETS:UPDATE_LAYER",m="WIDGETS:CHANGE_LAYOUT",g="WIDGETS:DELETE",y="WIDGETS:CLEAR_WIDGETS",b="WIDGETS:ADD_DEPENDENCY",v="WIDGETS:REMOVE_DEPENDENCY",w="WIDGETS:LOAD_DEPENDENCIES",x="WIDGETS:RESET_DEPENDENCIES",_="WIDGETS:TOGGLE_CONNECTION",O="WIDGETS:OPEN_FILTER_EDITOR",S="WIDGETS:EXPORT_CSV",j="WIDGETS:EXPORT_IMAGE",E="WIDGETS:WIDGET_SELECTED",C="WIDGETS:NEW_CHART",T="floating",k="dependencySelector",A=/^widgets\["?([^"\]]*)"?\]\.?(.*)$/,P="WIDGET:TOGGLE_COLLAPSE",M="WIDGET:TOGGLE_COLLAPSE_ALL",I="WIDGET:TOGGLE_MAXIMIZE",D="WIDGET:TOGGLE_TRAY",N=function(e){return{type:l,widget:e}},R=function(){return{type:C}},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:s,target:t,id:o()(),widget:e}},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:T;return{type:f,id:e,target:o,key:t,value:n,mode:r}},z=function(e){return{type:h,layer:e}},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:g,target:t,widget:e}},q=function(){return{type:y}},U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return{type:m,allLayouts:t,layout:e,target:n}},G=function(e){return{type:u,widget:e}},H=function(e,t){return{type:c,widget:e,settings:t}},V=function(e,t){return{type:d,key:e,value:t}},W=function(e,t){return{type:p,key:e,value:t}},Y=function(e){return{type:w,dependencies:e}},K=function(e,t,n,r){return{type:_,active:e,availableDependencies:t,options:n,target:r}},X=function(e){return W("step",e)},Z=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:S,data:n,title:void 0===r?"export":r}},Q=function(e){var t=e.widgetDivId;return{type:j,widgetDivId:t}},$=function(){return{type:O}},J=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:T;return{type:P,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;return{type:M,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:I,widget:e,target:t}},re=function(e){return{type:D,value:e}}},"./MapStore2/web/client/api/CSW.js":function(e,t,n){"use strict";var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),f=function(e){var t=o.a.parse(e,!0);return o.a.format(l()({},t,{search:null},{query:l()({service:"CSW",version:"2.0.2"},t.query,{request:void 0})}))},h={parseUrl:f,getRecordById:function(e){return new Promise((function(t){Promise.all([n.e(1),n.e(27)]).then(function(){t(c.a.get(e).then((function(e){if(e){var t=n("./MapStore2/web/client/utils/ogc/CSW.js").unmarshaller.unmarshalString(e.data);if(t&&t.name&&"GetRecordByIdResponse"===t.name.localPart&&t.value&&t.value.abstractRecord){var r=t.value.abstractRecord[0].value.dcElement;if(r){for(var o={references:[]},i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2)?{ramp:"custom",colors:c.a.scale(o.colors).colors(n).join(",")}:{ramp:t}},v=function(e,t){var n=e.thematic&&e.thematic.params||[],r=e.thematic&&e.thematic.fieldAsParam&&["field"]||[];return Object.keys(t).reduce((function(o,i){return function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return t.field===e})).length>0}(e,t)}(i,[].concat(h(n),h(r)))?l()(o,function(e,t,n){return{viewparams:(e?e+";":"")+t+":"+n}}(o.viewparams,i,t[i])):"ramp"===i?l()(o,b(e,t[i],t.intervals||5)):"classification"===i?l()(o,(a=t[i])?{customClasses:a.reduce((function(e,t){return[].concat(h(e),[t.min+","+t.max+","+t.color])}),[]).join(";")}:{}):"attribute"===i?l()(o,{attribute:e.thematic&&e.thematic.fieldAsParam?t[i]:t.field}):"field"===i&&e.thematic&&!e.thematic.fieldAsParam?o:"strokeWeight"!==i||t.strokeOn?"strokeOn"===i?o:l()(o,f({},i,t[i])):l()(o,f({},i,-1));var a}),{})},w=function(e){return l()({protocol:e.protocol,hostname:e.domain},e.port?{port:e.port}:{})},x=function(e){return e.reduce((function(e,t){return Object(a.isNumber)(t)?t:e}),null)},_=function(e){return e.PolygonSymbolizer?"Polygon":e.LineSymbolizer?"LineString":e.PointSymbolizer?"Point":null},O=function(e){return e.PolygonSymbolizer?e.PolygonSymbolizer.Fill&&e.PolygonSymbolizer.Fill.CssParameter&&e.PolygonSymbolizer.Fill.CssParameter.$||"#808080":e.LineSymbolizer?e.LineSymbolizer.Stroke&&e.LineSymbolizer.Stroke.CssParameter&&e.LineSymbolizer.Stroke.CssParameter.$||"#808080":e.PointSymbolizer&&e.PointSymbolizer.Graphic&&e.PointSymbolizer.Graphic.Mark&&e.PointSymbolizer.Graphic.Mark.Fill&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter.$||"#808080"},S={getStyleService:function(e,t){var n=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(n),{pathname:n.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.xml",query:l()({},v(e,t),{fullSLD:!0})}))},getCapabilitiesUrl:function(e){var t=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(t),{pathname:t.applicationRootPath+"/rest/sldservice/capabilities.json"}))},getStyleMetadataService:function(e,t){var n=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(n),{pathname:n.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.json",query:t}))},getStyleParameters:function(e,t){return{SLD:S.getStyleService(e,t),viewparams:v(e,t).viewparams}},getMetadataParameters:function(e,t){return v(e,t)},getFieldsService:function(e){var t=Object(r.e)(Object(d.getLayerUrl)(e)),n=e.thematic&&e.thematic.datatable||e.name;return i.a.format(l()(w(t),{pathname:t.applicationRootPath+"/rest/sldservice/"+n+"/attributes.json"}))},readFields:function(e){return Object(a.sortBy)(Object(a.castArray)(e.Attributes.Attribute||[]).filter((function(e){return t=e.type,-1!==["Integer","Long","Double","Float","BigDecimal"].indexOf(t);var t})).map((function(e){return{name:e.name,type:(e.type,"number")}})),(function(e){return e.name}))},readClassification:function(e){!function(e){if(!e||!e.Rules||!e.Rules.Rule)throw new Error("toc.thematic.invalid_object");Object(a.castArray)(e.Rules.Rule).forEach((function(e){if(!e.PolygonSymbolizer&&!e.LineSymbolizer&&!e.PointSymbolizer)throw new Error("toc.thematic.invalid_geometry")}))}(e);var t=Object(a.castArray)(e.Rules.Rule||[]);return t.map((function(e,n){var r,o,i,a;return{title:e.Title,color:O(e),type:_(e),min:x([e.Filter.And&&(e.Filter.And.PropertyIsGreaterThanOrEqualTo||e.Filter.And.PropertyIsGreaterThan).Literal,e.Filter.PropertyIsEqualTo&&e.Filter.PropertyIsEqualTo.Literal,n===t.length-1&&(null==e||null===(r=e.Filter)||void 0===r||null===(o=r.PropertyIsGreaterThanOrEqualTo)||void 0===o?void 0:o.Literal)]),max:x([e.Filter.And&&(e.Filter.And.PropertyIsLessThanOrEqualTo||e.Filter.And.PropertyIsLessThan).Literal,e.Filter.PropertyIsEqualTo&&e.Filter.PropertyIsEqualTo.Literal,0===n&&(null==e||null===(i=e.Filter)||void 0===i||null===(a=i.PropertyIsLessThan)||void 0===a?void 0:a.Literal)])}}))||[]},readRasterClassification:function(e){var t,n,r,o;return((null===(n=Object(a.castArray)(null==e||null===(t=e.Rules)||void 0===t?void 0:t.Rule)[0])||void 0===n||null===(r=n.RasterSymbolizer)||void 0===r||null===(o=r.ColorMap)||void 0===o?void 0:o.ColorMapEntry)||[]).map((function(e){return{color:e["@color"],opacity:void 0===e["@opacity"]?1:e["@opacity"],label:e["@label"],quantity:parseFloat(e["@quantity"])}}))},methods:["equalInterval","quantile","jenks"],getThematicParameters:function(e){return e.map((function(e){return e.type&&S.standardParams[e.type]&&l()({},S.standardParams[e.type],e)||e}))},standardParams:{aggregate:{title:"toc.thematic.classification_aggregate",defaultValue:"sum",values:[{name:"toc.thematic.values.sum",value:"sum"},{name:"toc.thematic.values.avg",value:"avg"},{name:"toc.thematic.values.count",value:"count"},{name:"toc.thematic.values.min",value:"min"},{name:"toc.thematic.values.max",value:"max"}]}},getColor:b,getColors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t?t.thematic.colors||[].concat(h(e),h(t.thematic.additionalColors||[])):r?[r].concat(h(e)):h(e);return o.map((function(e){return!Object(a.isString)(e.colors)&&e.colors.length>=n?e:l()({},e,{colors:c.a.scale(e.colors).colors(n)})}))},hasThematicStyle:function(e){return!!(e&&e.params&&e.params.SLD)},removeThematicStyle:function(e){e.SLD,e.viewparams;var t=p(e,["SLD","viewparams"]);return l()({},t,{SLD:null,viewparams:null})},defaultParams:{attribute:"",intervals:5,method:"equalInterval",ramp:"red",field:"",open:!1,strokeWeight:.2,strokeColor:"#ff0000",strokeOn:!1}};t.a=S},"./MapStore2/web/client/api/StyleEditor.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return x}));var r=n("./MapStore2/node_modules/lodash/isEqual.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/ajax.js"),a=n.n(i),s=n("./MapStore2/web/client/api/geoserver/Styles.js"),l=n("./MapStore2/web/client/api/SLDService.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return t.map((function(t){return t.ruleId===e?n(t):t}))}var b={updateStyleService:function(e){var t=e.baseUrl,n=e.styleService,r=null!=n&&n.isStatic?n.baseUrl:t;if(g[r])return new Promise((function(e){return e(g[r])}));var o=l.a.getCapabilitiesUrl({url:r});return(null!=n&&n.isStatic?new Promise((function(e){return e(n)})):s.a.getStyleService({baseUrl:r})).then((function(e){return a.a.get(o).then((function(t){var n=t.data;return[e,n]})).catch((function(){return[e,null]}))})).then((function(e){var t,n,o,i,a,s,l,u,d,f=p(e,2),y=f[0],b=f[1],v=c(c({},y),{},{classificationMethods:b?(t=b,n=(t||{}).capabilities,o=void 0===n?{}:n,i=o.vector,a=void 0===i?{}:i,s=o.raster,l=void 0===s?{}:s,u=a.classifications||[],d=l.classifications||[],{vector:u.filter((function(e){return-1!==h.indexOf(e)})),raster:d.filter((function(e){return-1!==h.indexOf(e)}))}):{vector:m,raster:m}});return g[r]=v,v}))}};function v(e){var t=e.baseUrl,n=e.styleService;return b.updateStyleService({baseUrl:t,styleService:n})}function w(e){var t=e.values,n=e.properties,r=e.rules,i=e.layer,s=["intervals","method","reverse","attribute","ramp"],u=c(c({},n),t),p=n.ruleId;if(void 0!==t.ramp&&t.ramp!==n.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=l.a.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),u),{},{classification:u.classification.map((function(e,t){return c(c({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var h=s.reduce((function(e,t){return c(c({},e),{},d({},t,n[t]))}),{}),m=s.reduce((function(e,t){return c(c({},e),{},d({},t,u[t]))}),{});if(!s.find((function(e){return void 0===u[e]}))&&!o()(h,m)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method)){var g="custom"===u.ramp&&u.classification.length>0&&{name:"custom",colors:u.classification.map((function(e){return e.color}))},b=l.a.getColor(void 0,u.ramp,u.intervals,g);return a.a.get(l.a.getStyleMetadataService(i,c({intervals:u.intervals,method:u.method,attribute:u.attribute,reverse:u.reverse},b))).then((function(e){var n=e.data;return y(p,r,(function(e){return c(c(c({},e),t),{},{classification:l.a.readClassification(n),errorId:void 0})}))})).catch((function(){return y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:"styleeditor.classificationError"})}))}))}return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:void 0})})))}))}function x(e){var t=e.values,n=e.properties,r=e.rules,i=e.layer,s=["intervals","continuous","method","reverse","ramp"],u=c(c({},n),t),p=n.ruleId,f=s.reduce((function(e,t){return c(c({},e),{},d({},t,n[t]))}),{}),h=s.reduce((function(e,t){return c(c({},e),{},d({},t,u[t]))}),{});if(!s.find((function(e){return void 0===u[e]}))&&!o()(f,h)){var m="custom"===u.ramp&&u.classification.length>0&&{name:"custom",colors:u.classification.map((function(e){return e.color}))},g=l.a.getColor(void 0,u.ramp,u.intervals,m);return a.a.get(l.a.getStyleMetadataService(i,c({intervals:u.intervals,continuous:u.continuous,method:u.method,reverse:u.reverse},g))).then((function(e){var n=e.data;return y(p,r,(function(e){return c(c(c({},e),t),{},{classification:l.a.readRasterClassification(n),errorId:void 0})}))})).catch((function(){return y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:"styleeditor.classificationRasterError"})}))}))}return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:void 0})})))}))}},"./MapStore2/web/client/api/WMTS.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./node_modules/url/url.js"),s=n.n(a),l=n("./node_modules/object-assign/index.js"),u=n.n(l),c=n("./node_modules/xml2js/lib/xml2js.js"),d=n.n(c),p=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),h=n("./MapStore2/web/client/utils/WMTSUtils.js"),m={},g=function(e){var t=s.a.parse(e,!0);return s.a.format(u()({},t,{search:null},{query:u()({SERVICE:"WMTS",VERSION:"1.0.0",REQUEST:"GetCapabilities"},t.query)}))},y=function(e,t,n,r,o){for(var i=e.Capabilities.Contents,a=Object(h.getOperations)(e),s=Object(h.getRequestEncoding)(e),l=i.TileMatrixSet&&Object(p.castArray)(i.TileMatrixSet)||[],c=[],d=l.length,m=0;m=t-1&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=m()((null==e?void 0:e.entry)||[]);return t.reduce((function(e,t){return w(w({},e),{},x({},t["@key"],t.$))}),{})},T=function(e){var t=e.baseUrl,n=e.styleName,r=e.metadata,i=E(w(w({},Object(g.h)(n)),{},{geoserverBaseUrl:t}));return o.a.get(i).then((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data,a=void 0===n?{}:n;return o.a.put(i,{style:w(w({},a.style),{},{metadata:w(w({},C(null===(e=a.style)||void 0===e?void 0:e.metadata)),r)})})}))},k={saveStyle:function(e,t,n,r){var i=e+"styles/"+encodeURI(t),s=a()({},r);return s.headers=a()({},s.headers,{"Content-Type":"application/vnd.ogc.sld+xml"}),o.a.put(i,n,s)},getStyleService:function(e){var t=e.baseUrl;return function(e){var t=e.baseUrl;return c[t]?new Promise((function(e){return e(c[t])})):o.a.all([o.a.get("".concat(t,"rest/about/version"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"about.resource")})).catch((function(){return null})),o.a.get("".concat(t,"rest/about/manifest"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"about.resource")})).catch((function(){return null})),o.a.get("".concat(t,"rest/fonts"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"fonts")})).catch((function(){return null}))]).then((function(e){var n=l(e,3),r=n[0],o=n[1],i=n[2],a={version:r&&d(r),manifest:o&&d(o),fonts:i};return r&&o?(c[t]=a,c[t]):a}))}({baseUrl:t}).then((function(e){var n=e.version,r=e.manifest,o=e.fonts,i=void 0===o?[]:o;if(!n)return null;var a=(r||[]).map((function(e){var t=e.name;return f()(_.filter((function(e){var n=e.regex;return t.match(n)})).map((function(e){return e.format})))})).filter((function(e){return e})),s=f()(n.filter((function(e){var t=e.name;return"geoserver"===(void 0===t?"":t).toLowerCase()})))||{};return{baseUrl:t,version:s.version,formats:[].concat(y(a),["sld"]),availableUrls:[],fonts:i}}))},getStyle:function(e){var t=e.options,n=e.format,r=e.baseUrl,i=e.styleName,a=Object(g.h)(i),s=a.name,l=a.workspace,u=j({options:t,format:n,baseUrl:r,name:s,workspace:l});return o.a.get(u.url,u.options)},createStyle:function(e){var t=e.baseUrl,n=e.code,r=e.options,i=e.format,a=void 0===i?"sld":i,s=e.styleName,l=e.languageVersion,u=e.metadata,c=Object(g.h)(s),d=c.name,p=c.workspace,f=j({options:r,format:a,baseUrl:t,name:d,workspace:p,languageVersion:l},!0);return o.a.post(f.url,n,f.options).then((function(){return u?T({baseUrl:t,styleName:s,metadata:u}).then((function(){return null})).catch((function(){return null})):null}))},updateStyle:function(e){var t=e.baseUrl,n=e.code,r=e.options,i=e.format,a=void 0===i?"sld":i,s=e.styleName,l=e.languageVersion,u=e.metadata,c=Object(g.h)(s),d=c.name,p=c.workspace,f=j({options:r,format:a,baseUrl:t,name:d,workspace:p,languageVersion:l});return o.a.put(f.url,n,f.options).then((function(){return u?T({baseUrl:t,styleName:s,metadata:u}).then((function(){return null})).catch((function(){return null})):null}))},deleteStyle:function(e){var t=e.baseUrl,n=e.options,r=e.format,i=void 0===r?"sld":r,a=e.styleName,s=Object(g.h)(a),l=s.name,u=s.workspace,c=j({options:n,format:i,baseUrl:t,name:l,workspace:u});return o.a.delete(c.url,c.options)},getStylesInfo:function(e){var t=e.baseUrl,n=e.styles,r=void 0===n?[]:n,i=[],s=r.length;return new Promise((function(e){r&&0!==r.length?r.forEach((function(n,l){var u=n.name;return o.a.get(E(w(w({},Object(g.h)(u)),{},{geoserverBaseUrl:t}))).then((function(t){var n=t.data;i[l]=a()({},r[l],n&&n.style&&w(w(w({},n.style),n.style.metadata&&{metadata:C(n.style.metadata)}),{},{name:Object(g.l)(n.style)})||{}),0===--s&&e(i.filter((function(e){return e})))})).catch((function(){i[l]=a()({},r[l]),0===--s&&e(i.filter((function(e){return e})))}))})):e([])}))},getStyleCodeByName:function(e){var t=e.baseUrl,n=e.styleName,r=e.options,i=Object(g.h)(n),a=i.name,s=i.workspace,l=E({name:a,workspace:s,geoserverBaseUrl:t});return o.a.get(l,r).then((function(e){return e.data&&e.data.style&&e.data.style.name?o.a.get(E({workspace:s,geoserverBaseUrl:t,name:e.data.style.name,format:(n=e.data.style.filename,n.split(".").pop())})).then((function(t){var n=t.data;return w(w({},e.data.style),{},{code:n})})):null;var n}))},updateStyleMetadata:T};t.a=k},"./MapStore2/web/client/api/identify.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:{},c=a.attachJSON,d=a.itemId,f=void 0===d?null:d,h=function(t){return o.Observable.defer((function(){return s.a.get(e,{params:t})}))},m=function(t){return Object(i.g)(n,e,t)},g=Object(i.g)(n,e,t)?m:h;return c&&"application/json"!==t.info_format&&"application/json"!==t.outputFormat?o.Observable.forkJoin(g(t),g(p(p({},t),{},{info_format:"application/json"})).map((function(e){return e.data})).catch((function(){return o.Observable.of({})}))).map((function(e){var t=u(e,2),n=t[0],o=t[1];return p(p({},n),{},{features:o&&o.features&&o.features.filter((function(e){return!!Object(r.isNil)(f)||e.id===f})),featuresCrs:o&&o.crs&&Object(l.parseURN)(o.crs)})})):g(t).map((function(e){return e.data})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(e)?e:p(p({},e),{},{features:e.features&&e.features.filter((function(e){return!f||e.id===f}))}),features:e.features&&e.features.filter((function(e){return!f||e.id===f})),featuresCrs:e&&e.crs&&Object(l.parseURN)(e.crs)}}))}},"./MapStore2/web/client/api/mapBackground.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=function(e,t,n,i){var a=Object(r.get)(o.default.getDefaults(),"initialState.defaultState.catalog.default.staticServices.default_map_backgrounds.backgrounds").filter((function(e){return!i||e.title.indexOf(i)>-1})),s=a.filter((function(e,r){return r>=t-1&&r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return m}));var p=function(e){var t,n=e.searchText,r=e.staticFilter,o=e.blacklist,i=e.item,a=e.queriableAttributes,s=e.predicate,l=Object(u.generateTemplateString)(r||"")(i),c=n.split(" ").filter((function(e){return e})).filter((function(e){return o.indexOf(e.toLowerCase())<0}));return 0===c.length&&(c=n?[n]:[]),c.length>0&&(t="(".concat(c.map((function(e){return a.map((function(t){return"".concat(t," ").concat(s," '%").concat(e.replace("'","''"),"%'")})).join(" OR ")})).join(") AND (")).concat(")")),t=t?t.concat(l):l||null},f={nominatim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnFullData:!1};return n("./MapStore2/web/client/api/Nominatim.js").default.geocode(e,t).then((function(e){return t.returnFullData?e:l(e.data)}))},wfs:function(e,t){var n=t.url,r=t.typeName,i=t.queriableAttributes,a=void 0===i?[]:i,s=t.outputFormat,l=void 0===s?"application/json":s,u=t.predicate,f=void 0===u?"ILIKE":u,h=t.staticFilter,m=void 0===h?"":h,g=t.blacklist,y=void 0===g?[]:g,b=t.item,v=t.fromTextToFilter,w=void 0===v?p:v,x=t.returnFullData,_=void 0!==x&&x,O=d(t,["url","typeName","queriableAttributes","outputFormat","predicate","staticFilter","blacklist","item","fromTextToFilter","returnFullData"]),S=w({searchText:e,staticFilter:m,blacklist:y,item:b,queriableAttributes:a,predicate:f});return c.getFeatureSimple(n,o()({maxFeatures:10,typeName:r,outputFormat:l,cql_filter:S},O)).then((function(e){return _?e:e.features}))}},h={setService:function(e,t){f[e]=t},getService:function(e){return f[e]?f[e]:null}},m={Services:f,Utils:h}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n0?" selected":"",u=this.props.node.loadingError?" group-error":"",c=s.isDraggable?o.a.createElement(H.a,{key:"grabTool",tooltip:"toc.grabGroupIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=o.a.createElement("div",{className:"toc-default-group-head"},c,this.renderVisibility(u),o.a.createElement(M,{tooltipOptions:this.props.tooltipOptions,tooltip:this.props.titleTooltip,node:this.props.node,currentLocale:this.props.currentLocale,onClick:this.props.onToggle,onSelect:this.props.onSelect})),p=o.a.createElement(U,{level:this.props.level+1,onSort:this.props.onSort,onError:this.props.onError,setDndState:this.props.setDndState,position:"collapsible"},this.props.children);return this.props.node.showComponent&&!this.props.node.hide?o.a.createElement(i.a,W({className:(this.props.isDragging||this.props.node.placeholder?"is-placeholder ":"")+"toc-default-group toc-group-"+this.props.level+l+u,sortableStyle:this.props.sortableStyle,style:this.props.style,type:"group"},s),n(a(this.props.isDraggable?r(d):d)),this.props.isDragging||this.props.node.placeholder?null:p):null}}])&&X(t.prototype,n),r&&X(t,r),s}(o.a.Component);te(ne,"propTypes",{node:s.a.object,style:s.a.object,sortableStyle:s.a.object,onToggle:s.a.func,level:s.a.number,onSort:s.a.func,onError:s.a.func,propertiesChangeHandler:s.a.func,groupVisibilityCheckbox:s.a.bool,visibilityCheckType:s.a.string,currentLocale:s.a.string,selectedNodes:s.a.array,onSelect:s.a.func,titleTooltip:s.a.bool,tooltipOptions:s.a.object,setDndState:s.a.func,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDraggable:s.a.bool,isDragging:s.a.bool,isOver:s.a.bool}),te(ne,"defaultProps",{node:{},onToggle:function(){},style:{marginBottom:"16px",cursor:"pointer"},sortableStyle:{},propertiesChangeHandler:function(){},groupVisibilityCheckbox:!1,visibilityCheckType:"glyph",level:1,currentLocale:"en-US",joinStr:" - ",selectedNodes:[],onSelect:function(){},titleTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e},isDraggable:!1,isDragging:!1,isOver:!1});t.a=Object(l.a)("LayerOrGroup",ne)},"./MapStore2/web/client/components/TOC/DefaultLayer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/TOC/Node.jsx"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/TOC/enhancers/draggableComponent.jsx"),d=n("./MapStore2/web/client/components/TOC/fragments/VisibilityCheck.jsx"),p=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),f=n("./MapStore2/web/client/utils/TOCUtils.js");n("./MapStore2/web/client/components/TOC/fragments/css/toctitle.css");function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var te=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function ne(e){return(ne="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 re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(){return(oe=Object.assign||function(e){for(var t=1;t0?" selected":"",l="Error"===this.props.node.loadingError?" layer-error":"",u="Warning"===this.props.node.loadingError?" layer-warning":"",c=i.isDraggable?o.a.createElement(T.a,{key:"grabTool",tooltip:"toc.grabLayerIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=!!this.props.node.dummy,p=!d&&this.filterLayers(this.props.node)?this.renderNode(c,a,s,l,u,d,i):null,f=o.a.createElement("div",{style:d?{opacity:0,boxShadow:"none"}:{},className:"toc-list-item"},!this.props.filterText||this.props.filterText&&d?this.renderNode(c,a,s,l,u,d,i):p);return!1!==i.node.showComponent&&!i.node.hide&&this.props.filter(this.props.node)?r(i.isDraggable&&!d?n(f):f):null}}])&&ae(t.prototype,n),r&&ae(t,r),a}(o.a.Component);pe(me,"propTypes",{node:a.a.object,propertiesChangeHandler:a.a.func,onToggle:a.a.func,onContextMenu:a.a.func,onSelect:a.a.func,style:a.a.object,sortableStyle:a.a.object,activateLegendTool:a.a.bool,activateOpacityTool:a.a.bool,indicators:a.a.array,visibilityCheckType:a.a.string,currentZoomLvl:a.a.number,scales:a.a.array,additionalTools:a.a.array,legendOptions:a.a.object,currentLocale:a.a.string,selectedNodes:a.a.array,filterText:a.a.string,onUpdateNode:a.a.func,titleTooltip:a.a.bool,filter:a.a.func,showFullTitleOnExpand:a.a.bool,hideOpacityTooltip:a.a.bool,tooltipOptions:a.a.object,connectDragPreview:a.a.func,connectDragSource:a.a.func,connectDropTarget:a.a.func,isDraggable:a.a.bool,isDragging:a.a.bool,isOver:a.a.bool,language:a.a.string}),pe(me,"defaultProps",{style:{},sortableStyle:{},propertiesChangeHandler:function(){},onToggle:function(){},onContextMenu:function(){},onSelect:function(){},activateLegendTool:!1,activateOpacityTool:!0,indicators:[],visibilityCheckType:"glyph",additionalTools:[],currentLocale:"en-US",joinStr:" - ",selectedNodes:[],filterText:"",onUpdateNode:function(){},filter:function(){return!0},titleTooltip:!1,showFullTitleOnExpand:!1,hideOpacityTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e}});t.a=Object(c.a)("LayerOrGroup",me)},"./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return a.a.Children.map(this.props.children,(function(n){if(t(n)){var r=(n.type.inheritedPropTypes||["node"]).reduce((function(t,n){return e.props[n]?c()(t,p({},n,e.props[n])):t}),{});return a.a.cloneElement(n,r)}return null}))},render:function(){var e=void 0===this.props.node.expanded||this.props.node.expanded,t=this.props.type,n=c()({},this.props.style,this.props.styler(this.props.node)),r=e&&"Error"!==this.props.node.loadingError?this.renderChildren((function(e){return e&&"collapsible"===e.props.position})):[];return this.props.animateCollapse&&(r=a.a.createElement(d.CSSTransitionGroup,{transitionName:"TOC-Node",transitionEnterTimeout:250,transitionLeaveTimeout:250},r)),a.a.createElement("div",{key:this.props.node.name,className:(e?t+"-expanded":t+"-collapsed")+" "+this.props.className,style:this.props.node.dummy?{padding:0}:n},this.renderChildren((function(e){return e&&"collapsible"!==e.props.position})),r)}});t.a=f},"./MapStore2/web/client/components/TOC/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/flatten.js"),d=n.n(c);function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;ta&&d>2*p)return;da&&d>f)return;r.sortIndex=e.sortIndex,r.newParentNodeId=e.parentNodeId,r.illegalDrop=null}e.setDndState&&e.setDndState(r)}}}},p=function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver({shallow:!0})}};t.a=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)(e,u,c),Object(i.DropTarget)(e,d,p)),Object(a.compose)(Object(i.DropTarget)(e,d,p))).apply(void 0,n)}},"./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],o=Object.keys(d.options).reduce((function(e,t){return a(a({},e),{},s({},t,"opacity"!==t||c[t]?c[t]:1))}),{});Object(r.isEqual)(o,d.options)||e?(Object(r.isArray)(t)&&t.forEach((function(e){Object(r.isFunction)(e)&&e()})),u(d.node,d.nodeType,a(a({},d.options),c)),f(),m(!1),i({}),n({})):m(!0)}},onSave:function(e){var t=e.onUpdateInitialSettings,n=void 0===t?function(){}:t,o=e.onUpdateOriginalSettings,i=void 0===o?function(){}:o,a=e.onHideSettings,s=void 0===a?function(){}:a,l=e.onShowAlertModal,u=void 0===l?function(){}:l;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(r.isArray)(e)&&e.forEach((function(e){Object(r.isFunction)(e)&&e()})),s(),u(!1),i({}),n({})}}}),Object(o.lifecycle)({componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,s=void 0===i?function(){}:i;o({}),s(a({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,o=void 0===n?{}:n,i=t.onRetrieveLayerData,a=void 0===i?function(){}:i;!o.expanded&&e.settings&&e.settings.expanded&&Object(r.isNil)(e.element.description)&&"wms"===e.element.type&&a(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,s=t.onUpdateOriginalSettings,l=void 0===s?function(){}:s,u=t.onUpdateInitialSettings,c=void 0===u?function(){}:u,d=t.onSetTab,p=void 0===d?function(){}:d;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),c(a({},e.element)),p(r))}})),c=Object(o.compose)(l,u)},"./MapStore2/web/client/components/TOC/fragments/LayersTool.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nt.state.containerWidth})),t.containerRef=o.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.containerRef.current&&this.containerRef.current.clientWidth;this.setState(function(e){for(var t=1;t=12?n:""))})})),O(x(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),O(x(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(g(g({},t.state),{},{opacity:Object(r.isNil)(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:g(g({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),O(x(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),O(x(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&Object(r.isNumber)(t.state.legendOptions.legendHeight)&&Object(r.isNumber)(t.state.legendOptions.legendWidth)})),t.containerRef=s.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e=this;return s.a.createElement(l.Grid,{fluid:!0,className:"fluid-container "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.format"})),s.a.createElement(u.DropdownList,{key:"format-dropdown",data:this.props.formats||["image/png","image/png8","image/jpeg","image/vnd.jpeg-png","image/gif"],value:this.props.element&&this.props.element.format||"image/png",onChange:function(t){e.props.onChange("format",t)}}))),s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"WMS Layer tile size"})),s.a.createElement(u.DropdownList,{key:"wsm-layersize-dropdown",data:[256,512],value:this.props.element&&this.props.element.tileSize||256,onChange:function(t){e.props.onChange("tileSize",t)}})))),s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,this.props.opacityText," %"),s.a.createElement(c.a,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(t){return e.onChange("opacity",t)}})))),"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement("hr",null),s.a.createElement(l.FormGroup,null,s.a.createElement(l.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(t){e.props.onChange("transparent",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.transparent"})),s.a.createElement(l.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(t){return e.props.onChange("tiled",t.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},s.a.createElement(d.default,{msgId:"layerProperties.cached"})),s.a.createElement(l.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(t){return e.props.onChange("singleTile",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&s.a.createElement(l.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(t){return e.props.onChange("localizedLayerStyles",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",s.a.createElement(p.a,{text:s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})))),s.a.createElement("div",{className:"legend-options"},s.a.createElement(l.Col,{xs:12,className:"legend-label"},s.a.createElement("label",{key:"legend-options-title",className:"control-label"},s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.title"}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"first-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendWidth")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendWidth"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendWidth",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"second-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendHeight")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendHeight"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendHeight",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,className:"legend-preview"},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendPreview"})),s.a.createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},s.a.createElement(f.a,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&y(t.prototype,n),o&&y(t,o),a}(s.a.Component);O(S,"propTypes",{opacityText:i.a.node,element:i.a.object,formats:i.a.array,settings:i.a.object,onChange:i.a.func,containerWidth:i.a.number,currentLocaleLanguage:i.a.string,isLocalizedLayerStylesEnabled:i.a.bool}),O(S,"defaultProps",{onChange:function(){},opacityText:s.a.createElement(d.default,{msgId:"opacity"})})},"./MapStore2/web/client/components/TOC/fragments/settings/General.jsx":function(e,t,n){"use strict";n("./node_modules/react-selectize/themes/index.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-selectize/src/index.js"),p=n("./node_modules/react-spinkit/dist/index.js"),f=n.n(p),h=n("./MapStore2/web/client/utils/LocaleUtils.js"),m=n("./MapStore2/web/client/utils/TOCUtils.js"),g=n("./MapStore2/web/client/components/I18N/Message.jsx"),y=n("./node_modules/recompose/es/Recompose.js"),b=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),v=Object(y.compose)(Object(y.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),Object(y.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),Object(y.withState)("layerName","setLayerName",""),Object(y.withState)("editingLayerName","setEditingLayerName",!1),Object(y.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),Object(y.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),Object(y.withState)("layerError","setLayerError"),Object(y.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,a=e.setOverlayTriggerDelayID,s=void 0===a?function(){}:a,l=e.setEnableOverlayTrigger,u=void 0===l?function(){}:l;return function(e){n!==e&&(r&&clearTimeout(r),u(!1),s(setTimeout((function(){u(!0)}),250))),i(e)}}}),Object(y.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,a=void 0===i?function(){}:i,s=e.setWaitingForLayerLoading,l=void 0===s?function(){}:s,u=e.setEditingLayerName,c=void 0===u?function(){}:u,d=e.setLayerError,p=void 0===d?function(){}:d;r&&n.loading?(l(!1),a(!0)):o&&!n.loading&&(a(!1),p(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,a=void 0!==i&&i,s=e.layerName,l=void 0===s?"":s,d=e.editingLayerName,p=void 0!==d&&d,h=e.layerError,m=e.waitingForLayerLoading,y=void 0!==m&&m,v=e.waitingForLayerLoad,w=void 0!==v&&v,x=e.setLayerName,_=void 0===x?function(){}:x,O=e.setWaitingForLayerLoading,S=void 0===O?function(){}:O,j=e.setEditingLayerName,E=void 0===j?function(){}:j,C=e.onUpdateEntry,T=void 0===C?function(){}:C,k=u.a.createElement(c.InputGroup.Addon,{className:"btn",onClick:function(){p?l!==o.name?(T("name",{target:{value:l}}),a?S(!0):E(!1)):E(!1):E(!0)}},y||w?u.a.createElement(f.a,{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):u.a.createElement(c.Glyphicon,{glyph:p?"ok":"pencil"}));return u.a.createElement(c.FormGroup,{validationState:!h||w||y?null:"error"},u.a.createElement(c.ControlLabel,null,u.a.createElement(g.default,{msgId:"layerProperties.name"})),u.a.createElement(c.InputGroup,null,u.a.createElement(c.FormControl,{value:l,key:"name",type:"text",disabled:!p,onChange:function(e){return _(e.target.value)}}),n?(t=k,u.a.createElement(b.a,{placement:"top",overlay:u.a.createElement(c.Tooltip,{id:"tooltip-layer-name-edit"},u.a.createElement(g.default,{msgId:"layerProperties.tooltip.".concat(p?"confirm":"edit","LayerName")}))},t)):k))}));function w(e){return(w="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 x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;tthis.props.maxZoom||this.props.currentZoom+this.props.step=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g={base:190,range:0,s:.95,v:.63},y=function(e,t){var n=t.base,r=t.range,o=m(t,["base","range"]);return(Object(c.c)(n,r,e+1,o)||[0]).slice(1)};function b(e){var t=e.type,n=e.isModeBarVisible;switch(t){case"pie":return{t:n?20:5,b:5,l:2,r:2,pad:4};default:return{l:5,r:5,b:30,t:n?20:5,pad:4}}}function v(e){var t=e.series,n=void 0===t?[]:t,r=e.cartesian,o=e.type,i=e.yAxis,a=e.xAxisAngle,s=e.xAxisOpts,l=void 0===s?{}:s,u=e.yAxisOpts,c=void 0===u?{}:u,d=e.data,p=void 0===d?[]:d,f=e.autoColorOptions,h=void 0===f?g:f;switch(o){case"pie":return{colorway:y(p.length,h)};default:return{colorway:y(n.length,h),yaxis:{type:null==c?void 0:c.type,automargin:!0,tickformat:null==c?void 0:c.format,tickprefix:null==c?void 0:c.tickPrefix,ticksuffix:null==c?void 0:c.tickSuffix,showticklabels:!0===i,showgrid:r},xaxis:{showgrid:r,type:null==l?void 0:l.type,showticklabels:!(null!=l&&l.hide),nticks:l.nTicks,automargin:!0,tickangle:null!=a?a:"auto"}}}}var w=function(e){var t=e.xAxis,n=e.series,r=void 0===n?[]:n,o=e.yAxisLabel,i=e.type,a=void 0===i?"line":i,s=e.height,l=e.width,u=e.legend,c=null==t?void 0:t.dataKey,p=l>350;return{layout:f(f({showlegend:u},v(f({},e))),{},{margin:b(f(f({},e),{},{isModeBarVisible:p})),autosize:!1,automargin:!1,height:s,width:l}),data:r.map((function(t){var n=t.dataKey;return f({type:a,name:o||n},function(e){var t=e.type,n=e.xDataKey,r=e.yDataKey,o=e.data,i=e.formula,a=o.map((function(e){return e[n]})),s=o.map((function(e){return e[r]}));switch(t){case"pie":return{textposition:"inside",values:s,labels:a};default:return i&&(s=s.map((function(e){var t=e;try{return Object(d.a)(i,{value:t})}catch(t){return e}}))),{x:a,y:s}}}(f(f({},e),{},{xDataKey:c,yDataKey:n})))})),config:{displayModeBar:p,modeBarButtonsToRemove:["lasso2d","select2d","hoverCompareCartesian","hoverClosestCartesian","hoverClosestPie"],displaylogo:!1}}};t.a=function(e){var t=e.onInitialized,n=m(e,["onInitialized"]),r=w(n),i=r.data,a=r.layout,s=r.config;return o.a.createElement(u,{onInitialized:t,data:i,layout:a,config:s})}},"./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/I18N/Message.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0;return E.a.Observable.timer(e)})).scan((function(e){return e+1}),0).map((function(e){return{scrollToTopCounter:e}})).startWith({}),(function(e,t){return T(T(T({},e),t),{},{scrollToTop:n})}))})),Object(S.withHandlers)({onGridSort:function(e){var t=e.onGridSort,n=void 0===t?function(){}:t,r=e.scrollToTop,o=void 0===r?function(){}:r;return function(){return o(0),n.apply(void 0,arguments)}},onAddFilter:function(e){var t=e.onAddFilter,n=void 0===t?function(){}:t,r=e.scrollToTop,o=void 0===r?function(){}:r;return function(){o(1e3),n.apply(void 0,arguments)}}})))(O),M=n("./MapStore2/node_modules/lodash/lodash.js"),I=n("./MapStore2/web/client/utils/featuregrid/EditorRegistry.jsx"),D=n.n(I),N=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),R=n("./MapStore2/web/client/components/data/featuregrid/editors/AttributeEditor.jsx"),L=n("./MapStore2/web/client/components/data/featuregrid/editors/NumberEditor.jsx"),F=n("./MapStore2/web/client/observables/autocomplete.js"),z=n("./MapStore2/web/client/utils/ConfigUtils.js"),B=n("./node_modules/recompose/rxjsObservableConfig.js"),q=n.n(B),U=n("./MapStore2/web/client/components/misc/combobox/PagedCombobox.jsx");function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return Object(M.isNil)(t)?null:a.a.createElement("span",null,t.toString())}:["int","number"].includes(e.localType)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return Object(M.isNil)(t)?null:a.a.createElement(de.a,{value:t,numberParams:{maximumFractionDigits:17}})}:null};function fe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function he(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ni.totalFeatures-1?i.totalFeatures-1:r+l,c=Math.floor(a/t),d=Math.floor(u/t),p=!1,f=c;f<=d&&!p;f++)-1===Object(s.j)(f*t,o,t)&&(p=!0);return p&&{startPage:c,endPage:d}})).filter((function(e){return e})).do((function(e){return n.moreFeatures(e)}))}))}(e.filter((function(e){return e.virtualScroll})).map((function(e){return ye(ye({},e),{},{onGridScroll$:r})}))).startWith({}).map((function(e){return ye(ye({},e),{},{onGridScroll:n})}))},virtualScroll:!0}),Object(S.withPropsOnChange)("showDragHandle",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showDragHandle,n=void 0===t||t;return{className:n?"feature-grid-drag-handle-show":"feature-grid-drag-handle-hide"}})),Object(S.withPropsOnChange)(["enableColumnFilters"],(function(e){return{displayFilters:e.enableColumnFilters}})),Object(S.withPropsOnChange)(["editingAllowedRoles","virtualScroll"],(function(e){return{editingAllowedRoles:e.editingAllowedRoles,initPlugin:e.initPlugin}})),Object(S.withPropsOnChange)(["autocompleteEnabled"],(function(e){return{autocompleteEnabled:e.autocompleteEnabled}})),Object(S.withPropsOnChange)(["url"],(function(e){return{url:e.url}})),Object(S.withPropsOnChange)(["typeName"],(function(e){return{typeName:e.typeName}})),Object(S.withPropsOnChange)(["features","newFeatures","changes"],(function(e){return{rows:(e.newFeatures?[].concat(he(e.newFeatures),he(e.features)):e.features).filter(e.focusOnEdit?Object(s.b)(e.changes&&Object.keys(e.changes).length>0,e.newFeatures,e.changes):function(){return!0}).map((function(t){return Object(s.a)(t,e.changes)})).map((function(e){return ye(ye({},e),{},{get:function(t){return"id"===t||"geometry"===t||"_new"===t?e[t]:e.properties&&e.properties[t]}})}))}})),Object(S.withPropsOnChange)(["newFeatures","changes","focusOnEdit"],(function(e){return{isFocused:e.focusOnEdit&&(e.changes&&Object.keys(e.changes).length>0||e.newFeatures&&e.newFeatures.length>0)}})),Object(S.withPropsOnChange)(["features","newFeatures","isFocused","virtualScroll","pagination"],(function(e){return{rowsCount:(e.isFocused||!e.virtualScroll)&&e.rows&&e.rows.length||e.pagination&&e.pagination.totalFeatures||0}})),Object(S.withHandlers)({rowGetter:function(e){return e.virtualScroll&&function(t){return Object(s.k)(t,e.rows,e.pages,e.size)}||function(t){return Object(s.i)(t,e.rows)}}}),Object(S.withPropsOnChange)(["describeFeatureType","columnSettings","tools","actionOpts","mode","isFocused","sortable"],(function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.localType,r=void 0===n?"":n,o=arguments.length>1?arguments[1]:void 0;return e.filterRenderers&&e.filterRenderers[o]?e.filterRenderers[o]:ue(Object(ce.a)(r))};return{columns:Object(s.l)(e.tools,e.rowGetter,e.describeFeatureType,e.actionOpts,t).concat(Object(s.c)(e.describeFeatureType,e.columnSettings,{editable:"EDIT"===e.mode,sortable:e.sortable&&!e.isFocused,defaultSize:e.defaultSize},{getEditor:function(t){var n={onTemporaryChanges:e.gridEvents&&e.gridEvents.onTemporaryChanges,autocompleteEnabled:e.autocompleteEnabled,url:e.url,typeName:e.typeName},r={attribute:t.name,url:e.url,typeName:e.typeName},o=e.customEditorsOptions&&e.customEditorsOptions.rules||[],i={type:t.localType,generalProps:n,props:e},a=D.a.getCustomEditor(r,o,i);return Object(M.isNil)(a)?e.editors(t.localType,n):a},getFilterRenderer:t,getFormatter:function(e){return pe(e)}}))}})),Object(S.withPropsOnChange)(["gridOpts","describeFeatureType","actionOpts","mode","select","columns"],(function(e){var t=Object(s.g)(e.gridEvents,e.rowGetter,e.describeFeatureType,e.actionOpts,e.columns),n=t.onRowsSelected,r=void 0===n?function(){}:n,o=t.onRowsDeselected,i=void 0===o?function(){}:o,a=t.onRowsToggled,l=void 0===a?function(){}:a,u=fe(t,["onRowsSelected","onRowsDeselected","onRowsToggled"]),c=e.gridOpts;return c=ye(ye({},c),{},{enableCellSelect:"EDIT"===e.mode,rowSelection:{showCheckbox:"EDIT"===e.mode,selectBy:{keys:{rowKey:"id",values:e.select.map((function(e){return e.id}))}},onRowsSelected:r,onRowsDeselected:i}}),u.onRowClick=function(e,t){e>=0&&l([{rowIdx:e,row:t}])},ye(ye({},u),c)})),N.a);function we(e){return(we="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 xe(){return(xe=Object.assign||function(e){for(var t=1;t=e)})),l.state={inputText:null!==(t=null===(n=e.value)||void 0===n||null===(r=n.toString)||void 0===r?void 0:r.call(n))&&void 0!==t?t:""},l.inputRef=o.a.createRef(),l}return t=a,(n=[{key:"componentDidMount",value:function(){var e,t;null===(e=(t=this.props).onTemporaryChanges)||void 0===e||e.call(t,!0)}},{key:"componentWillUnmount",value:function(){var e,t;null===(e=(t=this.props).onTemporaryChanges)||void 0===e||e.call(t,!1)}},{key:"getValue",value:function(){try{var e=b[this.props.dataType](this.state.inputText);return y({},this.props.column.key,this.validateNumberValue(e)?e:this.props.value)}catch(e){return y({},this.props.column.key,this.props.value)}}},{key:"getInputNode",value:function(){return this.inputRef.current}},{key:"render",value:function(){var e=this;return o.a.createElement(l.a,c({},this.props.inputProps,{style:!this.state.validated||this.state.isValid?{}:{borderColor:"red"},value:this.state.inputText,ref:function(t){e.inputRef=t},type:"number",min:this.props.minValue,max:this.props.maxValue,className:"form-control",defaultValue:this.props.value,onChange:function(t){e.setState({inputText:t,isValid:e.validateTextValue(t),validated:!0})}}))}}])&&d(t.prototype,n),r&&d(t,r),a}(o.a.Component);y(v,"propTypes",{value:a.a.oneOfType([a.a.string,a.a.number]),inputProps:a.a.object,dataType:a.a.string,minValue:a.a.number,maxValue:a.a.number,column:a.a.object,onTemporaryChanges:a.a.func}),y(v,"defaultProps",{dataType:"number",column:{}})},"./MapStore2/web/client/components/data/featuregrid/editors/customEditors.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/data/featuregrid/editors/DropDownEditor.jsx"),a=n("./MapStore2/web/client/components/data/featuregrid/editors/NumberEditor.jsx"),s=n("./node_modules/prop-types/index.js"),l=n.n(s);function u(e){return(u="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 c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n-1&&e.setState({focusedItemIndex:l})}})),j(O(e),"scrollDown",(function(t){var n=e.itemsRef[t];n&&n.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=n.offsetTop-e.listRef.offsetTop)})),j(O(e),"scrollUp",(function(t){var n=e.itemsRef[t];if(n){var r=e.listRef.scrollTop,o=n.offsetTop;r&&o|<=|>=|===|==|=|<|>)?(.*)/.exec(n);e.setState({inputValue:r[2],operator:r[1]||""}),e.inputFlush=!0})),F(R(e),"handleCalendarChange",(function(t){var n=q(t,new Date),r=e.format(n);e.setState({date:n,inputValue:r,open:""}),e.props.onChange(n,"".concat(e.state.operator).concat(r))})),F(R(e),"handleTimeSelect",(function(t){var n=e.state.date||new Date,r=q(n,t.date),o=e.format(r);e.setState({date:r,inputValue:o,open:""}),e.props.onChange(r,"".concat(e.state.operator).concat(o))})),F(R(e),"attachTimeRef",(function(t){return e.timeRef=t})),F(R(e),"attachCalRef",(function(t){return e.calRef=t})),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.operator;this.setDateFromValueProp(t,n)}},{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value||e.operator!==this.props.operator){var t=this.props,n=t.value,r=t.operator;this.setDateFromValueProp(n,r)}}},{key:"render",value:function(){var e=this,t=this.state,n=t.open,r=t.inputValue,o=t.operator,a=t.focused,s=this.props,l=s.calendar,u=s.time,c=s.toolTip,p=s.placeholder,f=s.tabIndex,h=Object.keys(this.props).reduce((function(t,n){return["placeholder","calendar","time","onChange","value"].includes(n)||(t[n]=e.props[n]),t}),{}),m="date"===n,g="time"===n;return i.a.createElement("div",{tabIndex:"-1",onKeyDown:this.handleKeyDown,onBlur:this.handleWidgetBlur,onFocus:this.handleWidgetFocus,className:"rw-datetimepicker rw-widget ".concat(l&&u?"rw-has-both":""," ").concat(l||u?"":"rw-has-neither"," ").concat(a?"rw-state-focus":"")},this.renderInput(r,o,c,p,f,m,g),l||u?i.a.createElement("span",{className:"rw-select"},l?i.a.createElement("button",{tabIndex:"-1",title:"Select Date",type:"button","aria-disabled":"false","aria-label":"Select Date",className:"rw-btn-calendar rw-btn",onClick:this.toggleCalendar},i.a.createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-calendar"})):"",u?i.a.createElement("button",{tabIndex:"-1",title:"Select Time",type:"button","aria-disabled":"false","aria-label":"Select Time",className:"rw-btn-time rw-btn",onClick:this.toggleTime},i.a.createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-clock-o"})):""):"",i.a.createElement("div",{className:"rw-popup-container rw-popup-animating",style:{display:g?"block":"none",overflow:g?"visible":"hidden",height:"216px"}},i.a.createElement("div",{className:"rw-popup rw-widget",style:{transform:g?"translateY(0)":"translateY(-100%)",position:g?"":"absolute"}},i.a.createElement(T,A({ref:this.attachTimeRef,onMouseDown:this.handleMouseDown},h,{onClose:this.close,onSelect:this.handleTimeSelect})))),i.a.createElement("div",{className:"rw-calendar-popup rw-popup-container ".concat(m?"":"rw-popup-animating"),style:{display:m?"block":"none",overflow:m?"visible":"hidden",height:"375px"}},i.a.createElement("div",{className:"rw-popup",style:{transform:m?"translateY(0)":"translateY(-100%)",padding:"0",borderRadius:"4px",position:m?"":"absolute"}},i.a.createElement(d.Calendar,A({tabIndex:"-1",ref:this.attachCalRef,onMouseDown:this.handleMouseDown,onChange:this.handleCalendarChange},h)))))}}])&&M(t.prototype,n),r&&M(t,r),a}(o.Component);F(V,"propTypes",{format:s.a.string,type:s.a.string,placeholder:s.a.string,onChange:s.a.func,calendar:s.a.bool,time:s.a.bool,value:s.a.any,operator:s.a.string,culture:s.a.string,toolTip:s.a.string,tabIndex:s.a.string}),F(V,"defaultProps",{placeholder:"Type date...",calendar:!0,time:!0,onChange:function(){},value:null});var W=V,Y=n("./MapStore2/web/client/utils/LocaleUtils.js"),K=n("./MapStore2/web/client/utils/TimeUtils.js");function X(e){return(X="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute,o=t.stringValue,i=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?(.*)/.exec(o),a=i[1],s=i[1]||"=";"!=="===a|"!="===a?s="<>":"==="===a|"=="===a&&(s="="),e.onValueChange(n),e.onChange({value:{startDate:n,operator:a},operator:s,type:e.type,attribute:r})}}}),Object(r.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.date",tooltipMsgId:"featuregrid.filter.tooltips.date"}))(ye),ve=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){}}),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n),e.onChange({value:n,operator:"=",type:e.type,attribute:r})}}}))(ie),we=n("./MapStore2/web/client/components/I18N/Message.jsx"),xe=function(e){var t=e.value,n=e.filterEnabled,r=void 0!==n&&n,o=e.filterDeactivated,a=void 0!==o&&o,s=e.column,l=void 0===s?{}:s,u=e.tooltipPlace,c=void 0===u?"top":u,d=e.tooltipDisabled,p=void 0===d?"featuregrid.filter.tooltips.geometry.disabled":d,f=e.tooltipEnabled,m=void 0===f?"featuregrid.filter.tooltips.geometry.enabled":f,y=e.tooltipApplied,b=void 0===y?"featuregrid.filter.tooltips.geometry.applied":y,v=e.onChange,w=void 0===v?function(){}:v,x=a?void 0:r&&t?b:r&&!t?m:p,_=i.a.createElement("div",{className:"featuregrid-geometry-filter".concat(r?" filter-enabled":"").concat(a?" filter-deactivated":""),onClick:a?function(){}:function(){w({enabled:!r,type:"geometry",attribute:l.geometryPropName})}},i.a.createElement(h.Glyphicon,{glyph:t?"remove-sign":"map-marker"}));return x?i.a.createElement(g.a,{placement:c,overlay:i.a.createElement(h.Tooltip,{id:"gofull-tooltip"},i.a.createElement(we.default,{msgId:x}))},_):_},_e=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?\s*(-?\d*\.?\d*)\s*/,Oe=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){}}),Object(r.withState)("valid","setValid",!0),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n);var o,i="=",a=_e.exec(n);a?("!=="===(i=a[1]||"=")|"!="===i?i="<>":"==="===i|"=="===i&&(i="="),o=parseFloat(a[2])):o=parseFloat(n,10),isNaN(o)&&""!==Object(m.trim)(n)?e.setValid(!1):e.setValid(!0),e.onChange({value:isNaN(o)?void 0:o,rawValue:n,operator:i,type:"number",attribute:r})}}}),Object(r.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.number",tooltipMsgId:"featuregrid.filter.tooltips.number"}))(ie),Se=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){},placeholderMsgId:"featuregrid.filter.placeholders.string"}),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n),e.onChange({rawValue:n,value:Object(m.trim)(n)?Object(m.trim)(n):void 0,operator:"ilike",type:"string",attribute:r})}}}))(ie);n.d(t,"a",(function(){return Ee}));var je={defaultFilter:function(e){return Object(r.withProps)((function(){return{type:e}}))(ve)},string:function(){return Se},number:function(){return Oe},int:function(){return Oe},date:function(){return Object(r.withProps)((function(){return{type:"date"}}))(be)},time:function(){return Object(r.withProps)((function(){return{type:"time"}}))(be)},"date-time":function(){return Object(r.withProps)((function(){return{type:"date-time"}}))(be)},geometry:function(){return xe}},Ee=function(e,t){return je[e]?je[e](e,t):je.defaultFilter(e,t)}},"./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/data/identify/DefaultViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./MapStore2/web/client/components/I18N/HTML.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),c=n("./node_modules/react-bootstrap/es/index.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(t.prototype,n),r&&d(t,r),i}(a.a.Component);y(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),y(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(r.withHandlers)({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),a=Object(r.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/query/AutocompleteListItem.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(u,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?l.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:s.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:s.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/map/popups/index.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),a=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/web/client/actions/mapInfo.js"),p=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),f=n("./MapStore2/node_modules/lodash/lodash.js"),h=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),m=n("./MapStore2/web/client/selectors/map.js"),g=Object(s.compose)(Object(l.connect)(Object(u.a)(c.j,(function(e){return{index:e}})),{setIndex:d.D}),Object(s.defaultProps)({index:0,responses:[]})),y=Object(u.a)([c.t,c.w,c.s,c.h,c.u,m.f,c.l],(function(e,t,n,r,o,i,a){return{responses:e,validResponses:t,requests:n,format:r,showEmptyMessageGFI:o,missingResponses:(n||[]).length-(e||[]).length,renderEmpty:i,loaded:a}})),b=Object(s.compose)(Object(l.connect)(y),Object(s.defaultProps)({responses:[],container:function(e){var t=e.index,n=e.children;return o.a.createElement(o.a.Fragment,null,Object(f.isArray)(n)&&n[t]||n)},header:h.a}),g,a.a,a.b,Object(i.a)((function(e){var t=e.loaded;return Object(f.isUndefined)(t)})))(p.a);n.d(t,"IDENTIFY_POPUP",(function(){return v}));var v="identify";t.default={identify:b}},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png":function(e,t,n){e.exports=n.p+"MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAQCAYAAACcN8ZaAAAB3klEQVR42s3U4UdDURzG8czMXJnJ1Vwzc6VJZjaZJdlMlpQsKdmUFNOUspRSSqUolfQfr+fF98Vx5mwv9qbDx7LdznnO7/7Omej3+/+Ga0QMUYkhbvBgmhzCQxwxibIGrGEF8CQhU+LLtKQkQNqScUgjxRxTBIxbgfgD/BgnhM8kM5KTeclLQYqGkkMRBckzR8ic/mAgd5BAZplsUaqyIg2sDtHg2brUZJk5SmwopErJUWE8SpmTMhNvya60Zd/SNrR4bkeaskG4uiwRZk6yrJEYFibGAxn+scECHTmTnuVCzvmty3PHciB7bGKN6lQkzysPqIrHmpFhYbKUtckC1/Ioz4ZHuZdbuSLYiRxRpSZVWXZVxAzC0R4Ik5SQsu6w8yd5l2/5kg95I9SdXMoZQfYIUjeqEUrgOkXGPeN4TYRhxy8E+ZUf+eS7B7miIoeybVSjKDnm8u3+gH3pDTYwu1igATvs/pXqvBKiR4i2bNJfi1ZfUAnjgrOG8wY2quNzBKuU/ZS+uSFEl5O0xRGuUIlZCcw7xG5QPkeHYUSNV5WXGou2sC3rBC0LjenqCXGO0WEiTJa0Lr4KixdHBrDGuGGiRqCUpFk8pGIpQtCU7p4YPwxYxEMCk1aAMQZh8Ac8PfbIzYPJOwAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/mapcontrols/mouseposition sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./CRSSelector":"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx","./CRSSelector.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx","./MousePosition":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx","./MousePosition.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx","./MousePositionLabelDD":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDD.jsx","./MousePositionLabelDD.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDD.jsx","./MousePositionLabelDM":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDM.jsx","./MousePositionLabelDM.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDM.jsx","./MousePositionLabelDMS":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx","./MousePositionLabelDMS.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx","./MousePositionLabelDMSNW":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx","./MousePositionLabelDMSNW.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx","./MousePositionLabelYX":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx","./MousePositionLabelYX.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx","./__tests__/CRSSelector-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/CRSSelector-test.js","./__tests__/CRSSelector-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/CRSSelector-test.js","./__tests__/MousePosition-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js","./__tests__/MousePosition-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js","./__tests__/MousePositionLabelDM-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDM-test.js","./__tests__/MousePositionLabelDM-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDM-test.js","./__tests__/MousePositionLabelDMS-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js","./__tests__/MousePositionLabelDMS-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js","./__tests__/MousePositionLabelDMSNW-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js","./__tests__/MousePositionLabelDMSNW-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js","./mousePosition.css":"./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./MapStore2/web/client/components/mapcontrols/mouseposition sync recursive ^\\.\\/.*$"},"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/CoordinatesUtils.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0?"N":"S"," "),a.a.createElement(u.a,{key:"lngD",numberParams:r,value:Object(l.roundCoord)({roundingBehaviour:"floor",value:Math.abs(e.lng),maximumFractionDigits:r.maximumFractionDigits})}),a.a.createElement("span",null,"° "),a.a.createElement(u.a,{key:"lngM",numberParams:t,value:Object(l.roundCoord)({roundingBehaviour:"floor",value:e.lngM,maximumFractionDigits:t.maximumFractionDigits})}),a.a.createElement("span",null,"' "),a.a.createElement(u.a,{key:"lngS",numberParams:n,value:e.lngS}),a.a.createElement("span",null,"'' ",e.lng>0?"E":"W")))}}])&&p(t.prototype,n),r&&p(t,r),i}(a.a.Component);b(v,"propTypes",{position:o.a.shape({lng:o.a.number,lat:o.a.number})}),t.default=v},"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/I18N/Number.jsx");function u(e){return(u="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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,p({enabled:!0},f)),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist();var n=t.getElementsByTagName("select").item(0).childNodes;o()(n.length).toBe(1)})),it("checks if a change of the combo fires the proper action",(function(){var e,t=l.a.render(a.a.createElement(u.default,p({enabled:!0},f,{onCRSChange:function(t){e=t}})),document.getElementById("container")),n=l.a.findDOMNode(t).getElementsByTagName("select").item(0);n.value="EPSG:4326",d.a.Simulate.change(n,{target:{value:"EPSG:4326"}}),o()(e).toBe("EPSG:4326")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-dom/index.js"),c=n.n(u),d=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: ° ' Lng: ° ' ");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(11),o()(n[1].textContent).toBe("Lat: "),o()(n[2].textContent).toBe(""),o()(n[3].textContent).toBe("° "),o()(n[4].textContent).toBe(""),o()(n[5].textContent).toBe("' "),o()(n[6].textContent).toBe("Lng: "),o()(n[7].textContent).toBe(""),o()(n[8].textContent).toBe("° "),o()(n[9].textContent).toBe(""),o()(n[10].textContent).toBe("' ")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 13° 32.000' Lng: 028° 18.000' ")})),it("position with no rounding but flooring of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 43° 42.436' Lng: 010° 28.501' ")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s),u=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx"),c=n("./node_modules/react-dom/test-utils.js"),d=n.n(c),p=n("./node_modules/react-intl/lib/index.es.js");describe("MousePositionLabelDMS",(function(){beforeEach((function(e){document.body.innerHTML='
',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: ° ' '' Lng: ° ' ''");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(16),o()(n[1].textContent).toBe("Lat: "),o()(n[2].textContent).toBe(""),o()(n[3].textContent).toBe("° "),o()(n[4].textContent).toBe(""),o()(n[5].textContent).toBe("' "),o()(n[6].textContent).toBe(""),o()(n[7].textContent).toBe("''"),o()(n[8].className).toBe("mouseposition-separator"),o()(n[9].textContent).toBe(" Lng: "),o()(n[10].textContent).toBe(""),o()(n[11].textContent).toBe("° "),o()(n[12].textContent).toBe(""),o()(n[13].textContent).toBe("' "),o()(n[14].textContent).toBe(""),o()(n[15].textContent).toBe("''")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 13° 31' 60.00'' Lng: 028° 18' 00.00''")})),it("position with no rounding but trunc of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 43° 42' 26.16'' Lng: 010° 28' 30.05''")})),it("position with negative lat and lng correctly truncated ladD e lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:-.006,lat:-.006}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: -00° 00' 21.60'' Lng: -000° 00' 21.60''")})),it("test sign changes when crossing greenwich meridian and equator parallel and latD lngD are 0",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:-.006,lat:-.006}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: -00° 00' 21.60'' Lng: -000° 00' 21.60''");var n=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:.006,lat:.006}})),document.getElementById("container"));o()(n).toExist();var r=l.a.findDOMNode(n);o()(r).toExist(),o()(r.textContent).toBe("Lat: 00° 00' 21.60'' Lng: 000° 00' 21.60''")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s),u=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx"),c=n("./node_modules/react-dom/test-utils.js"),d=n.n(c),p=n("./node_modules/react-intl/lib/index.es.js");describe("MousePositionLabelDMSNW",(function(){beforeEach((function(e){document.body.innerHTML='
',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("° ' '' S ° ' '' W");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(13),o()(n[1].innerText).toBe(""),o()(n[2].innerText).toBe("° "),o()(n[3].innerText).toBe(""),o()(n[4].innerText).toBe("' "),o()(n[5].innerText).toBe(""),o()(n[6].innerText).toBe("'' S "),o()(n[7].innerText).toBe(""),o()(n[8].innerText).toBe("° "),o()(n[9].innerText).toBe(""),o()(n[10].innerText).toBe("' "),o()(n[11].innerText).toBe(""),o()(n[12].innerText).toBe("'' W")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("13° 31' 60.00'' N 028° 18' 00.00'' E")})),it("position with no rounding but flooring of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("43° 42' 26.16'' N 010° 28' 30.05'' E")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/mapcontrols/scale/ScaleBox.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/utils/MapUtils.js");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n=e.props.minZoom}))})),e}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return!Object(r.isEqual)(e,this.props)}},{key:"render",value:function(){var e=null;return e=this.props.readOnly?s.a.createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?s.a.createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):s.a.createElement(l.Form,{inline:!0},s.a.createElement(l.FormGroup,{bsSize:"small"},s.a.createElement(l.ControlLabel,null,this.props.label),s.a.createElement(l.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),s.a.createElement("div",{id:this.props.id,style:this.props.style},e)}}])&&p(t.prototype,n),o&&p(t,o),a}(s.a.Component);b(v,"propTypes",{id:i.a.string,style:i.a.object,scales:i.a.array,currentZoomLvl:i.a.number,minZoom:i.a.number,onChange:i.a.func,readOnly:i.a.bool,label:i.a.oneOfType([i.a.func,i.a.string,i.a.object]),template:i.a.func,useRawInput:i.a.bool}),b(v,"defaultProps",{id:"mapstore-scalebox",scales:Object(u.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(e){return e<1?Math.round(1/e)+" : 1":"1 : "+Math.round(e)},useRawInput:!1}),t.a=v},"./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Button.jsx"),l=n("./MapStore2/web/client/components/misc/Modal.jsx"),u=n("./node_modules/react-spinkit/dist/index.js"),c=n.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 p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return i.a.createElement(c,l({ref:t,className:n?s()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0})),S(_(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=l.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},l.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),l.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?l.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):l.a.createElement("span",null)),n=this.props.draggable?l.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?l.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&b(t.prototype,n),r&&b(t,r),a}(l.a.Component);S(j,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),S(j,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=j},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./node_modules/react-select/dist/react-select.es.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?"full":e>40?"medium":"small"},d=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};d.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=d},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-container-dimensions/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Loader.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0?Math.min(i,l):i),p=n||(l>0?Math.min(i,l):i),f=Math.min(d,p);return o.a.createElement(s.a,{size:f,style:u({padding:f/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Modal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./MapStore2/web/client/components/misc/WithContainer.jsx");function s(e){return(s="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 n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=j?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(B(!1),D(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=T&&T.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},m),q):o.a.createElement("div",{className:"dropzone-content-image"},m,q,g&&o.a.createElement("div",{className:"dropzone-errors"},g))))}));t.a=m},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,n=e.caption,r=e.infoExtra,s=e.className,u=void 0===s?"":s,d=e.description,p=e.fullText,f=e.onClick,h=void 0===f?function(){}:f,m=e.onMouseEnter,g=void 0===m?function(){}:m,y=e.onMouseLeave,b=void 0===y?function(){}:y,v=e.preview,w=e.selected,x=e.size,_=e.style,O=void 0===_?{}:_,S=e.stylePreview,j=void 0===S?{}:S,E=e.styleTools,C=void 0===E?{}:E,T=e.title,k=e.loading,A=e.dragSymbol,P=void 0===A?"+":A,M=e.tools,I=c(e,["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"]);return o.a.createElement("div",{className:"mapstore-side-card".concat(w?" selected":"").concat(x?" ms-"+x:"").concat(u?" ".concat(u):"").concat(p?" full-text":""),onClick:function(e){return h(l({title:T,preview:v,description:d,caption:n,tools:M},I),e)},onMouseEnter:g,onMouseLeave:b,style:O},o.a.createElement("div",{className:"ms-head"},I.isDraggable&&I.connectDragSource&&I.connectDragSource(o.a.createElement("div",{className:"mapstore-side-card-tool text-center"},o.a.createElement("div",{style:{width:10,overflow:"hidden"}},P))),v&&o.a.createElement("div",{className:"mapstore-side-preview",style:j},v),o.a.createElement("div",{className:"mapstore-side-card-container"},o.a.createElement("div",{className:"mapstore-side-card-inner"},o.a.createElement("div",{className:"mapstore-side-card-left-container"},o.a.createElement("div",{className:"mapstore-side-card-info"},T&&o.a.createElement("div",{className:"mapstore-side-card-title"},o.a.createElement("span",null,T)),d&&o.a.createElement("div",{className:"mapstore-side-card-desc"},Object(i.isObject)(d)?d:o.a.createElement("span",null,d)),n&&o.a.createElement("div",{className:"mapstore-side-card-caption"},o.a.createElement("span",null,n))),r),o.a.createElement("div",{className:"mapstore-side-card-right-container"},o.a.createElement("div",{className:"mapstore-side-card-tool text-center",style:C},M),"sm"!==x&&o.a.createElement("div",{className:"mapstore-side-card-loading"},o.a.createElement(a.a,{className:"mapstore-side-card-loader",size:12,hidden:!k})))))),t&&o.a.createElement("div",{className:"ms-body"},t))}},"./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function u(e){return(u="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 c(){return(c=Object.assign||function(e){for(var t=1;t0&&(r=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&r.length>0)&&r.push((x(t={},e.props.textField,""),x(t,e.props.valueField,""),x(t,"disabled",!0),x(t,"pagination",e.renderPagination()),t));var o=e.props.loading?[]:r,i=e.props.itemComponent,l=a.a.createElement(s.Combobox,{placeholder:e.props.placeholder,dropUp:e.props.dropUp,busy:e.props.busy,data:o,disabled:e.props.disabled,itemComponent:function(t){return a.a.createElement(i,f({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||n,open:e.props.open,filter:e.props.filter,onChange:function(t){return e.props.onChange(t)},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){return e.props.onSelect(t)},onToggle:function(t){return e.props.onToggle(t)},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(l):l})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.selectedValue,n=e.disabled,r=e.onReset,o=e.label,i=e.clearable,s=o?a.a.createElement("label",null,o):a.a.createElement("span",null);return a.a.createElement("div",{className:"autocompleteField"},s,i?a.a.createElement("div",{className:"rw-combo-clearable ".concat(n?"disabled":"")},this.renderField(),a.a.createElement("span",{className:"rw-combo-clear ".concat(t?"":"hidden"),onClick:r},"x")):this.renderField())}}])&&m(t.prototype,n),r&&m(t,r),i}(a.a.Component);x(_,"propTypes",{busy:o.a.bool,data:o.a.array,disabled:o.a.bool,dropUp:o.a.bool,itemComponent:o.a.oneOfType([o.a.object,o.a.func]),label:o.a.string,loading:o.a.bool,filter:o.a.oneOfType([o.a.string,o.a.bool]),messages:o.a.object,onChange:o.a.func,onFocus:o.a.func,onSelect:o.a.func,onToggle:o.a.func,open:o.a.bool,pagination:o.a.object,nextPageIcon:o.a.string,prevPageIcon:o.a.string,selectedValue:o.a.string,textField:o.a.string,tooltip:o.a.object,valueField:o.a.string,placeholder:o.a.string,stopPropagation:o.a.bool,clearable:o.a.bool,onReset:o.a.func}),x(_,"contextTypes",{messages:o.a.object}),x(_,"defaultProps",{stopPropagation:!1,dropUp:!1,itemComponent:d.a,loading:!1,label:null,filter:"",pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onSelect:function(){},onReset:function(){},textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value",clearable:!1}),t.a=_},"./MapStore2/web/client/components/misc/coordinateeditors/CoordinateEntry.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nr?"error":null})),b(g(e),"validateDecimalLat",(function(t){var n=e.props.constraints[e.props.format].lat.min,r=e.props.constraints[e.props.format].lat.max,o=parseFloat(t);return isNaN(o)||or?"error":null})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.coordinate,r=t.value,i=t.onChange,a="validateDecimal"+Object(s.capitalize)(n);return o.a.createElement(l.FormGroup,{validationState:this[a](r)},o.a.createElement(u.a,{key:n,value:r,placeholder:n,onChange:function(t){""===t&&i(""),null===e[a](t)&&i(t)},onKeyDown:this.verifyOnKeyDownEvent,step:1,validateNameFunc:this[a],type:"number"}))}}])&&p(t.prototype,n),r&&p(t,r),a}(o.a.Component);b(v,"propTypes",{idx:a.a.number,value:a.a.number,constraints:a.a.object,format:a.a.string,coordinate:a.a.string,onChange:a.a.func,onKeyDown:a.a.func,onSubmit:a.a.func}),b(v,"defaultProps",{format:"decimal",coordinate:"lat",constraints:{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}},onKeyDown:function(){}});var w=v,x=n("./node_modules/recompose/es/Recompose.js"),_=Object(x.withProps)((function(e){var t=e.coordinate,n=void 0===t?"lat":t;return{maxDegrees:"lat"===n?90:180,directions:"lat"===n?["N","S"]:["E","W"]}})),O=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),S=Object(x.compose)(Object(x.withProps)((function(e){return{isValid:""!==e.value}})),Object(x.withState)("initial","setInitial",{}),Object(x.withProps)((function(e){var t=e.isValid,n=e.initial,r=e.degrees,o=e.minutes,i=e.seconds;return t||""===r&&""===o&&""===i?{}:n})),Object(x.withHandlers)({onChange:function(e){return function(t){var n=t.degrees,r=t.minutes,o=t.seconds,i=t.direction;isNaN(n)?e.setInitial({degrees:"",minutes:r,seconds:o,direction:i}):isNaN(r)?e.setInitial({degrees:n,minutes:"",seconds:o,direction:i}):isNaN(o)&&e.setInitial({degrees:n,minutes:r,seconds:"",direction:i}),e.onChange({degrees:n,minutes:r,seconds:o,direction:i})}}}));function j(e){return(j="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 E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t=0?a=r.degrees:r.minutes<0&&r.degrees<=0?(a=0,i=r.minutes):(a=0,i=0,o=1e-4)),{degrees:a,minutes:i,seconds:o,direction:s}}catch(e){return null}})),N(I(e),"getSexagesimalStep",(function(e){return e>=60?1:e<0?-1:0})),N(I(e),"getInputStyle",(function(e){return isNaN(e)||""===e?{borderColor:"#a94442"}:{}})),N(I(e),"verifyOnKeyDownEvent",(function(t){69===t.keyCode&&t.preventDefault(),13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),e.props.onKeyDown())})),N(I(e),"roundToNextSexagesimalStep",(function(e){return e<0?60+e:e>=60?e-60:e})),N(I(e),"isValid",(function(t){var n=t.minutes,r=t.seconds,o=t.degrees,i=t.direction;return!Object(s.isNil)(n)&&n>0&&n<60&&!Object(s.isNil)(r)&&r>0&&r<60&&!Object(s.isNil)(o)&&o>0&&oo&&"lat"===i?Math.sign(e)*o:e)}}}));function z(e){return(z="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 B(){return(B=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{seconds:{decimals:4}},o=n.seconds,i=e>=0?Math.floor(e):Math.ceil(e),a=Math.abs(60*(e-i)),s=Math.floor(a),l=60*(a-s),u=Object(r.round)(l,o.decimals);if(i=Math.abs(i),60===u&&(s++,u=0),60===s&&(i++,s=0),Object(r.isNaN)(i)||""===e)return{degrees:"",minutes:"",seconds:"",direction:t?"E":"N"};var c={degrees:i,minutes:s,seconds:u,direction:e<0?t?"W":"S":t?"E":"N"};return c}(e.value,"lon"===e.coordinate,e.aeronauticalOptions))})),Object(o.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.degrees,o=t.minutes,i=t.seconds,a=t.direction,s=0,l=0,u=0;void 0===n&&void 0===o&&void 0===i&&e.onChange(void 0),Object(r.isNaN)(n)||(s=n),Object(r.isNaN)(o)||(l=o),Object(r.isNaN)(i)||(u=i);var c=s+l/60+u/3600;(c>0&&("S"===a||"W"===a)||c<0&&("N"===a||"E"===a))&&(c*=-1),e.onChange(c.toPrecision(12))}}}))},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),s.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/draggableComponent.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dnd/lib/index.js"),a=n("./node_modules/recompose/es/Recompose.js");function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={beginDrag:function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)("row",d,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),draggingItem:t.getItem()||null}})),Object(i.DropTarget)("row",{drop:function(e,t){var n=t.getItem();n.sortId!==e.sortId&&e.onSort(e.sortId,n.sortId,{id:e.id,containerId:e.containerId},{id:n.id,containerId:n.containerId})}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})),(function(e){return function(t){var n=t.connectDragSource,r=t.connectDragPreview,i=t.connectDropTarget,a=t.isDragging,u=t.isOver,c=l(t,["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"]),d=c.draggingItem&&c.draggingItem.sortId=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(Object(i.branch)((function(e){var t=e.isDraggable;return void 0===t||t}),(function(e){return function(t){var n=t.onSort,r=t.isDraggable,i=t.items,s=void 0===i?[]:i,u=t.containerId,d=c(t,["onSort","isDraggable","items","containerId"]),p=s.map((function(e,t){return l(l({},e),{},{onSort:n,isDraggable:r,sortId:t,key:e.id||t,containerId:u})}));return o.a.createElement(e,a({},l(l({},d),{},{isDraggable:r}),{items:p}))}})))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,i=void 0===r?{}:r,a=e.contentStyle,l=void 0===a?{}:a,c=e.imageStyle,d=void 0===c?{}:c,p=e.glyph,f=void 0===p?"info-sign":p,h=e.iconFit,m=e.title,g=e.tooltip,y=e.tooltipId,b=e.description,v=e.content;return o.a.createElement("div",{className:"empty-state-container",style:u({height:h?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:u({height:h?"100%":void 0},i)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:u({height:h?"100%":void 0},d)},o.a.createElement(s.a,{iconFit:h,tooltip:g,tooltipId:y,glyph:f})):null,m?o.a.createElement("h1",{key:"title"},m):null,b?o.a.createElement("p",{key:"description",className:"empty-state-description"},b):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:l},v))};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s);n("./node_modules/rxjs/Rx.js");function u(e){return(u="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataProp,n=void 0===t?"items":t,r=e.querySelector,i=e.closest,s=void 0!==i&&i,u=e.loadingProp,c=void 0===u?"loading":u,f=e.skip,g=void 0===f?0:f,b=e.pageSize,w=void 0===b?10:b,_=e.offsetSize,O=void 0===_?200:_;return function(e){var t,i;return i=t=function(t){m(a,t);var i=y(a);function a(){var e;p(this,a);for(var t=arguments.length,o=new Array(t),u=0;u=t.scrollHeight-n}}),i}}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var r=e.loaderProps;return o.a.createElement(n,s({},t,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return c(c({},n),{},d({},r,e[r]&&Object(s.e)(t,e[r])))}}(r,n),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&p(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(s.compose)(Object(s.getContext)({messages:i.a.object}),Object(s.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},t),e)}))})))},"./MapStore2/web/client/components/misc/enhancers/tooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),l=n("./MapStore2/web/client/components/I18N/Message.jsx"),u=n("./MapStore2/node_modules/lodash/lodash.js");function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,u=void 0===i?"top":i,d=t.tooltipTrigger,p=t.keyProp,f=t.idDropDown,h=t.args,m=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(s.a,{trigger:d,id:f,key:p,placement:u,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+p},r?o.a.createElement(l.default,{msgId:r,msgParams:{data:h}}):n)},o.a.createElement(e,m))}}),(function(e){return function(t){return o.a.createElement(e,Object(u.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/moment/moment.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/TimeUtils.js");function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dateTypeProp,n=void 0===t?"type":t,i=e.dateProp,u=void 0===i?"date":i,c=e.setDateProp,d=void 0===c?"onSetDate":c;return Object(r.compose)(Object(r.withPropsOnChange)([u],(function(e){var t,r=e[u],i=e[n],c=e.useUTCOffset,d=void 0===c||c,p=r,f="1970-01-01",h="00:00:00";!Object(o.isDate)(r)&&Object(o.isString)(r)&&("time"===i&&(p=new Date("".concat(f,"T").concat(r))),"date"===i&&(-1!==r.indexOf("Z")&&(p=r.substr(0,r.length-1)),p=new Date("".concat(p,"T").concat(h,"Z"))),"date-time"===i&&(p=new Date(r)));var m=p;if(p){switch(i){case"time":h=Object(s.h)(p);break;case"date":f=Object(s.g)(p);break;default:h=Object(s.h)(p),f=Object(s.g)(p)}(m=new Date("".concat(f,"T").concat(h,"Z"))).setUTCMilliseconds(p.getUTCMilliseconds());var g=d?Object(s.f)(m):0;m=new Date(m.getTime()+g)}return l(t={},u,m),l(t,"defaultCurrentDate","date-time"===i?a()().startOf("day").toDate():void 0),t})),Object(r.withHandlers)(l({},d,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e[d],r=e[n],o=e.useUTCOffset,i=void 0===o||o;return function(e,n){if(e){var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())),a=i?Object(s.f)(e):0,l=new Date(o.getTime()-a);switch(r){case"time":l="".concat(Object(s.h)(l),"Z");break;case"date":l="".concat(Object(s.g)(l),"Z")}t(l,n)}else t(null)}}))))}},"./MapStore2/web/client/components/misc/enhancers/withControllableState.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=function(e,t,n){return Object(r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e[t]}),Object(r.withState)(e,t,n))}},"./MapStore2/web/client/components/misc/enhancers/withMask.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=function(e,t,n){var r=n.maskContainerStyle,a=n.maskStyle,s=n.className,l=n.white;return function(n){return Object(i.nest)((function(n){return o.a.createElement("div",{className:"ms2-mask-container ".concat(s||""," ").concat(e(n)?"":"ms2-mask-empty"),style:r},n.children,e(n)?o.a.createElement("div",{className:"ms2-mask"+(l?" white-mask":""),style:a},t(n)):null)}),n)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.alwaysWrap,o=void 0===r||r,s=n.white,l=void 0!==s&&s,u=n.maskContainerStyle,c=void 0===u?{}:u,d=n.maskStyle,p=void 0===d?{}:d,f=n.className;return o?a(e,t,{maskContainerStyle:c,maskStyle:p,className:f,white:l}):Object(i.branch)(e,a((function(){return!0}),t,{maskContainerStyle:c,maskStyle:p,white:l}))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,l;return l=r=function(r){m(l,r);var s=y(l);function l(e){var r;return p(this,l),x(v(r=s.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=u.a.findDOMNode(v(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return h(l,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),l}(o.a.Component),x(r,"propTypes",{handleWidth:s.a.bool,handleHeight:s.a.bool,onResize:s.a.func}),x(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),l}}},"./MapStore2/web/client/components/misc/panels/DockPanel.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dock/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),l=n("./node_modules/recompose/es/Recompose.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}},p=function(e){var t=e.position,n=void 0===t?"right":t,r=e.onClose,i=e.bsStyle,a=void 0===i?"default":i,s=e.title,l=void 0===s?"":s,p=e.fullscreen,f=void 0!==p&&p,h=e.showFullscreen,m=void 0!==h&&h,g=e.glyph,y=void 0===g?"info-sign":g,b=e.additionalRows,v=e.onFullscreen,w=void 0===v?function(){}:v,x=r?o.a.createElement(c.a,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:a},o.a.createElement(u.Glyphicon,{glyph:"1-close"})):null,_=m?o.a.createElement(c.a,{key:"ms-header-glyph",className:"square-button",bsStyle:a,onClick:function(){return w(!f)}},o.a.createElement(u.Glyphicon,{glyph:d[n]&&d[n][f]||"resize-full"})):o.a.createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+a),style:{display:"flex"}},o.a.createElement(u.Glyphicon,{glyph:y,className:"".concat("default"===a?"text-primary":"")})),O="left"===n?[x,_]:[_,x];return o.a.createElement(u.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+a},o.a.createElement(u.Row,null,o.a.createElement(u.Col,{xs:2},O[0]),o.a.createElement(u.Col,{xs:8},o.a.createElement("h4",null,l)),o.a.createElement(u.Col,{xs:2},O[1])),b)};t.a=Object(l.withState)("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,n=e.className,r=void 0===n?"":n,i=e.fullscreen,l=void 0!==i&&i,u=e.position,c=e.open,d=e.size,f=void 0===d?550:d,h=e.style,m=void 0===h?{}:h,g=e.zIndex,y=void 0===g?1030:g,b=e.onClose,v=e.bsStyle,w=e.title,x=e.showFullscreen,_=void 0!==x&&x,O=e.glyph,S=e.header,j=e.footer,E=e.children,C=e.onFullscreen,T=void 0===C?function(){}:C,k=e.fixed,A=void 0!==k&&k,P=e.resizable,M=void 0!==P&&P,I=e.hideHeader;return o.a.createElement("div",{className:"ms-side-panel "+(A?"":"ms-absolute-dock ")+(M?"":"react-dock-no-resize ")+r},o.a.createElement(a.a,{fluid:t||l,position:u,dimMode:"none",isVisible:c,size:l?1:f,dockStyle:m,zIndex:y},o.a.createElement(s.a,{header:!I&&c&&o.a.createElement(p,{position:u,onClose:b,bsStyle:v,title:w,fullscreen:l,showFullscreen:_,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&j},c&&E)))}))},"./MapStore2/web/client/components/misc/panels/DockablePanel.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),s=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),l=n("./MapStore2/web/client/components/misc/ResizableModal.jsx");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(i.renameProps)({open:"show"})((function(e){var t=e.children,n=e.header,r=u(e,["children","header"]);return o.a.createElement(l.a,r,o.a.createElement(a.a,{header:o.a.createElement("div",{className:"ms-header"},n)},t))}));t.a=Object(i.branch)((function(e){return!e.dock}),(function(){return function(e){return o.a.createElement(c,e)}}))(s.a)},"./MapStore2/web/client/components/misc/quillmodules/assets/css/resizemodule.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/quillmodules/assets/css/resizemodule.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/spinners/InlineSpinner/img/spinner.gif":function(e,t){e.exports="data:image/gif;base64,R0lGODlhEAALAPQAAP///zMzM+Hh4dnZ2e7u7jc3NzMzM1dXV5qamn9/f8fHx05OTm5ubqGhoYKCgsrKylFRUTY2NnFxcerq6t/f3/b29l9fX+Li4vT09MTExLKystTU1PHx8QAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"},"./MapStore2/web/client/components/misc/style/filter.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/style/filter.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n0&&this.props.expanded&&o.a.createElement(u.a,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return o.a.createElement(s.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&j(t.prototype,n),r&&j(t,r),a}(o.a.Component);P(D,"propTypes",{header:a.a.node,title:a.a.oneOfType([a.a.string,a.a.node]),defaultExpanded:a.a.string,expanded:a.a.bool,onSwitch:a.a.func,locked:a.a.bool,buttons:a.a.array,loading:a.a.bool,error:a.a.any,errorMsgId:a.a.string,transitionProps:a.a.object,useToolbar:a.a.bool}),P(D,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});t.a=D},"./MapStore2/web/client/components/misc/toolbar/DropdownToolbarOptions.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/uuid/v1.js"),l=n.n(s);function u(){return(u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.menuOptions,n=void 0===t?[]:t,o=e.buttonConfig,i=void 0===o?{}:o;return a.a.createElement(c,u({},d,i),n.length?n.map((function(e,t){var n=e.glyph,o=e.text,i=e.onClick,s=e.active,l=void 0!==s&&s;return a.a.createElement(r.MenuItem,{active:l,eventKey:t,onClick:i,key:t},n&&a.a.createElement(r.Glyphicon,{glyph:n})," ",o)})):null)}},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-addons-css-transition-group/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,d=e.btnDefaultProps,p=void 0===d?{}:d,f=e.transitionProps,h=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,m=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,s=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,u({key:s.key||t},s))||o.a.createElement(l.a,u({key:s.key||t},p,s))):null}))};return o.a.createElement(s.ButtonGroup,i,h?o.a.createElement(a.a,h,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,d.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,d=e.glyphClassName,m=void 0===d?"":d,g=e.loaderProps,y=void 0===g?{}:g,b=e.children,v=h(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(p.a,Object(s.omit)(v,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:m}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,f({className:"ms-loader".concat(v.bsStyle&&" ms-loader-"+v.bsStyle||"").concat(v.bsSize&&" ms-loader-"+v.bsSize||"")},y)):null,b)}))},"./MapStore2/web/client/components/style/ColorPicker.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isFunction.js"),l=n.n(s),u=n("./node_modules/react-color/lib/index.js"),c=n("./node_modules/tinycolor2/tinycolor.js"),d=n.n(c),p=n("./node_modules/react-dom/index.js"),f=n("./MapStore2/web/client/utils/ConfigUtils.js");function h(){return(h=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nm/2+10&&b+w-E[0]>m/2+10,T=E[1]-y>g/2+10&&y+x-E[1]>g/2+10,k={top:{filter:function(){return C&&_-y>g+10},styles:function(){return{picker:{position:"absolute",top:_-g-10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+2,left:O+S/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return T&&b+w-(O+S)>m+10},styles:function(){return{picker:{position:"absolute",top:_-g/2-y,left:O+S+10-b},overlay:{},arrow:{top:_+j/2,left:O+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+x-(_+j)>g+10},styles:function(){return{picker:{position:"absolute",top:_+j+10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+j-2,left:O+S/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return T&&O-b>m+10},styles:function(){return{picker:{position:"absolute",top:_-g/2-y,left:O-m-10-b},overlay:{},arrow:{top:_+j/2,left:O+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=k&&null!==(d=k[v])&&void 0!==d&&null!==(p=d.filter)&&void 0!==p&&p.call(d))return null==k||null===(f=k[v])||void 0===f||null===(h=f.styles)||void 0===h?void 0:h.call(f);if("top"!==v&&k.top.filter())return k.top.styles();if("right"!==v&&k.right.filter())return k.right.styles();if("bottom"!==v&&k.bottom.filter())return k.bottom.styles();if("left"!==v&&k.left.filter())return k.left.styles()}return{picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}}}Object(r.useEffect)((function(){var e=function(){return E(D())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){T&&E(D())}),[T]);var N,R,L=c?" ms-disabled":"",F=o.a.createElement("div",{ref:I,className:"ms-color-picker-overlay",style:g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0},null==j?void 0:j.overlay)},o.a.createElement("div",{className:"ms-color-picker-cover",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0},onClick:function(){k(!1),_&&i(n?d()(_).toString(n):_)}}),o.a.createElement(u.SketchPicker,h({},f,{className:"ms-sketch-picker",styles:{picker:g({width:200,padding:"10px 10px 0",boxSizing:"initial"},null==j?void 0:j.picker)},color:d()(_||t).toRgb(),onChange:function(e){return O(e.rgb)}})),o.a.createElement("div",{className:"ms-sketch-picker-arrow",style:g({position:"absolute",borderWidth:12},null==j?void 0:j.arrow)})),z=P?Object(p.createPortal)(F,P):F;return o.a.createElement("div",{className:"ms-color-picker".concat(L)},o.a.createElement("div",{className:"ms-color-picker-swatch",ref:M,style:(N=_||t||"transparent",R=d()(N).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(R),backgroundColor:"transparent"}:{color:"transparent"===N?"#000000":d.a.mostReadable(R,["#000000"],{includeFallbackColors:!0}).toHexString(),backgroundColor:R}),onClick:function(){c||(k(!T),_&&i(n?d()(_).toString(n):_))}},a),T?z:null)}w.propTypes={value:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,onChangeColor:a.a.func,text:a.a.string,line:a.a.bool,disabled:a.a.bool,pickerProps:a.a.object,containerNode:a.a.oneOfType([a.a.node,a.a.func]),onOpen:a.a.function,placement:a.a.string},w.defaultProps={disabled:!1,line:!1,onChangeColor:function(){},pickerProps:{},onOpen:function(){},containerNode:function(){return document.querySelector("."+(Object(f.getConfigProp)("themePrefix")||"ms2")+" > div")||document.body}},t.a=w},"./MapStore2/web/client/components/style/ColorSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/style/ColorPicker.jsx");function u(e){var t=e.color,n=e.format,r=e.line,i=e.onChangeColor,a=e.disableAlpha,u=e.containerNode,c=e.onOpen,d=e.presetColors,p=e.placement;return o.a.createElement("div",{className:"ms-color-selector"},o.a.createElement(l.a,{text:o.a.createElement(s.Glyphicon,{glyph:"dropper"}),format:n,line:r,value:t,onChangeColor:i,pickerProps:{disableAlpha:a,presetColors:d},containerNode:u,onOpen:c,placement:p}))}u.propTypes={color:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,line:a.a.bool,onChangeColor:a.a.func,disableAlpha:a.a.bool,containerNode:a.a.node,onOpen:a.a.func,presetColors:a.a.array,placement:a.a.string},u.defaultProps={line:!1,onChangeColor:function(){},onOpen:function(){}},t.a=u},"./MapStore2/web/client/components/style/vector/iconNotFound.png":function(e,t,n){e.exports=n.p+"MapStore2/web/client/components/style/vector/iconNotFound.png"},"./MapStore2/web/client/components/styleeditor/hint/geocss.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?{list:O.map((function(e){return{text:e,displayText:e,render:function(e,t,n){var r,o,i=document.createElement("span"),a=(r=w[n.displayText]||{},o=r.localPart,("gml"===r.prefix?"geometry":u[o])||o||"");i.innerHTML=a&&'{'.concat(a,"} ")||"";var s=document.createElement("span");s.innerText=n.displayText,e.appendChild(i),e.appendChild(s)}}})),from:t(i.line,p),to:t(i.line,f)}:null}))}},"./MapStore2/web/client/components/styleeditor/mode/geocss.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},a=t.indentUnit,l=i.propertyKeywords&&i||e.resolveMode("text/geocss"),u=l.propertyKeywords,c=void 0===u?{}:u,d=l.colorKeywords,p=void 0===d?{}:d,f=l.valueKeywords,h=void 0===f?{}:f,m=l.logicKeywords,g=void 0===m?{}:m,y=l.allowNested,b={},v=function(e,t){return n=t,e},w=function(e){return function(t,n){for(var r=!1,o=t.next();o;){if(o===e&&!r){")"===e&&t.backUp(1);break}r=!r&&"\\"===o,o=t.next()}return(o===e||!r&&")"!==e)&&(n.tokenize=null),v("string","string")}},x=function(e,t){for(var n=!1,r=e.next();r;){if(n&&"/"===r){t.tokenize=null;break}n="*"===r,r=e.next()}return["comment","comment"]},_=function(e,t){var n=e.next();if("@"===n)return e.eat("{")?[null,"interpolation"]:e.match(/^(sd|scale)\b/)?["filter",null]:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]);if("/"===n)return e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"];if('"'===n||"'"===n)return t.tokenize=w(n),t.tokenize(e,t);if("#"===n)return e.eatWhile(/[\w\\\-]/),v("atom","hash");if(/\d/.test(n)||"."===n&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),v("number","unit");if("-"===n){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),v("number","unit");if(e.match(/^-[\w\\\-]+/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?v("variable-2","variable-definition"):v("variable-2","variable");if(e.match(/^\w+-/))return v("meta","meta")}else{if(/[,+>*\/]/.test(n))return v(null,"select-op");if("."===n&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return v("qualifier","qualifier");if(/[:;{}\[\]\(\)]/.test(n))return v(null,n);if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),v("property","word")}return v(null,null)};function O(e,t,n){this.type=e,this.indent=t,this.prev=n}var S=function(e,t,n,r){return e.context=new O(n,t.indentation()+(!1===r?0:a),e.context),n},j=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},E=function(e,t,n){return b[n.context.type](e,t,n)},C=function(e,t,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return E(e,t,n)},T=function(e){var t=e.current().toLowerCase();o=h.hasOwnProperty(t)?"atom":p.hasOwnProperty(t)?"keyword":"variable"};return b.top=function(e,t,n){if("{"===e)return S(n,t,"block");if("}"===e&&n.context.prev)return j(n);if("hash"===e)o="builtin";else if("word"===e)o="tag";else{if("variable-definition"===e)return"maybeprop";if("interpolation"===e)return S(n,t,"interpolation");if(":"===e)return"pseudo";if(y&&"("===e)return S(n,t,"parens")}return n.context.type},b.block=function(e,t,n){if("word"===e){var i=t.current().toLowerCase();return c.hasOwnProperty(i)?(o="property","maybeprop"):g.hasOwnProperty(Object(r.trim)(i))?(o="logic","maybeprop"):Object(r.startsWith)(Object(r.trim)(t.string),"[")?(o="filter","maybeprop"):(o+=" error","maybeprop")}return"meta"===e?"block":y||"hash"!==e&&"qualifier"!==e?b.top(e,t,n):(o="error","block")},b.maybeprop=function(e,t,n){return":"===e?S(n,t,"prop"):E(e,t,n)},b.prop=function(e,t,n){if(";"===e)return j(n);if("{"===e&&y)return S(n,t,"propBlock");if("}"===e||"{"===e)return C(e,t,n);if("("===e)return S(n,t,"parens");if("hash"!==e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"===e)T(t);else if("interpolation"===e)return S(n,t,"interpolation")}else o+=" error";return"prop"},b.propBlock=function(e,t,n){return"}"===e?j(n):"word"===e?(o="property","maybeprop"):n.context.type},b.parens=function(e,t,n){return"{"===e||"}"===e?C(e,t,n):")"===e?j(n):"("===e?S(n,t,"parens"):"interpolation"===e?S(n,t,"interpolation"):("word"===e&&T(t),"parens")},b.pseudo=function(e,t,r){return"word"===e?(o="variable-3",r.context.type):E(n,t,r)},b.at=function(e,t,n){return";"===e?j(n):"{"===e||"}"===e?C(e,t,n):("word"===e?o="tag":"hash"===e&&(o="builtin"),"at")},b.interpolation=function(e,t,n){return"}"===e?j(n):"{"===e||";"===e?C(e,t,n):("word"===e?o="variable":"variable"!==e&&"("!==e&&")"!==e&&(o="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new O("block",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||_)(e,t);return r&&"object"===s(r)&&(n=r[1],r=r[0]),o=r,t.state=b[t.state](n,e,t),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),o=n.indent;return"prop"!==n.type||"}"!==r&&")"!==r||(n=n.prev),n.prev&&("}"!==r||"block"!==n.type&&"top"!==n.type&&"interpolation"!==n.type?(")"===r&&"parens"===n.type||"{"===r&&("at"===n.type||"atBlock"===n.type))&&(o=Math.max(0,n.indent-a),n=n.prev):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}}));var t={colorKeywords:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],valueKeywords:["round"],pseudoProperties:["mark","shield","stroke","fill","symbol","nth-mark","nth-shield","nth-stroke","nth-fill","nth-symbol"],logicKeywords:["and","or"]};e.defineMIME("text/geocss",i(i({},Object.keys(t).reduce((function(e,n){return i(i({},e),{},a({},n,t[n].reduce((function(e,t){return i(i({},e),{},a({},t,!0))}),{})))}),{})),{},{propertyKeywords:{mark:{values:{"symbol(circle)":!0}},"mark-composite":!0,"mark-mime":!0,"mark-geometry":!0,"mark-size":!0,"mark-rotation":!0,"mark-label-obstacle":!0,"mark-anchor":!0,"mark-offset":!0,"z-index":!0,stroke:!0,"stroke-composite":!0,"stroke-geometry":!0,"stroke-offset":!0,"stroke-mime":!0,"stroke-opacity":!0,"stroke-width":!0,"stroke-size":!0,"stroke-rotation":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-repeat":!0,"stroke-label-obstacle":!0,fill:!0,"fill-composite":!0,"fill-geometry":!0,"fill-mime":!0,"fill-opacity":!0,"fill-size":!0,"fill-rotation":!0,"fill-label-obstacle":!0,"graphic-margin":!0,random:!0,"random-seed":!0,"random-rotation":!0,"random-symbol-count":!0,"random-tile-size":!0,"fill-random":!0,"fill-random-seed":!0,"fill-random-rotation":!0,"fill-random-symbol-count":!0,"fill-random-tile-size":!0,label:!0,"label-geometry":!0,"label-anchor":!0,"label-offset":!0,"label-rotation":!0,"label-z-index":!0,shield:!0,"shield-mime":!0,"font-family":!0,"font-fill":!0,"font-style":!0,"font-weight":!0,"font-size":!0,"halo-radius":!0,"halo-color":!0,"halo-opacity":!0,"label-padding":!0,"label-group":!0,"label-max-displacement":!0,"label-min-group-distance":!0,"label-repeat":!0,"label-all-group":!0,"label-remove-overlaps":!0,"label-allow-overruns":!0,"label-follow-line":!0,"label-max-angle-delta":!0,"label-auto-wrap":!0,"label-force-ltr":!0,"label-conflict-resolution":!0,"label-fit-goodness":!0,"label-priority":!0,"shield-resize":!0,"shield-margin":!0,"label-underline-text":!0,"label-strikethrough-text":!0,"label-char-spacing":!0,"label-word-spacing":!0,"raster-channels":!0,"raster-composite":!0,"raster-geometry":!0,"raster-opacity":!0,"raster-contrast-enhancement":!0,"raster-contrast-enhancement-algorithm":!0,"raster-contrast-enhancement-min":!0,"raster-contrast-enhancement-max":!0,"raster-gamma":!0,"raster-z-index":!0,"raster-color-map":!0,"raster-color-map-type":!0,composite:!0,"composite-base":!0,geometry:!0,"sort-by":!0,"sort-by-group":!0,transform:!0,size:!0,rotation:!0},envKeywords:{sd:{localPart:"env"},scale:{localPart:"env"}},allowNested:!0,name:"geocss"}))}},"./MapStore2/web/client/components/time/InlineDateTimeSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/moment/moment.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(""!==n){var o=u()(e.props.date).utc(),i=o["day"===t?"date":t]&&u()(o)["day"===t?"date":t](r(n));i.isValid()&&!isNaN(i.toDate().getTime())&&e.props.onUpdate(i.toISOString())}})),x(v(e),"getForm",(function(){var t=e.props.date&&u()(e.props.date).utc();return[{name:"icon",value:"calendar",type:"icon"},{name:"day",placeholder:"DD",value:t&&t.date()},{name:"month",placeholder:"MM",readOnly:!0,value:t&&t.month(),format:function(e){return!Object(i.isNil)(e)&&""!==e&&u.a.monthsShort(e)},parseValue:function(e){return e-1}},{name:"year",placeholder:"YYYY",value:t&&t.year()},{name:"icon",value:"time",type:"icon"},{name:"hours",placeholder:"hh",value:t&&t.hours()},{name:"separator",value:":",type:"separator"},{name:"minutes",placeholder:"mm",value:t&&t.minutes()},{name:"separator",value:":",type:"separator"},{name:"seconds",placeholder:"ss",value:t&&t.seconds()},{name:"separator",value:t&&t.utcOffset(),type:"separator",format:function(e){return"UTC "+(e>=0?"+":"-")+Object(i.padStart)(e/60,2,0)}}]})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.getForm();return o.a.createElement(c.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},o.a.createElement(c.FormGroup,{controlId:"inlineDateTime"},this.props.glyph&&o.a.createElement("div",{style:this.props.clickable?{cursor:"pointer"}:{},onClick:function(){return e.props.clickable&&e.props.onIconClick(e.props.date,e.props.glyph)}},o.a.createElement(_,{tooltip:this.props.clickable?this.props.tooltip:void 0,tooltipId:this.props.clickable?this.props.tooltipId:void 0,className:"ms-inline-datetime-icon",glyph:this.props.glyph})),t.map((function(t){return"icon"===t.type&&o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},o.a.createElement(_,{glyph:t.value}))||"separator"===t.type&&o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},t.format&&t.format(t.value)||t.value)||o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},e.props.showButtons&&o.a.createElement(p.a,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name,!0)}},o.a.createElement(_,{glyph:"chevron-up"})),o.a.createElement(c.FormControl,{type:"text",readOnly:t.readOnly,placeholder:t.placeholder||t.name,disabled:!e.props.date,value:t.format&&t.format(t.value)||t.value,onChange:function(n){return e.onChange(t.name,n.target.value,t.parseValue)}}),e.props.showButtons&&o.a.createElement(p.a,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name)}},o.a.createElement(_,{glyph:"chevron-down"})))}))))}}])&&m(t.prototype,n),r&&m(t,r),s}(o.a.Component);x(O,"propTypes",{date:s.a.string,clickable:s.a.bool,onUpdate:s.a.func,onIconClick:s.a.func,glyph:s.a.string,style:s.a.object,className:s.a.string,tooltip:s.a.string,tooltipId:s.a.string,showButtons:s.a.bool}),x(O,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),t.a=O},"./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(l.a)(a.NavItem);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=e.element,o=void 0===n?{}:n,l=e.tabs,f=void 0===l?[]:l,h=e.activeTab,m=e.width,g=e.groups,y=e.isLocalizedLayerStylesEnabled,b=e.setActiveTab,v=void 0===b?function(){}:b,w=e.onUpdateParams,x=void 0===w?function(){}:w,_=e.onRetrieveLayerData,O=void 0===_?function(){}:_,S=e.realtimeUpdate,j=d(e,["settings","element","tabs","activeTab","width","groups","isLocalizedLayerStylesEnabled","setActiveTab","onUpdateParams","onRetrieveLayerData","realtimeUpdate"]);return i.a.createElement(a.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},i.a.createElement(a.Col,{xs:12},i.a.createElement(a.Nav,{bsStyle:"tabs",activeKey:h,justified:!0},f.map((function(e){return i.a.createElement(p,{key:"ms-tab-settings-"+e.id,tooltip:i.a.createElement(s.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){return v(e.id)}},i.a.createElement(a.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement(a.Col,{xs:12},f.filter((function(e){return e.id&&e.id===h})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,u({},j,{key:"ms-tab-settings-body-"+e.id,containerWidth:m,element:o,groups:g,nodeType:t.nodeType,settings:t,retrieveLayerData:O,isLocalizedLayerStylesEnabled:y,onChange:function(e,t){return Object(r.isObject)(e)?x(e,S):x(c({},e,t),S)}}))}))))}},"./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx"),o=n("./node_modules/recompose/es/Recompose.js"),i=Object(o.compose)(Object(o.withHandlers)({onMapViewChanges:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(e){n("map",e),n("mapStateSource",e.mapStateSource)}}}));t.a=i(r.a)},"./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),s=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),l=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),u=n("./MapStore2/web/client/components/TOC/TOC.jsx"),c=n("./MapStore2/node_modules/lodash/lodash.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.changeLayerPropertyByGroup,n=void 0===t?function(){}:t,r=e.changeLayerProperty,i=void 0===r?function(){}:r,c=e.changeGroupProperty,d=void 0===c?function(){}:c,p=e.onSort,f=e.onSelect,h=e.selectedNodes,m=e.nodes,g=void 0===m?[]:m;return o.a.createElement(u.a,{onSort:p,selectedNodes:h,onSelect:f,nodes:g},o.a.createElement(l.a,{groupElement:o.a.createElement(a.a,{onSort:p,selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(r){return n(e,r,t[r])}))},onToggle:function(e,t){return d(e,"expanded",!t)},groupVisibilityCheckbox:!0}),layerElement:o.a.createElement(s.a,{selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(n){return i(e,n,t[n])}))},onUpdateNode:function(e,t,n){return Object.keys(n).map((function(t){return i(e,t,n[t])}))},onToggle:function(e,t){return i(e,"expanded",!t)}})}))}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(o.withHandlers)({changeLayerProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?{}:o;return function(e,t,o){var a=Object(r.findIndex)(i.layers||[],{id:e});n("map.layers[".concat(a,"].").concat(t),o)}},changeLayerPropertyByGroup:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,a=void 0===o?{}:o;return function(e,t,o){return a.layers.filter(Object(i.belongsToGroup)(e)).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return Object(r.findIndex)(a.layers||[],{id:t})})).filter((function(e){return e>=0})).map((function(e){return n("map.layers[".concat(e,"].").concat(t),o)}))}},changeGroupProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?[]:o;return function(e,t,o){var a,s=i.groups?Object(r.castArray)(i.groups):[],l=Object(r.findIndex)(s,(function(t){return e===t.id})),u=-1===l?s.length:l;"expanded"!==t||null!=s&&null!==(a=s[u])&&void 0!==a&&a.id||n("map.groups[".concat(u,"].id"),e),n("map.groups[".concat(u,"].").concat(t),o)}},updateMapEntries:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return n("map[".concat(t,"]"),e[t])}))}}})},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.group,r=void 0===n?"Default":n;return r===e})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t}))};t.a=Object(o.compose)(Object(o.withStateHandlers)((function(){return{selectedLayers:[],selectedGroups:[]}}),{onNodeSelect:function(e,t){var n=e.selectedLayers,o=void 0===n?[]:n,a=e.selectedGroups,l=void 0===a?[]:a,u=t.map,c=void 0===u?{}:u;return function(e,t,n){return{selectedLayers:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?o.filter((function(t){return Object(r.findIndex)(s(e,c),(function(e){return e===t}))<0})):n?[].concat(i(o),i(s(e,c))):i(s(e,c)):Object(r.findIndex)(o,(function(t){return t===e}))>=0?o.filter((function(t){return t!==e})):n?[].concat(i(o),[e]):[e],selectedGroups:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?l.filter((function(t){return t!==e})):n?[].concat(i(l),[e]):[e]:n?l:[]}}}}),Object(o.withProps)((function(e){var t=e.selectedLayers,n=e.selectedGroups;return{selectedNodes:[].concat(i(t),i(n))}})))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(r.withProps)((function(e){var t,n,r,i=e.map;return{nodes:(t=Object(o.splitMapAndLayers)(i),n=t.layers,r=void 0===n?{}:n,Object(o.denormalizeGroups)(r.flat||[],r.groups||[]).groups)}}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),s=n("./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js"),l=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),u=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),c=n("./node_modules/prop-types/index.js"),d=n.n(c),p=n("./node_modules/react/index.js"),f=n.n(p),h=n("./node_modules/react-bootstrap/es/index.js"),m=n("./node_modules/react-select/dist/react-select.es.js"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),y=n("./MapStore2/web/client/components/I18N/Message.jsx");function b(e){return(b="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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n=0||!this.props.element.style||t.push({label:this.props.element.style,value:this.props.element.style}),f.a.createElement(h.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},f.a.createElement("form",{ref:"style"},f.a.createElement(m.default.Creatable,{key:"styles-dropdown",options:t,isLoading:this.props.element&&this.props.element.capabilitiesLoading,value:this.props.element.style||"",onOpen:function(){!e.props.element||e.props.element.capabilities&&e.props.element.availableStyles||e.props.retrieveLayerData(e.props.element)},promptTextCreator:function(e){return f.a.createElement(y.default,{msgId:"layerProperties.styleCustom",msgParams:{value:e}})},onChange:function(t){e.updateEntry("style",{target:{value:t&&t.value||""}})}}),f.a.createElement("br",null),this.renderLegend(),this.renderError(),f.a.createElement(g.a,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(y.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&w(t.prototype,n),o&&w(t,o),a}(f.a.Component);E(C,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(C,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var T=C,k=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js"),A=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js"),P=n("./node_modules/rxjs/Rx.js"),M=n.n(P),I=n("./MapStore2/web/client/observables/wms.js");function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.id===t.id})).switchMap((function(){return n.switchMap((function(e){return Object(I.b)(e).map((function(e){return{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}})).startWith({capabilitiesLoading:!0})})).catch((function(e){return M.a.Observable.of({capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:e},description:null})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(N({},t),{},{retrieveLayerData:r,element:N(N({},t.element),e)})}))}));function F(e){return(F="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)}var z=Object(o.withProps)((function(e){var t=e.nodes,n=void 0===t?{}:t,o=e.editNode,i={};return o&&function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;for(var i in t)null!==t[i]&&"object"===F(t[i])&&(Object(r.isMatch)(t[i],n)&&o.apply(void 0,[t[i]]),e(t[i],n,o))}(n,{id:o},(function(e){i=e})),{selectedNode:i}}));function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t,o=e.selectedNode,a=e.settings,s=void 0===a?{}:a;return{element:o,settings:q(q({},s),{},{nodeType:o&&o.nodes?"groups":"layers",options:{opacity:s.opacity>=0?s.opacity:o.opacity>=0?o.opacity:1}}),groups:Object(r.get)(Object(i.splitMapAndLayers)(n),"layers.groups")}})),Object(o.compose)(k.a,Object(o.withHandlers)({onUpdateNode:function(e){var t=e.changeLayerProperty,n=void 0===t?function(){}:t,r=e.changeGroupProperty,o=void 0===r?function(){}:r,i=e.editNode;return function(e,t,r){"layers"===t&&Object.keys(r).map((function(e){return n(i,e,r[e])})),"groups"===t&&Object.keys(r).map((function(e){return o(i,e,r[e])}))}}}),Object(o.withHandlers)({onUpdateParams:function(e){var t=e.settings,n=void 0===t?{}:t,r=e.onUpdateNode,o=void 0===r?function(){}:r;return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&o(n.node,n.nodeType,q(q({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),H)},"./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=Object(r.withState)("confirmDelete","toggleDeleteConfirm",!1)},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/web/client/utils/FilterUtils.js"),s=n("./MapStore2/web/client/utils/ogc/Filter/CQL/parser.js"),l=n("./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/ogc/Filter/fromObject.js"),d=n.n(c),p=n("./MapStore2/web/client/components/widgets/enhancers/utils.js");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return"cql_filter"===e.toLowerCase()}));return n&&o&&n[o]},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerFilter;return t};t.a=Object(o.compose)(Object(o.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.geomProp,r=e.dependencies,o=void 0===r?{}:r,i=e.layer,a=e.quickFilters,s=e.options,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2?arguments[2]:void 0;return t!==l.mapSync||o.viewport!==(l.dependencies&&l.dependencies.viewport)||o.quickFilters!==(l.dependencies&&l.dependencies.quickFilters)||o.options!==(l.dependencies&&l.dependencies.options)||n!==l.geomProp||u!==l.filter||s!==l.options||a!==l.quickFilters||b(i,o)!==b(l.layer,l.dependencies)||v(i)!==v(l.layer)}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.geomProp,o=void 0===n?"the_geom":n,l=e.dependencies,c=void 0===l?{}:l,f=e.filter,y=e.layer,v=e.quickFilters,w=e.options,x=c.viewport,_=u()({gmlVersion:"3.1.1"}),O=d()(_),S=_.filter,j=_.property,E=_.and,C=y||{},T=C.layerFilter,k={},A={},P=Object(p.a)(f,v,w);if(!t)return{filter:!Object(r.isEmpty)(P)||T?S(E.apply(void 0,g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]).concat(g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[])))):void 0};if(y&&c&&c.quickFilters&&c.layer&&y.name===c.layer.name&&(P=h(h({},P),Object(p.a)(P,c.quickFilters,c.options))),y&&c&&c.filter&&c.layer&&y.name===c.layer.name&&(P=h(h({},P),Object(a.composeAttributeFilters)([P,c.filter]))),c.viewport){var M=Object.keys(x.bounds).reduce((function(e,t){return h(h({},e),{},m({},t,parseFloat(x.bounds[t])))}),{});k=Object(i.getViewportGeometry)(M,x.crs);var I=b(y,c);return A=I?[O(Object(s.read)(I))]:[],{filter:S(E.apply(void 0,g(A).concat(g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]),g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[]),[j(o).intersects(k)])))}}return{filter:S(E.apply(void 0,g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]).concat(g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[]))))}})))},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/widgets/enhancers/utils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,n=void 0===t?{}:t,r=e.options,a=e.layer,l=void 0===a?{}:a,u=Object(o.b)(l,n),c=Object(i.find)(Object.keys(u||{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"viewparams"===e.toLowerCase()})),d=u&&c&&u[c];return{options:d?s(s({},r),{},{viewParams:d}):r}})))},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.iconFit;return{iconFit:n,tooltip:t?o.a.createElement(i.default,{msgId:"widgets.errors.nodatainviewport"}):o.a.createElement(i.default,{msgId:"widgets.errors.nodata"})}}))},"./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),a=n("./MapStore2/web/client/components/I18N/Message.jsx");function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Object(i.a)((function(e){var t=e.layers;return 0===(void 0===t?[]:t).length}),(s(e={},t?"tooltip":"title",o.a.createElement(a.default,{msgId:"widgets.errors.noLegend"})),s(e,"description",!t&&o.a.createElement(a.default,{msgId:"widgets.errors.noLegendDescription"})),e))}},"./MapStore2/web/client/components/widgets/enhancers/errorChartState.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"ECONNABORTED"===e.code?o.a.createElement(i.default,{msgId:"widgets.errors.timeoutExpired"}):e.message?o.a.createElement(i.default,{msgId:"widgets.errors.genericErrorWithMessage",msgParams:{message:e.message}}):o.a.createElement(i.default,{msgId:"widgets.errors.genericError"})};t.a=Object(a.a)((function(e){return e.error}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.error,n=e.iconFit;return{glyph:"warning-sign",iconFit:n,tooltip:s(t)}}))},"./MapStore2/web/client/components/widgets/enhancers/legendWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js"),a=n("./MapStore2/web/client/components/widgets/enhancers/tools/index.js"),s=n("./MapStore2/web/client/utils/MapUtils.js");t.a=Object(r.compose)(Object(r.withProps)((function(e){var t=e.dependencies,n=void 0===t?{}:t,r=e.dependenciesMap;return{layers:n[(void 0===r?{}:r).layers]||n.layers||[],scales:Object(s.getScales)(n.projection||n.viewport&&n.viewport.crs||"EPSG:3857",Object(o.get)(n,"mapOptions.view.DPI")),currentZoomLvl:n.zoom}})),Object(r.withProps)((function(e){var t=e.layers;return{layers:(void 0===t?[]:t).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"background"!==e.group&&!1!==e.visibility&&"vector"!==e.type}))}})),i.a,Object(a.b)(),Object(a.a)(),Object(a.e)())},"./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./node_modules/rxjs/Rx.js"),a=n.n(i),s=n("./MapStore2/web/client/observables/wps/aggregate.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),u=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.AggregationResults,n=void 0===t?[]:t,o=e.GroupByAttributes,i=void 0===o?[]:o,a=e.AggregationAttribute,s=e.AggregationFunctions;return n.map((function(e){return d(d({},i.reduce((function(t,n,o){var i=e[o];if(Object(r.isObject)(i)){if(Object(r.isNil)(i.time))throw new Error("Unknown response format from server");i=new Date(i.time).toISOString()}return d(d({},t),{},p({},n,i))}),{})),{},p({},"".concat(s[0],"(").concat(a,")"),e[e.length-1]))})).sort((function(e,t){var n=parseFloat(e[i]),r=parseFloat(t[i]);return isNaN(n)||isNaN(r)?et?1:0:n-r}))},h=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getWpsUrl)(n)&&r&&r.aggregateFunction&&r.aggregationAttribute&&r.groupByAttributes})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.groupByAttributes===t.groupByAttributes&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,o=e.filter,i=e.onLoad,u=void 0===i?function(){}:i,c=e.onLoadError,p=void 0===c?function(){}:c;return Object(s.a)(Object(l.getWpsUrl)(n),d(d({featureType:n.name},r),{},{filter:o}),{timeout:15e3}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:f(e),series:[{dataKey:"".concat(e.AggregationFunctions[0],"(").concat(e.AggregationAttribute,")")}],xAxis:{dataKey:e.GroupByAttributes[0]}}})).do(u).catch((function(e){return a.a.Observable.of({loading:!1,error:e,data:[]}).do(p)})).startWith({loading:!0})}))},m=Object(o.compose)(Object(o.withProps)((function(){return{dataStreamFactory:h}})),u.a),g=n("./MapStore2/web/client/observables/wfs.js");function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.features,n=arguments.length>1?arguments[1]:void 0,o=n.groupByAttributes;return Object(r.sortBy)(t.map((function(e){return e.properties})),o)},w=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getSearchUrl)(n)&&r&&r.aggregationAttribute&&r.groupByAttributes})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.groupByAttributes===t.groupByAttributes&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,o=e.options,i=e.filter,s=e.onLoad,l=void 0===s?function(){}:s,u=e.onLoadError,c=void 0===u?function(){}:u;return Object(g.b)(n,i,{propertyName:[].concat(y(Object(r.castArray)(o.aggregationAttribute)),y(Object(r.castArray)(o.groupByAttributes)))}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:v(e,o),series:[{dataKey:o.aggregationAttribute}],xAxis:{dataKey:o.groupByAttributes}}})).do(l).catch((function(e){return a.a.Observable.of({loading:!1,error:e,data:[]}).do(c)})).startWith({loading:!0})}))},x=Object(o.compose)(Object(o.withProps)((function(){return{dataStreamFactory:w}})),u.a);t.a=Object(o.branch)((function(e){var t=e.options,n=void 0===t?{}:t;return!n.aggregateFunction||"None"===n.aggregateFunction}),x,m)},"./MapStore2/web/client/components/widgets/enhancers/tools/index.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(w).length>0};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(k).length>0},P=Object(E.a)(S.MenuItem);function M(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(D).length>0};n.d(t,"d",(function(){return F})),n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return G})),n.d(t,"a",(function(){return W})),n.d(t,"e",(function(){return Y}));var R=function(){return Object(r.compose)(Object(r.withPropsOnChange)(["topLeftItems","widgetTools"],(function(e){var t=e.topLeftItems,n=void 0===t?[]:t,r=e.widgetTools;return{topLeftItems:N(r)?[].concat(M(n),[b.a.createElement(v.a,{btnGroupProps:{style:{position:"absolute",left:14}},btnDefaultProps:{className:"no-border",bsSize:"small",bsStyle:"link",style:{paddingLeft:4,paddingRight:4}},buttons:r.filter(D)})]):n}})))},L=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,o=void 0===r?[]:r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.updateProperty,l=void 0===s?function(){}:s,u=e.dataGrid,c=void 0===u?{}:u;return{widgetTools:a.showPin?[].concat(m(o),[{glyph:"pushpin",bsStyle:c.static&&"primary",glyphClassName:c.static?"active":void 0,tooltipId:c.static?"widgets.widget.menu.unpin":"widgets.widget.menu.pin",target:"icons",visible:!n.widget,onClick:function(){return l("dataGrid.static",!c.static)}}]):o}})))},F=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,o=void 0===r?[]:r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.canEdit,l=e.updateProperty,u=void 0===l?function(){}:l,c=e.hide,d=void 0!==c&&c;return{widgetTools:a.showHide?[].concat(f(o),[{glyph:"lock",target:"menu",active:d,textId:d?"widgets.widget.menu.unhide":"widgets.widget.menu.hide",tooltipId:d?"widgets.widget.menu.unhideDescription":"widgets.widget.menu.hideDescription",visible:!n.widget&&s,onClick:function(){return u("hide",!d)}}]):o}})))},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=void 0===t?"widget-menu":t,o=e.menuIcon,i=void 0===o?"option-vertical":o;return Object(r.withProps)((function(e){var t=e.widgetTools,r=e.topRightItems,o=void 0===r?[]:r;return{topRightItems:A(t)?[].concat(C(o),[b.a.createElement(S.ButtonToolbar,null,b.a.createElement(S.DropdownButton,{pullRight:!0,bsStyle:"default",className:n,title:b.a.createElement(S.Glyphicon,{glyph:i}),noCaret:!0,id:"dropdown-no-caret"},t.filter(k).map((function(e,t){var n=e.onClick,r=void 0===n?function(){}:n,o=e.disabled,i=void 0!==o&&o,a=e.glyph,s=e.glyphClassName,l=e.text,u=e.textId,c=e.tooltipId,d=e.active;return b.a.createElement(P,{active:d,tooltipId:c,onSelect:r,disabled:i,eventKey:t},b.a.createElement(S.Glyphicon,{className:s,glyph:a}),u?b.a.createElement(j.default,{msgId:u}):l)}))))]):o}}))},B=function(){return Object(r.compose)(Object(r.withPropsOnChange)(["icons","widgetTools"],(function(e){var t=e.icons,n=void 0===t?[]:t,r=e.widgetTools;return{icons:x(r)?b.a.createElement(v.a,{btnDefaultProps:{className:"no-border",bsSize:"xs",bsStyle:"link"},buttons:r.filter(w)}):n}})))},q=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.title,o=e.description,i=e.widgetType;return{widgetTools:o&&"text"!==i?[].concat(_(n),[{glyph:"question-sign",popover:{title:r,trigger:!0,text:o},target:"icons"}]):n}})))},U=function(){return Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.dataGrid,o=void 0===r?{}:r,i=e.canEdit,a=e.onEdit,s=void 0===a?function(){}:a,l=e.toggleDeleteConfirm,c=void 0===l?function(){}:l;return{widgetTools:i?[].concat(u(n),[{glyph:"pencil",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.edit",onClick:function(){return s()}},{glyph:"trash",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.delete",onClick:function(){return c(!0)}}]):n}}))},G=function(){return Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.data,o=e.title,i=e.exportCSV,a=void 0===i?function(){}:i;return{widgetTools:[].concat(d(n),[{glyph:"download",glyphClassName:"exportCSV",target:"menu",textId:"widgets.widget.menu.downloadData",disabled:!r||!r.length,onClick:function(){return a({data:r,title:o})}}])}}))},H=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,i=void 0===r?[]:r,a=e.dataGrid,s=void 0===a?{}:a,l=e.toggleCollapse,u=void 0===l?function(){}:l,c=e.toolsOptions;return{widgetTools:(void 0===c?{}:c).showCollapse?[].concat(o(i),[{glyph:"minus",target:"icons",tooltipId:"widgets.widget.menu.collapse",visible:!n.widget&&!s.static,onClick:function(){return u()}}]):i}})))},V=function(){return l},W=function(){return Object(r.compose)(L(),H(),V(),q())},Y=function(){return Object(r.compose)(R(),B(),z())}},"./MapStore2/web/client/components/widgets/enhancers/utils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureGridUtils.js"),i=n("./MapStore2/web/client/utils/FilterUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.layer;return Object(a.getSearchUrl)(t)===Object(a.getSearchUrl)(r)&&t.loadingError===r.loadingError})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return Object(i.a)({layer:t}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return o.a.Observable.of({loading:!1,error:e})}))}))}},"./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/observables/wps/aggregate.js"),i=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),a=n("./node_modules/rxjs/Rx.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/LayersUtils.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.AggregationResults,n=void 0===t?[]:t,r=e.GroupByAttributes,o=void 0===r?[]:r,i=e.AggregationAttribute,a=e.AggregationFunctions;return n.map((function(e){return c(c({},o.reduce((function(t,n,r){return c(c({},t),{},d({},n,e[r]))}),{})),{},d({},"".concat(a[0],"(").concat(i,")"),e[e.length-1]))}))},f=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getWpsUrl)(n)&&r&&r.aggregateFunction&&r.aggregationAttribute})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,i=e.filter,a=e.onLoad,u=void 0===a?function(){}:a,d=e.onLoadError,f=void 0===d?function(){}:d;return Object(o.a)(Object(l.getWpsUrl)(n),c(c({featureType:n.name},r),{},{filter:i}),{timeout:15e3}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:p(e),series:[{dataKey:"".concat(e.AggregationFunctions[0],"(").concat(e.AggregationAttribute,")")}]}})).do(u).catch((function(e){return s.a.Observable.of({loading:!1,error:e,data:[]}).do(f)})).startWith({loading:!0})}))};t.a=Object(r.compose)(Object(r.withProps)((function(){return{dataStreamFactory:f}})),i.a)},"./MapStore2/web/client/components/widgets/widget/CounterView.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),o=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js"),i=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),a=n("./MapStore2/web/client/components/I18N/Number.jsx"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-textfit/lib/index.js"),c=n("./node_modules/react/index.js"),d=n.n(c);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=Object(r.a)(),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=void 0===t?"":t,r=e.uom,o=void 0===r?"":r,i=g(e,["value","uom"]);return d.a.createElement(u.Textfit,m({mode:"single",forceSingleModeWidth:!1,max:500,throttle:20},i),d.a.createElement(a.a,{value:n}),d.a.createElement("span",{style:{fontSize:"75%"}},o))},v=Object(s.compose)(y,o.a,i.a);t.a=v((function(e){var t=e.series,n=void 0===t?[]:t,r=e.data,o=void 0===r?[]:r,i=e.options,a=void 0===i?{}:i,s=e.style,u=void 0===s?{width:"100%",height:"100%",transform:"translate(-50%, -50%)",position:"absolute",display:"inline",padding:"1%",top:"50%",left:"50%"}:s;return d.a.createElement("div",{className:"counter-widget-view"},n.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataKey,n=arguments.length>1?arguments[1]:void 0;return d.a.createElement(b,{key:t,uom:Object(l.get)(a,"seriesOptions[".concat(n,"].uom")),value:o[0][t],style:f({textAlign:"center"},u)})})))}))},"./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js"),s=n("./MapStore2/web/client/components/widgets/enhancers/tools/index.js");function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,n=void 0===t?{}:t,r=e.updateProperty,o=void 0===r?function(){}:r;return{gridEvents:h(h({},n),{},{onAddFilter:function(e){return o("quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,n,r,i,a){return o('options.columnSettings["'.concat(Object(p.get)(a.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.a,Object(s.b)(),Object(s.a)(),Object(s.e)(),Object(i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,n=void 0===t?{}:t,r=e.updateProperty,o=void 0===r?function(){}:r;return{gridEvents:h(h({},n),{},{onGridSort:function(e,t){return o("sortOptions",{sortBy:e,sortOrder:t})}})}}))),y=n("./MapStore2/web/client/components/widgets/enhancers/legendWidget.js"),b=Object(i.compose)(a.a,Object(s.b)(),Object(s.d)(),Object(s.a)(),Object(s.e)()),v=Object(i.compose)(a.a,Object(s.b)(),Object(s.a)(),Object(s.e)()),w=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),x=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),_=n("./MapStore2/web/client/utils/ogc/WFS/base.js"),O=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),S=n("./MapStore2/web/client/components/widgets/enhancers/wfsTable/describeFetch.js"),j=n("./node_modules/rxjs/Rx.js"),E=n.n(j),C=n("./MapStore2/web/client/observables/wfs.js"),T=function(e){return e.switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,o=void 0===r?{}:r,i=e.filter,a=e.onLoad,s=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return Object(C.b)(n,i,{timeout:15e3,params:{propertyName:o.propertyName,viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return s({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return E.a.Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&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}(s,t.options)&&(n=l,r=t.filter,n===r)&&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}(u,t.sortOptions)})).map((function(e){return A(A({},e),{},{features:[],pages:[],pagination:{}})}))},I=n("./MapStore2/web/client/utils/FeatureGridUtils.js");function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return M(e).let(n?L(t.withLatestFrom(e.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pagination,n=void 0===t?{}:t;return{pagination:n}})),(function(e,t){return z({pagesRange:e},t)}))):T).startWith({})}(e,r.startWith({startPage:0,endPage:1})),(function(e,t){return z(z(z({},e),t),{},{pageEvents:{moreFeatures:n,onPageChange:function(){}}})})).startWith({loading:!0})},U=Object(i.compose)(Object(i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),Object(i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pages,n=e.features,r=e.pagination;return{pages:t,features:n,pagination:r,error:void 0}}}}),Object(i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,n=void 0===t?function(){}:t,r=e.onLoad,o=void 0===r?function(){}:r;return function(){n.apply(void 0,arguments),o.apply(void 0,arguments)}}}),Object(i.withProps)((function(){return{dataStreamFactory:q}})),O.a,Object(i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:Object(p.merge)(r?Object(_.getFeatureTypeProperties)(r).filter((function(e){return!Object(p.includes)(n.propertyName||[],e.name)})).reduce((function(e,t){return z(z({},e),{},B({},t.name,{hide:!0}))}),{}):{},n.columnSettings||{},i)}}))),G=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),H=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),V=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),W=n("./node_modules/xml2js/lib/xml2js.js"),Y=n.n(W),K=n("./MapStore2/web/client/components/widgets/enhancers/utils.js"),X=n("./MapStore2/web/client/observables/wps/common.js"),Z=n("./MapStore2/web/client/observables/wps/execute.js"),Q=function(e){var t=e.wfsGetFeature;return Object(Z.b)("gs:Bounds",[Object(X.d)("features",Object(X.e)("text/xml","http://geoserver/wfs","POST",t))],Object(X.g)(Object(X.f)("bounds","application/json")))},$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(Z.a)(e,Q(t),{},n)},J=n("./MapStore2/web/client/utils/FilterUtils.js"),ee=n("./MapStore2/web/client/utils/LayersUtils.js"),te=n("./MapStore2/web/client/utils/ImmutableUtils.js"),ne=n("./MapStore2/web/client/utils/MapUtils.js");function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies;return t&&(!Object(p.isEmpty)(n.quickFilters)||!Object(p.isEmpty)(n.filter))}),Object(i.compose)(Object(i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||Object(ne.createRegisterHooks)()}})),Object(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 Object(p.isEqual)(e.dependencies.quickFilters,t.dependencies.quickFilters)&&Object(p.isEqual)(e.dependencies.filter,t.dependencies.filter)&&Object(p.isEqual)(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.filter,i=e.hookRegister;if(!t||Object(p.isEmpty)(r.layer))return j.Observable.of({loading:!1});var a={};r.quickFilters&&(a=oe(oe({},a),Object(K.a)(o,r.quickFilters,r.options))),r.filter&&(a=oe(oe({},a),Object(J.composeAttributeFilters)([a,r.filter])));var s=r&&r.layer&&r.layer.name;if(!Object(p.isEmpty)(a)){a=oe(oe({},a),{},{options:oe(oe({},a.options||{}),{},{noSchemaLocation:!0})});var l=Object(J.toOGCFilter)(s,a,"1.1.0");return $(Object(ee.getWpsUrl)(r.layer),{wfsGetFeature:l}).switchMap((function(e){var t,n,r;if(Y.a.parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],n=t["ows:LowerCorner"].split(" "),r=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return j.Observable.of({loading:!1});var o={minx:parseFloat(n[0]),miny:parseFloat(n[1]),maxx:parseFloat(r[0]),maxy:parseFloat(r[1])},a=i.getHook(ne.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),j.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return j.Observable.of({error:"error getting bounds from filter",details:e})}))}return j.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,n=void 0!==t&&t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(te.e)("loading",n,r)}))}))))),se=n("./MapStore2/web/client/utils/VendorParamsUtils.js");function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.map,i=void 0===o?{}:o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;return t!==a.mapSync||!Object(p.isEqual)(r,a.dependencies)||!Object(p.isEqual)(i,a.map)||s!==a.filter}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.filter,i=void 0===o?{}:o,a=e.map,s=void 0===a?{layers:[]}:a,l=r&&r.layer&&r.layer.name,u=Object(p.find)(s.layers,{name:l})||{},c={},d={},f=void 0;return t&&!Object(p.isEmpty)(u)&&(r.quickFilters&&(c=ue(ue({},c),Object(K.a)(i,r.quickFilters,r.options))),r.filter&&(c=ue(ue({},c),Object(J.composeAttributeFilters)([c,r.filter]))),!Object(p.isEmpty)(c)&&Object(J.toCQLFilter)(c))?(f=Object(J.toCQLFilter)(c),d=Object(te.b)(!1,ue(ue({},u),{},{params:Object(se.optionsToVendorParams)({params:{CQL_FILTER:f}},u&&u.params&&u.params.CQL_FILTER)}),{name:l},s.layers),{map:ue(ue({},s),{},{layers:d})}):(d=s.layers.map((function(e){return ue(ue({},e),{},{params:ue(ue({},e.params),{},{CQL_FILTER:void 0})})})),{map:ue(ue({},s),{},{layers:d})})}))),pe=function(e){return Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync;return t}),Object(i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mapSync,r=t.dependencies,o=void 0===r?{}:r,a=arguments.length>1?arguments[1]:void 0,s=a.mapSync,l=a.dependencies;return l&&Object(i.shallowEqual)(o[e],l[e])||n===s}),(function(t){var n=t.map,r=t.mapSync,o=t.dependencies,i=void 0===o?{}:o;return{mapStateSource:"__dependency_system__",map:i[e]&&r?Object(te.e)(e,i[e],n):n}})))},fe=n("./node_modules/react-bootstrap/es/index.js");function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?[]:t,r=ye(e,["data"]),i=Object.keys(n.reduce((function(e,t){return me(me({},e),t)}),{}));return o.a.createElement("div",{className:"mapstore-widget-table"},o.a.createElement(fe.Table,{striped:!0},o.a.createElement("thead",null,o.a.createElement("tr",null,i.map((function(e,t){return o.a.createElement("th",null,t+1===i.length&&r.yAxisLabel?r.yAxisLabel:t>0?"".concat(e):e)})))),o.a.createElement("tbody",null,n.map((function(e){return o.a.createElement("tr",null,i.map((function(t){return o.a.createElement("td",null,e[t])})))})))))},ve=n("./node_modules/react-container-dimensions/lib/index.js"),we=n.n(ve),xe=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),_e=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js"),Oe=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),Se=n("./MapStore2/web/client/components/charts/SimpleChart.jsx"),je=Object(xe.a)()(Object(_e.a)(Object(Oe.a)(Se.a))),Ee=function(e){return o.a.createElement("div",{className:"mapstore-widget-chart"},o.a.createElement(we.a,null,o.a.createElement(je,e)))},Ce=n("./MapStore2/web/client/components/I18N/Message.jsx"),Te=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),ke=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),Ae=function(e){var t=e.id,n=e.title,r=e.confirmDelete,i=void 0!==r&&r,a=e.className,s=e.isDraggable,l=void 0===s||s,u=e.toggleDeleteConfirm,c=void 0===u?function(){}:u,d=e.onDelete,p=void 0===d?function(){}:d,f=e.icons,h=e.topLeftItems,m=e.topRightItems,g=e.headerStyle,y=void 0===g?{}:g,b=e.children;return o.a.createElement("div",{className:"mapstore-widget-card",id:t},o.a.createElement(Te.a,{className:a,header:o.a.createElement("div",{style:y,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o.a.createElement("div",{className:"mapstore-widget-header"},o.a.createElement("span",{className:"widget-icons"},f),h,o.a.createElement("span",{className:"widget-title"},n),o.a.createElement("span",{className:"mapstore-widget-options"},m)))},b),i?o.a.createElement(ke.a,{confirmText:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.delete"}),titleText:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.delete"}),body:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return c(!1)},onConfirm:function(){return p(t)}}):null)};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,n=e.toggleTableView,r=void 0===n?function(){}:n;return t?o.a.createElement(fe.Glyphicon,{onClick:function(){r()},glyph:"arrow-left pull-left"}):null},De=function(e){var t=e.id,n=e.title,r=e.description,i=e.headerStyle,a=e.data,s=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,c=e.loading,d=e.icons,p=e.showTable,f=e.topRightItems,h=e.confirmDelete,m=void 0!==h&&h,g=e.dataGrid,y=void 0===g?{}:g,b=e.onDelete,v=void 0===b?function(){}:b,w=e.toggleTableView,x=void 0===w?function(){}:w,_=e.toggleDeleteConfirm,O=void 0===_?function(){}:_,S=Me(e,["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"]);return o.a.createElement(Ae,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:y.isDraggable,title:n,icons:d,topLeftItems:Ie({loading:c,title:n,description:r,showTable:p,toggleTableView:x}),confirmDelete:m,onDelete:v,toggleDeleteConfirm:O,topRightItems:f},p?o.a.createElement(be,Pe({data:s},S)):o.a.createElement(Ee,Pe({id:t,isAnimationActive:!c,loading:c,data:s,series:u,iconFit:!0},S)))},Ne=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),Re=Object(Ne.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return!t}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconFit;return{iconFit:t,tooltip:o.a.createElement(Ce.default,{msgId:"widgets.errors.notext"})}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return o.a.createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:t}})})),Le=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),Fe=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx");function ze(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Be=Object(i.withHandlers)({onMapViewChanges:function(e){var t=e.updateProperty,n=void 0===t?function(){}:t;return function(e){e.layers;var t=ze(e,["layers"]);return n("map",t,"merge")}}})(Fe.a),qe=n("./MapStore2/web/client/components/data/featuregrid/filterRenderers/index.js");function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,n=e.options,r=e.quickFilterStream$;return t?{filterRenderers:Object(I.d)(t).reduce((function(e,t){var o=t.localType,i=t.name,a=We({options:n,localType:o,attributeName:i,quickFilterStream$:r});return Ge(Ge({},e),{},He({},i,a))}),{})}:{}}))),Xe=n("./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx"),Ze=n("./MapStore2/web/client/components/data/featuregrid/FeatureGrid.jsx"),Qe=Object(_e.a)(Object(xe.a)((function(e){return!e.describeFeatureType}))(Ze.a)),$e=Ke((function(e){var t=e.id,n=e.title,r=e.loading,i=e.confirmDelete,a=void 0!==i&&i,s=e.enableColumnFilters,l=void 0!==s&&s,u=e.headerStyle,c=e.icons,d=e.topRightItems,p=e.toggleDeleteConfirm,f=void 0===p?function(){}:p,h=e.onDelete,m=void 0===h?function(){}:h,g=e.gridEvents,y=void 0===g?function(){}:g,b=e.pageEvents,v=void 0===b?{moreFeatures:function(){}}:b,w=e.describeFeatureType,x=e.filterRenderers,_=e.columnSettings,O=e.features,S=e.size,j=e.pages,E=e.error,C=e.pagination,T=void 0===C?{}:C,k=e.dataGrid,A=void 0===k?{}:k,P=e.virtualScroll,M=void 0===P||P;return o.a.createElement(Ae,{id:"widget-chart-".concat(t),title:n,headerStyle:u,icons:c,isDraggable:A.isDraggable,confirmDelete:a,onDelete:m,toggleDeleteConfirm:f,topRightItems:d},o.a.createElement(Te.a,{footer:T.totalFeatures?o.a.createElement("div",{style:{height:"30px",overflow:"hidden"}},r?o.a.createElement("span",{style:{float:"right"}},o.a.createElement(Le.a,null)):null,void 0===E&&o.a.createElement("span",{style:{float:"left",margin:"5px"}},o.a.createElement(Ce.default,{msgId:"featuregrid.resultInfoVirtual",msgParams:{total:T.totalFeatures}}))):null},o.a.createElement(Qe,{emptyRowsView:function(){return o.a.createElement(Xe.a,{loading:r})},gridEvents:y,sortable:!0,defaultSize:!1,columnSettings:_,pageEvents:v,virtualScroll:M,enableColumnFilters:l,filterRenderers:x,features:O,pages:j,error:E,size:S,rowKey:"id",describeFeatureType:w,pagination:T})))})),Je=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function et(){return(et=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,n=e.toggleTableView,r=void 0===n?function(){}:n;return t?o.a.createElement(fe.Glyphicon,{onClick:function(){r()},glyph:"arrow-left pull-left"}):null},rt=n("./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js"),ot=n("./MapStore2/web/client/components/widgets/widget/LegendView.jsx");function it(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var at=Object(rt.a)()(ot.a),st=Object(i.compose)(V.a,G.a,H.a,w.a,c)(De),lt=Object(i.compose)(b)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,n=void 0===t?function(){}:t,r=e.icons,i=e.topLeftItems,a=e.id,s=e.title,l=e.text,u=e.headerStyle,c=e.topRightItems,d=e.dataGrid,p=void 0===d?{}:d,f=e.confirmDelete,h=void 0!==f&&f,m=e.onDelete,g=void 0===m?function(){}:m;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:h,onDelete:g,toggleDeleteConfirm:n,headerStyle:u,isDraggable:p.isDraggable,icons:r,topLeftItems:i,topRightItems:c},o.a.createElement(Re,{text:l}))})),ut=Object(i.compose)(V.a,de,pe("center"),pe("zoom"),ae,v)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateProperty,n=void 0===t?function(){}:t,r=e.toggleDeleteConfirm,i=void 0===r?function(){}:r,a=e.id,s=e.title,l=e.map,u=e.icons,c=e.hookRegister,d=e.mapStateSource,f=e.topRightItems,h=e.confirmDelete,m=void 0!==h&&h,g=e.loading,y=void 0!==g&&g,b=e.dataGrid,v=void 0===b?{}:b,w=e.onDelete,x=void 0===w?function(){}:w,_=e.headerStyle,O=e.env;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:m,onDelete:x,toggleDeleteConfirm:i,headerStyle:_,icons:u,topRightItems:f,isDraggable:v.isDraggable},o.a.createElement(Te.a,{footer:o.a.createElement("div",{style:{height:"30px",overflow:"hidden"}},y?o.a.createElement("span",{style:{float:"right"}},o.a.createElement(Le.a,null)):null)},o.a.createElement(Be,{updateProperty:n,id:a,map:Object(p.omit)(l,"mapStateSource"),mapStateSource:d,hookRegister:c,layers:l&&l.layers,options:{style:{margin:10,height:"calc(100% - 20px)"}},env:O})))})),ct=Object(i.compose)(V.a,H.a,G.a,U,g)($e),dt=Object(i.compose)(V.a,G.a,H.a,x.a,d)((function(e){var t=e.id,n=e.title,r=e.description,i=e.data,a=void 0===i?[]:i,s=e.series,l=void 0===s?[]:s,u=e.loading,c=e.showTable,d=e.confirmDelete,p=void 0!==d&&d,f=e.headerStyle,h=e.icons,m=e.topRightItems,g=e.dataGrid,y=void 0===g?{}:g,b=e.toggleTableView,v=void 0===b?function(){}:b,w=e.toggleDeleteConfirm,x=void 0===w?function(){}:w,_=e.onDelete,O=void 0===_?function(){}:_,S=tt(e,["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","dataGrid","toggleTableView","toggleDeleteConfirm","onDelete"]);return o.a.createElement(Ae,{className:"counter-widget",id:"widget-chart-".concat(t),title:n,isDraggable:y.isDraggable,icons:h,topLeftItems:nt({loading:u,title:n,description:r,showTable:c,toggleTableView:v}),confirmDelete:p,onDelete:O,toggleDeleteConfirm:x,headerStyle:f,topRightItems:m},o.a.createElement(Je.a,et({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},S)))})),pt=Object(i.compose)(V.a,y.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,n=void 0===t?function(){}:t,r=e.id,i=e.title,a=e.icons,s=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,c=e.topRightItems,d=e.dataGrid,p=void 0===d?{}:d,f=e.onDelete,h=void 0===f?function(){}:f,m=it(e,["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"]);return o.a.createElement(Ae,{id:"widget-text-".concat(r),title:i,confirmDelete:u,onDelete:h,toggleDeleteConfirm:n,headerStyle:s,icons:a,topRightItems:c,isDraggable:p.isDraggable},o.a.createElement(at,m))}));function ft(){return(ft=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,n=e.toggleCollapse,r=void 0===n?function(){}:n,i=e.exportCSV,a=void 0===i?function(){}:i,s=e.exportImage,l=void 0===s?function(){}:s,u=e.onDelete,c=void 0===u?function(){}:u,d=e.onEdit,p=void 0===d?function(){}:d,f=ht(e,["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"]);return"text"===f.widgetType?o.a.createElement(lt,ft({},f,{toggleCollapse:r,onDelete:c,onEdit:p})):"table"===f.widgetType?o.a.createElement(ct,ft({},f,{toggleCollapse:r,exportCSV:a,dependencies:t,onDelete:c,onEdit:p})):"counter"===f.widgetType?o.a.createElement(dt,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):"map"===f.widgetType?o.a.createElement(ut,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):"legend"===f.widgetType?o.a.createElement(pt,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):o.a.createElement(st,ft({},f,{toggleCollapse:r,exportCSV:a,dependencies:t,exportImage:l,onDelete:c,onEdit:p}))}},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n.n(i),s=n("./node_modules/prop-types/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&!_.default.isAllowedSRS("EPSG:3857",w))return r.Observable.empty();m=Object(x.g)(l,"wms",{removeParams:b,catalogURL:"csw"===t&&n?n+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+l.identifier:n},g)}else if(h){m={};var O=Object(x.a)(h.SRS);if(h.SRS.length>0&&!_.default.isAllowedSRS("EPSG:3857",O))return r.Observable.empty();m=Object(x.g)(l,"wmts",{removeParams:b},g)}else{Object(x.c)(l).esri&&(m=Object(x.b)(l,g))}return l?m:o}))):r.Observable.empty()}))})).mergeMap((function(e){if(e){var t=e.filter((function(e){return Object(u.isString)(e)})).join(" "),n=[];return t&&(n=[Object(c.X)(t)]),n=[].concat(j(n),j(e.filter((function(e){return Object(u.isObject)(e)})).map((function(e){return Object(d.D)(e)})))),r.Observable.from(n)}return r.Observable.empty()})).catch((function(){return r.Observable.empty()}))},newCatalogServiceAdded:function(t,n){return t.ofType(c.d).switchMap((function(){var t=n.getState(),o=Object(y.j)(t);return r.Observable.of(o).switchMap((function(t){var n,o,i;return null!==(n=null===(o=e[t.type])||void 0===o||null===(i=o.validate)||void 0===i?void 0:i.call(o,t))&&void 0!==n?n:r.Observable.of(t)})).switchMap((function(t){var n,o,i;return null!==(n=null===(o=e[t.type])||void 0===o||null===(i=o.testService)||void 0===i?void 0:i.call(o,t))&&void 0!==n?n:r.Observable.of(t)})).switchMap((function(){return r.Observable.of(Object(c.C)(o),Object(p.j)({title:"notification.success",message:"catalog.notification.addCatalogService",autoDismiss:6,position:"tc"}))})).startWith(Object(c.Z)(!0)).catch((function(e){return r.Observable.of(Object(p.f)({exception:e,title:"notification.warning",message:e.notification||"catalog.notification.warningAddCatalogService",autoDismiss:6,position:"tc"}))})).concat(r.Observable.of(Object(c.Z)(!1)))}))},deleteCatalogServiceEpic:function(e,t){return e.ofType(c.q).switchMap((function(){var e=t.getState(),n=Object(y.s)(e),o=Object(y.v)(e),i=o[n]?Object(p.j)({title:"notification.warning",message:"catalog.notification.serviceDeletedCorrectly",autoDismiss:6,position:"tc"}):Object(p.f)({title:"notification.warning",message:"catalog.notification.impossibleDeleteService",autoDismiss:6,position:"tc"}),a=Object(c.R)(n);return o[n]?r.Observable.of(i,a):r.Observable.of(i)}))},openCatalogEpic:function(e){return e.ofType(f.c).filter((function(e){return"metadataexplorer"===e.control&&e.value})).switchMap((function(){return r.Observable.of(Object(h.fb)(),Object(m.Q)(),Object(m.L)())}))},getMetadataRecordById:function(t,n){return t.ofType(c.s).switchMap((function(t){var o=t.metadataOptions,a=void 0===o?{}:o,c=n.getState(),f=Object(w.j)(c);return r.Observable.defer((function(){return e.wms.getCapabilities(Object(O.getCapabilitiesUrl)(f))})).switchMap((function(t){var n=Object(u.get)(t,"capability.layer.layer",[]),o=1===n.length?n[0].metadataURL:Object(u.find)(n,(function(e){return e.name===f.name.split(":")[1]})),c=Object(u.get)(Object(u.find)(o,(function(e){return Object(u.isString)(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&("application/xml"===e.format||"text/xml"===e.format)})),"onlineResource.href"),h=Object(u.get)(Object(u.find)(o,(function(e){return Object(u.isString)(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&"text/html"===e.format})),"onlineResource.href"),m=Object(u.find)(Object(u.get)(a,"extractors",[]),(function(e){var t=e.properties,n=e.layersRegex,r=n?new RegExp(n):null;return Object(u.isObject)(t)&&(!n||r.test(f.name))})),g=h?{metadataUrl:h}:{},y=r.Observable.defer((function(){return e.csw.getRecordById(f.catalogURL)})).switchMap((function(e){return e&&e.error?r.Observable.of(Object(p.f)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),Object(d.X)(g,!1)):e&&e.dc?r.Observable.of(Object(d.X)(A(A({},g),e.dc),!1)):r.Observable.empty()})),b=r.Observable.defer((function(){return i.a.get(c)})).pluck("data").map((function(e){return(new l.DOMParser).parseFromString(e)})).map((function(e){var t=s.a.useNamespaces(a.xmlNamespaces||{});return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Object(u.toPairs)(n).reduce((function(n,o){var i,a=S(o,2),s=a[0],l=a[1];if(Object(u.isObject)(l)&&Object(u.isString)(l.xpath)&&Object(u.isObject)(l.properties)&&Object(u.keys)(l.properties).length>0){0===(i=t(l.xpath,r).map((function(t){return e(l.properties,t)}))).length&&(i=null)}else{var c,d=t(l,r);if(1===d.length)i=null!==(c=Object(u.get)(d[0],"nodeValue"))&&void 0!==c?c:Object(u.get)(d[0],"childNodes[0].nodeValue");else d.length>1&&(i=d.map((function(e){return Object(u.get)(e,"childNodes[0].nodeValue")})).filter((function(e){return!!e})))}return A(A({},n),i?P({},s,i):{})}),{})}(m.properties,e)})).switchMap((function(e){return r.Observable.of(Object(d.X)(A(A({},g),e),!1))}));return c&&m?b:f.catalogURL?y:r.Observable.of(Object(d.X)(g,!1))})).startWith(Object(d.X)({},!0)).catch((function(){return r.Observable.of(Object(p.f)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),Object(d.X)({},!1))}))}))},autoSearchEpic:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,o=void 0===n?function(){}:n;return e.ofType(c.l).debounce((function(){var e=o(),t=Object(y.d)(e);return r.Observable.timer(t)})).switchMap((function(e){var t=e.text,n=o(),i=Object(y.l)(n),a=Object(y.q)(n),s=a.type,l=a.url;return r.Observable.of(Object(c.bb)({format:s,url:l,startPosition:1,maxRecords:i,text:t}))}))},catalogCloseEpic:function(e,t){return e.ofType(c.e).switchMap((function(){var e,n=t.getState(),o=Object(b.f)(n),i=Object(y.v)(n);return(e=r.Observable).of.apply(e,j([Object(f.f)("metadataexplorer","enabled",!1,"group",null),Object(c.I)("view"),Object(c.Y)()].concat("backgroundSelector"===o?[Object(c.K)(Object(u.head)(Object(u.keys)(i))),Object(g.p)(!0)]:[])))}))}}}},"./MapStore2/web/client/epics/measurement.js":function(e,t,n){"use strict";n.r(t),n.d(t,"addAnnotationFromMeasureEpic",(function(){return w})),n.d(t,"addAsLayerEpic",(function(){return x})),n.d(t,"openMeasureEpic",(function(){return _})),n.d(t,"closeMeasureEpics",(function(){return O})),n.d(t,"setMeasureStateFromAnnotationEpic",(function(){return S}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./node_modules/uuid/v1.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MeasurementUtils.js"),l=n("./MapStore2/web/client/actions/measurement.js"),u=n("./MapStore2/web/client/actions/layers.js"),c=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),d=n("./MapStore2/web/client/actions/controls.js"),p=n("./MapStore2/web/client/actions/featuregrid.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),h=n("./MapStore2/web/client/selectors/controls.js"),m=n("./MapStore2/web/client/selectors/measurement.js"),g=n("./MapStore2/web/client/actions/annotations.js");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o.a.Observable.defer((function(){return h.a[n?"updateStyle":"createStyle"]({baseUrl:t,code:r,format:a,styleName:s,languageVersion:u,options:c})})).switchMap((function(){var e;return Object(i.isArray)(d)&&(e=o.a.Observable).of.apply(e,[Object(f.x)()].concat(T(d)))||d})).catch((function(e){var t;return(t=o.a.Observable).of.apply(t,[Object(f.v)(l,e),Object(f.x)()].concat(T(p)))})).startWith(Object(f.y)(l))},R=function(e,t){return e.ofType(f.m).filter((function(){return!Object(S.n)(t.getState())})).switchMap((function(e){var n=t.getState(),r=Object(j.o)(n),a=!!Object(i.get)(r,"options.availableStyles");if(!e.enabled)return function(e){var t=Object(S.u)(e),n=Object(S.s)(e).baseUrl,r=void 0===n?"":n;return o.a.Observable.of(Object(f.z)(),Object(l.e)({owner:y.b})).merge(t?D({styleName:t,baseUrl:r}):o.a.Observable.empty())}(n);if(Object(S.e)(n)&&a)return o.a.Observable.empty();var u=e.layer||Object(j.j)(n);if(!u||u&&!u.url)return o.a.Observable.empty();var d=Object(p.findGeoServerName)(u);if(!d)return o.a.Observable.empty();var m=u.url.split(d),g="".concat(m[0]).concat(d),b=Object(S.s)(n);return o.a.Observable.defer((function(){return Object(C.c)({baseUrl:g,styleService:b})})).switchMap((function(e){var t,n=[Object(f.w)(e)];return(t=Object(c.b)(u).switchMap((function(e){var t=Object(p.formatCapabitiliesOptions)(e);if(!t.availableStyles)return o.a.Observable.of(Object(f.v)("availableStyles",{status:401}),Object(f.x)());return o.a.Observable.defer((function(){return h.a.getStylesInfo({baseUrl:g,styles:t&&t.availableStyles||[]})})).switchMap((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return o.a.Observable.of(Object(l.g)(u.id,y.b,"override",{}),Object(s.eb)({availableStyles:e}),Object(s.cb)(u.id,"layer",P(P({},t),{},{availableStyles:e})),Object(f.x)())}(e)}))}))).startWith.apply(t,n).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)())}))})).startWith(Object(f.y)("global"))}))},L=function(e,t){return e.ofType(f.o).filter((function(e){return!!e.status})).switchMap((function(n){var r=t.getState(),i=Object(S.j)(r),a=i&&i.params||{},l=i&&!i.describeFeatureType&&Object(u.a)(i.url,i,{query:a}),c=Object(S.q)(r)||i.availableStyles&&i.availableStyles[0]&&i.availableStyles[0].name,d=Object(S.p)(r),p=Object(S.s)(r).baseUrl,h=void 0===p?"":p;return l&&function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};return(n=o.a.Observable).of.apply(n,[Object(f.y)("global")].concat(T(i))).merge(e.ofType(s.z).filter((function(){var e=Object(j.j)(t.getState());return r(e)})).switchMap((function(){var e=Object(j.j)(t.getState());return a(e)})).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)())})).takeUntil(e.ofType(f.g)))}(e,t,(function(e){return e&&e.describeLayer}),[l],(function(e){return o.a.Observable.concat(I({status:n.status,styleName:c,baseUrl:h}),o.a.Observable.of(Object(f.C)(!(e&&e.describeLayer&&401===e.describeLayer.error)),Object(f.E)({editorType:d.msEditorType||"textarea",styleJSON:d.msStyleJSON}),Object(f.x)()))}))||o.a.Observable.concat(I({status:n.status,styleName:c,baseUrl:h}),o.a.Observable.of(Object(f.E)({editorType:d.msEditorType||"textarea",styleJSON:d.msStyleJSON})))}))},F=function(e,t){return e.ofType(f.j,f.d).switchMap((function(e){var n=t.getState(),r=Object(S.u)(n),o=Object(S.j)(n),i=Object(y.h)(o.name).workspace,s=e.format&&e.format!==Object(S.g)(n),u=r||"".concat(i?"".concat(i,":"):"").concat(Object(y.f)()),c=e.format||Object(S.g)(n),d=Object(S.r)(n),p=Object(S.s)(n).baseUrl,h=void 0===p?"":p,m=Object(S.l)(n),g="sld"===c&&(e.code||"").match(/version=\"1\.1\.0\"/)&&{version:"1.1.0"}||e.format&&!e.languageVersion&&{version:"1.0.0"}||e.languageVersion||{version:"1.0.0"},b=m.version!==g.version?{params:{raw:!0}}:{},v=g,w=function(t){return N({update:!0,code:e.code,format:c,styleName:t,status:d,baseUrl:h,languageVersion:v,options:b},[Object(l.h)(y.b,[{style:t,_v_:Date.now(),singleTile:!0}]),Object(f.H)({temporaryId:t,templateId:e.templateId||"",code:e.code,format:c,init:e.init,languageVersion:v})],"edit"===d?[]:[Object(a.f)({title:"styleeditor.updateTmpErrorTitle",message:"styleeditor.updateTmpStyleErrorMessage",uid:"updateTmpStyleError",autoDismiss:5})])},x=("css"===c?"* { stroke: #888888; }":"sld"===c&&'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n')||"",_=function(e){return N({code:x,format:c,styleName:e,status:d,baseUrl:h},w(e),[Object(a.f)({title:"styleeditor.createTmpErrorTitle",message:"styleeditor.createTmpStyleErrorMessage",uid:"createTmpStyleError",autoDismiss:5}),Object(f.H)({temporaryId:null,templateId:"",code:"",format:"",init:"",languageVersion:null})])};return s&&r&&D({styleName:r,baseUrl:h,onSuccess$:_("".concat(i?"".concat(i,":"):"").concat(Object(y.f)())),onError$:w(u)})||r&&w(u)||_(u)}))},z=function(e,t){return e.ofType(f.b).switchMap((function(e){var n=t.getState(),r=Object(S.c)(n),u=Object(S.j)(n),c=Object(y.h)(u.name).workspace,d="".concat(c?"".concat(c,":"):"").concat(Object(y.e)(e.settings)),p=Object(S.g)(n),m=e.settings||{},g=m.title,b=void 0===g?"":g,v=m._abstract,w=void 0===v?"":v,x=Object(S.s)(n).baseUrl,_=void 0===x?"":x,j=P({title:b,description:w},{msStyleJSON:null,msEditorType:"visual"});return o.a.Observable.defer((function(){return h.a.createStyle({baseUrl:_,code:Object(i.template)(r)({styleTitle:b,styleAbstract:w}),format:p,styleName:d,metadata:j})})).switchMap((function(){return o.a.Observable.of(Object(l.h)(y.b,[{}]),Object(s.eb)({style:d||""},!0),Object(f.F)(""),Object(f.x)()).merge(function(e){var t=e.baseUrl,n=e.layer,r=e.styleName,a=e.format,l=e.title,u=e._abstract,c=e.metadata;return o.a.Observable.defer((function(){return O.updateAvailableStyles({baseUrl:t,layerName:n.name,styles:[{name:r}]})})).switchMap((function(){var e=P({filename:"".concat(r,".").concat(a),format:a,name:r,title:l,_abstract:u},c&&{metadata:c}),t=Object(i.head)(n.availableStyles),d=n.availableStyles&&[t,e].concat(T(n.availableStyles.filter((function(e,t){return t>0}))))||[e];return o.a.Observable.of(Object(s.eb)({availableStyles:d},!0),Object(f.x)())})).catch((function(){return o.a.Observable.of(Object(f.x)())})).startWith(Object(f.y)("global"))}({layer:u,styleName:d,format:p,title:b,_abstract:w,baseUrl:_,metadata:j}))})).catch((function(e){return o.a.Observable.of(Object(f.v)("",e),Object(f.x)(),Object(a.f)({title:"styleeditor.createStyleErrorTitle",message:"styleeditor.createStyleErrorMessage",uid:"createStyleError",autoDismiss:5}))})).startWith(Object(f.y)(""))}))},B=function(e,t){return e.ofType(f.p).switchMap((function(){var e=t.getState(),n=Object(S.g)(e),r=Object(S.l)(e),i=Object(S.c)(e),l=Object(S.q)(e),u=Object(S.u)(e),c=Object(S.j)(e),d=Object(S.s)(e).baseUrl,p=void 0===d?"":d,m=Object(S.d)(e)||{},g={msStyleJSON:m.styleJSON||null,msEditorType:m.editorType},y=(c.availableStyles||[]).map((function(e){return e.name===l?P(P({},e),{},{metadata:P(P({},e.metadata),g)}):e}));return o.a.Observable.defer((function(){return h.a.updateStyle({baseUrl:p,code:i,format:n,styleName:l,languageVersion:r,options:{params:{raw:!0}},metadata:g})})).switchMap((function(){return o.a.Observable.of(Object(f.x)(),Object(s.cb)(c.id,"layer",{_v_:Date.now(),availableStyles:y}),Object(s.eb)({availableStyles:y}),Object(f.H)({temporaryId:u,templateId:"",code:i,format:n,init:!0,languageVersion:r}),Object(a.j)({title:"styleeditor.savedStyleTitle",message:"styleeditor.savedStyleMessage",uid:"savedStyleTitle",autoDismiss:5}))})).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)(),Object(a.f)({title:"styleeditor.updateStyleErrorTitle",message:"styleeditor.updateStyleErrorMessage",uid:"updateStyleError",autoDismiss:5}))})).startWith(Object(f.y)("global"))}))},q=function(e,t){return e.ofType(f.c).filter((function(e){return!!e.styleName})).switchMap((function(e){var n=e.styleName,r=t.getState(),i=Object(S.j)(r),l=Object(S.s)(r).baseUrl,u=void 0===l?"":l,c=Object(E.f)(r),p=Object(E.d)(r);return o.a.Observable.defer((function(){return O.removeStyles({baseUrl:u,layerName:i.name,styles:[{name:n}]})})).switchMap((function(){var e=i.availableStyles&&i.availableStyles.filter((function(e){return e.name!==n}))||[];return o.a.Observable.concat(o.a.Observable.of(Object(s.eb)({style:"",availableStyles:e},!0),Object(f.x)(),Object(d.g)("layersettings","originalSettings",P(P({},c),{},{style:""})),Object(d.g)("layersettings","initialSettings",P(P({},p),{},{style:""}))),D({styleName:n,baseUrl:u,onSuccess$:o.a.Observable.of(Object(a.j)({title:"styleeditor.deletedStyleSuccessTitle",message:"styleeditor.deletedStyleSuccessMessage",uid:"deletedStyleSuccess",autoDismiss:5})),onError$:o.a.Observable.of(Object(a.f)({title:"styleeditor.deletedStyleErrorTitle",message:"styleeditor.deletedStyleErrorMessage",uid:"deletedStyleError",autoDismiss:5}))}))})).catch((function(){return o.a.Observable.of(Object(f.x)())})).startWith((function(){return o.a.Observable.of(Object(f.y)("global"))}))}))},U=function(e,t){return e.ofType(f.k).switchMap((function(){var e=t.getState(),n=Object(S.s)(e).baseUrl,r=void 0===n?"":n,i=Object(S.j)(e),l=Object(S.q)(e);return o.a.Observable.defer((function(){return O.updateDefaultStyle({baseUrl:r,layerName:i.name,styleName:l})})).switchMap((function(){var e=i.availableStyles.filter((function(e){var t=e.name;return l===t})),t=i.availableStyles.filter((function(e){var t=e.name;return l!==t})),n=[].concat(T(e),T(t));return o.a.Observable.of(Object(s.eb)({availableStyles:n},!0),Object(a.j)({title:"styleeditor.setDefaultStyleSuccessTitle",message:"styleeditor.setDefaultStyleSuccessMessage",uid:"setDefaultStyleSuccess",autoDismiss:5}),Object(f.x)())})).startWith(Object(f.y)("global")).catch((function(){return o.a.Observable.of(Object(a.f)({title:"styleeditor.setDefaultStyleErrorTitle",message:"styleeditor.setDefaultStyleErrorMessage",uid:"setDefaultStyleError",autoDismiss:5}),Object(f.x)())}))}))};t.default={toggleStyleEditorEpic:R,updateLayerOnStatusChangeEpic:L,updateTemporaryStyleEpic:F,createStyleEpic:z,updateStyleCodeEpic:B,deleteStyleEpic:q,setDefaultStyleEpic:U}},"./MapStore2/web/client/epics/timeline.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setTimelineCurrentTime",(function(){return A})),n.d(t,"setupTimelineExistingSettings",(function(){return P})),n.d(t,"settingInitialOffsetValue",(function(){return M})),n.d(t,"updateRangeDataOnRangeChange",(function(){return I}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/moment/moment.js"),s=n.n(a),l=n("./MapStore2/web/client/observables/epics.js"),u=n("./MapStore2/web/client/actions/map.js"),c=n("./MapStore2/web/client/actions/timeline.js"),d=n("./MapStore2/web/client/actions/dimension.js"),p=n("./MapStore2/web/client/actions/layers.js"),f=n("./MapStore2/web/client/actions/notifications.js"),h=n("./MapStore2/web/client/selectors/layers.js"),m=n("./MapStore2/web/client/selectors/timeline.js"),g=n("./MapStore2/web/client/selectors/dimension.js"),y=n("./MapStore2/web/client/utils/TimeUtils.js"),b=n("./MapStore2/web/client/api/MultiDim.js");function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||x(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 w(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||x(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 x(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.n)(e),r=Object(m.m)(e),o=Object(m.p)(e),i=Object(m.i)(n)(e);return[o,r,"time",S({limit:1},t),i]},C=function(e,t,n){if(Object(m.m)(e))return o.a.Observable.forkJoin(b.b.apply(void 0,w(E(e,{sort:"asc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return v(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)})),b.b.apply(void 0,w(E(e,{sort:"desc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return v(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)}))).map((function(e){return Object(y.d)(e.filter((function(e){return!!e})),n)||n}));var r=Object(g.e)(Object(h.g)(e,t))(e);return o.a.Observable.of(Object(y.d)(r,n)||n)},T=function(e){return Object(i.isString)(e)?e:e.toISOString()},k=function(e,t,n){var r=t.domain.split("--"),a=Object(m.j)(n())||{start:new Date(r[0]),end:new Date(r[1])},s=Object(y.j)(a,20),l=s.range,u=s.resolution,c=Object(h.g)(n(),e).name,d=j({},"time","".concat(T(l.start),"/").concat(T(l.end)));return Object(b.c)(t.source.url,c,"time",j({},"time","".concat(T(l.start),"/").concat(T(l.end))),u,Object(m.i)(e)(n())).merge(Object(b.a)(t.source.url,c,d,S(S({},Object(m.i)(e)(n())),{},{expandLimit:20}))).scan((function(e,t){return S(S({},e),t)}),{}).switchMap((function(e){var t,n=e.Histogram,r=e.Domains,a=Object(i.get)(Object(i.head)(Object(i.castArray)(Object(i.get)(r,"DimensionDomain")||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Identifier;return"time"===t}))),"Domain");try{t=n&&n.Values&&n.Values.split(",").map((function(e){return parseInt(e,10)}))||[]}catch(e){t=[]}var s=a&&a.indexOf("--")<0&&a.split(",");return o.a.Observable.of({range:l,histogram:n&&n.Domain?{values:t,domain:n.Domain}:void 0,domain:a?{values:s}:void 0})}))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.g).throttleTime(100).switchMap((function(e){var t=e.time,n=e.group,i=r();return n?C(i,n,t).switchMap((function(e){var t=Object(m.j)(i)||{},n=t.start,r=t.end,a=[];if(n&&r&&(s()(e).isBefore(n)||s()(e).isAfter(r))){var l=s()(r).diff(n);a=[Object(c.l)({start:s()(e).subtract(l/2),end:s()(e).add(l/2)})]}return o.a.Observable.from([].concat(w(a),[Object(d.g)(e)]))})).let(Object(l.a)(Object(c.r)(!1,!0),Object(c.r)(!1,!1))):o.a.Observable.of(Object(d.g)(t))}))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(p.s,c.a).exhaustMap((function(){return Object(m.c)(r())&&Object(i.get)(Object(m.q)(r()),"[0].id")&&!Object(m.n)(r())?o.a.Observable.of(Object(c.n)(Object(i.get)(Object(m.q)(r()),"[0].id"))).concat(o.a.Observable.of(1).switchMap((function(){return C(r(),Object(i.get)(Object(m.q)(r()),"[0].id"),Object(g.a)(r)||(new Date).toISOString()).filter((function(e){return e})).map((function(e){return Object(d.g)(e)}))}))):o.a.Observable.empty()}))},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.b).switchMap((function(e){var t=r(),n=Object(g.a)(t),i=Object(m.j)(t);if(e.enabled){var a=i||{},l=a.start,u=void 0===l?0:l,p=a.end,f=void 0===p?432e6:p,h=Object(g.h)(t),y=s()(f).diff(u),b=i?s()(u).add(y/2).toISOString():s()(new Date).toISOString(),v=s()(n||b).add(y/5),w=e.enabled&&!n?o.a.Observable.of(Object(d.g)(b)):o.a.Observable.empty(),x=e.enabled&&!h||e.enabled&&s()(h).diff(n)<0?o.a.Observable.of(Object(d.f)(v.toISOString())):o.a.Observable.empty(),_=i?o.a.Observable.empty():o.a.Observable.of(Object(c.l)({start:s()(b).add(-1*y/2),end:s()(b).add(y/2)}));return w.concat(x).concat(_)}return o.a.Observable.of(Object(d.f)())}))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.d).merge(e.ofType(u.e).filter((function(){return Object(m.e)(r())})),e.ofType(c.i)).debounceTime(400).merge(e.ofType(d.d).debounceTime(50)).switchMap((function(){var e,t=Object(g.i)(r())||{},n=Object.keys(t).filter((function(e){return t[e]&&t[e].domain&&Object(y.i)(t[e].domain)||Object(m.e)(r())}));return(e=o.a.Observable).merge.apply(e,w(n.map((function(e){return k(e,t[e],r).map((function(t){var n=t.range,r=t.histogram,o=t.domain;return Object(c.m)(e,n,r,o)})).startWith(Object(c.r)(e,!0)).catch((function(){return o.a.Observable.of(Object(f.f)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"}))})).concat(o.a.Observable.of(Object(c.r)(e,!1)))}))))}))};t.default={setTimelineCurrentTime:A,setupTimelineExistingSettings:P,settingInitialOffsetValue:M,updateRangeDataOnRangeChange:I}},"./MapStore2/web/client/epics/widgets.js":function(e,t,n){"use strict";n.r(t),n.d(t,"exportWidgetData",(function(){return T})),n.d(t,"alignDependenciesToWidgets",(function(){return k})),n.d(t,"toggleWidgetConnectFlow",(function(){return A})),n.d(t,"clearWidgetsOnLocationChange",(function(){return P})),n.d(t,"exportWidgetImage",(function(){return M})),n.d(t,"updateLayerOnLayerPropertiesChange",(function(){return I})),n.d(t,"updateLayerOnLoadingErrorChange",(function(){return D}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/widgets.js"),s=n("./MapStore2/web/client/actions/config.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),u=n("./MapStore2/web/client/actions/layers.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/router.js"),p=n("./MapStore2/web/client/actions/maps.js"),f=n("./MapStore2/web/client/actions/dashboard.js"),h=n("./node_modules/connected-react-router/esm/actions.js"),m=n("./node_modules/file-saver/FileSaver.js"),g=n("./MapStore2/web/client/utils/FileUtils.js"),y=n("./node_modules/json-2-csv/lib/converter.js"),b=n.n(y),v=n("./node_modules/canvg-browser/index.js"),w=n.n(v);function x(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t===h.b}))},C=function(e,t,n,r){return o.a.Observable.of(Object(a.O)("mapSync",e),Object(a.O)("dependenciesMap",function(e,t,n){var r,o=n.dependenciesMap,s=n.mappings,l=["layer","filter","quickFilters","options"],u=["layers","viewport","zoom","center"],c=(a.A.exec(t)||[])[1],d=Object(i.omitBy)(o,(function(e){return-1===e.indexOf(c)})),p=Object.keys(s).filter((function(e){return void 0!==s[e]})).reduce((function(e,n){return!Object(i.endsWith)(t,"map")&&Object(i.includes)(l,n)?S(S({},e),{},j({},n,"".concat(t,".").concat(s[n]))):Object(i.endsWith)(t,"map")?Object(i.includes)(u,n)?S(S({},e),{},j({},n,"map"===t?s[n]:"".concat(t,".").concat(s[n]))):S(S({},e),{},j({},n,"".concat(t.replace(".map",""),".").concat(s[n]))):e}),{});return e?S(S(S({},d),p),{},(j(r={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),j(r,"mapSync","".concat(t.replace(".map",""),".mapSync")),r)):Object(i.omit)(d,[Object.keys(s)])}(e,t,n)))},T=function(e){return e.ofType(a.k).do((function(e){var t=e.data,n=void 0===t?[]:t,r=e.title,o=void 0===r?"data":r;return b.a.json2csv(n,(function(e,t){return e?null:Object(m.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(s.d,f.a,a.m).map((function(){return Object(l.b)(r())})).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 Object(i.isEqual)(x(e),x(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(a.N)(e.reduce((function(e,t){var n,r,o=t.replace(".map","");return Object(i.endsWith)(t,"map")?S(S({},e),{},(j(n={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),j(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),j(n,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),j(n,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),j(n,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),j(n,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),n)):S(S({},e),{},(j(r={},"".concat(t,".filter"),"".concat(t,".filter")),j(r,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),j(r,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),j(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),j(r,"".concat(t,".layer"),"".concat(t,".layer")),j(r,"".concat(t,".options"),"".concat(t,".options")),r))}),{}))}))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.v).switchMap((function(t){var n=t.active,s=t.availableDependencies,u=void 0===s?[]:s,c=t.options;return n&&u.length>0?1===u.length?C(n,u[0],c):o.a.Observable.of(Object(a.U)(n,{availableDependencies:u})).merge(e.ofType(a.B).filter((function(){return Object(l.q)(r())})).switchMap((function(e){var t=e.widget,s=Object(i.get)(Object(l.f)(r()),"availableDependencies").filter((function(e){return(a.A.exec(e)||[])[1]===t.id}));return C(n,s[0],c,t.dependeciesMap).concat(o.a.Observable.of(Object(a.U)(!1,{})))})).takeUntil(e.ofType(h.b).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.key;return t===a.i&&n===a.f}))))):C(n,u[0],c)}))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(s.d).switchMap((function(){var t=Object(d.a)(r()).split("/"),n=t[t.length-1];return e.let(E).filter((function(){var e=Object(d.a)(r()).split("/");return e[e.length-1]!==n})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.payload,n=void 0===t?{}:t;return n&&n.location&&n.location.pathname?o.a.Observable.of(Object(a.E)()):o.a.Observable.empty()}))}))},M=function(e){return e.ofType(a.l).do((function(e){var t,n,r=e.widgetDivId,o=e.title,i=void 0===o?"data":o,a=document.createElement("canvas"),s=document.querySelector("#".concat(r," .recharts-wrapper svg")),l=s.outerHTML?s.outerHTML:(t=s,(n=document.createElement("div")).appendChild(t.cloneNode(!0)),n.innerHTML);w()(a,l,{renderCallback:function(){var e=a.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,a.width,a.height),Object(g.b)(a.toDataURL("image/jpeg",1),"".concat(i,".jpg"),"image/jpeg")}})})).filter((function(){return!1}))},I=function(e,t){return e.ofType(u.f).switchMap((function(e){var n,r=e.layer,s=e.newProperties,l=t.getState(),u=Object(c.g)(l,r);return(n=o.a.Observable).of.apply(n,x(Object(i.has)(s,"layerFilter")&&u?[Object(a.X)(u)]:[]))}))},D=function(e,t){return e.ofType(u.n,u.m).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var n,r=e.layerId,i=t.getState(),s=Object(c.g)(i,r);return(n=o.a.Observable).of.apply(n,x(s&&s.previousLoadingError!==s.loadingError?[Object(a.X)(s)]:[]))}))})).mergeAll()};t.default={exportWidgetData:T,alignDependenciesToWidgets:k,toggleWidgetConnectFlow:A,clearWidgetsOnLocationChange:P,exportWidgetImage:M,updateLayerOnLayerPropertiesChange:I,updateLayerOnLoadingErrorChange:D}},"./MapStore2/web/client/observables/autocomplete.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./node_modules/rxjs/Rx.js"),u=n.n(l),c=n("./MapStore2/web/client/api/searchText.js"),d=n("./MapStore2/web/client/libs/ajax.js"),p=n.n(d),f=n("./MapStore2/web/client/utils/ogc/WPS/autocomplete.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t=e.searchText,n=void 0===t?"":t,r=e.queriableAttributes,o=void 0===r?[]:r,a=e.predicate,s=void 0===a?"ILIKE":a,l=Object(i.head)(o),u=n.toLowerCase(),c="strToLowerCase(".concat(l,") ").concat(s," '%").concat(u,"%'");return Object(i.isNil)(l)?"":"("+c+")"},y=function(e){return e.distinctUntilChanged((function(e){var t=e.value,n=e.currentPage,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(r.value!==t||r.currentPage!==n)})).throttle((function(e){return u.a.Observable.timer(e.delayDebounce||0)})).merge(e.debounce((function(e){return u.a.Observable.timer(e.delayDebounce||0)}))).distinctUntilChanged().switchMap((function(e){if(e.performFetch){var t=Object(f.getWpsPayload)({attribute:e.attribute,layerName:e.typeName,maxFeatures:e.maxFeatures,startIndex:(e.currentPage-1)*e.maxFeatures,value:e.value});return u.a.Observable.fromPromise(p.a.post(e.url,t,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return{fetchedData:e.data,busy:!1}}))).catch((function(){return u.a.Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({busy:!0})}return u.a.Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({})},b=function(e){return u.a.Observable.merge(e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.value;return t===r})).debounce((function(e){return u.a.Observable.timer(e.delayDebounce||0)})),e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterProps,n=e.currentPage,r=arguments.length>1?arguments[1]:void 0,o=r.filterProps,i=r.currentPage;return t===o&&n===i}))).switchMap((function(e){if(e.performFetch){var t=o.a.parse(e.url,!0),n="";(Object(i.endsWith)(t.pathname,"wfs")||Object(i.endsWith)(t.pathname,"wms")||Object(i.endsWith)(t.pathname,"ows")||Object(i.endsWith)(t.pathname,"wps"))&&(n=t.pathname.replace(/(wms|ows|wps|wfs)$/,"wfs")),t.query&&t.query.service&&delete t.query.service;var r=o.a.format(s()({},t,{search:null,pathname:n})),a=s()({},function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,a(t))},u=function(e,t,n){return function(o){return(n?l(o,Object(r.castArray)(e)).catch(n):l(o,Object(r.castArray)(e))).concat(i.a.Observable.from(Object(r.castArray)(t)))}}},"./MapStore2/web/client/observables/wfs.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return I}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/rxjs/Rx.js"),s=n.n(a),l=n("./node_modules/xml2js/lib/xml2js.js"),u=n("./node_modules/xml2js/lib/processors.js"),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),p=n("./MapStore2/web/client/utils/FilterUtils.js"),f=n("./MapStore2/web/client/utils/LayersUtils.js"),h=n("./MapStore2/web/client/utils/ObservableUtils.js"),m=n("./MapStore2/web/client/utils/ogc/WFS/RequestBuilder.js");function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.totalFeatures,n=e.features,r=v(e,["totalFeatures","features"]),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.startIndex,a=arguments.length>2?arguments[2]:void 0;return a>t&&a===i+n.length&&t===n.length?x(x({},r),{},{features:n,totalFeatures:a}):x(x({},r),{},{features:n,totalFeatures:t})},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.pagination||!Object(i.isNil)(t.startIndex)&&!Object(i.isNil)(t.maxFeatures)&&{startIndex:t.startIndex,maxFeatures:t.maxFeatures}},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(p.getWFSFilterData)(t,n),a=o.a.parse(e,!0),l=Object(i.isObject)(a.query)?a.query:{};l.service="WFS",l.outputFormat="json";var u=o.a.format({protocol:a.protocol,host:a.host,pathname:a.pathname,query:l});return s.a.Observable.defer((function(){return d.a.post(u,r,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/json"}})})).let(h.b).map((function(e){return T(e.data,k(t,n),n.totalFeatures)}))},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.search,n=void 0===t?{}:t,r=e.url,o=e.name,a=arguments.length>1?arguments[1]:void 0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.sortOptions,u=s.propertyName,c=v(s,["sortOptions","propertyName"]);return A(n.url||r,a&&"object"===b(a)?x(x({},a),{},{typeName:o||a.typeName}):S(j(o,[].concat(g(l?[E(l.sortBy,l.sortOrder)]:[]),g(u?[C(u)]:[]),g(a?Object(i.castArray)(a):[]))),c),c).catch((function(e){if("OGCError"===e.name&&"NoApplicableCode"===e.code&&!l&&u&&u[0])return A(n.url||r,a&&"object"===b(a)?x(x({},a),{},{typeName:o||a.typeName}):S(j(o,[E(u[0])].concat(g(u?[C(u)]:[]),g(a?Object(i.castArray)(a):[]))),c),c);throw e}))},M=function(e){var t=e.layer;return s.a.Observable.defer((function(){return d.a.get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=e.describeFeatureTypeURL,s=o.a.parse(a||r.url||i,!0);return o.a.format(x(x({},s),{},{search:void 0,query:x(x({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))}(t))})).let(h.b)},I=function(e){var t=e.layer;return s.a.Observable.defer((function(){return d.a.get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=Object(f.getCapabilitiesUrl)({name:t,url:r&&r.url||i}),s=o.a.parse(a,!0);return o.a.format(x(x({},s),{},{search:void 0,query:x(x({},s.query),{},{service:"WFS",version:"1.1.1",request:"GetCapabilities"})}))}(t))})).let(h.b).switchMap((function(e){return s.a.Observable.bindNodeCallback((function(e,t){return Object(l.parseString)(e,{tagNameProcessors:[u.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data)}))}},"./MapStore2/web/client/observables/wms.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),a=n.n(i),s=n("./node_modules/rxjs/Rx.js"),l=n("./MapStore2/web/client/api/WMS.js"),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=o.a.parse(r.url||i,!0);return o.a.format(m(m({},a),{},{search:void 0,query:m(m({},a.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(p.b)},b=function(e){return s.Observable.defer((function(){return l.a.getCapabilities(Object(d.getCapabilitiesUrl)(e))})).let(p.b).map((function(t){return l.a.parseLayerCapabilities(t,e)}))},v=function(e){return y(e).map((function(e){var t=e.data,n=void 0===t?{}:t;return n&&n.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.owsURL;return m(m({},e),{},{params:{},search:n?{type:"wfs",url:Object(f.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/observables/wps/aggregate.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/observables/wps/common.js"),i=n("./MapStore2/web/client/observables/wps/execute.js");function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')+'').concat(p,"");return Object(i.b)("gs:Aggregate",[Object(o.d)("features",Object(o.e)("text/xml","http://geoserver/wfs","POST",f)),Object(o.d)("aggregationAttribute",Object(o.c)(Object(o.b)(n)))].concat(a(Object(r.castArray)(u).map((function(e){return Object(o.d)("function",Object(o.c)(Object(o.b)(e)))}))),[Object(o.d)("singlePass",Object(o.c)(Object(o.b)("false")))],a(Object(r.castArray)(l).map((function(e){return Object(o.d)("groupByAttributes",Object(o.c)(Object(o.b)(e)))})))),Object(o.g)(Object(o.f)("result","application/json")))};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(i.a)(e,l(t),{},n)}},"./MapStore2/web/client/observables/wps/common.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t"+"".concat(e,"")+t+""},c=function(e){return"".concat(e,"")},d=function(e,t,n,r){return'")+("POST"===n?"".concat(r,""):"")},p=function(e){return"".concat(e,"")},f=function(e){return"".concat(e,"")},h=function(e,t){return"")+"".concat(e,"")+""},m=function(e,t){if(e){var n=o.a.parse(e,!0),r=n.pathname;return(Object(i.endsWith)(n.pathname,"wfs")||Object(i.endsWith)(n.pathname,"wms"))&&(r=n.pathname.replace(/(wms|ows|wfs|wps)$/,"wps")),o.a.format(s(s({},n),{},{search:null,pathname:r,query:s(s({service:"WPS"},t),n.query)}))}return e}},"./MapStore2/web/client/observables/wps/execute.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return j}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./node_modules/xml2js/lib/xml2js.js"),a=n("./node_modules/xml2js/lib/processors.js"),s=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(s),u=n("./MapStore2/web/client/observables/wps/common.js");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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t'+"".concat(e,"")+""+(t||[]).join("")+""+(n||"")+""},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.Observable.defer((function(){return l.a.get(Object(u.a)(e,{version:"1.0.0",REQUEST:"GetExecutionStatus",executionId:t}),p({headers:{Accept:"application/xml"}},n))}))},O=function(e,t){var n,o,i=function(e){var t,n,o,i,a,s,l,u,c,d,p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.identity,h=null==e||null===(t=e.ExecuteResponse)||void 0===t||null===(n=t.Status)||void 0===n?void 0:n[0];return null!=h&&h.ProcessAccepted?{status:"ProcessAccepted"}:null!=h&&h.ProcessStarted?{status:"ProcessStarted"}:null!=h&&h.ProcessSucceeded?{status:"ProcessSucceeded",data:f(null===(o=e.ExecuteResponse.ProcessOutputs)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.Output)}:null!=h&&h.ProcessFailed?{status:"ProcessFailed",exceptionReport:null==h||null===(a=h.ProcessFailed)||void 0===a||null===(s=a[0])||void 0===s||null===(l=s.ExceptionReport)||void 0===l||null===(u=l[0])||void 0===u||null===(c=u.Exception)||void 0===c||null===(d=c[0])||void 0===d||null===(p=d.ExceptionText)||void 0===p?void 0:p[0]}:null!=h&&h.ProcessPaused?{status:"ProcessPaused"}:{status:"UnexpectedStatus"}}(e,t);if("ProcessFailed"===i.status)throw new w(i.exceptionReport,"ProcessFailed");if("UnexpectedStatus"===i.status)throw new w("UnexpectedProcessStatus");if("ProcessSucceeded"===i.status)return{succeeded:!0,data:i.data};var a=null==e||null===(n=e.ExecuteResponse)||void 0===n||null===(o=n.$)||void 0===o?void 0:o.statusLocation;if(!a)throw new w("NoStatusLocation");var s=a.indexOf("executionId=");if(-1===s)throw new w("NoExecutionId");var l=a.slice(s+12),u=l.indexOf("&");return{succeeded:!1,executionId:-1===u?l:l.slice(0,u)}},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.Observable.defer((function(){return l.a.post(Object(u.a)(e,{version:"1.0.0",REQUEST:"Execute"}),t,p({headers:{"Content-Type":"application/xml"}},n))}))},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=n.executeStatusUpdateInterval,l=void 0===s?2e3:s,u=n.outputsExtractor,c=function(e){return o.Observable.defer((function(){return new Promise((function(t,n){return Object(i.parseString)(e,{tagNameProcessors:[a.stripPrefix]},(function(e,r){return e?n(e):t(r)}))}))}))};return S(e,t,r).catch((function(){throw new w("ExecuteProcessXHRFailed")})).switchMap((function(e){return"application/xml"===e.headers["content-type"]||"text/xml"===e.headers["content-type"]?c(e.data).map((function(t){return{data:t,type:"application/xml",originalData:e.data}})):o.Observable.of({data:e.data,type:e.headers["content-type"]})})).flatMap((function(t){var n=t.data,r=t.type,i=t.originalData;if("application/xml"!==r)return o.Observable.of(n);if(null==n||!n.ExecuteResponse)return o.Observable.of(i);var a=O(n,u),s=a.succeeded,d=a.data,p=a.executionId;if(s)return o.Observable.of(d);var f=o.Observable.interval(l).take(1).flatMap((function(){return _(e,p).catch((function(){throw new w("GetExecutionStatusXHRFailed")})).flatMap((function(e){return c(e.data).flatMap((function(e){var t=O(e,u);return t.succeeded?o.Observable.of(t.data):f}))}))}));return f}))}},"./MapStore2/web/client/plugins/BackgroundSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/controls.js"),s=n("./MapStore2/web/client/actions/layers.js"),l=n("./MapStore2/web/client/actions/backgroundselector.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./MapStore2/web/client/selectors/backgroundselector.js"),f=n("./MapStore2/web/client/selectors/maplayout.js"),h=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js"),m=n("./MapStore2/web/client/utils/PluginsUtils.js"),g=n("./MapStore2/web/client/reducers/controls.js"),y=n("./MapStore2/web/client/actions/catalog.js"),b=n("./node_modules/object-assign/index.js"),v=n.n(b);var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.a:return v()({},e,{source:t.source});case y.v:return v()({},e,{source:"metadataExplorer"});case l.k:return v()({},e,{modalParams:t.modalParams});case l.d:return v()({},e,{backgrounds:[],removedBackgroundsThumbIds:[],modalParams:{},lastRemovedId:void 0});case l.m:if(t.id){var n=e.backgrounds||[],r=-1===n.findIndex((function(e){return e.id===t.id})),o=r?n.concat({id:t.id}):n,i=o.map((function(e){return e.id===t.id?v()({},e,{id:t.id,thumbnail:t.thumbnailData}):v()({},e)}));return v()({},e,{backgrounds:i})}return e;case l.g:return v()({},e,{modalParams:void 0});case l.j:var a=e.backgrounds||[],s=e.removedBackgroundsThumbIds||[],u=a.filter((function(e){return e.id!==t.backgroundId})),c=a.filter((function(e){return e.id===t.backgroundId&&!!e.thumbId})).map((function(e){return e.thumbId}));return v()({},e,{backgrounds:u,removedBackgroundsThumbIds:s.concat(c),lastRemovedId:t.backgroundId});case l.i:return v()({},e,{backgrounds:t.backgrounds});case l.h:return v()({},e,{confirmDeleteBackgroundModal:{show:t.show,layerTitle:t.layerTitle,layerId:t.layerId}});case l.c:return v()({},e,{allowDeletion:t.allow||!1});default:return e}},x=n("./node_modules/rxjs/Rx.js"),_=n.n(x),O=n("./MapStore2/web/client/actions/config.js"),S=n("./MapStore2/web/client/observables/wms.js"),j=n("./MapStore2/web/client/utils/LayersUtils.js");function E(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?I.a.createElement(L.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:this.props.showAdd?[{glyph:"plus",tooltipId:"backgroundSelector.addTooltip",onClick:function(){return e.props.onAdd()}}]:[]}):null)}}])&&B(t.prototype,n),r&&B(t,r),i}(I.a.Component);V(W,"propTypes",{src:R.a.string,side:R.a.number,frame:R.a.number,margin:R.a.number,labelHeight:R.a.number,label:R.a.string,showLabel:R.a.bool,onToggle:R.a.func,onAdd:R.a.func,showAdd:R.a.bool}),V(W,"defaultProps",{src:"./images/mapthumbs/none.jpg",side:50,frame:4,margin:5,labelHeight:29,label:"",showLabel:!0,onToggle:function(){},onAdd:function(){}});var Y=W,K=n("./node_modules/react-bootstrap/es/index.js");function X(e){return(X="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n-1,n="wmts"===this.props.layer.type&&Object(i.has)(this.props.layer.allowedSRS,this.props.projection),r=this.props.vertical?"background-preview-icon-container-vertical":"background-preview-icon-container-horizontal",o=this.props.layer.visibility?" bg-primary":" bg-body",a=(t||n||Object(i.includes)(["wms","empty","osm"],this.props.layer.type))&&!this.props.layer.invalid,s=a?function(){e.props.onToggle(),e.props.onPropertiesChange(e.props.layer.id,{visibility:!0}),e.props.setCurrentBackgroundLayer(e.props.layer.id)}:function(){};return I.a.createElement("div",{className:r+o+(a?"":" disabled-icon"),style:{padding:this.props.frame/2,marginLeft:this.props.vertical?this.props.margin:0,marginRight:this.props.vertical?0:this.props.margin,marginBottom:this.props.margin,width:this.props.side+this.props.frame,height:this.props.side+this.props.frame}},I.a.createElement("div",{className:"background-preview-icon-frame",style:{width:this.props.side,height:this.props.side}},I.a.createElement("img",{onMouseOver:function(){e.props.onLayerChange("tempLayer",e.props.layer)},onMouseOut:function(){e.props.onLayerChange("tempLayer",e.props.currentLayer)},onClick:s,src:this.props.src})))}}])&&ye(t.prototype,n),r&&ye(t,r),a}(I.a.Component);_e(Oe,"propTypes",{side:R.a.number,frame:R.a.number,margin:R.a.number,src:R.a.string,vertical:R.a.bool,layer:R.a.object,currentLayer:R.a.object,onPropertiesChange:R.a.func,onToggle:R.a.func,onLayerChange:R.a.func,setCurrentBackgroundLayer:R.a.func,projection:R.a.string}),_e(Oe,"defaultProps",{side:50,frame:4,margin:5,src:"",vertical:!1,layer:{},currentLayer:{},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){}});var Se=Oe,je=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),Ee=n("./node_modules/react-select/dist/react-select.es.js"),Ce=n("./node_modules/uuid/v1.js"),Te=n.n(Ce),ke=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),Ae=n("./MapStore2/web/client/components/misc/Button.jsx"),Pe=n("./MapStore2/web/client/utils/ResourceUtils.js"),Me=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Ie(e){return(Ie="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 De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var n=0;n0){var r=n[0],o=new FileReader;return o.onload=function(e){return t(e.target.result,r.size)},o.readAsDataURL(r)}return t(null)})),qe(ze(e),"getThumbnailDataUri",(function(t){e.getDataUri(e.files,t)})),qe(ze(e),"generateUUID",(function(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))})),qe(ze(e),"processUpdateThumbnail",(function(t,n,r){var o=e.generateUUID();!e.props.map||r||!e.props.map.thumbnail||e.refs.imgThumbnail||n||e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!0),e.props.map&&!r&&e.props.map.newThumbnail&&!e.refs.imgThumbnail&&n&&(e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&r&&e.refs.imgThumbnail&&(e.deleteThumbnail(e.props.map.thumbnail,null,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&!r&&e.refs.imgThumbnail&&e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id),e.props.map.newThumbnail||r||e.refs.imgThumbnail||(e.props.map.thumbnail&&n&&e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id))})),qe(ze(e),"updateThumbnail",(function(t,n){e.props.map.errors&&e.props.map.errors.length||e.getDataUri(e.files,(function(r){return e.processUpdateThumbnail(t,n,r),r}))})),qe(ze(e),"deleteThumbnail",(function(t,n){if(t&&-1!==t.indexOf("geostore")){var r=Object(Pe.a)(t);r&&e.props.onDeleteThumbnail(r,n)}})),e}return t=i,(n=[{key:"renderThumbnailErrors",value:function(){return this.props.thumbnailErrors&&this.props.thumbnailErrors.length>0?I.a.createElement("div",{className:"dropzone-errorBox alert-danger"},I.a.createElement("p",null,I.a.createElement(D.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(e){return I.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},Ue[e])}))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(Me.a,{ref:"imgThumbnail",thumbnail:this.getThumbnailUrl(),className:null,dropZoneProps:{className:"dropzone alert alert-info",rejectClassName:"alert-danger"},loading:this.props.loading,maxFileSize:this.props.maxFileSize,style:{pointerEvents:this.props.map.saving?"none":"auto"},label:this.props.withLabel&&I.a.createElement("label",{className:"control-label"},I.a.createElement(D.default,{msgId:"map.thumbnail"})),"ù":!0,message:I.a.createElement(I.a.Fragment,null,this.props.message,I.a.createElement("br",null),this.props.suggestion),error:this.renderThumbnailErrors(),onUpdate:function(t,n){var r;e.props.onError([],e.props.map.id),e.files=n,e.props.onUpdate(t,null==n||null===(r=n[0])||void 0===r?void 0:r.preview)},onError:function(t,n){e.props.onError(t,e.props.map.id),e.files=n,e.props.onUpdate(null,null)},onRemove:function(){e.files=null,e.props.onUpdate(null,null),e.props.onRemoveThumbnail(),e.props.onError([],e.props.map.id)}})}}])&&Ne(t.prototype,n),r&&Ne(t,r),i}(I.a.Component);qe(Ge,"propTypes",{glyphiconRemove:R.a.string,style:R.a.object,thumbnailErrors:R.a.array,loading:R.a.bool,withLabel:R.a.bool,map:R.a.object,maxFileSize:R.a.number,onDrop:R.a.func,onError:R.a.func,onUpdate:R.a.func,onSaveAll:R.a.func,onCreateThumbnail:R.a.func,onDeleteThumbnail:R.a.func,onRemoveThumbnail:R.a.func,message:R.a.oneOfType([R.a.string,R.a.element]),suggestion:R.a.oneOfType([R.a.string,R.a.element])}),qe(Ge,"contextTypes",{messages:R.a.object}),qe(Ge,"defaultProps",{loading:!1,withLabel:!0,glyphiconRemove:"remove-circle",maxFileSize:5e5,onDrop:function(){},onError:function(){},onUpdate:function(){},onSaveAll:function(){},onRemoveThumbnail:function(){},onCreateThumbnail:function(){},onDeleteThumbnail:function(){},message:I.a.createElement(D.default,{msgId:"map.message"}),suggestion:I.a.createElement(D.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var He=Ge,Ve=n("./MapStore2/web/client/utils/LocaleUtils.js"),We=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function Ye(e){return(Ye="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 Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(e,t)}(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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?I.a.createElement("div",{className:"dropzone-errorBox alert-danger"},I.a.createElement("p",null,I.a.createElement(D.default,{msgId:"map.error"})),this.state.thumbnailErrors.map((function(t){return I.a.createElement("div",{id:"error"+t,key:"error"+t,className:"error"+t},e[t])}))):null}},{key:"renderSpecificTypeForm",value:function(){var e=this;return"wms"===this.props.layer.type?I.a.createElement(I.a.Fragment,null,I.a.createElement(K.FormGroup,{controlId:"formControlsSelect"},I.a.createElement(K.ControlLabel,null,I.a.createElement(D.default,{msgId:"layerProperties.format"})),I.a.createElement(Ee.default,{onChange:function(t){return e.setState({format:t&&t.value})},value:this.state.format||this.props.defaultFormat,clearable:!0,options:this.props.formatOptions})),this.renderStyleSelector(),I.a.createElement(at,null,I.a.createElement("div",{style:{display:"flex",alignItems:"center"}},I.a.createElement(K.ControlLabel,{style:{flex:1}},I.a.createElement(D.default,{msgId:"backgroundDialog.additionalParameters"})),I.a.createElement(at,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var t=Math.max.apply(Math,Qe(e.state.additionalParameters.length>0?e.state.additionalParameters.map((function(e){return e.id})):[-1]))+1;e.setState({additionalParameters:[].concat(Qe(e.state.additionalParameters),[{id:t,type:"string",param:"",val:""}])})}},I.a.createElement(K.Glyphicon,{glyph:"plus"}))),this.state.additionalParameters.map((function(t){return I.a.createElement("div",{key:"val:"+t.id,style:{display:"flex",marginTop:8}},I.a.createElement("div",{style:{display:"flex",flex:1,marginRight:8}},I.a.createElement(K.FormControl,{style:{width:"50%",marginRight:8,minWidth:0},placeholder:Object(Ve.f)(e.context.messages,"backgroundDialog.parameter"),value:t.param,onChange:function(n){return e.addAdditionalParameter(n.target.value,"param",t.id,t.type)}}),"boolean"===t.type?I.a.createElement("div",{style:{width:"50%"}},I.a.createElement(Ee.default,{onChange:function(n){return e.addAdditionalParameter(n.value,"val",t.id,t.type)},clearable:!1,value:t.val,options:e.props.booleanOptions})):I.a.createElement(K.FormControl,{style:{width:"50%",minWidth:0},placeholder:Object(Ve.f)(e.context.messages,"backgroundDialog.value"),value:t.val.toString(),onChange:function(n){return e.addAdditionalParameter(n.target.value,"val",t.id,t.type)}})),I.a.createElement(Ee.default,{style:{flex:1,width:90},onChange:function(n){return e.addAdditionalParameter(t.val,"val",t.id,n.value)},clearable:!1,value:t.type,options:e.props.parameterTypeOptions.map((function(t){var n=t.label;return Xe(Xe({},Ze(t,["label"])),{},{label:Object(Ve.f)(e.context.messages,n)})}))}),I.a.createElement(at,{onClick:function(){return e.setState({additionalParameters:e.state.additionalParameters.filter((function(e){return t.id!==e.id}))})},tooltipId:"backgroundDialog.removeAdditionalParameterTooltip",className:"square-button-md",style:{borderColor:"transparent"}},I.a.createElement(K.Glyphicon,{glyph:"trash"})))})))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(ke.a,{fitContent:!0,title:I.a.createElement(D.default,{msgId:this.props.editing?"backgroundDialog.editTitle":"backgroundDialog.addTitle"}),show:!0,fade:!0,clickOutEnabled:!1,bodyClassName:"ms-flex modal-properties-container background-dialog",loading:this.props.loading,onClose:function(){e.props.onClose(),e.resetParameters()},buttons:this.props.loading?[]:[{text:I.a.createElement(D.default,{msgId:this.props.editing?"save":"backgroundDialog.add"}),bsStyle:"primary",onClick:function(){var t=e.props.editing?e.props.layer.id:Te()(),n=e.props.layer.thumbURL||"",r=e.state.format||e.props.defaultFormat;e.props.updateThumbnail(e.state.thumbnail.data,t),e.props.onSave(v()({},e.props.layer,Object(i.omit)(e.state,"thumbnail"),e.props.editing?{}:{id:t},{params:Object(i.omit)(e.state.additionalParameters.reduce((function(e,t){return v()(e,it({},t.param,t.val))}),{}),["source","title"]),format:r,group:"background"},n||e.state.thumbnail.data?{thumbURL:e.state.thumbnail.url}:{})),e.resetParameters()}}]},I.a.createElement(K.Form,{style:{width:"100%"}},this.renderThumbnailErrors(),I.a.createElement(He,{onUpdate:function(t,n){return e.setState({thumbnail:{data:t,url:n}})},onError:function(t){return e.setState({thumbnailErrors:t})},message:I.a.createElement(D.default,{msgId:"backgroundDialog.thumbnailMessage"}),suggestion:"",map:{newThumbnail:Object(i.get)(this.state.thumbnail,"url")||"NODATA"}}),I.a.createElement(K.FormGroup,null,I.a.createElement(K.ControlLabel,null,I.a.createElement(D.default,{msgId:"layerProperties.title"})),I.a.createElement(K.FormControl,{value:this.state.title,placeholder:Object(Ve.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(t){return e.setState({title:t.target.value})}})),this.renderSpecificTypeForm()))}}])&&Je(t.prototype,n),r&&Je(t,r),a}(I.a.Component);it(st,"propTypes",{loading:R.a.bool,editing:R.a.bool,layer:R.a.object,capabilities:R.a.object,onAdd:R.a.func,onClose:R.a.func,source:R.a.string,onSave:R.a.func,addParameters:R.a.func,updateThumbnail:R.a.func,thumbURL:R.a.string,title:R.a.string,format:R.a.string,style:R.a.string,thumbnail:R.a.object,additionalParameters:R.a.object,addParameter:R.a.func,defaultFormat:R.a.string,formatOptions:R.a.array,parameterTypeOptions:R.a.array,booleanOptions:R.a.array}),it(st,"contextTypes",{messages:R.a.object}),it(st,"defaultProps",{updateThumbnail:function(){},onClose:function(){},onSave:function(){},addParameters:function(){},addParameter:function(){},loading:!1,editing:!1,layer:{},capabilities:{},title:"",thumbnail:{},additionalParameters:{},formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],parameterTypeOptions:[{label:"backgroundDialog.string",value:"string"},{label:"backgroundDialog.number",value:"number"},{label:"backgroundDialog.boolean",value:"boolean"}],booleanOptions:[{label:"True",value:!0},{label:"False",value:!1}]});var lt=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function ut(e){return(ut="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 ct(){return(ct=Object.assign||function(e){for(var t=1;t1&&I.a.createElement(je.a,{glyph:"trash",className:"square-button-md background-tool-button delete-button",bsStyle:"primary",onClick:function(){e.props.onRemoveBackground(!0,i.title||i.name||"",i.id)}}),e.props.mapIsEditable&&!e.props.enabledCatalog&&!("wms"!==i.type&&"wmts"!==i.type&&"tms"!==i.type&&"tileprovider"!==i.type)&&I.a.createElement(je.a,{glyph:"wrench",className:"square-button-md background-tool-button edit-button",bsStyle:"primary",onClick:function(){e.props.addBackgroundProperties({layer:i,editing:!0})}})),I.a.createElement(Se,{projection:e.props.projection,vertical:o,key:a,src:s,currentLayer:e.props.currentLayer,margin:r,side:t,frame:n,layer:i,onToggle:e.props.onToggle,onPropertiesChange:e.props.onPropertiesChange,onLayerChange:e.props.onLayerChange,setCurrentBackgroundLayer:e.props.setCurrentBackgroundLayer}))})):[]})),bt(gt(e),"getDimensions",(function(t,n,r,o,i,a){var s=i/2-(t+2*n+2*r)-o,l=t+2*n+2*r+(t+2*n+r)*a+o>i/2,u=Math.floor(s/(t+2*n+r));return u=u>a?a:u,{pagination:l,listSize:e.props.enabled?(t+n+r)*u+52:0,visibleIconsLength:u}})),bt(gt(e),"renderBackgroundSelector",(function(){var t=v()({side:78,sidePreview:104,frame:3,margin:5,label:!0,vertical:!1},e.props.dimensions),n=2*t.frame,r=t.side-n,o=e.props.enabled?t.sidePreview-n:r,i=t.margin,a=e.props.enabled?o-2*n:0,s=e.props.enabled?e.props.tempLayer:e.props.currentLayer,l=e.getIcons(r,n,i,t.vertical),u=e.getDimensions(r,n,i,0,t.vertical?e.props.size.height:e.props.size.width,l.length),c=u.pagination,d=u.listSize,p=u.visibleIconsLength,f=r+n+i,h=r+n+2*i,m=t.vertical?{bottom:h,left:0,width:h,height:d}:{left:o+2*i+n,width:d,height:f},g=t.vertical?{height:f*p,width:f}:{height:f,width:f*p},y=e.props.modalParams&&e.props.modalParams.layer||{},b=(e.props.backgroundList||[]).find((function(e){return e.id===y.id})),w={title:y.title,format:y.format,style:y.style,additionalParameters:y.params,thumbnail:{data:b&&b.thumbnail,url:e.getThumb(y)}},x=e.props.confirmDeleteBackgroundModal||{show:!1},_=x.show,O=x.layerId,S=x.layerTitle;return p<=0&&!e.props.alwaysVisible&&e.props.enabled?null:I.a.createElement("span",null,I.a.createElement(lt.a,{draggable:!1,modal:!0,show:_,onClose:function(){return e.props.onRemoveBackground(!1)},onConfirm:function(){e.props.removeBackground(O),e.props.onRemoveBackground(!1)},confirmButtonBSStyle:"default",confirmButtonContent:I.a.createElement(D.default,{msgId:"confirm"}),closeText:I.a.createElement(D.default,{msgId:"cancel"}),closeGlyph:"1-close"},I.a.createElement(D.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),e.props.modalParams&&I.a.createElement(st,ct({onClose:e.props.clearModal,onSave:function(t){e.props.modalParams.editing?(e.props.updateNode(t.id,"layers",t),e.props.onBackgroundEdit(t.id)):(e.props.addLayer(t),e.props.backgroundAdded(t.id))},updateThumbnail:e.props.onUpdateThumbnail},w,e.props.modalParams)),I.a.createElement("div",{className:"background-plugin-position",style:e.props.style},I.a.createElement(Y,{layers:e.props.layers,showAdd:"mobile"!==e.props.mode&&e.props.mapIsEditable&&e.props.hasCatalog&&!e.props.enabledCatalog,onAdd:function(){return e.props.onAdd(e.props.source||"backgroundSelector")},showLabel:t.label,src:e.getThumb(s),side:o,frame:n,margin:i,labelHeight:a,label:s.title,onToggle:e.props.onToggle}),I.a.createElement("div",{className:"background-list-container",style:m},I.a.createElement(he,{vertical:t.vertical,start:e.props.start,bottom:0,height:g.height,width:g.width,icons:l,pagination:c,length:p,onStartChange:e.props.onStartChange}))))})),e}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.props.onLayerChange("currentLayer",{}),this.props.onLayerChange("tempLayer",{}),this.props.onStartChange(0)}},{key:"render",value:function(){return this.props.layers.length>0?this.renderBackgroundSelector():null}}])&&pt(t.prototype,n),r&&pt(t,r),i}(I.a.Component);bt(vt,"propTypes",{mode:R.a.string,backgroundList:R.a.array,backgrounds:R.a.array,start:R.a.number,style:R.a.object,enabled:R.a.bool,layers:R.a.array,currentLayer:R.a.object,tempLayer:R.a.object,size:R.a.object,dimensions:R.a.object,thumbs:R.a.object,mapIsEditable:R.a.bool,onPropertiesChange:R.a.func,onToggle:R.a.func,onLayerChange:R.a.func,onStartChange:R.a.func,onAdd:R.a.func,hasCatalog:R.a.bool,alwaysVisible:R.a.bool,enabledCatalog:R.a.bool,onRemove:R.a.func,onBackgroundEdit:R.a.func,source:R.a.string,addBackgroundProperties:R.a.func,onUpdateThumbnail:R.a.func,removeBackground:R.a.func,onRemoveBackground:R.a.func,setCurrentBackgroundLayer:R.a.func,confirmDeleteBackgroundModal:R.a.object,deletedId:R.a.string,modalParams:R.a.object,updateNode:R.a.func,clearModal:R.a.func,allowDeletion:R.a.bool,projection:R.a.string}),bt(vt,"defaultProps",{mode:"desktop",addBackgroundProperties:function(){},onBackgroundEdit:function(){},setCurrentBackgroundLayer:function(){},source:"backgroundSelector",start:0,style:{},enabled:!1,layers:[],currentLayer:{},tempLayer:{},size:{width:0,height:0},dimensions:{},allowDeletion:!0,thumbs:{unknown:n("./MapStore2/web/client/components/background/img/default.jpg")},mapIsEditable:!0,onRemoveBackground:function(){},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){},onStartChange:function(){},onAdd:function(){},onRemove:function(){},clearModal:function(){}});var wt=vt;function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var T=Object(s.connect)((function(){return{noCaret:!0,pullRight:!0,bsStyle:"primary",title:o.a.createElement(c.Glyphicon,{glyph:"menu-hamburger"})}}))(c.DropdownButton),k=function(e){var t=e.children,n=C(e,["children"]);return o.a.createElement("div",n,t)},A=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&&x(e,t)}(a,e);var t,n,r,i=_(a);function a(){var e;v(this,a);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(e){return b(b({},e),t(e.children))})).sort((function(e,t){return e.position-t.position})),o={container:k,containerWrapperStyle:{position:"static"},className:"burger-menu-submenu",toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,panelStyle:e.props.panelStyle,panelClassName:e.props.panelClassName};return n.length>0?{containerWrapperStyle:{position:"static"},style:{position:"relative"},childTools:r,childPanels:e.getPanels(n),innerProps:o}:{}}(t.children))})).sort((function(e,t){return e.position-t.position}))))})),e}return t=a,(n=[{key:"render",value:function(){return o.a.createElement(d.a,{id:this.props.id,className:"square-button",container:T,mapType:this.props.mapType,toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,tools:this.getTools(),panels:this.getPanels(this.props.items),panelStyle:this.props.panelStyle,panelClassName:this.props.panelClassName})}}])&&w(t.prototype,n),r&&w(t,r),a}(o.a.Component);E(A,"propTypes",{id:a.a.string,dispatch:a.a.func,items:a.a.array,title:a.a.node,onItemClick:a.a.func,controls:a.a.object,mapType:a.a.string,panelStyle:a.a.object,panelClassName:a.a.string}),E(A,"contextTypes",{messages:a.a.object,router:a.a.object}),E(A,"defaultProps",{id:"mapstore-burger-menu",items:[],onItemClick:function(){},title:o.a.createElement(c.MenuItem,{header:!0},o.a.createElement(p.a,{msgId:"options"})),controls:[],mapType:"leaflet",panelStyle:{minWidth:"300px",right:"52px",zIndex:100,position:"absolute",overflow:"auto"},panelClassName:"toolbar-panel"}),t.default=Object(f.d)("BurgerMenu",{component:Object(s.connect)((function(e){return{controls:e.controls}}))(A),containers:{OmniBar:{name:"burgermenu",position:2,tool:!0,priority:1}}})},"./MapStore2/web/client/plugins/Expander.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx");t.a={ExpanderPlugin:s()(l.a,{Toolbar:{name:"expand",position:1e4,alwaysVisible:!0,tooltip:"expandtoolbar.tooltip",showWhen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,n=void 0===t?[]:t;return n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"expand"!==!e.name&&!e.alwaysVisible})).length>1},icon:o.a.createElement(i.Glyphicon,{glyph:"option-horizontal"}),toggle:!0,toggleControl:"toolbar",toggleProperty:"expanded",priority:1}}),reducers:{}}},"./MapStore2/web/client/plugins/FullScreen.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js");var o=n("./node_modules/screenfull/dist/screenfull.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/actions/controls.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=n("./node_modules/rxjs/Rx.js"),c=n.n(u),d=function(e){return e.ofType("TOGGLE_FULLSCREEN").switchMap((function(e){var t=document.querySelector(e&&e.querySelector||"."+(l.default.getConfigProp("themePrefix")||"ms2")+" > div");return t&&e.enable&&i.a.enabled?i.a.request(t):t&&!e.enable&&i.a.exit(),c.a.Observable.merge(c.a.Observable.fromEvent(document,Object(a.last)(Object(a.head)([["exitFullscreen","fullscreenchange"],["webkitExitFullscreen","webkitfullscreenchange"],["webkitCancelFullScreen","webkitfullscreenchange"],["mozCancelFullScreen","mozfullscreenchange"],["msExitFullscreen","MSFullscreenChange"]].filter((function(e){return document[e[0]]}))))).filter((function(){return i.a.element!==t})).map((function(){return Object(s.g)("fullscreen","enabled",!1)})),c.a.Observable.of(Object(s.g)("fullscreen","enabled",e.enable)),c.a.Observable.fromEvent(window,"hashchange").do((function(){return i.a.exit()})).map((function(){return Object(s.g)("fullscreen","enabled",!1)})))}))},p=n("./node_modules/object-assign/index.js"),f=n.n(p),h=n("./node_modules/prop-types/index.js"),m=n.n(h),g=n("./node_modules/react/index.js"),y=n.n(g),b=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),v=n("./node_modules/react-bootstrap/es/index.js"),w=n("./MapStore2/web/client/components/I18N/Message.jsx");function x(e){return(x="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 _(){return(_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.controls,n=void 0===t?{}:t;return{active:n.fullscreen&&n.fullscreen.enabled}}),{onClick:function(e,t){return n=e,r=t.querySelector,{type:"TOGGLE_FULLSCREEN",enable:n,elementSelector:r};var n,r}})(M);t.a={FullScreenPlugin:f()(I,{disablePluginIf:"{state('browser') && state('browser').safari}",Toolbar:{name:"fullscreen",position:5,alwaysVisible:!0,tool:!0,priority:1}}),reducers:{},epics:{toggleFullscreenEpic:d}}},"./MapStore2/web/client/plugins/Identify.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/identify/identify.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./MapStore2/web/client/actions/map.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),h=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),g=n("./MapStore2/web/client/utils/ImmutableUtils.js"),y=Object(c.withHandlers)({needsRefresh:function(){return function(e,t){if(t.enabled&&t.point&&t.point.pixel){if(!e.point||!e.point.pixel||e.point.pixel.x!==t.point.pixel.x||e.point.latlng!==t.point.latlng||e.point.pixel.y!==t.point.pixel.y)return!0;if(!e.point||!e.point.pixel||t.point.pixel&&e.format!==t.format)return!0}return!1}},onClose:function(e){var t=e.purgeResults,n=void 0===t?function(){}:t,r=e.closeIdentify,o=void 0===r?function(){}:r;return function(){n(),o()}},onSubmitClickPoint:function(e){var t=e.onSubmitClickPoint,n=void 0===t?function(){}:t,o=e.point;return function(e){var t=Object(r.isNil)(e.lat)||Object(r.isNaN)(e.lat)?0:parseFloat(e.lat),i=Object(r.isNil)(e.lon)||Object(r.isNaN)(e.lon)?0:parseFloat(e.lon),a=Object(g.e)("latlng.lng",i,Object(g.e)("latlng.lat",t,o));n(a)}},onChangeFormat:function(e){var t=e.onChangeFormat,n=void 0===t?function(){}:t;return function(e){n(e)}}}),b=Object(c.compose)(y,Object(c.lifecycle)({componentDidMount:function(){var e=this.props,t=e.enabled,n=e.changeMousePointer,r=void 0===n?function(){}:n,o=e.disableCenterToMarker,i=e.onEnableCenterToMarker,a=void 0===i?function(){}:i;t&&r("pointer"),o||a()},componentWillUnmount:function(){var e=this.props,t=e.hideMarker,n=void 0===t?function(){}:t,r=e.purgeResults,o=void 0===r?function(){}:r,i=e.changeMousePointer;(void 0===i?function(){}:i)("auto"),n(),o()},componentWillReceiveProps:function(e){var t=this.props,n=t.hideMarker,r=void 0===n?function(){}:n,o=t.purgeResults,i=void 0===o?function(){}:o,a=t.changeMousePointer,s=void 0===a?function(){}:a,l=t.enabled;e.enabled&&!l?s("pointer"):!e.enabled&&l&&(s("auto"),r(),i())}})),v=n("./node_modules/@turf/bbox/index.js"),w=n.n(v),x=Object(c.withHandlers)({zoomToFeature:function(e){var t=e.zoomToExtent,n=void 0===t?function(){}:t,r=e.currentFeature,o=void 0===r?[]:r,i=e.currentFeatureCrs;return function(){var e=o.filter((function(e){return!!e.geometry}));if(e.length>0){var t=w()({type:"FeatureCollection",features:e});t&&n(t,i)}}}}),_=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),O=n("./MapStore2/web/client/components/I18N/Message.jsx"),S=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx"),j=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),E=n("./MapStore2/web/client/components/misc/Portal.jsx"),C=function(e){var t=e.latlng,n=e.enableRevGeocode,r=e.hideRevGeocode,o=void 0===r?function(){}:r,i=e.showModalReverse,a=e.revGeocodeDisplayName;return n&&t?s.a.createElement(E.a,null,s.a.createElement(j.a,{fade:!0,title:s.a.createElement("span",null,s.a.createElement(l.Glyphicon,{glyph:"map-marker"})," ",s.a.createElement(O.default,{msgId:"identifyRevGeocodeModalTitle"})),size:"xs",show:i,onClose:o,buttons:[{text:s.a.createElement(O.default,{msgId:"close"}),onClick:o,bsStyle:"primary"}]},s.a.createElement("div",{className:"ms-alert",style:{padding:15}},s.a.createElement("div",{className:"ms-alert-center text-center"},s.a.createElement("div",null,a))))):null},T=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),k=function(e){return s.a.createElement(T.a,{format:e.formatCoord||"decimal",aeronauticalOptions:{seconds:{decimals:4,step:1e-4}},idx:1,onSubmit:function(t,n){e.onSubmit(Object(r.isEmpty)(n)?void 0:n)},onChangeFormat:function(t){e.onChangeFormat(t)},key:"GFI row coord editor",component:e.coordinate||{},customClassName:"coord-editor",isDraggable:!1,showDraggable:!1,formatVisible:!0,showLabels:!0,removeVisible:!1})},A=n("./MapStore2/web/client/components/I18N/Number.jsx"),P=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),M=Object(P.a)((function(e){var t=e.degrees,n=void 0===t?0:t,r=e.minutes,o=void 0===r?0:r,i=e.seconds,a=void 0===i?0:i,l=e.direction,u=e.integerFormat,c=e.decimalFormat;return s.a.createElement("span",{className:"coordinate-dms"},s.a.createElement(A.a,{key:"latD",numberParams:u,value:n}),s.a.createElement("span",null,"° "),s.a.createElement(A.a,{key:"latM",numberParams:u,value:o}),s.a.createElement("span",null,"' "),s.a.createElement(A.a,{key:"latS",numberParams:c,value:a}),s.a.createElement("span",null,"'' ")," ",s.a.createElement("span",null,l))})),I=function(e){var t=e.integerFormat,n=void 0===t?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:0}:t,o=e.decimalFormat,i=void 0===o?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:4,minimumFractionDigits:4}:o,a=e.coordinate,u=void 0===a?{}:a,c=e.formatCoord,d=void 0===c?"decimal":c,p=e.className;return s.a.createElement(l.Row,{className:p},s.a.createElement(l.Col,{xs:12},Object(r.isNil)(u.lat)||Object(r.isNil)(u.lon)?null:"decimal"===d?s.a.createElement("div",{className:"ms-coordinates-decimal"},"Lat: ",s.a.createElement(A.a,{value:Math.round(1e5*u.lat)/1e5})," - Long: ",s.a.createElement(A.a,{value:u.lon})):s.a.createElement("div",{className:"ms-coordinates-aeronautical"},s.a.createElement("span",null,"Lat: ",s.a.createElement(M,{integerFormat:n,decimalFormat:i,value:u.lat})),s.a.createElement("span",null," - "),s.a.createElement("span",null," Long: ",s.a.createElement(M,{coordinate:"lon",integerFormat:n,decimalFormat:i,value:u.lon})))))},D=function(e){var t=e.coordinate,n=void 0===t?{}:t,r=e.formatCoord,o=e.edit,i=e.onSubmit,a=void 0===i?function(){}:i,l=e.onChangeFormat,u=void 0===l?function(){}:l;return o?s.a.createElement(k,{removeVisible:!1,formatCoord:r,coordinate:n||{lat:"",lon:""},onSubmit:a,onChangeFormat:u}):s.a.createElement(I,{className:"coordinates-text",formatCoord:r,coordinate:n||{lat:"",lon:""}})},N=n("./MapStore2/web/client/utils/IdentifyUtils.js"),R=n("./node_modules/prop-types/index.js"),L=n.n(R),F=n("./node_modules/react-select/dist/react-select.es.js"),z=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function B(){return(B=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}))).mergeMap((function(e){var t=Object(Me.c)(o()),n=Object(De.a)(e,Fe(Fe({},Object(Oe.i)(o())),{},{env:t})),r=n.url,i=n.request,a=n.metadata;if(Object(Oe.o)(o())&&Object(Oe.r)(o())&&(i=Fe(Fe({},i),Object(Oe.r)(o())[e.name])),s[e.name]&&(i=Fe(Fe({},i),s[e.name])),r){var u=r,c=i,h=a,m=Object(De.c)(e,p,d),g=Object(Oe.k)(o()),y=Object(Oe.o)(o()),b=fe.a.v1(),v=Fe(Fe({},m),c);return Object(Re.a)(u,v,e,{attachJSON:g,itemId:y}).map((function(t){return t.data.exceptions?Object(f.I)(b,t.data.exceptions,c,h):Object(f.N)(b,t.data,c,Fe(Fe({},h),{},{features:t.features,featuresCrs:t.featuresCrs}),e)})).catch((function(e){return de.a.Observable.of(Object(f.H)(b,e.data||e.statusText||e.status,c,h))})).startWith(Object(f.O)(b,v))}return de.a.Observable.of(Object(f.K)(e,i,a,l))}));return t&&t.modifiers&&!0===t.modifiers.ctrl&&t.multiSelection?h:h.startWith(Object(f.Q)())}))},handleMapInfoMarker:function(e,t){var n=t.getState;return e.ofType(f.j).filter((function(){return!Object(Oe.n)(n())})).map((function(e){return e.layer?Object(f.L)():Object(f.T)()}))},closeFeatureGridFromIdentifyEpic:function(e){return e.ofType(f.n,f.k).switchMap((function(){return de.a.Observable.of(Object(ge.fb)())}))},closeFeatureAndAnnotationEditing:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,o=void 0===n?function(){}:n;return e.ofType(f.f).switchMap((function(){return Object(r.get)(o(),"annotations.editing")?de.a.Observable.of(Object(ve.b)()):de.a.Observable.of(Object(f.Q)())}))},hideMarkerOnIdentifyCloseOrClearWarning:function(e){return e.ofType(f.f,f.e).flatMap((function(){return de.a.Observable.of(Object(f.L)())}))},changeMapPointer:function(e,t){return e.ofType(p.f).filter((function(){return!t.getState().map})).switchMap((function(t){return e.ofType(we.d).mapTo(t)}))},onMapClick:function(e,t){return e.ofType(p.i).filter((function(){var e=t.getState().mapInfo.disableAlwaysOn,n=void 0!==e&&e;return!Object(Ce.f)(t.getState())&&(n||!Ue(t.getState()||{}))})).switchMap((function(e){var n=e.point,r=e.layer,o=Object(Ce.n)(t.getState());return de.a.Observable.of(Object(f.J)(Ge(n,o),r),Object(_e.u)()).merge(de.a.Observable.of(Object(xe.b)(fe()(),{component:Ne.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:n?n.rawPos:[]}})).filter((function(){return Object(Oe.n)(t.getState())})))}))},onUpdateFeatureInfoClickPoint:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(f.A).map((function(e){var t=e.point,n=Object(Ce.n)(r());return{point:Ge(t,n)}})).withLatestFrom(e.ofType(f.j),(function(e,t){var n=e.point;return Fe(Fe({},t),{},{point:n})}))},featureInfoClickOnHighligh:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(f.w).filter((function(e){return e.enabled&&Object(Oe.b)(r())})).switchMap((function(){return de.a.Observable.from([Object(f.J)(Object(Oe.b)(r()),Object(Oe.a)(r()),Object(Oe.g)(r()),Object(Oe.r)(r()),Object(Oe.o)(r())),Object(f.T)()])}))},zoomToVisibleAreaEpic:function(e,t){return e.ofType(f.j).filter((function(){return Object(Se.c)(t.getState())})).switchMap((function(n){return e.ofType(f.n,f.h).switchMap((function(){var o=t.getState(),i=Object(Ce.k)(o),a=Object(Ce.n)(o),s=Object(Ce.m)(o),l=Object(r.find)(s,{code:a}),u=l&&l.extent,c=u&&Object(ke.reprojectBbox)(u,a,"EPSG:4326"),d=Object(Te.b)(o),h=n.point&&n.point&&n.point.latlng,m=Object(Ie.getCurrentResolution)(Math.round(i.zoom),0,21,96),g=d&&i&&i.size&&{left:Object(Ie.parseLayoutValue)(d.left,i.size.width),bottom:Object(Ie.parseLayoutValue)(d.bottom,i.size.height),right:Object(Ie.parseLayoutValue)(d.right,i.size.width),top:Object(Ie.parseLayoutValue)(d.top,i.size.height)};if(!i||!g||!h||n.point.cartographic||Object(ke.isInsideVisibleArea)(h,i,g,m)||Object(Ce.f)(o))return de.a.Observable.of(Object(f.Y)("disabled"));if(c&&!Object(ke.isPointInsideExtent)(h,c))return de.a.Observable.empty();var y=Object(ke.centerToVisibleArea)(h,i,g,m);return de.a.Observable.of(Object(f.Y)("enabled"),Object(p.J)(y.pos,y.zoom,y.crs)).concat(e.ofType(f.f).switchMap((function(){var e=i&&Object(Ie.getBbox)(i.center,i.zoom);return de.a.Observable.of(Object(p.x)(i.center,i.zoom,e,i.size,null,i.projection))})).takeUntil(e.ofType(p.e).skip(1)))}))}))},closeFeatureInfoOnCatalogOpenEpic:function(e,t){return e.ofType(me.b).filter((function(e){return"metadataexplorer"===e.control&&e.properties&&e.properties.enabled})).switchMap((function(){return de.a.Observable.of(Object(f.Q)(),Object(f.L)()).merge(de.a.Observable.of(Object(xe.c)()).filter((function(){return Object(Oe.n)(t.getState())})))}))},closeFeatureInfoOnAnnotationOpenEpic:function(e,t){var n=t.getState;return e.ofType(me.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control;return"annotations"===t&&Object(r.get)(n(),"controls.annotations.enabled",!1)})).mapTo(Object(f.Q)())},closeFeatureInfoOnMeasureOpenEpic:function(e){return e.ofType(me.c).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.value;return"measure"===t&&n})).mapTo(Object(f.Q)())},cleanPopupsEpicOnPurge:function(e,t){var n=t.getState;return e.ofType(f.q).filter((function(){return Object(Oe.n)(n())})).mapTo(Object(xe.c)())},identifyEditLayerFeaturesEpic:function(e,t){return e.ofType(f.g).exhaustMap((function(e){var n,r=e.layer;return de.a.Observable.of(Object(f.R)(null===(n=Object(Oe.b)(t.getState()))||void 0===n?void 0:n.geometricFilter),Object(be.E)(r))}))},switchFeatureGridToEdit:function(e,t){return e.ofType(ye.j).switchMap((function(){var e=Object(Oe.d)(t.getState()),n=(Object(r.find)(Object(je.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).attribute||Object(r.get)(Object(Ee.k)(t.getState()),"attribute");return e?de.a.Observable.of(Object(f.R)(),Object(ge.Pb)(),Object(ge.Tb)(Fe(Fe({},e),{},{attribute:n,value:Fe(Fe({},e.value),{},{attribute:n})}))):de.a.Observable.empty()}))},resetCurrentEditFeatureQuery:function(e){return e.ofType(ge.f,he.b).mapTo(Object(f.R)())},mouseMoveMapEventEpic:function(e,t){var n=t.getState;return e.ofType(p.l).debounceTime(Object(Ae.a)(n())).switchMap((function(e){var t=e.position,r=e.layer,o=Object(Pe.b)("annotations")(n()),i=Object(Pe.e)(n()),a=n().mousePosition.mouseOut;return!Object(Ce.f)(n())||o||i||a?de.a.Observable.empty():de.a.Observable.of(Object(f.J)(t,r)).merge(de.a.Observable.of(Object(xe.b)(fe()(),{component:Ne.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:t?t.rawPos:[]},autoPanMargin:70,autoPan:!0})))}))},removePopupOnUnregister:function(e,t){var n=t.getState;return e.ofType(p.r).switchMap((function(){var e,t,r=de.a.Observable.empty(),o=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(o.length&&!Object(Ce.f)(n())){var i=o[0].id;r=de.a.Observable.of(Object(xe.d)(i))}return r}))},removePopupOnLocationChangeEpic:function(e,t){var n=t.getState;return e.ofType(he.b,f.q,f.e).switchMap((function(){var e,t,r=de.a.Observable.empty(),o=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(o.length){var i=o[0].id;r=de.a.Observable.of(Object(xe.d)(i))}return r}))},removeMapInfoMarkerOnRemoveMapPopupEpic:function(e,t){var n=t.getState;return e.ofType(xe.a).switchMap((function(){return Object(Ce.f)(n())?de.a.Observable.of(Object(f.L)()):de.a.Observable.empty()}))},setMapTriggerEpic:function(e,t){return e.ofType(f.s,we.d).switchMap((function(){return de.a.Observable.of("hover"===Object(Oe.q)(t.getState())?Object(p.F)("mousemove","identifyFloatingTool"):Object(p.H)("mousemove","identifyFloatingTool"))}))}},Ve=n("./MapStore2/web/client/reducers/mapInfo.js"),We=n("./MapStore2/web/client/selectors/locale.js"),Ye=n("./MapStore2/web/client/selectors/maptype.js"),Ke=n("./MapStore2/web/client/utils/ConfigUtils.js");function Xe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ze(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t0&&n.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.geometry;return e||!!n}),!1)||!1,tooltipId:"identifyZoomToFeature",onClick:s}]},showFullscreen:!1,validResponses:[],validator:De.i,zIndex:1050}),ot=Object(c.compose)(Object(u.connect)(et,{purgeResults:f.Q,closeIdentify:f.F,onSubmitClickPoint:f.Z,onToggleShowCoordinateEditor:f.X,onChangeFormat:f.B,changeMousePointer:p.y,clearWarning:f.E,hideMarker:f.L,showRevGeocode:f.U,hideRevGeocode:f.M,onEnableCenterToMarker:f.Y.bind(null,"enabled"),onEdit:f.G},(function(e,t,n){return $e($e($e($e({},n),e),t),{},{enabled:e.enabled&&(e.isCesium||!n.showInMapPopup)&&!e.floatingIdentifyEnabled})})),Object(c.compose)(Object(u.connect)(Object(d.c)({highlight:Oe.k,currentFeature:Oe.f,currentFeatureCrs:Oe.e}),{toggleHighlightFeature:f.V,zoomToExtent:p.I}),x),Object(u.connect)(Object(d.a)(Ye.c,(function(e){return{mapType:e}})),{},(function(e,t,n){var r=e.mapType,o=n.showHighlightFeatureButton;return $e($e({},Ze(n,["showHighlightFeatureButton"])),{},{showHighlightFeatureButton:"openlayers"===r&&o})})),rt,tt,m.b,b)((function(e){var t,n,o=e.enabled,i=e.requests,a=void 0===i?[]:i,u=e.onClose,c=e.responses,d=void 0===c?[]:c,p=e.index,f=e.viewerOptions,h=void 0===f?{}:f,m=e.format,g=e.dock,y=void 0===g||g,b=e.position,v=e.size,w=e.fluid,x=e.validResponses,T=void 0===x?[]:x,k=e.viewer,A=void 0===k?function(){return null}:k,P=e.getToolButtons,M=void 0===P?function(){return[]}:P,I=e.getFeatureButtons,R=void 0===I?function(){return[]}:I,L=e.showFullscreen,F=e.reverseGeocodeData,z=void 0===F?{}:F,B=e.point,q=e.dockStyle,U=void 0===q?{}:q,G=e.draggable,H=e.setIndex,Y=e.warning,X=e.clearWarning,Z=e.zIndex,Q=e.showEmptyMessageGFI,$=e.showEdit,J=e.isEditingAllowed,ee=e.onEdit,te=void 0===ee?function(){}:ee,ne=e.enabledCoordEditorButton,re=e.showCoordinateEditor,oe=e.onSubmitClickPoint,ie=e.onChangeFormat,ae=e.formatCoord,se=e.loaded,le=e.validator,ue=void 0===le?function(){return null}:le,ce=B&&B.latlng||null,de=T[p],pe=(de||{}).layer,fe=null;ce&&(fe=ce&&Math.round(1e17*ce.lng)/1e17,fe-=360*Math.floor(fe/360+.5));var he=A,me=M(K(K({},e),{},{lngCorrected:fe,validResponses:T,latlng:ce,showEdit:$&&J&&!!de&&Object(N.b)(de),onEdit:te.bind(null,pe&&{id:pe.id,name:pe.name,url:Object(r.get)(pe,"search.url")})})),ge=a.length===(null===(t=ue(m))||void 0===t||null===(n=t.getNoValidResponses(d))||void 0===n?void 0:n.length)||0,ye=a.length-d.length,be=z.error?s.a.createElement(O.default,{msgId:"identifyRevGeocodeError"}):z.display_name;return s.a.createElement("div",{id:"identify-container",className:o&&0!==a.length?"identify-active":""},s.a.createElement(S.a,{bsStyle:"primary",glyph:"map-marker",open:o&&0!==a.length,size:v,fluid:w,position:b,draggable:G,onClose:u,dock:y,style:U,showFullscreen:L,zIndex:Z,header:[s.a.createElement(l.Row,{className:"layer-select-row"},s.a.createElement("div",{className:"layer-col"},s.a.createElement("span",{className:"identify-icon glyphicon glyphicon-1-layer"}),s.a.createElement(V,{responses:d,index:p,loaded:se,setIndex:H,missingResponses:ye,emptyResponses:ge}),s.a.createElement(_.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:R(e),transitionProps:null}))),s.a.createElement(l.Row,{className:"coordinates-edit-row"},s.a.createElement("span",{className:"identify-icon glyphicon glyphicon-point"}),s.a.createElement("div",{className:"coordinate-editor"},s.a.createElement(D,{key:"coordinate-editor",formatCoord:ae,enabledCoordEditorButton:ne,onSubmit:oe,onChangeFormat:ie,edit:re,coordinate:{lat:ce&&ce.lat,lon:fe}})),s.a.createElement(C,W({latlng:ce,revGeocodeDisplayName:be},e)),s.a.createElement(_.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:me,transitionProps:null}))].filter((function(e){return e}))},s.a.createElement(he,W({index:p,setIndex:H,format:m,missingResponses:ye,responses:d,requests:a,showEmptyMessageGFI:Q},h))),s.a.createElement(E.a,null,s.a.createElement(j.a,{fade:!0,title:s.a.createElement(O.default,{msgId:"warning"}),size:"xs",show:Y,onClose:X,buttons:[{text:s.a.createElement(O.default,{msgId:"close"}),onClick:X,bsStyle:"primary"}]},s.a.createElement("div",{className:"ms-alert",style:{padding:15}},s.a.createElement("div",{className:"ms-alert-center text-center"},s.a.createElement(O.default,{msgId:"identifyNoQueryableLayers"}))))))})),it=Object(u.connect)((function(e){return{infoFormat:Object(Oe.h)(e)}}),{onInfoFormatChange:f.C})(Q.a),at=Object(u.connect)((function(e){return{trigger:Object(Ce.f)(e)?"hover":"click"}}),{onSetMapTrigger:f.S})(ue);t.a={IdentifyPlugin:i()(ot,{Toolbar:{name:"info",position:6,tooltip:"info.tooltip",icon:s.a.createElement(l.Glyphicon,{glyph:"map-marker"}),help:s.a.createElement($.a,{msgId:"helptexts.infoButton"}),action:f.W,selector:function(e){return{bsStyle:e.mapInfo&&e.mapInfo.enabled?"success":"primary",active:!(!e.mapInfo||!e.mapInfo.enabled)}}},Settings:{tool:[s.a.createElement(it,{key:"featureinfoformat",label:s.a.createElement($.a,{msgId:"infoFormatLbl"})}),s.a.createElement(at,{key:"featureinfotrigger"})],position:3}}),reducers:{mapInfo:Ve.a},epics:He}},"./MapStore2/web/client/plugins/Map.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=e,a=r,s=o,l=i;if(Object({NODE_ENV:"production"}).isTest){var u={},c=function(e){return u[e]=u[e]||{rootCount:0,iframesCreated:!1,timedOut:!1,fontLoaded:!1,requiredExtraTimeout:!1},u[e]};window.reporter=window.reporter||{modifyRootCount:function(e,t){c(e).rootCount+=t},iframesCreated:function(e){c(e).iframesCreated=!0},timedOut:function(e){c(e).timedOut=!0},fontLoaded:function(e){c(e).fontLoaded=!0},requiredExtraTimeout:function(e){c(e).requiredExtraTimeout=!0},getTests:function(){return u}}}n.timeoutAfter&&setTimeout((function(){a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,-1),document.body.removeChild(a),a=0,n.onTimeout&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.timedOut(l),n.onTimeout()))}),n.timeoutAfter),s=function(){a&&a.firstChild.clientWidth===a.lastChild.clientWidth&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,-1),document.body.removeChild(a),a=0,Object({NODE_ENV:"production"}).isTest&&window.reporter.fontLoaded(l),t())},Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,1),Object({NODE_ENV:"production"}).isLegacy||s(document.body.appendChild(a=document.createElement("div")).innerHTML='
'+(n.sampleText||" ")+'
'+(n.sampleText||" ")+"
"),Object({NODE_ENV:"production"}).isLegacy&&s(document.body.appendChild(a=document.createElement("div")).innerHTML='
.'+(n.sampleText||" ")+'.
.'+(n.sampleText||" ")+".
"),a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.iframesCreated(l),Object({NODE_ENV:"production"}).isLegacy||(a.firstChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=s,a.lastChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=s),Object({NODE_ENV:"production"}).isLegacy&&(a.firstChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",s):i.contentWindow.onresize=s,a.lastChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",s):i.contentWindow.onresize=s),Object({NODE_ENV:"production"}).isTest||(i=setTimeout(s)),Object({NODE_ENV:"production"}).isTest&&(i=setTimeout((function(){a&&(window.reporter.requiredExtraTimeout(l),s())}))))},u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./node_modules/react-spinkit/dist/index.js"),p=n.n(d),f=(n("./MapStore2/web/client/plugins/map/css/map.css"),n("./MapStore2/web/client/components/I18N/Message.jsx")),h=n("./MapStore2/web/client/utils/ConfigUtils.js"),m=n("./MapStore2/web/client/actions/map.js"),g=n("./MapStore2/node_modules/lodash/lodash.js"),y=n("./node_modules/reselect/es/index.js"),b=n("./MapStore2/web/client/selectors/map.js"),v=n("./MapStore2/web/client/selectors/maptype.js"),w=n("./MapStore2/web/client/selectors/layers.js"),x=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t?Object(x.reprojectGeoJson)(o,r,"EPSG:4326").features:[]})),C=Object(y.a)([E,function(e){return Object(g.get)(e,e&&e.highlight&&e.highlight.featuresPath||"highlight.emptyFeatures")||[]}],(function(e,t){return[].concat(_(t),_(e))})),T=n("./MapStore2/web/client/selectors/security.js"),k=n("./MapStore2/web/client/selectors/locale.js"),A=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),P=Object(y.c)({projectionDefs:b.m,map:b.k,mapType:v.c,layers:w.n,features:C,loadingError:function(e){return e.mapInitialConfig&&e.mapInitialConfig.loadingError&&e.mapInitialConfig.loadingError.data},securityToken:T.c,elevationEnabled:b.e,shouldLoadFont:v.b,isLocalizedLayerStylesEnabled:A.b,localizedLayerStylesName:A.d,currentLocaleLanguage:k.a}),M=n("./MapStore2/web/client/reducers/map.js"),I=n("./MapStore2/web/client/reducers/layers.js"),D=n("./MapStore2/web/client/actions/draw.js"),N={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.a:return c()({},e,{drawStatus:t.status,drawOwner:t.owner,drawMethod:t.method,options:t.options,features:t.features,style:t.style});case D.e:return c()({},e,{currentStyle:t.currentStyle});case D.d:return c()({},e,{tempFeatures:t.features});case D.b:return c()({},e,{tempFeatures:[]});default:return e}},L=n("./MapStore2/web/client/actions/box.js"),F={status:null};var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case L.b:return c()({},e,{status:t.status});default:return e}},B=n("./MapStore2/web/client/actions/highlight.js");function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:H,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case B.b:return c()({},e,{featuresPath:t.featuresPath||"highlight.emptyFeatures"});case B.a:return U(U({},e),{},{status:t.status});case B.c:return U(U({},e),{},{highlighted:t.features.length,features:t.features,status:t.status||e.status});default:return e}},W=n("./MapStore2/web/client/reducers/maptype.js"),Y=n("./MapStore2/web/client/actions/additionallayers.js");function K(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(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 X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Y.c:var n=Object(g.pickBy)({id:t.id,owner:t.owner,actionType:t.actionType,options:t.options},g.identity),r=Object(g.head)(e.filter((function(e){return e.id===n.id})));return r?e.map((function(e){return e.id===n.id?Q(Q({},r),n):Q({},e)})):[].concat(K(e),[n]);case Y.d:var o=t.options,i=t.owner;return e.map((function(e,t){return e.owner===i?Q(Q({},e),{},{options:Object(g.isObject)(o)&&o[e.id]||Object(g.isArray)(o)&&o[t]||{}}):Q({},e)}));case Y.a:var a=t.id,s=t.owner;return s?e.filter((function(e){return e.owner!==s})):e.filter((function(e){return e.id!==a}));case Y.b:return[];default:return e}},ee=n("./node_modules/rxjs/Rx.js"),te=n.n(ee),ne=n("./MapStore2/web/client/actions/layers.js"),re=n("./MapStore2/web/client/actions/config.js"),oe=n("./MapStore2/web/client/actions/security.js"),ie=n("./MapStore2/web/client/selectors/maplayout.js"),ae=n("./MapStore2/web/client/actions/controls.js"),se=n("./MapStore2/web/client/utils/LayersUtils.js"),le=n("./MapStore2/web/client/utils/MapUtils.js"),ue=n("./MapStore2/web/client/actions/notifications.js"),ce=n("./MapStore2/web/client/actions/mapInfo.js");function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t=180&&o[3]>=90)n=1;else{var s=x.default.reprojectBbox(o,e.crs,t.projection||"EPSG:4326");n=le.default.getZoomForExtent(s,t.size,0,21,null)}e.maxZoom&&n>e.maxZoom&&(n=e.maxZoom);var l={minx:i[0],miny:i[1],maxx:i[2],maxy:i[3]},u=pe(pe({},t.bbox),{},{bounds:l});return te.a.Observable.of(Object(m.x)(a,n,u,t.size,e.mapStateSource,t.projection,t.viewerOptions))}return te.a.Observable.empty()}(pe(pe({},e),{},{extent:t}),Object(b.k)(r()))}))}},me=n("./MapStore2/web/client/actions/mapPopups.js"),ge=n("./MapStore2/web/client/actions/measurement.js"),ye=n("./MapStore2/web/client/selectors/measurement.js");function be(e){return{type:"CHANGE_SELECTION_STATE",geomType:e.geomType,point:e.point,line:e.line,polygon:e.polygon}}var ve=n("./MapStore2/web/client/actions/locate.js"),we=n("./node_modules/react-redux/es/index.js");function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(e,t)}(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 _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){l(e,n,{timeoutAfter:t.timeoutAfter,onTimeout:r,sampleText:t.sampleText,generic:t.generic})}))}(t,{timeoutAfter:5e3}).catch((function(){e.props.onFontError({family:t})}))}))).then((function(){e.setState({canRender:!0})}))),this.updatePlugins(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.mapType===this.props.mapType&&e.actions===this.props.actions||this.updatePlugins(e)}},{key:"render",value:function(){if(this.props.map&&this.state.canRender&&this.state.plugins){var e=this.props.map.mapOptions,t=void 0===e?{}:e;return a.a.createElement(this.state.plugins.Map,Ee({id:"map"},this.props.options,{projectionDefs:this.props.projectionDefs},this.props.map,{mapOptions:c()({},t,this.getMapOptions()),zoomControl:this.props.zoomControl,onResolutionsChange:this.props.onResolutionsChange}),this.renderLayers(),this.renderSupportTools())}return this.props.loadingError?a.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapErrorMessage"},a.a.createElement(f.default,{msgId:"map.loadingerror"}),":",this.props.loadingError):a.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapLoadingMessage"},this.props.loadingSpinner?a.a.createElement(p.a,{spinnerName:"circle",overrideSpinnerClassName:"spinner"}):null,a.a.createElement(f.default,{msgId:this.props.mapLoadingMessage}))}}])&&Ae(t.prototype,n),r&&Ae(t,r),i}(a.a.Component);Re(Le,"propTypes",{mapType:o.a.string,map:o.a.object,layers:o.a.array,additionalLayers:o.a.array,zoomControl:o.a.bool,mapLoadingMessage:o.a.string,loadingSpinner:o.a.bool,loadingError:o.a.string,tools:o.a.array,fonts:o.a.array,options:o.a.object,mapOptions:o.a.object,projectionDefs:o.a.array,toolsOptions:o.a.object,onFontError:o.a.func,onResolutionsChange:o.a.func,actions:o.a.object,features:o.a.array,securityToken:o.a.string,shouldLoadFont:o.a.bool,elevationEnabled:o.a.bool,isLocalizedLayerStylesEnabled:o.a.bool,localizedLayerStylesName:o.a.string,currentLocaleLanguage:o.a.string,items:o.a.array,onLoadingMapPlugins:o.a.func}),Re(Le,"defaultProps",{mapType:"leaflet",actions:{},zoomControl:!1,mapLoadingMessage:"map.loading",loadingSpinner:!0,tools:["measurement","locate","scalebar","draw","highlight","popup","box"],options:{},mapOptions:{},fonts:["FontAwesome"],toolsOptions:{measurement:{},locate:{},scalebar:{leaflet:{position:"bottomright"}},overview:{overviewOpt:{position:"bottomright",collapsedWidth:25,collapsedHeight:25,zoomLevelOffset:-5,toggleDisplay:!0},layers:[{type:"osm"}]}},securityToken:"",additionalLayers:[],shouldLoadFont:!1,elevationEnabled:!1,onFontError:function(){},onResolutionsChange:function(){},items:[],onLoadingMapPlugins:function(){}});t.a=Object(s.d)("Map",{component:Object(s.c)(P,{onFontError:m.B,onResolutionsChange:m.G})(Le),reducers:{map:M.a,layers:I.a,draw:R,box:z,highlight:V,maptype:W.a,additionallayers:J},epics:he})},"./MapStore2/web/client/plugins/MapFooter.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx"),l=n("./node_modules/recompose/es/Recompose.js");function u(e){return(u="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 c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return function(r){return r.withLatestFrom(e.startWith(t)).filter((function(e){var t=_(e,2)[1];return n(t)})).map((function(e){return _(e,1)[0]}))}},j=n("./MapStore2/web/client/observables/epics.js"),E=n("./MapStore2/web/client/api/MultiDim.js"),C=n("./node_modules/rxjs/Rx.js"),T=n.n(C);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||P(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 A(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||P(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 P(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(x.n)(e()),r=Object(x.m)(e()),o=Object(x.p)(e()),i=Object(w.h)(e())||{},a=i.startPlaybackTime,s=i.endPlaybackTime,l=Object(w.j)(e())===c.j.PLAY||Object(w.j)(e())===c.j.PAUSE;return[o,r,"time",D({limit:20,time:a&&s&&l?R(a,s):void 0},t),Object(x.i)(n)(e())]},F=function(e,t){if(Object(x.m)(e())){var n=Object(b.e)(Object(x.k)(e()))(e()),r=Object(x.o)(e());return"multidim-extension"!==Object(f.get)(r,"source.type")&&n&&n.length>0?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fromValue,o=n.limit,i=void 0===o?20:o,a=Object(w.h)(t())||{},s=a.startPlaybackTime,l=a.endPlaybackTime;return T.a.Observable.of(e.filter((function(e){return!s||!l||p()(e).isSameOrAfter(s)&&p()(e).isSameOrBefore(l)})).filter((function(e){return!r||p()(e).isAfter(r)})).slice(0,i))}(n,e,t):E.b.apply(void 0,A(L(e,t))).map((function(e){return e.DomainValues.Domain.split(",")}))}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fromValue,r=t.limit,o=void 0===r?20:r,i=t.sort,a=void 0===i?"asc":i,s=Object(w.i)(e()),l=s.timeStep,u=s.stepUnit,c=p.a.duration(l,u),d=Object(w.h)(e())||{},f=d.startPlaybackTime,h=d.endPlaybackTime,m=void 0!==n?n:f||Object(b.a)(e())||(new Date).toString(),g=[];m!==n&&g.push(p()(m).toISOString());for(var y=0;y0&&void 0!==arguments[0]?arguments[0]:function(){return{}};return function(t){var n=Object(b.f)(e());return T.a.Observable.from(n.map((function(e){return Object(g.H)(e.id,{singleTile:!0})}))).concat(t).concat(T.a.Observable.from(n.map((function(e){return Object(g.H)(e.id,{singleTile:e.singleTile})}))))}},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.start,r=t.end;return n&&r&&(p()(e).isBefore(n)||p()(e).isAfter(r))},q={retrieveFramesForPlayback:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.f).exhaustMap((function(){return F(r,{fromValue:Object(w.h)(r())&&Object(w.h)(r()).startPlaybackTime&&Object(w.h)(r()).endPlaybackTime?void 0:Object(b.a)(r())}).map((function(e){return Object(c.v)(e)})).let(Object(j.a)(Object(c.q)(!0),Object(c.q)(!1)),(function(){return T.a.Observable.of(Object(y.f)({title:"There was an error retrieving animation",message:"Please contact the administrator"}),Object(c.w)())})).let(Object(j.a)(Object(m.r)(!1,!0),Object(m.r)(!1,!1))).concat(e.ofType(c.h).filter((function(e){return e.frame%20==10})).switchMap((function(){return F(r,{fromValue:Object(w.e)(r())}).map(c.o).let(Object(j.a)(Object(c.q)(!0),Object(c.q)(!1)))}))).takeUntil(e.ofType(c.k,v.b)).concat(T.a.Observable.of(Object(m.r)(!1,!1))).let(z(r))}))},updateCurrentTimeFromAnimation:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.h).map((function(){return Object(w.b)(r())})).map((function(e){return e?Object(h.e)(e):Object(c.w)()}))},timeDimensionPlayback:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.i).exhaustMap((function(){return T.a.Observable.interval(1e3*Object(w.c)(r())).startWith(0).let(S(e.ofType(c.f,c.e).map((function(e){return e.type===c.f})))).map((function(){return Object(c.u)(Object(w.a)(r())+1)})).merge(e.ofType(c.a).map((function(e){var t=e.direction;return Object(c.u)(Math.max(0,Object(w.a)(r())+t))}))).concat(T.a.Observable.of(Object(c.w)())).takeUntil(e.ofType(c.k,v.b))}))},playbackToggleGuideLayerToFixedStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.l).exhaustMap((function(){return Object(x.m)(r())?T.a.Observable.of(Object(m.n)(void 0)):T.a.Observable.of(Object(m.n)(Object(f.get)(Object(x.q)(r()),"[0].id")))}))},playbackMoveStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.a).filter((function(){return Object(w.j)(r())!==c.j.PLAY})).switchMap((function(e){var t=e.direction,n=void 0===t?1:t,o=Object(w.g)(r())||{},i=Object(b.a)(r());return i&&o.forTime===i?T.a.Observable.of(n>0?o.next:o.previous):F(r,{limit:1,sort:n>0?"asc":"desc",fromValue:Object(b.a)(r())}).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=k(e,1),n=t[0];return n}))})).filter((function(e){return!!e})).map((function(e){return Object(h.e)(e)}))},playbackCacheNextPreviousTimes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.b,h.a,m.f,c.k,m.i).filter((function(){return Object(w.j)(r())!==c.j.PLAY&&Object(w.j)(r())!==c.j.PAUSE})).filter((function(){return Object(x.n)(r())})).filter((function(e){return!!e})).switchMap((function(e){var t=e.time||Object(b.a)(r());return T.a.Observable.forkJoin(E.b.apply(void 0,A(L(r,{sort:"asc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return k(e,1)[0]})).catch((function(e){return e&&T.a.Observable.of(null)})),E.b.apply(void 0,A(L(r,{sort:"desc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return k(e,1)[0]})).catch((function(e){return e&&T.a.Observable.of(null)}))).map((function(e){var n=k(e,2),r=n[0],o=n[1];return Object(c.y)({forTime:t,next:r,previous:o})}))}))},playbackFollowCursor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.a).filter((function(e){return(e.type===h.a||Object(w.j)(r())===c.j.PLAY)&&B(Object(b.a)(r()),Object(x.j)(r()))})).filter((function(){return Object(f.get)(Object(w.i)(r()),"following")})).switchMap((function(){return T.a.Observable.of(Object(m.l)((e=Object(b.a)(r()),t=Object(x.j)(r()),n=t.start,o=t.end,i=p()(o).diff(p()(n)),{start:e,end:p()(e).add(i).toISOString()})));var e,t,n,o,i}))},playbackStopWhenDeleteLayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(g.s).filter((function(){return!Object(x.n)(r())&&"PLAY"===Object(w.j)(r())})).switchMap((function(){return T.a.Observable.of(Object(c.w)())}))}},U=n("./MapStore2/web/client/reducers/dimension.js"),G=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/utils/ImmutableUtils.js");function V(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(e,t)}(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 n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:function(){};try{if(!Object(f.isNaN)(parseInt(e,10))){var r=parseInt(e,10);return t(r<1?1:r)}return n()}catch(e){return n(e)}},ae=function(e){var t=e.startPlaybackTime,n=e.endPlaybackTime,r=p()(t).diff(n);return{startPlaybackTime:r>=0?n:t,endPlaybackTime:r>=0?t:n}};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=Object(l.compose)(Object(s.connect)(Object(u.a)(w.i,x.n,w.h,(function(e,t,n){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return ie(e,(function(e){s("frameDuration",e)}))}}),a.a.createElement(Z.InputGroup.Addon,null,"s"))),a.a.createElement(Z.ControlLabel,null,a.a.createElement(K.default,{msgId:"playback.settings.step.label"})," ",a.a.createElement(Q.a,{text:a.a.createElement(K.default,{msgId:"playback.settings.step.tooltip"})})),a.a.createElement(Z.FormGroup,{controlId:"formPlaybackStep"},a.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},a.a.createElement(te.a,{disabled:!f,componentClass:"input",type:"number",style:{input:{maxWidth:120}},value:r,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ie(e,(function(e){s("timeStep",e)}))}}),a.a.createElement(Z.FormControl,{disabled:!f,componentClass:"select",value:o,onChange:function(e){var t=e.target;return s("stepUnit",(void 0===t?{}:t).value)}},a.a.createElement(K.default,{msgId:"playback.settings.step.year",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"years"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.week",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"weeks"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.day",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"days"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.hour",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"hour"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.minute",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"minutes"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.second",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"seconds"},e)}))))),a.a.createElement(ee.a,{onSwitch:function(e){return d(e)},expanded:m.startPlaybackTime&&m.endPlaybackTime,title:a.a.createElement(K.default,{msgId:"playback.settings.range.title"}),buttons:b},a.a.createElement(Z.FormGroup,{controlId:"formPlaybackMode",style:{margin:10}},a.a.createElement($.a,{tooltipId:"playback.settings.range.animationStart",glyph:"play",date:m.startPlaybackTime,onUpdate:function(e){return y(ae(re(re({},m),{},{startPlaybackTime:e})))},style:w,showButtons:!0}),a.a.createElement($.a,{glyph:"stop",tooltipId:"playback.settings.range.animationEnd",date:m.endPlaybackTime,onUpdate:function(e){return y(ae(re(re({},m),{},{endPlaybackTime:e})))},style:w,showButtons:!0}))),a.a.createElement(Z.FormGroup,{controlId:"formPlaybackFollowingMode"},a.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},a.a.createElement(Z.ControlLabel,null,a.a.createElement(K.default,{msgId:"playback.settings.mode.following"})," ",a.a.createElement(Q.a,{text:a.a.createElement(K.default,{msgId:"playback.settings.mode.followingDescription"})})),a.a.createElement("span",null,a.a.createElement(J.a,{checked:t,onChange:function(e){return s("following",e)}})))))})),ce=Object(l.compose)(Object(l.withState)("showSettings","onShowSettings",!1),Object(l.withState)("collapsed","setCollapsed",!0),Object(l.withProps)((function(e){var t=e.setCollapsed;return{buttons:[{glyph:"minus",onClick:function(){return t(!0)}}]}}))),de=Object(u.a)(w.j,x.n,w.g,w.d,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return t?e===c.j.PLAY||e===c.j.PAUSE?r:{hasNext:!!n.next,hasPrevious:!!n.previous}:{hasNext:!0,hasPrevious:!0}})),pe=Object(l.compose)(Object(s.connect)(de,{stepMove:c.n}),Object(l.withHandlers)({forward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(1)}},backward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(-1)}}})),fe=Object(l.compose)(ce,pe)((function(e){var t=e.status,n=e.statusMap,r=e.play,o=void 0===r?function(){}:r,i=e.forward,s=void 0===i?function(){}:i,l=e.backward,u=void 0===l?function(){}:l,c=e.pause,d=void 0===c?function(){}:c,p=e.stop,f=void 0===p?function(){}:p,h=e.hasPrevious,m=e.hasNext,g=e.showSettings,y=e.onShowSettings,b=void 0===y?function(){}:y,v=e.settingsStyle,w=void 0===v?{}:v;return a.a.createElement("div",{style:{display:"flex"}},t!==n.PLAY&&t!==n.PAUSE&&g&&a.a.createElement(ue,{style:w}),a.a.createElement(X.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"step-backward",key:"back",onClick:u,disabled:!h,tooltip:a.a.createElement(K.default,{msgId:"playback.backwardStep"})},{glyph:t===n.PLAY?"pause":"play",key:"play",active:t===n.PLAY||t===n.PAUSE,disabled:!m,bsStyle:t===n.PLAY||t===n.PAUSE?"success":"primary",onClick:function(){return t===n.PLAY?d():o()},tooltipId:m&&(t===n.PLAY?"playback.pause":t===n.PAUSE?"playback.paused":"playback.play")},{glyph:"stop",key:"stop",disabled:t!==n.PLAY&&t!==n.PAUSE,onClick:f,tooltip:!(t!==n.PLAY&&t!==n.PAUSE)&&a.a.createElement(K.default,{msgId:"playback.stop"})},{glyph:"step-forward",key:"forward",onClick:s,disabled:!m,tooltip:m&&a.a.createElement(K.default,{msgId:"playback.forwardStep"})},{glyph:"cog",key:"settings",bsStyle:t!==n.PLAY&&t!==n.PAUSE&&g?"success":"primary",active:(t!==n.PLAY||t!==n.PAUSE)&&!!g,disabled:t===n.PLAY||t===n.PAUSE,onClick:function(){return t!==n.PLAY&&b(!g)},tooltip:!(t===n.PLAY||t===n.PAUSE)&&a.a.createElement(K.default,{msgId:"playback.settings.tooltip"})}]}))}));function he(e){return(he="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 me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{status:c.j.STOP,currentFrame:-1,settings:Y},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c.f:return Object(H.e)("status",c.j.PLAY,e);case c.e:return Object(H.e)("status",c.j.PAUSE,e);case c.k:return Object(H.e)("status",c.j.STOP,Object(H.e)("currentFrame",-1,e));case c.i:return Object(H.e)("frames",t.frames,Object(H.e)("currentFrame",-1,e));case c.d:return Object(H.e)("framesLoading",t.loading,e);case c.b:return Object(H.e)("frames",[].concat(V(e.frames||[]),V(t.frames)),e);case c.h:return Object(H.e)("currentFrame",t.frame,e);case c.g:return Object(H.e)("playbackRange",t.range,e);case c.c:return Object(H.e)("settings[".concat(t.name,"]"),t.value,e);case c.m:return Object(H.e)("metadata",{next:t.next,previous:t.previous,forTime:t.forTime},e);case G.a:return Object(H.e)("metadata",void 0,Object(H.e)("framesLoading",void 0,Object(H.e)("playbackRange",void 0,Object(H.e)("frames",void 0,Object(H.e)("currentFrame",-1,Object(H.e)("status","STOP",Object(H.e)("settings",Y,e)))))));default:return e}},dimension:U.default}}},"./MapStore2/web/client/plugins/Print.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/print/print.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-redux/es/index.js"),p=n("./node_modules/reselect/es/index.js"),f=n("./MapStore2/web/client/actions/controls.js"),h=n("./MapStore2/web/client/actions/print.js"),m=n("./MapStore2/web/client/components/I18N/Message.jsx"),g=n("./MapStore2/web/client/components/misc/Dialog.jsx");function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={antiAliasing:!0,iconSize:24,legendDpi:96,fontFamily:"Verdana",fontSize:8,bold:!1,italic:!1,resolution:96,name:"",description:""},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("_")[0]};var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{spec:b,capabilities:null,map:null,isLoading:!1,pdfUrl:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case f.d:return"print"===t.control?i()({},e,{pdfUrl:null,isLoading:!1,error:null}):e;case h.f:var n=Object(r.get)(t,"capabilities.layouts",[{name:"A4"}]),o=n.filter((function(t){return v(t.name)===e.spec.sheet})).length?e.spec.sheet:v(n[0].name);return i()({},e,{capabilities:t.capabilities,spec:i()({},e.spec||{},{sheet:o,resolution:t.capabilities&&t.capabilities.dpis&&t.capabilities.dpis.length&&t.capabilities.dpis[0].value})});case h.j:return i()({},e,{spec:i()({},e.spec,y({},t.name,t.value))});case h.c:var a=t.layers.map((function(e){return e.title?i()({},e,{title:Object(r.isObject)(e.title)&&t.currentLocale&&e.title[t.currentLocale]||Object(r.isObject)(e.title)&&e.title.default||e.title}):e}));return i()({},e,{map:{center:t.center,zoom:t.zoom,scaleZoom:t.scaleZoom,scale:t.scale,layers:a,projection:t.projection},error:null});case h.b:var s=t.zoom-e.map.scaleZoom;return i()({},e,{map:i()({},e.map,{scaleZoom:t.zoom,zoom:e.map.zoom+s,scale:t.scale})});case h.a:return i()({},e,{map:i()({},e.map,{size:t.size})});case h.i:return i()({},e,{isLoading:!0,pdfUrl:null,error:null});case h.g:return i()({},e,{isLoading:!1,pdfUrl:t.url,error:null});case h.h:case h.e:return i()({},e,{isLoading:!1,pdfUrl:null,error:t.error});case h.d:return i()({},e,{isLoading:!1,pdfUrl:null,error:null});default:return e}},x=n("./MapStore2/web/client/selectors/layers.js"),_=n("./MapStore2/web/client/selectors/locale.js"),O=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),S=n("./MapStore2/web/client/selectors/map.js"),j=n("./MapStore2/web/client/selectors/maptype.js"),E=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),C=n("./MapStore2/web/client/utils/LocaleUtils.js"),T=n("./MapStore2/web/client/utils/MapUtils.js");function k(e){return(k="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 A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})),U(B(e),"filterLayers",(function(t){var n=e.props.layers.filter((function(t){return t.visibility&&e.isAllowed(t)}));if(e.isBackgroundIgnored()&&e.props.defaultBackground&&t.defaultBackground){var r=e.props.layers.filter((function(t){return t.type===e.props.defaultBackground}))[0];return[i()({},r,{visibility:!0})].concat(M(n))}return n})),U(B(e),"configurePrintMap",(function(t,n){var r=t||e.props.map,o=n||e.props.printSpec;if(r&&r.bbox&&e.props.capabilities){var i=Object(E.reprojectBbox)([r.bbox.bounds.minx,r.bbox.bounds.miny,r.bbox.bounds.maxx,r.bbox.bounds.maxy],r.bbox.crs,r.projection),a=e.getMapSize();if(e.props.useFixedScales){var s=e.props.getZoomForExtent(i,a,e.props.minZoom,e.props.maxZoom),l=Q(e.props.capabilities),u=$(r.zoom,l);e.props.configurePrintMap(r.center,s,u,l[u],e.filterLayers(o),r.projection,e.props.currentLocale)}else e.props.configurePrintMap(r.center,r.zoom,r.zoom,e.props.scales[r.zoom],e.filterLayers(o),r.projection,e.props.currentLocale)}})),U(B(e),"print",(function(){var t=e.props.printSpec;e.props.isLocalizedLayerStylesEnabled&&(t=P(P({},t),{},{env:e.props.localizedLayerStylesEnv,language:e.props.currentLocaleLanguage})),e.props.setPage(0),e.props.onBeforePrint(),e.props.preloadData(t).then((function(t){var n=e.props.getPrintSpecification(t);e.props.onPrint(e.props.capabilities.createURL,P(P({},n),e.props.overrideOptions))})).catch((function(t){e.props.printError("Error pre-loading data:"+t.message)}))})),e}return t=p,(n=[{key:"UNSAFE_componentWillMount",value:function(){if(this.props.usePreview&&!window.PDFJS){var e=document.createElement("script");e.type="text/javascript",e.src="https://unpkg.com/pdfjs-dist@1.4.79/build/pdf.combined.js",document.head.appendChild(e)}this.configurePrintMap()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.open&&!this.props.open,n=this.props.open&&this.props.syncMapPreview&&Object(T.mapUpdated)(this.props.map,e.map),r=e.printSpec.defaultBackground!==this.props.printSpec.defaultBackground;(t||n||r)&&this.configurePrintMap(e.map,e.printSpec)}},{key:"render",value:function(){return(this.props.capabilities||this.props.error)&&this.props.open?this.props.withContainer?this.props.withPanelAsContainer?u.a.createElement(c.Panel,{className:"mapstore-print-panel",header:u.a.createElement("span",null,u.a.createElement("span",{className:"print-panel-title"},u.a.createElement(m.default,{msgId:"print.paneltitle"})),u.a.createElement("span",{className:"print-panel-close panel-close",onClick:this.props.toggleControl})),style:this.props.style},this.renderBody()):u.a.createElement(g.a,{id:"mapstore-print-panel",style:P({left:"17%",top:"50px",zIndex:1990},this.props.style)},u.a.createElement("span",{role:"header"},u.a.createElement("span",{className:"print-panel-title"},u.a.createElement(m.default,{msgId:"print.paneltitle"})),u.a.createElement("button",{onClick:this.props.toggleControl,className:"print-panel-close close"},this.props.closeGlyph?u.a.createElement(c.Glyphicon,{glyph:this.props.closeGlyph}):u.a.createElement("span",null,"×"))),this.renderBody()):this.renderBody():null}}])&&R(t.prototype,n),s&&R(t,s),p}(u.a.Component);U(J,"propTypes",{map:s.a.object,layers:s.a.array,capabilities:s.a.object,printSpec:s.a.object,printSpecTemplate:s.a.object,withContainer:s.a.bool,withPanelAsContainer:s.a.bool,open:s.a.bool,pdfUrl:s.a.string,title:s.a.string,style:s.a.object,mapWidth:s.a.number,mapType:s.a.string,alternatives:s.a.array,toggleControl:s.a.func,onBeforePrint:s.a.func,setPage:s.a.func,onPrint:s.a.func,printError:s.a.func,configurePrintMap:s.a.func,preloadData:s.a.func,getPrintSpecification:s.a.func,getLayoutName:s.a.func,error:s.a.string,getZoomForExtent:s.a.func,minZoom:s.a.number,maxZoom:s.a.number,usePreview:s.a.bool,mapPreviewOptions:s.a.object,syncMapPreview:s.a.bool,useFixedScales:s.a.bool,scales:s.a.array,ignoreLayers:s.a.array,defaultBackground:s.a.string,closeGlyph:s.a.string,submitConfig:s.a.object,previewOptions:s.a.object,currentLocale:s.a.string,currentLocaleLanguage:s.a.string,overrideOptions:s.a.object,isLocalizedLayerStylesEnabled:s.a.bool,localizedLayerStylesEnv:s.a.object}),U(J,"contextTypes",{messages:s.a.object}),U(J,"defaultProps",{withContainer:!0,withPanelAsContainer:!1,title:"print.paneltitle",toggleControl:function(){},onBeforePrint:function(){},setPage:function(){},onPrint:function(){},configurePrintMap:function(){},printSpecTemplate:{},preloadData:K,getPrintSpecification:X,getLayoutName:Z,getZoomForExtent:T.defaultGetZoomForExtent,pdfUrl:null,mapWidth:370,mapType:"leaflet",minZoom:1,maxZoom:23,alternatives:[{name:"legend",component:v,regex:/legend/},{name:"2pages",component:w,regex:/2_pages/},{name:"landscape",component:k,regex:/landscape/}],usePreview:!0,mapPreviewOptions:{enableScalebox:!1,enableRefresh:!1},syncMapPreview:!0,useFixedScales:!1,scales:[],ignoreLayers:["google","bing"],defaultBackground:"osm",closeGlyph:"1-close",submitConfig:{buttonConfig:{bsSize:"small",bsStyle:"primary"},glyph:""},previewOptions:{buttonStyle:"primary"},style:{},currentLocale:"en-US",overrideOptions:{}});var ee=Object(p.a)([function(e){return e.controls.print&&e.controls.print.enabled||e.controls.toolbar&&"print"===e.controls.toolbar.active},function(e){return e.print&&e.print.capabilities},function(e){return e.print&&e.print.spec&&i()({},e.print.spec,e.print.map||{})},function(e){return e.print&&e.print.pdfUrl},function(e){return e.print&&e.print.error},S.k,x.p,S.o,function(e){return e.browser&&(!e.browser.ie||e.browser.ie11)},_.b,_.a,j.c,O.b,O.c],(function(e,t,n,r,o,i,a,s,l,u,c,d,p,f){return{open:e,capabilities:t,printSpec:n,pdfUrl:r,error:o,map:i,layers:a.filter((function(e){return!e.loadingError})),scales:s,usePreview:l,currentLocale:u,currentLocaleLanguage:c,mapType:d,isLocalizedLayerStylesEnabled:p,localizedLayerStylesEnv:f}})),te=Object(d.connect)(ee,{toggleControl:f.h.bind(null,"print",null),onPrint:h.q,printError:h.p,onBeforePrint:h.r,setPage:f.g.bind(null,"print","currentPage"),configurePrintMap:h.m})(J);e(te)}.bind(null,n)).catch(n.oe)},enabler:function(e){return e.print&&e.print.enabled||e.toolbar&&"print"===e.toolbar.active}},{disablePluginIf:"{state('mapType') === 'cesium' || !state('printEnabled')}",Toolbar:{name:"print",position:7,help:u.a.createElement(m.default,{msgId:"helptexts.print"}),tooltip:"printbutton",icon:u.a.createElement(c.Glyphicon,{glyph:"print"}),exclusive:!0,panel:!0,priority:1},BurgerMenu:{name:"print",position:2,text:u.a.createElement(m.default,{msgId:"printbutton"}),icon:u.a.createElement(c.Glyphicon,{glyph:"print"}),action:f.h.bind(null,"print",null),priority:2,doNotHide:!0}}),reducers:{print:w}}},"./MapStore2/web/client/plugins/ScaleBox.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/PluginsUtils.js"),a=n("./node_modules/reselect/es/index.js"),s=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/actions/map.js"),u=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/actions/help.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),f=n("./MapStore2/web/client/components/help/HelpBadge.jsx");n("./MapStore2/web/client/components/help/help.css");function h(e){return(h="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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n0},D=Object(p.withHandlers)({clickHandler:function(e){var t=e.selectedLayer,n=e.offsetEnabled,o=e.status,i=e.setCurrentTime,a=void 0===i?function(){}:i,s=e.selectGroup,l=void 0===s?function(){}:s;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.time,s=e.group,u=e.what,c=e.event;if("PLAY"!==o)switch(u){case"group-label":s&&"PLAY"!==o&&l(s);break;default:var d=c&&c.target&&c.target.closest(".vis-custom-time"),p=d&&d.getAttribute("class"),f=p&&Object(r.trim)(p.replace("vis-custom-time",""));i&&!n&&"startPlaybackTime"!==f&&"endPlaybackTime"!==f&&a(i.toISOString(),t)}}},timechangedHandler:function(e){var t=e.currentTime,n=e.setOffset,r=void 0===n?function(){}:n,o=e.setCurrentTime,i=void 0===o?function(){}:o,a=e.currentTimeRange,s=void 0===a?{}:a,l=e.playbackRange,u=e.setPlaybackRange,c=void 0===u?function(){}:u,d=e.selectedLayer;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.time,o=e.id;if("startPlaybackTime"!==o&&"endPlaybackTime"!==o)"currentTime"===o&&(s.end?I(n,s.end)?i(n.toISOString(),null):(i(s.end),r(n.toISOString())):i(n.toISOString(),d)),"offsetTime"===o&&(I(t,n)?r(n.toISOString()):(i(n.toISOString()),r(t)));else{var a=P(P({},l),{},M({},o,n.toISOString())),u=Object(k.e)(a.startPlaybackTime,a.endPlaybackTime),p=u.start,f=u.end;I(p,f)&&c({startPlaybackTime:p,endPlaybackTime:f})}}}});function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;o(e),t(e)}})}})),Object(p.withPropsOnChange)(["rangeItems","currentTime","offsetEnabled","selectedLayer","currentTimeRange","readOnly"],(function(e){var t=e.currentTimeRange,n=e.rangeItems,r=void 0===n?[]:n,o=e.readOnly;return{rangeItems:e.offsetEnabled&&void 0!==t.start&&void 0!==t.end?[].concat(F(r),[R(R({id:"current-range",editable:{updateTime:!o,updateGroup:!1,remove:!1}},Object(k.e)(t.start,t.end)),{},{type:"background",className:"ms-current-range"})]).filter((function(e){return e})):r}}))),Object(p.withPropsOnChange)(["currentTime","playbackRange","playbackEnabled","offsetEnabled","currentTimeRange"],(function(e){var t=e.currentTime,n=e.playbackRange,r=e.playbackEnabled,o=e.offsetEnabled,i=e.currentTimeRange;return{customTimes:[t?{currentTime:t}:{},r&&n&&n.startPlaybackTime&&n.endPlaybackTime?n:{},o&&i?{offsetTime:i.end}:{}].reduce((function(e,t){return t?R(R({},e),t):R({},e)}),{})}}))),q=n("./node_modules/prop-types/index.js"),U=n.n(q),G=n("./node_modules/vis/dist/vis-timeline-graph2d.min.js"),H=n.n(G);n("./node_modules/vis/dist/vis-timeline-graph2d.min.css");function V(e){return(V="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 W(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(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 Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t.$el.initialFitDone?t.setAllItems(e):(t.setAllItems(e),t.$el.emit("changed")):t.$el.initialRangeChangeDone&&t.setAllItems(e)})),t.state={customTimes:[]},t}return t=s,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.refs.container;this.$el=new H.a.Timeline(t,void 0,this.props.options),ne.forEach((function(t){return e.$el.on(t,e.props["".concat(t,"Handler")])})),this.init()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.items,r=t.groups,o=t.options,i=t.selection,a=t.customTimes,s=t.readOnly,l=t.rangeItems,u=n!==e.items,c=r!==e.groups,d=o!==e.options,p=a!==e.customTimes,f=i!==e.selection,h=s!==e.readOnly,m=l!==e.rangeItems;return u||c||d||p||f||h||m}},{key:"componentDidUpdate",value:function(e){this.init(e)}},{key:"componentWillUnmount",value:function(){this.$el.destroy()}},{key:"render",value:function(){return u.a.createElement("div",{ref:"container",className:this.props.readOnly?"read-only-timeline":"",onMouseOut:this.props.onMouseOutHandler})}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,o=n.items,a=n.rangeItems,s=n.groups,l=n.options,u=n.selection,c=n.selectionOptions,d=void 0===c?{}:c,p=n.customTimes,f=n.animate,h=void 0===f||f,m=n.currentTime,g=l;if(h&&(g=Object(r.omit)(l,"start","end"),l.start&&l.end?this.$el.setWindow(l.start,l.end,{animation:h}):this.$el.setWindow(i()().subtract(1,"month"),i()().add(1,"month"),{animation:h})),this.$el.setOptions(g),s.length>0){var y=new H.a.DataSet;y.add(s),this.$el.setGroups(y)}if(o&&o!==t.items)this.setItems(o);else if(a!==t.rangeItems){var b=this.$el&&this.$el.itemsData&&this.$el.itemsData.getDataSet();if(b){var v=Object(r.intersectionBy)(a||[],t.rangeItems||[],"id"),w=Object(r.differenceBy)(a||[],t.rangeItems||[],"id"),x=Object(r.differenceBy)(t.rangeItems||[],a||[],"id");v.map((function(e){return b.update(e)})),w.map((function(e){return b.add(e)})),x.map((function(e){var t=e.id;return b.remove(t)}))}else this.setItems(o)}this.$el.setSelection(u,d),m&&this.$el.setCurrentTime(m);var _=Object(r.keys)(this.state.customTimes),O=Object(r.keys)(p),S=Object(r.difference)(O,_),j=Object(r.difference)(_,O),E=Object(r.intersection)(_,O);Object(r.each)(j,(function(t){return e.$el.removeCustomTime(t)})),Object(r.each)(S,(function(t){var n=p[t];e.$el.addCustomTime(n,t)})),Object(r.each)(E,(function(t){var n=p[t];e.$el.setCustomTime(n,t)})),this.setState({customTimes:p}),(this.props.readOnly!==t.readOnly||this.props.readOnly&&S.length>0)&&Object(r.each)(this.$el.customTimes,(function(n){e.props.readOnly?n.hammer.off("panstart panmove panend"):!0===t.readOnly&&(n.hammer.on("panstart",n._onDragStart.bind(n)),n.hammer.on("panmove",n._onDrag.bind(n)),n.hammer.on("panend",n._onDragEnd.bind(n)))}))}}])&&K(t.prototype,n),o&&K(t,o),s}(u.a.Component);ee(ae,"propTypes",Object(r.assign)(ie,re)),ee(ae,"defaultProps",Object(r.assign)({items:[],groups:[],options:{},selection:[],customTimes:{}},oe));var se=ae;function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.title,r=e.name;return t+n+r})).length>0}),(function(e){var t=e.layers,n=void 0===t?[]:t,o=e.loading,i=void 0===o?{}:o,a=e.selectedLayer;return{groups:n.map((function(e){return{id:e.id,className:(i[e.id]?"loading":"")+(e.id&&e.id===a?" selected":""),content:'
'+(i[e.id]?'
':'
'.concat(e.id&&e.id===a?'':"","
"))+'
'.concat(Object(r.isString)(e.title)?e.title:e.name,"
")+"
"}}))}}))),fe=Object(p.compose)(Object(d.connect)(Object(f.a)(_.a,j.a,(function(e,t){return{currentTime:e,currentTimeRange:t}})),{setCurrentTime:g.o,moveCurrentRange:h.e,setOffset:h.f})),he=Object(p.compose)(Object(d.connect)(Object(f.c)({playbackRange:S.h,status:S.j}),{setPlaybackRange:m.t})),me=Object(p.compose)(Object(d.connect)(Object(f.a)(j.n,(function(e){return{selectedLayer:e}})),{selectGroup:g.n})),ge=Object(p.compose)(Object(d.connect)((function(){return{}}),{rangechangedHandler:g.l})),ye=Object(p.compose)(fe,he,me,D,ge,pe,Object(p.defaultProps)({key:"timeline",options:{maxHeight:"90%",verticalScroll:!0,stack:!1,showMajorLabels:!0,showCurrentTime:!1,zoomMin:10,zoomable:!0,type:"background",margin:{item:0,axis:0},format:{minorLabels:{minute:"h:mma",hour:"ha"}},itemsAlwaysDraggable:!0,moment:function(e){return i()(e).utc()}}}),Object(p.withPropsOnChange)(["viewRange","options"],(function(e){var t=e.viewRange,n=void 0===t?{}:t;return{options:ue(ue({},e.options),n)}})),Object(p.withPropsOnChange)(["status"],(function(e){return{readOnly:"PLAY"===e.status}})),B,Object(C.a)((function(e){var t=e.loading;return t&&t.timeline}),(function(){return u.a.createElement("div",{style:{margin:"auto",fontWeight:"bold"}},u.a.createElement(T.a,{style:{display:"inline-block",verticalAlign:"middle"}}),u.a.createElement(y.default,{msgId:"loading"}))}),{white:!0}))(se),be=n("./node_modules/rxjs/Rx.js"),ve=n.n(be),we=n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"),xe=n("./MapStore2/web/client/components/misc/Button.jsx");function _e(){return(_e=Object.assign||function(e){for(var t=1;t0},Re=Object(p.compose)(Object(d.connect)(Object(f.a)(j.f,j.q,_.a,j.a,_.g,S.h,S.j,j.j,(function(e,t,n,r,o,i,a,s){return{visible:e,layers:t,currentTime:n,currentTimeRange:r,offsetEnabled:o,playbackRange:i,status:a,viewRange:s}})),{setCurrentTime:g.o,onOffsetEnabled:g.k,setOffset:h.f,setPlaybackRange:m.t,moveRangeTo:g.l}),Object(p.branch)((function(e){var t=e.visible,n=void 0===t||t,r=e.layers,o=void 0===r?[]:r;return!n||0===Object.keys(o).length}),p.renderNothing),Object(p.withState)("options","setOptions",{collapsed:!0}),Object(d.connect)(Object(f.a)(j.e,(function(e){return{mapSync:e}})),{toggleMapSync:g.q}),Object(p.compose)(Object(p.compose)(Object(p.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{containerWidth:e.width}}}}),Object(v.a)({querySelector:".ms2",closest:!0,debounceTime:100})),Object(p.defaultProps)({style:{marginBottom:35,marginLeft:100,marginRight:80}}),Object(d.connect)(Object(f.a)((function(e){return Object(O.c)(e,{right:!0,bottom:!0,left:!0})}),(function(e){return{mapLayoutStyle:e}}))),Object(p.withProps)((function(e){var t=e.containerWidth,n=e.style,r=e.mapLayoutStyle,o=n||{},i=o.marginLeft,a=o.marginRight,s=r.left,l=void 0===s?0:s,u=r.right,c=void 0===u?0:u;c=Ie(c)&&De(c)*t||c,l=Ie(l)&&De(l)*t||l;if(t){var d=t-c-l-i-a;return{hide:d<410,compactToolbar:d<880,style:Ae(Ae(Ae({},n),r),{},{minWidth:410})}}return{style:Ae(Ae(Ae({},n),r),{},{minWidth:410})}})),Object(p.branch)((function(e){return e.hide}),p.renderNothing),Object(p.setDisplayName)("TimelinePlugin")))((function(e){var t=e.items,n=e.options,o=e.setOptions,a=e.mapSync,s=e.toggleMapSync,l=void 0===s?function(){}:s,d=e.currentTime,p=e.setCurrentTime,f=e.offsetEnabled,h=e.onOffsetEnabled,m=e.currentTimeRange,g=e.setOffset,b=e.style,v=e.status,_=e.viewRange,O=e.moveRangeTo,S=e.compactToolbar,j=n.hideLayersName,E=n.collapsed,C=Object(r.head)(t&&t.filter((function(e){return"playback"===e.name}))),T=C&&C.plugin,k=function(e,t,n,r){var o=i()(n.end).diff(n.start)/2;if("time-current"===t&&n&&n.start.toString()!==i()(e).add(-1*o).toString()&&n.end.toString()!==i()(e).add(o).toString()&&O({start:i()(e).add(-1*o),end:i()(e).add(o)}),"range-start"===t||"range-end"===t){var a=i()(r.end).diff(r.start),s=i()(r.start).add(a/2);O(a/2<=o?{start:i()(s).add(-1*o),end:i()(s).add(o)}:{start:i()(s).add(-1*a*5/2),end:i()(s).add(5*a/2)})}};return u.a.createElement("div",{style:Ae(Ae({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},b),{},{right:E?"auto":b.right||0}),className:"timeline-plugin".concat(j?" hide-layers-name":"").concat(f?" with-time-offset":"")},f&&u.a.createElement(x.a,{clickable:!E,glyph:"range-start",onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_,m)},tooltip:u.a.createElement(y.default,{msgId:"timeline.rangeStart"}),showButtons:!0,date:d||m&&m.start,onUpdate:function(e){return(m&&Ne(e,m.end)||!m)&&"PLAY"!==v&&p(e)},className:"shadow-soft",style:{position:"absolute",top:-5,left:2,transform:"translateY(-100%)"}}),u.a.createElement("div",{className:"timeline-plugin-toolbar".concat(S?" ms-collapsed":"")},f&&m?u.a.createElement(x.a,{clickable:!E,glyph:"range-end",onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_,m)},tooltip:u.a.createElement(y.default,{msgId:"timeline.rangeEnd"}),date:m.end,showButtons:!0,onUpdate:function(e){return"PLAY"!==v&&Ne(d,e)&&g(e)}}):u.a.createElement(x.a,{clickable:!E,glyph:"time-current",showButtons:!0,onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_)},tooltip:u.a.createElement(y.default,{msgId:"timeline.currentTime"}),date:d||m&&m.start,onUpdate:function(e){return(m&&Ne(e,m.end)||!m)&&"PLAY"!==v&&p(e)}}),u.a.createElement("div",{className:"timeline-plugin-btn-group"},u.a.createElement(w.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"list",tooltip:u.a.createElement(y.default,{msgId:j?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:j?"primary":"success",visible:!E,active:!j,onClick:function(){return o(Ae(Ae({},n),{},{hideLayersName:!j}))}},{glyph:"time-offset",bsStyle:f?"success":"primary",active:f,disabled:"PLAY"===v,tooltip:u.a.createElement(y.default,{msgId:f?"timeline.disableRange":"timeline.enableRange"}),onClick:function(){"PLAY"!==v&&h(!f)}},{glyph:"map-synch",tooltip:u.a.createElement(y.default,{msgId:a?"timeline.mapSyncOn":"timeline.mapSyncOff"}),bsStyle:a?"success":"primary",active:a,onClick:function(){return l(!a)}}]}),T&&u.a.createElement(T,Te({},C,{settingsStyle:{right:E||S?40:"unset"}}))),u.a.createElement(Me,{onClick:function(){return o(Ae(Ae({},n),{},{collapsed:!E}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:u.a.createElement(y.default,{msgId:E?"timeline.expand":"timeline.collapse"})},u.a.createElement(c.Glyphicon,{glyph:E?"chevron-up":"chevron-down"}))),!E&&u.a.createElement(ye,{offsetEnabled:f,playbackEnabled:!0,hideLayersName:j}))}));t.a={TimelinePlugin:s()(Re,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:u.a.createElement(Ce,null),position:0}}),reducers:{dimension:n("./MapStore2/web/client/reducers/dimension.js").default,timeline:n("./MapStore2/web/client/reducers/timeline.js").default},epics:n("./MapStore2/web/client/epics/timeline.js").default}},"./MapStore2/web/client/plugins/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-redux/es/index.js"),l=(n("./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css"),n("./node_modules/react-transition-group/index.js")),u=n("./MapStore2/web/client/selectors/featuregrid.js"),c=n("./MapStore2/web/client/selectors/maplayout.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./node_modules/object-assign/index.js"),f=n.n(p),h=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function m(e){return(m="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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"toolbar";return Object(s.connect)(P(e))(A)},reducers:{controls:n("./MapStore2/web/client/reducers/controls.js").default}}},"./MapStore2/web/client/plugins/ZoomAll.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/zoomall/zoomall.css");var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/actions/map.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),f=n("./MapStore2/web/client/components/misc/Button.jsx"),h=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),m=n("./MapStore2/web/client/utils/MapUtils.js"),g=n("./MapStore2/web/client/utils/ConfigUtils.js");function y(e){return(y="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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n0&&u.a.createElement(s,w({},t.innerProps,{mapType:e.props.mapType,tools:l,panels:t.childPanels}))),t)})),A(T(e),"renderTools",(function(){return e.props.tools.map(e.renderTool)})),A(T(e),"renderPanels",(function(){return e.props.panels.filter((function(e){return!e.panel.loadPlugin})).map((function(t){var n=t.panel,r=u.a.createElement(n,w({key:t.name,mapType:e.props.mapType},t.cfg,t.props||{},{items:t.items||[]})),o=t.title?u.a.createElement(g.default,{msgId:t.title}):null;return t.wrap?u.a.createElement(c.Collapse,{key:"mapToolBar-item-collapse-"+t.name,in:e.props.activePanel===t.name},u.a.createElement(c.Panel,{header:o,style:e.props.panelStyle,className:e.props.panelClassName},r)):r}))})),A(T(e),"mergeHandlers",(function(e,t){return Object.keys(t).reduce((function(n,r){return i()(n,A({},r,e[r]?Object(p.d)(e[r],t[r]):t[r]))}),e)})),A(T(e),"addTooltip",(function(t,n){if(n.tooltip){var r=u.a.createElement(c.Tooltip,{id:e.props.id+"-"+n.name+"-tooltip"},u.a.createElement(g.default,{msgId:n.tooltip}));return u.a.createElement(y.a,{key:e.props.id+"-"+n.name+"-overlay",rootClose:!0,placement:"left",overlay:r},t)}return t})),e}return t=s,(n=[{key:"render",value:function(){var e=this.props.container;return u.a.createElement("span",{id:this.props.id,style:this.props.containerWrapperStyle},u.a.createElement(e,{id:this.props.id+"-container",style:this.props.style,className:this.props.className},this.renderTools()),this.renderPanels())}}])&&S(t.prototype,n),o&&S(t,o),s}(u.a.Component);A(M,"propTypes",{id:s.a.string.isRequired,container:s.a.func,containerWrapperStyle:s.a.object,tool:s.a.func,className:s.a.string,style:s.a.object,tools:s.a.array,panels:s.a.array,mapType:s.a.string,toolStyle:s.a.string,activeStyle:s.a.string,toolSize:s.a.string,stateSelector:s.a.string.isRequired,eventSelector:s.a.string,panelStyle:s.a.object,panelClassName:s.a.string,activePanel:s.a.string,toolCfg:s.a.object}),A(M,"contextTypes",{messages:s.a.object,router:s.a.object}),A(M,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:b.a,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),t.a=M},"./MapStore2/web/client/plugins/drawer/drawer.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/drawer/drawer.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/identify/identify.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/locale/Message.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),o=n("./MapStore2/web/client/components/I18N/Message.jsx");t.a=Object(r.connect)((function(e){return{locale:e.locale&&e.locale.currentLocale,messages:e.locale&&e.locale.messages||[]}}))(o.default)},"./MapStore2/web/client/plugins/locate/locate.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/locate/locate.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$":function(e,t,n){var r={"./cesium/index":["./MapStore2/web/client/plugins/map/cesium/index.js",24],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",2,7,12,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",2,3,5,7,17]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$",e.exports=o},"./MapStore2/web/client/plugins/map/css/map.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/maploading/maploading.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/metadataexplorer/css/style.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/metadataexplorer/css/style.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/omnibar/omnibar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/print/print.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/scalebox/scalebox.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/img/layers.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3woCDCsUqrUEAAAAAQxJREFUOMvN0iFLw1EUBfCf02Q0LGhQQVZekiU/gTAYImpasMi6VVBhwSCsi0kQbIJFsBoMBjHdpKDJMjBaxM3yhCn7z4HF29695xzuue/wxxofNkwp1crl8kKn03kswowVEEvYx25utdCKiO6vAimlKZxh+cfoCo2IeC0USClVcY7Zgo2fsR4Rd1+NUh95CzdDyDCHm4z9LoAueiMcvpexAy0sZgvzBeQnrEXE/SALM3hHFZcDyJd59pFSmh5koY1b1FDHXl61m7+zjpWMaX+RJvoEGjjAKZawncFwjSM0cYidYTlYxQkCGzmt56hgMyIuRkliJZPKWeAlH+9hpChnkUkc52czIt78y/oEtThIARE8NNwAAAAASUVORK5CYII="},"./MapStore2/web/client/plugins/zoom/zoom.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/zoomall/zoomall.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,n){e.exports=n.p+"symbolMissing.svg"},"./MapStore2/web/client/reducers/catalog.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/catalog.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./node_modules/uuid/index.js"),c=n.n(u);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t${description}

"};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{default:{services:{},selectedService:"",newService:{}},delayAutoSearch:1e3,loading:!1,pageSize:4,services:{},selectedService:"",newService:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.w:return f(f({},e),{},{saving:t.status});case r.t:return l()({},e,{result:t.result,searchOptions:t.searchOptions,loadingError:null,layerError:null,loading:!1});case r.v:return l()({},e,{result:null,loadingError:null,searchOptions:null});case r.u:return l()({},e,{result:null,searchOptions:null,loadingError:t.error,loading:!1,layerError:null});case r.f:return l()({},e,{result:null,loadingError:null,format:t.format,layerError:null});case r.c:return l()({},e,{layerError:t.error});case r.g:return l()({},e,{newService:t.isNew?m:l()({},e.services&&e.services[e.selectedService||""]||{},{oldService:e.selectedService||""}),mode:t.mode,result:null,loadingError:null,layerError:null});case o.d:return e&&!Object(a.isNil)(e.default)?t.config&&!Object(a.isNil)(t.config.catalogServices)?l()({},e,{services:t.config.catalogServices.services,selectedService:t.config.catalogServices.selectedService}):l()({},e,{services:e.default.services,selectedService:e.default.selectedService}):e;case r.r:return Object(i.e)("openCatalogServiceList",t.status,e);case r.l:return Object(i.e)("searchOptions.text",t.text,e);case r.k:return Object(i.e)('newService["'.concat(t.property,'"]'),t.value,e);case r.m:return Object(i.e)("newService.title",t.title,e);case r.o:return Object(i.e)("newService.url",t.url,e);case r.j:return Object(i.e)("newService.format",t.format,e);case r.n:var n=t.newType.toLowerCase(),s={};return"csw"!==n&&(s={showTemplate:!1,metadataTemplate:""}),l()({},e,{newService:l()({},e.newService,f({type:n},s))});case r.a:var u=t.service,p=u.isNew,g=d(u,["isNew"]),y=p?g.title+c()():e.selectedService,b=l()({},e.services,h({},y,g));return l()({},e,{services:b,selectedService:y,mode:"view",result:null,loadingError:null,searchOptions:l()({},e.searchOptions,{text:""}),layerError:null});case r.i:return t.service!==e.selectedService?l()({},e,{selectedService:t.service,result:null,loadingError:null,layerError:null}):e;case r.p:var v,w="";return delete(v=l()({},e.services))[t.service],Object.keys(v).length&&(w=v[Object.keys(v)[0]].title),l()({},e,{services:v,selectedService:w,mode:"view",result:null,loadingError:null,layerError:null});case r.B:return Object(i.e)("newService.hideThumbnail",!e.newService.hideThumbnail,e);case r.x:return Object(i.e)("loading",t.loading,e);case r.h:return Object(i.e)("newService.metadataTemplate",t.metadataTemplate,e);case r.A:var x=Object(i.e)("newService.showTemplate",!e.newService.showTemplate,e);return x.newService.showTemplate&&(x=Object(i.e)("newService.metadataTemplate",x.newService.metadataTemplate||"

${description}

",x)),x;case r.z:return Object(i.e)("newService.showAdvancedSettings",!e.newService.showAdvancedSettings,e);default:return e}}},"./MapStore2/web/client/reducers/dimension.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/dimension.js"),o=n("./MapStore2/web/client/actions/layers.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./node_modules/moment/moment.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:return Object(a.e)("data[".concat(t.dimension,"][").concat(t.layerId,"]"),t.data,e);case r.b:return Object(a.e)("currentTime",t.time,e);case r.c:return Object(a.e)("offsetTime",t.offsetTime,e);case r.a:if(e.offsetTime&&e.currentTime){var n=l()(e.offsetTime).diff(e.currentTime),s=l()(t.time).add(n);return Object(a.e)("currentTime",t.time,Object(a.e)("offsetTime",s.toISOString(),e))}return Object(a.e)("currentTime",t.time,e);case o.s:var c=Object(u.mapValues)(e.data,(function(e){return Object(u.pickBy)(e,(function(e,n){return n!==t.node}))}));return Object(a.e)("data",c,e);case i.a:return Object(a.e)("data",void 0,Object(a.e)("currentTime",void 0,Object(a.e)("offsetTime",void 0,e)));default:return e}}},"./MapStore2/web/client/reducers/mapInfo.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/mapInfo.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js");function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.p:return s()({},e,{warning:"NO_QUERYABLE_LAYERS"});case r.e:return s()({},e,{warning:null});case r.c:return s()({},e,{enabled:t.enabled});case r.x:return s()({},e,{enabled:!e.enabled});case r.d:return s()({},e,{index:t.index});case r.w:return s()({},e,{highlight:t.enabled});case r.o:var a=t.reqId,l=t.request,u=e.requests||[];return s()({},e,{requests:[].concat(d(u),[{request:l,reqId:a}])});case r.q:e.index,e.loaded;var p=c(e,["index","loaded"]);return h(h({},p),{},{queryableLayers:[],responses:[],requests:[]});case r.n:return g(e,t,"data");case r.i:return g(e,t,"exceptions");case r.h:return g(e,t,"error");case r.j:return s()({},e,{clickPoint:t.point,clickLayer:t.layer||null,itemId:t.itemId||null,overrideParams:t.overrideParams||null,filterNameList:t.filterNameList||null});case r.b:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{infoFormat:t.infoFormat})});case r.t:return s()({},e,{showMarker:!0});case r.l:return s()({},e,{showMarker:!1});case r.u:return s()({},e,{showModalReverse:!0,reverseGeocodeData:t.reverseGeocodeData});case r.m:return s()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case i.a:return s()({},e,{showMarker:!1,responses:[],requests:[]});case r.k:var f,m=n("./node_modules/turf-buffer/index.js"),b=n("./node_modules/turf-intersect/index.js"),v={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[t.request.lng,t.request.lat]}},w=t.metadata&&t.metadata.units;switch(w){case"m":w="meters";break;case"deg":w="degrees";break;case"mi":w="miles";break;default:w="meters"}var x,_=t.metadata&&t.metadata.resolution||1,O=m(v,(t.metadata.buffer||1)*_,w),S=(t.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,n){var r=n.properties.useGeodesicLines&&n.properties.geometryGeodesic?h(h({},n),{},{geometry:n.properties.geometryGeodesic}):n;return e||b(O,_&&t.metadata.buffer&&w?m(r,1,"meters"):r)}),!1):b(O,_&&t.metadata.buffer&&w?m(e,1,"meters"):e)}catch(e){return!1}})),j=e.responses||[],E="hover"===(null==e||null===(f=e.configuration)||void 0===f?void 0:f.trigger)||!1,C={response:{crs:null,features:S,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:t.request,layerMetadata:t.metadata,format:"JSON"};E?(j=[].concat(d(j),[C]),x={reqId:0}):(j[e.requests.length]=C,x={reqId:e.requests.length});var T=[].concat(d(e.requests),[{}]);return g(s()({},e,{requests:T,queryableLayers:t.queryableLayers,responses:d(j)}),x,"vector");case r.z:return s()({},e,{centerToMarker:t.status});case r.v:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case o.d:return h(h({},e),{},{configuration:t.config.mapInfoConfiguration||e.configuration||{}});case r.a:return h(h({},e),{},{formatCoord:t.format});case r.y:return h(h({},e),{},{showCoordinateEditor:!t.showCoordinateEditor});case r.r:return h(h({},e),{},{currentEditFeatureQuery:t.query});case r.s:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{trigger:t.trigger})});default:return e}}},"./MapStore2/web/client/reducers/maplayout.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/maplayout.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout:{},boundingMapRect:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:var n=t.layout,o=n.boundingMapRect,a=void 0===o?{}:o,l=u(n,["boundingMapRect"]);return i()({},e,{layout:i()({},l,l),boundingMapRect:s({},a)});default:return e}}},"./MapStore2/web/client/reducers/maps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/maps.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{enabled:!1,showMapDetails:!0,errors:[],searchFilter:{},searchText:"",results:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.j:return i()({},e,{searchText:t.text});case r.u:return i()({},e,{searchFilter:c(c({},e.searchFilter),{},d({},t.filter,t.filterData))});case r.x:return i()({},e,{searchFilter:t.searchFilter});case r.w:return i()({},e,{contexts:t.contexts});case r.c:return i()({},e,{loading:t.value,loadFlags:c(c({},e.loadFlags||{}),"loading"!==t.name?d({},t.name,t.value):{})});case r.p:return i()({},e,{metadata:i()({},e.metadata,d({},t.prop,t.value))});case r.g:return i()({},e,{loading:!0,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});case r.f:if(t.maps&&t.maps.results&&Array.isArray(t.maps.results))return i()({},e,t.maps,{loading:!1,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});var n=""!==t.maps.results?[t.maps.results]:[];return i()({},e,t.maps,{results:n,loading:!1});case r.h:return{loadingError:t.error};case r.o:for(var o=""===e.results||Object(a.isNil)(e.results)?[]:s(e.results),l=0;l0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAP_TYPE_CHANGED":return{mapType:t.mapType};default:return e}}},"./MapStore2/web/client/reducers/measurement.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/measurement.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/web/client/utils/MeasurementUtils.js"),s=n("./MapStore2/web/client/utils/openlayers/DrawUtils.js"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/object-assign/index.js"),c=n.n(u);function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.g:var n,u=Object(l.findIndex)(e.features,(function(e){return("bearing"===(e.properties.values[0]||{}).type?"Bearing":e.geometry.type)===t.geomType}));return c()({},e,{lineMeasureEnabled:t.geomType!==e.geomType&&"LineString"===t.geomType,areaMeasureEnabled:t.geomType!==e.geomType&&"Polygon"===t.geomType,bearingMeasureEnabled:t.geomType!==e.geomType&&"Bearing"===t.geomType,geomType:t.geomType===e.geomType?null:t.geomType,features:null===t.geomType?[]:e.features,textLabels:null===t.geomType?[]:e.textLabels,feature:{properties:{disabled:!0}},currentFeature:-1!==u?u:(null===(n=e.features)||void 0===n?void 0:n.length)||0,len:0,area:0,bearing:0});case r.f:var p=t.feature;return Object(s.c)(p)&&(p=Object(i.e)("geometry.coordinates[0]",Object(l.dropRight)(p.geometry.coordinates[0]),p)),c()({},e,{lineMeasureEnabled:t.lineMeasureEnabled,areaMeasureEnabled:t.areaMeasureEnabled,bearingMeasureEnabled:t.bearingMeasureEnabled,geomType:t.geomType,values:t.values,feature:Object(i.e)("properties.disabled",e.feature.properties.disabled,p),point:t.point,len:t.len,area:t.area,bearing:t.bearing,lenUnit:t.lenUnit,areaUnit:t.areaUnit});case r.o:var h=t.measures,b=h.point,v=h.len,w=h.area,x=h.bearing;return m(m({},e),{},{point:b,len:v,area:w,bearing:x});case r.j:var _=Object(i.e)("feature.properties.disabled",!0,e);return m(m({},_),{},{isDrawing:!0,updatedByUI:!1});case r.h:var O,S="length"===t.uom?"lenUnit":"lenArea",j=t.value,E=j.value,C=j.label;return c()({},e,(g(O={},S,E),g(O,"uom",c()({},t.previousUom,g({},t.uom,{unit:E,label:C}))),g(O,"updatedByUI",!0),O));case r.c:var T=t.features,k=Object(a.b)(T);return m(m({},e),{},{features:T,geomTypeSelected:k,updatedByUI:!1,isDrawing:!1},Object(l.isEmpty)(T)&&{exportToAnnotation:!1});case r.m:var A=t.property,P=t.value;return m(m({},e),{},g({},A,P));case r.k:var M=t.features,I=Object(a.b)(M);return m(m({},e),{},{features:M,geomTypeSelected:I,updatedByUI:!0,isDrawing:!1,exportToAnnotation:!0,id:t.id});case r.n:return m(m({},e),{},{textLabels:t.textLabels});case r.l:return m(m({},e),{},{currentFeature:Object(l.isNumber)(t.featureIndex)?t.featureIndex:e.features.length});case o.d:e.id;var D=f(e,["id"]);return"info"===t.control?m(m({},D),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""}):"measure"===t.control?m(m({},D),{},{geomType:"",lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1}):e;case o.c:return"measure"===t.control&&!1===t.value?m(m({},e),{},{geomType:"",lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1}):e;case o.a:return m(m({},e),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""});case r.e:return m(m({},e),{},{format:t.format});case r.i:return m(m({},e),t.defaultOptions);case r.d:var N=t.coordinates.map((function(e){return[e.lon,e.lat]})),R=e.features||[],L=R[e.currentFeature]||{},F=N.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==N.length;return m(m({},e),{},{feature:{type:"Feature",properties:{disabled:N.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==N.length},geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[Object(l.dropRight)(N)]:N}},features:[].concat(d(R.slice(0,e.currentFeature)),[m(m({},L),{},{type:"Feature",properties:m(m({},L.properties||{}),{},{disabled:F||e.bearingMeasureEnabled&&N.length<2}),geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[[].concat(d(N),[N[0]])]:N}})],d(R.slice(e.currentFeature+1,R.length))),updatedByUI:!0});default:return e}}},"./MapStore2/web/client/reducers/notifications.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/notifications.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:t.type;var n=u(t,["type"]);return[].concat(s(e),[i({},n)]);case r.b:return e.filter((function(e){return e.uid!==t.uid}));case r.a:return[];default:return e}}},"./MapStore2/web/client/reducers/query.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/wfsquery.js"),o=n("./MapStore2/web/client/actions/queryform.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.f:return s()({},e,{typeName:t.typeName,url:t.url});case r.e:return s()({},e,{featureTypes:s()({},e.featureTypes,l({},t.typeName,t.featureType))});case r.d:return s()({},e,{featureTypes:s()({},e.featureTypes,l({},t.typeName,{error:t.error}))});case r.c:return s()({},e,{featureLoading:t.isLoading});case r.b:return s()({},e,{featureLoading:!1,data:s()({},e.data,l({},t.typeName,d(t.feature)))});case r.a:return s()({},e,{featureLoading:!1,featureTypes:s()({},e.data,l({},t.typeName,{error:t.error}))});case r.j:return s()({},e,{isNew:!0,searchUrl:t.searchUrl,filterObj:t.filterObj});case r.p:return s()({},e,{filterObj:s()({},e.filterObj,t.updates)});case r.l:return s()({},e,{isNew:!1,result:t.result,searchUrl:t.searchUrl,filterObj:t.filterObj,resultError:null});case r.k:return s()({},e,{isNew:!1,result:null,resultError:t.error});case i.a:case o.n:return t.skip&&t.skip.indexOf("query")>=0?e:s()({},e,{isNew:!1,result:null,filterObj:null,searchUrl:null});case r.m:return s()({},e,{result:null,resultError:null});case r.o:return s()({},e,{syncWmsFilter:!e.syncWmsFilter});case r.n:return s()({},e,{isLayerFilter:!e.isLayerFilter});default:return e}}},"./MapStore2/web/client/reducers/queryform.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/queryform.js"),o=n("./MapStore2/web/client/actions/draw.js"),i=n("./node_modules/object-assign/index.js"),a=n.n(i),s=n("./node_modules/turf-union/index.js"),l=n.n(s),u=n("./node_modules/turf-bbox/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/utils/ImmutableUtils.js");function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a()({},t,(v(e={},n.fieldName,n.fieldValue),v(e,"type",n.fieldType),e),{fieldOptions:a()({},b({},t.fieldOptions),{currentPage:void 0===n.fieldOptions.currentPage?1:n.fieldOptions.currentPage})});return"attribute"===n.fieldName&&(r.value="string"===n.fieldType?"":null,r.operator="="),"operator"===n.fieldName&&(r.value=null),r};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:var n={rowId:(new Date).getTime(),groupId:t.groupId,attribute:null,operator:"=",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};return a()({},e,{filterFields:e.filterFields?[].concat(m(e.filterFields),[n]):[n]});case r.r:return a()({},e,{filterFields:e.filterFields.filter((function(e){return e.rowId!==t.rowId}))});case r.H:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?x(e,t):e}))});case r.I:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.filterField.rowId?a()({},e,{options:a()({},b({},e.options),v({},e.attribute,t.options))},{fieldOptions:a()({},b({},e.fieldOptions),{valuesCount:t.valuesCount})}):e}))});case r.E:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?a()({},e,{openAutocompleteMenu:t.status}):e}))});case r.z:return a()({},e,{autocompleteEnabled:t.status});case r.l:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.filterField.rowId?a()({},e,{loading:t.status}):e}))});case r.G:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?a()({},e,{exception:t.exceptionMessage}):e}))});case r.c:var i={id:(new Date).getTime(),logic:"OR",groupId:t.groupId,index:t.index+1};return a()({},e,{groupFields:e.groupFields?[].concat(m(e.groupFields),[i]):[i]});case r.K:return a()({},e,{groupFields:e.groupFields.map((function(e){return e.id===t.groupId?a()({},e,{logic:t.logic}):e}))});case r.s:return a()({},e,{filterFields:e.filterFields.filter((function(e){return e.groupId!==t.groupId})),groupFields:e.groupFields.filter((function(e){return e.id!==t.groupId}))});case r.e:return a()({},e,{filterFields:e.filterFields.map((function(e){for(var n=0;n0?a()({},e,{values:t.data.features,open:!0,error:null}):e}))})});case r.O:return a()({},e,{spatialField:a()({},e.spatialField,{zoneFields:e.spatialField.zoneFields.map((function(e){return e.id===t.id?a()({},e,{busy:t.active}):e}))})});case r.M:var _,O,S=e.spatialField.zoneFields.map((function(e){if(e.id===t.id){if(_=e.multivalue?t.value.value:t.value.value[0],t.value.feature[0]){var n=t.value.feature[0],r=n.geometry_name;if(e.multivalue&&t.value.feature.length>1){for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s()({},e,l({},t.property,t.value));case i.d:var n=t.config.map.text_search_config||t.config.map.text_serch_config;return s()({},e,{textSearchConfig:n});case o.a:case r.a:return s()({},e,{service:void 0,page:t.page,init_service_values:void 0,editIdx:void 0});case r.c:var a=(e.textSearchConfig&&e.textSearchConfig.services||[]).slice(),u=s()({},t.service,{priority:parseInt(t.service.priority,10)});return-1!==t.idx?a[t.idx]=u:a.push(u),s()({},e,{service:void 0,page:0,init_service_values:void 0,editIdx:void 0,textSearchConfig:{services:a,override:e.textSearchConfig&&e.textSearchConfig.override||!1}});default:return e}}},"./MapStore2/web/client/reducers/styleeditor.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/styleeditor.js"),o=n("./MapStore2/node_modules/lodash/isString.js"),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.f:return s(s({},e),{},{service:t.service,canEdit:t.canEdit});case r.l:return s(s({},e),{},{canEdit:t.canEdit});case r.q:return s(s({},e),{},{temporaryId:t.temporaryId,templateId:t.templateId,code:t.code,format:t.format,error:null,languageVersion:t.languageVersion,initialCode:t.init?t.code:e.initialCode});case r.o:return""===t.status?s(s({},e),{},{status:t.status,code:"",templateId:"",initialCode:"",addStyle:!1,error:{}}):s(s({},e),{},{status:t.status});case r.i:return{service:e.service&&s({},e.service)||{},canEdit:e.canEdit};case r.a:return s(s({},e),{},{addStyle:t.add});case r.h:return s(s({},e),{},{loading:!t.status||t.status,error:{}});case r.g:return s(s({},e),{},{loading:!1,enabled:!0});case r.e:var n,o,a,u=(null==t||null===(n=t.error)||void 0===n?void 0:n.statusText)||(null==t||null===(o=t.error)||void 0===o?void 0:o.message)||"",c=i()(null==t||null===(a=t.error)||void 0===a?void 0:a.messageId)&&{messageId:t.error.messageId},d=u.match(/line\s([\d]+)|column\s([\d]+)|lineNumber:\s([\d]+)|columnNumber:\s([\d]+)/g),p=d&&2===d.length&&d.reduce((function(e,t){var n=t.split(" "),r=n[0].replace(/Number:/g,""),o=parseFloat(n[1]);return r&&!isNaN(o)&&s(s({},e),{},l({},r,o))||s({},e)}),s({message:u},c))||s({message:u},c);return s(s({},e),{},{loading:!1,canEdit:!(t.error&&(401===t.error.status||403===t.error.status)),error:s(s({},e.error),{},l({},t.status||"global",s({status:t.error&&t.error.status||404},p)))});case r.n:return s(s({},e),{},{metadata:s(s({},e.metadata),t.metadata)});default:return e}}},"./MapStore2/web/client/reducers/timeline.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./MapStore2/web/client/actions/timeline.js"),a=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./MapStore2/node_modules/lodash/lodash.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:{autoSelect:!0,collapsed:!1}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.h:return Object(a.e)("settings.collapsed",t.collapsed,e);case i.i:return Object(a.e)("settings.mapSync",t.mapSync,e);case i.d:return Object(a.e)("range",{start:t.start,end:t.end},e);case i.e:return Object(a.e)("rangeData[".concat(t.layerId,"]"),{range:t.range,histogram:t.histogram,domain:t.domain},e);case i.c:return t.layerId?Object(a.e)("loading[".concat(t.layerId,"]"),t.loading,e):Object(a.e)("loading.timeline",t.loading,e);case i.f:return Object(a.e)("selectedLayer",t.layerId,e);case r.s:var n=e;return Object(s.assign)({},e,{rangeData:Object(s.has)(n.rangeData,t.node)?Object(s.pickBy)(n.rangeData,(function(e,n){return n!==t.node})):n.rangeData,loading:Object(s.has)(n.rangeData,t.node)?Object(s.pickBy)(n.loading,(function(e,n){return n!==t.node})):n.loading,selectedLayer:e.selectedLayer===t.node?void 0:e.selectedLayer});case o.a:return Object(s.assign)({},e,{range:void 0,rangeData:void 0,selectedLayer:void 0,loading:void 0,MouseEvent:void 0});default:return e}}},"./MapStore2/web/client/reducers/widgets.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/widgets.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/actions/dashboard.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/fp/set.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./MapStore2/web/client/utils/ImmutableUtils.js");function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:y,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case r.i:return u()("builder.settings.".concat(n.key),n.value,t);case r.j:return u()("builder.editor",n.widget,u()("builder.settings",n.settings||y.settings,t));case r.g:return u()("builder.editor",m(m({},n.widget),{},{widgetType:n.widget&&n.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(n.widget&&n.widget.widgetType||"chart")?1:0,t));case r.h:return u()("builder.editor.".concat(n.key),n.value,t);case r.m:var a=Object(d.c)("containers[".concat(n.target,"].widgets"),m(m({id:n.id},n.widget),{},{dataGrid:n.id&&{y:0,x:0,w:1,h:1}}),{id:n.widget.id||n.id},t);return a;case r.z:var l=Object(c.find)(Object(c.get)(t,"containers[".concat(n.target,"].widgets")),{id:n.id});return Object(d.c)("containers[".concat(n.target,"].widgets"),u()(n.key,"merge"===n.mode?s()({},l[n.key],n.value):n.value,l),{id:n.id},t);case r.y:if(n.layer){var f=Object(c.get)(t,"containers[".concat(r.d,"].widgets"));if(f)return u()("containers[".concat(r.d,"].widgets"),f.map((function(e){return Object(c.get)(e,"layer.id")===n.layer.id?u()("layer",n.layer,e):e})),t)}return t;case r.e:return Object(d.a)("containers[".concat(n.target,"].widgets"),{id:n.widget.id},t);case i.a:var h=n.data;return u()("containers[".concat(r.d,"]"),m({},h),t);case o.d:var g=n.config||{},b=g.widgetsConfig;return u()("containers[".concat(r.d,"]"),m({},b),t);case r.b:return u()("containers[".concat(n.target,"].layout"),n.layout)(u()("containers[".concat(n.target,"].layouts"),n.allLayouts,t));case r.c:case i.b:return u()("containers[".concat(r.d,"]"),y.containers[r.d],t);case r.a:var v=n.key,w=n.value;return u()("dependencies[".concat(v,"]"),w,t);case r.r:var x=n.key;return u()("dependencies[".concat(x,"]"),null,t);case r.n:var _=n.dependencies;return u()("dependencies",_,t);case r.s:return u()("dependencies",y.dependencies,t);case r.t:var O=n.widget,S=void 0===O?{}:O;if(S.dataGrid&&S.dataGrid.static)return t;var j=Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(S.id));if(j){var E=[].concat(p(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[])),p(Object(c.castArray)(Object(c.get)(j,"layout",[])))),C=Object(c.mapValues)(Object(c.get)(t,"containers[".concat(n.target,"].layouts"),{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[].concat(p(e),p(Object(c.castArray)(Object(c.get)(j,"layouts[".concat(t,"]"),[]))))}));return Object(c.omit)(Object(d.d)(u()("containers[".concat(n.target,"].layout"),E),u()("containers[".concat(n.target,"].layouts"),C))(t),"containers[".concat(n.target,"].collapsed[").concat(S.id,"]"))}return u()("containers[".concat(n.target,"].collapsed[").concat(S.id,"]"),{layout:Object(c.find)(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[]),{i:S.id}),layouts:Object(c.mapValues)(Object(c.get)(t,"containers[".concat(n.target,"].layouts"),{}),(function(e){return Object(c.find)(e,{i:S.id})}))},t);case r.w:var T,k,A,P,M,I,D,N,R,L,F,z,B,q,U,G,H,V,W=n.widget,Y=null==t||null===(T=t.containers)||void 0===T||null===(k=T[n.target])||void 0===k?void 0:k.maximized;if(!W||null!==(A=W.dataGrid)&&void 0!==A&&A.static)return t;if(null!=Y&&Y.widget)return Object(d.d)(u()("containers[".concat(n.target,"].layout"),Y.layout),u()("containers[".concat(n.target,"].layouts"),Y.layouts),u()("containers[".concat(n.target,"].maximized"),{}),u()("containers[".concat(n.target,"].widgets"),null==t||null===(G=t.containers)||void 0===G||null===(H=G[n.target])||void 0===H||null===(V=H.widgets)||void 0===V?void 0:V.map((function(e){return e.id===Y.widget.id?m(m({},e),{},{dataGrid:m(m({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(P=t.containers)&&void 0!==P&&null!==(M=P[n.target])&&void 0!==M&&null!==(I=M.collapsed)&&void 0!==I&&I[W.id])return t;var K={x:0,y:0,w:1,h:1},X=Object(c.find)(null==t||null===(D=t.containers)||void 0===D||null===(N=D[n.target])||void 0===N?void 0:N.layout,{i:W.id}),Z=m(m({},X),K);return Object(d.d)(u()("containers[".concat(n.target,"].maximized"),{widget:W,layout:null==t||null===(R=t.containers)||void 0===R||null===(L=R[n.target])||void 0===L?void 0:L.layout,layouts:null==t||null===(F=t.containers)||void 0===F||null===(z=F[n.target])||void 0===z?void 0:z.layouts}),u()("containers[".concat(n.target,"].layout"),[Z]),u()("containers[".concat(n.target,"].layouts"),{xxs:[Z]}),u()("containers[".concat(n.target,"].widgets"),null==t||null===(B=t.containers)||void 0===B||null===(q=B[n.target])||void 0===q||null===(U=q.widgets)||void 0===U?void 0:U.map((function(e){return e.id===W.id?m(m({},e),{},{dataGrid:m(m({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case r.u:var Q=Object(c.get)(t,"containers[".concat(n.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),$=Q.filter((function(e){return Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),J=Q.filter((function(e){return!Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),ee=0===J.length;return ee?$.reduce((function(t,n){return e(t,Object(r.R)(n))}),t):J.length>0?J.reduce((function(t,n){return e(t,Object(r.R)(n))}),t):t;case r.x:return u()("tray",n.value,t);default:return t}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),i=n("./MapStore2/web/client/selectors/maptype.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=function(e){return e.backgroundSelector&&e.backgroundSelector.source},l=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},u=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},c=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},d=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},p=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},f=Object(r.a)(o.p,i.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(a.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return u})),n.d(t,"w",(function(){return c})),n.d(t,"x",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"u",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"t",(function(){return v})),n.d(t,"r",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return O})),n.d(t,"s",(function(){return S})),n.d(t,"i",(function(){return j})),n.d(t,"f",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return k})),n.d(t,"l",(function(){return A})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return M}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/selectors/map.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0},C=function(e){return x(e)&&x(e).length>0},T=function(e){return e&&e.featuregrid&&e.featuregrid.filters},k=function(e){return g(e,y(e))},A=function(e){return e&&e.featuregrid&&e.featuregrid.open},P=function(e,t){return Object(r.get)(T(e),t)},M=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.title||e.name}(g(e,y(e)));return Object(r.isObject)(t)?t[Object(a.b)(e)]||t.default||"":t},I=function(e){return(Object(p.a)(e)||[]).map((function(t){var n=function(e,t){return Object(r.get)(e,"featuregrid.attributes[".concat(t.name||t.attribute,"]"))}(e,t);return n?h(h({},t),n):t}))},D=function(e){return e&&e.featuregrid&&e.featuregrid.mode},N=function(e){return(v(e)||[]).length},R=function(e){return Object(l.p)(w(e))},L=function(e){return function(e){var t=_(e);if(t){var n=Object(l.p)(w(e));return!(!n[t.id]||null===n[t.id].geometry)||(!n[t.id]||null!==n[t.id].geometry)&&((!t._new||!Object(r.head)(x(e))||null!==Object(r.head)(x(e)).geometry)&&(!(!t._new||!Object(r.head)(x(e))||null===Object(r.head)(x(e)).geometry)||null!==t.geometry))}return!1}(e)},F=function(e){return Object(r.get)(e,"featuregrid.showAgain",!1)},z=function(e){if(Object(r.get)(e,"featuregrid.showTimeSync",!1)){var t=y(e);return Object(u.d)({id:t},"time")(e)}return null},B=function(e){return Object(r.get)(e,"featuregrid.timeSync",!1)},q=function(e){return Object(r.get)(e,"featuregrid.showPopoverSync",!0)},U=function(e){return e&&e.featuregrid&&e.featuregrid.saving},G=function(e){return e&&e.featuregrid&&e.featuregrid.saved},H=function(e){return e&&e.featuregrid&&e.featuregrid.drawing},V=function(e){return Object(r.get)(e,"featuregrid.multiselect",!1)},W=function(e){return Object(s.isSimpleGeomType)(O(e))},Y=function(e){return e.featuregrid&&e.featuregrid.dockSize},K=function(e){var t=g(e,y(e));return t&&t.name||""},X=function(e){var t=function(e){return Object(r.get)(g(e,y(e)),"params")}(e);return{viewParams:t&&(t.VIEWPARAMS||t.viewParams||t.viewparams),cqlFilter:t&&(t.CQL_FILTER||t.cqlFilter||t.cql_filter)}},Z=function(e){var t=Object(c.d)(e),n=function(e){return Object(r.get)(e,"featuregrid.editingAllowedRoles",["ADMIN"])}(e)||["ADMIN"],o=function(e){return e&&e.featuregrid&&e.featuregrid.canEdit}(e);return(-1!==n.indexOf(t)||o)&&!Object(d.a)(e)},Q=function(e){return Object(r.get)(e,"featuregrid.pagination")}},"./MapStore2/web/client/selectors/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return w})),n.d(t,"m",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"v",(function(){return S})),n.d(t,"u",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"q",(function(){return k})),n.d(t,"y",(function(){return A})),n.d(t,"c",(function(){return P})),n.d(t,"k",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"f",(function(){return D})),n.d(t,"w",(function(){return N})),n.d(t,"l",(function(){return R})),n.d(t,"n",(function(){return L})),n.d(t,"z",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"h",(function(){return B}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),i=n("./MapStore2/web/client/selectors/security.js"),a=n("./MapStore2/web/client/selectors/router.js");function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},x=function(e){return Object(r.get)(e,"geostory.isSettingsEnabled",!1)},_=function(e){var t=Object(r.get)(h(e),"settings",{}),n=v(e).filter((function(e){return e.type===o.h.IMMERSIVE})),i=t.checked||[],a=Object(r.uniq)(i.map((function(e){return Object(o.o)(n,e)})).filter((function(e){return e})));return c(c({},t),{},{expanded:a})},O=function(e){return Object(r.get)(_(e),"checked",[]).reduce((function(e,t){return c(c({},e),{},d({},t,!0))}),{})},S=function(e){return!Object(r.isEqual)(Object(r.get)(h(e),"settings",{}),function(e){return Object(r.get)(e,"geostory.oldSettings",{})}(e))},j=function(e){return Object(r.get)(e,"geostory.selectedCard","")},E=function(e){return function(t){return p("".concat(e,".resourceId"))(t)}},C=function(e){return Object(r.get)(h(e),"resources",[])},T=function(e){return function(t){return Object(r.find)(C(t),{id:e})}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withImmersiveSection,n=void 0!==t&&t,r=e.includeAlways,i=void 0===r||r;return function(e){var t=v(e),r=O(e);return t.reduce((function(e,t){if(t.type===o.h.TITLE&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.PARAGRAPH&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.BANNER&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.IMMERSIVE){var a=t.contents&&t.contents.reduce((function(e,t){return i||r[t.id]?[].concat(s(e),[c(c({},t),{},{sectionId:e.id})]):e}),[])||[];return n?[].concat(s(e),[t],s(a)):[].concat(s(e),s(a))}return e}),[])}},A=function(e){return k({includeAlways:!0})(e).length},P=function(e){return Object(r.findIndex)(k({includeAlways:!0})(e),{id:m(e).columns&&m(e).columns[m(e).sectionId]?m(e).columns[m(e).sectionId]:m(e).sectionId||""})},M=function(e){return void 0!==Object(r.get)(e,"geostory.focusedContent.target")},I=function(e){return Object(r.get)(e,"geostory.focusedContent")},D=function(e){return p(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},N=function(e){return v(e).reduce((function(e,t){if(t.type===o.h.IMMERSIVE){var n=t.contents&&t.contents.map((function(e){return{label:e.title||"",value:e.id}}))||[];return[].concat(s(e),[{label:t.title||"",value:t.id,children:n}])}return[].concat(s(e),[{label:t.title||"",value:t.id}])}),[])},R=function(e,t){return!!Object(r.find)(v(e),(function(e){return function e(t,n){var o=n.contents,i=n.background;return n.resourceId===t||(!(!i||i.resourceId!==t)||!!o&&!!Object(r.find)(o,(function(n){return e(t,n)})))}(t,e)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(e).includes("geostory/shared")},F=function(e){return Object(r.get)(e,"geostory.updateUrlOnScroll",!1)},z=function(e){return Object(r.get)(e,"geostory.currentStory.settings.theme.fontFamilies",[])},B=function(e){return Object(r.get)(e,"geostory.mediaEditorSettings")}},"./MapStore2/web/client/selectors/localizedLayerStyles.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/locale.js"),a=function(e){return Object(r.has)(e,"localConfig.localizedLayerStyles")},s=function(e){var t=Object(r.get)(e,"localConfig.plugins.dashboard",[]),n=Object(r.find)(t,(function(e){return"DashboardEditor"===e.name}))||{};return Object(r.get)(n,"cfg.catalog.localizedLayerStyles",!1)},l=function(e){return Object(r.get)(e,"localConfig.localizedLayerStyles.name","mapstore_language")},u=Object(o.a)(a,l,i.a,(function(e,t,n){var r=[];return e&&r.push({name:t,value:n}),r}))},"./MapStore2/web/client/selectors/maplayout.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/map.js"),i=n("./MapStore2/web/client/utils/MapUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=u(e);return n&&Object.keys(n).filter((function(e){return t[e]})).reduce((function(e,t){return s(s({},e),{},l({},t,n[t]))}),{})||{}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=u(e),o=!!Object(r.head)(t.filter((function(e){return n[e.key]})).map((function(e){return"not"===e.type?n[e.key]!==e.value&&n[e.key]:n[e.key]===e.value})));return o},f=function(e){return p(e,[{key:"right",value:658}])},h=function(e){return p(e,[{key:"bottom",value:30,type:"not"}])},m=function(e){var t=Object(o.k)(e),n=c(e);return n&&t&&t.size&&{left:Object(i.parseLayoutValue)(n.left,t.size.width),bottom:Object(i.parseLayoutValue)(n.bottom,t.size.height),right:Object(i.parseLayoutValue)(n.right,t.size.width),top:Object(i.parseLayoutValue)(n.top,t.size.height)}}},"./MapStore2/web/client/selectors/measurement.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/web/client/selectors/maptype.js"),o=n("./MapStore2/web/client/selectors/controls.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/web/client/utils/MeasureUtils.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return{hasNext:e[t+1],hasPrevious:e[t-1]}}))},"./MapStore2/web/client/selectors/query.js":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"n",(function(){return c})),n.d(t,"o",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"g",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t-1)||t&&t.collectGeometries&&t.operation)}},"./MapStore2/web/client/selectors/queryform.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"d",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/locale.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=function(e){return Object(r.get)(e,"queryform.crossLayerFilter")},f=function(e){return(Object(i.p)(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group;return"wms"===t&&"background"!==n})).map((function(t){var n=t.title;return u(u({},d(t,["title"])),{},{title:Object(s.e)(Object(a.b)(e),n)})}))},h=function(e){return Object(r.get)(e,"queryform.spatialField.geometry")},m=function(e){return Object(r.get)(e,"queryform.spatialField")},g=Object(o.a)((function(e){return Object(r.get)(e,"queryform.attributePanelExpanded")}),(function(e){return Object(r.get)(e,"queryform.spatialPanelExpanded")}),(function(e){return Object(r.get)(e,"queryform.crossLayerExpanded")}),(function(e,t,n){return{attributePanelExpanded:e,spatialPanelExpanded:t,crossLayerExpanded:n}})),y=function(e){return Object(r.get)(e,"layerFilter.persisted")},b=function(e){return Object(r.get)(e,"layerFilter.applied")},v=function(e){return Object(r.get)(e,"queryform.spatialField.method")},w=function(e){return Object(r.get)(e,"queryform.maxFeaturesWPS")},x=function(e){return h(e)&&h(e).type||"Polygon"},_=function(e){return h(e)&&h(e).projection||"EPSG =4326"},O=function(e){return h(e)&&h(e).coordinates||[]}},"./MapStore2/web/client/selectors/router.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return Object(r.get)(e,"router.location.pathname")||"/"},i=function(e){return Object(r.get)(e,"router.location.search")||""}},"./MapStore2/web/client/selectors/styleeditor.js":function(e,t,n){"use strict";n.d(t,"u",(function(){return u})),n.d(t,"t",(function(){return c})),n.d(t,"r",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"n",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"j",(function(){return _})),n.d(t,"h",(function(){return O})),n.d(t,"m",(function(){return S})),n.d(t,"q",(function(){return j})),n.d(t,"o",(function(){return E})),n.d(t,"i",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"p",(function(){return k}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/layers.js"),i=n("./MapStore2/web/client/utils/StyleEditorUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:i,type:"range",content:"".concat(l," items")}]:Object(s.l)({start:u,end:c,duration:i}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return _(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=m(n,3),o=r[0],i=r[1],a=r[2],l=Math.max.apply(Math,h(e.histogram.values)),u=Object(s.k)({start:o,end:i,duration:a});return e.histogram.values.map((function(e,t){return p(p({},u[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(s.i)(e.domain)?_(e.values||e.domain.split(","),t):n&&n.histogram?O(n,t):[]},j=Object(i.a)(l.i,b,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(Object.keys(e).map((function(r){return S(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(p({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(h(e),h(t))}),[]))})),E=function(e){return Object(r.get)(e,"timeline.loading")},C=function(e){return Object(r.get)(e,"timeline.selectedLayer")},T=function(e){return Object(c.g)(e,C(e))},k=function(e){return T(e)&&T(e).name},A=function(e){return T(e)&&T(e).dimensions&&Object(r.head)(T(e).dimensions.filter((function(e){return"time"===e.name})))},P=function(e){return Object(r.get)(A(e),"source.url")},M=Object(o.a)(l.a,l.h,(function(e,t){return{start:e,end:t}})),I=function(e){return Object(l.c)(e,C(e))},D=l.f,N=Object(o.a)(D,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),R=function(e){return!v(e)&&N(e)},L=function(e){return function(t){var n=(Object(u.k)(t)||{}).bbox;if(!n)return{};var o=Object(l.b)(e,"time")(t),i=Object(r.get)(o,"source.version"),s=Object.keys(n.bounds).reduce((function(e,t){return p(p({},e),{},f({},t,parseFloat(n.bounds[t])))}),{});if(!s||!x(t))return{};if("1.1"!==i){var c=Object(l.b)(e,"space")(t),d=Object(r.get)(c,"domain.CRS");if(!d||!s||!x(t))return{};var h=m(Object(a.reprojectBbox)(s,Object(u.n)(t),d),4),g=h[0],y=h[1],b=h[2],v=h[3];return b0;)if(!n[s=i.shift()])for(n[s]=!0,a.push(s),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},i=Object.keys(o).map((function(t){return m(o[t],e)}))||[];return[].concat(d(t),d(i.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),b=n("./node_modules/reselect/es/index.js"),v=n("./MapStore2/web/client/utils/ReselectUtils.js");function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),T=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].widgets"))},k=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].collapsed"))},A=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].maximized"))},P=Object(b.a)(T,k,A,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),M=Object(b.a)(k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),I=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},D=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},N=Object(b.a)(I,D,o.k,a.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),R=Object(b.a)(I,D,o.k,a.a,E,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=i&&"map"!==i.widgetType?i&&i.layer||{}:i&&i.map&&i.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(a)||a.name===e.layer.name})).filter((function(e){return i&&i.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),L=function(e){return Object(r.get)(O(e),"".concat(s.f))},F=function(e){return Object(r.get)(L(e),"active")},z=(Object(b.a)(T,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=u(g(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(c.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layouts"))}),B=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layout"))},q=function(e){return Object(r.get)(e,"widgets.tray")},U=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},G=function(e){return Object(r.get)(E(e),"filter")},H=Object(v.a)(S,j,(function(e){return j(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.k)(e),t.slice(4)):t.match(s.A)?function(e,t){var n=s.A.exec(e),o=n&&n[2],i=m(e,t);return o?Object(r.get)(i,o):i}(t,T(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return x(x({},t),{},_({},Object.keys(e)[o],n[o]))}),{})}));Object(b.c)({widgets:T,layouts:z})},"./MapStore2/web/client/utils/AnnotationsUtils.js":function(e,t,n){"use strict";var r=n("./node_modules/uuid/v1.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/LocaleUtils.js"),a=n("./MapStore2/web/client/utils/MarkerUtils.js"),s=n("./MapStore2/web/client/utils/VectorStyleUtils.js"),l=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/node_modules/lodash/lodash.js"),c=n("./node_modules/uuid/index.js"),d=n.n(c),p=n("./node_modules/@turf/meta/main.es.js");var f=function(e){var t=[1/0,1/0,-1/0,-1/0];return Object(p.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return-1!==e.indexOf("rgba")?"rgb".concat(e.slice(e.indexOf("("),e.lastIndexOf(",")),")"):e},M=function(e){return("start"===e?"lm":"end"===e&&"rm")||"cm"},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.features,o=void 0===r?[]:r;return"FeatureCollection"===n?o.reduce((function(e,t){return e[t.geometry.type]=k[t.geometry.type],e}),{type:"FeatureCollection"}):x({},k[n])},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x({title:"annotations.defaulttitle"!==Object(i.f)(t,"annotations.defaulttitle")?Object(i.f)(t,"annotations.defaulttitle"):"Default title",id:o()()},e)},N=function(e){return Object(u.isString)(e)&&e||Object(u.isArray)(e)&&e.join(" ")},R=function(e){return e.color&&e.opacity&&e.weight},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t&&t[e]?t[e]:t,o=r,i=o.dashArray?N(o.dashArray):"solid";switch(e){case"MultiPolygon":case"Polygon":case"Circle":return{strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,fillColor:P(o.fillColor),fillOpacity:o.fillOpacity,strokeDashstyle:i};case"LineString":case"MultiLineString":return{strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i};case"Text":var l=R(o)?{labelOutlineColor:P(o.color),labelOutlineOpacity:o.opacity,labelOutlineWidth:o.weight}:{};return x({fontStyle:o.fontStyle,fontSize:o.fontSize,fontFamily:o.fontFamily,fontWeight:o.fontWeight,labelAlign:M(o.textAlign),fontColor:P(o.fillColor),fontOpacity:o.fillOpacity,label:n,stroke:!0,strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i},l);case"Point":case"MultiPoint":var c=o.symbolUrl&&Object(s.fetchStyle)(Object(s.hashAndStringify)(o),"base64")||a.a.extraMarkers.markerToDataUrl(o),d=-18,p=-46;return o.iconAnchor&&Object(u.isArray)(o.iconAnchor)&&o.size&&(d="pixels"===o.anchorXUnits?-1*o.iconAnchor[0]:-1*o.size*o.iconAnchor[0],p="pixels"===o.anchorYUnits?-1*o.iconAnchor[1]:-1*o.size*o.iconAnchor[1]),c?{graphicWidth:o.size||36,graphicHeight:o.size||46,externalGraphic:c,graphicXOffset:d,graphicYOffset:p,display:!1===o.filtering&&"none"}:{fillColor:"#0000AE",fillOpacity:.5,strokeColor:"#0000FF",pointRadius:10,strokeOpacity:1,strokeWidth:1,display:!1===o.filtering&&"none"};default:return{fillColor:"#FF0000",fillOpacity:0,strokeColor:"#FF0000",pointRadius:5,strokeOpacity:1,strokeDashstyle:i,strokeWidth:1}}},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"FeatureCollection"===t.type?e.concat(t.features.map((function(e){return Object(u.castArray)(e.style||t.style||{}).filter((function(e){return!!Object(u.isNil)(e.filtering)||e.filtering})).map((function(t){return O.fromAnnotationToGeoJson(x(x({},e),{},{style:t}))}))})).reduce((function(e,t){return e.concat(t)}),[])):t.geometry&&"GeometryCollection"===t.geometry.type?e.concat(O.flattenGeometryCollection(t)):e.concat({type:"Feature",geometry:t.geometry,properties:x(x({},t.properties),{},{ms_style:L(t.geometry.type,t.style)})})}),[])},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lat,n=e.lon;return!isNaN(parseFloat(t))&&!isNaN(parseFloat(n))},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.lon,e.lat]},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[[]]],t=e[0].filter(O.validateCoordsArray);return t.length>3&&Object(u.head)(t)[0]===Object(u.last)(t)[0]&&Object(u.head)(t)[1]===Object(u.last)(t)[1]};O={ANNOTATION_TYPE:"ms2-annotations",convertGeoJSONToInternalModel:function(e){var t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];switch(n){case"Point":case"MultiPoint":return{type:1===s.length?"Text":n};case"Polygon":return{type:1===l.length?"Circle":n};case"GeometryCollection":var u=o.filter((function(e){return"Point"===e.type||"MultiPoint"===e.type})),c=o.filter((function(e){return"Polygon"===e.type})),d=0,p=0;return{type:"GeometryCollection",geometries:o.map((function(e){if("Point"===e.type||"MultiPoint"===e.type){if(u.length===s.length)return{type:"Text"};if(0===s.length)return{type:e.type};if(0===d)return d++,{type:"Text"}}if("Polygon"===e.type){if(c.length===l.length)return{type:"Circle"};if(0===l.length)return{type:e.type};if(0===p)return p++,{type:"Circle"}}return{type:e.type}}))};case"FeatureCollection":var f=a.map((function(e){return e.properties&&e.properties.isCircle?{type:"Circle"}:e.properties&&e.properties.isText?{type:"Text"}:{type:e.geometry.type}}));return{type:"FeatureCollection",features:f};default:return{type:n}}},getAvailableStyler:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i;switch(n){case"Point":case"MultiPoint":case"Symbol":return[O.getRelativeStyler(n)];case"LineString":case"MultiLineString":return[O.getRelativeStyler(n)];case"Polygon":case"MultiPolygon":case"Text":case"Circle":return[O.getRelativeStyler(n)];case"GeometryCollection":return o.reduce((function(e,t){return-1!==e.indexOf(O.getRelativeStyler(t.type))?e:e.concat(O.getAvailableStyler(t))}),[]);case"FeatureCollection":return a.reduce((function(e,t){return-1!==e.indexOf(O.getRelativeStyler(t.type))?e:e.concat(O.getAvailableStyler(t))}),[]);default:return[]}},getRelativeStyler:function(e){switch(e){case"Point":case"MultiPoint":return"marker";case"Symbol":return"symbol";case"Circle":return"circle";case"LineString":case"MultiLineString":return"lineString";case"Polygon":case"MultiPolygon":return"polygon";case"Text":return"text";default:return""}},createFont:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fontSize,n=void 0===t?"14":t,r=e.fontSizeUom,o=void 0===r?"px":r,i=e.fontFamily,a=void 0===i?"Arial":i,s=e.fontStyle,l=void 0===s?"normal":s,u=e.fontWeight,c=void 0===u?"normal":u;return"".concat(l," ").concat(c," ").concat(n).concat(o," ").concat(a)},DEFAULT_ANNOTATIONS_STYLES:k,STYLE_CIRCLE:S,STYLE_POINT_MARKER:j,STYLE_POINT_SYMBOL:{iconAnchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",color:"#000000",fillColor:"#000000",opacity:1,size:64,fillOpacity:1},STYLE_TEXT:E,STYLE_LINE:C,STYLE_POLYGON:T,getGeometryType:function(e){var t,n,r;return null!=e&&null!==(t=e.properties)&&void 0!==t&&t.isCircle?"Circle":null!=e&&null!==(n=e.properties)&&void 0!==n&&n.isText?"Text":null==e||null===(r=e.geometry)||void 0===r?void 0:r.type},getGeometryGlyphInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point",t={Point:{glyph:"point",label:"Point"},MultiPoint:{glyph:"point",label:"Point"},LineString:{glyph:"polyline",label:"Line"},MultiLineString:{glyph:"polyline",label:"Line"},Polygon:{glyph:"polygon",label:"Polygon"},MultiPolygon:{glyph:"polygon",label:"Polygon"},Text:{glyph:"font",label:"Text"},Circle:{glyph:"1-circle",label:"Circle"}};return t[e]},normalizeAnnotation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="FeatureCollection"===e.type?x({},e):{type:"Feature",geometry:e},r=I(n),o=D(n.properties,t);return x({style:r,properties:o},n)},removeDuplicate:function(e){return Object(u.values)(e.reduce((function(e,t){return x(x({},e),{},_({},t.properties.id,t))}),{}))},circlesToMultiPolygon:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.circles,a=void 0===i?[]:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,l=a.reduce((function(e,t){return e.concat([r[t].coordinates])}),[]);return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:l},properties:{id:o()(),ms_style:L("Circle",s)}}},fromCircleToPolygon:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return{type:"Feature",geometry:t.polygonGeom||e,properties:{id:t.id||o()(),ms_style:L("Circle",n)}}},fromTextToPoint:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return{type:"Feature",geometry:e,properties:{id:t.id||o()(),ms_style:L("Text",n,t.valueText)}}},fromLineStringToGeodesicLineString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return{type:"Feature",geometry:e.geometryGeodesic,properties:{id:e.id||o()(),ms_style:L(e.geometryGeodesic.type,t)}}},textToPoint:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.textGeometriesIndexes,a=void 0===i?[]:i,s=t.textValues,l=void 0===s?[]:s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return a.map((function(e,t){return{type:"Feature",geometry:r[e],properties:{id:o()(),ms_style:L("Text",u,l[t])}}}))},flattenGeometryCollection:function(e){var t=e.geometry,n=e.properties,r=e.style,i=n.circles&&O.circlesToMultiPolygon(t,n,r.Circle)||[],a=n.textGeometriesIndexes&&O.textToPoint(t,n,r.Text)||[],s=(n.circles||[]).concat(n.textGeometriesIndexes||[]);return t.geometries.filter((function(e,t){return-1===s.indexOf(t)})).map((function(e){return{type:"Feature",geometry:e,properties:{id:o()(),ms_style:L(e.type,r[e.type])}}})).concat(i,a)},createGeometryFromGeomFunction:function(e){var t=s.geometryFunctions[e.style.geometry]&&s.geometryFunctions[e.style.geometry].type||e.geometry.type,n=e.geometry.coordinates||[];switch(e.style.geometry){case"startPoint":n=Object(u.head)(n);break;case"endPoint":n=Object(u.last)(n);break;case"centerPoint":n=m(e).geometry.coordinates}return{type:t,coordinates:n}},fromAnnotationToGeoJson:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geometry,n=e.properties,r=void 0===n?{}:n,i=e.style,a=void 0===i?{}:i,s=a.geometry?O.createGeometryFromGeomFunction({geometry:t,properties:r,style:a,type:"Feature"}):t;return r.isCircle&&"Polygon"===s.type?O.fromCircleToPolygon(s,r,a):r.isText?O.fromTextToPoint(s,r,a):"LineString"===s.type&&r.useGeodesicLines&&a.filtering?O.fromLineStringToGeodesicLineString(r,a):{type:"Feature",geometry:s,properties:{id:r.id||o()(),ms_style:L(s.type,a)}}},annotationsToPrint:F,formatCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]];return e.map((function(e){return{lat:e&&e[1],lon:e&&e[0]}}))},getBaseCoord:function(e){switch(e){case"Polygon":case"LineString":case"MultiPoint":return[];default:return[[{lat:"",lon:""}]]}},getComponents:function(e){var t=e.type,n=e.coordinates;switch(t){case"Polygon":return O.isCompletePolygon(n)?O.formatCoordinates(Object(u.slice)(n[0],0,n[0].length-1)):O.formatCoordinates(n[0]);case"LineString":case"MultiPoint":return O.formatCoordinates(n);default:return O.formatCoordinates([n])}},addIds:function(e){return e.map((function(e){return e.properties&&e.properties.id?e:Object(l.e)("properties.id",d.a.v1(),e)}))},COMPONENTS_VALIDATION:{Point:{min:1,add:!1,remove:!1,validation:"validateCoordinates",notValid:"Add a valid coordinate to complete the Point"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 3 valid coordinates to complete the Polygon"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Circle:{add:!1,remove:!1,validation:"validateCircle",notValid:"Add a valid coordinate and a radius (m) to complete the Circle"},Text:{add:!1,remove:!1,validation:"validateText",notValid:"Add a valid coordinate and a Text value"}},validateCoords:z,validateCoordsArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=b(e,2),n=t[0],r=t[1];return!isNaN(parseFloat(r))&&!isNaN(parseFloat(n))},validateCoord:function(e){return!isNaN(parseFloat(e))},coordToArray:B,validateCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.remove,o=void 0!==r&&r,i=e.type;if(n&&n.length){var a=n.filter(O.validateCoords);return o?a.length>O.COMPONENTS_VALIDATION[i].min&&a.length===n.length:a.length>=O.COMPONENTS_VALIDATION[i].min&&a.length===n.length}return!1},validateCircle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{radius:0}:r;if(n&&n.length){var i=Object(u.head)(n);return!isNaN(parseFloat(o.radius))&&O.validateCoords(i)}return!1},validateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{valueText:""}:r;if(n&&n.length){var i=Object(u.head)(n);return o&&!!o.valueText&&O.validateCoords(i)}return!1},validateFeature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[[]]:t,r=e.type,o=e.remove,i=void 0!==o&&o,a=e.properties,s=void 0===a?{}:a;return!Object(u.isNil)(r)&&("Text"===r?O.validateText({components:n,properties:s}):"Circle"===r?O.validateCircle({components:n,properties:s}):O.validateCoordinates({components:n,remove:i,type:r}))},updateAllStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.features&&e.features.length?x(x({},e),{},{features:e.features.map((function(e){return y()({},e,{style:Object(u.castArray)(e.style).map((function(e){return y()({},e,t)}))})}))}):e},getStartEndPointsForLinestring:A,DEFAULT_SHAPE:"triangle",DEFAULT_PATH:"product/assets/symbols/",checkSymbolsError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading_symbols_path";return e.length&&-1!==Object(u.findIndex)(e,(function(e){return e===t}))},isAMissingSymbol:function(e){return e.symbolUrlCustomized===n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")},isCompletePolygon:q,getDashArrayFromStyle:N,isAnnotation:function(e){return"ms2-annotations"===(null==e?void 0:e.type)||"Annotations"===(null==e?void 0:e.name)}}},"./MapStore2/web/client/utils/CatalogUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return C})),n.d(t,"g",(function(){return k})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return P})),n.d(t,"i",(function(){return M})),n.d(t,"j",(function(){return I})),n.d(t,"h",(function(){return D}));var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/url/url.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./MapStore2/web/client/utils/LocaleUtils.js"),p=n("./MapStore2/web/client/utils/WMTSUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js"),h=n("./MapStore2/web/client/api/WMS.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=e;return r&&r.records?r.records.map((function(e){var r,a,l,u=e.dc;if(u&&u.URI){var c=Object(i.isArray)(u.URI)?u.URI:u.URI&&[u.URI]||[],p=Object(i.head)([].filter.call(c,(function(e){return"thumbnail"===e.name})))||Object(i.head)([].filter.call(c,(function(e){var t;return!e.name&&(null===(t=e.protocol)||void 0===t?void 0:t.indexOf("image/"))>-1})));r=p?p.value:null,a=Object(i.head)([].filter.call(c,(function(e){return e.protocol&&(e.protocol.match(/^OGC:WMS-(.*)-http-get-map/g)||e.protocol.match(/^OGC:WMS/g))})))}if(!a&&u&&u.references&&u.references.length){var f=Array.isArray(u.references)?u.references:[u.references];if(a=Object(i.head)([].filter.call(f,(function(e){return e.scheme&&(e.scheme.match(/^OGC:WMS-(.*)-http-get-map/g)||"OGC:WMS"===e.scheme)})))){var h=s.a.parse(a.value,!0),m=h.query&&h.query.layers||u.alternative;a=o()({},a,{name:m})}}if(!a&&u&&u.references&&u.references.length){var v=Array.isArray(u.references)?u.references:[u.references];if(l=Object(i.head)([].filter.call(v,(function(e){return e.scheme&&"WWW:DOWNLOAD-REST_MAP"===e.scheme})))){var w=u.alternative;l=o()({},l,{name:w})}}if(!r&&u&&u.references){var _=x(u);_&&(r=_.value)}var O=[];u&&u.references&&(Array.isArray(u.references)?u.references:[u.references]).filter((function(e){return e.scheme.indexOf("http-get-capabilities")>-1})).forEach((function(e){var n=0===e.value.indexOf("http")?e.value:(t&&t.catalogURL||"")+"/"+e.value;O.push({type:e.scheme,url:n})}));if(a&&a.name){0===a.value.indexOf("http")||o()({},a,{value:(t&&t.catalogURL||"")+"/"+a.value});var S={type:a.protocol||a.scheme,url:a.value,SRS:[],params:{name:a.name}};O.push(S)}if(l&&l.name){var j={type:"arcgis",url:l.value,SRS:[],params:{name:l.name}};O.push(j)}r&&(0===r.indexOf("http")||(r=(b(t&&t.url)||"")+r));var E={boundingBox:e.boundingBox&&e.boundingBox.extent&&Object(i.castArray)(e.boundingBox.extent.join(","))};if(u&&(E=g(g({},E),Object(i.sortBy)(Object.keys(u)).reduce((function(e,t){return g(g({},e),{},y({},t,Object(i.uniq)(Object(i.castArray)(u[t]))))}),{}))),u&&u.URI&&Object(i.castArray)(u.URI)&&Object(i.castArray)(u.URI).length&&(E=g(g({},E),{},{uri:[""]})),u&&u.subject&&Object(i.castArray)(u.subject)&&Object(i.castArray)(u.subject).length&&(E=g(g({},E),{},{subject:["
    "+Object(i.castArray)(u.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),O&&Object(i.castArray)(O).length?E=g(g({},E),{},{references:[""]}):delete E.references,u&&u.temporal){var C=u.temporal.split("; ");if(C.length){var T=C.filter((function(e){return-1!==e.indexOf("scheme=")})).map((function(e){var t=e.indexOf("=");return e.substr(t+1,e.length-1)}));T=T.length?T[0]:"W3C-DTF";var k=C.filter((function(e){return-1!==e.indexOf("start=")||-1!==e.indexOf("end=")})).map((function(e){var t=e.indexOf("="),r=e.substr(0,t),o=e.substr(t+1,e.length-1),a=e.length-t-1<=10;return Object(i.includes)(["start","end"],r)&&"W3C-DTF"===T&&!a?Object(d.f)(n,"catalog.".concat(r))+new Date(o).toLocaleString():Object(i.includes)(["start","end"],r)?Object(d.f)(n,"catalog.".concat(r))+o:""}));E=g(g({},E),{},{temporal:["
    "+k.map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})}}return{boundingBox:e.boundingBox,description:u&&Object(i.isString)(u.abstract)&&u.abstract||"",layerOptions:t&&t.layerOptions||{},identifier:u&&Object(i.isString)(u.identifier)&&u.identifier||"",references:O,thumbnail:r,title:u&&Object(i.isString)(u.title)&&u.title||"",tags:u&&u.tags||"",metadata:E}})):null},wms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&e.records?e.records.map((function(n){return{capabilities:n,credits:n.credits,boundingBox:h.a.getBBox(n),description:n.Abstract||n.Title||n.Name,identifier:n.Name,service:e.service,tags:"",layerOptions:g(g({},(null==t?void 0:t.layerOptions)||{}),(null==e?void 0:e.layerOptions)||{}),title:Object(c.getLayerTitleTranslations)(n)||n.Name,formats:Object(i.castArray)(n.formats||[]),dimensions:(n.Dimension&&Object(i.castArray)(n.Dimension)||[]).map((function(e){return o()({},{values:e._&&e._.split(",")||[]},e.$||{})})).filter((function(e){return e&&"time"!==e.name})),references:[{type:"OGC:WMS",url:t&&t.url,SRS:n.SRS&&(Object(i.isArray)(n.SRS)?n.SRS:[n.SRS])||[],params:{name:n.Name}}]}})):null},wmts:function(e,t){return e&&e.records?e.records.map((function(e){var n=Object(i.castArray)(p.getGetTileURL(e)||t&&t.url);1===n.length&&(n=n[0]);var r=p.getCapabilitiesURL(e),a=Object(i.castArray)(e.TileMatrixSetLink||[]).reduce((function(t,n){var r,a=Object(i.head)((e.TileMatrixSet&&Object(i.castArray)(e.TileMatrixSet)||[]).filter((function(e){return e["ows:Identifier"]===n.TileMatrixSet}))),s=a&&l.default.getEPSGCode(a["ows:SupportedCRS"]),u=n.TileMatrixSetLimits&&(n.TileMatrixSetLimits.TileMatrixLimits||[]).map((function(e){return{identifier:e.TileMatrix,ranges:{cols:{min:e.MinTileCol,max:e.MaxTileCol},rows:{min:e.MinTileRow,max:e.MaxTileRow}}}}))||a.TileMatrix.map((function(e){return{identifier:e["ows:Identifier"]}}));return o()(t,(y(r={},a["ows:Identifier"],u),y(r,s,u),r))}),{}),s=function(e){var t=e["ows:WGS84BoundingBox"];return t||(t={"ows:LowerCorner":"-180.0 -90.0","ows:UpperCorner":"180.0 90.0"}),t}(e);return{title:v(e["ows:Title"]||e["ows:Identifier"]),description:v(e["ows:Abstract"]||e["ows:Title"]||e["ows:Identifier"]),identifier:v(e["ows:Identifier"]),tags:"",layerOptions:t&&t.layerOptions||{},style:e.style,capabilitiesURL:r,queryable:e.queryable,requestEncoding:e.requestEncoding,tileMatrixSet:e.TileMatrixSet,matrixIds:a,format:e.format,TileMatrixSetLink:Object(i.castArray)(e.TileMatrixSetLink),boundingBox:{extent:[s["ows:LowerCorner"].split(" ")[0],s["ows:LowerCorner"].split(" ")[1],s["ows:UpperCorner"].split(" ")[0],s["ows:UpperCorner"].split(" ")[1]],crs:"EPSG:4326"},references:[{type:"OGC:WMTS",url:n,SRS:w(e.SRS||[],a),params:{name:e["ows:Identifier"]}}]}})):null},tms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.records){var n=t.service&&"tms"===t.service.provider;return n?e.records.map((function(e){return{title:e.title,tileMapUrl:e.href,description:"".concat(e.srs).concat(e.format?", "+e.format:""),tmsUrl:t.tmsUrl,references:[{type:"OGC:TMS",version:"1.0.0",url:t.url}]}})):e.records.map((function(e){return{title:e.title||e.provider,url:e.url,attribution:e.attribution,options:e.options,provider:e.provider,type:"tileprovider",references:[]}}))}return null},wfs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.records;return t?t.map((function(e){return g(g({},e),{},{references:[{type:"OGC:WFS-1.1.0-http-get-capabilities",url:e.url},{type:"OGC:WFS-1.1.0-http-get-feature",url:e.url}]})})):null},backgrounds:function(e){return e&&e.records?e.records.map((function(e){return{description:e.title,title:e.title,identifier:e.name,thumbnail:e.thumbURL,references:[],background:e}})):null}},O=function(e){return e.filter((function(e){return l.default.isSRSAllowed(e)})).reduce((function(e,t){return o()(e,y({},t,!0))}),{})},S=function(e,t){var n=e.split("?"),r={};n.length>=2&&n[1]&&n[1].split(/[&;]/g).forEach((function(e){var n=e.split("=");-1===t.indexOf(n[0].toLowerCase())&&(r[n[0]]=n[1])}));return{url:n[0],params:r}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,n=void 0===t?[]:t;return{wfs:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WFS"===e.type||e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-feature")>-1)}))),wms:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WMS"===e.type||e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-map")>-1)}))),wmts:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WMTS"===e.type||e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-map")>-1)}))),tms:Object(i.head)(n.filter((function(e){return e.type&&("OGC:TMS"===e.type||e.type.indexOf("OGC:TMS")>-1)})))}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{references:[]};return{esri:Object(i.head)(e.references.filter((function(e){return e.type&&("ESRI:SERVER"===e.type||"arcgis"===e.type)})))}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,n=void 0===t?[]:t,r=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),o=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),a=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),s=[];return r&&s.push({type:"WMS_GET_CAPABILITIES",url:r.url,labelId:"catalog.wmsGetCapLink"}),a&&s.push({type:"WMTS_GET_CAPABILITIES",url:a.url,labelId:"catalog.wmtsGetCapLink"}),o&&s.push({type:"WFS_GET_CAPABILITIES",url:o.url,labelId:"catalog.wfsGetCapLink"}),s},T=function(e){return e&&!Object(i.isArray)(e)&&-1!==e.indexOf(",")?e.split(",").map((function(e){return e.trim()})):e},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wms",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.removeParams,o=void 0===r?[]:r,a=n.format,s=n.catalogURL,l=n.url,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=arguments.length>4?arguments[4]:void 0;if(!e||!e.references)return null;var p,f,h=j(e),m=h.wms,y=h.wmts,b=m||y,v=function(e){return S(u.default.cleanDuplicatedQuestionMarks(e),["request","layer","layers","service","version"].concat(o))},w=T(b.url);if(w&&Object(i.isArray)(w))p=w.map((function(e){return v(e)})).map((function(e){return e.url})),f=w.map((function(e){return v(e)})).map((function(e){return e.params})).reduce((function(e,t){return g(g({},e),t)}),{});else{var x=v(w||s),_=x.url,E=x.params;p=_,f=E}var k=function(e){return Object(i.isArray)(e)&&1===e.length?e[0]:e},A=k(l||p),P=O(b.SRS);return g(g(g({type:t,requestEncoding:e.requestEncoding,style:e.style,format:a,url:A,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:b.params&&b.params.name,title:e.title||b.params&&b.params.name,matrixIds:"wmts"===t?e.matrixIds||[]:void 0,description:e.description||"",tileMatrixSet:"wmts"===t?e.tileMatrixSet||[]:void 0,credits:!u.default.getConfigProp("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:C(e),params:f,allowedSRS:P,catalogURL:s},c),e.layerOptions),{},{localizedLayerStyles:Object(i.isNil)(d)?void 0:d})},A=function(e,t,n,r){return _[e]&&_[e](t,n,r)||null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.references)return null;var n=E(e),r=n.esri;return g({type:r.type,url:r.url,visibility:!0,dimensions:e.dimensions||[],name:r.params&&r.params.name,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}}},t)},M=function(e,t,n){var r=e.tileMapUrl,o=t.TileMap,a=void 0===o?{}:o,s=n.forceDefaultTileGrid,l=a.Title,u=a.Abstract,c=a.SRS,d=a.BoundingBox,p=void 0===d?{}:d,h=a.Origin,m=a.TileFormat,g=void 0===m?{}:m,b=a.TileSets,v=a.$,w=v.version,x=v.tilemapservice,_=Object(i.get)(p,"$",{}),O=_.minx,S=_.miny,j=_.maxx,E=_.maxy,C=Object(i.get)(h,"$"),T=C.x,k=C.y,A=Object(i.get)(g,"$",{}),P=A.width,M=A.height,I=A["mime-type"],D=A.extension,N=[parseFloat(P),parseFloat(M,10)],R=Object(i.castArray)(Object(i.get)(b,"TileSet",[]).map((function(e){return e.$}))).map((function(e){var t=e.href,n=e.order,r=e["units-per-pixel"];return{href:Object(f.cleanAuthParamsFromURL)(t),order:parseFloat(n),resolution:parseFloat(r)}})),L=Object(i.get)(b,"profile");return{title:l,visibility:!0,hideErrors:!0,name:l,allowedSRS:y({},c,!0),description:u,srs:c,version:w,tileMapService:x?Object(f.cleanAuthParamsFromURL)(x):void 0,type:"tms",profile:L,tileMapUrl:r,forceDefaultTileGrid:s,bbox:p&&{crs:c,bounds:{minx:parseFloat(O),miny:parseFloat(S),maxx:parseFloat(j),maxy:parseFloat(E)}},tileSets:R,origin:{x:parseFloat(T),y:parseFloat(k)},format:I,tileSize:N,extension:D}},I=function(e){return g({type:e.type||"wfs",search:{url:e.url,type:"wfs"},url:e.url,queryable:e.queryable,visibility:!0,name:e.name,title:e.title||e.name,description:e.description||"",bbox:e.boundingBox,links:C(e),style:{weight:1,color:"rgba(0, 0, 255, 1)",opacity:1,fillColor:"rgba(0, 0, 255, 0.1)",fillOpacity:.1,radius:10}},e.layerOptions)},D=function(e){return{type:"tileprovider",visibility:!0,url:e.url,title:e.title,attribution:e.attribution,options:e.options,provider:e.provider,name:e.provider}}},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t,n,o){var i=e;isNaN(parseFloat(e))&&(i=r.hexToHsv(e)[0]);var a=.5/(n-1),s=t/(n-1),l=[];1===n&&(a=.5,s=t/2);for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:"red";return i()(e).toHexString()},u=function(e,t,n){var r=i()(e);return e&&r.setAlpha(Object(a.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,i,a,s,l,u=e/255,c=t/255,d=n/255;switch(o=Math.min(Math.min(u,c),d),a=(i=Math.max(Math.max(u,c),d))-o,i){case o:s=0;break;case u:s=60*(c-d)/a,c0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:l,colorToRgbaStr:u}},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,n){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/ExpressionUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/filtrex/lib/filtrex.js");function o(e,t){return Object(r.compileExpression)(e)(t)}},"./MapStore2/web/client/utils/FeatureGridUtils.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"c",(function(){return S})),n.d(t,"l",(function(){return j})),n.d(t,"g",(function(){return E})),n.d(t,"n",(function(){return C})),n.d(t,"o",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return P})),n.d(t,"m",(function(){return M})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return D}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ogc/WFS/base.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return Object(r.findIndex)(e,(function(e){return e<=n&&n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return t[d(e,n,r)]||l({},p)},h=function(e,t){return t[e]},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.isArray)(e)?e.reduce((function(e,t){return l(l({},e),{},u({},t.id,l(l({},e[t.id]),t.updated)))}),{}):{}},g=function(e,t){var n=Object.keys(t).filter((function(e){return"geometry"!==e})).reduce((function(e,n){return l(l({},e),{},u({},n,t[n]))}),{}),r=Object.keys(t).filter((function(e){return"geometry"===e})).reduce((function(e,n){return l(l({},e),{},u({},n,t[n]))}),{});return l(l(l({},e),r),{},{properties:l(l({},e&&e.properties||{}),n)})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=Object(r.findIndex)(e,t);return o>=0?e.map((function(e,t){return t===o?n:e})):[].concat(i(e),[n])},b=function(e){return(Object(o.getFeatureTypeProperties)(e)||[]).filter((function(e){return!Object(o.isGeometryType)(e)}))},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return t.map((function(t){return n<=t&&t<=r?0:Math.abs(t-e)})).reduce((function(e,t,n,r){return t>r[e]&&n||e}),0)},w=function(e,t){return t.filter((function(t,n){return n!==e}))},x=function(e,t,n){return e.filter((function(e,r){return r=t+n}))},_=function(e,t,n,r){for(var o,i,a=e;a<=t&&void 0===o;a++)-1===d(a*r,n,r)&&(o=a);for(var s=t;s>=e&&void 0===i;s--)-1===d(s*r,n,r)&&(i=s);return[o,i].filter((function(e){return void 0!==e}))},O=function(e,t,n){var r=e.startPage,o=e.endPage,i=_(r,o,t,n),a=i[1]-i[0]+1;return{startIndex:i[0]*n,maxFeatures:a*n}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.editable,o=void 0!==r&&r,i=n.sortable,a=void 0===i||i,s=n.resizable,l=void 0===s||s,u=n.filterable,c=void 0===u||u,d=n.defaultSize,p=void 0===d?200:d,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=f.getEditor,m=void 0===h?function(){}:h,g=f.getFilterRenderer,y=void 0===g?function(){}:g,v=f.getFormatter,w=void 0===v?function(){}:v;return b(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||p||void 0,name:t[e.name]&&t[e.name].label||e.name,resizable:l,editable:o,filterable:c,editor:m(e),formatter:w(e),filterRenderer:y(e,e.name)}}))},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=Object(o.findGeometryProperty)(n);return e.map((function(e){return l(l({},e),{},{events:e.events&&Object.keys(e.events).reduce((function(o,i){return l(l({},o),{},u({},i,(function(o,a){return e.events[i](t(a.rowIdx),a,n,r)})))}),{})},"geometry"===e.key&&a?{filterRenderer:i(l(l({},a),{},{localType:"geometry"}),a.name),filterable:!0,geometryPropName:a.name}:{})}))},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return Object.keys(e).reduce((function(i,a){return l(l({},i),{},u({},a,(function(){for(var i=arguments.length,s=new Array(i),l=0;l0?r._new:!e||e&&!!n[r.id]}},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g(e,t[e.id]||{})},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attribute,n=e.operator,o=e.value,i=e.type,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},a),{},{groupFields:[{id:1,logic:"AND",index:0}],filterFields:"geometry"===i?a.filterFields:Object(r.isNil)(o)?(a.filterFields||[]).filter((function(e){return e.attribute!==t})):y(a.filterFields||[],{attribute:t},{attribute:t,rowId:Date.now(),type:i,groupId:1,operator:n,value:o}),spatialField:"geometry"===i?o:a.spatialField,spatialFieldOperator:Object(r.isArray)(o)?"OR":""})},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startIndex,n=void 0===t?0:t,r=e.maxFeatures,o=void 0===r?1:r,i=e.totalFeatures,a=void 0===i?0:i,s=e.resultSize;return{page:Math.ceil(n/o),resultSize:s,size:o,total:a,maxPages:Math.ceil(a/o)-1}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.endPage,o=t.startPage,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.pages,s=i.features,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.size,c=l.maxStoredPages,d=l.startIndex,p=_(o,n,a,u),f=p[1]-p[0]+1,h=Object(r.get)(e,"features",[]);h.length!==f*u&&(h=h.concat(Object(r.fill)(Array(f*u-h.length>0?f*u-h.length:h.length),!1)));var m=a,g=s,y=m.length+f-Math.max(c,n-o+1);if(y>0)for(var b=o*u,O=n*u,S=b+(O-b)/2,j=0;je.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:"";return Object(s.flatten)([[[/\&/g,"&"]],e?[]:[[/\"/g,"""]],t?[]:[[/\'/g,"'"]],n?[]:[[/\>/g,">"]],r?[]:[[/\1&&void 0!==arguments[1]?arguments[1]:"snapshot.png",n=arguments.length>2?arguments[2]:void 0;p(a()(e),t,n)}},"./MapStore2/web/client/utils/GeoStoryUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return P})),n.d(t,"a",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return N})),n.d(t,"b",(function(){return R})),n.d(t,"x",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"t",(function(){return z})),n.d(t,"v",(function(){return B})),n.d(t,"z",(function(){return q})),n.d(t,"j",(function(){return G})),n.d(t,"k",(function(){return H})),n.d(t,"n",(function(){return W})),n.d(t,"q",(function(){return Y})),n.d(t,"r",(function(){return K})),n.d(t,"s",(function(){return X})),n.d(t,"o",(function(){return Z})),n.d(t,"w",(function(){return Q})),n.d(t,"u",(function(){return $})),n.d(t,"y",(function(){return J})),n.d(t,"l",(function(){return ee})),n.d(t,"m",(function(){return te})),n.d(t,"c",(function(){return ne}));var r=n("./MapStore2/node_modules/lodash/get.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/findIndex.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/toPath.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/isArray.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/values.js"),p=n.n(d),f=n("./MapStore2/node_modules/lodash/filter.js"),h=n.n(f),m=n("./MapStore2/node_modules/lodash/merge.js"),g=n.n(m),y=n("./MapStore2/node_modules/lodash/isString.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isObject.js"),w=n.n(v),x=n("./MapStore2/node_modules/lodash/includes.js"),_=n.n(x),O=n("./MapStore2/node_modules/lodash/replace.js"),S=n.n(O),j=n("./node_modules/uuid/index.js"),E=n.n(j);function C(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return g()({},U,e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g()({},e,t)},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return!t||n.test(e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return h()(e,(function(e){return V(e.data&&(e.data.title||e.data.name),t,n)||V(e.data&&e.data.description,t,n)}))},Y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};switch(t){case P.TITLE:return{id:E()(),type:P.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:E()(),type:M.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case P.BANNER:return{id:E()(),type:P.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:E()(),background:{fit:"cover",size:"full",align:"center"}}]};case P.PARAGRAPH:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:E()(),type:M.COLUMN,size:"full",align:"center",contents:[{id:E()(),type:M.TEXT,html:""}]}]};case P.IMMERSIVE:return{id:E()(),type:P.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(M.COLUMN,n)]};case I.MEDIA:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:E()(),type:M.COLUMN,contents:[{id:E()(),type:M.MEDIA,size:"large",align:"center"}]}]};case I.WEBPAGE:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:E()(),type:M.COLUMN,contents:[{id:E()(),type:M.WEBPAGE,size:"medium",align:"center"}]}]};case M.COLUMN:return{id:E()(),type:M.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:E()(),type:M.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case M.TEXT:return{id:E()(),type:M.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case M.IMAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case M.WEBPAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case M.MEDIA:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},K=function(e,t){return l()(e).reduce((function(e,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),i=o()(t,e),s=a()(i,r);return s>=0?[].concat(C(e),[s]):e}return[].concat(C(e),[n])}),[])},X=function(e,t){return l()(e).reduce((function(e,n){var r=e.path,i=e.flatPath;if(n&&0===n.indexOf("{")){var s=JSON.parse(n),l=o()(t,r),u=a()(l,s);if(u>=0){var c=l[u],d=c.id,p=c.type;return{path:[].concat(C(r),[u]),flatPath:[].concat(C(i),[{id:d,type:r[r.length-1],contentType:p}])}}return{path:r,flatPath:i}}return{path:[].concat(C(r),[n]),flatPath:i}}),{path:[],flatPath:[]})},Z=function(e,t){return e.reduce((function(e,n){return _()(n.contents.map((function(e){return e.id})),t)?n.id:e}),null)},Q=function(e){return e.type===P.PARAGRAPH&&!1!==e.editURL&&e&&c()(e.contents)&&e.contents.length&&c()(e.contents[0].contents)&&e.contents[0].contents.length&&e.contents[0].contents[0].type===M.WEBPAGE&&!1!==e.contents[0].contents[0].editURL},$=function(e,t){if(t)switch(e){case"small":return.4*t;case"medium":return.6*t;case"large":return.8*t;default:return t}return 0},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i="EMPTY";if(!t.includes(n))return null;var a=t.substring(t.indexOf(n)).split("/");return r&&n?a.length>1&&a[2]&&Number(a[0])===n?5===a.length?S()(e,"".concat(a[2],"/column/").concat(a[4]),"".concat(r)):S()(e,"".concat(a[2]),"".concat(r)):(t.includes("shared"),""!==a[1]?"".concat(e,"/section/").concat(r):"".concat(e,"section/").concat(r)):!r&&o&&b()(o)&&o!==i&&a.length>1?t.includes("shared")&&!a[2]?e:5===a.length?S()(e,"".concat(a[4]),"".concat(o)):"".concat(e,"/column/").concat(o):null},ee=function(e,t,n){var r={active:t,inactive:n,custom:{families:[],urls:[]}};return e.filter((function(e){return!!e.src})).forEach((function(e,t){r.custom.families[t]=e.family,r.custom.urls[t]=e.src})),r},te=function(e){return e.map((function(e){return e.family}))},ne=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"]},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/MarkerUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var css_tree__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-tree/lib/index.js"),css_tree__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(css_tree__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/raw-loader/index.js!./MapStore2/web/client/utils/font-awesome.txt"),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png"),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var css={fontawesome:raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default.a},baseImage=new Image,shadowImage=new Image;baseImage.src=_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,shadowImage.src=_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a;var getNodeOfType=function e(t,n){return n(t)?t:t.children?t.children.reduce((function(t,r){return e(r,n)||t}),null):null},glyphs={},loadGlyphs=function loadGlyphs(font){var parsedCss=css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.toPlainObject(css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.parse(css[font]));return parsedCss.children.reduce((function(previous,rule){if(rule.prelude){var classSelector=getNodeOfType(rule.prelude,(function(e){return"ClassSelector"===e.type})),pseudoClassSelector=getNodeOfType(rule.prelude,(function(e){return"PseudoClassSelector"===e.type}));if(classSelector&&classSelector.name&&0===classSelector.name.indexOf("fa-")&&pseudoClassSelector&&"before"===pseudoClassSelector.name){var text=getNodeOfType(getNodeOfType(rule.block,(function(e){return"Declaration"===e.type&&"content"===e.property})).value,(function(e){return"String"===e.type})).value;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(previous,_defineProperty({},classSelector.name.substring(3),eval("'\\u"+text.substring(2,text.length-1)+"'")))}}return previous}),{})},extraMarkers={size:[36,46],colors:["red","orange-dark","orange","yellow","blue-dark","blue","cyan","purple","violet","pink","green-dark","green","green-light","black"],shapes:["circle","square","star","penta"],icons:[_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a],images:[shadowImage,baseImage]},getOffsets=function(e,t){return[-extraMarkers.colors.indexOf(e)*extraMarkers.size[0]-2,-extraMarkers.shapes.indexOf(t)*extraMarkers.size[1]]},MarkerUtils={extraMarkers:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},extraMarkers,{getOffsets:getOffsets,markerToDataUrl:function(e){var t=e.iconColor,n=e.iconShape,r=e.iconGlyph;if(MarkerUtils.extraMarkers.images){var o=document.createElement("canvas"),i=extraMarkers.size;o.width=i[0],o.height=i[1];var a=o.getContext("2d"),s=getOffsets(t,n);a.drawImage(extraMarkers.images[0],4,31,35,16),a.drawImage(extraMarkers.images[1],Math.abs(s[0]),Math.abs(s[1]),i[0],i[1],0,0,i[0],i[1]),a.font="14px FontAwesome",a.fillStyle="rgb(255,255,255)",a.textBaseline="middle",a.textAlign="center",a.fillText(MarkerUtils.getGlyphs("fontawesome")[r]||"",i[0]/2-2,i[1]/2-7);var l=o.toDataURL("image/png");return o=null,l}return null},matches:function(e,t){return e.iconColor===t.color&&e.iconShape===t.shape},getStyle:function(e){return{iconColor:e.color,iconShape:e.shape}},getGrid:function(){return extraMarkers.shapes.map((function(e){return{name:e,markers:extraMarkers.colors.map((function(t){return{name:t,width:extraMarkers.size[0],height:extraMarkers.size[1],offsets:getOffsets(t,e),style:{color:t,shape:e},thumbnailStyle:{backgroundImage:"url("+extraMarkers.icons[0]+")",width:extraMarkers.size[0]+"px",height:extraMarkers.size[1]+"px",backgroundPositionX:getOffsets(t,e)[0],backgroundPositionY:getOffsets(t,e)[1],cursor:"pointer"}}}))}}))}}),getGlyphs:function(e){return glyphs[e]||(glyphs[e]=loadGlyphs(e)),glyphs[e]}};MarkerUtils.markers={extra:MarkerUtils.extraMarkers},__webpack_exports__.a=MarkerUtils},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"degToDms",(function(){return o})),n.d(t,"getFormattedBearingValue",(function(){return i})),n.d(t,"CONVERSION_RATE",(function(){return a})),n.d(t,"convertUom",(function(){return s})),n.d(t,"validateCoord",(function(){return l})),n.d(t,"validateFeatureCoordinates",(function(){return u})),n.d(t,"isValidGeometry",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,i=t.fractionDigits,a=void 0===i?0:i,s="";if(r){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var u=a>0?e.toFixed(a):Math.floor(e);s=l+u+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][n]?e*a[t][n]:e}var l=function(e){return!Object(r.isNaN)(parseFloat(e[0]))&&!Object(r.isNaN)(parseFloat(e[1]))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,o=t;if("LineString"===n){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===n){if((o=Object(r.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(r.head)(o)])]}return o},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type;if(!n||!t||t&&Object(r.isArray)(t)&&0===t.length)return!1;var o=u({coordinates:t,type:n});return(o="Polygon"===n?Object(r.head)(o):o).length>0}},"./MapStore2/web/client/utils/MeasurementUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),s=n("./MapStore2/web/client/utils/MeasureUtils.js"),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.uniq)(e.map((function(e){return"LineString"===e.geometry.type&&"bearing"===Object(r.get)(e,"properties.values[0].type","")?"Bearing":e.geometry.type})))},g={offsetY:1,fontSize:"10",fontSizeUom:"px",fontFamily:"Courier New",font:"10px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},y={offsetY:-15,fontSize:"13",fontSizeUom:"px",fontFamily:"Courier New",font:"13px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},b=function(e,t,n,o,u,d){var f,m,b=(f=e,(m=Object(r.uniq)(f.map((function(e){return Object(r.get)(e,"properties.values[0].type","")})))).length>1?{title:"Multiple Measurement",iconGlyph:"geometry-collection"}:{title:"Measure "+Object(r.startCase)(m[0]),iconGlyph:"1-measure-"+m[0]});return{type:"FeatureCollection",features:[].concat(p(Object(r.flatten)(e.map((function(e){return function(e,t,n){var r,o=n||y;return[{type:"Feature",geometry:{type:e.geometry.type,coordinates:Object(s.validateFeatureCoordinates)(e.geometry),textLabels:e.geometry.textLabels},properties:{id:i()(),isValidFeature:!0,geometryGeodesic:"LineString"===e.geometry.type?{type:"LineString",coordinates:Object(l.transformLineToArcs)(e.geometry.coordinates)}:null,useGeodesicLines:"LineString"===e.geometry.type,values:(null===(r=e.properties)||void 0===r?void 0:r.values)||[]},style:[c(c({},a.a[e.geometry.type]),{},{type:e.geometry.type,id:i()(),geometry:"LineString"===e.geometry.type?"lineToArc":null,title:"".concat(e.geometry.type," Style"),filtering:!0})].concat("LineString"===e.geometry.type?Object(a.e)():[])}].concat(p(e.properties.values.map((function(e){var n=e.value,r=e.formattedValue,a=e.type;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:r||h(t,n)[a],isText:!0,isValidFeature:!0,id:i()()},style:c(c({},o),{},{id:i()(),filtering:!0,title:"Text Style",type:"Text"})}}))))}(e,n,d)})))),p(t.filter((function(e){return!!e})).map((function(e){var t=e.text;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:t,isValidFeature:!0,isText:!0,id:i()()},style:c(c({},g),{},{id:i()(),filtering:!0,title:"Text Style",type:"Text"})}})))),properties:{id:o,description:u,type:"Measure",title:b.title,iconGlyph:b.iconGlyph},style:{}}}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=function(e,t){return e===t},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},s=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,a())})),l=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,a(e))}))}},"./MapStore2/web/client/utils/StyleEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return N})),n.d(t,"f",(function(){return z})),n.d(t,"e",(function(){return B})),n.d(t,"c",(function(){return q})),n.d(t,"g",(function(){return U})),n.d(t,"j",(function(){return G})),n.d(t,"i",(function(){return H})),n.d(t,"h",(function(){return V})),n.d(t,"l",(function(){return W})),n.d(t,"k",(function(){return Z})),n.d(t,"d",(function(){return Q}));var r=n("./MapStore2/node_modules/lodash/head.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/get.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isArray.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/isString.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/flatten.js"),p=n.n(d),f=n("./MapStore2/node_modules/lodash/isNil.js"),h=n.n(f),m=n("./MapStore2/node_modules/lodash/omit.js"),g=n.n(m),y=n("./MapStore2/node_modules/lodash/omitBy.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isUndefined.js"),w=n.n(v),x=n("./node_modules/uuid/v1.js"),_=n.n(x),O=n("./node_modules/url/url.js"),S=n.n(O),j=n("./MapStore2/web/client/utils/styleeditor/stylesTemplates.js");function E(e){return function(e){if(Array.isArray(e))return e}(e)||k(e)||T(e)||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 C(e){return function(e){if(Array.isArray(e))return A(e)}(e)||k(e)||T(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 T(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type&&e.type.localPart&&e.type.localPart.toLowerCase()||"";return-1!==t.indexOf("polygon")||-1!==t.indexOf("surface")?"polygon":-1!==t.indexOf("linestring")?"linestring":-1!==t.indexOf("point")?"point":"vector"},z=function(){return"".concat(_()(),"_ms_").concat(Date.now().toString())},B=function(e){var t=e.title;return"".concat((void 0===t?"":t).toLowerCase().replace(/\s/g,"_")).concat(D).concat(_()())},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeLayer,n=void 0===t?{}:t,r=e.describeFeatureType,i=void 0===r?{}:r,s=n&&n.owsType||null,l=a()(i,"complexType[0].complexContent.extension.sequence.element")||null,u=l&&o()(l.filter((function(e){var t=e.type;return t&&"gml"===t.prefix}))),c=("WCS"===s?"raster":u&&"WFS"===s&&F(u))||null,d="raster"===c?n.bands:l&&l.reduce((function(e,t){var n=t.name,r=t.type,o=void 0===r?{}:r;return M(M({},e),{},I({},n,{localPart:o.localPart,prefix:o.prefix}))}),{});return{geometryType:c,properties:d,owsType:s}},U=function(e){return L[e]||e},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(R.isSameOrigin)return R.isSameOrigin(e,t);if(!t.baseUrl||!e.url)return!1;var n=[t.baseUrl].concat(C(t.availableUrls||[])),r=n.map((function(e){var t=S.a.parse(e);return"".concat(t.protocol,"//").concat(t.host)})),o=S.a.parse(e.url),i="".concat(o.protocol,"//").concat(o.host);return-1!==r.indexOf(i)},H=function(){if(R.getStyleTemplates){var e=R.getStyleTemplates();return[].concat(C(l()(e)?e:[]),C(j.baseTemplates))}return[].concat(C(j.customTemplates),C(j.baseTemplates))},V=function(e){var t=c()(e)&&e.split(":")||[];return{workspace:t[1]&&t[0],name:t[1]||t[0]}},W=function(e){var t=e.name,n=e.workspace;return"".concat(n&&n.name&&"".concat(n.name,":")||"").concat(t)},Y=function(e){var t,n=null==e||null===(t=e.groupFields)||void 0===t?void 0:t.find((function(e){return!e.groupId}));return n&&function e(t,n){if(!(t&&t.filterFields&&t.groupFields&&n))return null;var r=t.filterFields.filter((function(e){return e.groupId===n.id})),o=t.groupFields.filter((function(e){return e.groupId===n.id})),i=[].concat(C(r),C(o)),a={OR:"||",AND:"&&",like:"*=","=":"==","<>":"!=",isNull:"=="},s=i.map((function(n){if(void 0!==n.rowId){var r=n.operator,o=n.attribute,i=n.value;return r&&o&&!h()(i)?[a[r]||r,o,"isNull"===r?null:i]:null}return e(t,n)})).filter((function(e){return e})),l=n.logic;return 0===s.length?null:[a[l]].concat(C(s))}(e,n)},K=function(e){var t=[],n=[];return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.index,o=void 0===r?0:r,i=n.groupId,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(!t)return null;var s={"||":"OR","&&":"AND","*=":"like","==":"=","!=":"<>"},u=E(t),c=u[0],d=u.slice(1),p=l()(c),f=p?c[0]:c,h=p?c.filter((function(e,t){return 0!==t})):d;if("||"===f||"&&"===f){var m=_()();return a("groupField",{id:m,index:o,logic:s[f]}),e(d,{index:o+1,groupId:m},a)}return f?(a("filterField",{attribute:h[0],groupId:i,operator:s[f]||f,rowId:_()(),type:isNaN(parseFloat(h[1]))?"string":"number",value:h[1]}),e(d,{index:o,groupId:i},a)):null}(e,void 0,(function(e,r){"groupField"===e&&t.push(r),"filterField"===e&&n.push(r)})),{groupFields:t,filterFields:n}};function X(e){var t=b()(e,w.a);return Object.keys(t).reduce((function(e,n){switch(n){case"haloColor":case"haloWidth":return"Text"===t.kind&&0===t.haloWidth?e:M(M({},e),{},I({},n,t[n]));case"outlineWidth":case"outlineColor":case"outlineOpacity":return"Fill"===t.kind&&0===t.outlineWidth?e:M(M({},e),{},I({},n,t[n]));case"strokeWidth":case"strokeColor":case"strokeOpacity":return"Mark"===t.kind&&0===t.strokeWidth?e:M(M({},e),{},I({},n,t[n]));case"graphicFill":case"graphicStroke":return M(M({},e),{},I({},n,X(t[n])));default:return M(M({},e),{},I({},n,t[n]))}}),{})}function Z(e){return e&&e.rules?M(M({},e),{},{rules:p()(e.rules.map((function(e){if("Classification"===e.kind)return(e.classification||[]).map((function(t,n){var r=n===e.classification.length-1?"<=":"<",o=null!==t.min?[[">=",e.attribute,t.min]]:[],i=null!==t.max?[[r,e.attribute,t.max]]:[],a=null!==t.min&&">= "+t.min,s=null!==t.max&&r+" "+t.max;return M(M({name:a&&s?a+" and "+s:a||s,filter:o[0]||i[0]?["&&"].concat(o,i):void 0},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[X(M(M({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","attribute","symbolizerKind"])),{},{kind:e.symbolizerKind||"Fill",color:t.color}))]})}));if("Raster"===e.kind){var t=e.classification&&e.classification.length>0&&{colorMapEntries:(e.classification||[]).map((function(e){return{label:e.label,quantity:e.quantity,color:e.color,opacity:e.opacity}}))};return M(M({name:e.name||""},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[X(M(M({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","continuous","symbolizerKind","name"])),{},{kind:"Raster"},t&&{colorMap:t}))]})}var n=Y(e.filter);return M(M({},e),{},{filter:n,symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){return X(e)}))})})))}):e}function Q(e){return M(M({},e),{},{rules:e.rules.map((function(e){return M(M({},e),{},{ruleId:_()(),filter:e.filter&&K(e.filter),symbolizers:e.symbolizers&&e.symbolizers.map((function(e){return M(M({},e),{},{symbolizerId:_()()})}))||[]})}))})}},"./MapStore2/web/client/utils/TMSUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("?")[0].split("@");if(t.length>1){var n=t[t.length-1];if(Object(r.includes)(["png","png8","jpeg","vnd.jpeg-png","gif"],n))return n}return null}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.width,a=void 0===i?64:i,s=o.height,l=void 0===s?64:s,u=o.contain,c=o.type,d=void 0===c?"image/jpeg":c,p=o.quality,f=void 0===p?.5:p,h=new Image;h.crossOrigin="anonymous",h.onload=function(){var e=h.naturalWidth/h.naturalHeight,t=a,r=l,o=a/l,i=document.createElement("canvas");i.setAttribute("width",a),i.setAttribute("height",l),i.style.width=a+"px",i.style.height=l+"px";var s=i.getContext("2d"),c=!u&&eo?[t,t/e]:[r*e,r];s.save(),s.translate(t/2,r/2),s.drawImage(h,-c[0]/2,-c[1]/2,c[0],c[1]),s.restore();var p=i.toDataURL(d,f);n(p)},h.onerror=function(e){r(e)},h.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.type,a=void 0===i?"image/jpeg":i,s=o.quality,l=void 0===s?.5:s,u=document.createElement("video");u.crossOrigin="anonymous";var c=document.createElement("source"),d=document.createElement("canvas");u.addEventListener("loadedmetadata",(function(){var e=u.videoWidth,t=u.videoHeight;d.setAttribute("width",e),d.setAttribute("height",t),d.style.width=e+"px",d.style.height=t+"px"}),!0),u.addEventListener("loadeddata",(function(){u.currentTime=1}),!0),u.addEventListener("seeked",(function(){d.getContext("2d").drawImage(u,0,0);try{var e=d.toDataURL(a,l);n(e)}catch(e){r(e)}}),!0),u.addEventListener("error",(function(e){r(e)}),!0),u.appendChild(c),u.setAttribute("src",e)}))},i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,a=null===(e=t.match(i))||void 0===e?void 0:e[1];return a?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(a,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/URLUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/query-string/index.js"),s=n.n(a);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var n=e?e.split("&").filter((function(e){return!!e})):[],r=t?t.split("&").filter((function(e){return!!e})):[];return Object(i.isEqual)(Object(i.sortBy)(n),Object(i.sortBy)(r))}(a.query,s.query);return d&&f&&p&&h&&m},p=function(e){return s.a.parse(e)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,n=new RegExp(t);return n.test(e)},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/,r=new RegExp(n),o=r.test(e);if(!o)return!1;if(o&&!t)return!0;if(o&&t){var a=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return Object(i.find)(a,e)})).length}return!1}},"./MapStore2/web/client/utils/VectorStyleUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isAttrPresent",(function(){return g})),n.d(t,"isStrokeStyle",(function(){return y})),n.d(t,"isFillStyle",(function(){return b})),n.d(t,"isTextStyle",(function(){return v})),n.d(t,"isCircleStyle",(function(){return w})),n.d(t,"isMarkerStyle",(function(){return x})),n.d(t,"isSymbolStyle",(function(){return _})),n.d(t,"getStylerTitle",(function(){return O})),n.d(t,"geometryFunctions",(function(){return S})),n.d(t,"getGeometryFunction",(function(){return j})),n.d(t,"registerGeometryFunctions",(function(){return E})),n.d(t,"addOpacityToColor",(function(){return C})),n.d(t,"hashCode",(function(){return T})),n.d(t,"registerStyle",(function(){return A})),n.d(t,"setSymbolsStyles",(function(){return P})),n.d(t,"fetchStyle",(function(){return M})),n.d(t,"getSymbolsStyles",(function(){return I})),n.d(t,"hashAndStringify",(function(){return D})),n.d(t,"domNodeToString",(function(){return N})),n.d(t,"createSvgUrl",(function(){return R})),n.d(t,"createStylesAsync",(function(){return L})),n.d(t,"getStyleParser",(function(){return F}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),i=n("./MapStore2/web/client/utils/ColorUtils.js"),a=n("./node_modules/axios/index.js"),s=n.n(a),l=n("./node_modules/geostyler-sld-parser/build/dist/SldStyleParser.js"),u=n.n(l),c=n("./node_modules/geostyler-geocss-parser/build/dist/GeoCSSStyleParser.js"),d=n.n(c);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(r.isNil)(e[t])})).length>0},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return g(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return g(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return g(e,t)},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return g(e,t)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return g(e,t)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return g(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x(e)?"Marker":_(e)?"Symbol":v(e)?"Text":w(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":y(e)?"Polyline":""},S={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},j=function(e,t){return S[e]&&S[e][t]},E=function(e,t,n){if(!(e&&t&&n))throw new Error("specify all the params: functionName, func, type");S[e]={func:t,type:n}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},T=function(e){var t,n=0;if(0===e.length)return n;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k=e},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return k[e]&&k[e][t]},I=function(){return k},D=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},N=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return _(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var n=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(r.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(r.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(r.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([N(o)],{type:"image/svg+xml;charset=utf-8"}),s=n.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var u=l.getContext("2d"),c=new Image;c.src=s;var d="",p=D(e);return c.onload=function(){try{u.drawImage(c,l.width/2-c.width/2,l.height/2-c.height/2),d=l.toDataURL("image/png"),l=null,A(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),base64:d})}catch(e){return}},A(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),svg:o,base64:d}),s})).catch((function(){return n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return _(e)&&!M(D(e))?R(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):M(D(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(_(e)?M(D(e)):e)}))}))},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return m[e]}},"./MapStore2/web/client/utils/featuregrid/EditorRegistry.jsx":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).length>0&&Object.keys(e).reduce((function(n,r){var o=new RegExp(e[r]);return n&&o.test(t[r])}),!0)},u=function(e,t,n){if(s[t]){if(s[t][e])return s[t][e](n);if(s[t].defaultEditor)return s[t].defaultEditor(n)}return null};e.exports={get:function(){return s},register:function(e){var t=e.name,n=e.editors;n&&(s[t]=n)},remove:function(e){if(t=e,-1!==Object.keys(s).indexOf(t))try{return delete s[e],!0}catch(e){return!1}var t;return!1},clean:function(){s={}},getCustomEditor:function(e){var t=e.attribute,n=e.url,r=e.typeName,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2?arguments[2]:void 0,c=s.type,d=s.generalProps,p=void 0===d?{}:d,f=s.props,h=a(i,(function(e){return l(e.regex,{attribute:t,url:n,typeName:r})}));if(h){var m=u(c,h.editor,o(o(o({},f),p),h.editorProps||{}));return m}return null}}},"./MapStore2/web/client/utils/ogc/Filter/base.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),o=r.filter,i=r.fidFilter;e.exports={fidFilter:i,filter:o}},"./MapStore2/web/client/utils/ogc/WFS/RequestBuilder.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.wfsVersion,n=void 0===t?"1.1.0":t,r=e.gmlVersion,i=e.filterNS,d=e.wfsNS,p=void 0===d?"wfs":d,f=r;!f&&n?f=l(n):f||(f="3.1.1");var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.viewParams,r=e.resultType,o=e.outputFormat,i=e.startIndex,a=e.maxFeatures,s=function(e){return 0===n.indexOf("2.")?'count="'.concat(e,'"'):'maxFeatures="'.concat(e,'"')};return(0===n.indexOf("1.")?u(n):c(n))+(r?' resultType="'.concat(r,'"'):"")+(o?' outputFormat="'.concat(o,'"'):"")+(i||0===i?' startIndex="'.concat(i,'"'):"")+(a||0===a?" ".concat(s(a)):"")+(t?' viewParams="'.concat(t,'"'):"")},m=function(e){return s(e).map((function(e){return"<".concat("2.0"===n?"fes":"ogc",":PropertyName>").concat(e,"")})).join("")};return o(o({propertyName:m},a({gmlVersion:f,wfsVersion:n,filterNS:i||"2.0"===n?"fes":"ogc"})),{},{getFeature:function(e,t){return"<".concat(p,":GetFeature ").concat(h(t),">").concat(Array.isArray(e)?e.join(""):e,"")},sortBy:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ASC";return"<".concat(p,":SortBy><").concat(p,":SortProperty>").concat(m(e),"<").concat(p,":SortOrder>").concat(t,"")},query:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.srsName,i=void 0===o?"EPSG:4326":o;return"<".concat(p,":Query ").concat("2.0"===n?"typeNames":"typeName",'="').concat(e,'" srsName="').concat(i,'">')+"".concat(Array.isArray(t)?t.join(""):t)+"")}})}},"./MapStore2/web/client/utils/ogc/WFST/RequestBuilder.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?[e].concat(s(t)):e},T=function(e){this.version=e},k=function(e){return u(e,"featureTypes[0].typeName")},A=function(e){return e.targetPrefix?"".concat(e.targetPrefix,":").concat(k(e)):k(e)},P=function(e,t){return e.geometry_name||S(t).name},M=function(e,t){return"geometry"===e||e===P({},t)?P({},t):e};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.wfsVersion,r=void 0===n?"1.1.0":n,i=t.wfsNS,s=void 0===i?"wfs":i,l=a(t,["wfsVersion","wfsNS"]);if("1.1.0"!==r)throw new T(r);var u=function(t){return p(e.targetPrefix,k(e),Object.keys(t.properties||[]).filter((function(t){return _(t,e)})).map((function(n){return f(e.targetPrefix,n,O(t.properties[n],n,e))})).concat(t.geometry?f(e.targetPrefix,P(t,e),O(t.geometry,P(t,e),e)):[]))},c=function(e){return e.features?e.features.map(u):u(e)};return o(o({},E(o(o({},l),{},{wfsVersion:r,wfsNS:s}))),{},{insert:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),o=1;o1?n-1:0),i=1;i').concat(t,"")},i=function(e,t,n){return o(e,r("ogc",t),n)};e.exports={deleteFeaturesByFilter:o,deleteById:i,deleteFeature:function(e,t,n){return i(e,t.features&&1===t.features.length?t.features[0].id:t.id,n)}}},"./MapStore2/web/client/utils/ogc/WFST/insert.js":function(e,t){var n=function(e,t,n){return"<".concat(e?e+":"+t:t,">").concat(Array.isArray(n)?n.join(""):n,"")},r=n,o=n;e.exports={insert:function(e,t){return"<".concat(e,":Insert>").concat(Array.isArray(t)?t.join(""):t,"")},feature:o,attribute:r}},"./MapStore2/web/client/utils/ogc/WFST/transaction.js":function(e,t){e.exports={transaction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.wfsNS,o=void 0===r?"wfs":r,i=n.wfsVersion,a=void 0===i?"1.1.0":i;return"<".concat(o,":Transaction ")+'service="WFS" '+'version="'.concat(a,'" ')+"xmlns:".concat(o,'="http://www.opengis.net/wfs" ')+'xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs" '+"".concat(t,">")+"".concat(Array.isArray(e)?e.join(""):e)+"")}}},"./MapStore2/web/client/utils/ogc/WFST/update.js":function(e,t){e.exports={update:function(e,t,n){return"<".concat(e,':Update typeName="').concat(t,'">').concat(Array.isArray(n)?n.join(""):n,"")},propertyChange:function(e,t,n){return"<".concat(e,":Property>")+"<".concat(e,":Name>").concat(t,"")+"<".concat(e,":Value>").concat(n,"")+"")}}},"./MapStore2/web/client/utils/ogc/WPS/autocomplete.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n '+o+" *"+c+"*":"",p=n&&!n.disabled&&a(n)?s(n,"1.1.0","ogc"):[];return' gs:PagedUnique features features '+(d.length>0||p.length>0?''+l.apply(void 0,r(p).concat([d]))+"":"")+' '+o+' fieldName fieldName '+o+' maxFeatures maxFeatures '+i+' startIndex startIndex '+u+' result '}}},"./MapStore2/web/client/utils/openlayers/DrawUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return x}));var r=n("./node_modules/ol/interaction/DragPan.js"),o=n("./node_modules/ol/interaction/KeyboardPan.js"),i=n("./node_modules/ol/interaction/MouseWheelZoom.js"),a=n("./node_modules/ol/interaction/DoubleClickZoom.js"),s=n("./node_modules/ol/interaction/DragZoom.js"),l=n("./node_modules/ol/interaction/KeyboardZoom.js"),u=n("./node_modules/ol/interaction/PinchZoom.js"),c=n("./node_modules/ol/interaction/PinchRotate.js"),d=n("./node_modules/ol/interaction/DragRotate.js"),p=n("./node_modules/ol/geom/Point.js"),f=n("./node_modules/ol/geom/LineString.js"),h=n("./node_modules/ol/geom/MultiPoint.js"),m=n("./node_modules/ol/geom/MultiLineString.js"),g=n("./node_modules/ol/geom/MultiPolygon.js"),y=n("./node_modules/ol/geom/Circle.js"),b=n("./node_modules/ol/geom/Polygon.js"),v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=t.coordinates,o=t.radius,i=t.center;switch(n){case"Point":e=new p.a(r||[]);break;case"LineString":e=new f.a(r||[]);break;case"MultiPoint":e=new h.a(r||[]);break;case"MultiLineString":e=new m.a(r||[]);break;case"MultiPolygon":e=new g.a(r||[]);break;default:e=o&&i?Object(b.c)(new y.a([i.x,i.y],o),100):new b.b(r||[])}return e},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.geometry&&"Polygon"===e.geometry.type},x={dragPan:{options:{kinetic:!1},Instance:r.a},keyboardPan:{options:{kinetic:!1},Instance:o.a},mouseWheelZoom:{options:{duration:0},Instance:i.a},doubleClickZoom:{options:{duration:0},Instance:a.a},shiftDragZoom:{options:{duration:0},Instance:s.a},keyboardZoom:{options:{},Instance:l.a},pinchZoom:{options:{duration:0},Instance:u.a},pinchRotate:{options:{},Instance:c.a},altShiftDragRotate:{options:{},Instance:d.a}}},"./MapStore2/web/client/utils/styleeditor/stylesTemplates.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base CSS",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\traster-channels: auto;\n}",preview:{config:{backgroundColor:"#333333",texts:[{text:"CSS",fill:"#ffaa33",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base SLD",format:"sld",code:'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t1.0\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}}].map((function(e){return o(o({},e),{},{styleId:a()})})),l=[{types:["linestring","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #999999;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#999999"}]}}},{types:["linestring","vector"],title:"Dashed line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #333333;\n\tstroke-width: 0.75;\n\tstroke-dasharray: 6 2;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:4,strokeDasharray:"20 4"}]}}},{types:["linestring","vector"],title:"Section line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #330033;\n\tstroke-width: 1;\n\tstroke-dasharray: 10 4 1 4;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#330033",strokeWidth:4,strokeDasharray:"20 10 4 10"}]}}},{types:["linestring","vector"],title:"Simple railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('shape://vertline'), #000000;\n :stroke {\n stroke: #000000;\n size: 8;\n };\n}\n",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:2,strokeLinejoin:"round"},{stroke:"#333333",strokeWidth:16,strokeDasharray:"2 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #777777, #ffffff;\n\tstroke-width: 4, 2;\n\tstroke-dasharray: 1 0, 10 10;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#777777",strokeWidth:8,strokeLinejoin:"round"},{stroke:"#ffffff",strokeWidth:6,strokeDasharray:"20 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Waterway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #8bbceb, #bbddff;\n\tstroke-width: 10, 8;\n\tstroke-linejoin: round;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#8bbceb",strokeWidth:14,strokeLinejoin:"round"},{stroke:"#bbddff",strokeWidth:12,strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Red road",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #ff5539, #ffffff;\n\tstroke-width: 8, 5;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#ff5539",strokeWidth:14},{stroke:"#ffffff",strokeWidth:7}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('circle');\n stroke-dasharray: 8 20;\n :stroke {\n size: 8;\n fill: #ddd;\n stroke: #777;\n stroke-width: 0.5;\n };\n}\n",types:["linestring","vector"],title:"Stroke Pattern",format:"css",preview:{config:{type:"linestring",paths:[{type:"point",transform:"translate(-0, -55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n label: 'Label';\n label-anchor: 0.5 0.5;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n}\n",types:["linestring","vector"],title:"Label",format:"css",preview:{config:{type:"linestring",paths:[{stroke:"#333",strokeWidth:4}],texts:[{text:"Label",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n}\n",types:["polygon","vector"],title:"Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-dasharray: 10 5;\n stroke-width: 2;\n stroke-opacity: 0.5;\n}\n",types:["polygon","vector"],title:"Dashed Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4,strokeDasharray:"20 10",strokeOpacity:.5}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Simple",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Line Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#line)"}],patterns:[{id:"line",icon:{d:"M0.0 1.0 L1.0 0.0",stroke:"#000",strokeWidth:.05}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://dot');\n :fill {\n size: 8;\n stroke: #000000;\n stroke-width: 4;\n };\n}\n",types:["polygon","vector"],title:"Dot Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#poly_dot)"}],patterns:[{id:"poly_dot",icon:{d:"M0.5 0.5 L0.5 0.52Z",stroke:"#000",strokeLinecap:"round",strokeWidth:.2}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n mark: symbol('circle');\n :mark {\n size: 16;\n stroke: #333;\n stroke-width: 2;\n fill: #ddd;\n };\n}\n\n* {\n stroke: #333333;\n stroke-width: 0.5;\n}\n",types:["polygon","vector"],title:"Marker",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333"},{type:"point",d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#333",fill:"#ddd",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd, symbol('cross');\n :fill {\n size: 20;\n stroke: #333;\n stroke-width: 1;\n fill: #f2f2f2;\n };\n}\n",types:["polygon","vector"],title:"Fill Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"},{fill:"url(#poly_square)"}],patterns:[{id:"poly_square",icon:{d:"M0.1 0.1 L0.9 0.1 L0.9 0.9 L0.1 0.9Z",stroke:"#333",strokeLinecap:"round",strokeWidth:.05,fill:"#f2f2f2"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 0.5;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n stroke: #474747;\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Label and Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#000",strokeWidth:2},{fill:"url(#line)"}],texts:[{text:"Label",style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{types:["point","vector"],title:"Square",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('square');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Circle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('circle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Triangle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('triangle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Star",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('star');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Cross",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('cross');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"X",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('x');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://vertline');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Plus",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://plus');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Times",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://times');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Open arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://oarrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Closed arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://carrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 2;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n mark: symbol('circle');\n :mark {\n size: 7;\n stroke: #0d0d0d;\n stroke-width: 0.7;\n };\n}\n",types:["polygon","point","vector"],title:"Label and Marker",format:"css",preview:{config:{type:"polygon",paths:[{type:"point",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#0d0d0d",fill:"transparent",strokeWidth:2}],texts:[{text:"Label",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}}].map((function(e){return o(o({},e),{},{styleId:a()})}));e.exports={baseTemplates:s,customTemplates:l}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"o",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return b}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",i="GEONODE:RESOURCE_ERROR",a="GEONODE:UPDATE_RESOURCE_PROPERTIES",s="GEONODE:SET_RESOURCE_TYPE",l="GEONODE:SET_NEW_RESOURCE",u="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function p(e){return{type:o,data:e}}function f(e){return{type:s,resourceType:e}}function h(e){return{type:i,error:e}}function m(e){return{type:a,properties:e}}function g(){return{type:l}}function y(e){return{type:u,id:e}}function b(e){return{type:c,permissions:e}}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"l",(function(){return h}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",i="GEONODE:SAVE_ERROR",a="GEONODE:CLEAR_SAVE",s="GEONODE:SAVE_CONTENT",l="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function u(){return{type:r}}function c(e){return{type:o,success:e}}function d(e){return{type:i,error:e}}function p(){return{type:a}}function f(e,t,n){return{type:s,id:e,metadata:t,reload:n}}function h(e){return{type:l,id:e}}},"./js/api/geonode/adapter/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./js/utils/APIUtils.js"),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.post(Object(a.b)("".concat(t,"resources/")),e,{timeout:1e4,params:{full:!0}}).then((function(e){return e.data}))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.patch(Object(a.b)("".concat(n,"resources/").concat(e,"/")),t,{params:{full:!0}}).then((function(e){return e.data}))},u=function(e){var t=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.get(Object(a.b)("".concat(t,"resources/").concat(e,"/")),{params:{full:!0}}).then((function(e){return e.data}))}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"g",(function(){return v}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./node_modules/js-cookie/src/js.cookie.js"),s=n.n(a),l=n("./js/utils/GNSearchUtils.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(p,"/categories").concat(f),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.identifier,n),n}))}))},g=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(p,"/keywords").concat(f),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(p,"/regions").concat(f),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.name,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(p,"/owners").concat(f),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.username,n),n}))}))},v=function(e){var t=s.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return C})),n.d(t,"i",(function(){return A})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"j",(function(){return N})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return z}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./js/utils/APIUtils.js"),a=n("./MapStore2/node_modules/lodash/mergeWith.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),p=n("./MapStore2/node_modules/lodash/castArray.js"),f=n.n(p),h=n("./js/api/geonode/v1/index.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js"),g=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(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 n=0,r=new Array(t);n1?e+i.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+i[0]}),"");return"".concat(e).concat(n)}var C=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=_(_({},S),e)}(t),t}))};function T(e,t){return t?s()(_({},e),_({},t),(function(e,t){return u()(e)&&u()(t)?[].concat(v(e),v(t)):d()(e)&&u()(t)?[e].concat(v(t)):u()(e)&&d()(t)?[].concat(v(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var k,A=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,s=void 0===a?1:a,l=e.sort,c=e.f,d=b(e,["q","pageSize","page","sort","f"]),p=((Object(m.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return j("resources",(function(){return o.a.get(Object(i.b)(E(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:_(_(_({},T(d,p)),l&&{sort:u()(l)?l:[l]}),{},{page:s,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,s=void 0===a?1:a,l=e.sort,c=b(e,["q","pageSize","page","sort"]);return j("maps",(function(){return o.a.get(Object(i.b)(E(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:_(_(_({},c),l&&{sort:u()(l)?l:[l]}),{},{page:s,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,a=void 0===r?20:r,s=t.page,l=void 0===s?1:s,c=t.sort,d=b(t,["q","pageSize","page","sort"]);return j("maps",(function(){return o.a.get(Object(i.b)(E(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:_(_(_({},d),c&&{sort:u()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:l,page_size:a})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},I=function(e){return o.a.get(Object(i.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},D=function(e){return o.a.post(Object(i.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},N=function(e,t){return o.a.patch(Object(i.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},R=function(e){return o.a.get(Object(i.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},L=function(){return Object(h.f)().then((function(e){return R(e.sub).then((function(t){return _(_({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},F=function(e){return o.a.get(e).then((function(e){return e.data}))},z=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return k?new Promise((function(e){return e(k)})):o.a.get(Object(i.b)(S.resource_types)).then((function(e){var n=e.data;return v(k=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(g.h)(t+e,n),n})))}))}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),i=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/backgroundselector.js"),s=n("./MapStore2/web/client/utils/MapUtils.js"),l=n("./node_modules/reselect/es/index.js"),u=n("./MapStore2/web/client/selectors/catalog.js"),c=n("./MapStore2/web/client/selectors/widgets.js"),d=n("./MapStore2/web/client/selectors/mapInfo.js"),p=n("./MapStore2/web/client/selectors/dimension.js"),f=n("./MapStore2/web/client/selectors/timeline.js"),h=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},m=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var z=function(e,t){return e.ofType(C.s).exhaustMap((function(e){var n,r=e.resource,i=Object(E.mapValues)(r.attributes,(function(e){if(Object(E.isObject)(e)){var t=null;try{t=JSON.stringify(e)}catch(e){t=null}return t}return e})),a=Object(E.keys)(i).filter((function(e){return"thumbnail"!==e&&"details"!==e&&!Object(E.isNil)(i[e])}));return o.a.Observable.forkJoin((n=Object(E.get)(r,"attributes.context"),n?Object(A.d)(n,{withData:!1}):o.a.Observable.of(null)),r.id?Object(A.h)(r):Object(A.b)(r)).switchMap((function(e){var n=M(e,2),s=n[0],l=n[1];return(a.length>0?o.a.Observable.forkJoin(a.map((function(e){return Object(A.i)({id:l,name:e,value:i[e]})}))):o.a.Observable.of([])).switchMap((function(){return o.a.Observable.from([].concat(P(r.id?[Object(p.o)(l)]:[]),P(r.id?[Object(p.m)(r.data,l)]:[]),[r.id?Object(d.h)("mapSave"):Object(d.h)("mapSaveAs"),Object(p.t)(r.id)],P(r.id?[]:[Object(C.F)(l,O()({id:l,canDelete:!0,canEdit:!0,canCopy:!0},r.metadata),r.data),Object(S.d)(s?"/context/".concat(s.name,"/").concat(l):"/viewer/".concat(Object(T.c)(t.getState()),"/").concat(l))]))).merge(o.a.Observable.of(Object(j.b)({title:"map.savedMapTitle",message:"map.savedMapMessage",autoDismiss:6,position:"tc"})))}))})).catch((function(e){var t=e.status,n=e.statusText,r=e.data,i=e.message,a=F(e,["status","statusText","data","message"]);return o.a.Observable.of(Object(p.s)(t?{status:t,statusText:n,data:r}:i||a),Object(j.a)(R(R({},Object(k.c)(e,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(C.I)(r.metadata):Object(C.L)(r.metadata))}))},B=n("./MapStore2/web/client/selectors/controls.js");function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType("GEONODE:CREATE_MAP_THUMBNAIL","GEONODE:CREATE_LAYER_THUMBNAIL").do((function(){try{$("#_thumbnail_processing").modal("show")}catch(e){console.log(e)}})).exhaustMap((function(e){var t=e.type,r=n(),i=Object(s.p)(r),u=Object(l.k)(r),c="GEONODE:CREATE_MAP_THUMBNAIL"===t,d=c?x()(u,"info.id"):i[i.length-1].name,p=c?"maps":"layers",f=u.size,h=f.width,m=f.height,g=u.bbox.bounds,y=g.maxx,b=g.minx,v=g.maxy,w={bbox:[b,y,g.miny,v],srid:u.bbox.crs,center:u.center,zoom:u.zoom,width:h,height:m,layers:i.filter((function(e){return"background"!==e.group&&e.visibility})).map((function(e){return e.name})).join(",")};return Object(a.d)(p,d,w).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.status;try{$("#_thumbnail_feedbacks").find(".modal-title").text(n),$("#_thumbnail_feedbacks").find(".modal-body").text(t),$("#_thumbnail_feedbacks").modal("show")}catch(e){console.log(e)}})).mapTo({type:"THUMBNAIL_UPDATE"}).catch((function(e){var t=e.code,n=e.message;try{"ECONNABORTED"===t?($("#_thumbnail_feedbacks").find(".modal-title").text("Timeout"),$("#_thumbnail_feedbacks").find(".modal-body").text("Failed from timeout: Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show")):($("#_thumbnail_feedbacks").find(".modal-title").text("Error: "+n),$("#_thumbnail_feedbacks").find(".modal-body").text("Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show"))}catch(e){console.log(e)}finally{return o.a.Observable.of({type:"THUMBNAIL_UPDATE_ERROR"})}})).do((function(){try{$("#_thumbnail_processing").modal("hide")}catch(e){console.log(e)}}))}))},V=function(e,t){return e.ofType(p.d,f.M,d.b,f.f,f.z,h.f,h.x,h.n,h.i,d.d,d.c,m.v,m.j,h.h,h.q).switchMap((function(){var e=t.getState();if(x()(e,"browser.mobile")){var n=U({},Object(g.m)(e)?{bottom:"50%"}:{bottom:void 0});return o.a.Observable.of(Object(c.b)({boundingMapRect:n}))}var r=Object(u.getConfigProp)("mapLayout")||{left:{sm:300,md:500,lg:600},right:{md:658},bottom:{sm:30}};if("embedded"===x()(e,"mode")){var i={height:"calc(100% - "+r.bottom.sm+"px)"},a=U({},Object(g.m)(e)?{bottom:"50%"}:{bottom:void 0});return o.a.Observable.of(Object(c.b)(U(U({},i),{},{boundingMapRect:a})))}var s=x()(e,"controls.drawer.resizedWidth"),l=v()([x()(e,"controls.queryPanel.enabled")&&{left:r.left.lg}||null,x()(e,"controls.widgetBuilder.enabled")&&{left:r.left.md}||null,x()(e,"layers.settings.expanded")&&{left:r.left.md}||null,x()(e,"controls.drawer.enabled")&&{left:s||r.left.sm}||null].filter((function(e){return e})))||{left:0},d=v()([x()(e,"controls.details.enabled")&&{right:r.right.md}||null,x()(e,"controls.annotations.enabled")&&{right:r.right.md}||null,x()(e,"controls.metadataexplorer.enabled")&&{right:r.right.md}||null,x()(e,"controls.measure.enabled")&&Object(B.h)(e)&&{right:r.right.md}||null,x()(e,"mapInfo.enabled")&&Object(g.m)(e)&&{right:r.right.md}||null].filter((function(e){return e})))||{right:0},p=100*Object(y.g)(e),f=Object(y.o)(e)&&{bottom:p+"%",dockSize:p}||{bottom:r.bottom.sm},h=Object(y.o)(e)&&{transform:"translate(0, -"+r.bottom.sm+"px)"}||{transform:"none"},m={height:"calc(100% - "+r.bottom.sm+"px)"},b=U(U(U({},f),l),d);return o.a.Observable.of(Object(c.b)(U(U(U(U(U(U({},l),d),f),h),m),{},{boundingMapRect:b})))}))};t.b={mapSaveMapResourceEpic:z,_setFeatureEditPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(m.t).filter((function(e){return"layer"===e.nodeType&&!Object(u.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(){var e=Object(s.j)(n()||{});return e?Object(a.b)(e).map((function(e){return Object(f.Fb)(e)})).startWith(Object(f.Fb)({canEdit:!1})).catch((function(){return o.a.Observable.empty()})):o.a.Observable.of(Object(f.Fb)({canEdit:!1}))}))},_setThumbnail:H,_setStyleEditorPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(i.f,m.t).filter((function(e){var t=e.nodeType;return t&&"layer"===t&&!Object(u.getConfigProp)("disableCheckEditPermissions")||!t&&!Object(u.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(e){var t=Object(s.j)(n()||{});return t?Object(a.c)(t).map((function(e){var t=e.canEdit;return Object(i.C)(t)})).startWith(Object(i.C)(e.canEdit)).catch((function(){return o.a.Observable.empty()})):o.a.Observable.of(Object(i.C)(!1))}))},updateMapLayoutEpic:V}},"./js/extend.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=!1},"./js/plugins.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getRecords",(function(){return rn})),n.d(r,"textSearch",(function(){return on})),n.d(r,"validate",(function(){return an})),n.d(r,"testService",(function(){return sn}));var o={};n.r(o),n.d(o,"parseUrl",(function(){return gn})),n.d(o,"getRecords",(function(){return yn})),n.d(o,"textSearch",(function(){return bn}));var i={};n.r(i),n.d(i,"scaleBand",(function(){return ns})),n.d(i,"scalePoint",(function(){return rs})),n.d(i,"scaleIdentity",(function(){return _l})),n.d(i,"scaleLinear",(function(){return xl})),n.d(i,"scaleLog",(function(){return Al})),n.d(i,"scaleOrdinal",(function(){return ts})),n.d(i,"scaleImplicit",(function(){return es})),n.d(i,"scalePow",(function(){return Ml})),n.d(i,"scaleSqrt",(function(){return Il})),n.d(i,"scaleQuantile",(function(){return Dl})),n.d(i,"scaleQuantize",(function(){return Nl})),n.d(i,"scaleThreshold",(function(){return Rl})),n.d(i,"scaleTime",(function(){return Wc})),n.d(i,"scaleUtc",(function(){return Jc})),n.d(i,"schemeCategory10",(function(){return td})),n.d(i,"schemeCategory20b",(function(){return nd})),n.d(i,"schemeCategory20c",(function(){return rd})),n.d(i,"schemeCategory20",(function(){return od})),n.d(i,"interpolateCubehelixDefault",(function(){return vd})),n.d(i,"interpolateRainbow",(function(){return Od})),n.d(i,"interpolateWarm",(function(){return wd})),n.d(i,"interpolateCool",(function(){return xd})),n.d(i,"interpolateViridis",(function(){return jd})),n.d(i,"interpolateMagma",(function(){return Ed})),n.d(i,"interpolateInferno",(function(){return Cd})),n.d(i,"interpolatePlasma",(function(){return Td})),n.d(i,"scaleSequential",(function(){return kd}));var a={};n.r(a),n.d(a,"featureGridBrowseData",(function(){return Kz})),n.d(a,"featureGridLayerSelectionInitialization",(function(){return Xz})),n.d(a,"featureGridStartupQuery",(function(){return Zz})),n.d(a,"featureGridSort",(function(){return Qz})),n.d(a,"featureGridUpdateGeometryFilter",(function(){return $z})),n.d(a,"featureGridUpdateTextFilters",(function(){return Jz})),n.d(a,"enableGeometryFilterOnEditMode",(function(){return eB})),n.d(a,"disableMultiSelect",(function(){return tB})),n.d(a,"handleClickOnMap",(function(){return nB})),n.d(a,"handleBoxSelectionDrawEnd",(function(){return rB})),n.d(a,"activateBoxSelectionTool",(function(){return oB})),n.d(a,"deactivateBoxSelectionTool",(function(){return iB})),n.d(a,"selectFeaturesOnMapClickResult",(function(){return aB})),n.d(a,"activateTemporaryChangesEpic",(function(){return sB})),n.d(a,"handleGeometryFilterActivation",(function(){return lB})),n.d(a,"deactivateGeometryFilter",(function(){return uB})),n.d(a,"activateGeometryFilter",(function(){return cB})),n.d(a,"featureGridChangePage",(function(){return dB})),n.d(a,"featureGridReloadPageOnSaveSuccess",(function(){return pB})),n.d(a,"updateSelectedOnSaveOrCloseFeatureGrid",(function(){return fB})),n.d(a,"savePendingFeatureGridChanges",(function(){return hB})),n.d(a,"deleteSelectedFeatureGridFeatures",(function(){return mB})),n.d(a,"handleEditFeature",(function(){return gB})),n.d(a,"handleDrawFeature",(function(){return yB})),n.d(a,"resetEditingOnFeatureGridClose",(function(){return bB})),n.d(a,"closeRightPanelOnFeatureGridOpen",(function(){return vB})),n.d(a,"onFeatureGridGeometryEditing",(function(){return wB})),n.d(a,"deleteGeometryFeature",(function(){return xB})),n.d(a,"triggerDrawSupportOnSelectionChange",(function(){return _B})),n.d(a,"onFeatureGridCreateNewFeature",(function(){return OB})),n.d(a,"setHighlightFeaturesPath",(function(){return SB})),n.d(a,"resetGridOnLocationChange",(function(){return jB})),n.d(a,"resetQueryPanel",(function(){return EB})),n.d(a,"autoCloseFeatureGridEpicOnDrowerOpen",(function(){return CB})),n.d(a,"askChangesConfirmOnFeatureGridClose",(function(){return TB})),n.d(a,"onClearChangeConfirmedFeatureGrid",(function(){return kB})),n.d(a,"onCloseFeatureGridConfirmed",(function(){return AB})),n.d(a,"removeWmsFilterOnGridClose",(function(){return PB})),n.d(a,"autoReopenFeatureGridOnFeatureInfoClose",(function(){return MB})),n.d(a,"onOpenAdvancedSearch",(function(){return IB})),n.d(a,"onFeatureGridZoomAll",(function(){return DB})),n.d(a,"resetControlsOnEnterInEditMode",(function(){return NB})),n.d(a,"closeIdentifyWhenOpenFeatureGrid",(function(){return RB})),n.d(a,"startSyncWmsFilter",(function(){return LB})),n.d(a,"stopSyncWmsFilter",(function(){return FB})),n.d(a,"deactivateSyncWmsFilterOnFeatureGridClose",(function(){return zB})),n.d(a,"syncMapWmsFilter",(function(){return BB})),n.d(a,"virtualScrollLoadFeatures",(function(){return qB})),n.d(a,"replayOnTimeDimensionChange",(function(){return UB})),n.d(a,"hideFeatureGridOnDrawerOpenMobile",(function(){return GB})),n.d(a,"hideDrawerOnFeatureGridOpenMobile",(function(){return HB}));var s=n("./js/epics/index.js"),l=n("./js/extend.js"),u=n("./node_modules/react/index.js"),c=n.n(u),d=n("./node_modules/prop-types/index.js"),p=n.n(d),f=n("./node_modules/react-redux/es/index.js"),h=n("./MapStore2/node_modules/lodash/get.js"),m=n.n(h),g=n("./MapStore2/web/client/components/misc/Portal.jsx"),y=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),b=n("./MapStore2/web/client/components/I18N/Message.jsx"),v=n("./node_modules/react-bootstrap/es/index.js"),w=n("./MapStore2/web/client/actions/controls.js"),x=n("./MapStore2/web/client/actions/layers.js"),_=n("./MapStore2/web/client/utils/PluginsUtils.js");function O(e){return(O="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 S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n0?" toc-head-sections-"+e.length:" toc-head-sections";return c.a.createElement("div",{className:"mapstore-toc-head"+t},c.a.createElement(v.Grid,{fluid:!0},this.props.showTitle?this.renderTitle():null,this.props.showFilter?this.renderFilter():null,this.props.showTools?this.renderTools():null))}}])&&ge(t.prototype,n),r&&ge(t,r),i}(c.a.Component);_e(Oe,"propTypes",{title:p.a.string,filterText:p.a.string,filterPlaceholder:p.a.oneOfType([p.a.object,p.a.string]),showTitle:p.a.bool,showFilter:p.a.oneOfType([p.a.bool,p.a.number]),showTools:p.a.bool,toolbar:p.a.object,onFilter:p.a.func,onClear:p.a.func,filterTooltipClear:p.a.oneOfType([p.a.object,p.a.string])}),_e(Oe,"defaultProps",{title:"",filterText:"",filterPlaceholder:"Filter",showTitle:!0,showFilter:!0,showTools:!0,toolbar:null,onFilter:function(){},onClear:function(){},filterTooltipClear:"Clear"});var Se=Oe,je=n("./MapStore2/web/client/libs/proj4.js"),Ee=n.n(je),Ce=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),Te=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),ke=(n("./MapStore2/web/client/components/TOC/fragments/css/settingsModal.css"),n("./MapStore2/web/client/components/data/template/jsx/Template.jsx")),Ae=n("./MapStore2/web/client/components/misc/Dialog.jsx"),Pe=n("./MapStore2/web/client/components/TOC/fragments/template/index.js"),Me=n("./MapStore2/web/client/utils/StringUtils.js"),Ie=n("./MapStore2/web/client/utils/URLUtils.js"),De=n("./MapStore2/web/client/components/misc/Button.jsx");function Ne(e){return(Ne="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 Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=function(e,n){t.setState({collapsed:Le(Le({},t.state.collapsed),{},He({},e,n))})},i=function(e,n){return c.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},e,c.a.createElement(De.a,{style:{margin:"4px 0 0 4px"},className:"square-button-md no-border",onClick:function(){return o(n,!t.state.collapsed[n])}},c.a.createElement(v.Glyphicon,{glyph:t.state.collapsed[n]?"plus":"minus"})))},a=function(e,t){return"".concat(e,"@item_").concat(t)},s=Object(se.keys)(e).filter((function(e){return"references"!==e})).map((function(n){var o,s,l=e[n],u="".concat(r,".").concat(n),d="toc.layerMetadata.".concat(n),p=Object(ne.f)(t.context.messages,d)===d?c.a.createElement(b.default,{msgId:"toc.layerMetadata.defaultPropName",msgParams:{propName:n}}):c.a.createElement(b.default,{msgId:d}),f=function(e){return c.a.createElement("tr",null,c.a.createElement("td",null,p),c.a.createElement("td",null,e))};if(Object(se.isArray)(l))if(l.length){var h="toc.layerMetadata.itemTitles.".concat(n),m=Object(ne.f)(t.context.messages,h),g=m===h?Object(ne.f)(t.context.messages,"toc.layerMetadata.itemTitles.default"):m,y=l.map((function(e,n){var r=a(u,n);return Object(se.isObject)(e)?t.renderMetadata(e,l.length>1?i(c.a.createElement("h4",null,"".concat(g," #").concat(n+1)),r):null,r):c.a.createElement("li",{key:n},e)}));o=Object(se.isObject)(l[0])?(s=c.a.createElement("div",null,i(c.a.createElement("h4",null,p),u),t.state.collapsed[u]?null:c.a.createElement("div",null,y)),c.a.createElement("tr",null,c.a.createElement("td",{colSpan:"2"},s))):f(c.a.createElement("ul",null,y))}else o=null;else if(Object(se.isString)(l)){var v=Object(Me.b)(l),w=Object(Ie.c)(l);o=f(v||w?c.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:w?l:"mailto:".concat(l)},l):l)}return o})).filter((function(e){return!!e}));return c.a.createElement("div",{style:r?{padding:"8px"}:{}},n,t.state.collapsed[r]?null:c.a.createElement(v.Table,null,c.a.createElement("tbody",null,s)))})),t.state={collapsed:{}},t}return t=i,(n=[{key:"renderEmpty",value:function(){return c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"toc.layerMetadata.emptyMetadata"}))}},{key:"render",value:function(){var e=this.props.model;return Object(se.keys)(e).length?c.a.createElement("div",{style:{maxHeight:"400px",overflow:"auto"},id:e.identifier},this.renderMetadata(e)):this.renderEmpty()}}])&&Fe(t.prototype,n),r&&Fe(t,r),i}(c.a.Component);He(Ve,"propTypes",{model:p.a.object}),He(Ve,"contextTypes",{messages:p.a.object}),He(Ve,"defaultProps",{model:{}});var We=Ve;function Ye(e){return(Ye="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 Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){for(var n=0;n1&0===r.length?"LAYERS":i,i=r.length>1&&!o?"GROUPS":i,i=e.props.selectedLayers.length>0&&e.props.selectedLayers.filter((function(e){return"Error"===e.loadingError})).length===e.props.selectedLayers.length?"".concat(i,"_LOAD_ERROR"):i})),mt(ft(e),"getSelectedGroup",(function(){return e.props.selectedGroups.length>0&&e.props.selectedGroups[e.props.selectedGroups.length-1]})),mt(ft(e),"getSelectedNodeDepth",(function(){return"DESELECT"===e.getStatus()?0:e.getSelectedGroup().id.split(".").length+1})),mt(ft(e),"addLayer",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddLayer(t&&t.id)})),mt(ft(e),"addGroup",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddGroup(t&&t.id)})),mt(ft(e),"browseData",(function(){e.props.onToolsActions.onBrowseData({url:e.props.selectedLayers[0].search.url||e.props.selectedLayers[0].url,name:e.props.selectedLayers[0].name,id:e.props.selectedLayers[0].id})})),mt(ft(e),"download",(function(){var t;e.props.onToolsActions.onDownload({url:(null===(t=e.props.selectedLayers[0].search)||void 0===t?void 0:t.url)||e.props.selectedLayers[0].url,name:e.props.selectedLayers[0].name,id:e.props.selectedLayers[0].id})})),mt(ft(e),"checkBbox",(function(){var t=e.props.selectedLayers.filter((function(e){return e.bbox})).map((function(e){return e.bbox})),n=t.length>0?t.reduce((function(e,t){return e.crs===t.crs?e:{crs:"differentCRS"}})):{crs:"differentCRS"};return!!Object(se.head)(t)&&"differentCRS"!==n.crs&&n.crs})),mt(ft(e),"zoomTo",(function(){var t=e.props.selectedLayers.filter((function(e){return e.bbox})).map((function(e){return e.bbox})),n=t.length>1?t.reduce((function(e,t){return{bounds:{maxx:e.bounds.maxx>t.bounds.maxx?e.bounds.maxx:t.bounds.maxx,maxy:e.bounds.maxy>t.bounds.maxy?e.bounds.maxy:t.bounds.maxy,minx:e.bounds.minx1?"LAYERS":"LAYER"]:c.a.createElement(b.default,{msgId:"toc.epsgNotSupported",msgParams:{epsg:n||" "}}))},c.a.createElement(De.a,{bsStyle:"primary",className:"square-button-md",style:r?{opacity:1,cursor:"pointer"}:{opacity:.5,cursor:"default"},onClick:r?this.zoomTo:function(){}},c.a.createElement(v.Glyphicon,{glyph:"zoom-to"}))):null,!this.props.activateTool.activateSettingsTool||"LAYER"!==t&&"GROUP"!==t&&"LAYER_LOAD_ERROR"!==t||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"settings",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-settings"},this.props.text.settingsTooltip["LAYER_LOAD_ERROR"===t?"LAYER":t])},c.a.createElement(De.a,{active:this.props.settings.expanded,bsStyle:this.props.settings.expanded?"success":"primary",className:"square-button-md",onClick:function(){e.showSettings(t)}},c.a.createElement(v.Glyphicon,{glyph:"wrench"}))),!this.props.activateTool.activateLayerFilterTool||"LAYER"!==t&&"LAYER_LOAD_ERROR"!==t||!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"queryPanel",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-layerFilter"},this.props.text.layerFilterTooltip)},c.a.createElement(De.a,{bsStyle:"primary",className:"square-button-md",onClick:this.props.onToolsActions.onQueryBuilder},c.a.createElement(v.Glyphicon,{glyph:"filter-layer"}))),!this.props.activateTool.activateQueryTool||"LAYER"!==t||!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"featuresGrid",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-featuresGrid"},this.props.text.featuresGridTooltip)},c.a.createElement(De.a,{bsStyle:"primary",className:"square-button-md",onClick:this.browseData},c.a.createElement(v.Glyphicon,{glyph:"features-grid"}))),(!this.props.activateTool.activateRemoveLayer||"LAYER"!==t&&"LAYERS"!==t&&"LAYER_LOAD_ERROR"!==t&&"LAYERS_LOAD_ERROR"!==t)&&(!this.props.activateTool.activateRemoveGroup||"GROUP"!==t&&"GROUPS"!==t&&"GROUP_LOAD_ERROR"!==t&&"GROUPS_LOAD_ERROR"!==t)||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"removeNode",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-trash"},this.props.selectedGroups.length?this.props.text.trashTooltip.GROUP:this.props.text.trashTooltip[this.props.selectedLayers.length>1?"LAYERS":"LAYER"])},c.a.createElement(De.a,{active:this.state.showDeleteDialog,bsStyle:this.props.settings.showDeleteDialog?"success":"primary",className:"square-button-md",onClick:this.displayDeleteDialog},c.a.createElement(v.Glyphicon,{glyph:"trash"}))),!this.isLoading()&&"LAYER_LOAD_ERROR"===t||"LAYERS_LOAD_ERROR"===t?c.a.createElement(Ce.a,{key:"reload",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-reload"},this.props.text.reloadTooltip[this.props.selectedLayers.length>1?"LAYERS":"LAYER"])},c.a.createElement(De.a,{bsStyle:"primary",className:"square-button-md",onClick:this.reload},c.a.createElement(v.Glyphicon,{glyph:"refresh"}))):null,!this.props.activateTool.activateWidgetTool||"LAYER"!==t||1!==this.props.selectedLayers.length||"vector"===this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"widgets",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-widgets"},this.props.text.createWidgetTooltip)},c.a.createElement(De.a,{bsStyle:"primary",className:"square-button-md",onClick:this.props.onToolsActions.onNewWidget},c.a.createElement(v.Glyphicon,{glyph:"stats"}))),!this.props.activateTool.activateDownloadTool||"LAYER"!==t||"wms"!==this.props.selectedLayers[0].type&&!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded?null:c.a.createElement(Ce.a,{key:"downloadTool",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-downloadTool"},this.props.text.downloadToolTooltip)},c.a.createElement(De.a,{bsStyle:this.props.layerdownload.expanded?"success":"primary",className:"square-button-md",onClick:this.download},c.a.createElement(v.Glyphicon,{glyph:"download"}))),!this.props.activateTool.activateMetedataTool||"LAYER"!==t||this.props.settings.expanded||this.props.layerdownload.expanded?null:c.a.createElement(Ce.a,{key:"layerMetadata",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"legend-tooltip-metadata"},this.props.text.layerMetadataTooltip)},c.a.createElement(De.a,{key:"layer-metadata",bsStyle:this.props.layerMetadata.expanded?"success":"primary",className:"square-button-md",onClick:function(){return e.showMetadata()}},c.a.createElement(v.Glyphicon,{glyph:"info-sign"}))),this.props.items.filter((function(n){var r=n.selector;return(void 0===r?function(){return!0}:r)(st(st({},e.props),{},{status:t}))})).map((function(n){var r=n.Component;return c.a.createElement(r,it({},e.props,{status:t}))})),c.a.createElement(Te.a,{ref:"removelayer",options:{animation:!1,className:"modal-fixed"},show:this.state.showDeleteDialog,onHide:this.closeDeleteDialog,onClose:this.closeDeleteDialog,onConfirm:this.removeNodes,titleText:this.props.selectedGroups&&this.props.selectedGroups.length?this.props.text.confirmDeleteLayerGroupText:this.props.text.confirmDeleteText,confirmText:this.props.text.confirmDeleteConfirmText,cancelText:this.props.text.confirmDeleteCancelText,body:this.props.selectedGroups&&this.props.selectedGroups.length?this.props.text.confirmDeleteLayerGroupMessage:this.props.text.confirmDeleteMessage}),o):null}}])&&ut(t.prototype,n),r&&ut(t,r),i}(c.a.Component);mt(gt,"propTypes",{groups:p.a.array,items:p.a.array,selectedLayers:p.a.array,generalInfoFormat:p.a.string,selectedGroups:p.a.array,onToolsActions:p.a.object,text:p.a.object,activateTool:p.a.object,options:p.a.object,style:p.a.object,settings:p.a.object,layerMetadata:p.a.object,layerdownload:p.a.object,maxDepth:p.a.number,metadataTemplate:p.a.oneOfType([p.a.string,p.a.array,p.a.object,p.a.func])}),mt(gt,"defaultProps",{groups:[],items:[],selectedLayers:[],selectedGroups:[],onToolsActions:{onZoom:function(){},onNewWidget:function(){},onBrowseData:function(){},onQueryBuilder:function(){},onUpdate:function(){},onRemove:function(){},onClear:function(){},onSettings:function(){},onUpdateSettings:function(){},onRetrieveLayerData:function(){},onHideSettings:function(){},onReload:function(){},onAddLayer:function(){},onAddGroup:function(){},onDownload:function(){},onGetMetadataRecord:function(){},onHideLayerMetadata:function(){},onShow:function(){},onLayerInfo:function(){}},maxDepth:3,text:{settingsText:"",opacityText:"",elevationText:"",saveText:"",closeText:"",confirmDeleteText:"",confirmDeleteMessage:"",confirmDeleteConfirmText:"",confirmDeleteCancelText:"",createWidgetTooltip:"",addLayerTooltip:"",addLayerToGroupTooltip:"",addGroupTooltip:"",addSubGroupTooltip:"",zoomToTooltip:{LAYER:"",LAYERS:""},settingsTooltip:{LAYER:"",GROUP:""},featuresGridTooltip:"",downloadToolTooltip:"",trashTooltip:{LAYER:"",LAYERS:"",GROUP:""},reloadTooltip:{LAYER:"",LAYERS:""},layerMetadataTooltip:"",layerMetadataPanelTitle:"",layerFilter:"",layerInfoTooltip:""},activateTool:{activateToolsContainer:!0,activateRemoveLayer:!0,activateRemoveGroup:!0,activateZoomTool:!0,activateQueryTool:!0,activateDownloadTool:!0,activateSettingsTool:!0,activateAddLayer:!0,activateAddGroup:!0,includeDeleteButtonInSettings:!1,activateMetedataTool:!0,activateLayerFilterTool:!0,activateLayerInfoTool:!0},options:{modalOptions:{},metadataOptions:{},settingsOptions:{}},style:{chartStyle:{}},settings:{},layerMetadata:{},layerdownload:{},metadataTemplate:null});var yt=gt,bt=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),vt=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),wt=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),xt=n("./MapStore2/web/client/api/CSW.js"),_t=n("./MapStore2/web/client/api/WMS.js"),Ot=n("./MapStore2/web/client/api/WMTS.js"),St=n("./MapStore2/web/client/utils/ConfigUtils.js"),jt=n("./node_modules/xml2js/lib/xml2js.js"),Et=n.n(jt),Ct=n("./MapStore2/web/client/libs/ajax.js"),Tt=n.n(Ct),kt=n("./MapStore2/web/client/utils/SecurityUtils.js"),At=n("./MapStore2/web/client/utils/TMSUtils.js");function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=Object(se.castArray)(Object(se.get)(e,"TileMapService.TileMaps.TileMap",[])),a=o.projection,s=Object(se.get)(o,"options.service.allSRS"),l=i.map((function(t){var n=t.$,r=void 0===n?{}:n;return Mt(Mt({},r),{},{href:Object(kt.cleanAuthParamsFromURL)(r.href),identifier:Object(kt.cleanAuthParamsFromURL)(r.href),format:Object(At.a)(r.href),tmsUrl:Object(kt.cleanAuthParamsFromURL)(e.url)})})).filter((function(e){var t=e.srs;return!(a&&!s)||Nt(t,a)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t,o=e.srs,i=void 0===o?"":o;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())||-1!==i.toLowerCase().indexOf(r.toLowerCase())}));return{numberOfRecordsMatched:l.length,numberOfRecordsReturned:Math.min(n,l.length),nextRecord:t+Math.min(n,l.length)+1,records:l.filter((function(e,r){return r>=t-1&&r0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())})),i=o.filter((function(e,r){return r>=t-1&&r4&&void 0!==arguments[4]?arguments[4]:{},i=o.options,a=i||{},s=a.service,l=void 0===s?{}:s;return"tms"===l.provider&&Ft(e,t,n,r,o),Vt(0,t,n,r,o)},on=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.options,a=i||{},s=a.service,l=void 0===s?{}:s;return"tms"===l.provider?Ft(e,t,n,r,o):Vt(0,t,n,r,o)},an=function(e){return"tms"===e.provider?tn(e):Wt(e)},sn=function(e){return"tms"===e.provider?nn({parseUrl:Lt})(e):function(e){return Bt.Observable.of(e)}(e)},ln=n("./MapStore2/web/client/api/WFS.js");function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=Object(se.castArray)(Object(se.get)(e,'["wfs:WFS_Capabilities"].FeatureTypeList.FeatureType',[])),i=o.map((function(t){var n=t.Name,r=t.Title,o=t.Abstract,i=t.DefaultSRS,a=t.OtherSRS,s=void 0===a?[]:a,l=t["ows:WGS84BoundingBox"],u=l["ows:LowerCorner"].split(" "),c=l["ows:UpperCorner"].split(" "),d={minx:parseFloat(u[0]),miny:parseFloat(u[1]),maxx:parseFloat(c[0]),maxy:parseFloat(c[1])};return{featureType:t,type:"wfs",url:Object(kt.cleanAuthParamsFromURL)(e.url),name:n,title:r,description:o,SRS:[i].concat(pn(s)),defaultSRS:i,boundingBox:{bounds:d,crs:"EPSG:4326"}}})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t,o=e.name,i=void 0===o?"":o,a=e.description;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())||-1!==i.toLowerCase().indexOf(r.toLowerCase())||-1!==a.toLowerCase().indexOf(r.toLowerCase())})),a=i.filter((function(e,r){return r>=t-1&&r0?" toc-body-sections-"+r.length:" toc-body-sections";return c.a.createElement("div",null,c.a.createElement(Se,{title:e.props.mapName,showTitle:e.props.activateMapTitle,showFilter:e.props.activateFilterLayer&&(e.props.groups.filter((function(e){return(e.nodes||[]).length}))||[]).length,showTools:e.props.activateToolsContainer,onClear:function(){e.props.onSelectNode()},onFilter:e.props.onFilter,filterTooltipClear:c.a.createElement(b.default,{msgId:"toc.clearFilter"}),filterPlaceholder:Object(ne.f)(e.context.messages,"toc.filterPlaceholder"),filterText:e.props.filterText,toolbar:c.a.createElement(yt,{items:e.props.items.filter((function(e){return"toolbar"===e.target})),groups:e.props.groups,selectedLayers:e.props.selectedLayers,selectedGroups:e.props.selectedGroups,generalInfoFormat:e.props.generalInfoFormat,settings:e.props.settings,swipeSettings:e.props.swipeSettings,layerMetadata:e.props.layerMetadata,layerdownload:e.props.layerdownload,metadataTemplate:e.props.metadataTemplate,maxDepth:e.props.maxDepth,activateTool:{activateToolsContainer:e.props.activateToolsContainer,activateRemoveLayer:e.props.activateRemoveLayer,activateRemoveGroup:e.props.activateRemoveGroup,activateZoomTool:e.props.activateZoomTool,activateQueryTool:e.props.activateQueryTool,activateDownloadTool:e.props.activateDownloadTool,activateSettingsTool:e.props.activateSettingsTool,activateAddLayer:e.props.activateAddLayerButton&&!e.props.catalogActive,activateAddGroup:e.props.activateAddGroupButton,includeDeleteButtonInSettings:!1,activateMetedataTool:e.props.activateMetedataTool,activateWidgetTool:e.props.activateWidgetTool,activateLayerFilterTool:e.props.activateLayerFilterTool,activateLayerInfoTool:e.props.updatableLayersCount>0&&e.props.activateLayerInfoTool},options:{modalOptions:{},metadataOptions:e.props.metadataOptions,settingsOptions:e.props.settingsOptions},style:{chartStyle:e.props.chartStyle},text:{settingsText:c.a.createElement(b.default,{msgId:"layerProperties.windowTitle"}),opacityText:c.a.createElement(b.default,{msgId:"opacity"}),elevationText:c.a.createElement(b.default,{msgId:"elevation"}),saveText:c.a.createElement(b.default,{msgId:"save"}),closeText:c.a.createElement(b.default,{msgId:"close"}),confirmDeleteText:c.a.createElement(b.default,{msgId:"layerProperties.deleteLayer"}),confirmDeleteMessage:c.a.createElement(b.default,{msgId:"layerProperties.deleteLayerMessage"}),confirmDeleteLayerGroupText:c.a.createElement(b.default,{msgId:"layerProperties.deleteLayerGroup"}),confirmDeleteLayerGroupMessage:c.a.createElement(b.default,{msgId:"layerProperties.deleteLayerGroupMessage"}),confirmDeleteConfirmText:c.a.createElement(b.default,{msgId:"layerProperties.delete"}),confirmDeleteCancelText:c.a.createElement(b.default,{msgId:"cancel"}),addLayer:c.a.createElement(b.default,{msgId:"toc.addLayer"}),addLayerTooltip:c.a.createElement(b.default,{msgId:"toc.addLayer"}),addLayerToGroupTooltip:c.a.createElement(b.default,{msgId:"toc.addLayerToGroup"}),addGroupTooltip:c.a.createElement(b.default,{msgId:"toc.addGroup"}),addSubGroupTooltip:c.a.createElement(b.default,{msgId:"toc.addSubGroup"}),createWidgetTooltip:c.a.createElement(b.default,{msgId:"toc.createWidget"}),zoomToTooltip:{LAYER:c.a.createElement(b.default,{msgId:"toc.toolZoomToLayerTooltip"}),LAYERS:c.a.createElement(b.default,{msgId:"toc.toolZoomToLayersTooltip"})},settingsTooltip:{LAYER:c.a.createElement(b.default,{msgId:"toc.toolLayerSettingsTooltip"}),GROUP:c.a.createElement(b.default,{msgId:"toc.toolGroupSettingsTooltip"})},featuresGridTooltip:c.a.createElement(b.default,{msgId:"toc.toolFeaturesGridTooltip"}),downloadToolTooltip:c.a.createElement(b.default,{msgId:"toc.toolDownloadTooltip"}),trashTooltip:{LAYER:c.a.createElement(b.default,{msgId:"toc.toolTrashLayerTooltip"}),LAYERS:c.a.createElement(b.default,{msgId:"toc.toolTrashLayersTooltip"}),GROUP:c.a.createElement(b.default,{msgId:"toc.toolTrashGroupTooltip"})},reloadTooltip:{LAYER:c.a.createElement(b.default,{msgId:"toc.toolReloadLayerTooltip"}),LAYERS:c.a.createElement(b.default,{msgId:"toc.toolReloadLayersTooltip"})},layerMetadataTooltip:c.a.createElement(b.default,{msgId:"toc.layerMetadata.toolLayerMetadataTooltip"}),layerMetadataPanelTitle:c.a.createElement(b.default,{msgId:"toc.layerMetadata.layerMetadataPanelTitle"}),layerFilterTooltip:c.a.createElement(b.default,{msgId:"toc.layerFilterTooltip"}),layerInfoTooltip:c.a.createElement(b.default,{msgId:"toc.layerInfoTooltip"})},onToolsActions:{onZoom:e.props.onZoomToExtent,onNewWidget:e.props.onNewWidget,onBrowseData:e.props.onBrowseData,onQueryBuilder:e.props.onQueryBuilder,onDownload:e.props.onDownload,onUpdate:e.props.updateNode,onRemove:e.props.removeNode,onClear:e.props.onSelectNode,onSettings:e.props.onSettings,onUpdateSettings:e.props.updateSettings,onRetrieveLayerData:e.props.retrieveLayerData,onHideSettings:e.props.hideSettings,onReload:e.props.refreshLayerVersion,onAddLayer:e.props.onAddLayer,onAddGroup:e.props.onAddGroup,onGetMetadataRecord:e.props.onGetMetadataRecord,onHideLayerMetadata:e.props.hideLayerMetadata,onShow:e.props.layerPropertiesChangeHandler,onLayerInfo:e.props.onLayerInfo}})}),c.a.createElement("div",{className:"mapstore-toc"+o},e.props.noFilterResults&&e.props.filterText?c.a.createElement("div",null,c.a.createElement("div",{className:"toc-filter-no-results"},c.a.createElement(b.default,{msgId:"toc.noFilteredResults"}))):c.a.createElement(pe.a,{onError:e.props.onError,onSort:!e.props.filterText&&e.props.activateSortLayer?e.props.onSort:null,filter:e.getNoBackgroundLayers,nodes:e.props.filteredGroups},c.a.createElement(wt.a,{groupElement:t,layerElement:n}))))})),e}return t=i,(n=[{key:"render",value:function(){return this.props.groups?this.renderTOC():c.a.createElement("div",null)}}])&&Cn(t.prototype,n),r&&Cn(t,r),i}(c.a.Component);In(Ln,"propTypes",{id:p.a.number,items:p.a.array,buttonContent:p.a.node,groups:p.a.array,settings:p.a.object,swipeSettings:p.a.object,layerMetadata:p.a.object,layerdownload:p.a.object,metadataTemplate:p.a.oneOfType([p.a.string,p.a.array,p.a.object,p.a.func]),refreshMapEnabled:p.a.bool,groupStyle:p.a.object,groupPropertiesChangeHandler:p.a.func,layerPropertiesChangeHandler:p.a.func,onToggleGroup:p.a.func,onToggleLayer:p.a.func,onContextMenu:p.a.func,onBrowseData:p.a.func,onQueryBuilder:p.a.func,onDownload:p.a.func,onSelectNode:p.a.func,selectedNodes:p.a.array,onZoomToExtent:p.a.func,retrieveLayerData:p.a.func,onSort:p.a.func,onSettings:p.a.func,onRefreshLayer:p.a.func,onNewWidget:p.a.func,hideSettings:p.a.func,updateSettings:p.a.func,updateNode:p.a.func,removeNode:p.a.func,activateTitleTooltip:p.a.bool,showFullTitleOnExpand:p.a.bool,activateOpacityTool:p.a.bool,activateSortLayer:p.a.bool,activateFilterLayer:p.a.bool,activateMapTitle:p.a.bool,activateToolsContainer:p.a.bool,activateRemoveLayer:p.a.bool,activateRemoveGroup:p.a.bool,activateLegendTool:p.a.bool,activateZoomTool:p.a.bool,activateQueryTool:p.a.bool,activateDownloadTool:p.a.bool,activateSettingsTool:p.a.bool,activateMetedataTool:p.a.bool,activateWidgetTool:p.a.bool,activateLayerInfoTool:p.a.bool,maxDepth:p.a.number,visibilityCheckType:p.a.string,settingsOptions:p.a.object,chartStyle:p.a.object,currentZoomLvl:p.a.number,scales:p.a.array,layerOptions:p.a.object,metadataOptions:p.a.object,spatialOperations:p.a.array,spatialMethodOptions:p.a.array,groupOptions:p.a.object,currentLocale:p.a.string,currentLocaleLanguage:p.a.string,onFilter:p.a.func,filterText:p.a.string,generalInfoFormat:p.a.string,selectedLayers:p.a.array,selectedGroups:p.a.array,mapName:p.a.string,filteredGroups:p.a.array,noFilterResults:p.a.bool,onAddLayer:p.a.func,onAddGroup:p.a.func,onError:p.a.func,onGetMetadataRecord:p.a.func,hideLayerMetadata:p.a.func,activateAddLayerButton:p.a.bool,activateAddGroupButton:p.a.bool,activateLayerFilterTool:p.a.bool,catalogActive:p.a.bool,refreshLayerVersion:p.a.func,hideOpacityTooltip:p.a.bool,layerNodeComponent:p.a.func,groupNodeComponent:p.a.func,isLocalizedLayerStylesEnabled:p.a.bool,onLayerInfo:p.a.func,onSetSwipeActive:p.a.func,updatableLayersCount:p.a.number,onSetSwipeMode:p.a.func}),In(Ln,"contextTypes",{messages:p.a.object}),In(Ln,"defaultProps",{items:[],groupPropertiesChangeHandler:function(){},layerPropertiesChangeHandler:function(){},retrieveLayerData:function(){},onToggleGroup:function(){},onToggleLayer:function(){},onContextMenu:function(){},onToggleQuery:function(){},onZoomToExtent:function(){},onSettings:function(){},onRefreshLayer:function(){},onNewWidget:function(){},updateNode:function(){},removeNode:function(){},onSelectNode:function(){},selectedNodes:[],activateOpacityTool:!0,activateTitleTooltip:!0,showFullTitleOnExpand:!1,activateSortLayer:!0,activateFilterLayer:!0,activateMapTitle:!0,activateToolsContainer:!0,activateLegendTool:!0,activateZoomTool:!0,activateSettingsTool:!0,activateMetedataTool:!0,activateRemoveLayer:!0,activateRemoveGroup:!0,activateQueryTool:!0,activateDownloadTool:!0,activateWidgetTool:!1,activateLayerFilterTool:!1,activateLayerInfoTool:!0,maxDepth:3,visibilityCheckType:"glyph",settingsOptions:{includeCloseButton:!1,closeGlyph:"1-close",buttonSize:"small",showFeatureInfoTab:!0},layerOptions:{},metadataOptions:{},groupOptions:{},spatialOperations:[{id:"INTERSECTS",name:"queryform.spatialfilter.operations.intersects"},{id:"BBOX",name:"queryform.spatialfilter.operations.bbox"},{id:"CONTAINS",name:"queryform.spatialfilter.operations.contains"},{id:"WITHIN",name:"queryform.spatialfilter.operations.within"}],spatialMethodOptions:[{id:"Viewport",name:"queryform.spatialfilter.methods.viewport"},{id:"BBOX",name:"queryform.spatialfilter.methods.box"},{id:"Circle",name:"queryform.spatialfilter.methods.circle"},{id:"Polygon",name:"queryform.spatialfilter.methods.poly"}],currentLocale:"en-US",filterText:"",selectedLayers:[],selectedGroups:[],mapName:"",filteredGroups:[],noFilterResults:!1,onAddLayer:function(){},onAddGroup:function(){},onError:function(){},onGetMetadataRecord:function(){},hideLayerMetadata:function(){},activateAddLayerButton:!1,activateAddGroupButton:!1,catalogActive:!1,refreshLayerVersion:function(){},metadataTemplate:null,onLayerInfo:function(){},onSetSwipeMode:function(){}});var Fn=Object(L.withPropsOnChange)(["user","addLayersPermissions","activateAddLayerButton","removeLayersPermissions","activateRemoveLayer","sortingPermission","activateRemoveLayer","addGroupsPermissions","activateAddGroupButton","removeGroupsPermissions","activateRemoveGroup","layerInfoToolPermissions","activateLayerInfoTool"],(function(e){var t=e.addLayersPermissions,n=void 0===t||t,r=e.removeLayersPermissions,o=void 0===r||r,i=e.sortingPermissions,a=void 0===i||i,s=e.addGroupsPermissions,l=void 0===s||s,u=e.removeGroupsPermissions,c=void 0===u||u,d=e.layerInfoToolPermissions,p=void 0!==d&&d,f=e.activateAddLayerButton,h=e.activateRemoveLayer,m=e.activateSortLayer,g=e.activateAddGroupButton,y=e.activateRemoveGroup,b=e.activateLayerInfoTool,v=e.user,w=function(e,t){var n=v&&"ADMIN"===v.role||!1;return!(!e&&!n)&&t};return{activateAddLayerButton:w(n,f),activateRemoveLayer:w(o,h),activateSortLayer:w(a,m),activateAddGroupButton:w(l,g),activateRemoveGroup:w(c,y),activateLayerInfoTool:w(p,b)}})),zn=Object(L.branch)((function(e){var t=e.checkPlugins;return void 0===t||t}),Object(L.withPropsOnChange)(["items","activateAddLayerButton","activateAddGroupButton","activateLayerFilterTool","activateSettingsTool","FeatureEditor","activateLayerInfoTool"],(function(e){var t=e.items,n=void 0===t?[]:t,r=e.activateAddLayerButton,o=void 0===r||r,i=e.activateAddGroupButton,a=void 0===i||i,s=e.activateQueryTool,l=void 0===s||s,u=e.activateSettingsTool,c=void 0===u||u,d=e.activateLayerFilterTool,p=void 0===d||d,f=e.activateWidgetTool,h=void 0===f||f,m=e.activateLayerInfoTool,g=void 0===m||m,y=e.activateDownloadTool,b=void 0===y||y;return{activateAddLayerButton:o&&!!Object(se.find)(n,{name:"MetadataExplorer"})||!1,activateAddGroupButton:a&&!!Object(se.find)(n,{name:"AddGroup"})||!1,activateSettingsTool:c&&!!Object(se.find)(n,{name:"TOCItemsSettings"})||!1,activateQueryTool:l&&!!Object(se.find)(n,{name:"FeatureEditor"})||!1,activateLayerFilterTool:p&&!!Object(se.find)(n,{name:"FilterLayer"})||!1,activateWidgetTool:h&&!!Object(se.find)(n,{name:"WidgetBuilder"})&&!!Object(se.find)(n,{name:"Widgets"}),activateLayerInfoTool:g&&!!Object(se.find)(n,{name:"LayerInfo"})||!1,activateDownloadTool:b&&!!Object(se.find)(n,{name:"LayerDownload"})||!1}}))),Bn=Object(f.connect)(Rn,{groupPropertiesChangeHandler:x.F,layerPropertiesChangeHandler:x.H,retrieveLayerData:q.b,onToggleGroup:Object(ee.toggleByType)("groups",x.ab),onToggleLayer:Object(ee.toggleByType)("layers",x.ab),onContextMenu:x.J,onBrowseData:x.E,onQueryBuilder:function(){return{type:"LAYER_FILTER:OPEN_QUERY_BUILDER"}},onDownload:x.K,onSort:x.T,onSettings:x.Y,onZoomToExtent:U.I,hideSettings:x.N,updateSettings:x.db,updateNode:x.cb,removeNode:x.V,onSelectNode:x.W,onFilter:x.L,onAddLayer:w.f.bind(null,"metadataexplorer","enabled",!0,"group"),onAddGroup:w.f.bind(null,"addgroup","enabled",!0,"parent"),onGetMetadataRecord:ue.U,onError:G.f,hideLayerMetadata:x.M,onNewWidget:function(){return Object(le.G)()},refreshLayerVersion:x.U,onLayerInfo:w.g.bind(null,"layerinfo","enabled",!0,!1)})(Object(L.compose)(Fn,zn)(Ln)),qn={TOCPlugin:oe()(Bn,{Toolbar:{name:"toc",position:7,exclusive:!0,panel:!0,help:c.a.createElement(b.default,{msgId:"helptexts.layerSwitcher"}),tooltip:"layers",wrap:!0,title:"layers",icon:c.a.createElement(v.Glyphicon,{glyph:"1-layer"}),priority:1},DrawerMenu:{name:"toc",position:1,glyph:"1-layer",icon:c.a.createElement("img",{src:ae.a}),buttonConfig:{buttonClassName:"square-button no-border",tooltip:"toc.layers"},priority:2}}),reducers:{queryform:n("./MapStore2/web/client/reducers/queryform.js").default,query:n("./MapStore2/web/client/reducers/query.js").default},epics:n("./MapStore2/web/client/epics/catalog.js").default(On)},Un=n("./MapStore2/web/client/plugins/Map.jsx"),Gn=n("./MapStore2/web/client/plugins/Toolbar.jsx"),Hn=(n("./MapStore2/web/client/plugins/drawer/drawer.css"),n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx")),Vn=n("./MapStore2/web/client/selectors/maplayout.js"),Wn=n("./node_modules/react-sidebar/dist-modules/index.js"),Yn=n.n(Wn),Kn=n("./node_modules/react-resizable/index.js");function Xn(e){return(Xn="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 Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var n=0;n0?c.a.createElement("div",{id:this.props.id},c.a.createElement(Rr,Sr({},this.props,{id:"drawer-menu-button"})),c.a.createElement(Nr,Sr({single:this.props.singleSection},this.props.menuOptions,{title:c.a.createElement(_r.a,{msgId:"menu"}),alignment:"left"}),this.renderItems())):null}}])&&Er(t.prototype,n),r&&Er(t,r),i}(c.a.Component);Mr(Lr,"propTypes",{items:p.a.array,active:p.a.string,toggleMenu:p.a.func,id:p.a.string,glyph:p.a.string,buttonStyle:p.a.string,menuOptions:p.a.object,singleSection:p.a.bool,buttonClassName:p.a.string,menuButtonStyle:p.a.object,disabled:p.a.bool}),Mr(Lr,"contextTypes",{messages:p.a.object,router:p.a.object}),Mr(Lr,"defaultProps",{id:"mapstore-drawermenu",items:[],toggleMenu:function(){},glyph:"1-layer",buttonStyle:"primary",menuOptions:{},singleSection:!0,buttonClassName:"square-button ms-drawer-menu-button",disabled:!1});var Fr=Object(f.connect)((function(e){return{active:e.controls&&e.controls.drawer&&e.controls.drawer.active,disabled:e.controls&&e.controls.drawer&&e.controls.drawer.disabled}}),{toggleMenu:w.h.bind(null,"drawer",null)})(Lr),zr={DrawerMenuPlugin:oe()(Fr,{disablePluginIf:"{state('featuregridmode') === 'EDIT'}",FloatingLegend:{priority:1,name:"drawer-menu",button:Rr}}),reducers:{}},Br=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),qr=n("./MapStore2/web/client/plugins/MapLoading.jsx"),Ur=n("./MapStore2/web/client/plugins/OmniBar.jsx"),Gr=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),Hr=n("./MapStore2/web/client/plugins/FullScreen.jsx"),Vr=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),Wr=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),Yr=n("./MapStore2/web/client/plugins/Expander.jsx"),Kr=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),Xr=n("./node_modules/redux-undo/lib/index.js"),Zr=n.n(Xr);function Qr(e){return(Qr="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 $r(){return($r=Object.assign||function(e){for(var t=1;t0)}}),{onClick:_o})(xo),jo=Object(f.connect)((function(e){return{disabled:!((e.map&&e.map.past&&{past:e.map.past,future:e.map.future}||{past:[],future:[]}).future.length>0)}}),{onClick:Oo})(lo),Eo={UndoPlugin:oe()(So,{Toolbar:{name:"undo",position:5,tool:!0,tooltip:"history.undoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-backward"}),help:c.a.createElement(_r.a,{msgId:"helptexts.historyundo"}),priority:1}}),RedoPlugin:oe()(jo,{Toolbar:{name:"redo",position:6,tool:!0,tooltip:"history.redoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-forward"}),help:c.a.createElement(_r.a,{msgId:"helptexts.historyredo"}),priority:1}}),reducers:{}},Co=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),To=n("./MapStore2/web/client/plugins/MapFooter.jsx"),ko=n("./MapStore2/web/client/plugins/Print.jsx"),Ao=n("./MapStore2/web/client/actions/annotations.js"),Po=n("./MapStore2/web/client/actions/measurement.js"),Mo=n("./MapStore2/web/client/selectors/measurement.js"),Io=n("./node_modules/react-widgets/lib/index.js"),Do=n("./node_modules/uuid/v1.js"),No=n.n(Do),Ro=n("./MapStore2/web/client/utils/FileUtils.js"),Lo=n("./MapStore2/web/client/utils/MeasurementUtils.js"),Fo=n("./MapStore2/web/client/utils/MeasureUtils.js"),zo=n("./MapStore2/web/client/components/I18N/Number.jsx"),Bo=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),qo=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),Uo=n("./node_modules/react-select/dist/react-select.es.js"),Go=n("./MapStore2/web/client/components/misc/enhancers/draggableContainer.jsx"),Ho=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),Vo=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),Wo=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),Yo=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx"),Ko=function(e,t,n){return Object(se.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?Object(Fo.convertUom)(parseFloat(e),t,n):e},Xo=function(e,t,n){return Object(se.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat(Object(Fo.convertUom)(e,n,t).toFixed(4)):e},Zo=Object(L.compose)(Object(L.defaultProps)({valueUom:"m",displayUom:"m",units:[{value:"degrees",label:"deg",originUom:"degrees"},{value:"ft",label:"ft",originUom:"m"},{value:"m",label:"m",originUom:"m"},{value:"km",label:"km",originUom:"m"},{value:"mi",label:"mi",originUom:"m"},{value:"nm",label:"nm",originUom:"m"}]}),Object(L.withStateHandlers)((function(e){var t=e.displayUom;return{uom:void 0===t?"nm":t}}),{setUom:function(){return function(e){return{uom:e}}}}),Object(L.withState)("localValue","setLocalValue"),Object(L.withPropsOnChange)(["value","localValue","uom","valueUom"],(function(e){var t=e.value,n=e.localValue,r=e.uom,o=e.valueUom;return{value:t===Ko(n,r,o)?n:Xo(t,r,o)}})),Object(L.withHandlers)({onChange:function(e){var t=e.uom,n=e.projection,r=e.valueUom,o=e.onChange,i=void 0===o?function(){}:o,a=e.setLocalValue,s=void 0===a?function(){}:a;return function(e){s(e),i(Ko(e,t,r),n)}}}))((function(e){var t=e.value,n=e.units,r=void 0===n?[]:n,o=e.uom,i=e.projection,a=void 0===i?"EPSG:3857":i,s=e.style,l=void 0===s?{display:"inline-flex",width:"100%"}:s,u=e.setUom,d=void 0===u?function(){}:u,p=e.onChange,f=void 0===p?function(){}:p,h=Object(Wo.getUnits)(a);return c.a.createElement(v.FormGroup,{style:l},c.a.createElement(Yo.a,{value:t,placeholder:"radius",name:"radius",onChange:function(e){return f(e,o)},step:1,type:"number"}),c.a.createElement(v.FormControl,{componentClass:"select",placeholder:"select",value:o,onChange:function(e){return d(e.target.value)},style:{width:85}},r.filter((function(e){var t=e.originUom;return h===t})).map((function(e){return c.a.createElement("option",{key:e.value,value:e.value},e.label)}))))}));function Qo(e){return(Qo="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 $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(t&&t.length){var o=t.filter(Ho.g);return n?o.length>e.props.componentsValidation[e.props.type].min||o.length>=e.props.componentsValidation[e.props.type].min&&!Object(Ho.g)(t[r]):o.length>=e.props.componentsValidation[e.props.type].min}return!1})),ci(li(e),"validateCircle",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.radius;if(t&&t.length){var r=Object(se.head)(t);return!Object(se.isNaN)(parseFloat(n))&&Object(Ho.g)(r)}return!1})),ci(li(e),"validateText",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.valueText;if(t&&t.length){var r=Object(se.head)(t);return!!n&&Object(Ho.g)(r)}return!1})),ci(li(e),"isValid",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1?arguments[1]:void 0;return e[e.props.componentsValidation[e.props.type].validation](t,!1,n)})),ci(li(e),"addCoordPolygon",(function(t){if("Polygon"===e.props.type){var n=t.filter(Ho.g);return t.concat([n.length?n[0]:{lat:"",lon:""}])}return t})),ci(li(e),"change",(function(t,n){var r=e.props.components,o=Object(se.isNaN)(parseFloat(n.lat))?"":parseFloat(n.lat),i=Object(se.isNaN)(parseFloat(n.lon))?"":parseFloat(n.lon);r[t]={lat:o,lon:i};var a=e.addCoordPolygon(r);e.props.onChange(a,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection),e.isValid(r)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(r[t]):((e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(null),e.props.onSetInvalidSelected("coords",r.map(Ho.d)))})),e}return t=i,(n=[{key:"renderCircle",value:function(){var e=this;return c.a.createElement("div",{style:{flex:1,overflowY:"auto",padding:"0 10px"}},c.a.createElement("div",null,c.a.createElement(v.FormGroup,{validationState:this.getValidationStateRadius(this.props.properties.radius)},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"annotations.editor.radius"})),c.a.createElement(Zo,ni({placeholder:"radius"},this.props.measureOptions,{value:this.props.properties.radius,projection:this.props.mapProjection,name:"radius",onChange:function(t,n){e.isValid(e.props.components,t)?e.props.onChangeRadius(parseFloat(t),e.props.components.map(Ho.d),n):""!==t?e.props.onChangeRadius(parseFloat(t),[],n):(e.props.onChangeRadius(null,e.props.components.map(Ho.d),n),e.props.onSetInvalidSelected("radius",e.props.components.map(Ho.d)))},step:1,type:"number"})))))}},{key:"render",value:function(){var e=this,t=this.props.features[this.props.currentFeature||0],n=Object(se.get)(t,"geometry.textLabels",[]),r=Object(se.get)(t,"properties.values",[]),o=this.props,i=o.componentsValidation,a=o.type,s=ei(this.props.components),l=s.filter(Ho.g).length===s.length,u=this[i[a].validation]()&&l,d=[{value:"decimal",text:c.a.createElement(b.default,{msgId:"annotations.editor.decimal"})},{value:"aeronautical",text:c.a.createElement(b.default,{msgId:"annotations.editor.aeronautical"})}],p=[{glyph:u?"ok-sign text-success":"exclamation-mark text-danger",tooltipId:u?"annotations.editor.valid":i[a].notValid,visible:!0},{Element:function(){return c.a.createElement(pi,{noCaret:!0,title:c.a.createElement(di,{glyph:"cog"}),pullRight:!0,className:"square-button-md no-border",tooltip:"Format"},d.map((function(t){var n=t.text,r=t.value;return c.a.createElement(v.MenuItem,{active:e.props.format===r,key:r,onClick:function(){return e.props.onChangeFormat(r)}},n)})))}},{glyph:"plus",tooltipId:"annotations.editor.add",visible:!i[a].add||!i[a].max||this.props.components.length!==i[a].max,onClick:function(){var t=ei(e.props.components);t=t.concat([{lat:"",lon:""}]),e.props.onChange(t,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection)}}];return c.a.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1}},c.a.createElement("div",{className:"measure-feature-selector"},c.a.createElement("div",null,this.props.showFeatureSelector?c.a.createElement(Uo.default,{value:this.props.currentFeature,options:[].concat(ei(this.props.features.map((function(t,n){var r=Object(se.get)(t,"properties.values",[]),o="bearing"===(r[0]||{}).type?"Bearing":t.geometry.type;if(o!==e.props.type)return null;var i="LineString"===o?"Length":"Bearing"===o?"Bearing":"Area",a=r.length>0?"".concat(i," ").concat(r[0].formattedValue):"",s=r.length>1&&"Polygon"===o?", Perimeter: ".concat(r[1].formattedValue):"";return{label:"".concat(o," (").concat(a).concat(s,")"),value:n}}))),[{label:Object(ne.f)(this.context.messages,"annotations.editor.newFeature"),value:this.props.features.length}]).filter((function(e){return!!e})),onChange:function(t){return e.props.onChangeCurrentFeature(null==t?void 0:t.value)}}):null),c.a.createElement("div",null,c.a.createElement(qo.a,{btnGroupProps:{className:"pull-right"},btnDefaultProps:{className:"square-button-md no-border"},buttons:p}))),"Circle"===this.props.type&&this.renderCircle(),"Circle"===this.props.type&&c.a.createElement("div",{style:{flex:1,overflowY:"auto",paddingLeft:10,marginTop:10}},c.a.createElement("div",null,c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"annotations.editor.center"})))),c.a.createElement("div",{className:"coordinates-row-container"},this.props.components.map((function(t,o){return c.a.createElement(c.a.Fragment,null,e.props.showLengthAndBearingLabel&&c.a.createElement("div",{className:"label-texts"},c.a.createElement("span",null,e.renderLabelTexts(o,{textLabels:n,featurePropValue:r}))),c.a.createElement(Vo.a,{format:e.props.format,aeronauticalOptions:e.props.aeronauticalOptions,sortId:o,key:o+" key",renderer:e.props.renderer,isDraggable:e.props.isDraggable,isDraggableEnabled:e.props.isDraggable&&e[i[a].validation](),showDraggable:e.props.isDraggable&&!("Point"===e.props.type||"Text"===e.props.type||"Circle"===e.props.type),formatVisible:!1,removeVisible:i[a].remove,removeEnabled:e[i[a].validation](e.props.components,i[a].remove,o),onSubmit:e.change,onMouseEnter:function(t){(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(t)},onMouseLeave:function(){(e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(null)},onSort:function(t,n){var r=e.props.components.reduce((function(r,o,i){return t===i?[].concat(ei(r),t>n?[Jo({},o),Object(se.head)(e.props.components.filter((function(e,t){return t===n})))]:[Object(se.head)(e.props.components.filter((function(e,t){return t===n}))),Jo({},o)]):n===i?ei(r):[].concat(ei(r),[Jo({},o)])}),[]).filter((function(e){return e}));e.isValid(r)?e.props.onChange(r):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(Ho.d))},idx:o,component:t,onRemove:function(){var t=e.props.components.filter((function(e,t){return t!==o}));e.isValid(t)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type&&o!==t.length||"Polygon"===e.props.type?e.props.onHighlightPoint(t[o]):e.props.onHighlightPoint(null),e.props.onChange(t)):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(Ho.d))}}))}))),(!this.props.components||0===this.props.components.length)&&c.a.createElement("div",{className:"text-center",style:{padding:15,paddingBottom:30}},c.a.createElement("i",null,c.a.createElement(b.default,{msgId:"annotations.editor.addByClick"}))))}}])&&oi(t.prototype,n),r&&oi(t,r),i}(c.a.Component);ci(fi,"propTypes",{components:p.a.array,measureOptions:p.a.object,onSetInvalidSelected:p.a.func,onChange:p.a.func,onChangeRadius:p.a.func,onHighlightPoint:p.a.func,onChangeText:p.a.func,onChangeFormat:p.a.func,onChangeCurrentFeature:p.a.func,format:p.a.string,aeronauticalOptions:p.a.object,componentsValidation:p.a.object,transitionProps:p.a.object,properties:p.a.object,mapProjection:p.a.string,features:p.a.array,currentFeature:p.a.number,showFeatureSelector:p.a.bool,type:p.a.string,isDraggable:p.a.bool,isMouseEnterEnabled:p.a.bool,isMouseLeaveEnabled:p.a.bool,showLengthAndBearingLabel:p.a.bool,renderer:p.a.string}),ci(fi,"contextTypes",{messages:p.a.object}),ci(fi,"defaultProps",{components:[],measureOptions:{},onChange:function(){},onChangeRadius:function(){},onHighlightPoint:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeCurrentFeature:function(){},onSetInvalidSelected:function(){},componentsValidation:{Bearing:{min:2,max:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Point:{min:1,max:1,add:!0,remove:!1,validation:"validateCoordinates",notValid:"annotations.editor.notValidMarker"},Circle:{min:1,max:1,add:!0,remove:!1,validation:"validateCircle",notValid:"annotations.editor.notValidCircle"},Text:{min:1,max:1,add:!0,remove:!1,validation:"validateText",notValid:"annotations.editor.notValidText"}},transitionProps:{transitionName:"switch-panel-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300},features:[],isDraggable:!0,isMouseEnterEnabled:!1,isMouseLeaveEnabled:!1,properties:{},type:"Point"});var hi=Object(Go.a)(fi);function mi(e){return(mi="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 gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yi(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Object(Fo.getFormattedBearingValue)(Object(se.round)(e||0,6),t)},onChangeUom:function(){},onChangeFormat:function(){},onMount:function(){},onUpdateOptions:function(){},onAddAsLayer:function(){}});var ji=Si,Ei=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx");function Ci(e){return(Ci="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 Ti(){return(Ti=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pi(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?[c.a.createElement(v.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Nav,{bsStyle:"tabs",activeKey:o,justified:!0},X.map((function(e){return c.a.createElement($i,{key:"ms-tab-settings-"+e.id,tooltip:c.a.createElement(b.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){k(e.id),e.onClick&&e.onClick()}},c.a.createElement(v.Glyphicon,{glyph:e.glyph}))})))))]:[]))},X.filter((function(e){return e.id&&e.id===o})).filter((function(e){return e.Component})).map((function(t){return c.a.createElement(t.Component,Xi({},e,Q[t.id],{key:"ms-tab-settings-body-"+t.id,containerWidth:d,element:m,groups:f,nodeType:x.nodeType,settings:x,retrieveLayerData:I,onChange:function(e,t){return Object(se.isObject)(e)?P(e,L):P(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t),L)},isLocalizedLayerStylesEnabled:J,currentLocaleLanguage:l}))}))),c.a.createElement(g.a,null,c.a.createElement(y.a,{fade:!0,show:z,title:c.a.createElement(b.default,{msgId:"layerProperties.changedSettings"}),size:"xs",onClose:function(){return N(!1)},buttons:[{bsStyle:"primary",text:c.a.createElement(b.default,{msgId:"close"}),onClick:function(){return j(!0,te)}},{bsStyle:"primary",text:c.a.createElement(b.default,{msgId:"save"}),onClick:function(){return O(te)}}]},c.a.createElement("div",{className:"ms-alert"},c.a.createElement("div",{className:"ms-alert-center"},c.a.createElement(b.default,{msgId:"layerProperties.changedSettingsAlert"}))))))};Ji.contextTypes={plugins:p.a.object,pluginsConfig:p.a.array,loadedPlugins:p.a.object};var ea=Ji,ta=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),na=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),ra=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),oa=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),ia=n("./MapStore2/web/client/utils/MapInfoUtils.js"),aa=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),sa=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),la=n("./node_modules/react-nouislider/dist/react-nouislider.common.js"),ua=n.n(la);n("./node_modules/recharts/node_modules/core-js/es6/math.js");if(!Object.setPrototypeOf&&!{}.__proto__){var ca=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:ca.call(Object,e)}}var da=n("./node_modules/recharts/node_modules/prop-types/index.js"),pa=n.n(da),fa=n("./node_modules/classnames/index.js"),ha=n.n(fa),ma=n("./MapStore2/node_modules/lodash/isNil.js"),ga=n.n(ma),ya=n("./MapStore2/node_modules/lodash/isString.js"),ba=n.n(ya),va=n("./MapStore2/node_modules/lodash/isObject.js"),wa=n.n(va),xa=n("./MapStore2/node_modules/lodash/isFunction.js"),_a=n.n(xa),Oa=n("./MapStore2/node_modules/lodash/isArray.js"),Sa=n.n(Oa),ja=n("./MapStore2/node_modules/lodash/sortBy.js"),Ea=n.n(ja),Ca=n("./MapStore2/node_modules/lodash/isNaN.js"),Ta=n.n(Ca),ka=n("./MapStore2/node_modules/lodash/isNumber.js"),Aa=n.n(ka),Pa=function(e,t){return et?1:e>=t?0:NaN},Ma=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Pa(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Ia=Ma(Pa),Da=Ia.right,Na=(Ia.left,Da);var Ra=function(e){return null===e?NaN:+e},La=Array.prototype,Fa=(La.slice,La.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t=0?(i>=za?10:i>=Ba?5:i>=qa?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=za?10:i>=Ba?5:i>=qa?2:1)}(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s=za?o*=10:i>=Ba?o*=5:i>=qa&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function Va(){}function Wa(e,t){var n=new Va;if(e instanceof Va)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Os(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Os(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ps.exec(e))?new Es(t[1],t[2],t[3],1):(t=fs.exec(e))?new Es(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hs.exec(e))?Os(t[1],t[2],t[3],t[4]):(t=ms.exec(e))?Os(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gs.exec(e))?As(t[1],t[2]/100,t[3]/100,1):(t=ys.exec(e))?As(t[1],t[2]/100,t[3]/100,t[4]):bs.hasOwnProperty(e)?_s(bs[e]):"transparent"===e?new Es(NaN,NaN,NaN,0):null}function _s(e){return new Es(e>>16&255,e>>8&255,255&e,1)}function Os(e,t,n,r){return r<=0&&(e=t=n=NaN),new Es(e,t,n,r)}function Ss(e){return e instanceof ss||(e=xs(e)),e?new Es((e=e.rgb()).r,e.g,e.b,e.opacity):new Es}function js(e,t,n,r){return 1===arguments.length?Ss(e):new Es(e,t,n,null==r?1:r)}function Es(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Cs(){return"#"+ks(this.r)+ks(this.g)+ks(this.b)}function Ts(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ks(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function As(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ms(e,t,n,r)}function Ps(e){if(e instanceof Ms)return new Ms(e.h,e.s,e.l,e.opacity);if(e instanceof ss||(e=xs(e)),!e)return new Ms;if(e instanceof Ms)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new Ms(a,s,l,e.opacity)}function Ms(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Is(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ds(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}is(ss,xs,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:vs,formatHex:vs,formatHsl:function(){return Ps(this).formatHsl()},formatRgb:ws,toString:ws}),is(Es,js,as(ss,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Es(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Es(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cs,formatHex:Cs,formatRgb:Ts,toString:Ts})),is(Ms,(function(e,t,n,r){return 1===arguments.length?Ps(e):new Ms(e,t,n,null==r?1:r)}),as(ss,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ms(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ms(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Es(Is(e>=240?e-240:e+120,o,r),Is(e,o,r),Is(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ns=function(e){return function(){return e}};function Rs(e,t){return function(n){return e+n*t}}function Ls(e){return 1==(e=+e)?Fs:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ns(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?Rs(e,n):Ns(isNaN(e)?t:e)}var zs=function e(t){var n=Ls(t);function r(e,t){var r=n((e=js(e)).r,(t=js(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Fs(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Bs(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=ri&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:os(n,r)})),i=Ys.lastIndex;return i2?nl:tl,r=o=null,c}function c(t){return(r||(r=n(i,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(o||(o=n(a,i,el,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(i=$a.call(e,$s),u()):i.slice()},c.range=function(e){return arguments.length?(a=Ja.call(e),u()):a.slice()},c.rangeRound=function(e){return a=Ja.call(e),s=Zs,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}var il=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function al(e){if(!(t=il.exec(e)))throw new Error("invalid format: "+e);var t;return new sl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function sl(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}al.prototype=sl.prototype,sl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function ll(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ul,cl,dl,pl,fl=function(e){return(e=ll(Math.abs(e)))?e[1]:NaN},hl=function(e,t){var n=ll(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},ml={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return hl(100*e,t)},r:hl,s:function(e,t){var n=ll(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ul=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ll(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},gl=function(e){return e},yl=Array.prototype.map,bl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];cl=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?gl:(t=yl.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?gl:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(yl.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=al(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,y=e.trim,b=e.type;"n"===b?(m=!0,b="g"):ml[b]||(void 0===g&&(g=12),y=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?i:/[%p]/.test(b)?l:"",x=ml[b],_=/[defgprs%]/.test(b);function O(e){var o,i,l,p=v,O=w;if("c"===b)O=x(e)+O,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==d&&(S=!1),p=(S?"("===d?d:u:"-"===d||"("===d?"":d)+p,O=("s"===b?bl[8+ul/3]:"")+O+(S&&"("===d?")":""),_)for(o=-1,i=e.length;++o(l=e.charCodeAt(o))||l>57){O=(46===l?a+e.slice(o+1):e.slice(o))+O,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var j=p.length+e.length+O.length,E=j>1)+p+e+O+E.slice(j);break;default:e=E+p+e+O}return s(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return e+""},O}return{format:d,formatPrefix:function(e,t){var n=d(((e=al(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(fl(t)/3))),o=Math.pow(10,-r),i=bl[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),dl=cl.format,pl=cl.formatPrefix;var vl=function(e,t,n){var r,o=e[0],i=e[e.length-1],a=Ga(o,i,null==t?10:t);switch((n=al(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(o),Math.abs(i));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fl(t)/3)))-fl(Math.abs(e)))}(a,s))||(n.precision=r),pl(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fl(t)-fl(e))+1}(a,Math.max(Math.abs(o),Math.abs(i))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-fl(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return dl(n)};function wl(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ua(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return vl(t(),e,n)},e.nice=function(n){var r=t(),o=r.length-1,i=null==n?10:n,a=r[0],s=r[o],l=Ga(a,s,i);return l&&(l=Ga(Math.floor(a/l)*l,Math.ceil(s/l)*l,i),r[0]=Math.floor(a/l)*l,r[o]=Math.ceil(s/l)*l,t(r)),e},e}function xl(){var e=ol(el,os);return e.copy=function(){return rl(e,xl())},wl(e)}function _l(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=$a.call(n,$s),t):e.slice()},t.copy=function(){return _l().domain(e)},wl(t)}var Ol=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;pl)break;m.push(d)}}else for(;p=1;--c)if(!((d=u*c)l)break;m.push(d)}}else m=Ua(p,f,Math.min(f-p,h)).map(o);return i?m.reverse():m},e.tickFormat=function(t,i){if(null==i&&(i=10===n?".0e":","),"function"!=typeof i&&(i=dl(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/o(Math.round(r(e)));return t*n0?n[o-1]:e[0],o=n?[r[n-1],t]:[r[a-1],r[a]]},i.copy=function(){return Nl().domain([e,t]).range(o)},wl(i)}function Rl(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[Na(e,r,0,n)]}return r.domain=function(o){return arguments.length?(e=Ja.call(o),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(o){return arguments.length?(t=Ja.call(o),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return Rl().domain(e).range(t)},r}var Ll=new Date,Fl=new Date;function zl(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Ll.setTime(+t),Fl.setTime(+r),e(Ll),e(Fl),Math.floor(n(Ll,Fl))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Bl=zl((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Bl.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zl((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ql=Bl,Ul=(Bl.range,zl((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Gl=Ul;Ul.range;function Hl(e){return zl((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Vl=Hl(0),Wl=Hl(1),Yl=Hl(2),Kl=Hl(3),Xl=Hl(4),Zl=Hl(5),Ql=Hl(6),$l=(Vl.range,Wl.range,Yl.range,Kl.range,Xl.range,Zl.range,Ql.range,zl((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Jl=$l,eu=($l.range,zl((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),tu=eu,nu=(eu.range,zl((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),ru=nu,ou=(nu.range,zl((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),iu=ou,au=(ou.range,zl((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));au.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?zl((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):au:null};var su=au;au.range;function lu(e){return zl((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var uu=lu(0),cu=lu(1),du=lu(2),pu=lu(3),fu=lu(4),hu=lu(5),mu=lu(6),gu=(uu.range,cu.range,du.range,pu.range,fu.range,hu.range,mu.range,zl((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),yu=gu,bu=(gu.range,zl((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));bu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zl((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var vu=bu;bu.range;function wu(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function xu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function _u(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Ou,Su,ju,Eu={"-":"",_:" ",0:"0"},Cu=/^\s*\d+/,Tu=/^%/,ku=/[\\^$*+?|[\]().{}]/g;function Au(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function qu(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Uu(e,t,n){var r=Cu.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Gu(e,t,n){var r=Cu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Hu(e,t,n){var r=Cu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vu(e,t,n){var r=Cu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Wu(e,t,n){var r=Cu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Yu(e,t,n){var r=Cu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ku(e,t,n){var r=Cu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Xu(e,t,n){var r=Cu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Zu(e,t,n){var r=Cu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Qu(e,t,n){var r=Tu.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function $u(e,t,n){var r=Cu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ju(e,t,n){var r=Cu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ec(e,t){return Au(e.getDate(),t,2)}function tc(e,t){return Au(e.getHours(),t,2)}function nc(e,t){return Au(e.getHours()%12||12,t,2)}function rc(e,t){return Au(1+Jl.count(ql(e),e),t,3)}function oc(e,t){return Au(e.getMilliseconds(),t,3)}function ic(e,t){return oc(e,t)+"000"}function ac(e,t){return Au(e.getMonth()+1,t,2)}function sc(e,t){return Au(e.getMinutes(),t,2)}function lc(e,t){return Au(e.getSeconds(),t,2)}function uc(e){var t=e.getDay();return 0===t?7:t}function cc(e,t){return Au(Vl.count(ql(e)-1,e),t,2)}function dc(e){var t=e.getDay();return t>=4||0===t?Xl(e):Xl.ceil(e)}function pc(e,t){return e=dc(e),Au(Xl.count(ql(e),e)+(4===ql(e).getDay()),t,2)}function fc(e){return e.getDay()}function hc(e,t){return Au(Wl.count(ql(e)-1,e),t,2)}function mc(e,t){return Au(e.getFullYear()%100,t,2)}function gc(e,t){return Au((e=dc(e)).getFullYear()%100,t,2)}function yc(e,t){return Au(e.getFullYear()%1e4,t,4)}function bc(e,t){var n=e.getDay();return Au((e=n>=4||0===n?Xl(e):Xl.ceil(e)).getFullYear()%1e4,t,4)}function vc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Au(t/60|0,"0",2)+Au(t%60,"0",2)}function wc(e,t){return Au(e.getUTCDate(),t,2)}function xc(e,t){return Au(e.getUTCHours(),t,2)}function _c(e,t){return Au(e.getUTCHours()%12||12,t,2)}function Oc(e,t){return Au(1+yu.count(vu(e),e),t,3)}function Sc(e,t){return Au(e.getUTCMilliseconds(),t,3)}function jc(e,t){return Sc(e,t)+"000"}function Ec(e,t){return Au(e.getUTCMonth()+1,t,2)}function Cc(e,t){return Au(e.getUTCMinutes(),t,2)}function Tc(e,t){return Au(e.getUTCSeconds(),t,2)}function kc(e){var t=e.getUTCDay();return 0===t?7:t}function Ac(e,t){return Au(uu.count(vu(e)-1,e),t,2)}function Pc(e){var t=e.getUTCDay();return t>=4||0===t?fu(e):fu.ceil(e)}function Mc(e,t){return e=Pc(e),Au(fu.count(vu(e),e)+(4===vu(e).getUTCDay()),t,2)}function Ic(e){return e.getUTCDay()}function Dc(e,t){return Au(cu.count(vu(e)-1,e),t,2)}function Nc(e,t){return Au(e.getUTCFullYear()%100,t,2)}function Rc(e,t){return Au((e=Pc(e)).getUTCFullYear()%100,t,2)}function Lc(e,t){return Au(e.getUTCFullYear()%1e4,t,4)}function Fc(e,t){var n=e.getUTCDay();return Au((e=n>=4||0===n?fu(e):fu.ceil(e)).getUTCFullYear()%1e4,t,4)}function zc(){return"+0000"}function Bc(){return"%"}function qc(e){return+e}function Uc(e){return Math.floor(+e/1e3)}!function(e){Ou=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Mu(o),c=Iu(o),d=Mu(i),p=Iu(i),f=Mu(a),h=Iu(a),m=Mu(s),g=Iu(s),y=Mu(l),b=Iu(l),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ec,e:ec,f:ic,g:gc,G:bc,H:tc,I:nc,j:rc,L:oc,m:ac,M:sc,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:qc,s:Uc,S:lc,u:uc,U:cc,V:pc,w:fc,W:hc,x:null,X:null,y:mc,Y:yc,Z:vc,"%":Bc},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:wc,e:wc,f:jc,g:Rc,G:Fc,H:xc,I:_c,j:Oc,L:Sc,m:Ec,M:Cc,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:qc,s:Uc,S:Tc,u:kc,U:Ac,V:Mc,w:Ic,W:Dc,x:null,X:null,y:Nc,Y:Lc,Z:zc,"%":Bc},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Hu,e:Hu,f:Zu,g:Bu,G:zu,H:Wu,I:Wu,j:Vu,L:Xu,m:Gu,M:Yu,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Uu,Q:$u,s:Ju,S:Ku,u:Nu,U:Ru,V:Lu,w:Du,W:Fu,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Bu,Y:zu,Z:qu,"%":Qu};function _(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=xu(_u(i.y,0,1))).getUTCDay(),r=o>4||0===o?cu.ceil(r):cu(r),r=yu.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=wu(_u(i.y,0,1))).getDay(),r=o>4||0===o?Wl.ceil(r):Wl(r),r=Jl.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?xu(_u(i.y,0,1)).getUTCDay():wu(_u(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,xu(i)):wu(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in Eu?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=_(n,v),v.X=_(r,v),v.c=_(t,v),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}(e),Su=Ou.format,Ou.parse,ju=Ou.utcFormat,Ou.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Gc(e){return new Date(e)}function Hc(e){return e instanceof Date?+e:+new Date(+e)}function Vc(e,t,n,r,o,i,a,s,l){var u=ol(el,os),c=u.invert,d=u.domain,p=l(".%L"),f=l(":%S"),h=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),b=l("%B"),v=l("%Y"),w=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function x(s){return(a(s)180||n<-180?n-360*Math.round(n/360):n):Ns(isNaN(e)?t:e)}));var bd=yd(Fs),vd=bd(md(300,.5,0),md(-240,.5,1)),wd=bd(md(-100,.75,.35),md(80,1.5,.8)),xd=bd(md(260,.75,.35),md(80,1.5,.8)),_d=md(),Od=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return _d.h=360*e-100,_d.s=1.5-1.5*t,_d.l=.8-.9*t,_d+""};function Sd(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var jd=Sd(ed("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Ed=Sd(ed("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Cd=Sd(ed("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Td=Sd(ed("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function kd(e){var t=0,n=1,r=!1;function o(o){var i=(o-t)/(n-t);return e(r?Math.max(0,Math.min(1,i)):i)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.clamp=function(e){return arguments.length?(r=!!e,o):r},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return kd(e).domain([t,n]).clamp(r)},wl(o)}var Ad=function(e){return 0===e?0:e>0?1:-1},Pd=function(e){return ba()(e)&&e.indexOf("%")===e.length-1},Md=function(e){return Aa()(e)&&!Ta()(e)},Id=function(e){return Md(e)||ba()(e)},Dd=0,Nd=function(e){return""+(e||"")+ ++Dd},Rd=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Md(e)&&!ba()(e))return n;var o=void 0;if(Pd(e)){var i=e.indexOf("%");o=t*parseFloat(e.slice(0,i))/100}else o=+e;return isNaN(o)&&(o=n),r&&o>t&&(o=t),o},Ld=/^dataMin[\s]*-[\s]*([\d]+)$/,Fd=/^dataMax[\s]*\+[\s]*([\d]+)$/,zd=function(e,t,n){if(!Sa()(e))return t;var r=[];if(Md(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Ld.test(e[0])){var o=+Ld.exec(e[0])[1];r[0]=t[0]-o}else r[0]=t[0];if(Md(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Fd.test(e[1])){var i=+Fd.exec(e[1])[1];r[1]=t[1]+i}else r[1]=t[1];return r},Bd=function(e,t){if(!t)return!1;var n=t.range(),r=n[0],o=n[n.length-1];return r<=o?e>=r&&e<=o:e>=o&&e<=r},qd=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=Ea()(t,(function(e){return e.coordinate})),r=1/0,o=1,i=n.length;o=0||t.indexOf("AreaChart")>=0)?rs():"category"===r?ns():xl();if(ba()(n)){var o="scale"+n.slice(0,1).toUpperCase()+n.slice(1);return(i[o]||rs)()}return _a()(n)?n:rs()},Vd=function(e,t,n){return ga()(e)||ga()(t)?n:Id(t)?m()(e,t,n):_a()(t)?t(e):n},Wd=function(e,t){if(!e)return null;for(var n=0,r=e.length;n=0&&t.push(e)})),t},cp=function(e,t){return!(!ga()(e)||!ga()(t))||!ga()(e)&&!ga()(t)&&Yd(e.props,t.props)},dp=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","width","height","viewBox","className","style"]),l=o||{width:n,height:r,x:0,y:0},u=ha()("recharts-surface",i),d=np(s);return c.a.createElement("svg",dp({},d,{className:u,width:n,height:r,style:a,viewBox:l.x+" "+l.y+" "+l.width+" "+l.height,version:"1.1"}),t)}fp.propTypes=pp;var hp=fp,mp=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=ha()("recharts-layer",n);return c.a.createElement("g",mp({className:o},r),t)}yp.propTypes=gp;var bp=yp,vp=Math.PI,wp=2*vp,xp=wp-1e-6;function _p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Op(){return new _p}_p.prototype=Op.prototype={constructor:_p,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(c*s-l*u)>1e-6&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),y=Math.sqrt(d),b=o*Math.tan((vp-Math.acos((h+d-m)/(2*g*y)))/2),v=b/y,w=b/g;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%wp+wp),d>xp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=vp)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Sp=Op,jp=function(e){return function(){return e}},Ep=Math.PI,Cp=2*Ep;function Tp(e){this._context=e}Tp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var kp=function(e){return new Tp(e)};function Ap(e){return e[0]}function Pp(e){return e[1]}var Mp=function(){var e=Ap,t=Pp,n=jp(!0),r=null,o=kp,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=Sp())),s=0;s<=c;++s)!(s=c;--d)s.point(g[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),y[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):y[u]))}if(f)return s=null,f+""||null}function u(){return Mp().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:jp(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:jp(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:jp(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:jp(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:jp(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:jp(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:jp(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l};Np(kp);function Dp(e){this._curve=e}function Np(e){function t(t){return new Dp(e(t))}return t._curve=e,t}Dp.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Rp={draw:function(e,t){var n=Math.sqrt(t/Ep);e.moveTo(n,0),e.arc(0,0,n,0,Cp)}},Lp={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Fp=Math.sqrt(1/3),zp=2*Fp,Bp={draw:function(e,t){var n=Math.sqrt(t/zp),r=n*Fp;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qp=Math.sin(Ep/10)/Math.sin(7*Ep/10),Up=Math.sin(Cp/10)*qp,Gp=-Math.cos(Cp/10)*qp,Hp={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Up*n,o=Gp*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Cp*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Vp={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Wp=Math.sqrt(3),Yp={draw:function(e,t){var n=-Math.sqrt(t/(3*Wp));e.moveTo(0,2*n),e.lineTo(-Wp*n,-n),e.lineTo(Wp*n,-n),e.closePath()}},Kp=Math.sqrt(3)/2,Xp=1/Math.sqrt(12),Zp=3*(Xp/2+1),Qp={draw:function(e,t){var n=Math.sqrt(t/Zp),r=n/2,o=n*Xp,i=r,a=n*Xp+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(-.5*r-Kp*o,Kp*r+-.5*o),e.lineTo(-.5*i-Kp*a,Kp*i+-.5*a),e.lineTo(-.5*s-Kp*l,Kp*s+-.5*l),e.lineTo(-.5*r+Kp*o,-.5*o-Kp*r),e.lineTo(-.5*i+Kp*a,-.5*a-Kp*i),e.lineTo(-.5*s+Kp*l,-.5*l-Kp*s),e.closePath()}},$p=function(){};function Jp(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ef(e){this._context=e}ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tf(e){this._context=e}tf.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Jp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nf(e){this._context=e}nf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Jp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rf(e,t){this._basis=new ef(e),this._beta=t}rf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new ef(e):new rf(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function of(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function af(e,t){this._context=e,this._k=(1-t)/6}af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:of(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:of(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new af(e,t)}return n.tension=function(t){return e(+t)},n})(0);function sf(e,t){this._context=e,this._k=(1-t)/6}sf.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:of(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new sf(e,t)}return n.tension=function(t){return e(+t)},n})(0);function lf(e,t){this._context=e,this._k=(1-t)/6}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:of(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new lf(e,t)}return n.tension=function(t){return e(+t)},n})(0);function uf(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function cf(e,t){this._context=e,this._alpha=t}cf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:uf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new cf(e,t):new af(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function df(e,t){this._context=e,this._alpha=t}df.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:uf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new df(e,t):new sf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function pf(e,t){this._context=e,this._alpha=t}pf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new pf(e,t):new lf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ff(e){this._context=e}ff.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hf(e){return e<0?-1:1}function mf(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(hf(i)+hf(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function gf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function yf(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function bf(e){this._context=e}function vf(e){this._context=new wf(e)}function wf(e){this._context=e}function xf(e){this._context=e}function _f(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Sf=Array.prototype.slice,jf=function(e,t){if((r=e.length)>1)for(var n,r,o=1,i=e[t[0]],a=i.length;o=0;)n[t]=t;return n};function Cf(e,t){return e[t]}var Tf,kf,Af,Pf=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t=this.props,n=t.layout,r=t.align,o=t.verticalAlign,i=t.margin,a=t.chartWidth,s=t.chartHeight,l=void 0,u=void 0;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(l="center"===r&&"vertical"===n?{left:((a||0)-(this.getBBox()||{width:0}).width)/2}:"right"===r?{right:i&&i.right||0}:{left:i&&i.left||0});e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(u="middle"===o?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===o?{bottom:i&&i.bottom||0}:{top:i&&i.top||0});return Zf({},l,u)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,a=Zf({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),i);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:a,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(Xf,t)}(n,this.props))}}],[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Md(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}]),t}(u.Component),Wf.displayName="Legend",Wf.propTypes={content:pa.a.oneOfType([pa.a.element,pa.a.func]),wrapperStyle:pa.a.object,chartWidth:pa.a.number,chartHeight:pa.a.number,width:pa.a.number,height:pa.a.number,iconSize:pa.a.number,iconType:pa.a.oneOf(rh),layout:pa.a.oneOf(["horizontal","vertical"]),align:pa.a.oneOf(["center","left","right"]),verticalAlign:pa.a.oneOf(["top","bottom","middle"]),margin:pa.a.shape({top:pa.a.number,left:pa.a.number,bottom:pa.a.number,right:pa.a.number}),payload:pa.a.arrayOf(pa.a.shape({value:pa.a.any,id:pa.a.any,type:pa.a.oneOf($d)})),formatter:pa.a.func,onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func,onBBoxUpdate:pa.a.func},Wf.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Vf=Yf))||Vf,ih=n("./node_modules/react-smooth/lib/index.js"),ah=n.n(ih),sh=Object.assign||function(e){for(var t=1;t1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.payload,r=t.isAnimationActive,o=t.animationDuration,i=t.animationEasing,a=n&&n.length&&n.filter((function(e){return!ga()(e.value)})).length,s=this.props,l=s.content,u=s.viewBox,d=s.coordinate,p=s.position,f=s.active,h=s.offset,m=s.wrapperStyle,g=gh({pointerEvents:"none",visibility:f&&a?"visible":"hidden",position:"absolute",top:0},m),y=void 0,b=void 0;if(p&&Md(p.x)&&Md(p.y))y=p.x,b=p.y;else{var v=this.state,w=v.boxWidth,x=v.boxHeight;w>0&&x>0&&d?(y=p&&Md(p.x)?p.x:Math.max(d.x+w+h>u.x+u.width?d.x-w-h:d.x+h,u.x),b=p&&Md(p.y)?p.y:Math.max(d.y+x+h>u.y+u.height?d.y-x-h:d.y+h,u.y)):g.visibility="hidden"}return g=gh({},g,Object(ih.translateStyle)({transform:"translate("+y+"px, "+b+"px)"})),r&&f&&(g=gh({},g,Object(ih.translateStyle)({transition:"transform "+o+"ms "+i}))),c.a.createElement("div",{className:"recharts-tooltip-wrapper",style:g,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(mh,t)}(l,this.props))}}]),t}(u.Component),ph.displayName="Tooltip",ph.propTypes=_h,ph.defaultProps=Oh,dh=fh))||dh,jh=n("./MapStore2/node_modules/lodash/debounce.js"),Eh=n.n(jh),Ch=n("./node_modules/recharts/node_modules/react-resize-detector/lib/index.js"),Th=n.n(Ch),kh=function(){function e(e,t){for(var n=0;n0?Eh()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),kh(t,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,i=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),l=r.children;Pd(i)||Pd(a);var u=Pd(i)?t:i,d=Pd(a)?n:a;return o&&o>0&&(d=u/o,s&&d>s&&(d=s)),c.a.cloneElement(l,{width:u,height:d})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o={width:t.width,height:t.height,minWidth:n,minHeight:r,maxHeight:t.maxHeight};return c.a.createElement("div",{className:"recharts-responsive-container",style:o,ref:function(t){e.container=t}},this.renderChart(),c.a.createElement(Th.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}]),t}(u.Component),wh.displayName="ResponsiveContainer",wh.propTypes={aspect:pa.a.number,width:pa.a.oneOfType([pa.a.string,pa.a.number]),height:pa.a.oneOfType([pa.a.string,pa.a.number]),minHeight:pa.a.number,minWidth:pa.a.number,maxHeight:pa.a.number,children:pa.a.node.isRequired,debounce:pa.a.number},wh.defaultProps={width:"100%",height:"100%",debounce:0};var Ah,Ph,Mh=Object.assign||function(e){for(var t=1;t=0&&t===+t?t+"px":t}(n,e[n])+";"}),"")},Yh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||sp())return{width:0,height:0};var n=""+e,r=Wh(t),o=n+"-"+r;if(qh.widthCache[o])return qh.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i)),i.setAttribute("style",Wh(zh({},Uh,t))),i.textContent=n;var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return qh.widthCache[o]=s,++qh.cacheCount>2e3&&(qh.cacheCount=0,qh.widthCache={}),s}catch(e){return{width:0,height:0}}},Kh=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},Xh=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}},Zh=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),p=this.state.wordsByLines;if(!Id(d.x)||!Id(d.y))return null;var f=d.x+(Md(t)?t:0),h=d.y+(Md(n)?n:0),m=void 0;switch(o){case"start":m=Fh()("calc("+l+")");break;case"middle":m=Fh()("calc("+(p.length-1)/2+" * -"+s+" + ("+l+" / 2))");break;default:m=Fh()("calc("+(p.length-1)+" * -"+s+")")}var g=[];if(i){var y=p[0].width;g.push("scale("+this.props.width/y+")")}return a&&g.push("rotate("+a+", "+f+", "+h+")"),g.length&&(d.transform=g.join(" ")),c.a.createElement("text",Zh({},np(d),{x:f,y:h,className:ha()("recharts-text",u),textAnchor:r}),p.map((function(e,t){return c.a.createElement("tspan",{x:f,dy:0===t?m:s,key:t},e.words.join(" "))})))}}]),t}(u.Component),Hh.propTypes=Zh({},Zd,{scaleToFit:pa.a.bool,angle:pa.a.number,textAnchor:pa.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:pa.a.oneOf(["start","middle","end"]),style:pa.a.object}),Hh.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},Vh),om=Math.PI/180,im=function(e,t,n,r){return{x:e+Math.cos(-om*r)*n,y:t+Math.sin(-om*r)*n}},am=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.left||0)-(n.right||0)))/2},sm=Object.assign||function(e){for(var t=1;t180)+","+ +(i>s)+",\n "+u.x+","+u.y+"\n ";if(r>0){var d=im(t,n,r,i),p=im(t,n,r,s);c+="L "+p.x+","+p.y+"\n A "+r+","+r+",0,\n "+ +(Math.abs(a)>180)+","+ +(i<=s)+",\n "+d.x+","+d.y+" Z"}else c+="L "+t+","+n+" Z";return c},gm=Xd((nm=tm=function(e){function t(){return um(this,t),cm(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),lm(t,[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.startAngle,s=e.endAngle,l=e.className;if(o0&&Math.abs(a-s)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.startAngle,s=e.endAngle,l=Ad(s-a),u=hm({cx:t,cy:n,radius:o,angle:a,sign:l,cornerRadius:i}),c=u.circleTangency,d=u.lineTangency,p=u.theta,f=hm({cx:t,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i}),h=f.circleTangency,m=f.lineTangency,g=f.theta,y=Math.abs(a-s)-p-g;if(y<0)return mm({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:a,endAngle:s});var b="M "+d.x+","+d.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+c.x+","+c.y+"\n A"+o+","+o+",0,"+ +(y>180)+","+ +(l<0)+","+h.x+","+h.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+m.x+","+m.y+"\n ";if(r>0){var v=hm({cx:t,cy:n,radius:r,angle:a,sign:l,isExternal:!0,cornerRadius:i}),w=v.circleTangency,x=v.lineTangency,_=v.theta,O=hm({cx:t,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i}),S=O.circleTangency,j=O.lineTangency,E=O.theta,C=Math.abs(a-s)-_-E;if(C<0)return b+"L"+t+","+n+"Z";b+="L"+j.x+","+j.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+S.x+","+S.y+"\n A"+r+","+r+",0,"+ +(C>180)+","+ +(l>0)+","+w.x+","+w.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+x.x+","+x.y+"Z"}else b+="L"+t+","+n+"Z";return b}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(p,d/2),startAngle:a,endAngle:s}):mm({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:a,endAngle:s}),c.a.createElement("path",sm({},np(this.props),rp(this.props),{className:u,d:f}))}}]),t}(u.Component),tm.displayName="Sector",tm.propTypes=sm({},Zd,{className:pa.a.string,cx:pa.a.number,cy:pa.a.number,innerRadius:pa.a.number,outerRadius:pa.a.number,startAngle:pa.a.number,endAngle:pa.a.number,cornerRadius:pa.a.oneOfType([pa.a.number,pa.a.string])}),tm.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0},em=nm))||em,ym=Object.assign||function(e){for(var t=1;t=0?1:-1,s=r>=0?1:0,l=void 0;if(i>0&&o instanceof Array){for(var u=[],c=0;c<4;c++)u[c]=o[c]>i?i:o[c];l="M"+e+","+(t+a*u[0]),u[0]>0&&(l+="A "+u[0]+","+u[0]+",0,0,"+s+","+(e+u[0])+","+t),l+="L "+(e+n-u[1])+","+t,u[1]>0&&(l+="A "+u[1]+","+u[1]+",0,0,"+s+",\n "+(e+n)+","+(t+a*u[1])),l+="L "+(e+n)+","+(t+r-a*u[2]),u[2]>0&&(l+="A "+u[2]+","+u[2]+",0,0,"+s+",\n "+(e+n-u[2])+","+(t+r)),l+="L "+(e+u[3])+","+(t+r),u[3]>0&&(l+="A "+u[3]+","+u[3]+",0,0,"+s+",\n "+e+","+(t+r-a*u[3])),l+="Z"}else if(i>0&&o===+o&&o>0){var d=Math.min(i,o);l="M "+e+","+(t+a*d)+"\n A "+d+","+d+",0,0,"+s+","+(e+d)+","+t+"\n L "+(e+n-d)+","+t+"\n A "+d+","+d+",0,0,"+s+","+(e+n)+","+(t+a*d)+"\n L "+(e+n)+","+(t+r-a*d)+"\n A "+d+","+d+",0,0,"+s+","+(e+n-d)+","+(t+r)+"\n L "+(e+d)+","+(t+r)+"\n A "+d+","+d+",0,0,"+s+","+e+","+(t+r-a*d)+" Z"}else l="M "+e+","+t+" h "+n+" v "+r+" h "+-n+" Z";return l},Lm=Xd((Om=_m=function(e){function t(){var e,n,r;Pm(this,t);for(var o=arguments.length,i=Array(o),a=0;a0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:p,animationEasing:d,isActive:m},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return c.a.createElement(ah.a,{canBegin:l>0,from:"0px "+(-1===l?1:l)+"px",to:l+"px 0px",attributeName:"strokeDasharray",begin:f,duration:p,isActive:h,easing:d},c.a.createElement("path",km({},np(e.props),rp(e.props),{className:g,d:Rm(o,i,n,r,a),ref:function(t){e.node=t}})))})):c.a.createElement("path",km({},np(this.props),rp(this.props),{className:g,d:Rm(n,r,o,i,a)}))}}]),t}(u.Component),_m.displayName="Rectangle",_m.propTypes=km({},Zd,Qd,{className:pa.a.string,x:pa.a.number,y:pa.a.number,width:pa.a.number,height:pa.a.number,radius:pa.a.oneOfType([pa.a.number,pa.a.array]),isAnimationActive:pa.a.bool,isUpdateAnimationActive:pa.a.bool,animationBegin:pa.a.number,animationDuration:pa.a.number,animationEasing:pa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),_m.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xm=Om))||xm,Fm=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Sg,jg,Eg,Cg=Xd((mg=hg=function(e){function t(){return _g(this,t),Og(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),wg(t,[{key:"getTickValueCoord",value:function(e){var t=e.radius,n=this.props,r=n.angle,o=n.cx,i=n.cy;return im(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e=void 0;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=xg(e,["cx","cy","angle","ticks","axisLine"]),s=o.reduce((function(e,t){return[Math.min(e[0],t.radius),Math.max(e[1],t.radius)]}),[1/0,-1/0]),l=im(t,n,s[0],r),u=im(t,n,s[1],r),d=vg({},np(a),{fill:"none"},np(i),{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return c.a.createElement("line",vg({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(rm,vg({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,a=t.stroke,s=xg(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),u=np(s),d=np(r),p=n.map((function(t,n){var s=e.getTickValueCoord(t),p=vg({textAnchor:l,transform:"rotate("+(90-o)+", "+s.x+", "+s.y+")"},u,{stroke:"none",fill:a},d,{index:n},s,{payload:t});return c.a.createElement(bp,vg({className:"recharts-polar-radius-axis-tick",key:"tick-"+n},ip(e.props,t,n)),e.renderTickItem(r,p,i?i(t.value):t.value))}));return c.a.createElement(bp,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"renderLabel",value:function(){var e=this.props.label,t=this.props,n=t.ticks,r=t.angle,o=t.stroke,i=xg(t,["ticks","angle","stroke"]),a=bg()(n,(function(e){return e.radius||0})).radius||0,s=this.getTickValueCoord({radius:a+10}),l=vg({},i,{stroke:"none",fill:o},s,{textAnchor:"middle",transform:"rotate("+(90-r)+", "+s.x+", "+s.y+")"});return c.a.isValidElement(e)?c.a.cloneElement(e,l):_a()(e)?e(l):Id(e)?c.a.createElement(bp,{className:"recharts-polar-radius-axis-label"},c.a.createElement(rm,l,e)):null}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?c.a.createElement(bp,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),this.renderLabel()):null}}]),t}(u.Component),hg.displayName="PolarRadiusAxis",hg.propTypes=vg({},Zd,Qd,{cx:pa.a.number,cy:pa.a.number,hide:pa.a.bool,angle:pa.a.number,tickCount:pa.a.number,ticks:pa.a.arrayOf(pa.a.shape({value:pa.a.any,radius:pa.a.value})),orientation:pa.a.oneOf(["left","right","middle"]),axisLine:pa.a.oneOfType([pa.a.bool,pa.a.object]),label:pa.a.oneOfType([pa.a.number,pa.a.string,pa.a.element,pa.a.func]),tick:pa.a.oneOfType([pa.a.bool,pa.a.object,pa.a.element,pa.a.func]),stroke:pa.a.string,tickFormatter:pa.a.func,domain:pa.a.arrayOf(pa.a.oneOfType([pa.a.number,pa.a.oneOf(["auto","dataMin","dataMax"])])),scale:pa.a.oneOfType([pa.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"]),pa.a.func]),allowDataOverflow:pa.a.bool}),hg.defaultProps={cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto"},fg=mg))||fg,Tg=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=Tg({},np(this.props),{fill:"none"},np(o));if("circle"===i)return c.a.createElement(eg,Tg({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return im(t,n,r,e.angle)}));return c.a.createElement(Wm,Tg({className:"recharts-polar-angle-axis-line"},a,{points:s}))}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(rm,Tg({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,a=t.stroke,s=np(this.props),l=np(r),u=Tg({},s,{fill:"none"},np(o)),d=n.map((function(t,n){var d=e.getTickLineCoord(t),p=e.getTickTextAnchor(t),f=Tg({textAnchor:p},s,{stroke:"none",fill:a},l,{index:n,payload:t,x:d.x2,y:d.y2});return c.a.createElement(bp,Tg({className:"recharts-polar-angle-axis-tick",key:"tick-"+n},ip(e.props,t,n)),o&&c.a.createElement("line",Tg({className:"recharts-polar-angle-axis-tick-line"},u,d)),r&&e.renderTickItem(r,f,i?i(t.value):t.value))}));return c.a.createElement(bp,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:c.a.createElement(bp,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}]),t}(u.Component),jg.displayName="PolarAngleAxis",jg.propTypes=Tg({},Zd,Qd,{dataKey:pa.a.oneOfType([pa.a.number,pa.a.string,pa.a.func]),cx:pa.a.number,cy:pa.a.number,radius:pa.a.oneOfType([pa.a.number,pa.a.string]),hide:pa.a.bool,axisLine:pa.a.oneOfType([pa.a.bool,pa.a.object]),axisLineType:pa.a.oneOf(["polygon","circle"]),tickLine:pa.a.oneOfType([pa.a.bool,pa.a.object]),tick:pa.a.oneOfType([pa.a.bool,pa.a.func,pa.a.object,pa.a.element]),ticks:pa.a.arrayOf(pa.a.shape({value:pa.a.any,angle:pa.a.number})),stroke:pa.a.string,orientation:pa.a.oneOf(["inner","outer"]),tickFormatter:pa.a.func}),jg.defaultProps={cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1},Sg=Eg))||Sg,Dg=n("./MapStore2/node_modules/lodash/isPlainObject.js"),Ng=n.n(Dg),Rg=Object.assign||function(e){for(var t=1;t=360?p:p-1)*l,g=e.reduce((function(e,t){return e+Vd(t,d,0)}),0),y=[],b=void 0;return g>0&&(y=e.map((function(e,t){var y=Vd(e,d,0)/g,v=void 0,w=(v=t?(f<0?b.endAngle:b.startAngle)+Ad(f)*l:s)+Ad(f)*(u+y*(h-p*u-m));return b=Hg({percent:y,cornerRadius:a},e,{cx:n,cy:r,innerRadius:o,outerRadius:i,name:Vd(e,c),value:Vd(e,d),startAngle:f<0?v:w,endAngle:f<0?w:v,midAngle:(v+w)/2})}))),y}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["shape","points","animationDuration","animationEasing","animationBegin","isAnimationActive","animationId","dataKey","className"]));if(c.a.isValidElement(t))return c.a.cloneElement(t,$g({},l,{points:n}));if(_a()(t))return t(this.props);var u=n[0],d=n.map((function(e){return{x:e.x-u.cx,y:e.y-u.cy}}));return c.a.createElement(bp,{className:"recharts-radar-polygon",transform:"translate("+u.cx+", "+u.cy+")"},c.a.createElement(ah.a,{from:"scale(0)",to:"scale(1)",attributeName:"transform",isActive:a,begin:i,easing:o,duration:r,key:s},c.a.createElement(Wm,$g({onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},np(this.props),{points:d}))))}},{key:"renderLabelItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(rm,$g({key:t.key},t,{className:"recharts-radar-label"}),n)}},{key:"renderLabels",value:function(){var e=this,t=this.props,n=t.points,r=t.label,o=np(this.props),i=np(r),a=n.map((function(t,n){var a=$g({textAnchor:"middle"},o,{stroke:"none",fill:o&&o.stroke||"#666"},i,t,{index:n,key:"label-"+n,payload:t});return e.renderLabelItem(r,a,t.value)}));return c.a.createElement(bp,{className:"recharts-radar-labels"},a)}},{key:"renderDotItem",value:function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(eg,$g({},t,{className:"recharts-radar-dot"}))}},{key:"renderDots",value:function(){var e=this,t=this.props,n=t.dot,r=t.points,o=np(this.props),i=np(n),a=r.map((function(t,r){var a=$g({key:"dot-"+r,r:3},o,i,{cx:t.x,cy:t.y,index:r,playload:t});return e.renderDotItem(n,a)}));return c.a.createElement(bp,{className:"recharts-radar-dots"},a)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.label,o=e.dot;if(!n||!n.length)return null;var i=ha()("recharts-radar",t);return c.a.createElement(bp,{className:i},this.renderPolygon(),r&&this.renderLabels(),o&&this.renderDots())}}]),t}(u.Component),Xg.displayName="Radar",Xg.propTypes=$g({},Zd,{className:pa.a.string,dataKey:pa.a.oneOfType([pa.a.number,pa.a.string,pa.a.func]).isRequired,points:pa.a.arrayOf(pa.a.shape({x:pa.a.number,y:pa.a.number,cx:pa.a.number,cy:pa.a.number,angle:pa.a.number,radius:pa.a.number,value:pa.a.number,payload:pa.a.object})),shape:pa.a.oneOfType([pa.a.element,pa.a.func]),dot:pa.a.oneOfType([pa.a.element,pa.a.func,pa.a.object,pa.a.bool]),label:pa.a.oneOfType([pa.a.element,pa.a.func,pa.a.object,pa.a.bool]),legendType:pa.a.oneOf($d),onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func,isAnimationActive:pa.a.bool,animationId:pa.a.number,animationBegin:pa.a.number,animationDuration:pa.a.number,animationEasing:pa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Xg.defaultProps={dot:!1,label:!1,legendType:"rect",isAnimationActive:!sp(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kg=Zg))||Kg,ay=Object.assign||function(e){for(var t=1;t0,m=h?u+i:Math.max(d-i,0);if(m<=0)return"";var g=Yh(t,n).width/(m*fy),y=void 0,b=void 0;b=h?(y="inner"===a?Math.min(f+g,p):f)-g:(y="inner"===a?Math.max(f-g,p):f)+g;var v=im(s,l,m,y),w=im(s,l,m,b);return"M"+v.x+","+v.y+"\n A"+m+","+m+",0,\n "+(g>=180?1:0)+",\n "+(h?1:0)+",\n "+w.x+","+w.y}},{key:"renderSectorShape",value:function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(gm,t)}},{key:"renderSectors",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,a=n.cornerRadius,s=this.props,l=s.animationEasing,u=s.animationDuration,d=s.animationBegin,p=s.isAnimationActive,f=np(this.props);return e.map((function(e,n){var s=e.startAngle,h=e.endAngle;return c.a.createElement(ah.a,{from:{angle:s},to:{angle:h},begin:d,isActive:p,duration:u,easing:l,shouldReAnimate:!0,key:"aniamte-"+n,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd},(function(s){var l=s.angle,u=ay({},f,{cornerRadius:a},e,ip(t.props,e,n),{endAngle:l,key:"sector-"+n,className:"recharts-radial-bar-sector"});return t.renderSectorShape(n===i?o:r,u)}))}))}},{key:"renderBackground",value:function(e){var t=this,n=this.props,r=n.startAngle,o=n.endAngle,i=n.background,a=n.cornerRadius,s=np(i);return e.map((function(e,n){e.value;var l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["value"]),u=ay({cornerRadius:a},l,{fill:"#eee"},s,ip(t.props,e,n),{startAngle:r,endAngle:o,index:n,key:"sector-"+n,className:"recharts-radial-bar-background-sector"});return t.renderSectorShape(i,u)}))}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;if(c.a.isValidElement(e))r=c.a.cloneElement(e,t);else if(_a()(e))r=e(t);else{var o=Nd("recharts-defs-"),i=np(t),a=this.getLabelPathArc(t,n,i);r=c.a.createElement("text",ay({},i,{key:t.key,className:"recharts-radial-bar-label"}),c.a.createElement("defs",null,c.a.createElement("path",{id:o,d:a})),c.a.createElement("textPath",{xlinkHref:"#"+o},n))}return r}},{key:"renderLabels",value:function(e){var t=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props.label;return e.map((function(e,r){var o=ay({fontSize:10},e,np(n),{index:r,key:"label-"+r});return t.renderLabelItem(n,o,e.value)}))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.background,o=e.label;if(!t||!t.length)return null;var i=this.getSectors(),a=ha()("recharts-area",n);return c.a.createElement(bp,{className:a},r&&c.a.createElement(bp,{className:"recharts-radial-bar-background"},this.renderBackground(i)),c.a.createElement(bp,{className:"recharts-radial-bar-sectors"},this.renderSectors(i)),o&&c.a.createElement(bp,{className:"recharts-radial-bar-labels"},this.renderLabels(i)))}}]),t}(u.Component),ry.displayName="RadialBar",ry.propTypes=ay({},Zd,{className:pa.a.string,shape:pa.a.oneOfType([pa.a.func,pa.a.element]),activeShape:pa.a.oneOfType([pa.a.object,pa.a.func,pa.a.element]),activeIndex:pa.a.number,cornerRadius:pa.a.oneOfType([pa.a.number,pa.a.string]),cx:pa.a.number,cy:pa.a.number,startAngle:pa.a.number,endAngle:pa.a.number,maxAngle:pa.a.number,minAngle:pa.a.number,data:pa.a.arrayOf(pa.a.shape({cx:pa.a.number,cy:pa.a.number,innerRadius:pa.a.number,outerRadius:pa.a.number,value:pa.a.value})),legendType:pa.a.oneOf($d),label:pa.a.oneOfType([pa.a.bool,pa.a.func,pa.a.element,pa.a.object]),background:pa.a.oneOfType([pa.a.bool,pa.a.func,pa.a.object,pa.a.element]),onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func,isAnimationActive:pa.a.bool,animationBegin:pa.a.number,animationDuration:pa.a.number,animationEasing:pa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),ry.defaultProps={startAngle:180,endAngle:0,maxAngle:135,minAngle:0,legendType:"rect",data:[],isAnimationActive:!sp(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},ny=oy))||ny,my=n("./MapStore2/node_modules/lodash/range.js"),gy=n.n(my),yy=function(){function e(e,t){for(var n=0;n0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},e.data&&e.data.length?n.updateScale(e):n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yy(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,s=n.updateId;e.data!==r||e.updateId!==s?this.updateScale(e):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=Math.min(t,n),o=Math.max(t,n);return{startIndex:this.getIndexInRange(this.scaleValues,r),endIndex:this.getIndexInRange(this.scaleValues,o)}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Vd(n[e],o,e);return _a()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,l=i.travellerWidth,u=i.startIndex,c=i.endIndex,d=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-l-o,a+s-l-r):p<0&&(p=Math.max(p,a-r,a-o));var f=this.getIndex({startX:r+p,endX:o+p});f.startIndex===u&&f.endIndex===c||!d||d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=this.state[o],a=this.props,s=a.x,l=a.width,u=a.travellerWidth,c=a.onChange,d={startX:this.state.startX,endX:this.state.endX},p=e.pageX-r;p>0?p=Math.min(p,s+l-u-i):p<0&&(p=Math.max(p,s-i)),d[o]=i+p;var f=this.getIndex(d);this.setState((by(t={},o,i+p),by(t,"brushMoveStartX",e.pageX),t),(function(){c&&c(f)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,s=e.travellerWidth;if(n&&n.length){var l=n.length;this.scale=rs().domain(gy()(0,l)).range([i,i+a-s]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.state={isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return c.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,s=e.padding,l=u.Children.only(a);return l?c.a.cloneElement(l,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,s=Math.floor(r+i/2)-1,l=Math.max(e,this.props.x);return c.a.createElement(bp,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.a.createElement("rect",{x:l,y:r,width:o,height:i,fill:a,stroke:"none"}),c.a.createElement("line",{x1:l+1,y1:s,x2:l+o-1,y2:s,fill:"none",stroke:"#fff"}),c.a.createElement("line",{x1:l+1,y1:s+2,x2:l+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return c.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,s=this.state,l=s.startX,u=s.endX,d={pointerEvents:"none",fill:a};return c.a.createElement(bp,{className:"recharts-brush-texts"},c.a.createElement(rm,{textAnchor:"end",verticalAnchor:"middle",style:d,x:Math.min(l,u)-5,y:r+o/2},this.getTextOfTick(t)),c.a.createElement(rm,{textAnchor:"start",verticalAnchor:"middle",style:d,x:Math.max(l,u)+i+5,y:r+o/2},this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=this.state,i=o.startX,a=o.endX,s=o.isTextActive,l=o.isSlideMoving,u=o.isTravellerMoving;if(!t||!t.length)return null;var d=ha()("recharts-brush",n),p=1===c.a.Children.count(r);return c.a.createElement(bp,{className:d,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove},this.renderBackground(),p&&this.renderPanorama(),this.renderSlide(i,a),this.renderTraveller(i,"startX"),this.renderTraveller(a,"endX"),(s||l||u)&&this.renderText())}}]),t}(u.Component),dy.displayName="Brush",dy.propTypes={className:pa.a.string,fill:pa.a.string,stroke:pa.a.string,x:pa.a.number.isRequired,y:pa.a.number.isRequired,width:pa.a.number.isRequired,height:pa.a.number.isRequired,travellerWidth:pa.a.number,padding:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),dataKey:pa.a.oneOfType([pa.a.string,pa.a.number,pa.a.func]),data:pa.a.array,startIndex:pa.a.number,endIndex:pa.a.number,tickFormatter:pa.a.func,children:pa.a.node,onChange:pa.a.func,updateId:pa.a.oneOfType([pa.a.string,pa.a.number])},dy.defaultProps={x:0,y:0,width:0,height:40,travellerWidth:5,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},cy=py))||cy,Oy=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Sy=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Zy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var $y,Jy,eb,tb=(Vy=Hy=function(e){function t(){return Zy(this,t),Qy(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ky(t,[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Xy(e,["viewBox"]),o=this.props,i=o.viewBox,a=Xy(o,["viewBox"]);return!Yd(n,i)||!Yd(r,a)||!Yd(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.orientation,s=t.tickSize,l=t.mirror,u=void 0,c=void 0,d=void 0,p=void 0,f=void 0,h=void 0,m=l?-1:1,g=e.tickSize||s,y=Md(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":u=c=e.coordinate,d=h=(p=r+!l*i)-m*g,f=y;break;case"left":d=p=e.coordinate,u=f=(c=n+!l*o)-m*g,h=y;break;case"right":d=p=e.coordinate,u=f=(c=n+l*o)+m*g,h=y;break;default:u=c=e.coordinate,d=h=(p=r+l*i)+m*g,f=y}return{line:{x1:u,y1:d,x2:c,y2:p},tick:{x:f,y:h}}}},{key:"getTickTextAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=void 0;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle"}return r}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"getLabelProps",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height;switch(e.orientation){case"left":return{x:t+r,y:n-6,textAnchor:"middle"};case"right":return{x:t,y:n-6,textAnchor:"middle"};case"top":return{x:t+r+6,y:n+o+6,textAnchor:"start"};default:return{x:t+r+6,y:n+6,textAnchor:"start"}}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,s=e.mirror,l=Yy({},np(this.props),{fill:"none"},np(a));if("top"===i||"bottom"===i){var u="top"===i&&!s||"bottom"===i&&s;l=Yy({},l,{x1:t,y1:n+u*o,x2:t+r,y2:n+u*o})}else{var d="left"===i&&!s||"right"===i&&s;l=Yy({},l,{x1:t+d*r,y1:n,x2:t+d*r,y2:n+o})}return c.a.createElement("line",Yy({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):_a()(e)?e(t):c.a.createElement(rm,Yy({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,a=r.tick,s=r.tickFormatter,l=t.getTicks(Yy({},this.props,{ticks:e})),u=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),p=np(this.props),f=np(a),h=Yy({},p,{fill:"none"},np(o)),m=l.map((function(e,t){var r=n.getTickLineCoord(e),l=r.line,m=r.tick,g=Yy({textAnchor:u,verticalAnchor:d},p,{stroke:"none",fill:i},f,m,{index:t,payload:e});return c.a.createElement(bp,Yy({className:"recharts-cartesian-axis-tick",key:"tick-"+t},ip(n.props,e,t)),o&&c.a.createElement("line",Yy({className:"recharts-cartesian-axis-tick-line"},h,l)),a&&n.renderTickItem(a,g,_a()(s)?s(e.value):e.value))}));return c.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=e.stroke,r=e.orientation,o=e.viewBox,i=np(this.props);if(c.a.isValidElement(t))return c.a.cloneElement(t,Yy({},i,{orientation:r,viewBox:o}));if(_a()(t))return t(this.props);if(Id(t)){var a=Yy({},i,{stroke:"none",fill:n},this.getLabelProps());return c.a.createElement("g",{className:"recharts-cartesian-axis-label"},c.a.createElement(rm,a,t))}return null}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=this.props,a=i.ticks,s=Xy(i,["ticks"]),l=a;return _a()(o)&&(l=a&&a.length>0?o(this.props):o(s)),n<=0||r<=0||!l||!l.length?null:c.a.createElement(bp,{className:"recharts-cartesian-axis"},t&&this.renderAxisLine(),this.renderTicks(l),this.renderLabel())}}],[{key:"getTicks",value:function(e){var n=e.ticks,r=e.viewBox,o=e.minTickGap,i=e.orientation,a=e.interval,s=e.tickFormatter;return n&&n.length?Md(a)||sp()?t.getNumberIntervalTicks(n,Md(a)?a:0):"preserveStartEnd"===a?t.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o},!0):"preserveStart"===a?t.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o}):t.getTicksEnd({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n=e.ticks,r=e.tickFormatter,o=e.viewBox,i=e.orientation,a=e.minTickGap,s=o.x,l=o.y,u=o.width,c=o.height,d="top"===i||"bottom"===i?"width":"height",p=(n||[]).slice(),f=p.length,h=f>=2?Ad(p[1].coordinate-p[0].coordinate):1,m=void 0,g=void 0;if(1===h?(m="width"===d?s:l,g="width"===d?s+u:l+c):(m="width"===d?s+u:l+c,g="width"===d?s:l),t){var y=n[f-1],b=_a()(r)?r(y.value):y.value,v=Yh(b)[d],w=h*(y.coordinate+h*v/2-g);p[f-1]=y=Yy({},y,{tickCoord:w>0?y.coordinate-w*h:y.coordinate}),h*(y.tickCoord-h*v/2-m)>=0&&h*(y.tickCoord+h*v/2-g)<=0&&(g=y.tickCoord-h*(v/2+a),p[f-1]=Yy({},y,{isShow:!0}))}for(var x=t?f-1:f,_=0;_=0&&h*(O.tickCoord+h*j/2-g)<=0&&(m=O.tickCoord+h*(j/2+a),p[_]=Yy({},O,{isShow:!0}))}return p.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t=e.ticks,n=e.tickFormatter,r=e.viewBox,o=e.orientation,i=e.minTickGap,a=r.x,s=r.y,l=r.width,u=r.height,c="top"===o||"bottom"===o?"width":"height",d=(t||[]).slice(),p=d.length,f=p>=2?Ad(d[1].coordinate-d[0].coordinate):1,h=void 0,m=void 0;1===f?(h="width"===c?a:s,m="width"===c?a+l:s+u):(h="width"===c?a+l:s+u,m="width"===c?a:s);for(var g=p-1;g>=0;g--){var y=d[g],b=_a()(n)?n(y.value):y.value,v=Yh(b)[c];if(g===p-1){var w=f*(y.coordinate+f*v/2-m);d[g]=y=Yy({},y,{tickCoord:w>0?y.coordinate-w*f:y.coordinate})}else d[g]=y=Yy({},y,{tickCoord:y.coordinate});f*(y.tickCoord-f*v/2-h)>=0&&f*(y.tickCoord+f*v/2-m)<=0&&(m=y.tickCoord-f*(v/2+i),d[g]=Yy({},y,{isShow:!0}))}return d.filter((function(e){return e.isShow}))}}]),t}(u.Component),Hy.displayName="CartesianAxis",Hy.propTypes=Yy({},Zd,Qd,{x:pa.a.number,y:pa.a.number,width:pa.a.number,height:pa.a.number,orientation:pa.a.oneOf(["top","bottom","left","right"]),viewBox:pa.a.shape({x:pa.a.number,y:pa.a.number,width:pa.a.number,height:pa.a.number}),label:pa.a.oneOfType([pa.a.number,pa.a.string,pa.a.func,pa.a.element]),tick:pa.a.oneOfType([pa.a.bool,pa.a.func,pa.a.object,pa.a.element]),axisLine:pa.a.oneOfType([pa.a.bool,pa.a.object]),tickLine:pa.a.oneOfType([pa.a.bool,pa.a.object]),mirror:pa.a.bool,minTickGap:pa.a.number,ticks:pa.a.array,tickSize:pa.a.number,stroke:pa.a.string,tickFormatter:pa.a.func,ticksGenerator:pa.a.func,interval:pa.a.oneOfType([pa.a.number,pa.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Hy.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,interval:"preserveEnd"},Vy),nb=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["x1","y1","x2","y2","key"]);n=c.a.createElement("line",nb({},np(l),{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}},{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,i=n.horizontal;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=nb({},t.props,{x1:r,y1:e,x2:r+o,y2:e,key:"line-"+n,index:n});return t.renderLineItem(i,a)}));return c.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,i=n.vertical;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=nb({},t.props,{x1:e,y1:r,x2:e,y2:r+o,key:"line-"+n,index:n});return t.renderLineItem(i,a)}));return c.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,i=t.width,a=t.height;return c.a.createElement("rect",{x:r,y:o,width:i,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.horizontal,a=e.vertical,s=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,u=e.xAxis,d=e.yAxis,p=e.offset,f=e.chartWidth,h=e.chartHeight;if(r<=0||o<=0||t!==+t||n!==+n)return null;var m=this.props,g=m.horizontalPoints,y=m.verticalPoints;return _a()(s)&&(g=s({yAxis:d,width:f,height:h,offset:p})),_a()(l)&&(y=l({xAxis:u,width:f,height:h,offset:p})),c.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(g),a&&this.renderVertical(y))}}]),t}(u.Component),Jy.displayName="CartesianGrid",Jy.propTypes=nb({},Zd,{x:pa.a.number,y:pa.a.number,width:pa.a.number,height:pa.a.number,horizontal:pa.a.oneOfType([pa.a.object,pa.a.element,pa.a.func,pa.a.bool]),vertical:pa.a.oneOfType([pa.a.object,pa.a.element,pa.a.func,pa.a.bool]),horizontalPoints:pa.a.arrayOf(pa.a.number),verticalPoints:pa.a.arrayOf(pa.a.number),horizontalCoordinatesGenerator:pa.a.func,verticalCoordinatesGenerator:pa.a.func,xAxis:pa.a.object,yAxis:pa.a.object,offset:pa.a.object,chartWidth:pa.a.number,chartHeight:pa.a.number}),Jy.defaultProps={x:0,y:0,width:0,height:0,horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none"},$y=eb))||$y,ub=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),d=np(u);return i.map((function(e,i){var u=a(e,o),p=u.x,f=u.y,h=u.value,m=u.errorVal;if(!m)return null;var g=void 0,y=void 0,b=void 0,v=void 0,w=void 0,x=void 0,_=void 0,O=void 0,S=void 0,j=void 0,E=void 0,C=void 0;return Array.isArray(m)?(E=m[0],C=m[1]):(E=m,C=m),"vertical"===n?(_=s.scale,y=f+t,b=_((g=h)-E),v=y+r,O={x1:w=_(g+C),y1:v,x2:w,y2:x=y-r},S={x1:b,y1:y,x2:w,y2:y},j={x1:b,y1:v,x2:b,y2:x}):"horizontal"===n&&(_=l.scale,b=(g=p+t)-r,w=g+r,v=_((y=h)-E),O={x1:b,y1:x=_(y+C),x2:w,y2:x},S={x1:g,y1:v,x2:g,y2:x},j={x1:b,y1:v,x2:w,y2:v}),c.a.createElement(bp,ub({className:"recharts-errorBar",key:i},d),c.a.createElement("line",O),";",c.a.createElement("line",S),";",c.a.createElement("line",j),";")}))}},{key:"render",value:function(){return c.a.createElement(bp,{className:"recharts-errorBars"},this.renderErrorBars())}}]),t}(u.Component),ab.propTypes={dataKey:pa.a.oneOfType([pa.a.string,pa.a.number,pa.a.func]).isRequired,data:pa.a.array,xAxis:pa.a.object,yAxis:pa.a.object,layout:pa.a.string,dataPointFormatter:pa.a.func,stroke:pa.a.string,strokeWidth:pa.a.number,width:pa.a.number,offset:pa.a.number},ab.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},sb),yb=Object.assign||function(e){for(var t=1;ti){s=[].concat(vb(n.slice(0,l)),[i-u]);break}var c=s.length%2==0?[0,a]:[a];return[].concat(vb(this.repeat(n,o)),vb(s),c).map((function(e){return e+"px"})).join(", ")}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(vb(e),[0]):e,r=[],o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["points","strokeDasharray","isAnimationActive","animationBegin","animationDuration","animationEasing","onClick","onMouseEnter","onMouseLeave"]),h=this.state.totalLength,m={isActive:i,begin:a,canBegin:h>0,easing:l,duration:s,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart,shouldReAnimate:!0,pathRef:this.pathRef},g=yb({},f,{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-"+this.id+")":null,onClick:u,onMouseEnter:d,onMouseLeave:p,points:r});if(!i)return c.a.createElement(Tm,yb({},g,{strokeDasharray:o}));if(o&&h){var y=o.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));return c.a.createElement(ah.a,yb({},m,{from:{curveLen:0},to:{curveLen:h}}),(function(e){var n=e.curveLen;return c.a.createElement(Tm,yb({},g,{strokeDasharray:t.getStrokeDasharray(n,h,y)}))}))}return o?c.a.createElement(Tm,yb({},g,{pathRef:this.pathRef,strokeDasharray:o})):c.a.createElement(ah.a,yb({},m,{from:"0px "+(0===h?1:h)+"px",to:h+"px 0px",attributeName:"strokeDasharray"}),c.a.createElement(Tm,g))}},{key:"render",value:function(){var e=this.props,t=e.dot,n=e.points,r=e.label,o=e.className,i=e.xAxis,a=e.yAxis,s=e.top,l=e.left,u=e.width,d=e.height;if(!n||!n.length)return null;var p=1===n.length,f=ha()("recharts-line",o),h=i&&i.allowDataOverflow||a&&a.allowDataOverflow;return c.a.createElement(bp,{className:f},h?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-"+this.id},c.a.createElement("rect",{x:l,y:s,width:u,height:d}))):null,!p&&this.renderCurve(h),this.renderErrorBar(),(p||t)&&this.renderDots(),r&&this.renderLabels())}}]),t}(u.Component),hb.displayName="Line",hb.propTypes=yb({},Zd,Qd,{className:pa.a.string,type:pa.a.oneOfType([pa.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),pa.a.func]),unit:pa.a.oneOfType([pa.a.string,pa.a.number]),name:pa.a.oneOfType([pa.a.string,pa.a.number]),yAxisId:pa.a.oneOfType([pa.a.string,pa.a.number]),xAxisId:pa.a.oneOfType([pa.a.string,pa.a.number]),yAxis:pa.a.object,xAxis:pa.a.object,legendType:pa.a.oneOf($d),layout:pa.a.oneOf(["horizontal","vertical"]),connectNulls:pa.a.bool,activeDot:pa.a.oneOfType([pa.a.object,pa.a.element,pa.a.func,pa.a.bool]),dot:pa.a.oneOfType([pa.a.object,pa.a.element,pa.a.func,pa.a.bool]),label:pa.a.oneOfType([pa.a.object,pa.a.element,pa.a.func,pa.a.bool]),top:pa.a.number,left:pa.a.number,width:pa.a.number,height:pa.a.number,points:pa.a.arrayOf(pa.a.shape({x:pa.a.number,y:pa.a.number,value:pa.a.value})),onAnimationStart:pa.a.func,onAnimationEnd:pa.a.func,isAnimationActive:pa.a.bool,animationBegin:pa.a.number,animationDuration:pa.a.number,animationEasing:pa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:pa.a.number}),hb.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!sp(),animationBegin:0,animationDuration:1500,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},fb=mb))||fb,Eb=Object.assign||function(e){for(var t=1;t=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a0&&t.handleMouseMove(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Cv(tb.getTicks(Rv({},tb.defaultProps,t,{ticks:Tv(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Cv(tb.getTicks(Rv({},tb.defaultProps,t,{ticks:Tv(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return Tv(e,!0)},t.tooltipTicksGenerator=function(e){var t=e.layout,n=e.xAxisMap,r=e.yAxisMap,o=Ud("horizontal"===t?n:r),i=Tv(o,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:Ea()(i,(function(e){return e.coordinate})),tooltipAxis:o}};var n=t.createDefaultState(e);return t.state=Rv({},n,{updateId:0},t.updateStateOfAxisMapsOffsetAndStackGroups(Rv({props:e},n))),t.validateAxes(),t.uniqueChartId=Nd("recharts"),e.throttleDelay&&(t.triggeredAfterMouseMove=mv()(t.triggeredAfterMouseMove,e.throttleDelay)),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),Lv(r,[{key:"componentDidMount",value:function(){ga()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.data,r=t.children,o=t.width,i=t.height,a=t.layout,s=t.stackOffset,l=t.margin;if(e.data===n&&e.width===o&&e.height===i&&e.layout===a&&e.stackOffset===s&&Yd(e.margin,l)){if(!function(e,t){if(e===t)return!0;if(u.Children.count(e)!==u.Children.count(t))return!1;var n=u.Children.count(e);if(0===n)return!0;if(1===n)return cp(e,t);for(var r=0;ri||si)&&e.domain([t[0],t[n-1]])}}(w);var x=Pv(w,i);"xAxis"===r?(v="top"===l&&!f||"bottom"===l&&f,y=n.left,b=u[m]-v*i.height):(v="left"===l&&!f||"right"===l&&f,y=u[m]-v*i.width,b=n.top);var _=Rv({},i,x,{range:g,x:y,y:b,scale:w,width:"xAxis"===r?n.width:i.width,height:"yAxis"===r?n.height:i.height});return i.hide||"xAxis"!==r?i.hide||(u[m]+=(v?-1:1)*_.width):u[m]+=(v?-1:1)*_.height,Rv({},e,Fv({},o,_))}),{})}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.state.offset,n=Kh(this.container),r=Xh(e,n);if(!(r.chartX>=t.left&&r.chartX<=t.left+t.width&&r.chartY>=t.top&&r.chartY<=t.top+t.height))return null;var o=this.props.layout,i=this.state,a=i.orderedTooltipTicks,s=(i.tooltipAxis,i.tooltipTicks),l=function(e,t){var n=-1,r=t.length;if(r>1){for(var o=0;o0&&o(t[o].coordinate+t[o-1].coordinate)/2&&e<=(t[o].coordinate+t[o+1].coordinate)/2||o===r-1&&e>(t[o].coordinate+t[o-1].coordinate)/2){n=t[o].index;break}}else n=0;return n}("horizontal"===o?r.chartX:r.chartY,a);if(l>=0){var u=s[l]&&s[l].value,c=this.getTooltipContent(l),d=s[l]?{x:"horizontal"===o?s[l].coordinate:r.chartX,y:"horizontal"===o?r.chartY:s[l].coordinate}:Bv;return Rv({},r,{activeTooltipIndex:l,activeLabel:u,activePayload:c,activeCoordinate:d})}return null}},{key:"getTooltipContent",value:function(e){var t=this.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.graphicalItems,i=this.props.data.slice(n,r+1);return e<0||!o||!o.length||e>=i.length?null:o.map((function(t){var n=t.props,r=n.dataKey,o=n.name,a=n.unit,s=n.formatter;return Rv({},np(t),{dataKey:r,unit:a,formatter:s,name:o||r,color:kv(t),value:Vd(i[e],r),payload:i[e]})}))}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,i=n.data;if(!ap({props:n})||!i||!i.length)return null;var a=n.children,s=n.layout,l=n.stackOffset,u="horizontal"===s?"yAxis":"xAxis",c="horizontal"===s?"xAxis":"yAxis",d=ep(a,t),p=function(e,t,n,r,o){var i=t.reduce((function(e,t){var o=t.props.stackId,i=t.props[n],a=e[i]||{hasStack:!1,stackGroups:{}};if(Id(o)){var s=a.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items=[t].concat(s.items),a.hasStack=!0,a.stackGroups[o]=s}else a.stackGroups[Nd("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return yv({},e,vv({},i,a))}),{});return Object.keys(i).reduce((function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return yv({},t,vv({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:_v(e,a.items,o)}))}),{})),yv({},t,vv({},a,s))}),{})}(i,d,u+"Id",c+"Id",l),f=this.getAxisMap(n,{axisType:"xAxis",graphicalItems:d,stackGroups:"xAxis"===u&&p,dataStartIndex:r,dataEndIndex:o}),h=this.getAxisMap(n,{axisType:"yAxis",graphicalItems:d,stackGroups:"yAxis"===u&&p,dataStartIndex:r,dataEndIndex:o}),m=this.calculateOffset(n,d,f,h);f=this.getFormatAxisMap(n,f,m,"xAxis"),h=this.getFormatAxisMap(n,h,m,"yAxis");var g=this.tooltipTicksGenerator({layout:s,xAxisMap:f,yAxisMap:h});return Rv({graphicalItems:d,xAxisMap:f,yAxisMap:h,offset:m,stackGroups:p},g)}},{key:"addListener",value:function(){Dv.on(Nv,this.handleReceiveSyncEvent),Dv.setMaxListeners&&Dv._maxListeners&&Dv.setMaxListeners(Dv._maxListeners+1)}},{key:"removeListener",value:function(){Dv.removeListener(Nv,this.handleReceiveSyncEvent),Dv.setMaxListeners&&Dv._maxListeners&&Dv.setMaxListeners(Dv._maxListeners-1)}},{key:"createDefaultState",value:function(e){var t=e.children,n=tp(t,_y);return{chartX:0,chartY:0,dataStartIndex:n&&n.props&&n.props.startIndex||0,dataEndIndex:n&&n.props&&n.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!1}}},{key:"calculateOffset",value:function(e,t,n,r){var o=e.width,i=e.height,a=e.children,s=e.margin||{},l=tp(a,_y),u=tp(a,oh),c=Object.keys(r).reduce((function(e,t){var n=r[t],o=n.orientation;return n.mirror||n.hide?e:Rv({},e,Fv({},o,e[o]+n.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(n).reduce((function(e,t){var r=n[t],o=r.orientation;return r.mirror||r.hide?e:Rv({},e,Fv({},o,e[o]+r.height))}),{top:s.top||0,bottom:s.bottom||0}),p=Rv({},d,c),f=p.bottom;if(l&&(p.bottom+=l.props.height||_y.defaultProps.height),u&&this.legendInstance){var h=this.legendInstance.getBBox();p=Mv(p,t,e,h)}return Rv({brushBottom:f},p,{width:o-p.left-p.right,height:i-p.top-p.bottom})}},{key:"validateAxes",value:function(){var e=this.props,t=e.layout,n=e.children,r=ep(n,nv),o=ep(n,uv);if("horizontal"===t&&r&&r.length)r.forEach((function(e){"category"===e.props.type||"number"===e.props.type&&ga()(e.props.dataKey)}));else if("vertical"===t){this.constructor.displayName;o&&o.length,r&&r.length,o&&o.length&&o.forEach((function(e){"category"===e.props.type||"number"===e.props.type&&ga()(e.props.dataKey)}))}return null}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;ga()(t)||Dv.emit(Nv,t,this.uniqueChartId,e)}},{key:"renderAxes",value:function(e,t){var n=this.props,r=n.width,o=n.height,i=e&&Object.keys(e);if(i&&i.length){for(var a=[],s=0,l=i.length;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","width","height"]),a=this.state,s=a.xAxisMap,l=a.yAxisMap,u=np(i);return c.a.createElement(hp,Rv({},u,{width:r,height:o}),this.renderGrid(),this.renderReferenceElements(!1,Wy),this.renderReferenceElements(!1,Py),this.renderReferenceElements(!1,zy),this.renderAxes(s,"x-axis"),this.renderAxes(l,"y-axis"),c.a.createElement(e,Rv({},this.props,this.state)),this.renderReferenceElements(!0,Wy),this.renderReferenceElements(!0,Py),this.renderReferenceElements(!0,zy),this.renderBrush(),up(n))}},{key:"render",value:function(){var e=this,t=this.props.data;if(!ap(this)||!t||!t.length)return null;var n=this.props,r=n.className,o=n.width,i=n.height,a=n.style,s=n.compact,l={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchMove:this.handleTouchMove};return s?this.renderChart():c.a.createElement("div",Rv({className:ha()("recharts-wrapper",r),style:Rv({},a,{position:"relative",cursor:"default",width:o,height:i})},l,{ref:function(t){e.container=t}}),this.renderChart(),this.renderLegend(),this.renderTooltip())}}]),r}(u.Component),n.displayName=Jd(e),n.propTypes=Rv({},e.propTypes,{syncId:pa.a.oneOfType([pa.a.string,pa.a.number]),compact:pa.a.bool,width:pa.a.number,height:pa.a.number,data:pa.a.arrayOf(pa.a.object),layout:pa.a.oneOf(["horizontal","vertical"]),stackOffset:pa.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:pa.a.number,margin:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),style:pa.a.object,className:pa.a.string,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),onClick:pa.a.func,onMouseLeave:pa.a.func,onMouseEnter:pa.a.func,onMouseMove:pa.a.func}),n.defaultProps={layout:"horizontal",stackOffset:"none",margin:{top:5,right:5,bottom:5,left:5}},r},Uv=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Vv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Yv,Kv,Xv,Zv=function(e){var t=e.getComposedData,n=e.ChildComponent;return function(e){var r,o;return o=r=function(r){function o(){var e,t,n;Vv(this,o);for(var r=arguments.length,i=Array(r),a=0;a=0?r.stackedData[o]:null}}return null}(e,l[E].stackGroups),j=qd(T,k);var A=ga()(m)?h:m;O=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var l=Rd(t,r,0,!0),u=void 0;if(i[0].barSize===+i[0].barSize){var c=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(c=!0,p=s*(d*=.9));var f={offset:((r-p)/2>>0)-l,size:0};u=i.reduce((function(e,t){var n=[].concat(bv(e),[{item:t.item,position:{offset:f.offset+f.size+l,size:c?d:t.barSize}}]);return f=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:f})})),n}),[])}else{var h=Rd(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var m=(r-2*h-(s-1)*l)/s;m>1&&(m>>=0);var g=a===+a?Math.min(m,a):m;u=i.reduce((function(e,t,n){var r=[].concat(bv(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u}({barGap:p,barCategoryGap:f,bandSize:j,sizeList:g[C],maxBarSize:A})}var P=t&&t({props:r,xAxis:v,yAxis:w,xTicks:x,yTicks:_,dataKey:d,item:e,bandSize:j,barPosition:O,offset:c,stackedData:S})||{};b.push(P)})),{axisTicks:y,allComposedData:b}}},{key:"componentWillReceiveProps",value:function(e){var t=e.graphicalItems,n=e.children,r=(e.chartX,e.chartY,e.activeTooltipIndex,e.activeLabel,e.activeCoordinate,e.activePayload,e.isTooltipActive,Hv(e,["graphicalItems","children","chartX","chartY","activeTooltipIndex","activeLabel","activeCoordinate","activePayload","isTooltipActive"])),o=this.props,i=o.graphicalItems,a=o.children,s=(o.chartX,o.chartY,o.activeTooltipIndex,o.activeLabel,o.activeCoordinate,o.activePayload,o.isTooltipActive,Hv(o,["graphicalItems","children","chartX","chartY","activeTooltipIndex","activeLabel","activeCoordinate","activePayload","isTooltipActive"]));Yd(t,i)&&Yd(n,a)&&Yd(r,s)||this.setState(this.calculateExpensiveState({props:e}))}},{key:"shouldComponentUpdate",value:function(e,t){var n=e.graphicalItems,r=Hv(e,["graphicalItems"]),o=this.props,i=o.graphicalItems,a=Hv(o,["graphicalItems"]);return!Yd(n,i)||!Yd(r,a)||!Yd(t,this.state)}},{key:"render",value:function(){return c.a.createElement(e,Uv({},this.props,this.state))}}]),o}(u.Component),r.displayName="ComposedDataDecorator("+Jd(e)+")",r.propTypes=Uv({},e.propTypes,{chartX:pa.a.number,chartY:pa.a.number,data:pa.a.array}),r.defaultProps=e.defaultProps,o}},Qv=Object.assign||function(e){for(var t=1;t=0?0:s<0?s:a}return i[0]}({props:t,xAxis:i,yAxis:a}),x=ep(m,Rh);return v.map((function(e,t){var n=void 0,r=void 0,p=void 0,f=void 0,m=void 0;if(u?n=function(e,t){if(!t||2!==t.length||!Md(t[0])||!Md(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Md(e[0])||e[0]r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]0&&Math.abs(m)0&&Math.abs(f)=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","children","className","width","height"]),s=ep(n,Qg),l=np(a);return c.a.createElement("div",{className:ha()("recharts-wrapper",r),style:yw({},t,{position:"relative",cursor:"default",width:o,height:i})},c.a.createElement(hp,yw({},l,{width:o,height:i}),this.renderItems(s),up(n)),this.renderLegend(s),this.renderTooltip())}}]),t}(u.Component),pw.displayName="PieChart",pw.propTypes={allComposedData:pa.a.array,width:pa.a.number,height:pa.a.number,margin:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),title:pa.a.string,style:pa.a.object,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),className:pa.a.string,onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func},pw.defaultProps={style:{},margin:{top:0,right:0,bottom:0,left:0}},dw=fw));var ww,xw,_w,Ow=function(){function e(e,t){for(var n=0;nn.height)&&(o=n.height);for(var i=n.x,a=void 0,s=0,l=e.length;sn.width)&&(o=n.width);for(var i=n.y,a=void 0,s=0,l=e.length;s0;)i.push(s=d[0]),i.area+=s.area,(l=Aw(i,u,n))<=a?(d.shift(),a=l):(i.area-=i.pop().area,o=Pw(i,u,o,!1),u=Math.min(o.width,o.height),i.length=i.area=0,a=1/0);return i.length&&(o=Pw(i,u,o,!0),i.length=i.area=0),Sw({},t,{children:c.map((function(t){return e(t,n)}))})}return t},Iw=(Xd((_w=xw=function(e){function t(){var e,n,r;jw(this,t);for(var o=arguments.length,i=Array(o),a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","className","style","children"]),s=np(a);return c.a.createElement("div",{className:ha()("recharts-wrapper",r),style:Sw({},o,{position:"relative",cursor:"default",width:t,height:n})},c.a.createElement(hp,Sw({},s,{width:t,height:n}),this.renderAllNodes(),up(i)),this.renderTooltip())}}]),t}(u.Component),xw.displayName="Treemap",xw.propTypes={width:pa.a.number,height:pa.a.number,data:pa.a.array,style:pa.a.object,aspectRatio:pa.a.number,content:pa.a.oneOfType([pa.a.element,pa.a.func]),fill:pa.a.string,stroke:pa.a.string,className:pa.a.string,nameKey:pa.a.oneOfType([pa.a.string,pa.a.number,pa.a.func]),dataKey:pa.a.oneOfType([pa.a.string,pa.a.number,pa.a.func]),children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func,isAnimationActive:pa.a.bool,isUpdateAnimationActive:pa.a.bool,animationBegin:pa.a.number,animationDuration:pa.a.number,animationEasing:pa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},xw.defaultProps={dataKey:"value",aspectRatio:.5*(1+Math.sqrt(5)),isAnimationActive:!sp(),isUpdateAnimationActive:!sp(),animationBegin:0,animationDuration:1500,animationEasing:"linear"},ww=_w)),n("./MapStore2/node_modules/lodash/sumBy.js")),Dw=n.n(Iw),Nw=n("./MapStore2/node_modules/lodash/min.js"),Rw=n.n(Nw),Lw=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Bw,qw,Uw,Gw={x:0,y:0},Hw=function(e){return e.y+e.dy/2},Vw=function(e){return e&&e.value||0},Ww=function(e,t){return t.reduce((function(t,n){return t+Vw(e[n])}),0)},Yw=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+Hw(i)*Vw(t[r])}),0)},Kw=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+Hw(i)*Vw(t[r])}),0)},Xw=function(e,t){return e.y-t.y},Zw=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o0&&(u.y+=c),s=u.y+u.dy+n}s=t+n;for(var d=a-1;d>=0;d--){var p=i[d],f=p.y+p.dy+n-s;if(!(f>0))break;p.y-=f,s=p.y}}},$w=function(e,t,n,r){for(var o=0,i=t.length;o=0;o--)for(var i=t[o],a=0,s=i.length;a=1)for(var c=(t-n)/u,d=0,p=i.length;d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","data","width","height","margin","children","style"]),d=Rd(this.props.cx,o,o/2),p=Rd(this.props.cy,i,i/2),f=am(o,i,a),h=Rd(this.props.innerRadius,f,0),m=Rd(this.props.outerRadius,f,.8*f);if(m<=0||!r||!r.length)return null;var g=ep(s,iy),y=tp(s,Cg),b=this.getRadiusAxisCfg(y,h,m),v=np(u);return c.a.createElement("div",{className:ha()("recharts-wrapper",n),style:tx({},l,{position:"relative",cursor:"default",width:o,height:i}),ref:function(t){e.container=t}},c.a.createElement(hp,tx({},v,{width:o,height:i}),this.renderGrid(b,d,p,h,m),this.renderRadiusAxis(y,b,d,p),this.renderAngleAxis(d,p,m,f),this.renderRadars(g,b.scale,d,p),up(s)),this.renderLegend(g),this.renderTooltip())}}]),t}(u.Component),qw.displayName="RadarChart",qw.propTypes={width:pa.a.number,height:pa.a.number,margin:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),cx:pa.a.oneOfType([pa.a.number,pa.a.string]),cy:pa.a.oneOfType([pa.a.number,pa.a.string]),startAngle:pa.a.number,innerRadius:pa.a.oneOfType([pa.a.number,pa.a.string]),outerRadius:pa.a.oneOfType([pa.a.number,pa.a.string]),clockWise:pa.a.bool,data:pa.a.array,style:pa.a.object,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),className:pa.a.string,animationId:pa.a.number,onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func},qw.defaultProps={width:0,height:0,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%",startAngle:90,clockWise:!0,data:[],margin:{top:0,right:0,bottom:0,left:0}},Bw=Uw))||Bw);var ix,ax,sx,lx=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"xAxis",t=arguments[1],n=this.props.children,r="xAxis"===e?nv:uv,o=tp(n,r);if(r.displayName,o){var i=zd(o.props.domain,this.getDomain(t,o.props.dataKey,o.props[e+"Id"],e),o.props.allowDataOverflow);return lx({},o.props,{axisType:e,domain:i,type:"number",originalDomain:o.props.domain})}return null}},{key:"getZAxis",value:function(e){var t=this.props.children,n=tp(t,fv),r=n&&n.props||fv.defaultProps,o=r.dataKey?this.getDomain(e,r.dataKey):[-1,1];return lx({},r,{domain:o,scale:Hd(r).domain(o).range(r.range)})}},{key:"getOffset",value:function(e,t,n){var r=this.props,o=r.width,i=r.height,a=r.margin,s=r.children,l=tp(s,oh),u={left:a.left||0,right:a.right||0,top:a.top||0,bottom:a.bottom||0};if(t.hide||t.mirror||(u[t.orientation]+=t.height),n.hide||n.mirror||(u[n.orientation]+=n.width),l&&this.legendInstance){var c=this.legendInstance.getBBox();u=Mv(u,e,this.props,c)}return lx({},u,{width:o-u.left-u.right,height:i-u.top-u.bottom})}},{key:"getFormatAxis",value:function(e,t,n){var r=e.orientation,o=e.domain,i=e.mirror,a=e.tickFormat,s=e.padding,l=void 0===s?{}:s,u={left:t.left,right:t.left+t.width,top:t.top,bottom:t.top+t.height},c="xAxis"===n?[t.left+(l.left||0),t.left+t.width-(l.right||0)]:[t.top+t.height-(l.bottom||0),t.top+(l.top||0)],d=Hd(e).domain(o).range(c),p=Pv(d,e);a&&d.tickFormat(a);var f=void 0,h=void 0;if("xAxis"===n){var m="top"===r&&!i||"bottom"===r&&i;f=t.left,h=u[r]-m*e.height}else{f=u[r]-("left"===r&&!i||"right"===r&&i)*e.width,h=t.top}return lx({},e,p,{scale:d,width:"xAxis"===n?t.width:e.width,height:"yAxis"===n?t.height:e.height,x:f,y:h})}},{key:"getTooltipContent",value:function(e,t,n,r){if(!e)return null;var o=e.payload,i=e.node,a=[{name:t.name||t.dataKey,unit:t.unit||"",value:i.x,payload:o},{name:n.name||n.dataKey,unit:n.unit||"",value:i.y,payload:o}];return i.z&&"-"!==i.z&&a.push({name:r.name||r.dataKey,unit:r.unit||"",value:i.z,payload:o}),a}},{key:"renderTooltip",value:function(e,t,n,r,o){var i=this.props.children,a=tp(i,Sh);if(!a)return null;var s=this.state,l=s.isTooltipActive,u=s.activeItem,d=s.activeTooltipCoord,p={x:o.left,y:o.top,width:o.width,height:o.height};return c.a.cloneElement(a,{viewBox:p,active:l,label:"",payload:this.getTooltipContent(u,t,n,r),coordinate:d})}},{key:"renderGrid",value:function(e,t,n){var r=this.props,o=r.children,i=r.width,a=r.height,s=tp(o,lb);if(!s)return null;var l=Cv(tb.getTicks(lx({},tb.defaultProps,e,{ticks:Tv(e,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.left,n.left+n.width),u=Cv(tb.getTicks(lx({},tb.defaultProps,t,{ticks:Tv(t,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.top,n.top+n.height);return c.a.cloneElement(s,{key:"grid",x:n.left,y:n.top,width:n.width,height:n.height,verticalPoints:l,horizontalPoints:u})}},{key:"renderLegend",value:function(e){var t=this,n=this.props,r=n.children,o=n.width,i=n.height,a=n.margin,s=o-(a.left||0)-(a.right||0),l=(a.top,a.bottom,Av(r,e,s));return l?c.a.createElement(oh,lx({},l,{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:this.handleLegendBBoxUpdate})):null}},{key:"renderAxis",value:function(e,t){var n=this.props,r=n.width,o=n.height;return e&&!e.hide?c.a.createElement(bp,{key:t,className:t},c.a.createElement(tb,lx({},e,{viewBox:{x:0,y:0,width:r,height:o},ticks:Tv(e,!0)}))):null}},{key:"renderCursor",value:function(e,t,n){var r=this.props.children,o=tp(r,Sh);if(!o||!o.props.cursor||!this.state.isTooltipActive)return null;var i=this.state.activeItem,a=lx({stroke:"#ccc",strokeDasharray:"5 5"},np(o.props.cursor),n,{x:i.cx,y:i.cy,payload:i});return c.a.isValidElement(o.props.cursor)?c.a.cloneElement(o.props.cursor,a):c.a.createElement(lg,a)}},{key:"renderItems",value:function(e,t,n,r,o){var i=this,a=this.state.activeGroupId;return e.map((function(e,s){var l=e.props,u=l.strokeWidth,d=l.data,p=u===+u?u:1;return p=a==="scatter-"+s?p+2:p,c.a.cloneElement(e,lx({key:e.key||"scatter-"+s,groupId:"scatter-"+s,strokeWidth:p,onMouseLeave:i.handleScatterMouseLeave,onMouseEnter:i.handleScatterMouseEnter,points:i.getComposedData(e,d,t,n,r)},o,{xAxis:t,yAxis:n}))}),this)}},{key:"renderReferenceElements",value:function(e,t,n,r,o){var i=this.props.children,a=ep(i,o);if(!a||!a.length)return null;var s=Jd(o)+"-"+(r?"front":"back");return a.filter((function(e){return r===e.props.isFront})).map((function(r,o){return c.a.cloneElement(r,{key:s+"-"+o,xAxis:e,yAxis:t,viewBox:{x:n.left,y:n.top,width:n.width,height:n.height}})}))}},{key:"render",value:function(){if(!ap(this))return null;var e=this.props,t=(e.style,e.children),n=e.className,r=e.width,o=e.height,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","children","className","width","height"]),a=ep(t,Xb),s=this.getZAxis(a),l=this.getAxis("xAxis",a),u=this.getAxis("yAxis",a),d=this.getOffset(a,l,u);l=this.getFormatAxis(l,d,"xAxis"),u=this.getFormatAxis(u,d,"yAxis");var p=rp(this.props),f=np(i);return c.a.createElement("div",lx({className:ha()("recharts-wrapper",n),style:{position:"relative",cursor:"default",width:r,height:o}},p),c.a.createElement(hp,lx({},f,{width:r,height:o}),this.renderGrid(l,u,d),this.renderReferenceElements(l,u,d,!1,Wy),this.renderReferenceElements(l,u,d,!1,Py),this.renderReferenceElements(l,u,d,!1,zy),this.renderAxis(l,"recharts-x-axis"),this.renderAxis(u,"recharts-y-axis"),this.renderCursor(l,u,d),this.renderItems(a,l,u,s,d),this.renderReferenceElements(l,u,d,!0,Wy),this.renderReferenceElements(l,u,d,!0,Py),this.renderReferenceElements(l,u,d,!0,zy),up(t)),this.renderLegend(a),this.renderTooltip(a,l,u,s,d))}}]),t}(u.Component),ax.displayName="ScatterChart",ax.propTypes=lx({},Qd,{width:pa.a.number,height:pa.a.number,margin:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),title:pa.a.string,style:pa.a.object,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),className:pa.a.string}),ax.defaultProps={style:{},margin:{top:5,right:5,bottom:5,left:5}},ix=sx));var px,fx,hx,mx=Object.assign||function(e){for(var t=1;t>0)-r,radius:0};a=t.reduce((function(e,t){return l={offset:l.offset+l.radius+r,radius:t.barSize},[].concat(Ex(e),[{item:t.item,position:l}])}),[])}else{var u=Rd(o,e),c=(e-2*u-(i-1)*r)/i>>0;u=-Math.max((c*i+(i-1)*r)/2>>0,0),a=t.reduce((function(e,t,n){return[].concat(Ex(e),[{item:t.item,position:{offset:u+(c+r)*n,radius:c}}])}),[])}return a}},{key:"createDefaultState",value:function(){return{activeTooltipLabel:"",activeTooltipPayload:[],activeTooltipCoord:{x:0,y:0},isTooltipActive:!1}}},{key:"renderLegend",value:function(){var e=this.props.children,t=tp(e,oh);if(!t)return null;var n=this.props,r=n.data,o=n.width,i=n.height,a=n.margin,s=t.props&&t.props.payload||r.map((function(e){return{type:t.props.iconType||"square",color:e.fill||"#000",value:e.name,payload:e}}));return c.a.cloneElement(t,Sx({},oh.getWithHeight(t,o),{payload:s,chartWidth:o,chartHeight:i,margin:a}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=tp(e,Sh);if(!t)return null;var n=this.props,r=n.width,o=n.height,i=this.state,a=i.isTooltipActive,s=i.activeTooltipLabel,l=i.activeTooltipCoord,u=i.activeTooltipPayload,d={x:0,y:0,width:r,height:o};return c.a.cloneElement(t,{viewBox:d,active:a,label:s,payload:u,coordinate:l})}},{key:"renderItems",value:function(e,t,n){var r=this;if(!e||!e.length)return null;var o=this.props,i=o.onMouseEnter,a=o.onMouseLeave,s=o.onClick,l=this.getRadiusList(e),u=t.bandwidth(),d=this.getBarPosition(u,l);return e.map((function(e,o){var l=e.props,u=l.dataKey,p=l.onMouseEnter,f=l.onMouseLeave,h=l.onClick;return c.a.cloneElement(e,Sx({},n,{key:e.key||"radial-bar-"+o,onMouseEnter:Gd(r.handleMouseEnter,i,p),onMouseLeave:Gd(r.handleMouseLeave,a,f),onClick:Gd(null,s,h),data:r.getComposedData(e,d,t,n,u)}))}),this)}},{key:"render",value:function(){var e=this.props.data;if(!ap(this)||!e||!e.length)return null;var t=this.props,n=t.style,r=t.children,o=t.className,i=t.width,a=t.height,s=t.margin,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","children","className","width","height","margin"]),u=ep(r,hy),d=Rd(this.props.cx,i,i/2),p=Rd(this.props.cy,a,a/2),f=am(i,a,s),h=Rd(this.props.innerRadius,f,0),m=Rd(this.props.outerRadius,f,.8*f),g=this.getRadiusScale(h,m),y=np(l);return c.a.createElement("div",{className:ha()("recharts-wrapper",o),style:Sx({},n,{cursor:"default",position:"relative",width:i,height:a})},c.a.createElement(hp,Sx({},y,{width:i,height:a}),this.renderItems(u,g,{cx:d,cy:p}),up(r)),this.renderLegend(),this.renderTooltip(u))}}]),t}(u.Component),wx.displayName="RadialBarChart",wx.propTypes={width:pa.a.number,height:pa.a.number,margin:pa.a.shape({top:pa.a.number,right:pa.a.number,bottom:pa.a.number,left:pa.a.number}),cy:pa.a.oneOfType([pa.a.number,pa.a.string]),cx:pa.a.oneOfType([pa.a.number,pa.a.string]),data:pa.a.array,innerRadius:pa.a.oneOfType([pa.a.number,pa.a.string]),outerRadius:pa.a.oneOfType([pa.a.number,pa.a.string]),barCategoryGap:pa.a.oneOfType([pa.a.number,pa.a.string]),barGap:pa.a.number,barSize:pa.a.number,title:pa.a.string,style:pa.a.object,onMouseEnter:pa.a.func,onMouseLeave:pa.a.func,onClick:pa.a.func,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node]),className:pa.a.string},wx.defaultProps={cx:"50%",cy:"50%",innerRadius:"30%",outerRadius:"90%",barGap:2,barCategoryGap:"10%",style:{},margin:{top:0,right:0,bottom:0,left:0}},vx=xx));var kx,Ax,Px,Mx=Object.assign||function(e){for(var t=1;t=0)if(ga()(t[a]))t[a]=n.length,n.push({items:[i],type:a});else{var s=t[a];n[s].items=[].concat(Dx(n[s].items),[i])}}return n}},{key:"renderCursor",value:function(e){var t=e.xAxisMap,n=e.yAxisMap,r=e.offset,o=this.props,i=o.children,a=o.isTooltipActive,s=o.layout,l=o.activeTooltipIndex,u=o.axisTicks,d=tp(i,Sh);if(!d||!d.props.cursor||!a||l<0)return null;var p=Ud("horizontal"===s?t:n),f=u;if(!f||!f[l])return null;var h=qd(p),m=f[l].coordinate,g=Mx({fill:"#f1f1f1"},np(d.props.cursor),{x:"horizontal"===s?m:r.left+.5,y:"horizontal"===s?r.top+.5:m,width:"horizontal"===s?h:r.width-1,height:"horizontal"===s?r.height-1:h});return c.a.isValidElement(d.props.cursor)?c.a.cloneElement(d.props.cursor,g):c.a.createElement(Lm,g)}},{key:"render",value:function(){var e=this,t=this.props,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,i=this.filterGraphicalItems();return c.a.createElement(bp,{className:"recharts-composed"},this.renderCursor({xAxisMap:n,yAxisMap:r,offset:o}),i.map((function(t){var n=t.items,r=t.type,o=Fx[r];return c.a.createElement(o,Mx({key:r},e.props,{graphicalItems:n,isComposed:!0}))})))}}]),t}(u.Component),Ax.displayName="ComposedChart",Ax.propTypes={allComposedData:pa.a.array,axisTicks:pa.a.array,layout:pa.a.oneOf(["horizontal","vertical"]),dataStartIndex:pa.a.number,dataEndIndex:pa.a.number,isTooltipActive:pa.a.bool,activeTooltipIndex:pa.a.number,xAxisMap:pa.a.object,yAxisMap:pa.a.object,offset:pa.a.object,graphicalItems:pa.a.array,stackGroups:pa.a.object,children:pa.a.oneOfType([pa.a.arrayOf(pa.a.node),pa.a.node])},kx=Px))||kx)||kx,[jb,Ib,qb]);function zx(e){return(zx="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 Bx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qx(e,t){for(var n=0;n120&&t[1]>30)Object.assign(e.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"===e.domNode.style.float){var n=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"auto",bottom:"-".concat(n.height+4,"px"),left:"-".concat(n.width+4,"px")})}else{var r=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"-".concat(r.width+4,"px"),bottom:"-".concat(r.height+4,"px"),left:"auto"})}}})),I_(A_(e),"getCurrentSize",(function(){return"IMG"===e.domNode.tagName.toUpperCase()?[e.domNode.width,Math.round(e.domNode.width/e.domNode.naturalWidth*e.domNode.naturalHeight)]:[e.domNode.clientWidth,e.domNode.clientHeight]})),e}return n}(u),d=function(e){E_(n,e);var t=T_(n);function n(){var e;M_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&(s.style.borderLeftWidth="0"),Object.assign(s.style,e.options.toolbarButtonSvgStyles),n.isApplied()&&e._selectButton(s),e.toolbar.appendChild(s)}))})),I_(A_(e),"_selectButton",(function(e){e.style.filter="invert(20%)"})),e}return n}(u),f={DisplaySize:c,Toolbar:p,Resize:d},h=["height","width"],m=function(e){E_(a,e);var t,r,o,i=T_(a);function a(){return M_(this,a),i.apply(this,arguments)}return t=a,o=[{key:"create",value:function(e){var t="",n="100%",r=200;Object(se.isObject)(e)?(t=e.src||t,n=e.width||n,r=e.height||r):t=e||t;var o=j_(P_(a),"create",this).call(this,e);o.style.position="relative",e.domNodeStyle&&Object.assign(o.style,e.domNodeStyle),o.style.width=Object(se.isString)(n)&&-1!==n.indexOf("%")?n:n+"px",o.style.height=Object(se.isString)(r)&&-1!==r.indexOf("%")?r:r+"px";var i=document.createElement("IFRAME");i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(t)),i.setAttribute("width",n),i.setAttribute("height",r);var s=document.createElement("DIV");return s.setAttribute("class","ms-quill-iframe"),s.style.overflow="hidden",s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.width=Object(se.isString)(n)&&-1!==n.indexOf("%")?n:n+"px",s.style.height=Object(se.isString)(r)&&-1!==r.indexOf("%")?r:r+"px",s.style.border="1px solid #ddd",o.appendChild(i),o.appendChild(s),o}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return n.sanitize(e)}},{key:"value",value:function(e){var t=e.children&&e.children[0]&&e.children[0].children&&e.children[0].children[0];return t?{src:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),domNodeStyle:O_({},e.style)}:""}}],(r=[{key:"format",value:function(e,t){h.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):j_(P_(a.prototype),"format",this).call(this,e,t)}}])&&S_(t.prototype,r),o&&S_(t,o),a}(t);m.blotName="video",m.className="ql-video",m.tagName="DIV";return{ResizeModule:function t(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M_(this,t),I_(this,"initializeModules",(function(){r.removeModules(),r.modules=r.moduleClasses.map((function(e){return new(f[e]||e)(r)})),r.modules.forEach((function(e){e.onCreate()})),r.onUpdate()})),I_(this,"onUpdate",(function(){r.repositionElements(),r.modules.forEach((function(e){e.onUpdate()}))})),I_(this,"removeModules",(function(){r.modules.forEach((function(e){e.onDestroy()})),r.modules=[]})),I_(this,"handleClick",(function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()||e.target&&e.target.tagName&&"DIV"===e.target.tagName.toUpperCase()&&"ms-quill-iframe"===e.target.getAttribute("class")){if(r.domNode===e.target)return;r.domNode&&r.hide(),r.show(e.target)}else r.domNode&&r.hide()})),I_(this,"show",(function(e){r.domNode=e,r.showOverlay(),r.initializeModules()})),I_(this,"showOverlay",(function(){r.overlay&&r.hideOverlay(),r.quill.setSelection(null),r.setUserSelect("none"),document.addEventListener("keyup",r.checkImage,!0),r.quill.root.addEventListener("input",r.checkImage,!0);var e=r.quill.root.parentNode.querySelector(".ql-editor");if(e&&(e.style.overflow="hidden"),r.overlay=document.createElement("div"),Object.assign(r.overlay.style,r.options.overlayStyles),r.domNode&&"ms-quill-iframe"===r.domNode.getAttribute("class")){r.input=document.createElement("input"),r.input.style.position="absolute",r.input.style.left="8px",r.input.style.top="16px",r.input.style.width="calc(100% - 16px)";var t=r.domNode.parentNode&&r.domNode.parentNode.children&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0].getAttribute("src")||"";r.input.setAttribute("value",t),r.overlay.appendChild(r.input),r.overlay.style.backgroundColor="rgba(0, 0, 0, 0.2)"}r.quill.root.parentNode.appendChild(r.overlay),r.repositionElements()})),I_(this,"hideOverlay",(function(){if(r.overlay){r.input&&(r.domNode.parentNode&&r.domNode.parentNode.children&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0].setAttribute("src",r.input.value),r.overlay.removeChild(r.input),r.input=void 0);var e=r.quill.root.parentNode.querySelector(".ql-editor");e&&(e.style.overflow="auto"),r.quill.root.parentNode.removeChild(r.overlay),r.overlay=void 0,document.removeEventListener("keyup",r.checkImage),r.quill.root.removeEventListener("input",r.checkImage),r.setUserSelect("")}})),I_(this,"repositionElements",(function(){if(r.overlay&&r.domNode){var e=r.quill.root.parentNode,t="IMG"===r.domNode.tagName.toUpperCase()?r.domNode.getBoundingClientRect():r.domNode.parentNode.parentNode.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(r.overlay.style,{left:"".concat(t.left-n.left-1+e.scrollLeft,"px"),top:"".concat(t.top-n.top+e.scrollTop,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")})}})),I_(this,"hide",(function(){r.hideOverlay(),r.removeModules(),r.domNode=void 0})),I_(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){r.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),I_(this,"checkImage",(function(t){r.domNode&&r.input!==t.target&&(46!==t.keyCode&&8!==t.keyCode||"IMG"!==r.domNode.tagName.toUpperCase()||e.find(r.domNode).deleteAt(0),r.hide())})),this.quill=n;var i=!1;if(o.modules&&(i=o.modules.slice()),this.options=Object(se.defaultsDeep)({},o,l),!1!==i&&(this.options.modules=i),this.quill.theme&&this.quill.theme.modules&&this.quill.theme.modules.toolbar&&this.quill.theme.modules.toolbar.container&&this.options.iframeIcon){var a=this.quill.theme.modules.toolbar.container.querySelector(".ql-video");a&&(a.innerHTML='')}this.quill.theme&&this.quill.theme.tooltip&&this.quill.theme.tooltip.root&&this.quill.theme.tooltip.root.classList&&this.quill.theme.tooltip.root.classList.add&&this.options.iframeIcon&&this.quill.theme.tooltip.root.classList.add("ms-ql-iframe-tooltip"),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]},IFrame:m,toolbarConfig:{container:[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"],["video"]]},BaseModule:u,Toolbar:p,DisplaySize:c,Resize:d}}(X_),Q_=Z_.ResizeModule,$_=Z_.IFrame,J_=Z_.toolbarConfig;X_.register({"formats/video":$_,"modules/resizeModule":Q_});var eO=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&&G_(e,t)}(i,e);var t,n,r,o=H_(i);function i(){var e;q_(this,i);for(var t=arguments.length,n=new Array(t),r=0;r3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=Math.PI/2*3,s=t,l=n,u=Math.PI/r;e.moveTo(t,n-o);for(var c=0;c=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var IS=function(e){var t=e.type,n=e.patterns,r=e.paths,o=e.texts,i=e.backgroundColor,a=void 0===i?"#ffffff":i;return c.a.createElement("svg",{viewBox:"0 0 200 200"},c.a.createElement("defs",null,n&&n.filter((function(e){return e.icon})).map((function(e){return c.a.createElement("pattern",{id:e.id,viewBox:"0 0 1 1",width:"15%",height:"15%"},e.icon&&c.a.createElement("path",e.icon))})),n&&n.filter((function(e){return e.image})).map((function(e){return c.a.createElement("pattern",{id:e.id,width:"100%",height:"100%"},e.image&&c.a.createElement("image",e.image))}))),c.a.createElement("path",{fill:a,d:"M0 0 L200 0 L200 200 L0 200Z"}),r&&r.map((function(e){var n=e.type,r=MS(e,["type"]);return"polygon"===(n||t)&&c.a.createElement("path",PS({},r,{d:"M20 20 L180 20 L180 180 L20 180Z"}))||"linestring"===(n||t)&&c.a.createElement("path",PS({},r,{fill:"none",d:"M30 160 L100 40 L170 160"}))||"point"===(n||t)&&c.a.createElement("path",r)})),o&&o.map((function(e){var t=e.text,n=MS(e,["text"]);return c.a.createElement("text",PS({x:"100",y:"100",textAnchor:"middle",alignmentBaseline:"middle"},n),t)})))};function DS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NS(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var o=e.editor&&e.editor.getWrapperElement&&e.editor.getWrapperElement()||null;ij.a.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),wj(bj(e),"onUpdate",(function(){e.update.cancel(),e.update()})),wj(bj(e),"getInlineWidget",(function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.token,o=void 0===r?{}:r,i=e.className,a=void 0===i?"":i,s=e.style,l=void 0===s?{}:s,u=document.createElement("div");return u.setAttribute("class","".concat(a," ms-style-editor-inline-widget")),oe()(u.style,l),u.onclick=function(){return n(cj({},o))},u})),e}return t=i,(n=[{key:"UNSAFE_componentWillMount",value:function(){this.setState({code:this.props.code})}},{key:"UNSAFE_componentWillUpdate",value:function(e){if(!Object(se.isEqual)(this.props.error,e.error)&&(this.marker&&(this.marker.clear(),this.marker=null),e.error)){var t=this.editor.lineCount(),n={line:e.error.line-1||0,ch:0},r=e.error.line?{line:t,ch:0}:this.editor.getCursor();this.marker=this.editor.markText(n,r,{className:"ms-style-editor-error"})}}},{key:"render",value:function(){var e=this;return c.a.createElement(Bo.a,{className:"ms-style-editor",style:this.props.style,header:c.a.createElement("div",{className:"ms-style-editor-head"},this.props.loading&&c.a.createElement(TS.a,{className:"ms-style-editor-loader",size:20}),this.props.error&&c.a.createElement(sj.a,{glyph:"exclamation-mark",bsStyle:"danger",placement:"right",title:c.a.createElement(b.default,{msgId:"styleeditor.validationErrorTitle"}),text:this.props.error.line?this.props.error.message:c.a.createElement(b.default,{msgId:"styleeditor.genericValidationError"})}))},c.a.createElement(aj.Controlled,{key:"style-editor",value:this.state.code,editorDidMount:function(t){e.onRenderToken(t),e.editor=t,t.on("inputRead",e.onAutocomplete),e.update=Object(se.debounce)((function(){e.props.onChange(e.state.code)}),e.props.waitTime),ij.a.extendMode(e.props.mode,{hintProperties:e.props.hintProperties})},editorWillUnmount:function(t){return t.off("inputRead",e.onAutocomplete)},onBeforeChange:function(t,n,r){return e.setState({code:r})},onChange:function(t){e.onRenderToken(t),e.onUpdate()},options:{theme:this.props.theme,mode:this.props.mode,lineNumbers:!0,styleSelectedText:!0,indentUnit:2,tabSize:2}}),this.state.token&&c.a.createElement("div",{className:"ms-inline-widget-container"},c.a.createElement("div",null,c.a.createElement("button",{className:"btn close square-button",onClick:function(){e.state.value&&e.editor.replaceRange(e.state.value,{line:e.state.lineNo,ch:e.state.token.start},{line:e.state.lineNo,ch:e.state.token.end}),e.setState({token:null,inlineWidgetType:null,lineNo:null,value:null})}})),c.a.createElement("div",null,this.props.inlineWidgets.filter((function(t){return t.type===e.state.inlineWidgetType})).map((function(t){var n=t.Widget;return c.a.createElement(n,{value:e.state.value,token:e.state.token,onChange:function(t){return e.setState({value:t})}})})))))}}])&&hj(t.prototype,n),r&&hj(t,r),i}(c.a.Component);wj(xj,"propTypes",{mode:p.a.string,theme:p.a.string,style:p.a.object,code:p.a.string,onChange:p.a.func,waitTime:p.a.number,hintProperties:p.a.object,error:p.a.object,inlineWidgets:p.a.array,loading:p.a.bool}),wj(xj,"defaultProps",{mode:"geocss",theme:"lesser-dark",style:{},code:"",onChange:function(){},waitTime:1e3,hintProperties:{},inlineWidgets:[]});var _j=xj,Oj=n("./MapStore2/node_modules/lodash/find.js"),Sj=n.n(Oj),jj=n("./MapStore2/node_modules/lodash/identity.js"),Ej=n.n(jj),Cj=n("./MapStore2/node_modules/lodash/omit.js"),Tj=n.n(Cj),kj=n("./MapStore2/web/client/components/style/ColorSelector.jsx"),Aj=n("./MapStore2/web/client/components/misc/Slider.jsx");function Pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mj(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Nj=function(e){var t=e.ramp,n=e.name,r=e.label,o=1/t.length,i=(t||[]).reduce((function(e,n,r){return"".concat(e,", ").concat(n," ").concat(r/t.length*100,"%, ").concat(n," ").concat(100*(r/t.length+o),"%")}),"linear-gradient(to right");return c.a.createElement("div",{style:{backgroundImage:"".concat(i,")"),width:"100%",display:"inline-block",verticalAlign:"middle",padding:"0 2px"}},c.a.createElement("span",{style:{color:"#000000",backgroundColor:"rgba(255, 255, 255, 0.75)",padding:"0 4px"}},c.a.createElement(b.default,{msgId:r||n,msgParams:{number:t.length}})))};function Rj(e){var t=e.value,n=e.samples,r=e.onChange,o=e.items,i=e.rampFunction,a=e.disabled,s=o.map((function(e){var t=e.options,r=void 0===t?{}:t,o=Dj(e,["options"]);return Mj(Mj({},o),{},{options:r,ramp:i?i(o,r):(Object(hO.c)(r.base,r.range,n+1,r.options)||["#AAA"]).splice(1)})})),l=Sj()(s,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e===t||e.name===(t&&t.name)}));return c.a.createElement(Uo.default,{valueKey:"name",className:"color-ramp-selector",clearable:!1,value:l,options:s,disabled:a,valueRenderer:Nj,optionRenderer:Nj,onChange:function(e){e&&r(e)}})}Rj.propTypes={value:p.a.oneOfType([p.a.string,p.a.object]),samples:p.a.number,onChange:p.a.func,items:p.a.array,rampFunction:p.a.func,disabled:p.a.bool},Rj.defaultProps={samples:5,onChange:function(){},items:[{name:"global.colors.blue",schema:"sequencial",options:{base:190,range:20}},{name:"global.colors.red",schema:"sequencial",options:{base:10,range:4}},{name:"global.colors.green",schema:"sequencial",options:{base:120,range:4}},{name:"global.colors.brown",schema:"sequencial",options:{base:30,range:4,s:1,v:.5}},{name:"global.colors.purple",schema:"sequencial",options:{base:300,range:4}},{name:"global.colors.random",schema:"qualitative",options:{base:190,range:340,options:{base:10,range:360,s:.67,v:.67}}}],disabled:!1};var Lj=Rj;function Fj(e){return(Fj="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 zj(e){return function(e){if(Array.isArray(e))return Bj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Bj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bj(e,t)}(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 Bj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n div")||document.body}:t,r=e.placement,o=e.content,i=e.children,a=e.open,s=e.onOpen,l=void 0===s?function(){}:s,d=_a()(n)?n():n,p=Object(u.useRef)({picker:{opacity:0},arrow:{opacity:0},overlay:{}}),f=mE(Object(u.useState)(p.current),2),h=f[0],m=f[1],g=Object(u.useRef)(),y=Object(u.useRef)(),b=Object(u.useRef)(),v=Object(u.useCallback)((function(){var e,t,n,o,i,s;if(!a)return p.current;var l={picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}};if("center"===r)return l;var u=null==g||null===(e=g.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e),c=null==y||null===(n=y.current)||void 0===n||null===(o=n.getBoundingClientRect)||void 0===o?void 0:o.call(n),d=null==b||null===(i=b.current)||void 0===i||null===(s=i.getBoundingClientRect)||void 0===s?void 0:s.call(i);if(u&&c&&d){var f,h,m,v,w=d.width,x=d.height,_=c.top,O=c.left,S=c.width,j=c.height,E=u.top,C=u.left,T=u.width,k=u.height,A=[C+T/2,E+k/2],P=A[0]-O>w/2+10&&O+S-A[0]>w/2+10,M=A[1]-_>x/2+10&&_+j-A[1]>x/2+10,I={top:{filter:function(){return P&&E-_>x+10},styles:function(){return{picker:{position:"absolute",top:E-x-10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:E+2,left:C+T/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return M&&O+S-(C+T)>w+10},styles:function(){return{picker:{position:"absolute",top:E-x/2-_,left:C+T+10-O},overlay:{},arrow:{top:E+k/2,left:C+T-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return P&&_+j-(E+k)>x+10},styles:function(){return{picker:{position:"absolute",top:E+k+10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:E+k-2,left:C+T/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return M&&C-O>w+10},styles:function(){return{picker:{position:"absolute",top:E-x/2-_,left:C-w-10-O},overlay:{},arrow:{top:E+k/2,left:C+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=I&&null!==(f=I[r])&&void 0!==f&&null!==(h=f.filter)&&void 0!==h&&h.call(f))return null==I||null===(m=I[r])||void 0===m||null===(v=m.styles)||void 0===v?void 0:v.call(m);if("top"!==r&&I.top.filter())return I.top.styles();if("right"!==r&&I.right.filter())return I.right.styles();if("bottom"!==r&&I.bottom.filter())return I.bottom.styles();if("left"!==r&&I.left.filter())return I.left.styles()}return l}),[r,a]);Object(u.useEffect)((function(){m(v());var e=function(){return m(v())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[v]);var w=Object(u.useRef)();return w.current={open:a},Object(u.useEffect)((function(){function e(e){var t=b.current,n=t&&e.target&&t.contains(e.target);if(w.current.open&&!n){var r,o,i=e.clientX,a=e.clientY,s=(null==b||null===(r=b.current)||void 0===r||null===(o=r.getBoundingClientRect)||void 0===o?void 0:o.call(r))||{},u=s.left,c=s.top,d=s.width,p=s.height;void 0!==i&&void 0!==a&&!(i>=u&&i<=u+d&&a>=c&&a<=c+p)&&l(!1)}}return window.addEventListener("click",e,!0),window.addEventListener("wheel",e,!0),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("wheel",e,!0),window.removeEventListener("scroll",e,!0)}}),[]),c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"ms-popover",ref:g},Object(u.cloneElement)(i,{onClick:function(e){e.stopPropagation(),l(!a)}})),d&&a?Object(uE.createPortal)(c.a.createElement("div",{className:"ms-popover-overlay",ref:y,style:fE({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0,pointerEvents:"none"},null==h?void 0:h.overlay)},c.a.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0}}),c.a.createElement("div",{ref:b,style:fE({pointerEvents:"auto"},null==h?void 0:h.picker)},o),c.a.createElement("div",{className:"ms-popover-arrow",style:fE({position:"absolute",borderTop:"".concat(9,"px solid transparent"),borderBottom:"".concat(9,"px solid transparent"),borderRight:"".concat(9,"px solid #ffffff"),filter:"drop-shadow(-4px 2px 4px rgba(0, 0, 0, 0.2))"},null==h?void 0:h.arrow)})),d):null)}var bE=function(e){var t=e.open,n=e.onOpen,r=void 0===n?function(){}:n,o=dE(e,["open","onOpen"]),i=mE(Object(u.useState)(t),2),a=i[0],s=i[1];return c.a.createElement(yE,cE({},o,{open:a,onOpen:function(e){s(e),r(e)}}))},vE=[{value:"Circle",label:"styleeditor.circle",preview:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Square",label:"styleeditor.square",preview:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Triangle",label:"styleeditor.triangle",preview:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Star",label:"styleeditor.star",preview:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Cross",label:"styleeditor.cross",preview:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"X",label:"styleeditor.x",preview:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"shape://vertline",label:"styleeditor.verticalLine",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://horline",label:"styleeditor.horizontalLine",preview:{type:"point",paths:[{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://slash",label:"styleeditor.slash",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://backslash",label:"styleeditor.backslash",preview:{type:"point",paths:[{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://dot",label:"styleeditor.dot",preview:{type:"point",paths:[{d:"M 95,100 105,100 Z",stroke:"#333333",strokeWidth:10,fill:"none"}]}},{value:"shape://plus",label:"styleeditor.plus",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://times",label:"styleeditor.times",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://oarrow",label:"styleeditor.openArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://carrow",label:"styleeditor.closedArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}}],wE=Object(Hn.a)(De.a);var xE=function(e){var t=e.value,n=e.config,r=void 0===n?{}:n,o=e.onChange,i=void 0===o?function(){}:o,a=r.options,s=void 0===a?vE:a,l=s.find((function(e){return e.value===t}));return c.a.createElement(bE,{content:c.a.createElement("div",{className:"ms-mark-list"},c.a.createElement("ul",null,s.map((function(e){return c.a.createElement("li",{key:e.value},c.a.createElement(wE,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return i(e.value)}},c.a.createElement(IS,e.preview)))}))))},c.a.createElement(wE,{className:"ms-mark-preview"},l&&c.a.createElement(IS,l.preview)))};var _E=function(e){var t=e.label,n=void 0===t?"styleeditor.band":t,r=e.value,o=e.bands,i=e.onChange,a=e.enhancementType;return c.a.createElement(c.a.Fragment,null,c.a.createElement(lE,{label:n},c.a.createElement(Uo.default,{clearable:!1,options:o,value:r,onChange:function(e){return i("band",e.value)}})),c.a.createElement(lE,{label:"styleeditor.contrastEnhancement"},c.a.createElement(Uo.default,{clearable:!1,options:[{label:c.a.createElement(b.default,{msgId:"styleeditor.none"}),value:"none"},{label:c.a.createElement(b.default,{msgId:"styleeditor.normalize"}),value:"normalize"},{label:c.a.createElement(b.default,{msgId:"styleeditor.histogram"}),value:"histogram"}],value:a||"none",onChange:function(e){var t="none"===e.value?void 0:e.value;i("enhancementType",t)}})))};function OE(){return(OE=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AE(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.map((function(e){return e.value})),r=(null==t?void 0:t.value)&&-1===n.indexOf(t.value);return r?[t].concat(jE(e)):e}function v(e){return n?[{value:n,label:n}].reduce(y,e):e}var w=i(p),x=SE(Object(u.useState)(v(w)),2),_=x[0],O=x[1];Object(u.useEffect)((function(){O(v(w))}),[null==w?void 0:w.length]);var S=f?DE:IE,j=!l||l({value:n});return c.a.createElement(lE,{label:t,invalid:!j},c.a.createElement(S,OE({clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},s,{options:_.map((function(e){return AE(AE({},e),{},{label:e.labelId?c.a.createElement(b.default,{msgId:e.labelId}):e.label})})),value:n,onChange:function(e){return g?d(e.length>0?e.map((function(e){return e.value})):void 0):(O(y(_,e)),d(e.value))}})))},colorRamp:function(e){var t=e.label,n=e.value,r=e.config,o=r.samples,i=void 0===o?5:o,a=r.getOptions,s=void 0===a?function(){return[]}:a,l=r.rampFunction,u=void 0===l?function(e){return e.colors}:l,d=e.onChange,p=s(TE(e,["label","value","config","onChange"]));return c.a.createElement(lE,{label:t},c.a.createElement(Lj,{items:p,rampFunction:u,samples:i,value:{name:n},onChange:function(e){return d(e.name)}}))},colorMap:function(e){var t=e.value,n=e.onChange;return c.a.createElement("div",{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},c.a.createElement(sE,{classification:t,onUpdateClasses:function(e,t){return n({classification:e,type:t})}}))},channel:function(e){var t,n,r,o=e.value,i=e.onChange,a=e.bands,s=o.channelSelection,l=s?s.grayChannel?"gray":"rgb":"auto",u=(a||[]).map((function(e){return{label:e,value:e}}));if("rgb"===l)return Object.keys(s).map((function(e){var t,n,r=null===(t=s[e])||void 0===t?void 0:t.sourceChannelName,a=null===(n=s[e])||void 0===n?void 0:n.contrastEnhancement;return c.a.createElement(c.a.Fragment,null,c.a.createElement(_E,{key:e,value:r,bands:u,label:"styleeditor."+e,enhancementType:(null==a?void 0:a.enhancementType)||"none",onChange:function(t,n){return"band"===t?i({contrastEnhancement:{},channelSelection:AE(AE({},o.channelSelection),{},PE({},e,AE(AE({},o.channelSelection[e]),{},{sourceChannelName:n})))}):"enhancementType"===t?i({contrastEnhancement:{},channelSelection:AE(AE({},o.channelSelection),{},PE({},e,AE(AE({},o.channelSelection[e]),{},{contrastEnhancement:AE(AE({},s[e].contrastEnhancement),{},{enhancementType:n})})))}):null}}),c.a.createElement(lE,{key:e+"-divider",divider:!0}))}));var d=void 0===(null==s||null===(t=s.grayChannel)||void 0===t?void 0:t.sourceChannelName)?"auto":null==s||null===(n=s.grayChannel)||void 0===n?void 0:n.sourceChannelName,p="auto"===l?o.contrastEnhancement:null==s||null===(r=s.grayChannel)||void 0===r?void 0:r.contrastEnhancement;return c.a.createElement(_E,{label:"styleeditor.grayChannel",value:d,bands:[{label:c.a.createElement(b.default,{msgId:"styleeditor.channelAuto"}),value:"auto"}].concat(jE(u)),enhancementType:(null==p?void 0:p.enhancementType)||"none",onChange:function(e,t){return"band"===e?i("auto"===t?AE(AE({},o),{},{channelSelection:void 0}):{contrastEnhancement:{},channelSelection:{grayChannel:AE(AE({contrastEnhancement:{}},null==s?void 0:s.grayChannel),{},{sourceChannelName:t})}}):"enhancementType"===e?i("auto"===l?{channelSelection:void 0,contrastEnhancement:AE(AE({},o.contrastEnhancement),{},{enhancementType:t})}:{contrastEnhancement:{},channelSelection:Object.keys(s).reduce((function(e,n){return AE(AE({},e),{},PE({},n,AE(AE({},s[n]),{},{contrastEnhancement:AE(AE({},s[n].contrastEnhancement),{},{enhancementType:t})})))}),{})}):null}})},dash:function(e){var t=e.label,n=e.value,r=e.onChange,o=e.config.options;return c.a.createElement(lE,{label:t},c.a.createElement(Zj,{dashArray:n,onChange:r,options:o,defaultStrokeWidth:2,isValidNewOption:function(e){return!!e.label&&!e.label.split(" ").find((function(e){return Ta()(parseFloat(e))}))},creatable:!0}))}};function RE(e){var t=e.properties,n=e.params,r=e.config,o=e.onChange,i=Object(u.useRef)({properties:t});return i.current={properties:t},c.a.createElement(c.a.Fragment,null,Object.keys(n).map((function(e){var a=n[e]||{},s=a.type,l=a.setValue,u=a.getValue,d=a.isDisabled,p=a.config,f=a.label,h=a.key||e,m=NE[s],g=l&&l(t[h],i.current.properties);return m&&c.a.createElement(m,OE({},r,{key:h,label:f||h,config:p,disabled:d&&d(t[h],i.current.properties),value:ga()(g)?t[h]:g,onChange:function(e){return o(u&&u(e,i.current.properties)||e)}}))})))}var LE=RE;function FE(e){return(FE="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 zE(){return(zE=Object.assign||function(e){for(var t=1;t0&&e.props.onChangeCascadingValue(s)}})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes.filter((function(t){return t.attribute===e.props.filterField.attribute}))[0];return c.a.createElement("div",{className:"filter-field-row"},c.a.createElement("div",{className:"filter-field-attribute"},c.a.createElement(KE,{valueField:"id",textField:"name",fieldOptions:this.props.attributes.map((function(e){return{id:e.attribute,name:e.label}})),placeholder:Object(ne.f)(this.context.messages,"queryform.attributefilter.combo_placeholder"),fieldValue:this.props.filterField.attribute,attType:t&&t.type,fieldName:"attribute",fieldRowId:this.props.filterField.rowId,onUpdateField:this.updateFieldElement,comboFilter:"contains"})),c.a.createElement("div",{className:"filter-field-operator"},t?this.renderOperatorField():null),c.a.createElement("div",{className:"filter-field-value"},t&&this.props.filterField.operator?this.renderValueField(t):null),this.props.deleteButton?c.a.createElement("div",{className:"filter-field-tools"},this.props.deleteButton):null)}}])&&QE(t.prototype,n),r&&QE(t,r),i}(c.a.Component);rC(oC,"propTypes",{attributes:p.a.array,filterField:p.a.object,operatorOptions:p.a.array,onUpdateField:p.a.func,maxFeaturesWPS:p.a.number,toggleMenu:p.a.func,deleteButton:p.a.node,onUpdateExceptionField:p.a.func,onChangeCascadingValue:p.a.func}),rC(oC,"contextTypes",{messages:p.a.object}),rC(oC,"defaultProps",{attributes:[],filterField:null,operatorOptions:["=",">","<",">=","<=","<>","><"],onUpdateField:function(){},toggleMenu:function(){},onUpdateExceptionField:function(){},onChangeCascadingValue:function(){}});var iC=oC,aC=n("./node_modules/moment/moment.js"),sC=n.n(aC),lC=n("./node_modules/react-widgets/lib/localizers/moment.js"),uC=n.n(lC),cC=n("./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js"),dC=n("./MapStore2/web/client/utils/TimeUtils.js");function pC(e){return(pC="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 fC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hC(e,t){for(var n=0;nt.endDate?e.props.onUpdateExceptionField(e.props.fieldRowId,"queryform.attributefilter.datefield.wrong_date_range"):e.props.onUpdateExceptionField(e.props.fieldRowId,null),e.props.onUpdateField(e.props.fieldRowId,e.props.fieldName,t,e.props.attType)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.fieldValue&&this.props.fieldValue.startDate||null,n=this.props.fieldValue&&this.props.fieldValue.endDate||null;return"><"===this.props.operator?c.a.createElement("div",{className:"query-field"},c.a.createElement("div",{className:"query-field-value"},this.props.showLabels&&c.a.createElement(b.default,{msgId:"queryform.from"}),c.a.createElement(xC,{type:this.props.attType,defaultValue:t,value:t,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(dC.c)(this.context.locale,this.props.attType),onChange:function(t){return e.updateValueState({startDate:t,endDate:n})}})),c.a.createElement("div",{className:"query-field-value"},this.props.showLabels&&c.a.createElement(b.default,{msgId:"queryform.to"}),c.a.createElement(xC,{type:this.props.attType,defaultValue:n,value:n,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(dC.c)(this.context.locale,this.props.attType),onChange:function(n){return e.updateValueState({startDate:t,endDate:n})}}))):c.a.createElement("div",null,this.props.showLabels&&c.a.createElement(b.default,{msgId:"queryform.date"}),c.a.createElement(xC,{type:this.props.attType,defaultValue:t,value:t,time:this.props.timeEnabled,calendar:this.props.dateEnabled,format:Object(dC.c)(this.context.locale,this.props.attType),onChange:function(t){e.updateValueState({startDate:t,endDate:null})}}))}}])&&hC(t.prototype,n),r&&hC(t,r),i}(c.a.Component);wC(_C,"propTypes",{attType:p.a.string,dateEnabled:p.a.bool,fieldName:p.a.string,fieldRowId:p.a.number,fieldValue:p.a.object,fieldException:p.a.string,operator:p.a.string,onUpdateField:p.a.func,onUpdateExceptionField:p.a.func,showLabels:p.a.bool,timeEnabled:p.a.bool}),wC(_C,"contextTypes",{locale:p.a.string}),wC(_C,"defaultProps",{timeEnabled:!1,dateEnabled:!0,operator:null,fieldName:null,fieldRowId:null,attType:null,fieldValue:null,fieldException:null,onUpdateField:function(){},onUpdateExceptionField:function(){},showLabels:!1});var OC=_C;function SC(e){return(SC="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 jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EC(e){for(var t=1;t<"===e.props.operator?c.a.createElement("div",{className:"query-field"},c.a.createElement("div",{className:"query-field-value"},r,c.a.createElement(Io.NumberPicker,CC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:null,onChange:function(t){return!isNaN(t)&&e.changeNumber({lowBound:t,upBound:e.props.fieldValue&&null!==e.props.fieldValue.upBound&&void 0!==e.props.fieldValue.upBound?e.props.fieldValue.upBound:null})}},e.props.options))),c.a.createElement("div",{className:"query-field-value"},o,c.a.createElement(Io.NumberPicker,CC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.upBound&&void 0!==e.props.fieldValue.upBound?e.props.fieldValue.upBound:null,onChange:function(t){return!isNaN(t)&&e.changeNumber({upBound:t,lowBound:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:null})}},e.props.options)))):c.a.createElement("div",null,n,c.a.createElement(Io.NumberPicker,CC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:e.props.fieldValue,onChange:function(t){return!isNaN(t)&&e.changeNumber(t)}},e.props.options)))})),NC(IC(e),"changeNumber",(function(t){"><"===e.props.operator?null!==t.lowBound&&void 0!==t.lowBound&&null!==t.upBound&&void 0!==t.upBound&&t.lowBound>=t.upBound?e.props.onUpdateExceptionField(e.props.fieldRowId,Object(ne.f)(e.context.messages,"queryform.attributefilter.numberfield.wrong_range")):e.props.fieldException&&e.props.onUpdateExceptionField(e.props.fieldRowId,null):e.props.isRequired&&null==t?e.props.onUpdateExceptionField(e.props.fieldRowId,Object(ne.f)(e.context.messages,"queryform.attributefilter.numberfield.isRequired")):e.props.fieldException&&e.props.onUpdateExceptionField(e.props.fieldRowId,null),e.props.onUpdateField(e.props.fieldRowId,e.props.fieldName,t,e.props.attType)})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props.style;return this.props.fieldException&&(e=EC(EC({},this.props.style),{},{borderColor:"#FF0000"})),c.a.createElement(Ce.a,{placement:"bottom",overlay:this.props.fieldException?c.a.createElement(v.Tooltip,{id:this.props.fieldRowId+"_tooltip"},c.a.createElement("strong",null,this.props.fieldException)):c.a.createElement("noscript",null)},this.renderPicker(e))}}])&&kC(t.prototype,n),r&&kC(t,r),i}(c.a.Component);NC(RC,"propTypes",{operator:p.a.string,fieldName:p.a.string,fieldRowId:p.a.number,attType:p.a.string,fieldValue:p.a.oneOfType([p.a.number,p.a.object]),fieldException:p.a.oneOfType([p.a.object,p.a.bool,p.a.string]),onUpdateField:p.a.func,onUpdateExceptionField:p.a.func,isRequired:p.a.bool,label:p.a.string,lowLabel:p.a.string,upLabel:p.a.string,options:p.a.shape({format:p.a.string,min:p.a.number,max:p.a.number,step:p.a.number,precision:p.a.number}),style:p.a.object}),NC(RC,"contextTypes",{messages:p.a.object}),NC(RC,"defaultProps",{style:{borderColor:"#dedede"},operator:"=",fieldName:null,fieldRowId:null,attType:"number",fieldValue:null,fieldException:null,isRequired:!1,label:null,lowLabel:null,upLabel:null,options:{},onUpdateField:function(){},onUpdateExceptionField:function(){}});var LC=RC,FC=n("./MapStore2/web/client/utils/FilterUtils.js");function zC(e){return(zC="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 BC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return c.a.createElement(RT.Message,{msgId:t})}})," ",c.a.createElement("span",{className:"group_label_b"},c.a.createElement(RT.Message,{msgId:"queryform.attributefilter.group_label_b"}))),e.renderGroupButtons(t))})),YT(VT(e),"renderGroupField",(function(t){var n=e.props.filterFields.filter((function(e){return e.groupId===t.id})),r=e.props.groupFields.filter((function(e){return e.groupId===t.id})),o=[].concat(FT(n),FT(r)).map((function(t){return void 0!==t.rowId?e.renderFilterField(t):e.renderGroupField(t)}));return c.a.createElement("div",{className:"mapstore-conditions-group",key:t.id},e.renderGroupHeader(t),c.a.createElement("div",{className:"query-content"},o))})),YT(VT(e),"renderHeader",(function(){return Object(ne.f)(e.context.messages,"queryform.attributefilter.attribute_filter_header")})),YT(VT(e),"updateLogicCombo",(function(t,n,r){var o=e.props.logicComboOptions.filter((function(t){return r===Object(ne.f)(e.context.messages,t.name)}))[0].logic;e.props.actions.onUpdateLogicCombo(t,o)})),e}return t=i,(n=[{key:"render",value:function(){var e=this;return this.props.withContainer?c.a.createElement(uT.a,{id:"attributeFilterPanel",className:"query-filter-container",header:this.renderHeader(),collapsible:!0,expanded:this.props.attributePanelExpanded,onSwitch:function(t){return e.props.actions.onExpandAttributeFilterPanel(t)}},this.props.groupFields.filter((function(e){return!e.groupId})).map(this.renderGroupField)):c.a.createElement("div",{className:"query-filter-container"},this.props.groupFields.filter((function(e){return!e.groupId})).map(this.renderGroupField))}}])&&qT(t.prototype,n),r&&qT(t,r),i}(c.a.Component);YT(KT,"propTypes",{groupLevels:p.a.number,withContainer:p.a.bool,autocompleteEnabled:p.a.bool,maxFeaturesWPS:p.a.number,groupFields:p.a.array,filterFields:p.a.array,attributes:p.a.array,fieldWidth:p.a.string,removeButtonIcon:p.a.string,addButtonIcon:p.a.string,logicComboOptions:p.a.array,attributePanelExpanded:p.a.bool,actions:p.a.object,listOperators:p.a.array,stringOperators:p.a.array,booleanOperators:p.a.array,defaultOperators:p.a.array}),YT(KT,"contextTypes",{messages:p.a.object}),YT(KT,"defaultProps",{autocompleteEnabled:!0,withContainer:!0,groupLevels:1,groupFields:[],filterFields:[],attributes:[],removeButtonIcon:"trash",addButtonIcon:"glyphicon glyphicon-plus",attributePanelExpanded:!0,logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"},{logic:"NOR",name:"queryform.attributefilter.groupField.none"}],actions:{onAddGroupField:function(){},onAddFilterField:function(){},onRemoveFilterField:function(){},onUpdateFilterField:function(){},onUpdateExceptionField:function(){},onUpdateLogicCombo:function(){},onRemoveGroupField:function(){},onChangeCascadingValue:function(){},onExpandAttributeFilterPanel:function(){},toggleMenu:function(){}},listOperators:["="],stringOperators:["=","like","ilike","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>","><"]});var XT=KT;function ZT(e){return function(e){if(Array.isArray(e))return QT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return QT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QT(e,t)}(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 QT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=JT(JT({},t),{},(ek(e={},n.fieldName,n.fieldValue),ek(e,"type",n.fieldType),ek(e,"fieldOptions",JT(JT({},t.fieldOptions),{},{currentPage:void 0===n.fieldOptions.currentPage?1:n.fieldOptions.currentPage})),e));return"attribute"===n.fieldName?JT(JT({},r),{},{value:"string"===n.fieldType?"":null,operator:""}):"operator"===n.fieldName?JT(JT({},r),{},{value:null}):r},rk=function(e){var t=e.filterObj,n=void 0===t?{groupFields:[{id:1,logic:"OR",index:0}]}:t,r=e.attributes,o=void 0===r?[]:r,i=e.groupLevels,a=void 0===i?0:i,s=e.onChange,l=void 0===s?function(){}:s,u=n.groupFields,d=n.filterFields;return c.a.createElement("div",{className:"ms-style-rule-filter"},c.a.createElement(XT,{attributes:o,filterFields:d,groupFields:u,autocompleteEnabled:!1,groupLevels:a,withContainer:!1,listOperators:["="],stringOperators:["=","<>","like","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>"],logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"}],actions:{onAddGroupField:function(e,t){var n={id:(new Date).getTime(),logic:"OR",groupId:e,index:t+1};l({filterFields:d,groupFields:u?[].concat(ZT(u),[n]):[n]})},onAddFilterField:function(e){var t={rowId:(new Date).getTime(),groupId:e,attribute:null,operator:"",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};l({filterFields:d?[].concat(ZT(d),[t]):[t],groupFields:u})},onRemoveFilterField:function(e){l({filterFields:d.filter((function(t){return t.rowId!==e})),groupFields:u})},onUpdateFilterField:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};l({filterFields:d.map((function(i){return i.rowId===e?nk(i,{rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}):i})),groupFields:u})},onUpdateExceptionField:function(e,t){l({filterFields:d.map((function(n){return n.rowId===e?JT(JT({},n),{},{exception:t}):n})),groupFields:u})},onUpdateLogicCombo:function(e,t){l({filterFields:d,groupFields:u.map((function(n){return n.id===e?JT(JT({},n),{},{logic:t}):n}))})},onRemoveGroupField:function(e){l({filterFields:d.filter((function(t){return t.groupId!==e})),groupFields:u.filter((function(t){return t.id!==e}))})},onChangeCascadingValue:function(){}}}))};function ok(e){var t=e.value,n=e.hide,r=e.attributes,o=e.onChange,i=e.placement,a=void 0===i?"right":i;return n||!r||0===r.length?null:c.a.createElement(bE,{placement:a,content:c.a.createElement(rk,{filterObj:t,attributes:r,onChange:function(e){return o({filter:e})}})},c.a.createElement(tk,{className:"square-button-md no-border",active:!!t,tooltipId:"styleeditor.openFilterBuilder"},c.a.createElement(v.Glyphicon,{glyph:"filter"})))}function ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ak(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.value?-1:1})):e}var s=lk(Object(u.useState)(function(e){var n=e.map((function(e,t){return{value:e,zoom:t}})),r=[t.min,t.max].filter((function(e){return void 0!==e}));return 0===r.length?n:r.reduce(a,n)}(o)),2),l=s[0],d=s[1];return c.a.createElement("div",{className:"ms-style-rule-scale"},c.a.createElement(mk,{label:"styleeditor.maxScaleDenominator",value:t.max,options:l.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==n&&n===e.zoom,disabled:t.min&&e.value<=t.min}})),isValidNewOption:function(e){return e>=t.min},onChange:function(e){i(ak(ak({},t),{},{max:e})),d(a(l,e))}}),c.a.createElement(mk,{label:"styleeditor.minScaleDenominator",value:t.min,options:l.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==n&&n===e.zoom,disabled:t.max&&e.value>=t.max}})),isValidNewOption:function(e){return e<=t.max},onChange:function(e){i(ak(ak({},t),{},{min:e})),d(a(l,e))}}))}function yk(e){var t=e.value,n=void 0===t?{}:t,r=e.scales,o=void 0===r?[]:r,i=e.zoom,a=e.hide,s=e.onChange,l=e.placement,u=void 0===l?"right":l;return a?null:c.a.createElement(bE,{placement:u,content:c.a.createElement(gk,{value:n,zoom:i,scales:o,onChange:function(e){return s({scaleDenominator:e})}})},c.a.createElement(fk,{className:"square-button-md no-border",tooltipId:"styleeditor.openScaleDenominator",active:void 0!==n.min||void 0!==n.max},c.a.createElement(v.Glyphicon,{glyph:"1-ruler"})))}function bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vk(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var kk=function(e){var t=e.ruleId,n=e.glyph,r=e.params,o=e.kind,i=e.symbolizerKind,a=e.classificationType,s=void 0===a?"classificationVector":a,l=e.attributes,d=void 0===l?[]:l,p=e.onUpdate,f=e.onReplace,h=e.methods,m=e.getColors,g=void 0===m?function(){}:m,y=e.ruleBlock,b=void 0===y?{}:y,v=e.symbolizerBlock,w=void 0===v?{}:v,x=e.bands,_=Tk(e,["ruleId","glyph","params","kind","symbolizerKind","classificationType","attributes","onUpdate","onReplace","methods","getColors","ruleBlock","symbolizerBlock","bands"]),O=_.ramp,S=_.method,j=_.classification,E=_.attribute,C=_.intervals,T=_.reverse,k=_.continuous,A=Object(u.useRef)();A.current={ruleId:t,intervals:C,method:S,attribute:E,reverse:T,ramp:O,continuous:k,classification:j};var P=r.reduce((function(e,t){return _a()(t)?Ek(Ek({},e),t(i)):Ek(Ek({},e),t)}),{}),M=(w[i]||{}).glyph;return c.a.createElement(Sk,{key:"Classification",glyph:M||n,tools:c.a.createElement(Ok,{ruleKind:o,symbolizerKind:i,ruleId:t,onSelect:f,ruleBlock:b,symbolizerBlock:w})},c.a.createElement(LE,{properties:_,config:{attributes:d,methods:h,getColors:function(){var e="custom"===O&&j.length>0&&{name:"custom",colors:j.map((function(e){return e.color}))},t=g(void 0,void 0,5,e);return t?t.map((function(e){var t=e.name,n=Tk(e,["name"]);return Ek({label:t?"global.colors.".concat(t):void 0,name:t},n)})):[]},bands:x,method:S},params:P,onChange:function(e){return p(Ek(Ek({},A.current),{},{type:s,values:e}))}}))},Ak=n("./MapStore2/node_modules/lodash/isEqual.js"),Pk=n.n(Ak),Mk=n("./node_modules/tinycolor2/tinycolor.js"),Ik=n.n(Mk);function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fk={color:function(e){var t=e.key,n=void 0===t?"color":t,r=e.opacityKey,o=void 0===r?"opacity":r,i=e.graphicKey,a=e.label,s=void 0===a?"Fill":a,l=e.stroke,u=e.pattern,c=e.disableAlpha,d=e.getGroupParams,p=e.getGroupConfig;return{type:"color",label:s,config:{stroke:l,pattern:u,disableAlpha:c,getGroupParams:d,getGroupConfig:p,graphicKey:i},setValue:function(e,t){var n;if(u&&null!==(n=t[i])&&void 0!==n&&n.kind)return t[i];var r=ga()(t[o])?1:t[o];return Ik()(e).setAlpha(r).toRgb()},getValue:function(e){var t,r;if(u&&wa()(e)&&e.kind)return Lk(r={},i,e),Lk(r,n,void 0),Lk(r,o,void 0),r;var a=e||{},s=a.a,l=Rk(a,["a"]);return Nk((Lk(t={},n,Ik()(Nk(Nk({},l),{},{a:1})).toHexString()),Lk(t,o,s),t),u&&Lk({},i,void 0))}}},width:function(e){var t=e.key,n=void 0===t?"width":t,r=e.label,o=void 0===r?"Width":r,i=e.dasharrayKey,a=void 0===i?"dasharray":i;return{type:"slider",label:o,config:{range:{min:0,max:20},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=e[0]&&e[0].split(" px")[0],o=parseFloat(r),i=t[a],s=t[n];return Nk(Lk({},n,o),i&&Lk({},a,o?i.map((function(e){return Math.round(e/s*o)})):void 0))}}},dasharray:function(e){var t=e.key,n=void 0===t?"dasharray":t,r=e.label;return{type:"dash",label:void 0===r?"Dash array":r,config:{options:[{value:"0"},{value:"1 4"},{value:"1 12"},{value:"8 8"},{value:"8 16"},{value:"8 8 1 8"},{value:"8 8 1 4 1 8"}]},setValue:function(e,t){var n=void 0===t.width?1:t.width;return void 0!==e?e.map((function(e){return Math.round(e/n)})):[0]},getValue:function(e,t){if(Pk()(e,["0"]))return Lk({},n,void 0);var r=void 0===t.width?1:t.width,o=!(e||[]).find((function(e){return Ta()(parseFloat(e))}));return Lk({},n,void 0!==e&&o?e.map((function(e){return parseFloat(e)*r})):void 0)}}},cap:function(e){var t=e.key,n=void 0===t?"cap":t,r=e.label;return{type:"toolbar",label:void 0===r?"Line cap":r,config:{options:[{labelId:"styleeditor.lineCapButt",value:"butt"},{labelId:"styleeditor.lineCapRound",value:"round"},{labelId:"styleeditor.lineCapSquare",value:"square"}]},getValue:function(e){return Lk({},n,e)}}},join:function(e){var t=e.key,n=void 0===t?"join":t,r=e.label;return{type:"toolbar",label:void 0===r?"Line join":r,config:{options:[{labelId:"styleeditor.lineJoinBevel",value:"bevel"},{labelId:"styleeditor.lineJoinRound",value:"round"},{labelId:"styleeditor.lineJoinMiter",value:"miter"}]},getValue:function(e){return Lk({},n,e)}}},size:function(e){var t=e.key,n=void 0===t?"radius":t,r=e.label;return{type:"slider",label:void 0===r?"Radius":r,config:{range:{min:1,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Lk({},n,parseFloat(t))}}},opacity:function(e){var t=e.key,n=void 0===t?"opacity":t,r=e.label;return{type:"slider",label:void 0===r?"Opacity":r,config:{range:{min:0,max:1}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Lk({},n,parseFloat(t))}}},offset:function(e){var t=e.key,n=void 0===t?"offset":t,r=e.label,o=void 0===r?"":r,i=e.axis,a=void 0===i?"":i;return{key:n,type:"slider",label:o,config:{range:{min:-100,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="y"===a?parseFloat(e[1]):parseFloat(e[0]);return Ta()(t)?0:t},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=e[0]&&e[0].split(" px")[0],o=t[n]||[0,0];return Lk({},n,"y"===a?[o[0],parseFloat(r)]:[parseFloat(r),o[1]])}}},rotate:function(e){var t=e.key,n=void 0===t?"rotate":t,r=e.label;return{type:"slider",label:void 0===r?"Rotation (deg)":r,config:{range:{min:0,max:360},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+"°"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split("°")[0];return Lk({},n,parseFloat(t))}}},shape:function(e){var t=e.label,n=e.key,r=void 0===n?"wellKnownName":n;return{type:"mark",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},image:function(e){var t=e.label,n=e.key,r=void 0===n?"image":n;return{type:"image",label:t,config:{isValid:e.isValid},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},text:function(e){var t=e.label,n=e.key,r=void 0===n?"label":n;return{type:"input",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},fontStyle:function(e){var t=e.label,n=e.key,r=void 0===n?"fontStyle":n;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontStyleNormal",value:"normal"},{labelId:"styleeditor.fontStyleItalic",value:"italic"}]},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},fontWeight:function(e){var t=e.label,n=e.key,r=void 0===n?"fontWeight":n;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontWeightNormal",value:"normal"},{labelId:"styleeditor.fontWeightBold",value:"bold"}]},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},bool:function(e){var t=e.key,n=void 0===t?"label":t;return{type:"toolbar",label:e.label,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},isDisabled:e.isDisabled,getValue:function(e){return Lk({},n,e)}}},intervals:function(e){var t=e.key,n=void 0===t?"intervals":t,r=e.label,o=e.isDisabled;return{type:"slider",label:r,config:{range:{min:2,max:25},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)}}},isDisabled:void 0===o?function(e,t){return"customInterval"===(null==t?void 0:t.method)}:o,setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Lk({},n,parseFloat(e[0]))}}},select:function(e){var t=e.label,n=e.key,r=void 0===n?"":n,o=e.getOptions;return{type:"select",label:t,config:{getOptions:void 0===o?function(){return[]}:o,selectProps:e.selectProps,isValid:e.isValid},getValue:function(e){return Lk({},r,e)}}},colorRamp:function(e){var t=e.label,n=e.key,r=void 0===n?"":n,o=e.getOptions;return{type:"colorRamp",label:t,config:{getOptions:void 0===o?function(){return[]}:o},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Lk({},r,e)}}},colorMap:function(e){var t=e.label,n=e.key,r=void 0===n?"":n;return{type:"colorMap",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.classification,o=e.type,i="interval"===o||"customInterval"===t.method,a="color"===o||"custom"===t.ramp;return Nk(Nk(Lk({},r,n),i&&{method:"customInterval"}),a&&{ramp:"custom"})}}},channel:function(e){return{type:"channel",label:e.label,setValue:function(e,t){return{channelSelection:t.channelSelection,contrastEnhancement:t.contrastEnhancement}},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{channelSelection:e.channelSelection,contrastEnhancement:e.contrastEnhancement}}}}};function zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bk(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ni&&c>u||(e.onSort(o,i),t.getItem().index=i)}(e,t,n)}},(function(e){return{connectDropTarget:e.dropTarget()}}))(Object(Vk.DragSource)("RULE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(Wk));function Kk(){return(Kk=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zk(e){return function(e){if(Array.isArray(e))return Qk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qk(e,t)}(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 Qk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt?[n,o]:[o,n]:[o])}),[]);return y(r)}function I(e,t){var n=e.symbolizers,r=void 0===n?[]:n;return!!Sj()(r,(function(e){return"Text"===e.kind}))&&t>0}return T.current={rules:r},c.a.createElement("div",{ref:t,className:"ms-style-rules-editor"},c.a.createElement("div",{className:"ms-style-rules-editor-head"},c.a.createElement("div",{className:"ms-style-rules-editor-left"},i),c.a.createElement("div",{className:"ms-style-rules-editor-right"},c.a.createElement(qo.a,{btnDefaultProps:{className:"square-button-md no-border"},buttons:[].concat(Zk(Object.keys(f).map((function(e){var t=f[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return A({name:"",ruleId:No()(),symbolizers:[Jk(Jk({},f[e].deaultProperties),{},{symbolizerId:No()()})]})}}}))),Zk(Object.keys(d).filter((function(e){return d[e].add})).map((function(e){var t=d[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return A(Jk({name:"",ruleId:No()()},d[e].deaultProperties))}}}))))}))),c.a.createElement("ul",{className:"ms-style-rules-editor-body"},0===r.length&&c.a.createElement(rA,null),r.map((function(e,t){var n=e.name,o=e.symbolizers,i=void 0===o?[]:o,a=e.filter,s=e.scaleDenominator,l=void 0===s?{}:s,u=e.ruleId,p=e.kind,h=e.errorId,g=d[p]||{},w=g.params,A=g.glyph,D=g.hideInputLabel,N=g.hideFilter,R=g.hideScaleDenominator,L=g.classificationType;return c.a.createElement(Yk,{key:u+(r.length>1?"_draggable":""),draggable:r.length>1,id:u,index:t,errorId:h,onSort:M,title:D?c.a.createElement(b.default,{msgId:"styleeditor.rule".concat(p)}):c.a.createElement(v.FormGroup,{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},c.a.createElement(nA,{value:n,placeholder:"styleeditor.enterLegendLabelPlaceholder",onChange:function(e){return k({values:{name:e.target.value},ruleId:u},!0)}})),tools:c.a.createElement(c.a.Fragment,null,I(e,t)&&c.a.createElement(sj.a,{glyph:"exclamation-mark",bsStyle:"warning",placement:"right",title:c.a.createElement(b.default,{msgId:"styleeditor.warningTextOrderTitle"}),text:c.a.createElement(b.default,{msgId:"styleeditor.warningTextOrder"})}),c.a.createElement(ok,{hide:N,value:a,attributes:x,onChange:function(e){return k({values:e,ruleId:u},!0)}}),c.a.createElement(yk,{hide:R,value:l,scales:O,zoom:S,onChange:function(e){return k({values:e,ruleId:u},!0)}}),c.a.createElement(tA,{className:"square-button-md no-border",tooltipId:"styleeditor.removeRule",onClick:function(){return function(e){var t=T.current.rules.filter((function(t){return t.ruleId!==e}));y(t)}(u)}},c.a.createElement(v.Glyphicon,{glyph:"trash"})))},"Classification"===p||"Raster"===p?c.a.createElement(kk,Kk({},e,{ruleBlock:d,symbolizerBlock:f,glyph:A,classificationType:L,params:w,methods:E,getColors:C,bands:_,attributes:x&&x.map((function(e){return Jk(Jk({},e),{},{disabled:"number"!==e.type})})),onUpdate:m,onChange:function(e){return k({values:e,ruleId:u},!0)},onReplace:P})):i.map((function(e){var t=e.kind,n=void 0===t?"":t,r=e.symbolizerId,o=Xk(e,["kind","symbolizerId"]),i=f[n]||{},a=i.params,s=i.glyph;return a&&c.a.createElement(Sk,{key:r,defaultExpanded:!0,draggable:!0,glyph:s,tools:c.a.createElement(Ok,{hide:"Icon"===n,symbolizerKind:n,ruleBlock:d,symbolizerBlock:f,ruleId:u,onSelect:P,graphic:o.graphicFill||o.graphicStroke,channelSelection:o.channelSelection})},c.a.createElement(LE,{properties:o,params:a,config:{bands:_,attributes:x,fonts:j},onChange:function(e){return k({values:e,ruleId:u,symbolizerId:r})}}))})))})),o&&c.a.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundColor:"rgba(255, 255, 255, 0.4)",zIndex:10,transition:"0.3s all"}})))})),iA=Hk(),aA=iA.symbolizerBlock,sA=iA.ruleBlock;oA.propTypes={rules:p.a.array,loading:p.a.bool,toolbar:p.a.node,config:p.a.object,ruleBlock:p.a.object,symbolizerBlock:p.a.object,onUpdate:p.a.func,onChange:p.a.func},oA.defaultProps={rules:[],config:{},ruleBlock:sA,symbolizerBlock:aA,onUpdate:function(){},onChange:function(){}};var lA=oA;function uA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cA(e){return function(e){if(Array.isArray(e))return fA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||pA(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 dA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||pA(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 pA(e,t){if(e){if("string"==typeof e)return fA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fA(e,t):void 0}}function fA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var AA={classificationVector:rj.b,classificationRaster:rj.a,classification:rj.b,"classification-raster":rj.a};function PA(e,t){return e&&"raster"!==t&&Object.keys(e).filter((function(t){return-1!==["integer","long","double","float","bigdecimal","string","decimal"].indexOf(e[t].localPart.toLowerCase())})).map((function(t){var n=e[t].localPart;return{attribute:t,label:t,type:-1!==["integer","long","double","float","bigdecimal","decimal"].indexOf(n.toLowerCase())?"number":"string"}}))}var MA=Object(f.connect)(Object(R.a)([ej.c,ej.g,ej.m,ej.f,ej.n,ej.j,ej.h,K.o,K.k,ej.s],(function(e,t,n,r,o,i,a,s,l,u){var c,d;return{code:e,mode:Object(tj.g)(t),bands:Sa()(n)&&"raster"===a&&n||[],attributes:PA(n,a),error:r.edit||null,loading:o,format:t,layer:i,geometryType:a,scales:s.map((function(e){return Math.round(e)})),zoom:l.zoom,fonts:u.fonts||[],methods:("raster"===a?null==u||null===(c=u.classificationMethods)||void 0===c?void 0:c.raster:null==u||null===(d=u.classificationMethods)||void 0===d?void 0:d.vector)||nj.a.methods}})),{onError:Yi.v.bind(null,"edit")})(_A);MA.defaultProps={getColors:nj.a.getColors,styleUpdateTypes:AA};var IA={visual:MA,textarea:Object(f.connect)(Object(R.a)([ej.c,ej.g,ej.m,ej.f,ej.n],(function(e,t,n,r,o){return{code:e,mode:Object(tj.g)(t),hintProperties:n,error:r.edit||null,loading:o}})))(_j)};function DA(e){var t=e.code,n=e.error,r=e.canEdit,o=e.editorType,i=e.onUpdateMetadata,a=e.onChange,s=e.loading,l=kA(e,["code","error","canEdit","editorType","onUpdateMetadata","onChange","loading"]),d=CA(Object(u.useState)(),2),p=d[0],f=d[1],h={position:"relative",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"};if(!t&&!n)return c.a.createElement("div",{style:h},c.a.createElement(TS.a,{size:150}));if(!r)return c.a.createElement("div",{style:h},c.a.createElement("div",null,c.a.createElement(v.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),c.a.createElement("h1",null,c.a.createElement(b.default,{msgId:"styleeditor.noPermission"}))));if(404===(null==n?void 0:n.status))return c.a.createElement("div",{style:h},c.a.createElement("div",null,c.a.createElement(v.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),c.a.createElement("h1",null,c.a.createElement(b.default,{msgId:"styleeditor.styleNotFound"}))));var m=IA[o]||IA.textarea;return c.a.createElement(Bo.a,{style:{position:"relative"},header:c.a.createElement("div",{className:"ms-style-editor-switch"},c.a.createElement(qo.a,{buttons:[{className:"square-button-md no-border",glyph:"code",active:"textarea"===o,disabled:s,tooltipId:"visual"===o?"styleeditor.switchToTextareaEditor":"styleeditor.switchToVisualEditor",onClick:function(){return s?null:"visual"===o?i({editorType:"textarea"}):f(!0)}}]}))},m&&c.a.createElement(m,EA({},l,{onChange:function(e,t){a(e),wa()(t)&&i({styleJSON:JSON.stringify(t)})}})),p&&c.a.createElement("div",{className:"ms-style-editor-alert",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",padding:16,backgroundColor:"rgba(0, 0, 0, 0.6)"}},c.a.createElement(v.Alert,{bsStyle:"warning",style:{textAlign:"center"}},c.a.createElement("p",{style:{padding:8}},c.a.createElement(b.default,{msgId:"styleeditor.alertForceTranslate"})),c.a.createElement("p",null,c.a.createElement(qo.a,{buttons:[{text:c.a.createElement(b.default,{msgId:"styleeditor.stayInTextareaEditor"}),onClick:function(){return f(!1)},style:{marginRight:4}},{bsStyle:"primary",text:c.a.createElement(b.default,{msgId:"styleeditor.useLatestValidStyle"}),onClick:function(){i({editorType:"visual"}),f(!1)}}]})))))}DA.defaultProps={inlineWidgets:jA};var NA=Object(f.connect)(Object(OA.a)(ej.c,ej.f,ej.b,(function(e){var t=Object(ej.d)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=Object(ej.d)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),ej.n,(function(e,t,n,r,o,i){return{code:e,error:t.edit||null,canEdit:n,editorType:r,defaultStyleJSON:o,loading:i}})),{onUpdateMetadata:Yi.E,onChange:Yi.u})(DA),RA=Object(tj.i)(),LA=Object(cO.a)((function(e){return!e.canEdit}),{glyph:"exclamation-mark",title:c.a.createElement(b.default,{msgId:"styleeditor.noPermission"})}),FA=function(e){return Object(uO.a)(e,{size:150,style:{margin:"auto"}},(function(e){return c.a.createElement("div",{style:{position:"relative",height:"100%",display:"flex"}},c.a.createElement(TS.a,e))}))},zA=Object(L.compose)(Object(L.defaultProps)({templates:RA}),Object(f.connect)(Object(R.a)([ej.t,ej.a,ej.h,ej.b,ej.s,ej.n],(function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.formats,a=void 0===i?[]:i,s=arguments.length>5?arguments[5]:void 0;return{selectedStyle:e,add:t&&e,geometryType:n,canEdit:r,availableFormats:a,loading:s}})),{onSelect:Yi.A,onClose:Yi.r.bind(null,!1),onSave:Yi.s}),LA,FA((function(e){return!e.geometryType})),Object(L.withState)("filterText","onFilter",""),Object(L.withState)("styleSettings","onUpdate",{}))(ZS),BA=Object(L.compose)(Object(f.connect)(Object(R.a)([ej.r,ej.i],(function(e,t){return{status:e,defaultStyle:t.defaultStyle,enabledStyle:t.enabledStyle,availableStyles:t.availableStyles}})),{onSelect:x.eb}),Object(L.withState)("filterText","onFilter",""),Object(CS.a)((function(e){var t=e.status,n=e.readOnly;return"template"===t&&!n}),(function(){return c.a.createElement(zA,null)}),{maskContainerStyle:{display:"flex",position:"relative"},maskStyle:{overflowY:"auto",left:0}}))(BS),qA=Object(L.compose)(Object(L.withState)("showModal","onShowModal"),Object(f.connect)(Object(R.a)([ej.r,ej.t,ej.f,ej.k,ej.c,ej.n,ej.q,ej.b,ej.i,ej.s,ej.o],(function(e,t,n,r,o,i,a,s,l){var u=l.defaultStyle,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},d=c.formats,p=void 0===d?["sld"]:d,f=arguments.length>10?arguments[10]:void 0;return{status:e,templateId:t,error:n,isCodeChanged:r!==o,loading:i,layerDefaultStyleName:u,selectedStyle:u===a?"":a,editEnabled:s,disableCodeEditing:-1===p.indexOf(f)}})),{onSelectStyle:Yi.F.bind(null,"template"),onEditStyle:Yi.F.bind(null,"edit"),onBack:Yi.F.bind(null,""),onReset:ES.h.bind(null,tj.b,[{}]),onAdd:Yi.r.bind(null,!0),onUpdate:Yi.G,onDelete:Yi.t,onSetDefault:Yi.B}))(JS),UA=Object(L.compose)(Object(f.connect)(Object(R.a)([ej.j],(function(e){return{layer:e}})),{onInit:q.b}),Object(L.lifecycle)({componentWillMount:function(){this.props.onInit&&this.props.layer&&this.props.onInit(this.props.layer)}}),FA((function(e){var t=e.layer,n=void 0===t?{}:t;return n&&n.capabilitiesLoading})))((function(){return c.a.createElement(Bo.a,{className:"ms-style-editor-container",footer:c.a.createElement("div",{style:{height:25}})},c.a.createElement(BA,{readOnly:!0}))})),GA=Object(L.branch)((function(e){return e.readOnly}),(function(){return UA}))(BA),HA=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function VA(){return(VA=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}oP(iP,"propTypes",{element:p.a.object,defaultInfoFormat:p.a.object,onChange:p.a.func,formatCards:p.a.object}),oP(iP,"defaultProps",{element:{},defaultInfoFormat:[],onChange:function(){},formatCards:{}});var fP={html:oO.a,json:JSON.parse(aO.a),text:lO.a},hP=Object(L.defaultProps)({readOnly:!0})(GA),mP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=void 0===t?{}:t;return"layers"===n.nodeType},gP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=void 0===t?{}:t;return"wfs"===n.type||"vector"===n.type&&"annotations"!==n.id},yP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=void 0===t?{}:t;return"wms"===n.type},bP=function(e){return mP(e)&&(yP(e)||gP(e))},vP={HIDDEN:{titleId:"layerProperties.hideFormatTitle",descId:"layerProperties.hideFormatDescription",glyph:"hide-marker"},TEXT:{titleId:"layerProperties.textFormatTitle",descId:"layerProperties.textFormatDescription",glyph:"ext-txt",body:function(){return c.a.createElement("div",null,c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"layerProperties.exampleOfResponse"})),c.a.createElement("br",null),c.a.createElement(na.a,{response:fP.text}))}},HTML:{titleId:"layerProperties.htmlFormatTitle",descId:"layerProperties.htmlFormatDescription",glyph:"ext-html",body:function(){return c.a.createElement("div",null,c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"layerProperties.exampleOfResponse"})),c.a.createElement("br",null),c.a.createElement(ta.a,{response:fP.html}))}},PROPERTIES:{titleId:"layerProperties.propertiesFormatTitle",descId:"layerProperties.propertiesFormatDescription",glyph:"ext-json",body:function(){return c.a.createElement("div",null,c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"layerProperties.exampleOfResponse"})),c.a.createElement("br",null),c.a.createElement(ra.a,{response:fP.json}))}},TEMPLATE:{titleId:"layerProperties.templateFormatTitle",descId:"layerProperties.templateFormatDescription",glyph:"ext-empty",body:function(e){var t=e.template,n=void 0===t?"":t,r=pP(e,["template"]);return c.a.createElement("div",null,c.a.createElement("div",null,n&&"


"!==n?c.a.createElement(b.default,{msgId:"layerProperties.templatePreview"}):null),c.a.createElement("br",null),c.a.createElement("div",null,n&&"


"!==n?c.a.createElement(oa.a,{html:n}):c.a.createElement("span",null,c.a.createElement("p",null,c.a.createElement(b.default,{msgId:"layerProperties.templateFormatInfoAlert2",msgParams:{attribute:"{ }"}})),c.a.createElement("pre",null,c.a.createElement(b.default,{msgId:"layerProperties.templateFormatInfoAlertExample",msgParams:{properties:"{ properties.id }"}})),c.a.createElement("p",null,c.a.createElement("small",null,c.a.createElement(b.default,{msgId:"layerProperties.templateFormatInfoAlert1"}))," ( ",c.a.createElement(v.Glyphicon,{glyph:"pencil"})," )")),c.a.createElement(tO,dP({template:n},r))))}}},wP=Object(L.defaultProps)({formatCards:vP,defaultInfoFormat:Object.assign({HIDDEN:"text/html"},Object(ia.d)())})(iP),xP={},_P=function(e,t,n){if(e){var r=xP[e.name];return r||(r=Object(_.f)(e,t,n))&&r.loaded&&(xP[e.name]=r),r}return e},OP=function(e){var t=e.settings,n=e.items,r=void 0===n?[]:n,o=e.loadedPlugins,i=e.onToggleStyleEditor,a=void 0===i?function(){}:i,s=e.onUpdateParams,l=void 0===s?function(){}:s,u=e.element,d=pP(e,["settings","items","loadedPlugins","onToggleStyleEditor","onUpdateParams","element"]);if(gP({element:u}))return{Component:jS};var p=Object(se.sortBy)(Object(se.filter)(uP(r),{target:"style"}),["priority"]).filter((function(e){var t=e.selector;return!t||t(sP(sP({},d),{},{element:u}))})),f=Object(se.head)(Object(se.filter)(p,{name:"ThematicLayer"}));if(f){var h=t&&t.options&&t.options.thematic,m=[{glyph:"list",tooltipId:"toc.thematic.classify",visible:d.isAdmin&&!h||!1,onClick:function(){return l({thematic:{unconfigured:!0}})}},{glyph:"trash",tooltipId:"toc.thematic.remove_thematic",visible:d.isAdmin&&h||!1,onClick:function(){return l({thematic:null})}}];return h?{Component:"style"===d.activeTab&&f.plugin&&_P(f,o,c.a.createElement(nO.a,{width:100,height:100})),toolbar:m}:{toolbar:m}}var g=Object(se.head)(p);if(g&&g.plugin){var y=g.cfg||g.plugin.cfg;return{onClose:function(){return a(null,!1)},Component:_P(sP(sP({},g),{},{cfg:sP(sP({},y||{}),{},{active:!0})}),o,c.a.createElement(nO.a,{width:100,height:100})),toolbarComponent:g.ToolbarComponent&&(y&&Object(L.defaultProps)(y)(g.ToolbarComponent)||g.ToolbarComponent)}}return{}},SP=function(e){var t=e.showFeatureInfoTab,n=void 0===t||t,r=e.loadedPlugins,o=e.items,i=e.onToggleStyleEditor,a=pP(e,["showFeatureInfoTab","loadedPlugins","items","onToggleStyleEditor"]);return[{id:"general",titleId:"layerProperties.general",tooltipId:"layerProperties.general",glyph:"wrench",visible:!0,Component:aa.a},{id:"display",titleId:"layerProperties.display",tooltipId:"layerProperties.display",glyph:"eye-open",visible:mP(a),Component:sa.a},sP({id:"style",titleId:"layerProperties.style",tooltipId:"layerProperties.style",glyph:"dropper",visible:bP(a),Component:hP},OP(sP({items:o,loadedPlugins:r,onToggleStyleEditor:i},a))),{id:"feature",titleId:"layerProperties.featureInfo",tooltipId:"layerProperties.featureInfo",glyph:"map-marker",visible:n&&mP(a)&&yP(a)&&!(a.element.featureInfo&&a.element.featureInfo.viewer),Component:wP,toolbar:[{glyph:"pencil",tooltipId:"layerProperties.editCustomFormat",visible:!a.showEditor&&a.element&&a.element.featureInfo&&"TEMPLATE"===a.element.featureInfo.format||!1,onClick:function(){return a.onShowEditor&&a.onShowEditor(!a.showEditor)}}]},{id:"elevation",titleId:"layerProperties.elevation",tooltipId:"layerProperties.elevation",glyph:"1-vector",visible:mP(a)&&yP(a)&&a.element.dimensions&&a.getDimension&&a.getDimension(a.element.dimensions,"elevation"),Component:b_}].filter((function(e){return e.visible}))},jP=Object(R.a)([H.o,H.p,H.k,X.b,X.a,function(e){return Object(Vn.c)(e,{height:!0})},$.a,Z.d,Z.f,Z.a,H.f,J.b],(function(e,t,n,r,o,i,a,s,l,u,c,d){return{settings:e,element:c,groups:n,currentLocale:r,currentLocaleLanguage:o,dockStyle:i,isAdmin:a,initialSettings:s,originalSettings:l,activeTab:u,isLocalizedLayerStylesEnabled:d}})),EP=Object(L.compose)(Object(f.connect)(jP,{onHideSettings:x.N,onUpdateSettings:x.db,onUpdateNode:x.cb,onRetrieveLayerData:q.b,onUpdateOriginalSettings:w.g.bind(null,"layersettings","originalSettings"),onUpdateInitialSettings:w.g.bind(null,"layersettings","initialSettings"),onSetTab:w.g.bind(null,"layersettings","activeTab"),onUpdateParams:x.eb,onToggleStyleEditor:Yi.D}),Ki.b,Object(L.defaultProps)({getDimension:ee.getDimension,enableLayerNameEditFeedback:!0}),Object(L.getContext)({loadedPlugins:p.a.object}),Object(L.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,n=void 0===t?[]:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.items;return n!==o}),(function(e){return{tabs:SP(e)}})))(ea),CP=Object(_.d)("TOCItemsSettings",{component:EP,containers:{TOC:{doNotHide:!0,name:"TOCItemsSettings"}}}),TP=n("./MapStore2/web/client/selectors/widgets.js");function kP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AP=function e(t){var n=t.accessInfo,r=t.postProcessValue,o=t.reduceFun;return function(t){var i=Object(se.castArray)(t),a=o;return i.length>1&&"__OR__"===i[0]&&(a=function(e,t){return e||t},i=i.slice(1)),i.map((function(t){var i=t;if(Object(se.isArray)(i))return e({accessInfo:n,postProcessValue:r,reduceFun:o})(i);var a=!1;i&&Object(se.isString)(i)&&i.startsWith("!")&&(a=!0,i=i.substr(1));var s=function(e){return a?!e:e},l=Object(se.isString)(i)&&i.split(":");if(l&&l[0]){var u=l[0].split(/\!\=\=?/),c=l[0].split(/\=\=?\=?/);return u.length>1?s(r(Object(se.get)(n,u[0]),i)!==u[1]):c.length>1?s(r(Object(se.get)(n,c[0]),i)===c[1]):s(r(Object(se.get)(n,l[0]),i))}return i})).reduce(a||function(e,t){return e&&t})}},PP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.asObject,r=void 0!==n&&n,o=t.postProcessValue,i=void 0===o?function(e){return e}:o,a=t.reduceFun,s=t.accessInfo,l=void 0===s?"accessInfo":s;return Object(L.withPropsOnChange)([e,l],(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return kP({},e,r?Object(se.mapValues)(t[e],AP({accessInfo:t[l],postProcessValue:i,reduceFun:a})):AP({accessInfo:t[l],postProcessValue:i,reduceFun:a})(t[e]))}))},MP=function(){return Object(L.compose)(Object(f.connect)(Object(R.a)(K.g,K.h,$.e,(function(e,t,n){return{accessInfo:{mapId:e,mapInfo:t,user:n}}}))),PP.apply(void 0,arguments))},IP=Object(f.connect)(Object(R.a)(Vn.e,Vn.a,de.a,(function(e,t,n){return{enabled:!e&&!t&&!n}}))),DP=n("./node_modules/react-container-dimensions/lib/index.js"),NP=n.n(DP),RP=n("./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js");function LP(){return(LP=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.overrideWidthProvider;return Object(L.compose)(Object(L.defaultProps)({useDefaultWidthProvider:!t}),(function(e){return function(t){return c.a.createElement(NP.a,null,(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.width;return c.a.createElement(e,LP({width:r},t))}))}}))},zP=function(e){return Object(L.compose)(Object(L.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),Object(RP.a)(e))},BP=n("./node_modules/react-grid-layout/index.js");function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UP(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var QP=Object(L.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),BP.WidthProvider)(BP.Responsive),$P=VP(n("./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx").default),JP=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 Object(se.find)(e.widgets,(function(e){return e===t.id}))}))},eM=Object(L.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.style,r=e.className,o=void 0===r?"":r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.rowHeight,l=void 0===s?208:s,u=e.breakpoints,d=void 0===u?{lg:1200,md:996,sm:768,xs:480,xxs:0}:u,p=e.cols,f=void 0===p?{lg:6,md:6,sm:4,xs:2,xxs:1}:p,h=e.widgets,m=void 0===h?[]:h,g=e.layouts,y=e.dependencies,b=e.verticalCompact,v=void 0!==b&&b,w=e.compactMode,x=e.useDefaultWidthProvider,_=void 0===x||x,O=e.measureBeforeMount,S=e.width,j=e.showGroupColor,E=e.groups,C=void 0===E?[]:E,T=e.canEdit,k=void 0===T||T,A=e.getWidgetClass,P=void 0===A?function(){}:A,M=e.onWidgetClick,I=void 0===M?function(){}:M,D=e.updateWidgetProperty,N=void 0===D?function(){}:D,R=e.deleteWidget,L=void 0===R?function(){}:R,F=e.toggleCollapse,z=void 0===F?function(){}:F,B=e.toggleMaximize,q=void 0===B?function(){}:B,U=e.editWidget,G=void 0===U?function(){}:U,H=e.onLayoutChange,V=void 0===H?function(){}:H,W=e.language,Y=e.env,K=ZP(e,["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"]),X=m.filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap})),Z=function(e){return"table"===e.widgetType&&X.filter((function(t){return Object.keys(t).filter((function(n){return t[n]&&-1!==t[n].indexOf(e.id)})).length>0})).length>0};return c.a.createElement(QP,{key:t||"widgets-view",useDefaultWidthProvider:_,measureBeforeMount:O,width:_?void 0:S,isResizable:k,isDraggable:k,draggableHandle:".draggableHandle",onLayoutChange:V,preventCollision:!0,style:n,className:"widget-container ".concat(o," ").concat(k?"":"no-drag"),rowHeight:l,autoSize:!0,verticalCompact:v,compactMode:w,breakpoints:d,cols:f,layouts:g?JSON.parse(JSON.stringify(Object(se.mapValues)(g,(function(e){return e.map((function(e){var t=Object(se.find)(m,{id:e.i});return t?KP(KP({},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 c.a.createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return I(e)},className:P(e)},c.a.createElement($P,WP({"data-grid":e.dataGrid},K,e,{quickFilters:Z(e)?e.quickFilters:void 0,toolsOptions:a,groups:JP(C,e),showGroupColor:j,dependencies:y,enableColumnFilters:Z(e),canEdit:k,updateProperty:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.maximized,o=n-120,i=4,a=Math.floor(o/i-20),s=null!=r&&r.widget?{width:"100%",height:"100%",marginTop:0,bottom:"auto",top:0,left:0,zIndex:1330}:{},l=null!=r&&r.widget?{width:t,useDefaultWidthProvider:!1,rowHeight:n-50,breakpoints:{xxs:0},cols:{xxs:1}}:{};return uM({rowHeight:a,className:"on-map",breakpoints:{md:480,xxs:0},cols:{md:6,xxs:1},style:uM({left:t&&t>800?"500px":"0",marginTop:52,bottom:65,height:Math.floor((n-100)/(a+10))*(a+10),width:"calc(100% - ".concat(t&&t>800?570:70,"px)"),position:"absolute",zIndex:50},s)},l)}))),Object(L.compose)(Object(L.defaultProps)({toolsOptions:{showPin:"user.role===ADMIN",seeHidden:"user.role===ADMIN",showHide:!1,showCollapse:!0,showMaximize:!0}}),MP("toolsOptions",{asObject:!0}),Object(L.compose)(Object(f.connect)(Object(R.a)(TP.p,(function(e){return{tray:e}}))),Object(L.withPropsOnChange)(["toolsOptions","tray"],(function(e){var t=e.toolsOptions,n=e.tray;return{toolsOptions:t?uM(uM({},t),{},{showCollapse:t.showCollapse&&n}):t}}))),Object(L.withPropsOnChange)(["widgets","toolsOptions"],(function(e){var t=e.widgets,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r;return{widgets:n.filter((function(e){return!e.hide||o.seeHidden}))}}))))(eM),pM=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&&oM(e,t)}(i,e);var t,n,r,o=iM(i);function i(){return nM(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return this.props.enabled?c.a.createElement(dM,this.props):null}}])&&rM(t.prototype,n),r&&rM(t,r),i}(c.a.Component);cM(pM,"propTypes",{enabled:p.a.bool}),cM(pM,"defaultProps",{enabled:!0});var fM=IP(pM),hM=Object(_.d)("WidgetsPlugin",{component:fM,containers:{TOC:{doNotHide:!0,name:"Widgets"}},reducers:{widgets:n("./MapStore2/web/client/reducers/widgets.js").default},epics:n("./MapStore2/web/client/epics/widgets.js").default}),mM=n("./MapStore2/web/client/actions/featuregrid.js"),gM=n("./MapStore2/web/client/actions/draw.js"),yM=n("./MapStore2/web/client/actions/queryform.js"),bM=n("./node_modules/connected-react-router/esm/actions.js"),vM=n("./MapStore2/web/client/actions/wfsquery.js"),wM=n("./MapStore2/web/client/selectors/query.js");function xM(e){return function(e){if(Array.isArray(e))return _M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _M(e,t)}(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 _M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.o,le.g,le.p).filter((function(){return Object(Z.j)(r())})).switchMap((function(){return qt.a.Observable.of(Object(w.g)("widgetBuilder","enabled",!0),Object(w.g)("metadataexplorer","enabled",!1))}))},closeWidgetEditorOnFinish:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.m,x.b).filter((function(){return Object(Z.j)(r())})).switchMap((function(){return qt.a.Observable.of(Object(w.g)("widgetBuilder","enabled",!1))}))},initEditorOnNew:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.o).filter((function(){return Object(Z.j)(r())})).switchMap((function(e){return qt.a.Observable.of(Object(le.I)(SM(SM({legend:!1,mapSync:!0,cartesian:!0,yAxis:!0},e),{},{type:void 0}),{step:0}))}))},initEditorOnNewChart:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.p).filter((function(){return Object(Z.j)(r())})).switchMap((function(e){return qt.a.Observable.of(Object(mM.fb)(),Object(le.I)(SM(SM({legend:!1,mapSync:!0,cartesian:!0,yAxis:!0,widgetType:"chart",filter:Object(wM.m)(r())},e),{},{type:void 0}),{step:0}),Object(le.O)("returnToFeatureGrid",!0))}))},handleWidgetsFilterPanel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.q).filter((function(){return Object(Z.j)(r())})).switchMap((function(){return qt.a.Observable.of(vM.u.apply(void 0,xM(EM(r()))),Object(yM.ab)(Object(TP.h)(r())),Object(w.g)("widgetBuilder","enabled",!1),Object(w.g)("queryPanel","enabled",!0)).concat(qt.a.Observable.race(e.ofType(yM.o).take(1),e.ofType(w.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).take(1)).switchMap((function(e){return(e.filterObj?qt.a.Observable.of(Object(le.O)("filter",e.filterObj)):qt.a.Observable.empty()).merge(qt.a.Observable.of(Object(w.g)("widgetBuilder","enabled",!0)))}))).takeUntil(e.ofType(bM.b,le.g).merge(e.ofType(w.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"widgetBuilder"===t&&!1==!n})))).concat(qt.a.Observable.of(Object(gM.h)(),Object(w.g)("queryPanel","enabled",!1)))}))}},TM=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),kM=Object(L.compose)(Object(f.connect)((function(e){return{returnToFeatureGrid:Object(TP.r)(e)}}),{backToWidgetList:function(){return Object(le.O)("widgetType",void 0)},closeWidgetBuilder:function(){return Object(w.g)("widgetBuilder","enabled",!1,!1)},openFeatureGridTable:function(){return Object(mM.yb)()}}),Object(L.withHandlers)({backFromWizard:function(e){var t=e.backToWidgetList,n=void 0===t?function(){}:t,r=e.closeWidgetBuilder,o=void 0===r?function(){}:r,i=e.openFeatureGridTable,a=void 0===i?function(){}:i,s=e.returnToFeatureGrid;return function(){s?(o(),a()):n()}}}),Object(L.withProps)((function(e){var t=e.returnToFeatureGrid,n=e.backFromWizard;return{exitButton:{onClick:void 0===n?function(){}:n,glyph:"arrow-left",tooltipId:t?"widgets.builder.wizard.backToFeatureGrid":"widgets.builder.wizard.backToWidgetTypeSelection"}}}))),AM=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),PM=n("./MapStore2/web/client/observables/wfs.js"),MM=n("./MapStore2/web/client/utils/ObservableUtils.js"),IM=n("./MapStore2/web/client/observables/wps/common.js"),DM=function(e,t){return Bt.Observable.defer((function(){return Tt.a.get(Object(IM.a)(e,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:t}),{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}})})).let(MM.b)};function NM(e){return DM(e.url,"gs:Aggregate")}var RM=n("./MapStore2/web/client/utils/ogc/WFS/base.js");function LM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||zM(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 FM(e){return function(e){if(Array.isArray(e))return BM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zM(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 zM(e,t){if(e){if("string"==typeof e)return BM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BM(e,t):void 0}}function BM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsWPS;return Object(L.compose)(Object(L.defaultProps)({dataStreamFactory:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onEditorChange,o=void 0===r?function(){}:r,i=n.onConfigurationError,a=void 0===i?function(){}:i;return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.layer;return n.name===o.name})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.layer;return Bt.Observable.forkJoin.apply(Bt.Observable,[Object(PM.a)({layer:n})].concat(FM(t?[NM(n)]:[NM(n).catch((function(){return Bt.Observable.of(!1)}))]))).do((function(e){var t=LM(e,1)[0],n=Object(se.get)(Object(RM.findGeometryProperty)(t.data||{}),"name");n&&o("geomProp",n)})).map((function(e){var t=LM(e,2),n=t[0];return{hasAggregateProcess:!!t[1],loading:!1,types:"ALL",featureTypeProperties:Object(se.get)(n,"data.featureTypes[0].properties")||[]}}))})).catch((function(e){return a(e),Bt.Observable.of({errorObj:e,loading:!1,featureTypeProperties:[]})})).startWith({loading:!0})}}),AM.a,Object(uO.a)(),Object(cO.a)((function(e){var t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.types,o=void 0===r?[]:r;return 0===n.length||0===o.length}),(function(){return{title:c.a.createElement(IT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),description:c.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}})))},UM=Object(L.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("options",void 0),n("widgetType",void 0)}}]}})),GM=n("./MapStore2/web/client/observables/wms.js"),HM=n("./MapStore2/web/client/utils/CatalogUtils.js");function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WM(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected;return t})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected,n=e.layerValidationStream,r=void 0===n?function(e){return e}:n,o=e.setLayer,i=void 0===o?function(){}:o;return qt.a.Observable.of(Object(HM.g)(t)).let(r).switchMap((function(){return Object(GM.a)(Object(HM.g)(t))})).do((function(e){return i(e)})).mapTo({canProceed:!0}).catch((function(e){return qt.a.Observable.of({error:e,canProceed:!1})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=e.error,r=arguments.length>1?arguments[1]:void 0;return WM({error:n,canProceed:t},r)}))}))),XM=Object(f.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(le.O)("layer",e)},onResetChange:le.O}),ZM=Object(L.compose)(Object(L.setDisplayName)("ChartLayerSelector"),XM,Object(L.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return Bt.Observable.forkJoin(Object(PM.a)({layer:e}))}(e)}))}}),UM,KM),QM=function(e){return Object(L.withHandlers)({toggleConnection:function(t){var n=t.toggleConnection,r=void 0===n?function(){}:n,o=t.editorData,i=void 0===o?{}:o;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(!i.mapSync,t,{dependenciesMap:i.dependenciesMap,mappings:e,sourceWidgetType:i.widgetType})}}})},$M=function(e,t,n){return"table"===t&&0===e.filter((function(e){return Object.keys(e).filter((function(t){return e[t]&&-1!==e[t].indexOf(n.id)})).length>0})).length},JM=Object(L.compose)(Object(L.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.widgets,o=(void 0===r?[]:r).filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap}));return{canConnect:n.geomProp&&"table"!==n.widgetType||$M(o,n.widgetType,n),connected:n.mapSync}})),QM({viewport:"viewport",layers:"layers",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),eI=Object(L.compose)(Object(f.connect)(Object(R.a)(TP.q,(function(e){return{widgetSelectionActive:e}}))),Object(CS.a)((function(e){return e.widgetSelectionActive}),(function(){return c.a.createElement("div",{style:{margin:"auto"}},c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectMapToConnect"}))}),{alwaysWrap:!0}));function tI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nI(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return 0===e.step},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(L.withProps)((function(n){var r=n.stepButtons,o=void 0===r?[]:r,i=n.exitButton,a=aI(n,["stepButtons","exitButton"]);return{stepButtons:[nI(nI({},i),{},{visible:e(nI({stepButtons:o,exitButton:i},a))},t)].concat(oI(o))}}))};function lI(e){return function(e){if(Array.isArray(e))return uI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return uI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uI(e,t)}(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 uI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var dI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return Object(L.compose)(Object(L.withProps)((function(t){var n=t.disableMultiDependencySupport,r=t.stepButtons,o=void 0===r?[]:r,i=t.toggleConnection,a=void 0===i?function(){}:i,s=t.availableDependencies,l=void 0===s?[]:s,u=t.canConnect,c=t.connected,d=cI(t,["disableMultiDependencySupport","stepButtons","toggleConnection","availableDependencies","canConnect","connected"]);return{stepButtons:[].concat(lI(o),[{onClick:function(){return a(l)},disabled:n,visible:!!e(d)&&!!u&&l.length>0,bsStyle:c?"success":"primary",glyph:c?"plug":"unplug",tooltipId:c?"widgets.builder.wizard.clearConnection":1===l.length?"widgets.builder.wizard.connectToTheMap":"widgets.builder.wizard.connectToAMap"}])}})))},pI=n("./MapStore2/web/client/selectors/dashboard.js");function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return hI(hI(hI(hI({},n),e),t),{},{step:e&&e.settings&&e.settings.step,valid:e&&e.settings&&e.settings.valid,onFinish:function(){return t.insertWidget&&t.insertWidget(hI({layer:e.layer,url:e.layer&&e.layer.url},e.editorData||{}),n.target)}})},yI=Object(R.a)(TP.o,TP.g,TP.i,TP.j,(function(e,t,n,r){return{layer:t&&t.layer||e,editorData:t,settings:n,widgets:r}}));Object(R.a)(TP.g,pI.c,TP.c,TP.a,(function(e,t,n,r){return hI({layer:e.layer,showConnections:t,dependencies:n},r)})),Object(R.a)(J.a,X.a,J.c,(function(e,t,n){return{isLocalizedLayerStylesEnabled:!Object(se.isNil)(e),language:t,env:n}})),TP.o,TP.a;function bI(e){return(bI="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 vI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wI(e,t){for(var n=0;n=0?i.length:1;return e.props.hideButtons?null:(e.props.step>0&&t.push(c.a.createElement(De.a,{key:"prev",className:"ms-wizard-prev",onClick:function(){return e.props.onPrevPage()}},c.a.createElement(b.default,{msgId:"wizard.prev"}))),e.props.step>=a-1?t.push(c.a.createElement(De.a,{key:"finish",className:"ms-wizard-finish",onClick:function(){return e.props.onFinish()}},c.a.createElement(b.default,{msgId:"wizard.finish"}))):e.props.step1&&t.push(c.a.createElement(De.a,{key:"next",className:"ms-wizard-next",disabled:!r(e.props.step),onClick:function(){return e.props.onNextPage()}},c.a.createElement(b.default,{msgId:"wizard.next"}))),t)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.children||[],n=t.length>=0?t.length:1;return c.a.createElement("div",{key:"wizard-pages",className:"ms-wizard"},c.a.Children.map(t,(function(t,r){return r===e.props.step?c.a.cloneElement(t,{key:"wizard-component-".concat(r),onNextPage:e.props.step===n-1?e.props.onFinish:e.props.onNextPage,onPrevPage:e.props.onPrevPage}):null})),c.a.createElement(v.Row,{key:"wizard-buttons",className:"ms-wizard-buttons"},this.renderButtons()))}}])&&wI(t.prototype,n),r&&wI(t,r),i}(c.a.Component);EI(CI,"propTypes",{step:p.a.number,hideButtons:p.a.bool,onNextPage:p.a.func,onPrevPage:p.a.func,buttonType:p.a.node,onFinish:p.a.func,isStepValid:p.a.func}),EI(CI,"defaultProps",{step:0,isStepValid:function(){return!0},hideButtons:!1,onNextPage:function(){},onPrevPage:function(){},onFinish:function(){}});var TI=CI,kI=Object(L.compose)(Object(L.withPropsOnChange)(["step"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.skipButtonsOnSteps,n=void 0===t?[]:t,r=e.step,o=e.hideButtons;return n&&n.indexOf(r)>=0?{hideButtons:!0}:{hideButtons:o}})),Object(L.withHandlers)({onNextPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(t+1)}},onPrevPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(Math.max(t-1,0))}}})),AI=(Object(L.compose)(Object(L.withState)("step","setPage",0),kI),function(e){return Object(cO.a)(e,{title:c.a.createElement(b.default,{msgId:"widgets.builder.errors.noAttributesTitle"}),description:c.a.createElement(b.default,{msgId:"widgets.builder.errors.noAttributesDescription"}),glyph:"warning-sign"})}),PI=Object(L.defaultProps)({data:[{name:"A",variable:2,pv:2,amt:2},{name:"B",variable:.5,pv:.5,amt:.5},{name:"C",variable:3,pv:3,amt:3},{name:"D",variable:1,pv:1,amt:2}],series:[{dataKey:"variable",color:"#078aa3"}],xAxis:{dataKey:"name",show:!1}}),MI=n("./MapStore2/web/client/components/charts/SimpleChart.jsx"),II=function(e){var t=e.title,n=e.description;return c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:12,className:"text-center"},c.a.createElement("div",{className:"mapstore-step-title"},t),c.a.createElement("div",{className:"mapstore-step-description"},n)))};function DI(){return(DI=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onSelect,n=void 0===t?function(){}:t,r=e.onNextPage,o=void 0===r?function(){}:r,i=e.types,a=void 0===i?BI:i,s=e.type;return c.a.createElement(v.Row,null,c.a.createElement(II,{key:"title",title:c.a.createElement(b.default,{msgId:"widgets.selectChartType.title"})}),c.a.createElement(kS.default,{key:"content",onItemClick:function(e){n(e.type),o()},items:a&&BI.map((function(e){return RI(RI({},e),{},{selected:e.type===s,preview:c.a.createElement(FI,DI({},zI,{type:e.type,autoColorOptions:e.type===s?{base:0,s:0,v:0}:void 0}))})}))}))})),UI=function(e){return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return 0!==t.indexOf("gml:")})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return{label:t,value:t}}))},GI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(se.find)(t,{name:e});return!n||"number"!==n.localType&&"int"!==n.localType?[{value:"Count",label:"widgets.operations.COUNT"}]:[{value:"Count",label:"widgets.operations.COUNT"},{value:"Sum",label:"widgets.operations.SUM"},{value:"Average",label:"widgets.operations.AVG"},{value:"StdDev",label:"widgets.operations.STDDEV"},{value:"Min",label:"widgets.operations.MIN"},{value:"Max",label:"widgets.operations.MAX"}]},HI=Object(L.compose)(Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.data,o=void 0===r?{}:r;return{options:UI(n),aggregationOptions:("counter"!==(null==o?void 0:o.widgetType)?[{value:"None",label:"widgets.operations.NONE"}]:[]).concat(GI(o.options&&o.options.aggregationAttribute,n))}})),Object(AS.a)("aggregationOptions")),VI=n("./MapStore2/web/client/components/misc/switch/SwitchButton.jsx"),WI=n("./MapStore2/web/client/components/misc/Overlay.jsx");function YI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KI(e,t)}(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 KI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tD={value:1};function nD(e){try{if(!e)return[!0];var t=Object(ZI.a)(e,tD);return[!Object(se.isNil)(t)&&!Object(se.isNaN)(t)&&!Object(se.isError)(t),t]}catch(e){return[!1,e]}}function rD(e,t){return e?null:Object(se.isNil)(t)?"the expression returns no value":Object(se.isNaN)(t)?"the expression returned NaN":Object(se.isError)(t)?t.message:null}function oD(e,t){return t?e?"success":"error":null}function iD(e){var t=e.onChange,n=e.value,r=eD(e,["onChange","value"]),o=$I(nD(n),2),i=o[0],a=o[1],s=$I(Object(u.useState)(i),2),l=s[0],d=s[1],p=$I(Object(u.useState)(a),2),f=p[0],h=p[1],m=$I(Object(u.useState)(n),2),g=m[0],y=m[1];return c.a.createElement(v.FormGroup,{validationState:oD(l,g)},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"widgets.advanced.formula"})),c.a.createElement(XI,{placement:"top",title:c.a.createElement(b.default,{msgId:"widgets.advanced.formula"}),text:c.a.createElement(qS.a,{msgId:"widgets.advanced.formulaExamples"})}),c.a.createElement(v.FormControl,QI({placeholder:"e.g. value / 100",feedback:rD(l,f)},r,{type:"text",value:g,onChange:function(e){var n=$I(nD(e.target.value),2),r=n[0],o=n[1];r?(d(!0),h(void 0),t(e)):(d(!1),h(o)),y(e.target.value)}}))))}var aD=Object(AS.a)("options")(Uo.default),sD=[{value:"-",label:"widgets.advanced.axisTypes.auto"},{value:"linear",label:"widgets.advanced.axisTypes.linear"},{value:"category",label:"widgets.advanced.axisTypes.category"},{value:"log",label:"widgets.advanced.axisTypes.log"},{value:"date",label:"widgets.advanced.axisTypes.date"}];function lD(e){var t=e.data;return c.a.createElement("span",null,c.a.createElement("span",{style:{cursor:"pointer"}},c.a.createElement(b.default,{msgId:"widgets.advanced.title"})),c.a.createElement("button",{className:"close"},t.panel?c.a.createElement(v.Glyphicon,{glyph:"glyphicon glyphicon-collapse-down"}):c.a.createElement(v.Glyphicon,{glyph:"glyphicon glyphicon-expand"})))}function uD(e){var t,n,r,o,i,a,s,l,u,d,p,f,h,m=e.data,g=e.onChange,y=void 0===g?function(){}:g;return c.a.createElement(uT.a,{id:"displayCartesian",header:c.a.createElement(lD,{data:m}),collapsible:!0,expanded:m.panel,onSwitch:function(e){y("panel",e)}},c.a.createElement(v.FormGroup,{controlId:"AdvancedOptions"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.displayCartesian"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(VI.a,{checked:!(!m.cartesian&&!1!==m.cartesian)&&!m.cartesian,onChange:function(e){y("cartesian",!e)}})),c.a.createElement(v.Col,{componentClass:"label",sm:12},c.a.createElement(b.default,{msgId:"widgets.advanced.yAxis"})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.xAxisType"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(aD,{value:m.yAxisOpts&&m.yAxisOpts.type||"-",options:sD,onChange:function(e){y("yAxisOpts.type",e&&e.value)}})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.hideLabels"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(VI.a,{checked:!m.yAxis&&!1!==m.yAxis||!m.yAxis,onChange:function(e){y("yAxis",!e)}})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:12},c.a.createElement(b.default,{msgId:"widgets.advanced.format"})),c.a.createElement(v.Col,{sm:4},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"widgets.advanced.prefix"}),c.a.createElement(v.FormControl,{placeholder:"e.g.: ~",disabled:!1===m.yAxis,value:null==m||null===(t=m.yAxisOpts)||void 0===t?void 0:t.tickPrefix,type:"text",onChange:function(e){return y("yAxisOpts.tickPrefix",e.target.value)}}))),c.a.createElement(v.Col,{sm:4},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"widgets.advanced.format"})),c.a.createElement(XI,{placement:"top",title:c.a.createElement(b.default,{msgId:"widgets.advanced.examples"}),text:c.a.createElement(qS.a,{msgId:"widgets.advanced.formatExamples"})}),c.a.createElement(v.FormControl,{placeholder:"e.g.: .2s",disabled:!1===m.yAxis,value:null==m||null===(n=m.yAxisOpts)||void 0===n?void 0:n.format,type:"text",onChange:function(e){return y("yAxisOpts.format",e.target.value)}})),c.a.createElement(v.Col,{sm:4},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"widgets.advanced.suffix"})),c.a.createElement(v.FormControl,{placeholder:"e.g.: W",disabled:!1===m.yAxis,value:null==m||null===(r=m.yAxisOpts)||void 0===r?void 0:r.tickSuffix,type:"text",onChange:function(e){return y("yAxisOpts.tickSuffix",e.target.value)}})),c.a.createElement(v.Col,{sm:12},c.a.createElement(iD,{disabled:!1===m.yAxis,value:m.formula,type:"text",onChange:function(e){return y("formula",e.target.value)}})),c.a.createElement(v.Col,{componentClass:"label",sm:12},c.a.createElement(b.default,{msgId:"widgets.advanced.xAxis"})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.xAxisType"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(aD,{value:null!==(o=null==m||null===(i=m.xAxisOpts)||void 0===i?void 0:i.type)&&void 0!==o?o:"-",options:sD,onChange:function(e){y("xAxisOpts.type",e&&e.value)}})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.hideLabels"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(VI.a,{checked:null!==(a=null==m||null===(s=m.xAxisOpts)||void 0===s?void 0:s.hide)&&void 0!==a&&a,onChange:function(e){y("xAxisOpts.hide",e)}})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.forceTicks"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(VI.a,{disabled:null!==(l=null==m||null===(u=m.xAxisOpts)||void 0===u?void 0:u.hide)&&void 0!==l&&l,checked:!(null==m||null===(d=m.xAxisOpts)||void 0===d||!d.nTicks),onChange:function(e){y("xAxisOpts.nTicks",e?200:void 0)}}),c.a.createElement("span",{style:{position:"relative",top:-5,margin:10}},c.a.createElement(sj.a,{bsStyle:"info",text:c.a.createElement(b.default,{msgId:"widgets.advanced.maxXAxisLabels",msgParams:{max:200}})}))),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.xAxisAngle"})),c.a.createElement(v.Col,{sm:6,style:{display:"flex"}},c.a.createElement(VI.a,{disabled:null!==(p=null==m||null===(f=m.xAxisOpts)||void 0===f?void 0:f.hide)&&void 0!==p&&p,checked:void 0!==m.xAxisAngle,onChange:function(e){y("xAxisAngle",e?0:void 0)}}),c.a.createElement("div",{style:{flexGrow:1,padding:5}},void 0!==m.xAxisAngle?c.a.createElement("div",{className:"mapstore-slider with-tooltip",onClick:function(e){e.stopPropagation()}},c.a.createElement(Aj.a,{disabled:!(null==m||null===(h=m.xAxisOpts)||void 0===h||!h.hide),key:"priority",format:{to:function(e){return"".concat(parseInt(e,10),"°")},from:function(e){return Number(e)}},onSlide:function(e){y("xAxisAngle",parseInt(e[0],10))},range:{min:-90,max:90},start:[Object(se.isNil)(m.xAxisAngle)?0:m.xAxisAngle],step:15,tooltips:[!0]})):c.a.createElement("div",{style:{textAlign:"center"}},"Auto")))),c.a.createElement(v.FormGroup,{controlId:"yAxisLabel"},c.a.createElement(v.Col,{componentClass:"label",sm:12},c.a.createElement(b.default,{msgId:"widgets.advanced.legend"})),c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.advanced.yAxisLabel"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(v.FormControl,{value:m.yAxisLabel,type:"text",onChange:function(e){return y("yAxisLabel",e.target.value)}}))))}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dD(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return"widgets.".concat(e,".").concat(t.type||t.widgetType||"default")},gD=c.a.createElement(b.default,{msgId:mD("placeHolder")}),yD=function(e){var t=e.hasAggregateProcess,n=e.data,r=void 0===n?{options:{}}:n,o=e.onChange,i=void 0===o?function(){}:o,a=e.options,s=void 0===a?[]:a,l=e.formOptions,u=void 0===l?{showGroupBy:!0,showUom:!1,showColorRampSelector:!0,showLegend:!0,advancedOptions:!0}:l,d=e.aggregationOptions,p=void 0===d?[]:d,f=e.sampleChart;return c.a.createElement(v.Row,null,c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.chartOptionsTitle"})}),c.a.createElement(v.Col,{xs:12,style:{position:"sticky",top:0,zIndex:1,background:"linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255, 1) 30px)"}},c.a.createElement("div",{style:{marginBottom:"30px"}},f)),c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Form,{className:"chart-options-form",horizontal:!0},u.showGroupBy?c.a.createElement(v.FormGroup,{controlId:"groupByAttributes",className:"mapstore-block-width"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("groupByAttributes",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.groupByAttributes,options:s,placeholder:gD,onChange:function(e){i("options.groupByAttributes",e&&e.value)}}))):null,c.a.createElement(v.FormGroup,{controlId:"aggregationAttribute",className:"mapstore-block-width"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("aggregationAttribute",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregationAttribute,options:s,placeholder:gD,onChange:function(e){i("options.aggregationAttribute",e&&e.value)}}))),t?c.a.createElement(v.FormGroup,{controlId:"aggregateFunction",className:"mapstore-block-width"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("aggregateFunction",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregateFunction,options:p,placeholder:gD,onChange:function(e){i("options.aggregateFunction",e&&e.value)}}))):null,u.showUom?c.a.createElement(v.FormGroup,{controlId:"uom"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("uom",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(v.FormControl,{value:Object(se.get)(r,"options.seriesOptions[0].uom"),type:"text",onChange:function(e){return i("options.seriesOptions.[0].uom",e.target.value)}}))):null,u.showColorRampSelector?c.a.createElement(v.FormGroup,{controlId:"colorRamp",className:"mapstore-block-width"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("colorRamp",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Lj,{items:hD(r.type),value:Object(se.head)(hD(r.type).filter((function(e){return r.autoColorOptions&&e.name===r.autoColorOptions.name}))),samples:"pie"===r.type?5:1,onChange:function(e){i("autoColorOptions",dD(dD({},e.options),{},{name:e.name}))}}))):null,u.showLegend?c.a.createElement(v.FormGroup,{controlId:"displayLegend"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:mD("displayLegend",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(VI.a,{checked:r.legend,onChange:function(e){i("legend",e)}}))):null,!u.advancedOptions||"chart"!==r.widgetType||"bar"!==r.type&&"line"!==r.type?null:c.a.createElement(uD,{data:r,onChange:i}))))},bD=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.sampleChart;return c.a.createElement(v.Row,null,c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.widgetOptionsTitle"})}),c.a.createElement(v.Col,{key:"sample",xs:12},c.a.createElement("div",{style:{marginBottom:"30px"}},i)),c.a.createElement(v.Col,{key:"form",xs:12},c.a.createElement(v.Form,{className:"widget-options-form",horizontal:!0},c.a.createElement(v.FormGroup,{controlId:"groupByAttributes"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.title"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(v.FormControl,{value:n.title,type:"text",onChange:function(e){return o("title",e.target.value)}}))),c.a.createElement(v.FormGroup,{controlId:"aggregationAttribute"},c.a.createElement(v.Col,{componentClass:v.ControlLabel,sm:6},c.a.createElement(b.default,{msgId:"widgets.description"})),c.a.createElement(v.Col,{sm:6},c.a.createElement(v.FormControl,{value:n.description,type:"text",onChange:function(e){return o("description",e.target.value)}}))))))},vD=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),wD=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),xD=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),_D=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),OD=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),SD=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js");function jD(){return(jD=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"":t;return 0!==n.indexOf("gml:")})).length}))(qI),TD=HI(yD),kD=Object(L.compose)(wD.a,xD.a,_D.a,vD.a,ED,SD.a,OD.a)(MI.a),AD=PI(MI.a),PD={width:430,height:200},MD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.hasAggregateProcess;return e.aggregationAttribute&&e.groupByAttributes&&(!n||n&&e.aggregateFunction)},ID=kI(TI),DD=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,o=e.dependencies,i=void 0===o?{}:o,a=e.setValid,s=void 0===a?function(){}:a,l=e.hasAggregateProcess;return MD(n.options,{hasAggregateProcess:l})?c.a.createElement(kD,jD({key:"preview-chart",onLoad:function(){return s(!0)},onLoadError:function(){return s(!1)},isAnimationActive:!1,dependencies:i,dependenciesMap:n.dependenciesMap},PD,{type:n.type,xAxisOpts:n.xAxisOpts,yAxisOpts:n.yAxisOpts,formula:n.formula,legend:n.legend,cartesian:n.cartesian,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,autoColorOptions:n.autoColorOptions,options:n.options,yAxis:n.yAxis,xAxisAngle:n.xAxisAngle,yAxisLabel:n.yAxisLabel})):c.a.createElement(AD,jD({hasAggregateProcess:l,key:"sample-chart",isAnimationActive:!1},PD,{type:n.type,autoColorOptions:n.autoColorOptions,legend:n.legend,cartesian:n.cartesian,yAxis:n.yAxis}))},ND=Object(L.compose)(Object(L.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!MD(n.options,{hasAggregateProcess:a})&&i(!1)}}),Object(L.setDisplayName)("ChartWizard"))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.setValid,l=void 0===s?function(){}:s,u=e.data,d=void 0===u?{}:u,p=e.layer,f=void 0===p?{}:p,h=e.step,m=void 0===h?0:h,g=e.types,y=e.featureTypeProperties,b=e.dependencies,v=e.hasAggregateProcess;return c.a.createElement(ID,{step:m,setPage:a,onFinish:o,isStepValid:function(e){return 0===e?d.chartType:1!==e||MD(d.options,{hasAggregateProcess:v})},hideButtons:!0},c.a.createElement(CD,{key:"type",featureTypeProperties:y,type:d.type,onSelect:function(e){n("type",e)}}),c.a.createElement(TD,{hasAggregateProcess:v,dependencies:b,key:"chart-options",featureTypeProperties:y,types:g,data:d,onChange:n,layer:d.layer||f,sampleChart:DD({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&MD(d.options,{hasAggregateProcess:v}))}})}),c.a.createElement(bD,{key:"widget-options",data:d,onChange:n,layer:d.layer||f,sampleChart:DD({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&MD(d.options,{hasAggregateProcess:v}))}})}))}));function RD(e){return function(e){if(Array.isArray(e))return LD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return LD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LD(e,t)}(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 LD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=e.selected,r=e.stepButtons,o=void 0===r?[]:r,i=e.onProceed,a=void 0===i?function(){}:i;return c.a.createElement(qo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[].concat(RD(o),[{onClick:a,disabled:!t,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",visible:n,glyph:"arrow-right"}])})},zD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.children;return c.a.createElement("div",{className:"mapstore-flex-container"},c.a.createElement("div",{className:"m-header bg-body widgets-builder-header"},c.a.createElement(v.Row,null,c.a.createElement(v.Col,{md:12,className:"text-center",style:{overflow:"hidden",lineHeight:"52px"}},c.a.createElement(De.a,{onClick:function(){return n()},className:"pull-left on-close-btn square-button no-border "},c.a.createElement(v.Glyphicon,{glyph:"1-close"})),c.a.createElement("span",{style:{padding:"50px 0 0 0",fontSize:16}},c.a.createElement(b.default,{msgId:"widgets.builder.header.title"})),c.a.createElement("div",{style:{display:"flex"},className:"square-button pull-right no-border"},c.a.createElement(v.Glyphicon,{glyph:"stats",className:"text-primary"})))),c.a.createElement(v.Row,{className:"text-center"},c.a.createElement("div",{className:"m-padding-md"},r))))},BD=zD;function qD(e){return(qD="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 UD(e){return function(e){if(Array.isArray(e))return GD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return GD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GD(e,t)}(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 GD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KD(e){var t=function(e,t){if("object"!==qD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qD(t)?t:String(t)}var XD=n("./node_modules/rxjs/Rx.js"),ZD=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.dataProp,i=void 0===o?"items":o,a=r.initialStreamDebounce,s=void 0===a?0:a,l=r.throttleTime,u=void 0===l?500:l;return e.take(1).concat(e.debounceTime(s)).switchMap((function(e){return n(e,0).startWith({loading:!0}).concat(XD.Observable.of({loading:!1})).concat(t.throttleTime(u).distinct().exhaustMap((function(t){return n(e,t).startWith({loading:!0}).concat(XD.Observable.of({loading:!1}))}))).scan((function(e,t){var n=e[i],r=YD(e,[i].map(KD)),o=t[i],a=YD(t,[i].map(KD));return VD(VD(WD({},i,o?[].concat(UD(n||[]),UD(o)):n||[]),r),a)})).map((function(e){return VD({},e)}))})).catch((function(e){return XD.Observable.of({loading:!1,error:e})}))},QD=n("./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js"),$D=function(e){var t=e.loadPage,n=e.scrollSpyOptions,r=e.loadStreamOptions,o=e.loadMoreStreamOptions,i=e.hasMore,a=e.isScrolled;return Object(L.compose)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return XD.Observable.empty()},t=arguments.length>1?arguments[1]:void 0;return Object(L.mapPropsStream)((function(n){var r=Object(L.createEventHandler)(),o=r.handler,i=r.stream,a=Object(L.createEventHandler)(),s=a.handler,l=a.stream;return n.combineLatest(ZD(l,i,e,t).startWith({}),(function(e,t){return VD(VD(VD({},e),t),{},{onLoadMore:o,loadFirst:s})}))}))}(t,o),Object(L.defaultProps)({hasMore:i,isScrolled:a}),Object(QD.a)(n,r))},JD=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),eN=n("./MapStore2/web/client/components/misc/FitIcon.jsx"),tN=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),nN=Object(AS.a)(["placeholder","clearValueText","noResultsText"])(n("./node_modules/react-select/dist/react-select.es.js").default),rN=function(e){var t=e.isValidServiceSelected,n=e.services,r=e.selectedService,o=e.onChangeCatalogMode,i=void 0===o?function(){}:o,a=e.onChangeSelectedService,s=void 0===a?function(){}:a;return c.a.createElement(v.InputGroup,null,c.a.createElement(nN,{clearValueText:"catalog.clearValueText",noResultsText:"catalog.noResultsText",clearable:!0,options:n,value:r,onChange:function(e){return s(e&&e.value?e.value:"")},placeholder:"catalog.servicePlaceholder"}),t?c.a.createElement(v.InputGroup.Addon,{className:"btn",onClick:function(){return i("edit",!1)}},c.a.createElement(v.Glyphicon,{glyph:"pencil"})):null,c.a.createElement(v.InputGroup.Addon,{className:"btn",onClick:function(){return i("edit",!0)}},c.a.createElement(v.Glyphicon,{glyph:"plus"})))},oN=Object(AS.a)("placeholder")(v.FormControl),iN=function(e){var t=e.onSearchTextChange,n=void 0===t?function(){}:t,r=e.searchText,o=e.title,i=void 0===o?c.a.createElement(b.default,{msgId:"catalog.title"}):o,a=e.catalog,s=e.services,l=e.isValidServiceSelected,u=e.showCatalogSelector;return c.a.createElement(v.Grid,{className:"catalog-form",fluid:!0},c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:12},c.a.createElement("h4",{className:"text-center"},i),u?c.a.createElement(v.FormGroup,null,c.a.createElement(rN,{servieces:s,catalog:a,isValidServiceSelected:l})):null,c.a.createElement(v.FormGroup,{controlId:"catalog-form"},c.a.createElement(oN,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sN(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{title:e.title&&Object(se.isObject)(e.title)&&e.title.default||e.title,caption:e.identifier,description:e.description,preview:e.thumbnail?c.a.createElement("img",{src:"thumbnail"}):cN,record:e}})),total:r&&r.numberOfRecordsMatched}},fN={querySelector:".ms2-border-layout-body",pageSize:10},hN=Object(L.compose)(Object(JD.a)("searchText","setSearchText",""),$D({loadPage:function(e){var t=e.text,n=e.catalog,r=void 0===n?{}:n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return qt.a.Observable.fromPromise(uN[r.type].textSearch(r.url,10*o+("csw"===r.type?1:0),10,t)).map((function(e){return{result:e,records:Object(HM.e)(r.type,e||[],{url:r&&r.url,service:r})}})).map(pN)},scrollSpyOptions:fN}),Object(L.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.catalog,r=t.loadFirst,o=void 0===r?function(){}:r;return e.debounceTime(500).startWith({searchText:"",catalog:n}).distinctUntilKeyChanged("searchText").do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.catalog;return o({text:t,catalog:n})})).ignoreElements()})))})))((function(e){var t=e.setSearchText,n=void 0===t?function(){}:t,r=e.selected,o=e.onRecordSelected,i=e.loading,a=e.searchText,s=e.items,l=void 0===s?[]:s,u=e.total,d=e.catalog,p=e.services,f=e.title,h=e.showCatalogSelector,m=e.error;return c.a.createElement(Bo.a,{className:"compat-catalog",header:c.a.createElement(iN,{services:p||[d],showCatalogSelector:h,title:f,searchText:a,onSearchTextChange:n}),footer:c.a.createElement("div",{className:"catalog-footer"},c.a.createElement("span",null,i?c.a.createElement(tN.a,null):null),Object(se.isNil)(u)?null:c.a.createElement("span",{className:"res-info"},c.a.createElement(b.default,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:l.length,total:u}})))},c.a.createElement(dN,{items:l.map((function(e){return e===r||r&&e&&e.record&&r.identifier===e.record.identifier?sN(sN({},e),{},{selected:!0}):e})),loading:i,error:m,onItemClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.record;return o(t,d)}}))})),mN=Object(L.defaultProps)({title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectALayer"})})(hN),gN=Object(L.compose)(Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.catalog;return!t}),Object(f.connect)(Object(R.a)(ce.q,(function(e){return{catalog:e}})))))(mN),yN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onLayerChoice,a=void 0===i?function(){}:i,s=e.stepButtons,l=e.selected,u=e.error,d=e.canProceed,p=e.layer,f=e.catalog,h=e.catalogServices;return c.a.createElement(Bo.a,{className:"bg-body layer-selector",header:c.a.createElement(BD,{onClose:n},c.a.createElement(FD,{stepButtons:s,canProceed:d,onProceed:function(){return a(p)}}),l&&!d&&u?c.a.createElement(sj.a,{trigger:!1,glyph:"warning-sign",bsStyle:"warning",title:c.a.createElement(IT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},c.a.createElement(gN,{services:h,selected:l,catalog:f,onRecordSelected:function(e){return o(e)}}))};function bN(e){return function(e){if(Array.isArray(e))return vN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vN(e,t)}(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 vN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function ON(){return(ON=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jN=Object(f.connect)(yI,{setPage:le.Q,setValid:function(e){return Object(le.C)("valid",e)},onEditorChange:le.O,insertWidget:le.M},gI)(Object(L.compose)(qM({needWPS:!1}),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))(ND)),EN=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.P,setPage:le.Q,onChange:le.O,insertWidget:le.M},gI),JM,sI(),dI((function(e){return 1===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.valid,a=e.setPage,s=void 0===a?function(){}:a,l=e.onFinish,u=void 0===l?function(){}:l,d=e.stepButtons,p=void 0===d?[]:d,f=e.openFilterEditor,h=void 0===f?function(){}:f;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return s(Math.max(0,n-1))},visible:n>0,glyph:"arrow-left",tooltipId:wN(n)}].concat(bN(p),[{visible:n>0,onClick:h,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return s(Math.min(n+1,2))},visible:!(1!==n),disabled:1===n&&!i,glyph:"arrow-right",tooltipId:xN(n)},{onClick:function(){return u(Math.min(n+1,1))},visible:2===n,glyph:"floppy-disk",tooltipId:_N(n,o)}])})})),CN=Object(L.compose)(Object(f.connect)(yI),eI,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(ZM(yN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.exitButton,i=e.editorData,a=e.toggleConnection,s=e.availableDependencies,l=void 0===s?[]:s,u=e.dependencies,d=SN(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement("div",{className:"mapstore-chart-advance-options"},c.a.createElement(Bo.a,{header:c.a.createElement(BD,{onClose:r},c.a.createElement(EN,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?c.a.createElement(jN,ON({dependencies:u},d)):null))}));function TN(e){return function(e){if(Array.isArray(e))return kN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(e,t)}(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 kN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},PN=Object(AS.a)("placeholder")(v.FormControl),MN=Object(AS.a)("placeholder")(w_.a),IN=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,o=void 0===r?function(){}:r;return c.a.createElement("div",null,c.a.createElement(v.Col,{key:"form",xs:12},c.a.createElement(v.Form,null,c.a.createElement(v.FormGroup,{controlId:"title"},c.a.createElement(v.Col,{sm:12},c.a.createElement(PN,{style:{marginBottom:10},placeholder:"widgets.builder.wizard.titlePlaceholder",value:n.title,type:"text",onChange:function(e){return o("title",e.target.value)}}))))),c.a.createElement(MN,{modules:{toolbar:[[{size:["small",!1,"large","huge"]},"bold","italic","underline","blockquote"],[{list:"bullet"},{align:[]}],[{color:[]},{background:[]},"clean"],["image","link"]]},placeholder:"widgets.builder.wizard.textPlaceholder",value:n&&n.text||"",onChange:function(e){return o("text",e)}}))},DN=kI(TI),NN=Object(L.compose)(Object(f.connect)(yI,{setPage:le.Q,insertWidget:le.M,onResetChange:le.O},gI),Object(L.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),sI())((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.onFinish,l=void 0===s?function(){}:s;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat(TN(a),[{onClick:function(){return l(Math.min(n+1,1))},visible:0===n,glyph:"floppy-disk",tooltipId:AN(n,o)}])})})),RN=Object(f.connect)(yI,{onChange:le.O},gI)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.editorData,d=void 0===u?{}:u;return c.a.createElement(DN,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(IN,{key:"widget-options",data:d,onChange:n}))})),LN=n("./node_modules/react-data-grid/index.js"),FN=n.n(LN);function zN(e){return function(e){if(Array.isArray(e))return BN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return BN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BN(e,t)}(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 BN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes,n=void 0===t?[]:t,r=e.options,o=void 0===r?{}:r;return{attributes:n.filter((function(e){return!Object(RM.isGeometryType)(e)})).map((function(e){return UN(UN({},e),{},{label:e.name,attribute:e.name,hide:o.propertyName&&o.propertyName.indexOf(e.name)<0})}))}})),AI((function(e){var t=e.attributes;return 0===(void 0===t?[]:t).length})),Object(L.withHandlers)({onChange:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.options,o=void 0===r?{}:r;return function(e,t){return n("options.propertyName",function(e,t,n){var r=Object(se.castArray)(t);return n?e.filter((function(e){return!Object(se.includes)(r,e)})):Object(se.uniq)([].concat(HN(e),HN(r)))}(o&&o.propertyName||[],e,t))}}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,o=void 0===r?"featuregrid.columns":r,i=e.onChange,a=void 0===i?function(){}:i,s=e.attributes,l=void 0===s?[]:s;return c.a.createElement("div",{className:"bg-body data-attribute-selector",style:n},c.a.createElement("h4",{className:"text-center"},c.a.createElement("strong",null,c.a.createElement(b.default,{msgId:o}))),c.a.createElement(FN.a,{rowKey:"id",columns:[{name:"",key:"attribute"}],rowGetter:function(e){return l[e]},rowsCount:l.length,rowSelection:{showCheckbox:!0,enableShiftSelect:!0,onRowsSelected:function(e){return a(e.map((function(e){return l[e.rowIdx].name})),!1)},onRowsDeselected:function(e){return a(e.map((function(e){return l[e.rowIdx].name})),!0)},selectBy:{indexes:l.reduce((function(e,t,n){return[].concat(zN(e),zN(t.hide?[]:[n]))}),[])}}}))})),YN=function(e){var t=e.data,n=void 0===t?{options:{}}:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.featureTypeProperties,a=e.sampleChart;return c.a.createElement(v.Row,null,c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.configureTableOptions"})}),c.a.createElement(v.Col,{xs:12},c.a.createElement("div",null,a)),c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Form,{className:"chart-options-form",horizontal:!0},c.a.createElement(WN,{options:n.options,onChange:o,attributes:i}),n.options&&n.options.columnSettings?c.a.createElement(De.a,{style:{float:"right"},onClick:function(){return o("options.columnSettings",void 0)}},c.a.createElement(b.default,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))},KN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.aggregateFunction&&e.aggregationAttribute&&e.groupByAttributes},XN=kI(TI),ZN=Object(L.compose)(Object(L.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o;r&&!KN(n.options)&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.data,l=void 0===s?{}:s,u=e.layer,d=void 0===u?{}:u,p=e.step,f=void 0===p?0:p,h=e.types,m=e.featureTypeProperties,g=e.dependencies;return c.a.createElement(XN,{step:f,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||KN(l.options)},hideButtons:!0},c.a.createElement(YN,{dependencies:g,key:"chart-options",featureTypeProperties:m,types:h,data:l,onChange:n,layer:l.layer||d}),c.a.createElement(bD,{key:"widget-options",data:l,onChange:n,layer:l.layer||d}))}));function QN(e){return function(e){if(Array.isArray(e))return $N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $N(e,t)}(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 $N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function rR(){return(rR=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var iR=Object(f.connect)(yI,{setPage:le.Q,setValid:function(e){return Object(le.C)("valid",e)},onEditorChange:le.O,insertWidget:le.M},gI)(Object(L.compose)(qM(),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}),Object(L.mapPropsStream)((function(e){return e.merge(e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.featureTypeProperties;return t===r})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.data,a=void 0===i?{}:i;o&&n.length>0&&!Object(se.get)(a,"options.propertyName")&&o("options.propertyName",n.filter((function(e){return!Object(RM.isGeometryType)(e)})).map((function(e){return e.name})))})).ignoreElements())})))(ZN)),aR=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.P,setPage:le.Q,onChange:le.O,insertWidget:le.M},gI),JM,sI(),dI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openFilterEditor,n=void 0===t?function(){}:t,r=e.step,o=void 0===r?0:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.editorData,l=void 0===s?{}:s,u=e.setPage,d=void 0===u?function(){}:u,p=e.onFinish,f=void 0===p?function(){}:p;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return d(Math.max(0,o-1))},visible:o>0,glyph:"arrow-left",tooltipId:eR(o)}].concat(QN(a),[{visible:o>=0,onClick:n,disabled:!JN(l),glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return d(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!JN(l),glyph:"arrow-right",tooltipId:tR(0,JN(l))},{onClick:function(){return f(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:nR(o,l)}])})})),sR=Object(L.compose)(Object(f.connect)(yI),eI,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(ZM(yN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.editorData,i=void 0===o?{}:o,a=e.exitButton,s=e.toggleConnection,l=e.availableDependencies,u=void 0===l?[]:l,d=e.dependencies,p=oR(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(Bo.a,{header:c.a.createElement(BD,{onClose:r},c.a.createElement(aR,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(se.get)(i,"options.propertyName.length")?c.a.createElement(sj.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:c.a.createElement(b.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?c.a.createElement(iR,rR({editorData:i,dependencies:d},p)):null)})),lR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js");function uR(e){return function(e){if(Array.isArray(e))return cR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cR(e,t)}(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 cR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},pR=n("./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js"),fR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js"),hR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx"),mR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx"),gR=Object(cO.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t;return!n.layers||0===(n.layers||[]).filter((function(e){return"background"!==e.group})).length}),(function(){return{glyph:"1-layer",title:c.a.createElement(b.default,{msgId:"widgets.selectMap.TOC.noLayerTitle"}),description:c.a.createElement(b.default,{msgId:"widgets.selectMap.TOC.noLayerDescription"})}}))(mR.a),yR=Object(fR.a)(hR.a),bR=Object(L.compose)(fR.a,Object(L.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),Object(pR.a)("title"))(II),vR=function(e){var t=e.preview,n=e.map,r=void 0===n?{}:n,o=e.onChange,i=void 0===o?function(){}:o,a=e.selectedNodes,s=void 0===a?[]:a,l=e.onNodeSelect,u=void 0===l?function(){}:l,d=e.editNode,p=e.closeNodeEditor,f=void 0===p?function(){}:p,h=e.isLocalizedLayerStylesEnabled;return c.a.createElement("div",null,c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.configureMapOptions"})}),c.a.createElement("div",{key:"sample",style:{marginTop:10}},c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.preview"})}),c.a.createElement("div",{style:{width:"100%",height:"200px"}},t)),d?[c.a.createElement(bR,{map:r,editNode:d}),c.a.createElement(yR,{closeNodeEditor:f,editNode:d,map:r,onChange:i,isLocalizedLayerStylesEnabled:h})]:[c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"layers"})}),c.a.createElement(gR,{selectedNodes:s,onSelect:u,onChange:i,map:r})])},wR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx"),xR=kI(TI),_R=Object(L.compose)(Object(f.connect)(Object(R.a)(TP.q,(function(e){return{widgetSelectionActive:e}}))),Object(CS.a)((function(e){return e.widgetSelectionActive}),(function(){return c.a.createElement("div",{style:{margin:"auto"}},c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectMapToConnect"}))}),{alwaysWrap:!0})),OR=Object(f.connect)(Object(R.a)(TP.i,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editNode;return{editNode:t}})),{setEditNode:function(e){return Object(le.C)("editNode",e)},closeNodeEditor:function(){return Object(le.C)("editNode",void 0)}});function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jR(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return o(n.filter((function(t){return!Object(se.find)(Object(se.castArray)(e),(function(e){return e===t.id}))})))}}})),AR=Object(L.withHandlers)({onRemoveSelected:function(e){var t=e.selectedLayers,n=void 0===t?[]:t,r=e.removeLayersById,o=void 0===r?function(){}:r,i=e.onNodeSelect,a=void 0===i?function(){}:i;return function(){o(n),n.forEach((function(e){return a(e,"layer",!1)}))}}});function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MR(e){for(var t=1;t0?t.reduce((function(e,t){return e.crs===t.crs?e:{crs:"differentCRS"}})):{crs:"differentCRS"},i=!!Object(se.head)(t)&&"differentCRS"!==r.crs&&r.crs;return i&&Ee.a.defs(i)}},zoomTo:function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.setMap,o=void 0===r?function(){}:r;return function(e){var t=n.map,r=n.map.layers,i=e.map((function(e){return r.find((function(t){return t.id===e}))})).filter((function(e){return e})).filter((function(e){return e.bbox})).map((function(e){return e.bbox})),a=i.length>1?i.reduce((function(e,t){return{bounds:{maxx:e.bounds.maxx>t.bounds.maxx?e.bounds.maxx:t.bounds.maxx,maxy:e.bounds.maxy>t.bounds.maxy?e.bounds.maxy:t.bounds.maxy,minx:e.bounds.minx=180&&l[3]>=90)s=1;else{var d=Wo.default.reprojectBbox(l,a.crs,t.projection||"EPSG:4326");s=te.default.getZoomForExtent(d,t.size,0,21,null)}var p={minx:u[0],miny:u[1],maxx:u[2],maxy:u[3]},f=MR(MR({},t.bbox),{},{bounds:p});o(MR(MR({},n.map),{},{center:c,zoom:s,bbox:f,mapStateSource:"tool"}))}}}}),Object(L.withProps)((function(e){var t=e.isEpsgSupported;return{epsgSupported:(void 0===t?function(){}:t)()}}))),NR=Object(L.compose)(Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),Object(L.withProps)((function(e){var t=e.editorData;return{canConnect:!0,connected:!!(void 0===t?{}:t).mapSync}})),QM({center:"center",zoom:"zoom",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),RR=Object(L.compose)(Object(f.connect)(yI,{setPage:le.Q,onChange:le.O,insertWidget:le.M},gI),kR,OR,AR,DR,Object(L.branch)((function(e){return!!e.editNode}),Object(L.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.setEditNode,o=void 0===r?function(){}:r;return{buttons:[{visible:1===n.length,tooltipId:"close",glyph:"1-close",onClick:function(){return o(!1)}}]}})),Object(L.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.epsgSupported,o=void 0!==r&&r,i=e.onRemoveSelected,a=void 0===i?function(){}:i,s=e.setEditNode,l=void 0===s?function(){}:s,u=e.zoomTo,c=void 0===u?function(){}:u;return{tocButtons:[{visible:n.length>0,glyph:"zoom-to",tooltipId:1===n.length?"toc.toolZoomToLayerTooltip":"toc.toolZoomToLayersTooltip",disabled:!o,onClick:o?function(){return c(n)}:function(){}},{visible:1===n.length,glyph:"wrench",tooltipId:"toc.toolLayerSettingsTooltip",onClick:function(){return l(n[0])}},{onClick:function(){return a()},visible:n.length>0,glyph:"trash",tooltipId:"toc.toolTrashLayerTooltip"}]}}))),NR,sI(void 0,{tooltipId:"widgets.builder.wizard.backToMapSelection"}),dI((function(e){return 0===e.step}))),LR=Object(L.compose)(Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.catalog;return!t}),Object(f.connect)(Object(R.a)(ce.q,(function(e){return{catalog:e}})))))(mN),FR=n("./MapStore2/web/client/api/persistence/index.js");function zR(e){return function(e){if(Array.isArray(e))return BR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return BR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BR(e,t)}(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 BR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function UR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GR(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id,title:e.name,description:e.description,preview:e.thumbnail?c.a.createElement("img",{src:decodeURIComponent(e.thumbnail)}):KR,map:e}})),total:n}},ZR=function(e){var t=e.text,n=void 0===t?"*":t,r=e.options,o=void 0===r?{}:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(FR.e)({category:"MAP",query:n,options:GR({params:{start:10*i,limit:10}},o)}).map(XR).catch((function(e){return qt.a.Observable.of({error:e,items:[],total:0})}))},QR={querySelector:".ms2-border-layout-body",pageSize:10},$R=function(e){return function(t,n){return 0===n&&t&&!t.text?e(t,n).map((function(e){var t=e.items,n=e.total;return GR(GR({},qR(e,["items","total"])),{},{total:n,items:[{id:"EMPTY_MAP",title:c.a.createElement(b.default,{msgId:"widgets.selectMap.emptyMap.title"}),description:c.a.createElement(b.default,{msgId:"widgets.selectMap.emptyMap.description"}),preview:KR,map:{id:"new.json"}}].concat(zR(t))})})):e(t,n)}},JR=Object(L.compose)($D((WR=(VR={loadPage:ZR,scrollSpyOptions:QR,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items,r=void 0===n?[]:n;return t>r.length}}).loadPage,YR=VR.scrollSpyOptions,GR(GR({},qR(VR,["loadPage","scrollSpyOptions"])),{},{scrollSpyOptions:GR({skip:1},YR),loadPage:$R(WR),hasMore:function(e){var t=e.total,n=e.items;return n&&n.length>=1&&"EMPTY_MAP"===n[0].id?t>n.length+1:t>n.length}}))),Object(L.withProps)((function(e){var t=e.items;return{skip:t&&t[0]&&"EMPTY_MAP"===t[0].id?1:0}}))),eL=Object(JD.a)("searchText","setSearchText",""),tL=($D({loadPage:ZR,scrollSpyOptions:QR,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items,r=void 0===n?[]:n;return t>r.length}}),Object(L.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.loadFirst,r=void 0===n?function(){}:n;return e.debounceTime(500).startWith({searchText:""}).distinctUntilKeyChanged("searchText",(function(e,t){return e===t})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.options;return r({text:t,options:n})})).ignoreElements()})))}))),nL=Object(L.compose)(eL,JR,tL),rL=Object(AS.a)("placeholder")(v.FormControl),oL=function(e){var t=e.onSearchTextChange,n=void 0===t?function(){}:t,r=e.searchText,o=e.title;return c.a.createElement(v.Grid,{className:"catalog-form",fluid:!0},c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:12},o&&c.a.createElement("h4",{className:"text-center"},o),c.a.createElement(v.FormGroup,{controlId:"catalog-form"},c.a.createElement(rL,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function iL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aL(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapSelected,n=void 0===t?function(){}:t,r=e.selectedSource,o=void 0===r?{}:r,i=e.includeMapId,a=void 0!==i&&i;return function(e){return("string"==typeof e.id?Tt.a.get(e.id).then((function(e){return e.data})):uL.a.getData(e.id,{baseURL:o.baseURL})).then((function(t){var n=t.version||"string"==typeof e.id?St.default.normalizeConfig(t.map):St.default.convertFromLegacy(t);return dL(dL(dL({},n&&n.map||{}),a?{id:e.id}:{}),{},{groups:n&&n.groups||[],layers:Object(ee.excludeGoogleBackground)(n.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e})))})})).then((function(e){return e.layers=e.sources?e.layers.map((function(t){var n=Object(ee.extractTileMatrixFromSources)(e.sources,t);return dL(dL({},t),n)})):e.layers,n({map:e})}))}}}),Object(L.mapPropsStream)((function(e){return e.distinctUntilKeyChanged("selected").filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected;return t})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=arguments.length>1?arguments[1]:void 0;return dL({canProceed:t},n)}))})));function hL(e){return function(e){if(Array.isArray(e))return mL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mL(e,t)}(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 mL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?c.a.createElement(tN.a,null):null),Object(se.isNil)(h)?null:c.a.createElement("span",{className:"res-info"},c.a.createElement(b.default,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:d.length-i,total:h}})))},c.a.createElement(lL,{loaderProps:f,items:d.map((function(e){return e===r||r&&e&&e.map&&r.id===e.map.id?aL(aL({},e),{},{selected:!0}):e})),loading:s,onItemClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map;return a(t)}}))})),yL=fL((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onMapChoice,a=void 0===i?function(){}:i,s=e.stepButtons,l=void 0===s?[]:s,u=e.selected;return c.a.createElement(Bo.a,{className:"bg-body layer-selector",header:c.a.createElement(zD,{onClose:n},c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat(hL(l),[{tooltipId:"widgets.builder.wizard.useThisMap",onClick:function(){return a(u)},visible:!0,disabled:!u,glyph:"arrow-right"}])}))},c.a.createElement(gL,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectAMap"}),selected:u,onSelected:function(e){return o(e)}}))})),bL=Object(L.compose)(Object(f.connect)((function(){return{}}),{onMapSelected:function(e){var t=e.map;return Object(le.O)("map",Object(ee.normalizeMap)(t))},onResetChange:le.O}),Object(L.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("map",void 0),n("widgetType",void 0)}}]}})))(yL),vL=RR((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.buttons,o=e.tocButtons,i=void 0===o?[]:o,a=e.stepButtons,s=void 0===a?[]:a,l=e.editorData,u=void 0===l?{}:l,d=e.setPage,p=void 0===d?function(){}:d,f=e.onFinish,h=void 0===f?function(){}:f,m=e.toggleLayerSelector,g=void 0===m?function(){}:m;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:r||[].concat(uR(0===n?i:[]),[{onClick:function(){return p(Math.max(n-1,0))},visible:1===n,glyph:"arrow-left",tooltipId:"widgets.builder.wizard.configureMapOptions"}],uR(s),[{onClick:function(){return g(!0)},visible:0===n,glyph:"plus",tooltipId:"widgets.builder.wizard.addLayer"},{onClick:function(){return p(Math.min(n+1,2))},visible:0===n,glyph:"arrow-right",tooltipId:"widgets.builder.wizard.configureWidgetOptions"},{onClick:function(){return h(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:dR(n,u)}])})})),wL=Object(L.compose)(Object(f.connect)(yI,{onResetChange:le.O}),Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorData,n=void 0===t?{}:t;return!n.map}),Object(L.renderComponent)(bL)),Object(L.withState)("layerSelectorOpen","toggleLayerSelector",!1),Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerSelectorOpen,n=void 0!==t&&t;return n}),Object(L.renderComponent)(Object(L.compose)(kR,Object(L.withHandlers)({onLayerChoice:function(e){var t=e.toggleLayerSelector,n=void 0===t?function(){}:t,r=e.addLayer,o=void 0===r?function(){}:r;return function(e){o(e),n(!1)}}}),KM)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onLayerChoice,a=void 0===i?function(){}:i,s=e.toggleLayerSelector,l=void 0===s?function(){}:s,u=e.selected,d=e.canProceed,p=e.layer,f=e.catalog,h=e.catalogServices;return c.a.createElement(Bo.a,{className:"bg-body layer-selector",header:c.a.createElement(BD,{onClose:n},c.a.createElement(qo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return l(!1)},tooltipId:"close",glyph:"1-close"},{onClick:function(){return a(p)},disabled:!u||!d,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",glyph:"plus"}]}),u&&!d?c.a.createElement(sj.a,{glyph:"exclamation-mark",bsStyle:"warning",title:c.a.createElement(IT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},c.a.createElement(LR,{services:h,selected:u,catalog:f,onRecordSelected:function(e){return o(e)}}))})))),Object(L.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",onClick:function(){n("map",void 0)}}}}))),xL=Object(f.connect)(yI,{onChange:le.O},gI)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.selectedNodes,d=void 0===u?[]:u,p=e.onNodeSelect,f=void 0===p?function(){}:p,h=e.editorData,m=void 0===h?{}:h,g=e.editNode,y=e.setEditNode,b=void 0===y?function(){}:y,v=e.closeNodeEditor,w=void 0===v?function(){}:v,x=e.isLocalizedLayerStylesEnabled,_=e.env;return c.a.createElement(xR,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(vR,{editNode:g,setEditNode:b,closeNodeEditor:w,onNodeSelect:f,selectedNodes:d,onChange:n,isLocalizedLayerStylesEnabled:x,preview:c.a.createElement(wR.a,{onChange:n,layers:m.map&&m.map.layers,map:m.map,env:_,options:{style:{margin:10,height:"calc(100% - 20px)"}}}),map:m.map}),c.a.createElement(bD,{key:"widget-options",data:m,onChange:n}))})),_L=Object(L.compose)(wL,Object(L.withProps)((function(e){var t=e.editorData;return{map:(void 0===t?{}:t).map}})),_R,lR.a,OR)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.toggleLayerSelector,i=void 0===o?function(){}:o,a=e.editorData,s=void 0===a?{}:a,l=e.editNode,u=e.setEditNode,d=e.closeNodeEditor,p=e.isLocalizedLayerStylesEnabled,f=e.env,h=e.selectedGroups,m=void 0===h?[]:h,g=e.exitButton,y=e.selectedLayers,b=void 0===y?[]:y,v=e.selectedNodes,w=e.onNodeSelect,x=void 0===w?function(){}:w,_=e.availableDependencies,O=void 0===_?[]:_,S=e.toggleConnection,j=void 0===S?function(){}:S;return c.a.createElement(Bo.a,{className:"map-selector",header:c.a.createElement(BD,{onClose:r},c.a.createElement(vL,{exitButton:g,editorData:s,availableDependencies:O,toggleConnection:j,selectedNodes:v,selectedLayers:b,selectedGroups:m,onNodeSelect:x,toggleLayerSelector:i}))},t?c.a.createElement(xL,{setEditNode:u,editNode:l,closeNodeEditor:d,onNodeSelect:x,isLocalizedLayerStylesEnabled:p,env:f,selectedNodes:v}):null)})),OL=Object(L.compose)(Object(L.setDisplayName)("CounterLayerSelector"),XM,Object(L.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return Bt.Observable.forkJoin(Object(PM.a)({layer:e}),NM(e))}(e)}))}}),UM,KM),SL=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),jL=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function EL(){return(EL=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.hasAggregateProcess;return e.aggregateFunction&&e.aggregationAttribute&&n},AL=Object(L.compose)(Object(L.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.valid,n=e.data,r=void 0===n?[]:n,o=e.options,i=void 0===o?{}:o,a=e.setValid,s=void 0===a?function(){}:a,l=e.error,u=e.hasAggregateProcess,c=!Object(se.isNil)(r[0])&&!l;!!t!=!!c&&kL(i,{hasAggregateProcess:u})&&s(c)}})),PL=Object(L.compose)(wD.a,xD.a,_D.a,SL.a,AL,CL,SD.a,OD.a),ML={style:{width:450,height:100}},IL=kI(TI),DL=PL(jL.a),NL=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,o=e.dependencies,i=void 0===o?{}:o,a=e.valid,s=e.setValid,l=void 0===s?function(){}:s,u=e.hasAggregateProcess;return kL(n.options,{hasAggregateProcess:u})?c.a.createElement(DL,EL({hasAggregateProcess:u},ML,{valid:a,dependenciesMap:n.dependenciesMap,dependencies:i,setValid:l,type:n.type,legend:n.legend,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,options:n.options})):c.a.createElement(jL.a,EL({},ML,{data:[{data:42}],options:n.options,series:[{dataKey:"data"}]}))},RL=Object(L.compose)(Object(L.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!kL(n.options,{hasAggregateProcess:a})&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.setValid,l=void 0===s?function(){}:s,u=e.valid,d=e.formOptions,p=e.data,f=void 0===p?{}:p,h=e.layer,m=void 0===h?{}:h,g=e.step,y=void 0===g?0:g,b=e.types,v=e.featureTypeProperties,w=e.dependencies,x=e.hasAggregateProcess;return c.a.createElement(IL,{step:y,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||kL(f.options,{hasAggregateProcess:x})},hideButtons:!0},c.a.createElement(TL,{hasAggregateProcess:x,dependencies:w,key:"chart-options",formOptions:d,featureTypeProperties:v,types:b,data:f,onChange:n,layer:f.layer||m,sampleChart:c.a.createElement(NL,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&kL(f.options,{hasAggregateProcess:x}))}})}),c.a.createElement(bD,{key:"widget-options",data:f,onChange:n,layer:f.layer||m,sampleChart:c.a.createElement(NL,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&kL(f.options,{hasAggregateProcess:x}))}})}))}));function LL(e){return function(e){if(Array.isArray(e))return FL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FL(e,t)}(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 FL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function UL(){return(UL=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var HL=Object(f.connect)(yI,{setPage:le.Q,setValid:function(e){return Object(le.C)("valid",e)},onEditorChange:le.O,insertWidget:le.M},gI)(Object(L.compose)(qM({needsWPS:!0}),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))(RL)),VL=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.P,setPage:le.Q,onChange:le.O,insertWidget:le.M},gI),JM,sI(),dI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openFilterEditor,n=void 0===t?function(){}:t,r=e.step,o=void 0===r?0:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.editorData,l=void 0===s?{}:s,u=e.valid,d=e.setPage,p=void 0===d?function(){}:d,f=e.onFinish,h=void 0===f?function(){}:f;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return p(Math.max(0,o-1))},visible:o>0,glyph:"arrow-left",tooltipId:zL(o)}].concat(LL(a),[{visible:0===o,onClick:n,disabled:!u,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return p(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!u,glyph:"arrow-right",tooltipId:BL(o)},{onClick:function(){return h(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:qL(o,l)}])})})),WL=Object(L.compose)(Object(f.connect)(yI),eI,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(OL(yN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.exitButton,i=e.editorData,a=e.toggleConnection,s=e.availableDependencies,l=void 0===s?[]:s,u=e.dependencies,d=GL(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(Bo.a,{header:c.a.createElement(BD,{onClose:r},c.a.createElement(VL,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?c.a.createElement(HL,UL({formOptions:{showColorRamp:!1,showUom:!0,showGroupBy:!1,showLegend:!1},dependencies:u},d)):null)}));function YL(e){return function(e){if(Array.isArray(e))return KL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return KL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KL(e,t)}(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 KL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},JL=n("./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js"),eF=n("./MapStore2/web/client/components/widgets/enhancers/legendWidget.js"),tF=n("./MapStore2/web/client/components/widgets/widget/LegendView.jsx"),nF=kI(TI),rF=Object(L.compose)(eF.a,Object(cO.a)((function(e){return!e.valid}),{title:c.a.createElement(b.default,{msgId:"widgets.builder.errors.noMapAvailableForLegend"}),description:c.a.createElement(b.default,{msgId:"widgets.builder.errors.noMapAvailableForLegendDescription"})}),Object(JL.a)(!1))(tF.a),oF=Object(L.compose)(Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),Object(L.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.availableDependencies;return{canConnect:(void 0===r?[]:r).length>0,connected:!!n.mapSync}})));function iF(){return(iF=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sF=Object(L.withProps)((function(e){var t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData;return{valid:n.length>0&&r.mapSync}})),lF=Object(R.a)(X.b,(function(e){return{currentLocale:e}})),uF=Object(L.compose)(Object(f.connect)(yI,{setPage:le.Q,onEditorChange:le.O,insertWidget:le.M},gI),Object(f.connect)(lF),sF,Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.dependencies,d=e.valid,p=e.data,f=void 0===p?{}:p,h=e.currentLocale,m=e.language;return c.a.createElement(nF,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(v.Row,null,c.a.createElement(II,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.preview"})}),c.a.createElement(v.Col,{xs:12},c.a.createElement("div",{style:{marginBottom:"30px"}},c.a.createElement(rF,{valid:d,dependencies:u,dependenciesMap:f.dependenciesMap,key:"widget-options",onChange:n,currentLocale:h,language:m})))),c.a.createElement(bD,{key:"widget-options",onChange:n}))})),cF=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.P,setPage:le.Q,onChange:le.O,insertWidget:le.M},gI),oF,sF,Object(f.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(le.O)("layer",e)},onResetChange:le.O}),Object(L.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),sI((function(e){return 0===e.step})),dI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.valid,a=e.stepButtons,s=void 0===a?[]:a,l=e.onFinish,u=void 0===l?function(){}:l,d=e.setPage,p=void 0===d?function(){}:d;return c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return p(Math.max(0,n-1))},visible:n>0,glyph:"arrow-left",tooltipId:XL(n)}].concat(YL(s),[{onClick:function(){return p(Math.min(n+1,1))},visible:0===n,disabled:0===n&&!QL(o)||!i,glyph:"arrow-right",tooltipId:ZL(0,i)},{onClick:function(){return u(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:$L(n,o)}])})})),dF=Object(L.compose)(Object(f.connect)(yI),eI,oF,QM({layers:"layers",zoom:"zoom",viewport:"viewport"}),Object(L.mapPropsStream)((function(e){return e.merge(e.filter((function(e){var t=e.editorData;return!(void 0===t?{}:t).mapSync})).take(1).distinctUntilChanged().do((function(e){var t=e.toggleConnection;return(void 0===t?function(){}:t)(e.availableDependencies)})).ignoreElements())})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.editorData,i=void 0===o?{}:o,a=e.exitButton,s=e.toggleConnection,l=e.availableDependencies,u=void 0===l?[]:l,d=e.dependencies,p=aF(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(Bo.a,{header:c.a.createElement(BD,{onClose:r},c.a.createElement(cF,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(se.get)(i,"options.propertyName.length")?c.a.createElement(sj.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:c.a.createElement(b.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?c.a.createElement(uF,iF({availableDependencies:u,editorData:i,dependencies:d},p)):null)}));function pF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fF(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vF=Object(R.a)(TP.g,(function(e){return{widgetType:e&&e.widgetType}})),wF={chart:CN,text:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n;return c.a.createElement(Bo.a,{header:c.a.createElement(BD,{onClose:r},c.a.createElement(NN,null))},t?c.a.createElement(RN,null):null)},table:sR,map:_L,counter:WL,legend:dF},xF=Object(L.compose)(Object(f.connect)(vF),Object(L.withProps)((function(e){var t=e.typeFilter,n=void 0===t?function(){return!0}:t,r=e.availableDependencies,o=void 0===r?[]:r;return{typeFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(e)&&!("legend"===e.type&&0===o.length)}}})),Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return!t}),Object(L.renderComponent)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.typeFilter;return c.a.createElement(Bo.a,{className:"bg-body",header:c.a.createElement(BD,{onClose:r},c.a.createElement(b.default,{msgId:"widgets.selectWidgetType"}))},t?c.a.createElement(gF,{typeFilter:o}):null)})),(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType,n=e.onClose,r=void 0===n?function(){}:n,o=bF(e,["widgetType","onClose"]),i=wF[t];return c.a.createElement(i,yF({},o,{onClose:r,widgetType:t}))}})))();function _F(e){return(_F="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 OF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SF(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"map"!==t&&"legend"!==t}}))}}])&&SF(t.prototype,n),r&&SF(t,r),i}(c.a.Component);PF(IF,"propTypes",{id:p.a.string,enabled:p.a.bool,limitDockHeight:p.a.bool,fluid:p.a.bool,zIndex:p.a.number,dockSize:p.a.number,position:p.a.string,onMount:p.a.func,onUnmount:p.a.func,onClose:p.a.func,dimMode:p.a.string,src:p.a.string,style:p.a.object,layout:p.a.object}),PF(IF,"defaultProps",{id:"widgets-builder-plugin",enabled:!1,dockSize:500,limitDockHeight:!0,zIndex:1e4,fluid:!1,dimMode:"none",position:"left",onMount:function(){},onUnmount:function(){},onClose:function(){},layout:{}});var DF=Object(f.connect)(Object(R.a)(Z.k,(function(e){return Object(Vn.c)(e,{height:!0})}),(function(e,t){return{enabled:e,layout:t}})),{onMount:function(){return Object(w.g)("widgetBuilder","available",!0)},onUnmount:function(){return Object(w.g)("widgetBuilder","available",!1)},onClose:w.g.bind(null,"widgetBuilder","enabled",!1,!1)})(IF),NF=Object(_.d)("WidgetsBuilder",{component:DF,epics:CM,containers:{TOC:{doNotHide:!0,name:"WidgetBuilder"}}});function RF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LF(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(se.sortBy)(e.filter(zF).map((function(e){return Object(se.findIndex)(t,(function(t){return t===e.id}))>=0?LF(LF({},e),{},{collapsed:!0}):e})),(function(e){var t=r[e.id]&&r[e.id].layout,o=Object(se.find)(n,{i:e.id})||t||{},i=o.x,a=void 0===i?0:i,s=o.y;return 100*(void 0===s?0:s)+a}))})),qF=Object(L.compose)(Object(L.defaultProps)({toolsOptions:{seeHidden:"user.role===ADMIN"}}),MP("toolsOptions",{asObject:!0}),Object(L.withProps)((function(e){var t=e.widgets,n=e.toolsOptions;return{widgets:(void 0===n?{seeHidden:!1}:n).seeHidden?t:t.filter((function(e){return!e.hide}))}})));function UF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GF(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType,n=e.type,r=t&&"chart"!==t?t:n;switch(r){case"text":return"sheet";case"table":return"features-grid";case"pie":return"pie-chart";case"line":return"1-line";case"map":return"1-map";case"counter":return"counter";default:return"stats"}},WF=Object(L.compose)(Object(L.withPropsOnChange)(["btnGroupProps"],(function(e){var t=e.btnGroupProps;return{btnGroupProps:GF(GF({},t),{},{className:"widgets-bar"+(t&&t.className?" ".concat(t.className):"")})}})),Object(L.withPropsOnChange)(["widgets","onClick"],(function(e){var t=e.widgets,n=void 0===t?[]:t,r=e.onClick,o=void 0===r?function(){}:r;return{buttons:n.map((function(e){return{glyph:VF(e),tooltip:e.title,className:e.collapsed?"btn-tray":"btn-tray active",onClick:function(){return o(e)}}}))}})))(qo.a);function YF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KF(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.expanded,n=e.onClick,r=void 0===n?function(){}:n;return c.a.createElement(sz,{tooltipId:t?"widgets.tray.collapseTray":"widgets.tray.expandTray",bsSize:"xsmall",bsStyle:"default",style:{borderColor:"transparent"},onClick:r},c.a.createElement(v.Glyphicon,{glyph:t?"chevron-right":"chevron-left"}))},uz=Object(L.compose)(Object(f.connect)(Object(R.a)(TP.n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{onClick:function(){return Object(le.S)()}}),qF,Object(L.withProps)((function(e){var t=e.widgets;return{shouldExpand:0===(void 0===t?[]:t).length}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=void 0===t?function(){}:t,r=e.shouldExpand,o=void 0!==r&&r;return c.a.createElement(sz,{tooltipId:o?"widgets.tray.expandAll":"widgets.tray.collapseAll",bsStyle:o?"primary":"success active",bsSize:"xsmall",onClick:n},c.a.createElement(v.Glyphicon,{glyph:"list"}))})),cz=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&&nz(e,t)}(i,e);var t,n,r,o=rz(i);function i(){return ez(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this;return this.props.enabled?c.a.createElement("div",{className:"widgets-tray",style:{marginBottom:32,marginRight:80,bottom:0,right:0,position:"absolute"}},c.a.createElement(Bo.a,{columns:[c.a.createElement(lz,{key:"collapse-tray",toolsOptions:this.props.toolsOptions,expanded:this.props.expanded,onClick:function(){return e.props.setExpanded(!e.props.expanded)}}),c.a.createElement(uz,{key:"collapse-all",toolsOptions:this.props.toolsOptions})].concat($F(this.props.items.map((function(e){return e.tool}))||[]))},this.props.expanded?c.a.createElement(ZF,{toolsOptions:this.props.toolsOptions}):null)):null}}])&&tz(t.prototype,n),r&&tz(t,r),i}(c.a.Component);az(cz,"propTypes",{enabled:p.a.bool,toolsOptions:p.a.object,items:p.a.array,expanded:p.a.bool,setExpanded:p.a.func}),az(cz,"defaultProps",{enabled:!0,items:[],expanded:!1,setExpanded:function(){}});var dz=Object(L.compose)(Object(L.withState)("expanded","setExpanded",!1),Object(f.connect)(Object(R.a)(BF,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{toggleTray:le.W}),qF,Object(L.withProps)((function(e){var t=e.widgets,n=void 0===t?[]:t;return{hasCollapsedWidgets:n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collapsed;return t})).length>0,hasTrayWidgets:n.length>0}})),Object(L.lifecycle)({componentDidMount:function(){this.props.toggleTray&&this.props.toggleTray(!0)},componentWillUnmount:function(){this.props.toggleTray&&this.props.toggleTray(!1)}}),Object(L.mapPropsStream)((function(e){return e.merge(e.distinctUntilKeyChanged("hasCollapsedWidgets").do((function(e){var t=e.setExpanded;return(void 0===t?function(){}:t)(e.hasCollapsedWidgets)})).ignoreElements())})),Object(L.withProps)((function(e){var t=e.enabled,n=e.hasTrayWidgets;return{enabled:t&&n}})))(cz),pz=n("./MapStore2/web/client/actions/timeline.js"),fz=n("./MapStore2/web/client/actions/config.js"),hz=n("./MapStore2/web/client/selectors/timeline.js");function mz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gz(e){for(var t=1;t0},vz=function(e){return function(t){return t.take(1).switchMap((function(){return qt.a.Observable.of(Object(G.h)(gz(gz({},e),{},{autoDismiss:8,position:"tr",uid:"timeline-collapsed"})))})).merge(t)}},wz={collapseTimelineOnWidgetsEvents:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return qt.a.Observable.merge(e.ofType(le.t,le.u,fz.d,le.z,le.m).filter((function(){return bz(r())&&Object(hz.f)(r())}))).switchMap((function(){return qt.a.Observable.of(Object(pz.p)(!0))})).let(vz({title:"widgets.tray.notifications.collapsed.timelineTitle",message:"widgets.tray.notifications.collapsed.message"}))},collapseWidgetsOnTimelineEvents:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return qt.a.Observable.merge(e.ofType(pz.h).filter((function(e){return!e.collapsed})),e.ofType(x.f).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.newProperties,n=void 0===t?{}:t;return n.dimensions}))).filter((function(){return bz(r())&&Object(hz.b)(r())&&Object(hz.f)(r())})).switchMap((function(){return qt.a.Observable.of(Object(le.S)())})).let(vz({title:"widgets.tray.notifications.collapsed.widgetsTitle",message:"widgets.tray.notifications.collapsed.message"}))},expandTimelineIfCollapsedOnTrayUnmount:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(le.e,le.z,fz.d).filter((function(){return!Object(hz.f)(r())&&Object(hz.b)(r())})).filter((function(){return!bz(r())})).switchMap((function(){return qt.a.Observable.of(Object(pz.p)(!1))}))}},xz={WidgetsTrayPlugin:IP(dz),epics:wz},_z=n("./MapStore2/web/client/plugins/Notifications.jsx"),Oz=n("./node_modules/redux/es/index.js"),Sz=n("./node_modules/react-dock/lib/index.js"),jz=n.n(Sz),Ez=n("./node_modules/@turf/bbox/index.js"),Cz=n.n(Ez),Tz=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),kz=n("./MapStore2/web/client/utils/FeatureGridUtils.js"),Az=n("./MapStore2/web/client/utils/ogc/WFST/RequestBuilder.js"),Pz=n.n(Az),Mz=n("./MapStore2/web/client/actions/mapInfo.js"),Iz=n("./MapStore2/web/client/actions/box.js"),Dz=n("./MapStore2/web/client/actions/highlight.js"),Nz=n("./MapStore2/web/client/selectors/featuregrid.js"),Rz=n("./MapStore2/web/client/selectors/queryform.js");function Lz(e){return function(e){if(Array.isArray(e))return Fz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fz(e,t)}(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 Fz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.page,r=t.size,o=Object(Nz.v)(e),i=void 0!==r?r:o.size;return{startIndex:void 0!==n?n*i:o.page*i,maxFeatures:i}},Gz=function(e,t){return Bz(Bz({},e),{},{pagination:t})},Hz=function(e,t,n){var r=n.insert,o=n.update,i=n.propertyChange,a=n.getPropertyName;return(0,n.transaction)(t.map((function(e){return r(e)})),Object.keys(e).map((function(t){return Object.keys(e[t]).map((function(n){return o([i(a(n),e[t][n]),Object(Tz.fidFilter)("ogc",t)])}))})))},Vz=function(e,t){return qt.a.Observable.defer((function(){return Tt.a.post(e,t,{headers:{"Content-Type":"application/xml"}})})).let(MM.b)},Wz=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featuregrid;return Object(x.H)(t.selectedLayer,{filterObj:void 0})},Yz=function(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.update,o=void 0===r?{}:r,i=n.append,a=Object(Nz.C)(e.getState()),s=a.id,l=Bz({},Object(se.get)(e.getState(),'featuregrid.advancedFilters["'.concat(s,'"]')));if(l){var u=Object(Nz.e)(e.getState())||{},c=Object(se.reduce)(u,(function(e,t,n){return Object(kz.m)(Bz({attribute:n},t),e)}),{}),d="AND";c.spatialField&&(l.spatialField=void 0,d=c.spatialFieldOperator);var p=Object(FC.composeAttributeFilters)([l,c],"AND",d),f=Bz(Bz({},l),p);return Object(vM.B)(f,o.type)}var h=o;return i&&null!=o&&o.attribute&&(h=Object(Nz.e)(e.getState())[null==o?void 0:o.attribute]),Object(vM.B)(Object(kz.m)(h,Object(wM.m)(e.getState())),null===(t=h)||void 0===t?void 0:t.type)}},Kz=function(e,t){return e.ofType(x.c).switchMap((function(n){var r,o=n.layer,i=Object(se.get)(t.getState(),"query.typeName");return(r=qt.a.Observable).of.apply(r,Lz(i!==o.name?[Object(yM.gb)()]:[]).concat([Object(w.g)("drawer","enabled",!1),Object(mM.Db)(o.id),Object(mM.yb)()])).merge(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.url,o=n.name,i=n.id,a=Object(se.get)(t.getState(),'featuregrid.advancedFilters["'.concat(i,'"]')),s=function(){return Object(vM.q)(r,a||{featureTypeName:o,filterType:"OGC",ogcVersion:"1.1.0"})};return Object(wM.f)(t.getState(),o)?qt.a.Observable.of(s(),Object(vM.u)(r,o)):qt.a.Observable.of(Object(vM.u)(r,o)).merge(e.ofType(vM.e).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName;return t===o})).map(s))}(e,t,o))}))},Xz=function(e){return e.ofType(vM.h).switchMap((function(e){return qt.a.Observable.of(Object(mM.Db)(e.id))}))},Zz=function(e,t){return e.ofType(vM.j).switchMap((function(){return qt.a.Observable.of(Object(mM.bb)(0)).concat(Object(Nz.s)(t.getState())===mM.x.VIEW?qt.a.Observable.of(Object(mM.Sb)()):qt.a.Observable.empty())}))},Qz=function(e,t){return e.ofType(mM.N).switchMap((function(n){var r=n.sortBy,o=n.sortOrder;return qt.a.Observable.of(Object(vM.w)(Object(wM.n)(t.getState()),Gz(Bz(Bz({},Object(wM.m)(t.getState())),{},{sortOptions:{sortBy:r,sortOrder:o}}),Uz(t.getState())),Object(Nz.w)(t.getState()))).merge(e.ofType(vM.l).map((function(e){return Object(mM.qb)(Object(se.get)(e,"result.features",[]),[Object(se.get)(e,"filterObj.pagination.startIndex")])})).takeUntil(e.ofType(vM.k)).take(1))}))},$z=function(e,t){return e.ofType(mM.z).switchMap((function(){var n,r=null===(n=Object(Nz.v)(t.getState()))||void 0===n?void 0:n.size;return e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled&&!n.value})).switchMap((function(){var n=!1;return e.ofType(mM.Y).filter((function(e){var t=e.update;return"geometry"===(void 0===t?{}:t).type})).switchMap((function(e,r){return 0===r?(n=!0,qt.a.Observable.from([Object(mM.Eb)(1e5),Object(mM.Cb)([]),Yz(t)(e)])):qt.a.Observable.of(Yz(t)(e))})).takeUntil(qt.a.Observable.merge(e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(mM.f,bM.b))).merge(e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})).take(1).switchMap((function(e){return n?qt.a.Observable.of(Object(mM.Eb)(r),Yz(t)(e)):qt.a.Observable.of(Yz(t)(e))})).takeUntil(e.ofType(mM.f,bM.b))).merge(e.ofType(mM.f,bM.b).take(1).switchMap((function(){var e,o=Object(mM.Tb)({attribute:null===(e=Object(RM.findGeometryProperty)(Object(wM.b)(t.getState())))||void 0===e?void 0:e.name,enabled:!1,type:"geometry"});return n?qt.a.Observable.of(Object(mM.Eb)(r),o,Yz(t)(o)):qt.a.Observable.of(o,Yz(t)(o))})))}))}))},Jz=function(e,t){return e.ofType(vM.j).switchMap((function(){return e.ofType(mM.Y).filter((function(e){var t=e.update;return"geometry"!==(void 0===t?{}:t).type})).map(Yz(t))}))},eB=function(e,t){return e.ofType(mM.U).filter((function(){return Object(Nz.s)(t.getState())===mM.x.EDIT})).switchMap((function(){return(Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).value?qt.a.Observable.empty():qt.a.Observable.of(Object(mM.Tb)({attribute:Object(RM.findGeometryProperty)(Object(wM.b)(t.getState())).name,enabled:!0,type:"geometry"}))}))},tB=function(e){return e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})).switchMap((function(){return qt.a.Observable.of(Object(mM.Gb)())}))},nB=function(e,t){return e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return e.ofType(U.i).switchMap((function(e){var n=e.point,r=n.latlng,o=n.pixel,i=n.modifiers,a=i.ctrl,s=i.metaKey,l=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},u=Object(K.n)(t.getState()),c=Wo.default.reproject([r.lng,r.lat],"EPSG:4326",u),d=te.default.getHook(te.default.GET_COORDINATES_FROM_PIXEL_HOOK),p=Wo.default.calculateCircleRadiusFromPixel(d,o,c,4);return l.deactivated?qt.a.Observable.empty():qt.a.Observable.of(Object(mM.Gb)({multiselect:a||s}),Object(mM.Tb)(Bz(Bz({},l),{},{value:{attribute:l.attribute||Object(se.get)(Object(Rz.k)(t.getState()),"attribute"),geometry:{center:[c.x,c.y],coordinates:Wo.default.calculateCircleCoordinates(c,p,12),extent:[c.x-p,c.y-p,c.x+p,c.y+p],projection:u,radius:p,type:"Polygon"},method:"Circle",operation:"INTERSECTS"}}),a||s))})).takeUntil(qt.a.Observable.merge(e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(bM.b)))}))},rB=function(e,t){return e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return e.ofType(Iz.a).switchMap((function(e){var n=e.boxEndInfo,r=n.boxExtent,o=n.modifiers,i=o.ctrl,a=o.metaKey,s=Wo.default.getPolygonFromExtent(r),l=Object(K.n)(t.getState()),u=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return u.deactivated?qt.a.Observable.empty():qt.a.Observable.of(Object(mM.Gb)({multiselect:i||a}),Object(mM.Tb)(Bz(Bz({},u),{},{value:{geometry:Bz(Bz({},s.geometry),{},{projection:l}),attribute:u.attribute||Object(se.get)(Object(Rz.k)(t.getState()),"attribute"),method:"Rectangle",operation:"INTERSECTS"}}),i||a))})).takeUntil(qt.a.Observable.merge(e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled}))))}))},oB=function(e){return e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return qt.a.Observable.of(Object(Iz.d)("start"))}))},iB=function(e){return qt.a.Observable.merge(e.ofType(mM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(mM.f)).switchMap((function(){return qt.a.Observable.of(Object(Iz.d)("end"))}))},aB=function(e,t){return e.ofType(vM.l).filter((function(e){return"geometry"===e.reason})).switchMap((function(e){var n=e.result,r=Object(se.get)(n,"features"),o=Object(Nz.t)(t.getState()),i=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}));return qt.a.Observable.of(Object(mM.Cb)(r.length>0&&i&&i.value?Lz(r):[],o))}))},sB=function(e){return e.ofType(mM.a).flatMap((function(e){var t=e.activated;return qt.a.Observable.of(Object(mM.pb)(t),Object(mM.kb)(t))}))},lB=function(e,t){return e.ofType(mM.O).flatMap((function(){var e=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Nz.i)(t.getState()),r=Object(Nz.k)(t.getState());return qt.a.Observable.of(Object(mM.Tb)(Bz(Bz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Rz.k)(t.getState()),"attribute"),deactivated:!(!n&&!r)||!e.deactivated})))}))},uB=function(e,t){return qt.a.Observable.merge(e.ofType(mM.h,gM.d,mM.k,mM.q),e.ofType(mM.j).filter((function(e){return!!e.deactivated}))).flatMap((function(){var e=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return e.deactivated?qt.a.Observable.empty():qt.a.Observable.of(Object(mM.Tb)(Bz(Bz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Rz.k)(t.getState()),"attribute"),deactivated:!0})))}))},cB=function(e,t){return qt.a.Observable.merge(e.ofType(mM.C,mM.c),e.ofType(mM.j).filter((function(e){return!e.deactivated}))).flatMap((function(){var e=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Nz.i)(t.getState()),r=Object(Nz.k)(t.getState());return!e.deactivated||n||r?qt.a.Observable.empty():qt.a.Observable.of(Object(mM.Tb)(Bz(Bz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Rz.k)(t.getState()),"attribute"),deactivated:!1})))}))},dB=function(e,t){return e.ofType(mM.b).merge(e.ofType(vM.p).debounceTime(500).map((function(e){return Bz(Bz({},e),{},{page:0})}))).switchMap((function(n){return function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.page,r=t.size,o=t.reason,i=e.getState();return qt.a.Observable.of(Object(vM.w)(Object(wM.n)(i),Gz(Bz({},Object(wM.m)(i)),Uz(i,{page:n,size:r})),Object(Nz.w)(i),o))}}(t)(n).merge(e.ofType(vM.l).map((function(e){var n=Object(se.get)(e,"result.features",[]),r=Object(Nz.t)(t.getState()),o=Object(se.find)(Object(Nz.e)(t.getState()),(function(e){return"geometry"===e.type}));return r&&o.enabled&&(n=Object(Nz.z)(t.getState())),Object(mM.qb)(n,[Object(se.get)(e,"filterObj.pagination.startIndex")])})).take(1).takeUntil(e.ofType(vM.k)))}))},pB=function(e,t){return e.ofType(mM.C).switchMap((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.page,o=n.size;return qt.a.Observable.of(Object(vM.w)(Object(wM.n)(t.getState()),Gz(Bz({},Object(wM.m)(t.getState())),Uz(t.getState(),{page:r,size:o})),Object(Nz.w)(t.getState())),Object(x.U)(Object(Nz.A)(t.getState()))).merge(e.ofType(vM.l).map((function(e){return qt.a.Observable.of(Object(mM.db)(),Object(mM.qb)(Object(se.get)(e,"result.features",[]),[Object(se.get)(e,"filterObj.pagination.startIndex")]))})).mergeAll().takeUntil(e.ofType(vM.k)).take(2))}))},fB=function(e){return e.ofType(mM.C,mM.f).switchMap((function(){return qt.a.Observable.of(Object(mM.Cb)([]))}))},hB=function(e,t){return e.ofType(mM.A).switchMap((function(){return qt.a.Observable.of(Object(mM.sb)()).concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return Vz(r,Hz(e,t,Pz()(n)))}(Object(Nz.a)(t.getState()),Object(Nz.u)(t.getState()),Object(wM.b)(t.getState()),Object(wM.n)(t.getState())).map((function(){return Object(mM.Bb)()})).catch((function(e){return qt.a.Observable.of(Object(mM.Ab)(),Object(G.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError",autoDismiss:5}))})))}))},mB=function(e,t){return e.ofType(mM.m).switchMap((function(){return qt.a.Observable.of(Object(mM.sb)()).concat((e=Object(Nz.z)(t.getState()),n=Object(wM.b)(t.getState()),r=Object(wM.n)(t.getState()),Vz(r,function(e,t){var n=t.transaction,r=t.deleteFeature;return n(e.map(r))}(e,Pz()(n)))).map((function(){return Object(mM.Bb)()})).catch((function(e){return qt.a.Observable.of(Object(mM.Ab)(),Object(G.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError"}))})).concat(qt.a.Observable.of(Object(mM.Rb)("deleteConfirm"),Object(mM.eb)())));var e,n,r}))},gB=function(e,t){return e.ofType(mM.P).switchMap((function(){var e=t.getState(),n=Object(wM.b)(e),r=Object(kz.f)(),o=Object(RM.findGeometryProperty)(n).localType,i={featureProjection:r,stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},a=oe()({},Object(Nz.x)(e),{type:"Feature"}),s=Object(Nz.a)(e);return s[a.id]&&s[a.id]&&s[a.id].geometry&&(a.geometry=s[a.id].geometry),qt.a.Observable.of(Object(gM.f)("drawOrEdit",o,"featureGrid",[a],i))}))},yB=function(e,t){return e.ofType(mM.O).switchMap((function(){var e=t.getState(),n=Object(wM.b)(e),r=Object(kz.f)(),o=Object(RM.findGeometryProperty)(n).localType,i=oe()({},Object(Nz.x)(e),{type:"Feature"}),a=Object(Nz.a)(e);a[i.id]&&(a[i.id].geometry||null===a[i.id].geometry)&&(i.geometry=a[i.id].geometry),i._new&&(i.geometry=Object(se.head)(Object(Nz.u)(e)).geometry);var s={featureProjection:r,stopAfterDrawing:!0,editEnabled:!Object(Nz.m)(e),drawEnabled:Object(Nz.m)(e)};return qt.a.Observable.of(Object(gM.f)("drawOrEdit",o,"featureGrid",[i],s))}))},bB=function(e,t){return e.ofType(mM.z).switchMap((function(){return e.ofType(mM.U).filter((function(){return Object(Nz.s)(t.getState())===mM.x.EDIT})).take(1).switchMap((function(){return e.ofType(bM.b,mM.f).take(1).switchMap((function(){return qt.a.Observable.of(Object(gM.h)())}))}))}))},vB=function(e,t){return e.ofType(mM.z).switchMap((function(){var e=[Object(w.g)("metadataexplorer","enabled",!1),Object(w.g)("annotations","enabled",!1),Object(w.g)("details","enabled",!1)];return Object(Z.h)(t.getState())&&e.push(Object(w.g)("measure","enabled",!1)),qt.a.Observable.from(e)}))},wB=function(e,t){return e.ofType(gM.d).filter((function(e){return"featureGrid"===e.owner})).switchMap((function(e){var n=t.getState(),r={featureProjection:Object(kz.f)(),stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},o=e.features.map((function(e,t){return oe()({},e,{id:Object(Nz.z)(n)[t].id,_new:Object(Nz.z)(n)[t]._new,type:"Feature"})})),i=oe()({},Object(se.head)(e.features),{id:Object(Nz.x)(n).id,_new:Object(Nz.x)(n)._new,type:"Feature"}),a="enterEditMode"===e.enableEdit?qt.a.Observable.of(Object(gM.f)("drawOrEdit",i.geometry.type,"featureGrid",o,r)):qt.a.Observable.empty();return qt.a.Observable.of(Object(mM.tb)(o)).concat(a)}))},xB=function(e,t){return e.ofType(mM.k).switchMap((function(){var e=t.getState();return qt.a.Observable.from([Object(mM.nb)(Object(Nz.z)(e)),Object(gM.h)()])}))},_B=function(e,t){return e.ofType(mM.E,mM.n,mM.c,mM.U).filter((function(){return Object(Nz.s)(t.getState())===mM.x.EDIT&&Object(Nz.l)(t.getState())})).switchMap((function(e){return function(e,t){var n=Object(kz.f)(),r=Object(RM.findGeometryProperty)(Object(wM.b)(e)).localType,o={featureProjection:n,stopAfterDrawing:te.default.isSimpleGeomType(r),editEnabled:!0,drawEnabled:!1},i=Object(Nz.z)(e).map((function(n){var r=oe()({},n,{type:"Feature"});if(!Object(se.isEmpty)(r)){var o=Object(Nz.a)(e);if(o[r.id]&&(o[r.id].geometry||null===o[r.id].geometry)&&(r.geometry=o[r.id].geometry),r._new&&!r.geometry){var i=Object(se.find)(Object(Nz.u)(e),{id:r.id});i&&i.geometry&&(r.geometry=i.geometry)}t&&(r.geometry=Object(wM.e)(e,r.id)?Object(wM.e)(e,r.id).geometry:null)}return r})).filter((function(e){return null!==e.geometry||"empty_row"!==e.id}));return i.length>0?qt.a.Observable.from([Object(gM.f)("drawOrEdit",r,"featureGrid",i,o)]):qt.a.Observable.from([Object(gM.f)("clean","","featureGrid",[],{})])}(t.getState(),e.type===mM.c)}))},OB=function(e){return e.ofType(mM.h).switchMap((function(){return qt.a.Observable.of(Object(gM.h)())}))},SB=function(e,t){return e.ofType(mM.U).switchMap((function(e){return e.mode===mM.x.VIEW?qt.a.Observable.of(Object(gM.h)(),Object(Dz.d)("featuregrid.select")):e.mode!==mM.x.EDIT||Object(Nz.l)(t.getState())?qt.a.Observable.of(Object(Dz.d)()):qt.a.Observable.of(Object(gM.h)(),Object(Dz.d)("featuregrid.select"),Object(G.k)({title:"featuregrid.notSupportedGeometryTitle",message:"featuregrid.notSupportedGeometry",uid:"notSupportedGeometryWarning",autoDismiss:5}))}))},jB=function(e){return e.ofType(mM.z).switchMap((function(){return e.ofType(bM.b).take(1).switchMap((function(){return qt.a.Observable.of(Object(mM.Sb)(),Object(mM.fb)())})).takeUntil(e.ofType(mM.f))}))},EB=function(e,t){return e.ofType(bM.b).switchMap((function(){return Object(Z.g)(t.getState())?qt.a.Observable.of(Object(w.g)("queryPanel","enabled",!1)):qt.a.Observable.empty()}))},CB=function(e,t){return e.ofType(mM.z).switchMap((function(){return e.ofType(w.d).filter((function(e){return e.control&&"drawer"===e.control&&Object(Nz.o)(t.getState())})).switchMap((function(){return qt.a.Observable.of(Object(mM.fb)(),Object(mM.Cb)([]))})).takeUntil(e.ofType(bM.b))}))},TB=function(e,t){return e.ofType(mM.g).switchMap((function(){var e=t.getState();return Object(Nz.i)(e)||Object(Nz.k)(e)?qt.a.Observable.of(Object(mM.Rb)("featureCloseConfirm",!0)):qt.a.Observable.of(Object(mM.fb)())}))},kB=function(e){return e.ofType(mM.d).switchMap((function(){return qt.a.Observable.of(Object(mM.db)(),Object(mM.Rb)("clearConfirm",!1))}))},AB=function(e){return e.ofType(mM.r).switchMap((function(){return qt.a.Observable.of(Object(w.g)("drawer","enabled",!1),Object(mM.Rb)("featureCloseConfirm",!1))}))},PB=function(e,t){return e.ofType(mM.z).exhaustMap((function(){return e.ofType(mM.f).delay(50).filter((function(){return Object(wM.h)(t.getState())})).switchMap((function(){return qt.a.Observable.of(Wz(t.getState()))})).takeUntil(e.ofType(bM.b,Mz.j,mM.y))}))},MB=function(e){return e.ofType(mM.z).switchMap((function(){return qt.a.Observable.race(e.ofType(Mz.j).take(1),e.ofType(mM.f).take(1)).exhaustMap((function(t){return t.type===mM.f?qt.a.Observable.empty():e.ofType(Mz.l).switchMap((function(){return qt.a.Observable.of(Object(mM.yb)())}))})).takeUntil(e.ofType(bM.b,w.d).filter((function(e){return e.type===bM.b||e.control&&"drawer"===e.control})).merge(e.ofType(mM.f).withLatestFrom(e.ofType(Mz.j,Mz.l).scan((function(e,t){switch(t.type){case Mz.j:return!1;case Mz.l:return!0;default:return!1}}),!0).startWith(!0),(function(e,t){return t})).filter((function(e){return e}))))}))},IB=function(e,t){return e.ofType(mM.y).switchMap((function(){var n=Object(Nz.z)(t.getState());return qt.a.Observable.of(Object(mM.Cb)([]),Object(yM.ab)(Object(se.get)(t.getState(),'featuregrid.advancedFilters["'.concat(Object(Nz.A)(t.getState()),'"]'))),Object(mM.fb)(),Object(w.g)("queryPanel","enabled",!0)).merge(qt.a.Observable.race(e.ofType(yM.o).mergeMap((function(e){return qt.a.Observable.of(Object(vM.q)(e.searchUrl,e.filterObj),Object(mM.Ob)(oe()({},Object(Rz.e)(t.getState()),e.filterObj)),Object(w.g)("queryPanel","enabled",!1),Object(mM.yb)())})),e.ofType(w.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).mergeMap((function(){var e="clean"!==(t.getState().draw||{}).drawStatus&&0===n.length?[Object(gM.f)("clean","","featureGrid",[],{})]:[];return qt.a.Observable.from(e.concat(Object(mM.Cb)(n,!0),Object(mM.yb)()))}))).takeUntil(e.ofType(mM.z,bM.b)))}))},DB=function(e,t){return e.ofType(mM.Z).filter((function(){return!Object(se.get)(t.getState(),"featuregird.virtualScroll",!1)})).switchMap((function(){return qt.a.Observable.of(Object(U.I)(Cz()(Object(wM.c)(t.getState())),"EPSG:4326"))}))},NB=function(e){return e.ofType(mM.U).filter((function(e){return e.mode===mM.x.EDIT})).map((function(){return Object(w.e)(["query"])}))},RB=function(e){return e.ofType(mM.z).switchMap((function(){return qt.a.Observable.of(Object(Mz.F)())}))},LB=function(e,t){return e.ofType(vM.o).filter((function(){return Object(wM.h)(t.getState())})).mapTo(Object(mM.Nb)())},FB=function(e,t){return e.ofType(vM.o).filter((function(){return!Object(wM.h)(t.getState())})).switchMap((function(){return qt.a.Observable.from([Wz(t.getState()),{type:mM.R}])}))},zB=function(e,t){return e.ofType(mM.f).filter((function(){return Object(wM.h)(t.getState())})).switchMap((function(){return qt.a.Observable.of(Object(vM.A)())}))},BB=function(e,t){return e.ofType(vM.j,vM.p).filter((function(e){var n=t.getState().featuregrid.disableQuickFilterSync;return e.type===vM.j||!n})).switchMap((function(){var n=t.getState(),r=n.query,o=(n.featuregrid||{}).selectedLayer,i=(r||{}).filterObj;return qt.a.Observable.merge(qt.a.Observable.of(Object(wM.h)(t.getState())).filter((function(e){return e})),e.ofType(mM.Q)).mergeMap((function(){return qt.a.Observable.of(function(e,t){return Object(x.H)(e,{filterObj:t})}(o,i))}))}))},qB=function(e,t){var n=t.getState;return e.ofType(mM.w).filter((function(){return!Object(wM.d)(n())})).switchMap((function(t){var r=n(),o=t.pages,i=o.startPage,a=o.endPage,s=r.featuregrid,l=s.pages,u=s.pagination,c=Object(se.get)(u,"size"),d=Object(kz.h)(i,a,l,c),p=d[1]-d[0]+1;return qt.a.Observable.of(Object(vM.w)(Object(wM.n)(r),Gz(Bz({},Object(wM.m)(r)),{startIndex:d[0]*c,maxFeatures:p*c}),Object(Nz.w)(r))).filter((function(){return d.length>0})).merge(e.ofType(vM.l).filter((function(){return d.length>0})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result,r=void 0===t?{}:t,o=e.filterObj,s=n().featuregrid,u=s.features,d=s.maxStoredPages,p=Object(se.get)(o,"pagination.startIndex"),f=Object(kz.r)(r,{endPage:a,startPage:i},{pages:l,features:u||[]},{size:c,startIndex:p,maxStoredPages:d}),h=f.pages,m=f.features;return Object(mM.qb)(m,h)})).take(1).takeUntil(e.ofType(vM.k))).merge(e.ofType(vM.c).filter((function(){return d.length>0})).filter((function(e){return!e.isLoading})).withLatestFrom(e.ofType(mM.w)).map((function(e){return e[1]})).take(1).takeUntil(e.ofType(vM.k)))}))},UB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(x.e).filter((function(e){var t=e.layer,n=void 0===t?[]:t,o=e.params,i=void 0===o?{}:o;return Object(se.includes)(Object(se.castArray)(n),Object(Nz.A)(r()))&&Object(se.includes)(Object.keys(i),"time")&&Object(Nz.G)(r())})).merge(e.ofType(mM.K)).filter((function(){return Object(Nz.o)(r())})).withLatestFrom(e.ofType(vM.i),(function(e,t){return t})).switchMap((function(e){return qt.a.Observable.of(Object(vM.q)(e.searchUrl,e.filterObj))}))},GB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(w.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control;return"drawer"===t&&n().browser&&n().browser.mobile&&Object(Z.c)(n())})).switchMap((function(){return qt.a.Observable.of(Object(Mz.L)(),Object(mM.yb)())}))},HB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(Mz.j).filter((function(){return n().browser&&n().browser.mobile&&Object(Z.c)(n())})).mapTo(Object(w.h)("drawer","enabled"))},VB=n("./node_modules/uuid/index.js"),WB=n.n(VB);function YB(e){return function(e){if(Array.isArray(e))return KB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return KB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KB(e,t)}(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 KB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return JB(e,t)})).length>0},tq=function(e,t,n,r){return e.map((function(e){return eq(e,t)?function(e,t,n){return ZB(ZB({},e),{},n?{properties:ZB(ZB({},e.properties),t),geometry:n.geometry}:{properties:ZB(ZB({},e.properties),t)})}(e,n,r):e}))};var nq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case mM.v:return oe()({},e,{showPopoverSync:!localStorage||null===localStorage.getItem("showPopoverSync")||"true"===localStorage.getItem("showPopoverSync"),editingAllowedRoles:t.options.editingAllowedRoles||e.editingAllowedRoles||["ADMIN"],virtualScroll:!!t.options.virtualScroll,maxStoredPages:t.options.maxStoredPages||5});case mM.w:case mM.b:return oe()({},e,{pagination:{page:void 0!==t.page?t.page:e.pagination.page,size:void 0!==t.size?t.size:e.pagination.size}});case mM.H:var n;return ZB(ZB({},e),{},{pagination:ZB(ZB({},null!==(n=e.pagination)&&void 0!==n?n:{}),{},{size:t.size})});case mM.E:var r=t.features.filter((function(e){return"empty_row"!==e.id}));return e.multiselect&&t.append?oe()({},e,{select:t.append?Object(se.uniqBy)([].concat(YB(e.select),YB(r)),"id"):r}):r&&e.select&&e.select[0]&&r[0]&&1===e.select.length&&JB(r[0],e.select[0])?e:oe()({},e,{select:r||[]});case mM.T:var o=e.select.filter((function(e){return!eq(e,t.features)})),i=t.features.filter((function(t){return!eq(t,e.select)})),a=o.concat(i||[]);return oe()({},e,{select:a});case mM.n:return oe()({},e,{select:e.select.filter((function(e){return!eq(e,t.features)}))});case mM.J:return oe()({},e,{multiselect:t.multiselect});case mM.X:return oe()({},e,{customEditorsOptions:t.payload});case mM.L:return oe()({},e,t.options||{});case mM.e:return oe()({},e,{select:[],changes:[]});case mM.F:return oe()({},e,{features:t.features});case mM.p:return oe()({},e,{dockSize:t.dockSize});case mM.G:return oe()({},e,{selectedLayer:t.id});case mM.W:return oe()({},e,{tools:ZB(ZB({},e.tools),{},QB({},t.tool,void 0===t.value?!(e.tools&&e.tools[t.tool]):t.value))});case mM.i:return oe()({},e,{attributes:ZB(ZB({},e.attributes),{},QB({},t.name,ZB(ZB({},e.attributes&&e.attributes[t.name]||{}),{},QB({},t.key,t.value||e.attributes&&e.attributes[t.name]&&!e.attributes[t.name][t.key]))))});case mM.U:return oe()({},e,{showPopoverSync:localStorage&&null!==localStorage.getItem("showPopoverSync")?"true"===localStorage.getItem("showPopoverSync"):t.mode!==mM.x.EDIT,tools:t.mode===mM.x.EDIT?{}:e.tools,mode:t.mode,multiselect:t.mode===mM.x.EDIT,drawing:!1});case mM.q:var s=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:s.length>0?tq(e.newFeatures,s,t.updated,null):e.newFeatures,changes:[].concat(YB(e&&e.changes||[]),YB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:t.updated}}))))});case mM.D:return oe()({},e,{saving:!0,loading:!0});case mM.C:return oe()({},e,{deleteConfirm:!1,saved:!0,saving:!1,drawing:!1,loading:!1});case mM.c:return oe()({},e,{saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case mM.h:var l=WB.a.v1();return oe()({},e,{newFeatures:t.features.map((function(e){return ZB(ZB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})})),select:t.features.map((function(e){return ZB(ZB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})}))});case mM.B:return oe()({},e,{deleteConfirm:!1,saving:!1,loading:!1,drawing:!1});case mM.s:var u=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:u.length>0?tq(e.newFeatures,u,null,{geometry:ZB({},Object(se.head)(u).geometry)}):e.newFeatures,changes:t.features.filter((function(e){return!e._new})).map((function(e,n){return{id:e.id,updated:{geometry:t.features[n].geometry}}})),drawing:!1});case mM.l:var c=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:c.length>0?tq(e.newFeatures,c,null,{geometry:null}):e.newFeatures,changes:[].concat(YB(e&&e.changes||[]),YB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:{geometry:null}}}))))});case vM.e:return oe()({},e,{localType:Object(se.get)(t,"featureType.original.featureTypes[0].properties[1].localType")});case mM.O:return oe()({},e,{drawing:!e.drawing});case mM.z:return oe()({},e,{open:!0});case mM.f:return oe()({},e,{open:!1,pagination:{page:0,size:e.pagination.size},mode:mM.x.VIEW,tools:{},saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case mM.o:return oe()({},e,{disableToolbar:t.disabled});case mM.I:return oe()({},e,{canEdit:t.permission.canEdit});case gM.a:return"clean"===t.status?oe()({},e,{drawing:!1}):e;case mM.Y:var d=t.update||{},p=d.attribute;if(p&&t.append){var f=e.filters[p].value,h=[];null!=f&&f.attribute&&(h=[f]),Object(se.isArray)(f)&&(h=f);var m=[].concat(YB(h),[t.update.value]);return oe()({},e,{filters:QB({},p,{attribute:p,enabled:!0,type:"geometry",operator:"OR",value:m})})}return p?oe()({},e,{filters:ZB(ZB({},e.filters),{},QB({},p,t.update))}):e;case vM.j:return oe()({},e,{filters:{}});case mM.M:var g=t.dockProps&&t.dockProps.maxDockSize,y=t.dockProps&&t.dockProps.minDockSize,b=g&&y&&y<=t.size&&g>=t.size&&t.size||g&&gt.size&&y||t.size;return oe()({},e,{dockSize:b});case mM.S:return oe()({},e,{advancedFilters:oe()({},e.advancedFilters,QB({},e.selectedLayer,t.filterObj))});case mM.t:return oe()({},e,{features:t.features||[],pages:t.pages||[]});case mM.u:return oe()({},e,{showPopoverSync:!1});case mM.V:return oe()({},e,{showAgain:!e.showAgain});case mM.K:return oe()({},e,{timeSync:t.value});default:return e}},rq=n("./MapStore2/web/client/components/data/featuregrid/FeatureGrid.jsx"),oq=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),iq=n("./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx"),aq=n("./MapStore2/web/client/components/data/featuregrid/filterRenderers/index.js"),sq=n("./node_modules/react-spinkit/dist/index.js"),lq=n.n(sq),uq=(n("./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css"),n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"));function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hq=Object(L.compose)(Object(L.withProps)((function(e){var t=e.renderPopover,n=e.popoverOptions,r=fq(e,["renderPopover","popoverOptions"]);return dq(t?{renderPopover:t,popoverOptions:n}:{},r)})),Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.renderPopover,n=e.popoverOptions;return t&&!!n}),uq.a,Hn.a));function mq(){return(mq=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yq={width:0,padding:0,borderWidth:0},bq={},vq=function(e){return e?bq:yq},wq=hq(Object(u.forwardRef)((function(e,t){var n=e.disabled,r=e.id,o=e.visible,i=e.onClick,a=e.glyph,s=e.active,l=e.className,u=void 0===l?"square-button":l,d=gq(e,["disabled","id","visible","onClick","glyph","active","className"]);return c.a.createElement(De.a,mq({ref:t},d,{bsStyle:s?"success":"primary",disabled:n,id:"fg-".concat(r),style:vq(o),className:u,onClick:function(){return!n&&i()}}),c.a.createElement(v.Glyphicon,{glyph:a}))}))),xq=function(e,t){return e?"featuregrid.toolbar.stopDrawGeom":t?"featuregrid.toolbar.drawGeom":"featuregrid.toolbar.addGeom"},_q=function(e){var t=e.saving,n=e.saved;return t||n?"featuregrid.toolbar.saving":"featuregrid.toolbar.saveChanges"},Oq={onGridSort:function(e,t){return Object(mM.Kb)(e,t)},onAddFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(mM.Tb)(e)},onTemporaryChanges:function(e){return Object(mM.ab)(e)},onGridRowsUpdated:function(e,t){var n,r,o=e.fromRow,i=e.toRow,a=e.updated,s=(n=o,r=i,Array.from({length:r+1-n},(function(e,t){return t+n}))).map((function(e){return t(e)})).filter((function(e){return Object.keys(a||{}).filter((function(t){return e.properties[t]!==a[t]})).length>0}));return Object(mM.rb)(s,a)},onRowsToggled:function(e,t){return Object(mM.Cb)(e.map((function(e){return t(e.rowIdx)})),!1)},onRowsSelected:function(e,t){return Object(mM.Cb)(e.map((function(e){return t(e.rowIdx)})),!0)},onRowsDeselected:function(e,t){return Object(mM.ob)(e.map((function(e){return t(e.rowIdx)})))}},Sq=[{name:"",key:"geometry",width:35,frozen:!0,events:{onClick:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.crs;return e.geometry?Object(U.I)(Cz()(e),o||"EPSG:4326"):{type:"NONE"}}},formatter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return t?c.a.createElement(v.Glyphicon,{glyph:"zoom-to"}):c.a.createElement(Ce.a,{placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"fe-save-features"},c.a.createElement(b.default,{msgId:"featuregrid.missingGeometry"}))},c.a.createElement(v.Glyphicon,{glyph:"exclamation-mark"}))}}],jq={onPageChange:function(e,t){return Object(mM.bb)(e,t)},moreFeatures:mM.wb},Eq={createFeature:function(){return Object(mM.ib)([{}])},saveChanges:function(){return Object(mM.zb)()},clearFeatureEditing:function(){return Object(mM.Rb)("clearConfirm",!0)},deleteGeometry:function(){return Object(mM.mb)()},deleteFeatures:function(){return Object(mM.Rb)("deleteConfirm",!0)},download:function(){return Object(w.h)("layerdownload")},settings:function(){return Object(mM.Rb)("settings")},switchEditMode:function(){return Object(mM.Pb)()},startEditingFeature:function(){return Object(mM.Mb)()},startDrawingFeature:function(){return Object(mM.Lb)()},switchViewMode:function(){return Object(mM.Sb)()},onClose:function(){return Object(mM.gb)()},showQueryPanel:function(){return Object(mM.xb)()},zoomAll:function(){return Object(mM.Ub)()},sync:function(){return Object(vM.A)()},setTimeSync:mM.Hb,hideSyncPopover:function(){return Object(mM.ub)()},toggleShowAgain:function(){return Object(mM.Qb)()},chart:function(){return Object(le.F)()}},Cq=Oq,Tq=Sq,kq=jq,Aq=Eq,Pq=Object(f.connect)((function(e){return{attributes:Object(Nz.f)(e)}}),{onChange:function(e,t){return Object(mM.jb)(e,"hide",t)}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,o=void 0===r?"featuregrid.columns":r,i=e.onChange,a=void 0===i?function(){}:i,s=e.attributes,l=void 0===s?[]:s;return c.a.createElement("div",{className:"bg-body data-attribute-selector",style:n},c.a.createElement("h4",{className:"text-center"},c.a.createElement("strong",null,c.a.createElement(b.default,{msgId:o}))),c.a.createElement("div",null,l.map((function(e){return c.a.createElement(v.Checkbox,{key:e.attribute||e.name,checked:!e.hide,onChange:function(){return a(e.attribute,!e.hide)}},e.label||e.attribute)}))))}));function Mq(){return(Mq=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableToolbar,n=e.disableDownload,r=e.disableZoomAll,o=void 0!==r&&r,i=e.displayDownload,a=e.events,s=void 0===a?{}:a,l=e.hasChanges,u=e.hasGeometry,d=e.hasNewFeatures,p=e.hasSupportedGeometry,f=void 0===p||p,h=e.isColumnsOpen,m=e.isDrawing,g=void 0!==m&&m,y=e.isEditingAllowed,w=e.isFilterActive,x=void 0!==w&&w,_=e.isDownloadOpen,O=e.isSearchAllowed,S=e.isSimpleGeom,j=e.isSyncActive,E=void 0!==j&&j,C=e.saved,T=void 0!==C&&C,k=e.saving,A=void 0!==k&&k,P=e.selectedCount,M=e.showAdvancedFilterButton,I=void 0===M||M,D=e.showChartButton,N=void 0===D||D,R=e.showSyncOnMapButton,L=void 0===R||R,F=e.showTimeSyncButton,z=void 0!==F&&F,B=e.syncPopover,q=void 0===B?{showPopoverSync:!0,dockSize:"32.2%"}:B,U=e.mode,G=void 0===U?"VIEW":U,H=e.timeSync,V=void 0!==H&&H;return c.a.createElement(v.ButtonGroup,{id:"featuregrid-toolbar",className:"featuregrid-toolbar featuregrid-toolbar-margin"},c.a.createElement(wq,{id:"edit-mode",keyProp:"edit-mode",tooltipId:"featuregrid.toolbar.editMode",disabled:t,visible:"VIEW"===G&&y,onClick:s.switchEditMode,glyph:"pencil"}),c.a.createElement(wq,{id:"search",keyProp:"search",tooltipId:"featuregrid.toolbar.advancedFilter",active:x,disabled:t||!O,visible:"VIEW"===G&&I,onClick:s.showQueryPanel,glyph:"filter"}),c.a.createElement(wq,{id:"zoom-all",keyProp:"zoom-all",tooltipId:"featuregrid.toolbar.zoomAll",disabled:t||o,visible:"VIEW"===G,onClick:s.zoomAll,glyph:"zoom-to"}),c.a.createElement(wq,{id:"back-view",keyProp:"back-view",tooltipId:"featuregrid.toolbar.quitEditMode",disabled:t,visible:"EDIT"===G&&!l&&!d,onClick:s.switchViewMode,glyph:"arrow-left"}),c.a.createElement(wq,{id:"add-feature",keyProp:"add-feature",tooltipId:"featuregrid.toolbar.addNewFeatures",disabled:t,visible:"EDIT"===G&&!d&&!l&&f,onClick:s.createFeature,glyph:"row-add"}),c.a.createElement(wq,{id:"draw-feature",keyProp:"draw-feature",tooltipId:xq(g,S),disabled:t,visible:"EDIT"===G&&1===P&&(!u||u&&!S)&&f,onClick:s.startDrawingFeature,active:g,glyph:"pencil-add"}),c.a.createElement(wq,{id:"remove-features",keyProp:"remove-features",tooltipId:"featuregrid.toolbar.deleteSelectedFeatures",disabled:t,visible:"EDIT"===G&&P>0&&!l&&!d,onClick:s.deleteFeatures,glyph:"trash-square"}),c.a.createElement(wq,{id:"save-feature",keyProp:"save-feature",tooltipId:_q({saving:A,saved:T}),disabled:A||T||t,visible:"EDIT"===G&&l||d,active:T,onClick:s.saveChanges,glyph:"floppy-disk"}),c.a.createElement(wq,{id:"cancel-editing",keyProp:"cancel-editing",tooltipId:"featuregrid.toolbar.cancelChanges",disabled:t,visible:"EDIT"===G&&l||d,onClick:s.clearFeatureEditing,glyph:"remove-square"}),c.a.createElement(wq,{id:"delete-geometry",keyProp:"delete-geometry",tooltipId:"featuregrid.toolbar.deleteGeometry",disabled:t,visible:"EDIT"===G&&u&&1===P&&f,onClick:s.deleteGeometry,glyph:"polygon-trash"}),c.a.createElement(wq,{id:"download-grid",keyProp:"download-grid",tooltipId:"featuregrid.toolbar.downloadGridData",disabled:t||n,active:_,visible:i&&"VIEW"===G,onClick:s.download,glyph:"download"}),c.a.createElement(wq,{id:"grid-settings",keyProp:"grid-settings",tooltipId:"featuregrid.toolbar.hideShowColumns",disabled:t,active:h,visible:P<=1&&"VIEW"===G,onClick:s.settings,glyph:"features-grid-set"}),c.a.createElement(wq,{id:"grid-map-chart",keyProp:"grid-map-chart",tooltipId:"featuregrid.toolbar.createNewChart",disabled:t,visible:"VIEW"===G&&N,onClick:s.chart,glyph:"stats"}),c.a.createElement(wq,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:E,visible:L,onClick:s.sync,glyph:"map-filter",renderPopover:q.showPopoverSync,popoverOptions:!t&&{placement:"top",content:c.a.createElement("span",null,c.a.createElement("p",null,c.a.createElement(b.default,{msgId:"featuregrid.toolbar.synchPopoverText"})),c.a.createElement("p",null,c.a.createElement(v.Checkbox,{checked:q.showAgain,onClick:s.toggleShowAgain},c.a.createElement(b.default,{msgId:"featuregrid.toolbar.notShowAgain"})))),props:{id:"sync-popover",title:c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"featuregrid.toolbar.synchPopoverTitle"}),c.a.createElement("button",{onClick:function(){q.showAgain&&localStorage.setItem("showPopoverSync",!1),s.hideSyncPopover()},className:"close"},c.a.createElement(v.Glyphicon,{className:"pull-right",glyph:"1-close"}))),style:{bottom:q.dockSize}}}}),c.a.createElement(wq,{id:"timeSync-button",keyProp:"fg-timeSync-button",tooltipId:V?"featuregrid.toolbar.disableTimeSync":"featuregrid.toolbar.enableTimeSync",visible:z,active:V,onClick:function(){return s.setTimeSync&&s.setTimeSync(!V)},glyph:"time"}))})),Fq=Object(f.connect)(Object(R.a)(Nz.h,(function(e){return{title:e}})),{onClose:Aq.onClose})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onDownloadToggle:function(){}};return c.a.createElement(v.Grid,{className:"bg-body data-grid-top-toolbar",fluid:!0,style:{width:"100%"}},c.a.createElement(v.Row,{className:"flex-center"},c.a.createElement(v.Col,{xs:4},e.children),c.a.createElement(v.Col,{xs:4},c.a.createElement("div",{className:"text-center text-primary"},c.a.createElement("strong",null,e.title))),c.a.createElement(v.Col,{xs:4},c.a.createElement(De.a,{onClick:e.onClose,style:{float:"right"},className:"square-button no-border featuregrid-top-toolbar-margin"},c.a.createElement(v.Glyphicon,{glyph:"1-close"})))))})),zq=Object(f.connect)(Object(R.a)(Object(R.c)(wM.j),wM.d,(function(e){return e&&e.featuregrid&&!!e.featuregrid.virtualScroll}),Nz.y,(function(e,t,n,r){return Dq(Dq({},e),{},{selected:r,loading:t,virtualScroll:n})})),kq)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!1,onPageChange:function(){}},r=Object(kz.q)(n),o=r.page,i=void 0===o?0:o,a=r.size,s=void 0===a?0:a,l=r.resultSize,u=void 0===l?0:l,d=r.maxPages,p=void 0===d?0:d,f=r.total,h=void 0===f?0:f;return c.a.createElement(v.Grid,{className:"bg-body data-grid-bottom-toolbar",fluid:!0,style:{width:"100%"}},c.a.createElement(v.Row,{className:"featuregrid-toolbar-margin"},c.a.createElement(v.Col,{md:3},c.a.createElement("span",null,c.a.createElement(b.default,{msgId:n.virtualScroll?"featuregrid.resultInfoVirtual":"featuregrid.resultInfo",msgParams:{start:i*s+1,end:i*s+u,total:h,selected:null!==(e=n.selected)&&void 0!==e?e:0}}))," ",n.selected>0?c.a.createElement("span",null,c.a.createElement(b.default,{msgId:"featuregrid.selectedInfo",msgParams:{selected:null!==(t=n.selected)&&void 0!==t?t:0}})):null),n.virtualScroll?null:c.a.createElement(v.Col,{className:"text-center",md:6},c.a.createElement(De.a,{key:"first-page",onClick:function(){return n.onPageChange(0)},disabled:0===i,className:"no-border first-page"},c.a.createElement(v.Glyphicon,{glyph:"step-backward"})),c.a.createElement(De.a,{key:"prev-page",onClick:function(){return n.onPageChange(i-1)},disabled:0===i,className:"no-border prev-page"},c.a.createElement(v.Glyphicon,{glyph:"chevron-left"})),c.a.createElement("span",{key:"page-info"},c.a.createElement(b.default,{msgId:"featuregrid.pageInfo",msgParams:{page:i+1,totalPages:p+1}})),c.a.createElement(De.a,{key:"next-page",onClick:function(){return n.onPageChange(i+1)},className:"no-border next-page",disabled:i>=p},c.a.createElement(v.Glyphicon,{glyph:"chevron-right"})),c.a.createElement(De.a,{key:"last-page",onClick:function(){return n.onPageChange(p)},className:"no-border last-page",disabled:i>=p},c.a.createElement(v.Glyphicon,{glyph:"step-forward"})))," ",c.a.createElement(v.Col,{md:3},n.loading?c.a.createElement("span",{style:{float:"right"}},c.a.createElement(b.default,{msgId:"loading"}),c.a.createElement(lq.a,{spinnerName:"circle",style:{float:"right"},noFadeIn:!0})):null)))})),Bq=Object(f.connect)(Object(R.a)(Nz.y,(function(e){return{count:e}})),{onClose:function(){return Object(mM.Rb)("deleteConfirm",!1)},onConfirm:function(){return Object(mM.lb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.count,a=e.onConfirm,s=void 0===a?function(){}:a;return c.a.createElement(g.a,null,c.a.createElement(oq.a,{show:!0,onClose:n,onConfirm:s,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:c.a.createElement(b.default,{msgId:"featuregrid.deleteButton"}),confirmButtonDisabled:o},c.a.createElement(b.default,{msgId:"featuregrid.delete",msgParams:{count:i}})))})),qq=Object(f.connect)(Object(R.a)(Nz.y,(function(e){return{count:e}})),{onClose:function(){return Object(mM.Rb)("clearConfirm",!1)},onConfirm:function(){return Object(mM.cb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.onConfirm,a=void 0===i?function(){}:i;return c.a.createElement(g.a,null,c.a.createElement(oq.a,{draggable:!1,show:!0,onClose:n,onConfirm:a,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:c.a.createElement(b.default,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:o,closeText:c.a.createElement(b.default,{msgId:"featuregrid.noButton"})},c.a.createElement(b.default,{msgId:"featuregrid.clear"})))})),Uq=Object(f.connect)((function(){}),{onClose:function(){return Object(mM.hb)()},onConfirm:function(){return Object(mM.fb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.onConfirm,a=void 0===i?function(){}:i;return c.a.createElement(g.a,null,c.a.createElement(oq.a,{show:!0,onClose:n,onConfirm:a,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:c.a.createElement(b.default,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:o,closeText:c.a.createElement(b.default,{msgId:"featuregrid.noButton"})},c.a.createElement(b.default,{msgId:"featuregrid.featureClose"})))})),Gq={settings:Pq},Hq={deleteConfirm:Bq,featureCloseConfirm:Uq,clearConfirm:qq},Vq={settings:{style:{padding:"0 12px",overflow:"auto",flex:"0 0 14em",boxShadow:"inset 0px 0px 10px rgba(0, 0, 0, 0.4)",height:"100%",minWidth:195}}},Wq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Gq[t]})).map((function(e){var t=Gq[e];return c.a.createElement(t,Mq({key:e},Vq[e]||{}))}))},Yq=function(){return c.a.createElement(Fq,null,c.a.createElement(Lq,null))},Kq=function(e){return e.focusOnEdit&&e.hasChanges||e.newFeatures.length>0?null:c.a.createElement(zq,null)},Xq=function(){return Rq},Zq=Object(R.a)((function(e){return e}),(function(e){return e?(Object(RM.getFeatureTypeProperties)(e)||[]).reduce((function(e,t){return Dq(Dq({},e),{},Nq({},t.name,Object(f.connect)(Object(R.a)((function(e){return Object(Nz.d)(e,t.name)}),Nz.s,(function(e,n){var r=Dq({value:e&&(e.rawValue||e.value)},Object(RM.isGeometryType)(t)?{filterEnabled:null==e?void 0:e.enabled,filterDeactivated:null==e?void 0:e.deactivated}:{}),o=Object(RM.isGeometryType)(t)?{}:{disabled:!0,tooltipMsgId:"featuregrid.filter.tooltips.editMode"};return"EDIT"===n?Dq(Dq({},r),o):r})))(Object(aq.a)(Object(RM.isGeometryType)(t)?"geometry":t.localType,{name:t.name}))))}),{}):{}})),Qq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Hq[t]})).map((function(e){var t=Hq[e];return c.a.createElement(t,{key:e})}))};function $q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jq(e){for(var t=1;t5&&void 0!==arguments[5]?arguments[5]:nU,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0,p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:nU,f=arguments.length>13?arguments[13]:void 0,h=arguments.length>14?arguments[14]:void 0,m=arguments.length>15?arguments[15]:void 0,g=arguments.length>16?arguments[16]:void 0,y=arguments.length>17?arguments[17]:void 0,b=arguments.length>18?arguments[18]:void 0;return{open:e,customEditorsOptions:t,autocompleteEnabled:n,url:r,typeName:o,hasChanges:f,newFeatures:p,features:i,describe:a,attributes:s,tools:l,select:u,mode:c,focusOnEdit:h,enableColumnFilters:m,changes:Object(kz.p)(d),pagination:g,pages:y,size:b}})),aU=Object(L.compose)(Object(f.connect)(iU,(function(e){return{onMount:Object(Oz.b)(mM.Ib,e),gridEvents:Object(Oz.b)(Cq,e),pageEvents:Object(Oz.b)(kq,e),initPlugin:Object(Oz.b)((function(e){return Object(mM.vb)(e)}),e),toolbarEvents:Object(Oz.b)(Aq,e),gridTools:Tq.map((function(t){return Jq(Jq({},t),{},{events:Object(Oz.b)(t.events,e)})})),onSizeChange:function(){return e(mM.Jb.apply(void 0,arguments))}}})),Object(L.lifecycle)({componentDidMount:function(){this.props.onMount(Object(se.pick)(this.props,["showFilteredObject","showTimeSync","timeSync"]))}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tools:rU,dialogs:rU,select:nU},t={dimMode:"none",defaultSize:.35,fluid:!0,isVisible:e.open,maxDockSize:.7,minDockSize:.1,position:"bottom",setDockSize:function(){},zIndex:1030};return c.a.createElement(oU,tU({},t,{onSizeChange:function(n){e.onSizeChange(n,t)}}),e.open&&c.a.createElement(NP.a,null,(function(t){var n=t.height;return c.a.createElement(Bo.a,{className:"feature-grid-container",key:"feature-grid-container",height:n-94,header:Yq(),columns:Wq(e.tools),footer:Kq(e)},Qq(e.tools),c.a.createElement(rq.a,{editingAllowedRoles:e.editingAllowedRoles,initPlugin:e.initPlugin,customEditorsOptions:e.customEditorsOptions,autocompleteEnabled:e.autocompleteEnabled,url:e.url,typeName:e.typeName,filterRenderers:Zq(e.describe),enableColumnFilters:e.enableColumnFilters,emptyRowsView:Xq(),focusOnEdit:e.focusOnEdit,newFeatures:e.newFeatures,changes:e.changes,mode:e.mode,select:e.select,key:"feature-grid-container",columnSettings:e.attributes,gridEvents:e.gridEvents,pageEvents:e.pageEvents,describeFeatureType:e.describe,features:e.features,minHeight:600,tools:e.gridTools,pagination:e.pagination,pages:e.pages,virtualScroll:e.virtualScroll,maxStoredPages:e.maxStoredPages,vsOverScan:e.vsOverScan,scrollDebounce:e.scrollDebounce,size:e.size}))})))})),sU=Object(_.d)("FeatureEditor",{component:aU,epics:a,reducers:{featuregrid:nq},containers:{TOC:{doNotHide:!0,name:"FeatureEditor"}}}),lU=(n("./MapStore2/web/client/components/data/query/queryform.css"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.item;return c.a.createElement("span",null,t&&t.name?c.a.createElement(b.default,{msgId:t.name}):null)}),uU=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.spatialOperations,n=void 0===t?[]:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.value;return c.a.createElement(Io.DropdownList,{valueField:"id",className:"geometry-operation-selector",onChange:o,data:n,valueComponent:lU,value:i,itemComponent:lU})};function cU(e){return function(e){if(Array.isArray(e))return dU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dU(e,t)}(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 dU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.search,r=t.url;return Object(Ie.b)(e,r)||Object(Ie.b)(e,n&&n.url)},fU=function(e){return(e||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return"BBOX"!==t}))},hU={"xsd:normalizedString":"string","xsd:string":"string","xsd:date":"date","xsd:dateTime":"date","xsd:date-time":"date-time","xsd:time":"time","xsd:decimal":"number","xsd:int":"number","xsd:integer":"number","xsd:long":"number","xsd:negativeInteger":"number","xsd:nonNegativeInteger":"number","xsd:nonPositiveInteger":"number","xsd:positiveInteger":"number","xsd:short":"number","xsd:unsignedLong":"number","xsd:unsignedInt":"number","xsd:unsignedShort":"number","xsd:number":"number","xsd:boolean":"boolean","xsd:double":"number","xsd:float":"number"},mU=function(e){return Object(se.get)(e,"featureTypes[0].properties").filter((function(e){return 0!==e.type.indexOf("gml:")&&hU[e.type]})).map((function(e){return{label:e.name,attribute:e.name,type:hU[e.type],valueId:"id",valueLabel:"name",values:[]}}))};function gU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yU(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchUrl,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.searchUrl;return t===r})).switchMap((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.crossLayerExpanded?Bt.Observable.of(t):e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerExpanded;return t})).take(1)})).switchMap((function(e){var t=e.featureTypeName,n=e.searchUrl;return Object(PM.c)({layer:{name:t,url:n,search:{type:"wfs",url:n}}}).do((function(e){if(t=e,n=Object(se.get)(t,"WFS_Capabilities.Filter_Capabilities.Scalar_Capabilities.ArithmeticOperators.Functions.FunctionNames.FunctionName"),!Object(se.find)(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e._;return"queryCollection"===t})))throw new Error("nocrosslayerfunctionalities");var t,n})).map((function(){return{loadingCapabilities:!1}})).catch((function(e){return Bt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({loadingCapabilities:!0})})).startWith({})},wU=function(e,t){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.layer;return o&&n.name===(o&&o.name)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!!t})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.layer;return Bt.Observable.defer((function(){return Object(PM.a)({layer:n})})).do((function(e){var n=Object(se.get)(Object(RM.findGeometryProperty)(e.data||{}),"name");n&&t("geometryName",n)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t;return mU(n)})).map((function(e){return{attributes:e,loadingAttributes:!1}})).startWith({loadingAttributes:!0}).catch((function(e){return Bt.Observable.of({errorObj:e,loadingAttributes:!1,featureTypeProperties:[]})}))})).catch((function(e){return Bt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({})},xU=Object(L.compose)(Object(L.withPropsOnChange)(["crossLayerFilter"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerFilter,n=void 0===t?{}:t;return{queryCollection:Object(se.get)(n,"collectGeometries.queryCollection"),operation:Object(se.get)(n,"operation"),distance:Object(se.get)(n,"distance")}})),Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=void 0===t?[]:t,r=e.queryCollection,o=void 0===r?{}:r;return{layer:Object(se.find)(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return t===o.typeName}))}})),Object(L.withHandlers)({setQueryCollectionParameter:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e,t){n("collectGeometries.queryCollection[".concat(e,"]"),t),"typeName"===e&&n("collectGeometries.queryCollection.filterFields",[])}},updateLogicCombo:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e,t){return n("collectGeometries.queryCollection.groupFields",[{id:e,logic:t,index:0}])}},setOperation:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e){return n("operation",e)}}}),Object(L.defaultProps)({dataStreamFactory:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.setQueryCollectionParameter,r=void 0===n?function(){}:n;return vU(e).combineLatest(wU(e,r),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return yU(yU({},t),e)})).startWith({})}}),AM.a);function _U(e){return(_U="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 OU(e,t){for(var n=0;n0,n=this.props.allowEmptyFilter&&!this.props.advancedToolbar,r=this.props.filterFields.filter((function(e){return e.value||0===e.value})).length>0,o=Object(FC.isFilterEmpty)(this.props),i=Object(FC.isFilterEmpty)(this.props.appliedFilter),a=this.isCurrentFilterChanged(),s=r||this.props.spatialField.geometry||Object(FC.isCrossLayerFilterValid)(this.props.crossLayerFilter),l=!Object(se.isEqual)(this.props.appliedFilter,this.props.storedFilter),u=n||o&&this.props.appliedFilter&&!i,d=t||!this.props.toolbarEnabled||o&&!u||!o&&(!s||!a),p=this.props.emptyFilterWarning&&o&&a,f=this.props.advancedToolbar?"queryform.apply":this.props.queryBtnMsgId,h=[{tooltipId:p?"queryform.emptyfilter":f,disabled:d,noTooltipWhenDisabled:!0,glyph:this.props.advancedToolbar?"ok":this.props.queryBtnGlyph,className:p?"square-button-md showWarning":"square-button-md",id:"query-toolbar-query",onClick:this.search}];if(this.props.advancedToolbar){var m=!l||this.props.loadingError||a,g=!l||!this.props.storedFilter||!this.props.toolbarEnabled,y=!this.props.appliedFilter||this.props.appliedFilter&&i||!this.props.toolbarEnabled;h=h.concat([{tooltipId:"queryform.save",disabled:m,noTooltipWhenDisabled:!0,glyph:"floppy-disk",id:"query-toolbar-save",onClick:this.props.actions.onSaveFilter},{tooltipId:"queryform.discard",disabled:g,noTooltipWhenDisabled:!0,glyph:"undo",id:"query-toolbar-discard",onClick:this.restorePersistedFilter},{tooltipId:"queryform.reset",glyph:"clear-filter",noTooltipWhenDisabled:!0,id:"reset",disabled:y,onClick:this.reset}])}else h=[{tooltipId:"queryform.reset",glyph:"clear-filter",noTooltipWhenDisabled:!0,id:"reset",disabled:!this.props.toolbarEnabled,onClick:this.reset}].concat(h);return c.a.createElement("div",{className:"container-fluid query-toolbar"},c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md",tooltipPosition:"bottom"},className:"queryFormToolbar row-fluid pull-right",buttons:h}),c.a.createElement(cr.a,{show:!!this.props.showGeneratedFilter,bsSize:"large"},c.a.createElement(cr.a.Header,null,c.a.createElement(cr.a.Title,null,this.props.resultTitle)),c.a.createElement(cr.a.Body,null,c.a.createElement("textarea",{style:{width:"862px",maxWidth:"862px",height:"236px",maxHeight:"236px"}},this.props.showGeneratedFilter)),c.a.createElement(cr.a.Footer,null,c.a.createElement(De.a,{style:{float:"right"},onClick:function(){return e.props.actions.onQuery(null,null)}},"Close"))))}}])&&OU(t.prototype,n),r&&OU(t,r),i}(c.a.Component);kU(AU,"propTypes",{filterType:p.a.string,params:p.a.object,filterFields:p.a.array,groupFields:p.a.array,spatialField:p.a.object,sendFilters:p.a.object,crossLayerFilter:p.a.object,toolbarEnabled:p.a.bool,searchUrl:p.a.string,showGeneratedFilter:p.a.oneOfType([p.a.bool,p.a.string]),featureTypeName:p.a.string,actions:p.a.object,ogcVersion:p.a.string,titleMsgId:p.a.string,queryBtnMsgId:p.a.string,resultTitle:p.a.string,queryBtnGlyph:p.a.string,pagination:p.a.object,sortOptions:p.a.object,hits:p.a.bool,allowEmptyFilter:p.a.bool,emptyFilterWarning:p.a.bool,appliedFilter:p.a.object,storedFilter:p.a.object,advancedToolbar:p.a.bool,loadingError:p.a.bool}),kU(AU,"defaultProps",{sendFilters:{attributeFilter:!0,spatialFilter:!0,crossLayerFilter:!0},filterType:"OGC",params:{},groupFields:[],filterFields:[],spatialField:{},toolbarEnabled:!0,searchUrl:null,showGeneratedFilter:!1,featureTypeName:null,titleMsgId:"queryform.title",queryBtnMsgId:"queryform.query",resultTitle:"Generated Filter",queryBtnGlyph:"search",pagination:null,sortOptions:null,hits:!1,allowEmptyFilter:!1,emptyFilterWarning:!1,advancedToolbar:!1,loadingError:!1,actions:{onQuery:function(){},onReset:function(){},onChangeDrawingStatus:function(){},onSaveFilter:function(){},onRestoreFilter:function(){},storeAppliedFilter:function(){}}});var PU=AU,MU=n("./MapStore2/web/client/observables/autocomplete.js"),IU=n("./MapStore2/web/client/utils/TemplateUtils.js");function DU(e){return(DU="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 NU(){return(NU=Object.assign||function(e){for(var t=1;t0&&(r=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&r.length>0)&&r.push((GU(t={},e.props.textField,""),GU(t,e.props.valueField,""),GU(t,"disabled",!0),GU(t,"pagination",e.renderPagination()),t));var o=!1,i=e.props.loading?[]:r,a=e.props.itemComponent,s=c.a.createElement(Io.Combobox,{dropUp:e.props.dropUp,busy:e.props.busy,data:i,disabled:e.props.disabled,itemComponent:function(t){return c.a.createElement(a,NU({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||n,open:e.props.open,filter:!1,onChange:function(t){e.props.onChange(t,e.props.valueField),o=!0},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){var n=Object(se.head)(e.props.features.filter((function(n){return n.properties[e.props.valueField].toLowerCase()===t[e.props.valueField].toLowerCase()})));e.props.onSelect(t,n,e.props.srsName,e.props.style)},onToggle:function(t){var n=Object(se.head)(e.props.features.filter((function(t){return t.properties[e.props.valueField].toLowerCase()===e.props.selectedValue.toLowerCase()})));!t||e.props.selectedValue||e.props.selectedValue||o||e.props.onChange("",e.props.valueField),e.props.onToggle(t,n,e.props.pagination.currentPage),n&&!t&&e.props.onSelect(e.props.selectedValue,n,e.props.srsName,e.props.style),o=!1},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(s):s})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props.label?c.a.createElement("label",null,this.props.label):c.a.createElement("span",null);return c.a.createElement("div",{className:"autocompleteField"},e,this.renderField())}}])&&LU(t.prototype,n),r&&LU(t,r),i}(c.a.Component);GU(HU,"propTypes",{busy:p.a.bool,data:p.a.array,disabled:p.a.bool,dropUp:p.a.bool,features:p.a.array,filter:p.a.string,itemComponent:p.a.oneOfType([p.a.object,p.a.func]),label:p.a.string,loading:p.a.bool,messages:p.a.object,onChange:p.a.func,onFocus:p.a.func,onSelect:p.a.func,onToggle:p.a.func,onChangeDrawingStatus:p.a.func,style:p.a.style,open:p.a.bool,pagination:p.a.object,nextPageIcon:p.a.string,prevPageIcon:p.a.string,selectedValue:p.a.string,srsName:p.a.string,textField:p.a.string,tooltip:p.a.object,valueField:p.a.string}),GU(HU,"contextTypes",{messages:p.a.object}),GU(HU,"defaultProps",{dropUp:!1,features:[],filter:"",itemComponent:ZC.a,loading:!1,label:null,pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onChangeDrawingStatus:function(){},onSelect:function(){},srsName:"EPSG:4326",textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value"});var VU=HU;function WU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YU(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=e.onChangeSpatialFilterValue,r=void 0===n?function(){}:n,o=e.select,i=void 0===o?function(){}:o;return function(e,n,o,a){n&&r({geometry:n.geometry,value:e,feature:n,srsName:o,style:a,options:t,collectGeometries:t&&t.crossLayer?{queryCollection:{typeName:t.crossLayer.typeName,geometryName:t.crossLayer.geometryName,cqlFilter:Object(IU.generateTemplateString)(t.crossLayer.cqlTemplate||"",FC.escapeCQLStrings)(n)}}:void 0}),i(!0)}}}))(XU);function QU(e){return(QU="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 $U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JU(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"replace";"replace"===r&&(e.tempExtent[n]=!isNaN(parseFloat(t))&&parseFloat(t)||0);var o=[];for(var i in e.tempExtent)i&&o.push(e.tempExtent[i]);var a=Object(Wo.reprojectBbox)(o,"EPSG:4326",e.props.projection),s={type:e.props.geometry.type,coordinates:[[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]],[a[0],a[1]]]],projection:e.props.geometry.projection};e.props.onChangeDrawingStatus(r,void 0,"queryform",[s])})),hG(pG(e),"onUpdateCircle",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"replace";"replace"===r&&(e.tempCircle[n]=parseFloat(t));var o=isNaN(parseFloat(e.tempCircle.x))||isNaN(parseFloat(e.tempCircle.y))?[e.tempCircle.x,e.tempCircle.y]:Object(Wo.reproject)([e.tempCircle.x,e.tempCircle.y],"EPSG:4326",e.props.projection);o=void 0===o.x?{x:o[0],y:o[1]}:o;var i={x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y},a={type:e.props.geometry.type,center:i,coordinates:[i.x,i.y],radius:isNaN(e.tempCircle.radius)?0:e.tempCircle.radius,projection:e.props.geometry.projection};e.props.onChangeDrawingStatus(r,void 0,"queryform",[a],{geodesic:e.props.enableGeodesic})})),hG(pG(e),"onModifyGeometry",(function(){"BBOX"===e.props.type?e.onUpdateBBOX(null,null,"endDrawing"):"Circle"===e.props.type&&e.onUpdateCircle(null,null,"endDrawing"),e.props.onShowPanel(!1)})),hG(pG(e),"onClosePanel",(function(){e.resetGeom(),e.props.onShowPanel(!1)})),hG(pG(e),"getStep",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Math.min(1/Math.pow(10,Math.ceil(Math.min(e,21)/3)-2),1)})),hG(pG(e),"getStepCircle",(function(t,n){var r=e.getStep(t);return"radius"===n&&!e.isWGS84()&&1e4*r||r})),hG(pG(e),"getBBOXDimensions",(function(e){var t=Object(Wo.reprojectBbox)(e.extent,e.projection,"EPSG:4326");return{west:t[0],sud:t[1],est:t[2],north:t[3]}})),hG(pG(e),"getCircleDimensions",(function(t){var n=Object(Wo.reproject)(t.center,t.projection,"EPSG:4326"),r=Object(Wo.reproject)(t.center,t.projection,e.props.projection),o=Object(Wo.reproject)([t.center[0]+t.radius,t.center[1]],t.projection,e.props.projection),i=Math.sqrt((o.x-r.x)*(o.x-r.x)+(o.y-r.y)*(o.y-r.y));return{x:n.x,y:n.y,radius:i}})),hG(pG(e),"renderCoordinateField",(function(t,n){return c.a.createElement("div",null,c.a.createElement("div",{className:"detail-field-title"},n),c.a.createElement(Yo.a,{style:{minWidth:"105px",margin:"auto"},type:"number",id:"queryform_bbox_"+n,step:e.getStep(e.props.zoom),defaultValue:e.roundValue(t,1e6),onChange:function(t){return e.onUpdateBBOX(t,n)}}))})),hG(pG(e),"renderCircleField",(function(t,n){return c.a.createElement(Yo.a,{type:"number",id:"queryform_circle_"+n,defaultValue:e.roundValue(t,"radius"!==n||e.isWGS84()?1e6:100),step:e.getStepCircle(e.props.zoom,n),onChange:function(t){return e.onUpdateCircle(t,n)}})})),hG(pG(e),"renderDetailsContent",(function(){var t,n=e.props.geometry;if("BBOX"===e.props.type){var r=e.getBBOXDimensions(n);t=c.a.createElement("div",null,c.a.createElement("div",{className:"container-fluid"},c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:4},e.renderCoordinateField(r.north,"north")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null))),c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:4},e.renderCoordinateField(r.west,"west")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:4},e.renderCoordinateField(r.est,"est"))),c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:4},e.renderCoordinateField(r.sud,"sud")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null)))),c.a.createElement("span",null,c.a.createElement("hr",{width:"90%"}),c.a.createElement("div",null,c.a.createElement("h5",null,c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.details.details_bbox_label"})))))}else if("Circle"===e.props.type){var o=e.getCircleDimensions(n),i=Object(Wo.getUnits)(e.props.projection);t=c.a.createElement("div",null,c.a.createElement("div",{className:"container-fluid"},c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:2},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:2},c.a.createElement("span",{className:"details-circle-attribute-name"},"x:")),c.a.createElement(v.Col,{xs:4},e.renderCircleField(o.x,"x")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null))),c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:2},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:2},c.a.createElement("span",{className:"details-circle-attribute-name"},"y:")),c.a.createElement(v.Col,{xs:4},e.renderCircleField(o.y,"y")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null))),c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:2},c.a.createElement("span",null)),c.a.createElement(v.Col,{xs:2},c.a.createElement("span",{className:"details-circle-attribute-name"},c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.details.radius",msgParams:{unit:"degrees"===i?"°":i}}),":")),c.a.createElement(v.Col,{xs:4},e.renderCircleField(o.radius,"radius")),c.a.createElement(v.Col,{xs:4},c.a.createElement("span",null)))),c.a.createElement("span",null,c.a.createElement("hr",{width:"90%"}),c.a.createElement("div",null,c.a.createElement("h5",null,c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.details.details_circle_label"})))))}return t})),hG(pG(e),"isWGS84",(function(){return"EPSG:4326"===e.props.projection})),hG(pG(e),"roundValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e6;return Math.round(e*t)/t})),hG(pG(e),"resetGeom",(function(){"BBOX"===e.props.type?e.resetBBOX():"Circle"===e.props.type&&e.resetCircle()})),hG(pG(e),"resetBBOX",(function(){for(var t in e.extent){if(t)document.getElementById("queryform_bbox_"+t).value=e.roundValue(e.extent[t],1e6),e.onUpdateBBOX(e.extent[t],t)}})),hG(pG(e),"resetCircle",(function(){document.getElementById("queryform_circle_radius").value=e.roundValue(e.circle.radius,100),e.onUpdateCircle(e.circle.radius,"radius"),document.getElementById("queryform_circle_x").value=e.roundValue(e.circle.x,e.isWGS84()?1e6:100),e.onUpdateCircle(e.circle.x,"x"),document.getElementById("queryform_circle_y").value=e.roundValue(e.circle.y,e.isWGS84()?1e6:100),e.onUpdateCircle(e.circle.y,"y")})),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props.geometry;"BBOX"===this.props.type?(this.extent=this.getBBOXDimensions(e),this.tempExtent=oe()({},this.extent)):"Circle"===this.props.type&&(this.circle=this.getCircleDimensions(e),this.tempCircle=oe()({},this.circle))}},{key:"render",value:function(){var e=this;return c.a.createElement(uT.a,{buttons:[{key:"confirm",glyph:"ok",tooltipId:"confirm",onClick:function(){return e.onModifyGeometry()}},{key:"reset",tooltipId:"queryform.reset",glyph:"clear-filter",onClick:function(){return e.resetGeom()}},{key:"close",glyph:"1-close",onClick:function(){return e.onClosePanel(!1)}}],title:c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.details.details_header"}),locked:!0,expanded:!0,className:"details-panel",bsStyle:"primary"},this.renderDetailsContent())}}])&&lG(t.prototype,n),r&&lG(t,r),i}(c.a.Component);hG(mG,"propTypes",{useMapProjection:p.a.bool,geometry:p.a.object,type:p.a.string,onShowPanel:p.a.func,onChangeDrawingStatus:p.a.func,zoom:p.a.number,projection:p.a.string,enableGeodesic:p.a.bool}),hG(mG,"defaultProps",{useMapProjection:!0,geometry:null,type:null,onShowPanel:function(){},onChangeDrawingStatus:function(){}});var gG=mG;function yG(e){return(yG="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 bG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vG(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"*",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=",r={filterFields:[{attribute:e.props.searchAttribute,operator:n,value:t,type:"list"}]};e.props.dependsOn&&(r.groupFields=[{id:1,logic:"AND",index:0}],r.filterFields[0].groupId=1,e.props.multivalue?(r.groupFields.push({id:2,logic:"OR",groupId:1,index:1}),e.props.dependsOn.value instanceof Array?e.props.dependsOn.value.forEach((function(t){r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:t,groupId:2,type:"list"})})):r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:e.props.dependsOn.value,groupId:2,type:"list"})):r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:e.props.dependsOn.value,groupId:1,type:"list"}));var o=Object(FC.toOGCFilter)(e.props.typeName,r,e.props.wfs,e.props.sort||{sortBy:e.props.searchAttribute,sortOrder:"ASC"});return o})),jG(OG(e),"changeZoneValue",(function(t,n,r){var o;e.setState({open:!1}),o=e.props.multivalue?{value:r.map((function(e){return e.id})),feature:r.map((function(e){return e.feature}))}:{value:[r],feature:[e.values.filter((function(e){return e.id===r}))[0].feature]},e.props.onChange(e.props.zoneId,o)})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.values&&!Object(se.isEqual)(this.props.values,e.values)&&e.values.length>0&&this.setState({open:!0})}},{key:"render",value:function(){var e=this;this.values=[],this.props.values&&this.props.values.length>0&&(this.values=this.props.values.map((function(t){var n=t;e.props.valueField.split(".").forEach((function(e){n=n?n[e]:null}));var r=t;return e.props.textField.split(".").forEach((function(e){r=r?r[e]:null})),{id:n,name:r,feature:t}})));var t=this.props.label?c.a.createElement("label",null,this.props.label):c.a.createElement("span",null),n=this.props.error;return n&&(n="object"!==yG(n)?n:n.status+" "+n.statusText+": "+n.data),c.a.createElement("div",{className:"zone-combo"},t,c.a.createElement(KE,{key:(new Date).getTime(),busy:this.props.busy,disabled:this.props.disabled,fieldRowId:this.props.zoneId,valueField:"id",textField:"name",fieldOptions:this.values,fieldValue:this.props.value,fieldName:"zone",fieldException:n,options:{defaultOpen:this.state.open},groupBy:this.props.groupBy?function(t){return t.feature.properties[e.props.groupBy]}:function(){},multivalue:this.props.multivalue,comboFilter:this.props.comboFilter,onSelect:this.props.onSelect,onUpdateField:this.changeZoneValue,onToggle:function(t){if(t&&(!e.props.values||e.props.values.length<1)){var n=e.getFilter(e.props.searchText,e.props.searchMethod);e.props.onSearch(!0,e.props.zoneId),e.props.onFilter(e.props.url,n,e.props.zoneId)}}}))}}])&&vG(t.prototype,n),r&&vG(t,r),i}(c.a.Component);jG(EG,"propTypes",{zoneId:p.a.number,url:p.a.string,typeName:p.a.string,wfs:p.a.string,busy:p.a.bool,values:p.a.array,value:p.a.oneOfType([p.a.object,p.a.number,p.a.string,p.a.array]),label:p.a.string,searchText:p.a.string,searchMethod:p.a.string,searchAttribute:p.a.string,sort:p.a.object,error:p.a.oneOfType([p.a.object,p.a.string]),comboFilter:p.a.oneOfType([p.a.bool,p.a.string,p.a.func]),groupBy:p.a.oneOfType([p.a.string,p.a.func]),multivalue:p.a.bool,open:p.a.bool,disabled:p.a.bool,dependsOn:p.a.object,valueField:p.a.string,textField:p.a.string,onSearch:p.a.func,onFilter:p.a.func,onChange:p.a.func,onSelect:p.a.func}),jG(EG,"contextTypes",{messages:p.a.object}),jG(EG,"defaultProps",{open:!1,zoneId:null,url:null,typeName:null,wfs:"1.1.0",busy:!1,values:[],value:null,valueField:null,textField:null,label:null,disabled:!1,error:null,searchText:"*",searchMethod:"ilike",searchAttribute:null,comboFilter:"contains",multivalue:!0,groupBy:null,onSearch:function(){},onFilter:function(){},onChange:function(){},onSelect:function(){}});var CG=EG;function TG(e){return(TG="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 kG(){return(kG=Object.assign||function(e){for(var t=1;t0?e.props.spatialField.zoneFields.map((function(t){return c.a.createElement(CG,{key:t.id,open:t.open,zoneId:t.id,url:t.url,typeName:t.typeName,wfs:t.wfs,busy:t.busy,label:t.label,values:t.values,value:t.value,valueField:t.valueField,textField:t.textField,searchText:t.searchText,searchMethod:t.searchMethod,searchAttribute:t.searchAttribute,sort:t.sort,error:t.error,disabled:t.disabled,dependsOn:t.dependson,groupBy:t.groupBy,multivalue:t.multivalue,onSearch:e.props.actions.zoneSearch,onFilter:e.props.actions.zoneFilter,onChange:e.props.actions.zoneChange})})):null})),LG(NG(e),"renderRoiPanel",(function(){var t=e.getMethodFromId(e.props.spatialField.method),n=t&&t.filterProps&&t.filterProps.valueField&&e.props.spatialField&&e.props.spatialField.value&&e.props.spatialField.value[t.filterProps.valueField];return c.a.createElement(v.Panel,null,c.a.createElement("div",{className:"container-fluid"},c.a.createElement(v.Row,{className:"filter-field-row filter-field-fixed-row"},c.a.createElement(v.Col,{xs:6},c.a.createElement("span",null,t&&t.name||t.id)),c.a.createElement(v.Col,{xs:6},c.a.createElement(ZU,{originalValue:n,key:e.props.spatialField.method,options:t,autocompleteStreamFactory:MU.b,valueField:t&&t.filterProps&&t.filterProps.valueField,textField:t&&t.filterProps&&t.filterProps.valueField,url:t&&t.url,filter:"contains",onChangeSpatialFilterValue:e.props.actions.onChangeSpatialFilterValue,onChangeDrawingStatus:function(){var t;(t=e.props.actions).onChangeDrawingStatus.apply(t,arguments)},filterProps:t&&t.filterProps})))))})),LG(NG(e),"renderSpatialPanel",(function(t,n,r){return c.a.createElement(v.Panel,{className:"spatial-panel"},e.props.spatialMethodOptions.length>1?e.renderSpatialHeader():c.a.createElement("span",null),e.renderZoneFields(),e.props.spatialField.method&&e.getMethodFromId(e.props.spatialField.method)&&"wfsGeocoder"===e.getMethodFromId(e.props.spatialField.method).type?e.renderRoiPanel():null,e.props.spatialOperations.length>1?c.a.createElement(v.Panel,null,c.a.createElement("div",null,t),r&&"DWITHIN"===r.id?e.renderDwithin():null,c.a.createElement(v.Row,null,c.a.createElement(v.Col,{xs:12},n))):c.a.createElement("span",null))})),LG(NG(e),"renderButtons",(function(){var t=[],n=e.props.spatialField.geometry&&(e.props.spatialField.method&&"BBOX"===e.props.spatialField.method||"Circle"===e.props.spatialField.method),r=e.props.spatialField.geometry&&e.props.spatialField.geometry.coordinates;return n&&t.push({glyph:"pencil",onClick:function(){return e.props.actions.onShowSpatialSelectionDetails(!0)},tooltipId:"queryform.spatialfilter.details.detail_button_label"}),r&&t.push({glyph:"clear-filter",tooltipId:"queryform.spatialfilter.remove",onClick:function(){return e.resetSpatialFilter()}}),t})),LG(NG(e),"updateSpatialMethod",(function(t,n,r){e.props.actions.onShowSpatialSelectionDetails(!1);var o=e.props.spatialMethodOptions.filter((function(t){return r===(Object(ne.f)(e.context.messages,t.name)||t.name)}))[0].id,i=e.getMethodFromId(o);if(e.props.actions.onSelectSpatialMethod(o,n),"wfsGeocoder"!==e.getMethodFromId(o).type)switch(o){case"ZONE":e.changeDrawingStatus("clean","","queryform",[]);break;case"Viewport":e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onSelectViewportSpatialMethod();break;default:e.changeDrawingStatus("start",o,"queryform",[],{geodesic:i&&i.geodesic,stopAfterDrawing:!0})}else e.changeDrawingStatus("clean","","queryform",[])})),LG(NG(e),"updateSpatialOperation",(function(t,n,r){var o=e.props.spatialOperations.filter((function(t){return r===Object(ne.f)(e.context.messages,t.name)}))[0].id;e.props.actions.onSelectSpatialOperation(o,n)})),LG(NG(e),"resetSpatialFilter",(function(){e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onRemoveSpatialSelection(),e.props.actions.onShowSpatialSelectionDetails(!1)})),LG(NG(e),"changeDrawingStatus",(function(t,n,r,o,i){e.props.actions.onChangeDrawingStatus(t,void 0!==n?n:e.props.spatialField.method,r,o,i)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.spatialOperations.filter((function(t){return e.props.spatialField.operation===t.id}))[0],n=c.a.createElement("span",null);"ZONE"!==this.props.spatialField.method&&"Viewport"!==this.props.spatialField.method&&this.getMethodFromId(this.props.spatialField.method)&&"wfsGeocoder"!==this.getMethodFromId(this.props.spatialField.method).type&&(n=this.props.spatialField.geometry?null:c.a.createElement("span",null,c.a.createElement("div",{className:"m-label m-caption text-center"},c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.draw_start_label"}))));var r=this.getMethodFromId(this.props.spatialField.method),o=this.props.showDetailsPanel?c.a.createElement(gG,{useMapProjection:this.props.useMapProjection,enableGeodesic:r&&r.geodesic,geometry:this.props.spatialField.geometry,type:this.props.spatialField.method,onShowPanel:this.props.actions.onShowSpatialSelectionDetails,onChangeDrawingStatus:this.changeDrawingStatus,zoom:this.props.zoom,projection:this.props.projection}):c.a.createElement("span",null),i=c.a.createElement(v.Row,{className:"filter-field-row inline-form filter-field-fixed-row"},c.a.createElement(v.Col,{xs:6},c.a.createElement(RT.Message,{msgId:"queryform.spatialfilter.geometric_operation"})),c.a.createElement(v.Col,{xs:6},c.a.createElement(KE,{fieldOptions:this.props.spatialOperations.map((function(t){return Object(ne.f)(e.context.messages,t.name)})),fieldName:"operation",fieldRowId:(new Date).getTime(),fieldValue:Object(ne.f)(this.context.messages,t?t.name:""),onUpdateField:this.updateSpatialOperation})));return c.a.createElement("div",{className:"query-filter-container"},this.props.withContainer?c.a.createElement(uT.a,{id:"spatialFilterPanel",header:this.renderHeader(),buttons:this.renderButtons(),collapsible:!0,expanded:this.props.spatialPanelExpanded,onSwitch:function(t){return e.props.actions.onExpandSpatialFilterPanel(t)}},this.renderSpatialPanel(i,n,t)):this.renderSpatialPanel(i,n,t),o)}}])&&PG(t.prototype,n),r&&PG(t,r),i}(c.a.Component);LG(FG,"propTypes",{useMapProjection:p.a.bool,spatialField:p.a.object,spatialOperations:p.a.array,spatialMethodOptions:p.a.array,spatialPanelExpanded:p.a.bool,showDetailsPanel:p.a.bool,withContainer:p.a.bool,actions:p.a.object,zoom:p.a.number,projection:p.a.string}),LG(FG,"contextTypes",{messages:p.a.object}),LG(FG,"defaultProps",{useMapProjection:!0,spatialField:{},spatialPanelExpanded:!0,showDetailsPanel:!1,withContainer:!0,spatialMethodOptions:[],spatialOperations:[],actions:{onExpandSpatialFilterPanel:function(){},onSelectSpatialMethod:function(){},onSelectSpatialOperation:function(){},onChangeSpatialFilterValue:function(){},onChangeDrawingStatus:function(){},onRemoveSpatialSelection:function(){},onShowSpatialSelectionDetails:function(){},onSelectViewportSpatialMethod:function(){},onChangeRegion:function(){},onChangeDwithinValue:function(){},zoneFilter:function(){},zoneSearch:function(){},zoneChange:function(){}}});var zG=FG;function BG(e){return(BG="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 qG(){return(qG=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerExpanded,n=void 0===t||t,r=e.spatialOperations,o=e.expandCrossLayerFilterPanel,i=void 0===o?function(){}:o,a=e.layers,s=void 0===a?[]:a,l=e.errorObj,u=e.loadingAttributes,d=e.loadingCapabilities,p=e.searchUrl,f=e.queryCollection,h=void 0===f?{}:f,m=e.attributes,g=void 0===m?[]:m,y=e.operation,w=e.updateLogicCombo,x=void 0===w?function(){}:w,_=e.resetCrossLayerFilter,O=void 0===_?function(){}:_,S=e.setOperation,j=void 0===S?function(){}:S,E=e.setQueryCollectionParameter,C=void 0===E?function(){}:E,T=e.addCrossLayerFilterField,k=void 0===T?function(){}:T,A=e.updateCrossLayerFilterField,P=void 0===A?function(){}:A,M=e.removeCrossLayerFilterField,I=void 0===M?function(){}:M,D=h.typeName,N=h.geometryName,R=h.filterFields,L=h.groupFields,F=void 0===L?[{id:1,logic:"OR",index:0}]:L;return c.a.createElement(uT.a,{loading:d,expanded:n&&!d&&!l,error:l,errorMsgId:"queryPanel",buttons:cU(D?[{glyph:"clear-filter",tooltipId:"queryform.crossLayerFilter.clear",onClick:function(){return O()}}]:[]),onSwitch:i,title:c.a.createElement(b.default,{msgId:"queryform.crossLayerFilter.title"})},c.a.createElement(v.Row,{className:"inline-form filter-field-fixed-row"},c.a.createElement(v.Col,{xs:6},c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"queryform.crossLayerFilter.targetLayer"}))),c.a.createElement(v.Col,{xs:6},c.a.createElement(Uo.default,{clearable:!1,disabled:d||!!l,isLoading:u,options:s.filter((function(e){return pU(p,e)})).map((function(e){return{label:e.title||e.name,value:e.name}})),placeholder:c.a.createElement(b.default,{msgId:"queryform.crossLayerFilter.placeholder"}),filter:"contains",value:D,onChange:function(e){C("typeName",e&&e.value)}}))),D&&N?c.a.createElement(v.Row,{className:"inline-form filter-field-fixed-row"},c.a.createElement(v.Col,{xs:6},c.a.createElement("div",null,c.a.createElement(b.default,{msgId:"queryform.crossLayerFilter.operation"}))),c.a.createElement(v.Col,{xs:6},c.a.createElement(uU,{value:y,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return j(t)},spatialOperations:fU(r)}))):null,D&&N&&y?c.a.createElement(v.Row,{className:"filter-field-fixed-row"},c.a.createElement(v.Col,{xs:12},c.a.createElement(XT,{autocompleteEnabled:!1,withContainer:!1,attributes:g,groupLevels:-1,filterFields:R,actions:{onUpdateLogicCombo:x,onAddFilterField:k,onUpdateFilterField:P,onRemoveFilterField:I},groupFields:F,filterField:!0}))):null)})),ZG=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&&HG(e,t)}(i,e);var t,n,r,o=VG(i);function i(){return UG(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){if(""!==this.props.featureTypeError)return c.a.createElement("div",{style:{margin:"0 auto","text-align":"center"}},this.props.featureTypeErrorText);var e=c.a.createElement("div",{className:"m-header"},this.props.header,c.a.createElement(PU,{sendFilters:{attributeFilter:this.props.attributePanelExpanded,spatialFilter:this.props.spatialPanelExpanded,crossLayerFilter:this.props.crossLayerExpanded},params:this.props.params,filterFields:this.props.filterFields,groupFields:this.props.groupFields,spatialField:this.props.spatialField,toolbarEnabled:this.props.toolbarEnabled,searchUrl:this.props.searchUrl,showGeneratedFilter:this.props.showGeneratedFilter,featureTypeName:this.props.featureTypeName,ogcVersion:this.props.ogcVersion,filterType:this.props.filterType,actions:this.props.queryToolbarActions,resultTitle:this.props.resultTitle,pagination:this.props.pagination,sortOptions:this.props.sortOptions,crossLayerFilter:this.props.crossLayerFilterOptions.crossLayerFilter,hits:this.props.hits,allowEmptyFilter:this.props.allowEmptyFilter,emptyFilterWarning:this.props.emptyFilterWarning,appliedFilter:this.props.appliedFilter,storedFilter:this.props.storedFilter,advancedToolbar:this.props.advancedToolbar,loadingError:this.props.loadingError}));return this.props.attributes.length>0?c.a.createElement(Bo.a,{header:e,className:"mapstore-query-builder",id:"query-form-panel"},c.a.createElement(XT,{autocompleteEnabled:this.props.autocompleteEnabled,maxFeaturesWPS:this.props.maxFeaturesWPS,attributes:this.props.attributes,groupLevels:this.props.groupLevels,filterFields:this.props.filterFields,groupFields:this.props.groupFields,removeButtonIcon:this.props.removeButtonIcon,addButtonIcon:this.props.addButtonIcon,attributePanelExpanded:this.props.attributePanelExpanded,actions:this.props.attributeFilterActions}),this.props.toolsOptions.hideSpatialFilter?null:c.a.createElement(zG,{useMapProjection:this.props.useMapProjection,spatialField:this.props.spatialField,spatialOperations:this.props.spatialOperations,spatialMethodOptions:this.props.spatialMethodOptions,spatialPanelExpanded:this.props.spatialPanelExpanded,showDetailsPanel:this.props.showDetailsPanel,actions:this.props.spatialFilterActions,zoom:this.props.zoom,projection:this.props.projection}),this.props.toolsOptions.hideCrossLayer?null:c.a.createElement(XG,qG({spatialOperations:this.props.spatialOperations,crossLayerExpanded:this.props.crossLayerExpanded,searchUrl:this.props.searchUrl,featureTypeName:this.props.featureTypeName},this.props.crossLayerFilterOptions,this.props.crossLayerFilterActions))):c.a.createElement("div",{style:{margin:"0 auto",width:"60px"}},c.a.createElement(lq.a,{spinnerName:"three-bounce",overrideSpinnerClassName:"spinner"}))}}])&&GG(t.prototype,n),r&&GG(t,r),i}(c.a.Component);KG(ZG,"propTypes",{params:p.a.object,featureTypeConfigUrl:p.a.string,useMapProjection:p.a.bool,attributes:p.a.array,featureTypeError:p.a.string,featureTypeErrorText:p.a.node,groupLevels:p.a.number,maxFeaturesWPS:p.a.number,filterFields:p.a.array,groupFields:p.a.array,spatialField:p.a.object,removeButtonIcon:p.a.string,addButtonIcon:p.a.string,attributePanelExpanded:p.a.bool,spatialPanelExpanded:p.a.bool,crossLayerExpanded:p.a.bool,showDetailsPanel:p.a.bool,toolbarEnabled:p.a.bool,searchUrl:p.a.string,showGeneratedFilter:p.a.oneOfType([p.a.bool,p.a.string]),filterType:p.a.string,featureTypeName:p.a.string,ogcVersion:p.a.string,attributeFilterActions:p.a.object,spatialFilterActions:p.a.object,queryToolbarActions:p.a.object,resultTitle:p.a.string,pagination:p.a.object,sortOptions:p.a.object,spatialOperations:p.a.array,spatialMethodOptions:p.a.array,crossLayerFilterOptions:p.a.object,crossLayerFilterActions:p.a.object,hits:p.a.bool,maxHeight:p.a.number,allowEmptyFilter:p.a.bool,autocompleteEnabled:p.a.bool,emptyFilterWarning:p.a.bool,header:p.a.node,zoom:p.a.number,projection:p.a.string,toolsOptions:p.a.object,appliedFilter:p.a.object,storedFilter:p.a.object,advancedToolbar:p.a.bool,loadingError:p.a.bool}),KG(ZG,"defaultProps",{params:{},featureTypeConfigUrl:null,useMapProjection:!0,groupLevels:1,groupFields:[],filterFields:[],attributes:[],spatialMethodOptions:[],spatialOperations:[],featureTypeError:"",spatialField:{},crossLayerFilter:null,removeButtonIcon:"trash",addButtonIcon:"glyphicon glyphicon-plus",attributePanelExpanded:!0,spatialPanelExpanded:!0,showDetailsPanel:!1,toolbarEnabled:!0,searchUrl:"",showGeneratedFilter:!1,featureTypeName:null,pagination:null,sortOptions:null,hits:!1,maxHeight:830,allowEmptyFilter:!1,autocompleteEnabled:!0,emptyFilterWarning:!1,advancedToolbar:!1,loadingError:!1,attributeFilterActions:{onAddGroupField:function(){},onAddFilterField:function(){},onRemoveFilterField:function(){},onUpdateFilterField:function(){},onUpdateExceptionField:function(){},onUpdateLogicCombo:function(){},onRemoveGroupField:function(){},onChangeCascadingValue:function(){},onExpandAttributeFilterPanel:function(){}},spatialFilterActions:{onExpandSpatialFilterPanel:function(){},onSelectSpatialMethod:function(){},onSelectSpatialOperation:function(){},onChangeDrawingStatus:function(){},onRemoveSpatialSelection:function(){},onShowSpatialSelectionDetails:function(){},onSelectViewportSpatialMethod:function(){},onChangeDwithinValue:function(){}},crossLayerFilterOptions:{},crossLayerFilterActions:{},queryToolbarActions:{onQuery:function(){},onReset:function(){},onChangeDrawingStatus:function(){},onSaveFilter:function(){},onRestoreFilter:function(){}},toolsOptions:{}});var QG=ZG,$G=n("./MapStore2/web/client/components/misc/enhancers/popover.js");function JG(){return(JG=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.loadingError,n=e.onToggleQuery,r=void 0===n?function(){}:n;return c.a.createElement("div",{className:"mapstore-block-width"},c.a.createElement(De.a,{id:"toc-query-close-button",key:"menu-button",className:"square-button no-border",onClick:function(){return r()}},c.a.createElement(v.Glyphicon,{glyph:"arrow-left"})),t&&c.a.createElement(eH,{popover:{text:c.a.createElement(b.default,{msgId:"queryform.loadingError"})}})||c.a.createElement("div",{className:"square-button pull-right no-border",style:{display:"flex"}},c.a.createElement(v.Glyphicon,{glyph:"filter",className:"text-primary"})))},nH=n("./MapStore2/web/client/utils/ogc/WPS/autocomplete.js"),rH={isAutoCompleteEnabled:function(e,t){return e.ofType(vM.f).switchMap((function(e){var n=Object(St.getParsedUrl)(e.url,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:"gs:PagedUnique"},Object(ce.b)(t.getState()));return null===n?qt.a.Observable.of(Object(yM.mb)(!1)):qt.a.Observable.fromPromise(Tt.a.post(n,null,{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return e.data}))).switchMap((function(e){return Object(se.startsWith)(e,"0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerFilter,n=e.spatialField,r=e.filterFields;return!!(r&&Object(se.head)(r)||n&&n.method&&n.operation&&n.geometry||t&&t.collectGeometries&&t.operation)}(e.filterObj)?iH({},Object(se.get)(n(),"queryform",{})):void 0;return t&&(t.filterFields=t.attributePanelExpanded&&t.filterFields||[],t.spatialField=t.spatialPanelExpanded&&t.spatialField||null,t.crossLayerFilter=t.crossLayerExpanded&&Object(FC.setupCrossLayerFilterDefaults)(t.crossLayerFilter)||null),qt.a.Observable.of(function(e,t){return Object(x.H)(e,{layerFilter:t})}(r.id,t))}))).let(function(e){return function(t){return t.takeUntil(e.ofType(w.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).merge(e.ofType(bM.b)))}}(e)).concat(qt.a.Observable.from([Object(vM.z)(),Object(yM.gb)(),Object(gM.f)("clean","","queryform",[],{})]))}))},restoreSavedFilter:function(e,t){var n=t.getState;return e.ofType("LAYER_FILTER:DISCARD_CURRENT_FILTER").switchMap((function(){var e={typeName:Object(se.get)(n(),"state.query.typeName")},t=Object(se.get)(n(),"state.query.url"),r=Object(se.get)(n(),"layerFilter.persisted");return qt.a.Observable.of(Object(gM.f)("clean","","queryform",[]),Object(yM.ab)(r),Object(yM.ib)(t,r,e),Object(vM.v)())}))},onApplyFilter:function(e,t){var n=t.getState;return e.ofType("LAYER_FILTER:APPLY_FILTER").map((function(){var e=iH({},Object(se.get)(n(),"queryform",{}));return{type:"LAYER_FILTER:APPLIED_FILTER",filter:e}}))}},lH={updateSpatialFilterValue:function(e){return e.ofType(yM.h).switchMap((function(e){var t=e.feature,n=e.srsName,r=e.style,o=e.options;return Bt.Observable.of(Object(gM.f)("drawOrEdit",t.geometry.type,"queryform",[t],{editEnabled:!1,stopAfterDrawing:!0,featureProjection:n},r)).concat(t&&o&&o.autoZoom?[Object(U.I)(Cz()(t),n)]:[])}))}},uH=n("./node_modules/url/url.js"),cH=n("./MapStore2/web/client/selectors/dimension.js");function dH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return"cql_filter"===e.toLowerCase()})),p=Object(FC.mergeFiltersToOGC)({ogcVersion:"1.1.0"},d,u,n.filterObj),f=function(e,t,n){var r=Object(Nz.A)(n),o=Object(cH.d)({id:r},"time")(n),i=Object(H.g)(n,r)||{},a=Object(se.get)(i,'params["time"]');if(Object(Nz.G)(n)&&o&&a){var s=Object(uH.parse)(e)||{};return{url:Object(uH.format)(pH(pH({},s),{},{query:pH(pH({},s.query),{},{time:a})})),options:t}}return{url:e,options:t}}(s,n.queryOptions||{},t.getState()),h=f.url,m=f.options,g=mH(mH({},n.filterObj.pagination),{},{totalFeatures:a,sortOptions:i},m);return qt.a.Observable.merge(Object(PM.b)(mH(mH({},l),{},{search:mH(mH({},l.search),{},{url:h})}),p,g).map((function(e){return Object(vM.y)(e,n.searchUrl,n.filterObj,n.queryOptions,n.reason)})).catch((function(e){return qt.a.Observable.of(Object(vM.x)(e))})).startWith(Object(vM.r)(!0)).concat(qt.a.Observable.of(Object(vM.r)(!1)))).takeUntil(e.ofType(vM.p))}))},xH=function(e,t){return e.ofType(yM.y,U.e).switchMap((function(e){var n=e.type===U.e?e:Object(K.k)(t.getState());if((e.type===yM.y||e.type===U.e&&"Viewport"===Object(Rz.j)(t.getState()))&&n.bbox&&n.bbox.bounds&&n.bbox.crs){var r=Object.keys(n.bbox.bounds).reduce((function(e,t){return oe()({},e,gH({},t,parseFloat(n.bbox.bounds[t])))}),{});return qt.a.Observable.of(Object(yM.ub)(Wo.default.getViewportGeometry(r,n.bbox.crs)))}return qt.a.Observable.empty()}))},_H=function(e,t){return e.ofType(vM.g).switchMap((function(){var e=t.getState(),n=Object(Rz.k)(e),r={type:"Feature",geometry:{type:Object(Rz.i)(e),coordinates:Object(Rz.f)(e)}},o=Object(Rz.h)(e)?Object(gM.f)("drawOrEdit",n.method||"","queryform",[r],{featureProjection:Object(Rz.g)(e),drawEnabled:!1,editEnabled:!1}):Object(gM.f)("clean",n.method||"","queryform",[],{drawEnabled:!1,editEnabled:!1});return qt.a.Observable.of(o)}))};function OH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:EH,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LAYER_FILTER:INIT_LAYER_FILTER":return SH(SH({},EH),{},{persisted:t.filter,applied:t.filter});case"LAYER_FILTER:DISCARD_CURRENT_FILTER":return SH(SH({},e),{},{applied:e.persisted});case"LAYER_FILTER:APPLIED_FILTER":return SH(SH({},e),{},{applied:t.filter});case"LAYER_FILTER:STORE_CURRENT_APPLIED_FILTER":return SH(SH({},e),{},{persisted:e.applied});case yM.n:return SH(SH({},e),{},{applied:void 0});default:return e}},TH=n("./MapStore2/web/client/reducers/query.js"),kH=n("./MapStore2/web/client/reducers/queryform.js");function AH(e){return(AH="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 PH(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uV(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wV=Object(Hn.a)(De.a),xV=function(e){var t=e.record,n=e.service,r=e.children,o=e.addLayer,i=void 0===o?function(){}:o,a=vV(e,["record","service","children","addLayer"]),s=yV(Object(u.useState)(!1),2),l=s[0],d=s[1];return c.a.createElement(wV,gV({disabled:l},a,{onClick:function(){var e;d(!0),(e=t.tileMapUrl,Tt.a.get(e).then((function(e){return new Promise((function(t){Et.a.parseString(e.data,{explicitArray:!1},(function(e,n){return t(n)}))}))}))).then((function(e){d(!1),i(Object(HM.i)(t,e,n))}))}}),l?c.a.createElement(tN.a,null):r)};function _V(){return(_V=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var SV=Object(Hn.a)(De.a),jV=function(e){var t=e.record,n=e.service,r=e.children,o=e.addLayer,i=void 0===o?function(){}:o,a=OV(e,["record","service","children","addLayer"]);return c.a.createElement(SV,_V({},a,{onClick:function(){i(Object(HM.h)(t,n))}}),r)},EV=n("./MapStore2/web/client/components/catalog/img/default.jpg"),CV=n.n(EV),TV=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js");function kV(e){return(kV="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 AV(e){return function(e){if(Array.isArray(e))return PV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return PV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PV(e,t)}(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 PV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&p.push(c.a.createElement(mV,{key:"sharing-links",popoverContainer:zV(e),links:h,onCopy:e.props.onCopy,buttonSize:e.props.buttonSize,addAuthentication:e.props.addAuthentication}))}return p})),qV(zV(e),"renderDescription",(function(t){if(!t)return null;var n=Object(ne.f)(e.context.messages,"catalog.notAvailable");return e.state.fullText&&t.metadataTemplate?c.a.createElement("div",{className:"catalog-metadata ql-editor"},c.a.createElement(oa.a,{html:Object(IU.parseCustomTemplate)(t.metadataTemplate,t.metadata,(function(e){return"".concat(Object(se.trim)(e.substring(2,e.length-1))," ").concat(n)}))})):t.metadataTemplate?"":Object(se.isArray)(t.description)?t.description.join(", "):t.description})),qV(zV(e),"isLinkCopied",(function(t){return e.state[t]})),qV(zV(e),"setLinkCopiedStatus",(function(t,n){e.setState(qV({},t,n))})),qV(zV(e),"getLayerFormat",(function(t){return 0===t.length||t.filter((function(t){return t===e.props.defaultFormat})).length>0?e.props.defaultFormat:t[0]})),qV(zV(e),"makeLayer",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e.props.defaultFormat],o=Object(HM.a)(n.SRS);if(n.SRS.length>0&&!Object(Wo.isAllowedSRS)(e.props.crs,o))return e.props.onError("catalog.srs_not_allowed"),null;var i=e.props.service&&e.props.service.localizedLayerStyles;return Object(HM.g)(e.props.record,t,IV({removeParams:e.props.authkeyParamNames},"wms"===t?{catalogURL:"csw"===e.props.catalogType&&e.props.catalogURL?e.props.catalogURL+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+e.props.record.identifier:null,format:e.getLayerFormat(r.filter((function(e){return 0===e.indexOf("image/")})))}:{format:e.getLayerFormat(r.filter((function(e){return 0===e.indexOf("image/")})))}),e.props.layerBaseConfig,i)})),qV(zV(e),"addLayer",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.background;if("backgroundSelector"===e.props.source)r?(e.props.onLayerAdd(IV(IV({},t),{},{group:"background"}),{source:e.props.source}),e.props.onAddBackground(t.id)):e.props.onAddBackgroundProperties({editing:!1,layer:t},!0);else{var o=e.props.zoomToLayer;e.props.onLayerAdd(t,{zoomToLayer:o})}})),qV(zV(e),"displayExpand",(function(){return(e.descriptionRuler?e.descriptionRuler.clientWidth:0)>(e.sideCardDesc?e.sideCardDesc.clientWidth:0)})),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=Object(ne.f)(this.context.messages,"catalog.notAvailable"),t=this.props.record;this.setState({visibleExpand:!this.props.hideExpand&&(this.displayExpand()||!!(this.props.showTemplate&&t&&t.metadataTemplate&&Object(IU.parseCustomTemplate)(t.metadataTemplate,t.metadata,(function(t){return"".concat(Object(se.trim)(t.substring(2,t.length-1))," ").concat(e)}))))})}},{key:"UNSAFE_componentWillMount",value:function(){document.addEventListener("click",this.handleClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClick,!1)}},{key:"render",value:function(){var e=this,t=this.props.record,n=Object(HM.d)(t),r=n.wms,o=n.wmts,i=n.tms,a=n.wfs,s=Object(HM.c)(t).esri,l=t&&"tileprovider"===t.type&&t.provider,u=t&&t.background,d=u&&Object(se.head)((this.props.layers||[]).filter((function(e){return e.id===u.name||e.type===u.type&&e.source===u.source&&e.name===u.name})));return t?c.a.createElement("div",null,c.a.createElement(HA.a,{style:{transform:"none",opacity:d?.4:1},fullText:this.state.fullText,preview:!this.props.hideThumbnail&&this.renderThumb(t&&t.thumbnail||u&&TV.a[u.source][u.name],t),title:t&&this.getTitle(t.title),description:c.a.createElement("span",null,c.a.createElement("div",{className:!0,ref:function(t){e.sideCardDesc=t}},this.renderDescription(t))),caption:c.a.createElement("div",null,!this.props.hideIdentifier&&c.a.createElement("div",{className:"identifier"},t&&t.identifier),c.a.createElement("div",null,!r&&!o&&!s&&!u&&!i&&!l&&!a&&c.a.createElement("small",{className:"text-danger"},c.a.createElement(b.default,{msgId:"catalog.missingReference"}))),!this.props.hideExpand&&c.a.createElement("div",{className:"ms-ruler",style:{visibility:"hidden",height:0,whiteSpace:"nowrap",position:"absolute"},ref:function(t){e.descriptionRuler=t}},this.renderDescription(t))),tools:c.a.createElement(qo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},btnGroupProps:{style:{margin:10}},buttons:[].concat(AV((t&&this.renderButtons(t,d)||[]).map((function(e){return{Element:function(){return e}}}))),[{glyph:this.state.fullText?"chevron-down":"chevron-left",visible:this.state.visibleExpand,tooltipId:this.state.fullText?"collapse":"expand",onClick:function(){return e.setState({fullText:!e.state.fullText})}}])})})):null}}])&&NV(t.prototype,n),r&&NV(t,r),i}(c.a.Component);qV(GV,"propTypes",{addAuthentication:p.a.bool,authkeyParamNames:p.a.array,buttonSize:p.a.string,catalogURL:p.a.string,catalogType:p.a.string,crs:p.a.string,currentLocale:p.a.string,hideThumbnail:p.a.bool,hideExpand:p.a.bool,hideIdentifier:p.a.bool,layerBaseConfig:p.a.object,onCopy:p.a.func,onError:p.a.func,onLayerAdd:p.a.func,record:p.a.object,showGetCapLinks:p.a.bool,zoomToLayer:p.a.bool,onPropertiesChange:p.a.func,onLayerChange:p.a.func,layers:p.a.array,onAdd:p.a.func,source:p.a.string,onAddBackgroundProperties:p.a.func,deletedId:p.a.string,clearModal:p.a.func,service:p.a.service,showTemplate:p.a.bool,defaultFormat:p.a.string,formatOptions:p.a.array}),qV(GV,"defaultProps",{buttonSize:"small",crs:"EPSG:3857",currentLocale:"en-US",onAddBackgroundProperties:function(){},hideThumbnail:!1,hideIdentifier:!1,hideExpand:!1,layerBaseConfig:{},onCopy:function(){},onError:function(){},onLayerAdd:function(){},onPropertiesChange:function(){},onLayerChange:function(){},clearModal:function(){},style:{},showGetCapLinks:!1,zoomToLayer:!0,layers:[],onAdd:function(){},source:"metadataExplorer",showTemplate:!1,changeLayerProperties:function(){},defaultFormat:"image/png"}),qV(GV,"contextTypes",{messages:p.a.object});var HV=GV;function VV(e){return(VV="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 WV(){return(WV=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.services,r=t.selectedService,o=t.start,i=void 0===o?1:o,a=t.searchText,s=void 0===a?"":a,l=n[r].url,u=n[r].type;e.props.onSearch({format:u,url:l,startPosition:i,maxRecords:e.props.pageSize,text:s||"",options:{service:e.props.services[r]}})})),hW(pW(e),"reset",(function(){e.props.onReset()})),hW(pW(e),"handlePage",(function(t){if(t){var n=(t-1)*e.props.pageSize+1;e.search({services:e.props.services,selectedService:e.props.selectedService,start:n,searchText:e.props.searchText})}})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.selectedService&&this.isValidServiceSelected()&&this.props.services[this.props.selectedService].autoload&&this.search({services:this.props.services,selectedService:this.props.selectedService,searchText:this.props.searchText})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e!==this.props&&(("view"===e.mode&&"edit"===this.props.mode||e.services!==this.props.services||e.selectedService!==this.props.selectedService)&&e.active&&this.props.active&&e.selectedService&&e.services[e.selectedService]&&e.services[e.selectedService].autoload&&this.search({services:e.services,selectedService:e.selectedService,searchText:e.searchText}),e.active&&!1===this.props.active&&e.selectedService&&e.services[e.selectedService]&&e.services[e.selectedService].autoload&&this.search({services:e.services,selectedService:e.selectedService,searchText:e.searchText}))}},{key:"render",value:function(){var e=this;return c.a.createElement(Bo.a,{key:"catalog-BorderLayout",bodyClassName:"ms2-border-layout-body catalog",header:c.a.createElement(v.Form,null,c.a.createElement(v.FormGroup,{controlId:"labelService",key:"labelService"},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.service"}))),c.a.createElement(v.FormGroup,{controlId:"service",key:"service"},c.a.createElement(v.InputGroup,null,c.a.createElement(Uo.default,{clearValueText:Object(ne.f)(this.context.messages,"catalog.clearValueText"),noResultsText:Object(ne.f)(this.context.messages,"catalog.noResultsText"),clearable:!0,options:this.getServices(),value:this.props.selectedService,onChange:function(t){return e.props.onChangeSelectedService(t&&t.value?t.value:"")},placeholder:Object(ne.f)(this.context.messages,"catalog.servicePlaceholder")}),this.isValidServiceSelected()&&"default_map_backgrounds"!==this.props.selectedService?c.a.createElement(v.InputGroup.Addon,{className:"btn",onClick:function(){return e.props.onChangeCatalogMode("edit",!1)}},c.a.createElement(v.Glyphicon,{glyph:"pencil"})):null,c.a.createElement(v.InputGroup.Addon,{className:"btn",onClick:function(){return e.props.onChangeCatalogMode("edit",!0)}},c.a.createElement(v.Glyphicon,{glyph:"plus"})))),c.a.createElement(v.FormGroup,{controlId:"searchText",key:"searchText"},this.renderTextSearch()),c.a.createElement(v.FormGroup,{controlId:"buttons",key:"buttons"},this.renderButtons(),this.props.layerError?this.renderError(this.props.layerError):null)),footer:this.renderPagination()},this.props.loading?this.renderLoading():this.renderResult())}}])&&lW(t.prototype,n),r&&lW(t,r),i}(c.a.Component);hW(mW,"propTypes",{active:p.a.bool,searchText:p.a.string,addAuthentication:p.a.bool,buttonClassName:p.a.string,buttonStyle:p.a.object,currentLocale:p.a.string,loading:p.a.bool,format:p.a.string,crs:p.a.string,gridOptions:p.a.object,includeSearchButton:p.a.bool,includeResetButton:p.a.bool,loadingError:p.a.object,layerError:p.a.string,mode:p.a.string,onChangeCatalogMode:p.a.func,onChangeText:p.a.func,onChangeFormat:p.a.func,onChangeSelectedService:p.a.func,onPropertiesChange:p.a.func,onError:p.a.func,onLayerAdd:p.a.func,onReset:p.a.func,onSearch:p.a.func,onAddBackground:p.a.func,pageSize:p.a.number,records:p.a.array,authkeyParamNames:p.a.array,recordItem:p.a.element,result:p.a.object,searchOptions:p.a.object,selectedService:p.a.string,services:p.a.object,showGetCapLinks:p.a.bool,wrapOptions:p.a.bool,zoomToLayer:p.a.bool,hideThumbnail:p.a.bool,hideIdentifier:p.a.bool,hideExpand:p.a.bool,source:p.a.string,onAddBackgroundProperties:p.a.func,modalParams:p.a.object,layers:p.a.array,clearModal:p.a.func,formatOptions:p.a.array,layerBaseConfig:p.a.object}),hW(mW,"contextTypes",{messages:p.a.object}),hW(mW,"defaultProps",{buttonClassName:"search-button",buttonStyle:{marginBottom:"10px",marginRight:"5px"},currentLocale:"en-US",format:"csw",includeSearchButton:!0,includeResetButton:!1,mode:"view",onChangeCatalogMode:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeSelectedService:function(){},onPropertiesChange:function(){},onError:function(){},onLayerAdd:function(){},onReset:function(){},onSearch:function(){},changeLayerProperties:function(){},pageSize:4,records:[],loading:!1,services:{},wrapOptions:!1,zoomToLayer:!0,formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],layerBaseConfig:{},crs:"EPSG:3857"});var gW=mW,yW=function(e){var t=e.children,n=e.service,r=e.isLocalizedLayerStylesEnabled,o=e.onChangeMetadataTemplate,i=void 0===o?function(){}:o,a=e.onChangeServiceProperty,s=void 0===a?function(){}:a,l=e.onToggleTemplate,u=void 0===l?function(){}:l,d=e.onToggleThumbnail,p=void 0===d?function(){}:d;return c.a.createElement("div",null,c.a.createElement(v.FormGroup,{controlId:"autoload",key:"autoload"},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Checkbox,{value:"autoload",onChange:function(e){return s("autoload",e.target.checked)},checked:!Object(se.isNil)(n.autoload)&&n.autoload},c.a.createElement(b.default,{msgId:"catalog.autoload"})))),c.a.createElement(v.FormGroup,{controlId:"thumbnail",key:"thumbnail"},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Checkbox,{onChange:function(){return p()},checked:!!Object(se.isNil)(n.hideThumbnail)||!n.hideThumbnail},c.a.createElement(b.default,{msgId:"catalog.showPreview"})))),!(!r||Object(se.isNil)(n.type))&&"wms"===n.type&&c.a.createElement(v.FormGroup,{controlId:"localized-styles",key:"localized-styles"},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Checkbox,{"data-qa":"service-lacalized-layer-styles-option",onChange:function(e){return s("localizedLayerStyles",e.target.checked)},checked:!Object(se.isNil)(n.localizedLayerStyles)&&n.localizedLayerStyles},c.a.createElement(b.default,{msgId:"catalog.enableLocalizedLayerStyles.label"})," ",c.a.createElement(sj.a,{text:c.a.createElement(b.default,{msgId:"catalog.enableLocalizedLayerStyles.tooltip"})})))),!Object(se.isNil)(n.type)&&"csw"===n.type&&c.a.createElement(v.FormGroup,{controlId:"metadata-template",key:"metadata-template",className:"metadata-template-editor"},c.a.createElement(v.Col,{xs:12},c.a.createElement(v.Checkbox,{onChange:function(){return u()},checked:n&&n.showTemplate},c.a.createElement(b.default,{msgId:"catalog.showTemplate"})),c.a.createElement("br",null)),n&&n.showTemplate&&c.a.createElement(v.Col,{xs:12},c.a.createElement("span",null,c.a.createElement("p",null,c.a.createElement(b.default,{msgId:"layerProperties.templateFormatInfoAlert2",msgParams:{attribute:"{ }"}}),"  "),c.a.createElement("pre",null,c.a.createElement(b.default,{msgId:"catalog.templateFormatDescriptionExample"})," ${ description }"))),c.a.createElement(v.Col,{xs:12},n&&n.showTemplate&&c.a.createElement(w_.a,{modules:{toolbar:[[{size:["small",!1,"large","huge"]},"bold","italic","underline","blockquote"],[{list:"bullet"},{align:[]}],[{color:[]},{background:[]},"clean"],["link"]]},value:n.metadataTemplate||"",onChange:function(e){i(e&&"


"!==e?e:"")}}))),t)};n("./node_modules/codemirror/addon/lint/lint.js"),n("./node_modules/codemirror/addon/lint/json-lint.js"),n("./node_modules/codemirror/mode/javascript/javascript.js");function bW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vW(e,t)}(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 vW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jW=function(e){return e.map((function(e){return{label:"".concat(e,"x").concat(e),value:e}}))},EW=function(e){var t,n=e.service,r=e.formatOptions,o=e.onChangeServiceFormat,i=void 0===o?function(){}:o,a=e.onChangeServiceProperty,s=void 0===a?function(){}:a,l=e.tileSizeOptions,u=(e.currentWMSCatalogLayerSize,e.selectedService,SW(e,["service","formatOptions","onChangeServiceFormat","onChangeServiceProperty","tileSizeOptions","currentWMSCatalogLayerSize","selectedService"])),d=jW(l);return c.a.createElement(yW,OW({onChangeServiceProperty:s,service:n},u),c.a.createElement(v.FormGroup,{style:{display:"flex",alignItems:"center",paddingTop:15,borderTop:"1px solid #ddd"}},c.a.createElement(v.Col,{xs:6},c.a.createElement(v.ControlLabel,null,"Format")),c.a.createElement(v.Col,{xs:6},c.a.createElement(Uo.default,{value:n&&n.format,clearable:!0,options:r,onChange:function(e){return i(e&&e.value)}}))),c.a.createElement(v.FormGroup,{style:{display:"flex",alignItems:"center",paddingTop:15,borderTop:"1px solid #ddd"}},c.a.createElement(v.Col,{xs:6},c.a.createElement(v.ControlLabel,null,"WMS Layer tile size")),c.a.createElement(v.Col,{xs:6},c.a.createElement(Uo.default,{value:jW([(null===(t=n.layerOptions)||void 0===t?void 0:t.tileSize)||256])[0],options:d,onChange:function(e){return s("layerOptions",{tileSize:e&&e.value})}}))))};function CW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var TW=function(e){var t=e.onToggleAdvancedSettings,n=void 0===t?function(){}:t,r=CW(e,["onToggleAdvancedSettings"]),o=r.service,i=void 0===o?{}:o,a=function(e){switch(e){case"tms":return _W;case"wmts":case"wfs":return yW;case"wms":case"csw":return EW;default:return yW}}(i.type);return c.a.createElement(uT.a,{useToolbar:!0,title:c.a.createElement(b.default,{msgId:"catalog.advancedSettings"}),expanded:!Object(se.isNil)(i.showAdvancedSettings)&&i.showAdvancedSettings,onSwitch:n},c.a.createElement(a,r))};function kW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return AW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AW(e,t)}(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 AW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0})),g=l===RW?l:null==l||null===(t=l.provider)||void 0===t||null===(n=t.split)||void 0===n||null===(r=n.call(t,"."))||void 0===r?void 0:r[0],y=!g||g===NW,w=g===RW,x=w||y;return c.a.createElement(v.FormGroup,null,c.a.createElement(v.Col,{xs:12,sm:y?3:12,md:x?3:12},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.tms.provider"})),c.a.createElement(DW,{onChange:function(e){var t=e.target.value;a("provider","".concat(t)),t!==NW&&t!==RW?f(t):y||w||f("")},value:g,componentClass:"select"},[NW,RW].concat(MW(m)).map((function(e){return{name:e,label:FW(e)}})).map((function(e){return c.a.createElement("option",{value:e.name,key:e.name},e.label)})))),c.a.createElement(v.Col,{xs:12,sm:9,md:9},y?c.a.createElement(c.a.Fragment,null,c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.tms.urlTemplate"}),"  ",c.a.createElement(sj.a,{text:c.a.createElement(qS.a,{msgId:"catalog.tms.urlTemplateHint"})})),c.a.createElement(DW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:"e.g. https://{s}.myUrl.com/{variant}/{z}/{x}/{y}",value:l&&l.url,onChange:function(e){return d(e.target.value)}})):w?c.a.createElement(c.a.Fragment,null,c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.url"})),c.a.createElement(DW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:PW(l),value:l&&l.url,onChange:function(e){return d(e.target.value)}})):null))},BW=function(e){var t=e.service,n=void 0===t?{}:t,r=e.serviceTypes,o=e.onChangeTitle,i=e.onChangeUrl,a=e.onChangeServiceProperty,s=e.onChangeType,l="tms"===n.type?zW:LW;return c.a.createElement(v.Form,{horizontal:!0},c.a.createElement(v.FormGroup,{controlId:"title",key:"type-title-row"},c.a.createElement(v.Col,{key:"type",xs:12,sm:3,md:3},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.type"})),c.a.createElement(DW,{onChange:function(e){return s(e.target.value)},value:n&&n.type,componentClass:"select"},r.map((function(e){return c.a.createElement("option",{value:e.name,key:e.name},e.label)})))),c.a.createElement(v.Col,{key:"title",xs:12,sm:9,md:9},c.a.createElement(v.ControlLabel,null,c.a.createElement(b.default,{msgId:"catalog.serviceTitle"})),c.a.createElement(DW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:"catalog.serviceTitlePlaceholder",value:n&&n.title,onChange:function(e){return o(e.target.value)}}))),c.a.createElement(l,{key:"url-row",serviceTypes:r,service:n,onChangeUrl:i,onChangeTitle:o,onChangeServiceProperty:a}))};n("./node_modules/react-select/dist/react-select.css"),n("./node_modules/react-quill/dist/quill.snow.css");function qW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UW(e,t)}(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 UW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r:e.props.width,position:"right",bsStyle:"primary",title:c.a.createElement(b.default,{msgId:"catalog.title"}),onClose:function(){return e.props.closeCatalog()},glyph:"folder-open",zIndex:1031,style:e.props.dockStyle},c.a.createElement(v.Panel,{id:e.props.id,style:e.props.panelStyle,className:e.props.panelClassName},n))})))}}])&&YW(t.prototype,n),r&&YW(t,r),i}(c.a.Component);eY(rY,"propTypes",{id:p.a.string,source:p.a.string,active:p.a.bool,searchOnStartup:p.a.bool,serviceTypes:p.a.array,wrap:p.a.bool,wrapWithPanel:p.a.bool,panelStyle:p.a.object,panelClassName:p.a.string,closeCatalog:p.a.func,closeGlyph:p.a.string,buttonStyle:p.a.object,services:p.a.object,servicesWithBackgrounds:p.a.object,selectedService:p.a.string,style:p.a.object,dockProps:p.a.object,zoomToLayer:p.a.bool,isLocalizedLayerStylesEnabled:p.a.bool,width:p.a.number,dockStyle:p.a.object,group:p.a.string}),eY(rY,"defaultProps",{id:"mapstore-metadata-explorer",serviceTypes:[{name:"csw",label:"CSW"},{name:"wms",label:"WMS"},{name:"wmts",label:"WMTS"},{name:"tms",label:"TMS",allowedProviders:["OpenStreetMap","OpenSeaMap","Stamen"]},{name:"wfs",label:"WFS"}],active:!1,wrap:!1,modal:!0,wrapWithPanel:!1,panelStyle:{zIndex:100,overflow:"hidden",height:"100%"},panelClassName:"catalog-panel",closeCatalog:function(){},closeGlyph:"1-close",zoomToLayer:!0,width:660,dockProps:{dimMode:"none",fluid:!1,position:"right",zIndex:1030},dockStyle:{},group:null,services:{},servicesWithBackgrounds:{}});var oY=Object(f.connect)(tY,{clearModal:VH.s,onSearch:ue.bb,onLayerAdd:ue.D,closeCatalog:ue.G,onChangeFormat:ue.H,onChangeServiceFormat:ue.L,onChangeUrl:ue.Q,onChangeType:ue.P,onChangeTitle:ue.O,onChangeMetadataTemplate:ue.J,onChangeText:ue.N,onChangeServiceProperty:ue.M,onChangeSelectedService:ue.K,onChangeCatalogMode:ue.I,onAddService:ue.F,onToggleAdvancedSettings:ue.cb,onToggleThumbnail:ue.eb,onToggleTemplate:ue.db,onDeleteService:ue.S,onError:ue.E,onAddBackgroundProperties:VH.o,onFocusServicesList:ue.T,onPropertiesChange:x.H,onAddBackground:VH.q,onToggle:w.h.bind(null,"backgroundSelector",null),onLayerChange:w.g.bind(null,"backgroundSelector"),onStartChange:w.g.bind(null,"backgroundSelector","start")})(rY),iY={MetadataExplorerPlugin:oe()(oY,{BurgerMenu:{name:"metadataexplorer",position:5,text:c.a.createElement(b.default,{msgId:"catalog.title"}),icon:c.a.createElement(v.Glyphicon,{glyph:"folder-open"}),action:w.g.bind(null,"metadataexplorer","enabled",!0,!0),doNotHide:!0},BackgroundSelector:{name:"MetadataExplorer",doNotHide:!0},TOC:{name:"MetadataExplorer",doNotHide:!0}}),reducers:{catalog:n("./MapStore2/web/client/reducers/catalog.js").default},epics:n("./MapStore2/web/client/epics/catalog.js").default(On)},aY=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function sY(e){return(sY="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 lY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uY(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.active;return!t}),(function(){return function(){return null}})),Object(f.connect)(Object(R.a)([ej.r,ej.n,ej.j,ej.f,$.d,ej.b,ej.s],(function(e,t,n,r,o,i,a){return{isEditing:"edit"===e,loading:t,layer:n,error:!(!r||!r.availableStyles),userRole:o,canEdit:i,styleService:a}})),{onInit:Yi.w,onUpdateParams:x.eb},(function(e,t,n){var r,o,i,a=(null===(r=n.styleService)||void 0===r?void 0:r.baseUrl)===(null===(o=e.styleService)||void 0===o?void 0:o.baseUrl)&&(null===(i=e.styleService)||void 0===i?void 0:i.isStatic),s=n.styleService&&!a?wY(wY({},n.styleService),{},{isStatic:!0}):wY({},e.styleService);return wY(wY(wY(wY({},n),e),t),{},{styleService:s})})),Object(cO.a)((function(e){return e.error}),{glyph:"exclamation-mark",title:c.a.createElement(qS.a,{msgId:"styleeditor.missingAvailableStyles"}),description:c.a.createElement(qS.a,{msgId:"styleeditor.missingAvailableStylesMessage"}),style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},mainViewStyle:{margin:"auto",width:300}}),Object(uO.a)((function(e){return"global"===e.loading}),{size:150,style:{margin:"auto"}},(function(e){return c.a.createElement("div",{style:{position:"relative",height:"100%",display:"flex"}},c.a.createElement(TS.a,e))})),Object(L.compose)(Object(f.connect)((function(){return{}}),{toggleStyleEditor:Yi.D}),Object(L.lifecycle)({componentDidMount:function(){this.props.toggleStyleEditor(null,!0)}})))(TY),AY={StyleEditorPlugin:oe()(kY,{TOC:{priority:1,container:"TOCItemSettings"},TOCItemsSettings:{name:"StyleEditor",target:"style",priority:1,ToolbarComponent:qA}}),reducers:{styleeditor:n("./MapStore2/web/client/reducers/styleeditor.js").default},epics:n("./MapStore2/web/client/epics/styleeditor.js").default},PY=n("./MapStore2/web/client/plugins/Timeline.jsx"),MY=n("./MapStore2/web/client/plugins/Playback.jsx");var IY=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),DY=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");var NY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{enabled:!0,position:null,crs:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CHANGE_MOUSE_POSITION_STATE":return oe()({},e,{enabled:t.enabled});case"CHANGE_MOUSE_POSITION":return oe()({},e,{position:t.position});case"CHANGE_MOUSE_POSITION_CRS":return oe()({},e,{crs:t.crs});case U.l:return oe()({},e,{position:t.position,mouseOut:!1});case U.m:return oe()({},e,{mouseOut:!0});default:return e}};function RY(e){return(RY="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 LY(){return(LY=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BY(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.menuItems,n=void 0===t?[]:t,r=e.disabled,o=void 0!==r&&r;return c.a.createElement(aK,iK({disabled:o},sK,lK),n.length?n.map((function(e){return e})):null)},cK=function(e){var t=e.className,n=e.style,r=e.children;return c.a.createElement("div",{id:"map-search-bar",style:n,className:"MapSearchBar"+(t?" "+t:"")},r)};function dK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pK(e,t)}(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 pK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&k(a[a.length-1])}},onBlur:function(){h&&(N&&clearTimeout(N),R(setTimeout((function(){P()}),O)))},onFocus:function(){b&&g&&j()},onChange:function(e){var t=e.target.value;C(t),b&&(F&&clearTimeout(F),z(setTimeout((function(){U(!0)}),x)))}})};fK.contextTypes={messages:p.a.object};var hK=fK;function mK(){return(mK=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:12;e({x:parseFloat(t.lon),y:parseFloat(t.lat)},n,"EPSG:4326")},coordinateFormatChange:function(e,t,n,r){return{buttonConfig:{title:c.a.createElement(v.Glyphicon,{glyph:"cog"}),tooltipId:"search.changeSearchInputField",tooltipPosition:"bottom",className:"square-button-md no-border",pullRight:!0},menuOptions:[{active:"decimal"===e,onClick:function(){return t("decimal")},text:c.a.createElement(b.default,{msgId:"search.decimal"})},{active:"aeronautical"===e,onClick:function(){return t("aeronautical")},text:c.a.createElement(b.default,{msgId:"search.aeronautical"})}],visible:n&&"coordinatesSearch"===r,Element:PK.a}},removeIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e&&(Object(se.isNumber)(t.lon)||Object(se.isNumber)(t.lat)),onClick:function(){return MK.clearCoordinates(n,r)}}},searchIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e,onClick:function(){"coordinatesSearch"===e&&MK.areValidCoordinates(t)&&MK.zoomToPoint(n,t,r)}}},coordinatesMenuItem:function(e){var t=e.activeTool,n=e.searchText,r=e.clearSearch,o=e.onChangeActiveSearchTool,i=e.onClearBookmarkSearch;return c.a.createElement(v.MenuItem,{active:"coordinatesSearch"===t,onClick:function(){void 0!==n&&""!==n&&r(),i("selected"),o("coordinatesSearch"),document.dispatchEvent(new MouseEvent("click"))}},c.a.createElement(v.Glyphicon,{glyph:"search-coords"})," ",c.a.createElement(b.default,{msgId:"search.coordinatesSearch"}))}},IK=function(e){var t=e.coordinate,n=void 0===t?{}:t,r=e.format,o=e.onClearCoordinatesSearch,i=e.onZoomToPoint,a=e.onChangeCoord,s=e.defaultZoomLevel,l=e.aeronauticalOptions,u=void 0===l?{seconds:{decimals:4,step:1e-4}}:l,d=e.constraintsCoordEditor,p=void 0===d?{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}}:d,f=MK.zoomToPoint,h=MK.areValidCoordinates,m=function(e,t){var n=isNaN(parseFloat(t))?"":parseFloat(t);a(e,n),h()||o({owner:"search"})},g=function(){f(i,n,s)};return c.a.createElement("div",{className:"coordinateEditor",style:{flexWrap:"decimal"===r?"nowrap":"wrap"}},c.a.createElement(v.Row,{className:"entryRow ".concat(r)},c.a.createElement(v.FormGroup,null,c.a.createElement(v.InputGroup,null,c.a.createElement(v.InputGroup.Addon,{style:{minWidth:45}},c.a.createElement(b.default,{msgId:"search.latitude"})),c.a.createElement(AK.a,{format:r,aeronauticalOptions:u,coordinate:"lat",idx:1,value:n.lat,constraints:p,onChange:function(e){return m("lat",e)},onKeyDown:function(){h(n)&&g()}})))),c.a.createElement(v.Row,{className:"entryRow ".concat(r)},c.a.createElement(v.FormGroup,null,c.a.createElement(v.InputGroup,null,c.a.createElement(v.InputGroup.Addon,{style:{minWidth:45}},c.a.createElement(b.default,{msgId:"search.longitude"})),c.a.createElement(AK.a,{format:r,aeronauticalOptions:u,coordinate:"lon",idx:2,value:n.lon,constraints:p,onChange:function(e){return m("lon",e)},onKeyDown:function(){h(n)&&g()}})))))};IK.propTypes={coordinate:p.a.object,format:p.a.string,onClearCoordinatesSearch:p.a.func,onZoomToPoint:p.a.func,onChangeCoord:p.a.func,defaultZoomLevel:p.a.number};var DK=Object(f.connect)((function(e){return{coordinate:e.search.coordinate||{}}}),{onZoomToPoint:rK.L,onChangeCoord:rK.w})(IK);function NK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RK(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qK(e){return(qK="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 UK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rK.i:return oe()({},e,{loading:t.loading});case rK.g:return oe()({},e,{error:t.error});case rK.q:return oe()({},e,{searchText:t.searchText,error:null});case rK.l:var n=t.results;return!0===t.append&&e&&e.results&&(n=[].concat(OX(e.results),OX(t.results))),oe()({},e,{results:n,error:null});case rK.m:return oe()({},e,{results:null,error:null});case rK.e:return oe()({},e,{markerPosition:t.markerPosition,markerLabel:t.markerLabel});case rK.n:return oe()({},e,{highlightedFeature:t.highlightedFeature});case rK.k:return{style:e.style||{}};case w.a:return null;case rK.j:return oe()({},e,{selectedServices:t.services,searchText:t.searchText,selectedItems:(e.selectedItems||[]).concat(t.items)});case rK.f:return oe()({},{selectedItems:e.selectedItems&&e.selectedItems.filter((function(e){return e!==t.item})),searchText:""===e.searchText&&t.item&&t.item.text?t.item.text.substring(0,t.item.text.length):e.searchText});case rK.r:return oe()({},e,{style:t.style});case rK.c:return xX(xX({},e),{},{activeSearchTool:t.activeSearchTool});case rK.b:return xX(xX({},e),{},{format:t.format});case rK.a:return xX(xX({},e),{},{coordinate:xX(xX({},e.coordinate),{},_X({},t.coord,t.val))});default:return e}};function EX(e){return(EX="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 CX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TX(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e.reduce((function(e,n){var r;return e+((null==n||null===(r=n.options)||void 0===r?void 0:r.maxFeatures)||t)}),0)||t}(null==r?void 0:r.services,o);void 0!==e&&""!==e||n&&0!==n.length?void 0!==e&&""!==e&&a(e,r,i):l()}}({searchText:f,selectedItems:E,searchOptions:g,maxResults:m,onSearch:Y,onSearchReset:K}),ye=function(){K()},be=[];if(U&&be.push(c.a.createElement(v.MenuItem,{active:"addressSearch"===r,onClick:function(){ne({owner:"search"}),de("selected"),ee("addressSearch")}},c.a.createElement(v.Glyphicon,{glyph:s})," ",c.a.createElement(b.default,{msgId:"search.addressSearch"}))),H&&be.push(c.a.createElement(MK.coordinatesMenuItem,{activeTool:r,searchText:f,clearSearch:ye,onChangeActiveSearchTool:ee,onClearBookmarkSearch:de})),W&&!Object(se.isEmpty)(he)){var ve,we=me.bookmarkConfig||{},xe=we.allowUser,_e=we.bookmarkSearchConfig,Oe=FK(he,1)[0];if(Object(se.some)(he,"menuItem")){var Se=Oe.menuItem;be.push(c.a.createElement(Se,null))}Object(se.some)(he,"bookmarkConfig")&&(t=RK(RK({},Oe.bookmarkConfig(ae,M,r)),!xe&&{visible:!1})),xe||0!==(null==_e||null===(ve=_e.bookmarks)||void 0===ve?void 0:ve.length)||"bookmarkSearch"!==r||ee("addressSearch")}var je;return c.a.createElement(cK,null,c.a.createElement(v.FormGroup,null,c.a.createElement("div",{className:"input-group",style:{display:"flex"}},E&&E.map((function(e,t){return c.a.createElement("span",{key:"selected-item"+t,className:"input-group-addon"},c.a.createElement("div",{className:"selectedItem-text"},e.text))})),c.a.createElement(hK,{show:"addressSearch"===r,delay:w,typeAhead:_,blurResetDelay:x,placeholder:R,placeholderMsgId:F,searchText:f,selectedItems:E,onSearch:ge,onSearchTextChange:X,onCancelSelectedItem:Z,onPurgeResults:pe}),"coordinatesSearch"===r&&H&&c.a.createElement(DK,{format:N,defaultZoomLevel:T,onClearCoordinatesSearch:ne}),"bookmarkSearch"===r&&W&&c.a.createElement(kK,{mapInitial:me.mapInitial}),c.a.createElement(vK,{splitTools:!1,toolbarButtons:[RK({},function(){if("addressSearch"===r)return{onClick:function(){A||ae("searchservicesconfig")},glyph:"cog",className:"square-button-md no-border ",tooltip:c.a.createElement(b.default,{msgId:"search.searchservicesbutton"}),tooltipPosition:"bottom",bsStyle:"default",pullRight:!0,visible:B&&"addressSearch"===r};if(B){if("coordinatesSearch"===r)return MK.coordinateFormatChange(N,oe,B,r);if("bookmarkSearch"===r)return t}return{}}()),RK({glyph:i,className:"square-button-md no-border",bsStyle:"default",pullRight:!0,loading:!Object(se.isUndefined)(y)&&y,visible:"addressSearch"===r&&(""!==f||E&&E.length>0),onClick:function(){"addressSearch"===r&&ye()}},"coordinatesSearch"===r&&MK.removeIcon(r,S,ne,$)),RK(RK({glyph:s,className:"square-button-md no-border "+(u||"addressSearch"!==r?"magnifying-glass clickable":"magnifying-glass"),bsStyle:"default",pullRight:!0,tooltipPosition:"bottom",visible:!("addressSearch"!==r||(""!==f||E&&E.length>0)&&d),onClick:function(){return u&&ge()}},"coordinatesSearch"===r&&MK.searchIcon(r,S,ue,T)),"bookmarkSearch"===r&&CK.searchIcon(r,me)),{tooltip:(je=I,je?c.a.createElement(b.default,{msgId:je.msgId||"search.generic_error",msgParams:{message:je.message,serviceType:je.serviceType}}):null),tooltipPosition:"bottom",className:"square-button-md no-border",glyph:"warning-sign",bsStyle:"danger",glyphClassName:"searcherror",visible:!!I,onClick:ye},{visible:B,renderButton:c.a.createElement(uK,{disabled:B,menuItems:be})}]}))))})),$X=Object(R.a)([K.k,H.p,function(e){return e.search||null}],(function(e,t,n){return{mapConfig:e,layers:t,results:n?n.results:null}})),JX=Object(f.connect)($X,{onItemClick:rK.G,addMarker:rK.t,showGFI:rK.I})(lX),eZ=Object(f.connect)((function(e){return{enabled:e.controls&&e.controls.search&&e.controls.search.enabled||!1,selectedServices:e&&e.search&&e.search.selectedServices,selectedItems:e&&e.search&&e.search.selectedItems,textSearchConfig:e&&e.searchconfig&&e.searchconfig.textSearchConfig}}),{onUpdateResultsStyle:rK.K})((RX=NX=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&&HX(e,t)}(i,e);var t,n,r,o=VX(i);function i(){var e;UX(this,i);for(var t=arguments.length,n=new Array(t),r=0;r0?r.override?oe()({},n,{services:r.services}):oe()({},n,{services:n.services.concat(r.services)}):n})),XX(YX(e),"getCurrentServices",(function(){var t=e.props.selectedServices,n=e.getSearchOptions();return t&&t.length>0?oe()({},n,{services:t}):n})),XX(YX(e),"getSearchAndToggleButton",(function(){var t=c.a.createElement(QX,qX({key:"searchBar"},e.props,{searchOptions:e.getCurrentServices(),placeholder:e.getServiceOverrides("placeholder"),placeholderMsgId:e.getServiceOverrides("placeholderMsgId")}));return!0===e.props.withToggle?[c.a.createElement(LX,null)].concat(e.props.enabled?[t]:null):Object(se.isArray)(e.props.withToggle)?c.a.createElement("span",null,c.a.createElement(nK.a,{query:"("+e.props.withToggle[0]+")"},c.a.createElement(LX,null),e.props.enabled?t:null),c.a.createElement(nK.a,{query:"("+e.props.withToggle[1]+")"},t)):t})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.onUpdateResultsStyle(BX(BX({},$K.a),this.props.resultsStyle))}},{key:"render",value:function(){return c.a.createElement("span",null,this.getSearchAndToggleButton(),c.a.createElement(JX,{fitToMapSize:this.props.fitResultsToMapSize,searchOptions:this.props.searchOptions,onUpdateResultsStyle:this.props.onUpdateResultsStyle,key:"nominatimresults"}))}}])&&GX(t.prototype,n),r&&GX(t,r),i}(c.a.Component),XX(NX,"propTypes",{splitTools:p.a.bool,showOptions:p.a.bool,isSearchClickable:p.a.bool,fitResultsToMapSize:p.a.bool,searchOptions:p.a.object,resultsStyle:p.a.object,selectedItems:p.a.array,selectedServices:p.a.array,userServices:p.a.array,withToggle:p.a.oneOfType([p.a.bool,p.a.array]),enabled:p.a.bool,textSearchConfig:p.a.object}),XX(NX,"defaultProps",{searchOptions:{services:[{type:"nominatim",priority:5}]},isSearchClickable:!1,splitTools:!0,resultsStyle:{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2},fitResultsToMapSize:!0,withToggle:!1,enabled:!0}),RX)),tZ={SearchPlugin:oe()(eZ,{OmniBar:{name:"search",position:1,tool:!0,priority:1}}),epics:{searchEpic:function(e){return e.ofType(rK.p).debounceTime(250).switchMap((function(t){return Bt.Observable.from((t.services||[{type:"nominatim",priority:5}]).map((function(e){var n=fX.a.Utils.getService(e.type);if(!n){var r=new Error("Service Missing");return r.msgId="search.service_missing",r.serviceType=e.type,Bt.Observable.of(r).do((function(e){throw e}))}return Bt.Observable.defer((function(){return n(t.searchText,e.options).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){return yX(yX({},t),{},{__SERVICE__:e,__PRIORITY__:e.priority||0})}))}))})).retryWhen((function(e){return e.delay(200).scan((function(e,t){if(e>=2)throw t;return e+1}),0)}))}))).mergeAll().scan((function(e,t){return Object(se.sortBy)([].concat(hX(e),hX(t)),["__PRIORITY__"])})).map((function(e){return Object(rK.C)(e.slice(0,t.maxResults||15),!1)})).startWith(Object(rK.E)(!0)).takeUntil(e.ofType(rK.m,rK.k,rK.h)).concat([Object(rK.E)(!1)]).catch((function(e){var t=yX(yX({msgId:"search.generic_error"},e),{},{message:e.message,stack:e.stack});return Bt.Observable.from([Object(rK.B)(t),Object(rK.E)(!1)])}))}))},searchOnStartEpic:function(e,t){return e.ofType(rK.d).switchMap((function(e){var n=e.layer,r=e.cql_filter,o=t.getState();if(0===Object(H.q)(o).filter((function(e){return e.name===n})).length)return Bt.Observable.of(Object(rK.y)());var i=Object(H.h)(o,n);return i&&r?Bt.Observable.defer((function(){return Object(ln.getFeatureSimple)(i.url,{maxFeatures:1,typeName:n,srsName:"EPSG:4326",outputFormat:"application/json",cql_filter:r}).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.features&&e.features.length&&yX(yX({},e.features[0]),{},{typeName:n})}))})).switchMap((function(e){var t=e.type,n=e.geometry,o=e.typeName,i=pX()({type:t,geometry:n}).geometry.coordinates,a={lng:i[0],lat:i[1]};return i?Bt.Observable.of(Object(Mz.J)({latlng:a},o,[o],bX({},o,{cql_filter:r})),Object(Mz.T)()):Bt.Observable.empty()})).catch((function(){return Bt.Observable.of(Object(rK.H)())})):Bt.Observable.empty()}))},searchItemSelected:function(e,t){return e.ofType(rK.h).switchMap((function(e){var n=Bt.Observable.of(e.item).concatMap((function(t){if(t&&t.__SERVICE__&&t.__SERVICE__.geomService){var n=Object(IU.generateTemplateString)(t.__SERVICE__.geomService.options.staticFilter||"")(t);return Bt.Observable.fromPromise(fX.a.Utils.getService(t.__SERVICE__.geomService.type)("",oe()({},t.__SERVICE__.geomService.options,{staticFilter:n})).then((function(e){return oe()({},t,{geometry:Wo.default.mergeToPolyGeom(e)})})))}return Bt.Observable.of(e.item)})).concatMap((function(e){var n=e.bbox||e.properties.bbox||cX()(e),r=[Object(U.I)([n[0],n[1],n[2],n[3]],"EPSG:4326",e.__SERVICE__&&e.__SERVICE__.options&&e.__SERVICE__.options.maxZoomLevel||21),Object(rK.t)(e)];if(e.__SERVICE__&&!Object(se.isNil)(e.__SERVICE__.launchInfoPanel)&&e.__SERVICE__.options&&e.__SERVICE__.options.typeName){var o=pX()(e).geometry.coordinates,i={lng:o[0],lat:o[1]},a=e.__SERVICE__.options.typeName;if(o){var s=a&&Object(H.h)(t.getState(),a),l=null,u=[],c={},d=!1;return"single_layer"===e.__SERVICE__.launchInfoPanel&&(d=e.__SERVICE__.forceSearchLayerVisibility,u=[a],l=e.id,c=bX({},e.__SERVICE__.options.typeName,{info_format:"application/json"})),[].concat(hX(d&&s?[Object(x.H)(s.id,{visibility:!0})]:[]),hX(e.__SERVICE__.openFeatureInfoButtonEnabled?[]:[Object(Mz.J)({latlng:i},a,u,c,l)]),[Object(Mz.T)()],r)}}return r})),r=e.item,o=r&&r.__SERVICE__&&r.__SERVICE__.then,i=o?Bt.Observable.of(Object(rK.F)(o.map((function(e){return yX(yX({},e),{},{options:yX({item:r},e.options)})})),{text:Object(IU.generateTemplateString)(r.__SERVICE__.displayName||"")(r),placeholder:r.__SERVICE__.nestedPlaceholder&&Object(IU.generateTemplateString)(r.__SERVICE__.nestedPlaceholder||"")(r),placeholderMsgId:r.__SERVICE__.nestedPlaceholderMsgId&&Object(IU.generateTemplateString)(r.__SERVICE__.nestedPlaceholderMsgId||"")(r)},Object(IU.generateTemplateString)(r.__SERVICE__.searchTextTemplate||"")(r))):Bt.Observable.empty(),a=r.__SERVICE__&&r.__SERVICE__.searchTextTemplate,s=a?Bt.Observable.of(Object(rK.D)(Object(IU.generateTemplateString)(a)(r))):Bt.Observable.empty();return Bt.Observable.of(Object(rK.A)()).concat(n,i,s)}))},zoomAndAddPointEpic:function(e,t){return e.ofType(rK.s).switchMap((function(e){var n={type:"Feature",geometry:{type:"Point",coordinates:[e.pos.x,e.pos.y]}},r=t.getState();return Bt.Observable.from([Object(ES.g)("search","search","overlay",{features:[n],type:"vector",name:"searchPoints",id:"searchPoints",visibility:!0,style:r.search&&r.search.style||$K.a}),Object(U.J)(e.pos,e.zoom,e.crs)])}))},textSearchShowGFIEpic:function(e,t){return e.ofType(rK.o).switchMap((function(e){var n,r,o,i,a,s,l=e.item,u=t.getState(),c=null==l||null===(n=l.__SERVICE__)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.typeName,d=c&&Object(H.h)(u,c),p=l.bbox||l.properties.bbox||cX()(l),f=pX()(l).geometry.coordinates,h={lng:f[0],lat:f[1]};return f&&Object($K.c)(null==l?void 0:l.__SERVICE__)&&Object($K.b)(d,null==l?void 0:l.__SERVICE__)?(o=Bt.Observable).of.apply(o,hX(null!=l&&null!==(i=l.__SERVICE__)&&void 0!==i&&i.forceSearchLayerVisibility&&d?[Object(x.H)(d.id,{visibility:!0})]:[]).concat([Object(Mz.J)({latlng:h},c,[c],bX({},c,{info_format:"application/json"}),l.id),Object(Mz.T)(),Object(U.I)([p[0],p[1],p[2],p[3]],"EPSG:4326",(null==l||null===(a=l.__SERVICE__)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.maxZoomLevel)||21),Object(rK.t)(l)])):Bt.Observable.empty()}))}},reducers:{search:jX,mapInfo:vX.a}};function nZ(e){return(nZ="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 rZ(){return(rZ=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=e.name,o=void 0===r?"":r,i=n.url,a=void 0===i?"":i,s=n.typeName,l=void 0===s?"":s,u=n.queriableAttributes,c=void 0===u?"":u;return o.length>0&&a.length>0&&l.length>0&&c.length>0}};function LZ(e){return(LZ="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 FZ(){return(FZ=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.displayName&&e.displayName.length>0}};function QZ(e){return(QZ="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 $Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JZ(e){for(var t=1;t1?e.props.onPropertyChange("page",t-1):1===t&&e.props.restServiceConfig(0)})),wQ(bQ(e),"next",(function(){var t=e.props,n=t.page;n1&&void 0!==arguments[1]?arguments[1]:"active";return{type:OQ,active:e,prop:t}}function EQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CQ(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"swipe";return{type:SQ,mode:e}}})(QQ)},Map:{name:"Swipe",Tool:JQ}},reducers:{swipe:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case OQ:return oe()({},e,TQ({},t.prop,t.active));case SQ:return oe()({},e,{mode:t.mode});case"SWIPE:SET_SWIPE_TOOL_DIRECTION":var n=CQ(CQ({},e.swipe),{},{direction:t.direction});return oe()({},e,{swipe:n});case"SWIPE:SET_SPY_TOOL_RADIUS":var r=CQ(CQ({},e.spy),{},{radius:t.radius});return oe()({},e,{spy:r});default:return e}}},epics:kQ}),t$=n("./MapStore2/web/client/actions/locate.js"),n$=n("./MapStore2/web/client/components/misc/spinners/InlineSpinner/img/spinner.gif"),r$=n.n(n$);function o$(e){return(o$="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 i$(){return(i$=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{state:"DISABLED"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case t$.a:return oe()({},e,{state:t.state});case t$.b:return oe()({},e,{error:t.error});default:return e}},v$=(n("./MapStore2/web/client/plugins/locate/locate.css"),Object(f.connect)((function(e){return{locate:e.locate&&e.locate.state||"DISABLED",tooltip:e.locate&&"FOLLOWING"===e.locate.state?"locate.tooltipDeactivate":"locate.tooltip"}}),{onClick:t$.c})(y$)),w$=Object(_.d)("Locate",{component:v$,options:{disablePluginIf:"{state('mapType') === 'cesium'}"},containers:{Toolbar:{name:"locate",position:2,tool:!0,icon:c.a.createElement(v.Glyphicon,{glyph:"screenshot"}),help:c.a.createElement(_r.a,{msgId:"helptexts.locateBtn"}),priority:1}},reducers:{locate:b$}}),x$=n("./js/plugins/Save.jsx"),_$=n("./js/plugins/SaveAs.jsx"),O$=n("./js/plugins/Share.jsx"),S$=n("./MapStore2/web/client/reducers/security.js"),j$=n("./MapStore2/web/client/reducers/maps.js"),E$=n("./MapStore2/web/client/reducers/maplayout.js"),C$=n("./node_modules/react-swipeable-views/lib/index.js"),T$=n.n(C$),k$=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),A$={plugins:{AddGroupPlugin:D,IdentifyPlugin:N.a,TOCPlugin:qn,MapPlugin:Un.a,ToolbarPlugin:Gn.a,DrawerMenuPlugin:zr,ZoomAllPlugin:Br.a,MapLoadingPlugin:qr.a,OmniBarPlugin:Ur.default,BackgroundSelectorPlugin:Gr.a,FullScreenPlugin:Hr.a,ZoomInPlugin:Vr.a,ZoomOutPlugin:Wr.a,ExpanderPlugin:Yr.a,BurgerMenuPlugin:Kr.default,UndoPlugin:Eo,RedoPlugin:Eo,ScaleBoxPlugin:Co.a,MapFooterPlugin:To.a,PrintPlugin:ko.a,MeasurePlugin:Vi,FilterLayerPlugin:Wi,TOCItemsSettingsPlugin:CP,WidgetsPlugin:hM,WidgetsBuilderPlugin:NF,WidgetsTrayPlugin:xz,NotificationsPlugin:_z.default,FeatureEditorPlugin:sU,QueryPanelPlugin:HH,SavePlugin:x$.default,SaveAsPlugin:_$.default,MetadataExplorerPlugin:iY,GridContainerPlugin:yY,StyleEditorPlugin:AY,TimelinePlugin:PY.a,PlaybackPlugin:MY.a,MousePositionPlugin:eK,SearchPlugin:tZ,SearchServicesConfigPlugin:_Q,SwipePlugin:e$,LocatePlugin:w$,SharePlugin:O$.default,AddReducersAndEpics:{reducers:{security:S$.default,maps:j$.a,maplayout:E$.a},epics:s.b}},requires:{ReactSwipe:T$.a,SwipeHeader:k$.a}},P$=l.a?Object(l.a)(A$):A$;t.default=P$},"./js/plugins/Save.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-redux/es/index.js"),a=n("./node_modules/reselect/es/index.js"),s=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=n("./MapStore2/web/client/actions/controls.js"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./js/actions/gnsave.js"),f=n("./MapStore2/web/client/selectors/security.js"),h=n("./MapStore2/web/client/reducers/controls.js"),m=n("./js/reducers/gnresource.js"),g=n("./js/reducers/gnsave.js"),y=n("./js/epics/gnsave.js"),b=n("./js/plugins/save/SaveModal.jsx");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return(x=Object.assign||function(e){for(var t=1;t';return o.a.createElement("div",{className:"input-link"},o.a.createElement("div",{className:"input-link-head"},o.a.createElement("h4",null,o.a.createElement(d.default,{msgId:"share.embeddedLinkTitle"})),o.a.createElement(v,{copied:this.state.copied,shareUrl:t,onCopy:function(){return e.setState({copied:!0})},onMouseLeave:function(){return e.setState({copied:!1})}})),o.a.createElement("div",{className:"input-link-tools"},this.renderTools()),o.a.createElement("pre",null,o.a.createElement("code",null,t)))}}])&&S(t.prototype,n),r&&S(t,r),a}(o.a.Component);A(P,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),A(P,"defaultProps",{showTOCToggle:!0,shareUrl:""});var M=P;function I(e){return(I="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 D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return i(i({},e),{},{loading:!0});case r.d:return i(i({},e),{},{error:null,data:t.data,loading:!1});case r.a:return i(i({},e),{},{data:null,error:t.error,loading:!1});case r.h:return i(i({},e),{},{data:i(i({},e.data),t.properties)});case r.g:return i(i({},e),{},{type:t.resourceType});case r.c:return i(i({},e),{},{isNew:!0});case r.e:return i(i({},e),{},{id:t.id});case r.f:return i(i({},e),{},{permissions:t.permissions});default:return e}}},"./js/reducers/gnsave.js":function(e,t,n){"use strict";var r=n("./js/actions/gnsave.js");t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));n("./node_modules/url/url.js");var r={},o=function(e){return e},i=function(e,t){r[e]=t},a=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"e",(function(){return _}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/castArray.js"),a=n.n(i);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=["page"],h={},m=function(e,t){h[e]=t},g=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==h||null===(e=h[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==h?void 0:h[e+t]},b=function(){return f},v=function(){return 20},w=function(e){var t=e.location,n=e.pathname,r=e.query,i=e.replaceQuery,l=t.search,u=p(t,["search"]),f=o.a.parse(l||"",!0).query,h=r?i?c(c({},f),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=a()(e[t]).filter((function(e){return e})),i=-1===o.indexOf(n)?[].concat(s(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,i))}),f):f;return"#".concat(o.a.format(c(c(c({},u),n&&{pathname:n}),{},{query:Object.keys(h).reduce((function(e,t){return h[t]&&0!==h[t].length?c(c({},e),{},d({},t,h[t])):e}),{})})))};function x(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var _=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/@mapbox/geojsonhint/lib/object.js":function(e,t,n){var r=n("./node_modules/@mapbox/geojsonhint/lib/rhr.js");e.exports.hint=function(e,t){var n=[],o=0;function i(e){if(t&&!1===t.noDuplicateMembers||!e.__duplicateProperties__||n.push({message:"An object contained duplicate members, making parsing ambigous: "+e.__duplicateProperties__.join(", "),line:e.__line__}),!s(e,"type","string"))if(f[e.type])e&&f[e.type](e);else{var r=h[e.type.toLowerCase()];void 0!==r?n.push({message:"Expected "+r+" but got "+e.type+" (case sensitive)",line:e.__line__}):n.push({message:"The type "+e.type+" is unknown",line:e.__line__})}}function a(e,t){return e.every((function(e){return null!==e&&typeof e===t}))}function s(e,t,r){if(void 0===e[t])return n.push({message:'"'+t+'" member required',line:e.__line__});if("array"===r){if(!Array.isArray(e[t]))return n.push({message:'"'+t+'" member should be an array, but is an '+typeof e[t]+" instead",line:e.__line__})}else{if("object"===r&&e[t]&&"Object"!==e[t].constructor.name)return n.push({message:'"'+t+'" member should be '+r+", but is an "+e[t].constructor.name+" instead",line:e.__line__});if(r&&typeof e[t]!==r)return n.push({message:'"'+t+'" member should be '+r+", but is an "+typeof e[t]+" instead",line:e.__line__})}}function l(e,r){if(!Array.isArray(e))return n.push({message:"position should be an array, is a "+typeof e+" instead",line:e.__line__||r});if(e.length<2)return n.push({message:"position must have 2 or more elements",line:e.__line__||r});if(e.length>3)return n.push({message:"position should not have more than 3 elements",level:"message",line:e.__line__||r});if(!a(e,"number"))return n.push({message:"each element in a position must be a number",line:e.__line__||r});if(t&&t.precisionWarning){if(10===o)return o+=1,n.push({message:"truncated warnings: we've encountered coordinate precision warning 10 times, no more warnings will be reported",level:"message",line:e.__line__||r});o<10&&e.forEach((function(t){var i=0,a=String(t).split(".")[1];if(void 0!==a&&(i=a.length),i>6)return o+=1,n.push({message:"precision of coordinates should be reduced",level:"message",line:e.__line__||r})}))}}function u(e,t,r,o){if(void 0===o&&void 0!==e.__line__&&(o=e.__line__),0===r)return l(e,o);if(1===r&&t)if("LinearRing"===t){if(!Array.isArray(e[e.length-1]))return n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:o}),!0;if(e.length<4&&n.push({message:"a LinearRing of coordinates needs to have four or more positions",line:o}),e.length&&(e[e.length-1].length!==e[0].length||!e[e.length-1].every((function(t,n){return e[0][n]===t}))))return n.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:o}),!0}else if("Line"===t&&e.length<2)return n.push({message:"a line needs to have two or more coordinates to be valid",line:o});if(Array.isArray(e))return e.map((function(e){return u(e,t,r-1,e.__line__||o)})).some((function(e){return e}));n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:o})}function c(e){if(e.crs){"object"==typeof e.crs&&e.crs.properties&&"urn:ogc:def:crs:OGC:1.3:CRS84"===e.crs.properties.name?n.push({message:"old-style crs member is not recommended, this object is equivalent to the default and should be removed",line:e.__line__}):n.push({message:"old-style crs member is not recommended",line:e.__line__})}}function d(e){if(e.bbox)return Array.isArray(e.bbox)?(a(e.bbox,"number")||n.push({message:"each element in a bbox member must be a number",line:e.bbox.__line__}),4!==e.bbox.length&&6!==e.bbox.length&&n.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:e.bbox.__line__}),n.length):void n.push({message:"bbox member must be an array of numbers, but is a "+typeof e.bbox,line:e.__line__})}function p(e){c(e),d(e),void 0!==e.id&&"string"!=typeof e.id&&"number"!=typeof e.id&&n.push({message:'Feature "id" member must have a string or number value',line:e.__line__}),void 0!==e.features&&n.push({message:'Feature object cannot contain a "features" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'Feature object cannot contain a "coordinates" member',line:e.__line__}),"Feature"!==e.type&&n.push({message:"GeoJSON features must have a type=feature member",line:e.__line__}),s(e,"properties","object"),s(e,"geometry","object")||e.geometry&&i(e.geometry)}var f={Point:function(e){var t;c(e),d(e),void 0!==(t=e).properties&&n.push({message:'geometry object cannot contain a "properties" member',line:t.__line__}),void 0!==t.geometry&&n.push({message:'geometry object cannot contain a "geometry" member',line:t.__line__}),void 0!==t.features&&n.push({message:'geometry object cannot contain a "features" member',line:t.__line__}),s(e,"coordinates","array")||l(e.coordinates)},Feature:p,MultiPoint:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"",1)},LineString:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"Line",1)},MultiLineString:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"Line",2)},FeatureCollection:function(e){if(c(e),d(e),void 0!==e.properties&&n.push({message:'FeatureCollection object cannot contain a "properties" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:e.__line__}),!s(e,"features","array")){if(!a(e.features,"object"))return n.push({message:"Every feature must be an object",line:e.__line__});e.features.forEach(p)}},GeometryCollection:function(e){c(e),d(e),s(e,"geometries","array")||(a(e.geometries,"object")||n.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:e.__line__}),1===e.geometries.length&&n.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:e.geometries.__line__}),e.geometries.forEach((function(t){t&&("GeometryCollection"===t.type&&n.push({message:"GeometryCollection should avoid nested geometry collections",line:e.geometries.__line__}),i(t))})))},Polygon:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"LinearRing",2)||r(e,n)},MultiPolygon:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"LinearRing",3)||r(e,n)}},h=Object.keys(f).reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});return"object"!=typeof e||null==e?(n.push({message:"The root of a GeoJSON object must be an object.",line:0}),n):(i(e),n.forEach((function(e){({}).hasOwnProperty.call(e,"line")&&void 0===e.line&&delete e.line})),n)}},"./node_modules/@mapbox/geojsonhint/lib/rhr.js":function(e,t){function n(e){return e*Math.PI/180}function r(e){var t=0;if(e.length>2)for(var r,o,i=0;i=0}function o(e){if(e&&e.length>0){if(r(e[0]))return!1;if(!e.slice(1,e.length).every(r))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?o(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(o):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},"./node_modules/@mapbox/togeojson/togeojson.js":function(e,t,n){(function(t){var r=function(){"use strict";var e,r=/\s*/g,o=/^\s*|\s*$/g,i=/\s+/;function a(e){if(!e||!e.length)return 0;for(var t=0,n=0;te[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(l-a)*(e[1]-s)/(u-s)+a&&(r=!r)}return r}e.exports=function(e,t){var n=r.getCoord(e),i=t.geometry.coordinates;"Polygon"===t.geometry.type&&(i=[i]);for(var a=0,s=!1;a1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/point-on-surface/index.js":function(e,t,n){var r=n("./node_modules/@turf/point-on-surface/node_modules/@turf/helpers/index.js").featureCollection,o=n("./node_modules/@turf/point-on-surface/node_modules/@turf/center/index.js"),i=n("./node_modules/@turf/point-on-surface/node_modules/@turf/distance/index.js"),a=n("./node_modules/@turf/inside/index.js"),s=n("./node_modules/@turf/point-on-surface/node_modules/@turf/explode/index.js");function l(e,t,n,r,o,i){if(Math.sqrt((o-n)*(o-n)+(i-r)*(i-r))===Math.sqrt((e-n)*(e-n)+(t-r)*(t-r))+Math.sqrt((o-e)*(o-e)+(i-t)*(i-t)))return!0}e.exports=function(e){"FeatureCollection"!==e.type&&("Feature"!==e.type&&(e={type:"Feature",geometry:e,properties:{}}),e=r([e]));for(var t=o(e),n=!1,u=0;!n&&ue[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=0))throw new Error("distance must be a positive number");return d(p(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:h}},"./node_modules/@turf/point-on-surface/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/point-on-surface/node_modules/@turf/meta/index.js":function(e,t,n){"use strict";function r(e,t,n){if(null!==e){var o,i,a,s,l,u,c,d,p,f,h=0,m=0,g=e.type,y="FeatureCollection"===g,b="Feature"===g,v=y?e.features.length:1;for(o=0;o=0&&u>0){for(r=[],i=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((o=r.pop())=0?l:u;r.length&&(s=[i,a])}return s}e.exports=n,n.range=o},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},l.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},l.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},l.prototype._reset=function(){this._isTickUsed=!1},n.exports=l,n.exports.firstLineError=o},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var o=!1,i=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(i,i,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(i){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(i),c=new e(t);c._propagateFrom(this,1);var d=this._target();if(c._setBoundTo(u),u instanceof e){var p={promiseRejectionQueued:!1,promise:c,target:d,bindingPromise:u};d._then(t,a,void 0,c,p),u._then(s,l,void 0,c,p),c._setOnCancel(u)}else c._resolveCallback(d);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var o=e("./promise")();o.noConflict=function(){try{Promise===o&&(Promise=r)}catch(e){}return o},t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var o=r(null),i=r(null);o[" size"]=i[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function o(e){return function(e,r){var o;if(null!=e&&(o=e[r]),"function"!=typeof o){var i="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(i)}return o}(e,this.pop()).apply(e,this)}function i(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(o,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:i}else t=i;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,o){var i=e("./util"),a=i.tryCatch,s=i.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r){var o,i,a,s=n._getDomain,l=n._async,u=e("./errors").Warning,c=e("./util"),d=c.canAttachTrace,p=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,f=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,m=null,g=null,y=!1,b=!(0==c.env("BLUEBIRD_DEBUG")),v=!(0==c.env("BLUEBIRD_WARNINGS")||!b&&!c.env("BLUEBIRD_WARNINGS")),w=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(v||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout((function(){e._notifyUnhandledRejection()}),1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){G("rejectionHandled",o,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),G("unhandledRejection",i,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return z(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},n.onUnhandledRejectionHandled=function(e){var t=s();o="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var _=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!Q.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Q.longStackTraces&&V()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;Q.longStackTraces=!0,_=function(){if(l.haveItemsQueued()&&!Q.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,r.deactivateLongStackTraces(),l.enableTrampoline(),Q.longStackTraces=!1},n.prototype._captureStackTrace=L,n.prototype._attachExtraTrace=F,r.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return Q.longStackTraces&&V()};var O=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}return"function"==typeof Event?(e=new Event("CustomEvent"),c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)})}catch(e){}return function(){return!1}}(),S=c.isNode?function(){return t.emit.apply(t,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function j(e,t){return{promise:t}}var E={promiseCreated:j,promiseFulfilled:j,promiseRejected:j,promiseResolved:j,promiseCancelled:j,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:j},C=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=O(e,E[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function T(){return!1}function k(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function A(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function P(){return this._onCancelField}function M(e){this._onCancelField=e}function I(){this._cancellationParent=void 0,this._onCancelField=void 0}function D(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&_()),"warnings"in e){var t=e.warnings;Q.warnings=!!t,x=Q.warnings,c.isObject(t)&&"wForgottenReturn"in t&&(x=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!Q.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=I,n.prototype._propagateFrom=D,n.prototype._onCancel=P,n.prototype._setOnCancel=M,n.prototype._attachCancellationCallback=A,n.prototype._execute=k,N=D,Q.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!Q.monitoring?(Q.monitoring=!0,n.prototype._fireEvent=C):!e.monitoring&&Q.monitoring&&(Q.monitoring=!1,n.prototype._fireEvent=T)),n},n.prototype._fireEvent=T,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var N=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function R(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function L(){this._trace=new X(this._peekContext())}function F(e,t){if(d(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=q(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,r){if(Q.warnings){var o,i=new u(e);if(t)r._attachExtraTrace(i);else if(Q.longStackTraces&&(o=n._peekContext()))o.attachExtraTrace(i);else{var a=q(i);i.stack=a.message+"\n"+a.stack.join("\n")}C("warning",i)||U(i,"",!0)}}function B(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:B(t)}}function U(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var o=e.stack;r=t+g(o,e)}else r=t+String(e);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function G(e,t,n,r){var o=!1;try{"function"==typeof t&&(o=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?C(e,n,r)||o||U(n,"Unhandled rejection "):C(e,r)}function H(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():c.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function V(){return"function"==typeof Z}var W=function(){return!1},Y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function K(e){var t=e.match(Y);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function X(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Z(this,X),t>32&&this.uncycle()}c.inherits(X,Error),r.CapturedTrace=X,X.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,o=this;void 0!==o;++r)t.push(o),o=o._parent;for(r=(e=this._length=r)-1;r>=0;--r){var i=t[r].stack;void 0===n[i]&&(n[i]=r)}for(r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a=0;--u)t[u]._length=l,l++;return}}}},X.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=q(e),n=t.message,r=[t.stack],o=this;void 0!==o;)r.push(B(o.stack.split("\n"))),o=o._parent;!function(e){for(var t=e[0],n=1;n=0;--s)if(r[s]===i){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[o]!==l)break;t.pop(),o--}t=r}}(r),function(e){for(var t=0;t=0)return m=/@/,g=t,y=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return!("stack"in o)&&r&&"number"==typeof Error.stackTraceLimit?(m=e,g=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(g=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?H(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},c.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:c.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var Q={warnings:v,longStackTraces:!1,cancellation:!1,monitoring:!1};return w&&n.longStackTraces(),{longStackTraces:function(){return Q.longStackTraces},warnings:function(){return Q.warnings},cancellation:function(){return Q.cancellation},monitoring:function(){return Q.monitoring},propagateFromFunction:function(){return N},boundValueFunction:function(){return R},checkForgottenReturns:function(e,t,n,r,o){if(void 0===e&&null!==t&&x){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=B(s),u=l.length-1;u>=0;--u){var c=l[u];if(!f.test(c)){var d=c.match(h);d&&(i="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(l.length>0){var p=l[0];for(u=0;u0&&(a="\n"+s[u-1]);break}}}var m="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(m,!0,t)}},setBounds:function(e,t){if(V()){for(var n,r,o=e.stack.split("\n"),i=t.stack.split("\n"),a=-1,s=-1,l=0;l=s||(W=function(e){if(p.test(e))return!0;var t=K(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:X,fireDomEvent:O,fireGlobalEvent:S}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var o=function(){return r};return this.caught(n,o)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function o(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(o,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(o,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,o,i=e("./es5"),a=i.freeze,s=e("./util"),l=s.inherits,u=s.notEnumerableProp;function c(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var d=c("Warning","warning"),p=c("CancellationError","cancellation error"),f=c("TimeoutError","timeout error"),h=c("AggregateError","aggregate error");try{r=TypeError,o=RangeError}catch(e){r=c("TypeError","type error"),o=c("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function d(){return f.call(this,this.promise._target()._settledValue())}function p(e){if(!c(this,e))return a.e=e,a}function f(e){var o=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(o._boundValue()):s.call(o._boundValue(),e);if(l===r)return l;if(void 0!==l){o._setReturnedNonUndefined();var f=n(l,o);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new i("late cancellation observer");return o._attachExtraTrace(h),a.e=h,a}f.isPending()&&f._attachCancellationCallback(new u(this))}return f._then(d,p,void 0,this,void 0)}}}return o.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,f,f)},t.prototype.tap=function(e){return this._passThrough(e,1,f)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,f);var r,i=new Array(n-1),a=0;for(r=0;r0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var o=new n(r).promise();return void 0!==e?o.spread(e):o}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,d=t._async;function p(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var o=s();this._callback=null===o?t:l.domainBind(o,t),this._preservedValues=r===i?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function f(e,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==o){if("object"!=typeof o||null===o)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(o)));if("number"!=typeof o.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(o.concurrency)));a=o.concurrency}return new p(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,i).promise()}l.inherits(p,n),p.prototype._asyncInit=function(){this._init$(void 0,-2)},p.prototype._init=function(){},p.prototype._promiseFulfilled=function(e,n){var r=this._values,i=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var d=this._promise,p=this._callback,f=d._boundValue();d._pushContext();var h=u(p).call(f,e,n,i),m=d._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",d),h===c)return this._reject(h.e),!0;var g=o(h,this._promise);if(g instanceof t){var y=(g=g._target())._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=g,g._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(g._reason()),!0):(this._cancel(),!0);h=g._value()}r[n]=h}return++this._totalResolved>=i&&(null!==s?this._filter(r,s):this._resolve(r),!0)},p.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){i.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var d=l._popContext();return i.checkForgottenReturns(r,d,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),o=r.maybeWrapAsError,i=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new i(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),o=0;o1){var n,r=new Array(t-1),o=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},k.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},k.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,y,void 0)},k.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new w(this).promise()},k.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},k.getNewLibraryCopy=n.exports,k.is=function(e){return e instanceof k},k.fromNode=k.fromCallback=function(e){var t=new k(g);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=T(e)(E(t,n));return r===C&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},k.all=function(e){return new w(e).promise()},k.cast=function(e){var t=v(e);return t instanceof k||((t=new k(g))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(e){var t=new k(g);return t._captureStackTrace(),t._rejectCallback(e,!0),t},k.setScheduler=function(e){if("function"!=typeof e)throw new h("expecting a function but got "+u.classString(e));return p.setScheduler(e)},k.prototype._then=function(e,t,n,r,o){var i=void 0!==o,a=i?o:new k(g),l=this._target(),c=l._bitField;i||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var d=s();if(0!=(50397184&c)){var f,h,y=l._settlePromiseCtx;0!=(33554432&c)?(h=l._rejectionHandler0,f=e):0!=(16777216&c)?(h=l._fulfillmentHandler0,f=t,l._unsetRejectionIsUnhandled()):(y=l._settlePromiseLateCancellationObserver,h=new m("late cancellation observer"),l._attachExtraTrace(h),f=t),p.invoke(y,l,{handler:null===d?f:"function"==typeof f&&u.domainBind(d,f),promise:a,receiver:r,value:h})}else l._addCallbacks(e,t,a,r,d);return a},k.prototype._length=function(){return 65535&this._bitField},k.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},k.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},k.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},k.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},k.prototype._isFinal=function(){return(4194304&this._bitField)>0},k.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},k.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},k.prototype._setAsyncGuaranteed=function(){p.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},k.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==l)return void 0===t&&this._isBound()?this._boundValue():t},k.prototype._promiseAt=function(e){return this[4*e-4+2]},k.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},k.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,o=e._receiverAt(0);void 0===o&&(o=l),this._addCallbacks(t,n,r,o,null)},k.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),o=e._promiseAt(t),i=e._receiverAt(t);void 0===i&&(i=l),this._addCallbacks(n,r,o,i,null)},k.prototype._addCallbacks=function(e,t,n,r,o){var i=this._length();if(i>=65531&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===o?e:u.domainBind(o,e)),"function"==typeof t&&(this._rejectionHandler0=null===o?t:u.domainBind(o,t));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===o?e:u.domainBind(o,e)),"function"==typeof t&&(this[a+1]=null===o?t:u.domainBind(o,t))}return this._setLength(i+1),i},k.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},k.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=v(e,this);if(!(n instanceof k))return this._fulfill(e);t&&this._propagateFrom(n,2);var o=n._target();if(o!==this){var i=o._bitField;if(0==(50397184&i)){var a=this._length();a>0&&o._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():p.settlePromises(this))}},k.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return p.fatalError(e,u.isNode);(65535&t)>0?p.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},k.defer=k.pending=function(){return O.deprecated("Promise.defer","new Promise"),{promise:new k(g),resolve:A,reject:P}},u.notEnumerableProp(k,"_makeSelfResolutionError",r),e("./method")(k,g,v,i,O),e("./bind")(k,g,v,O),e("./cancel")(k,w,i,O),e("./direct_resolve")(k),e("./synchronous_inspection")(k),e("./join")(k,w,v,g,p,s),k.Promise=k,k.version="3.5.1",e("./map.js")(k,w,i,v,g,O),e("./call_get.js")(k),e("./using.js")(k,i,v,_,g,O),e("./timers.js")(k,g,O),e("./generators.js")(k,i,g,v,a,O),e("./nodeify.js")(k),e("./promisify.js")(k,g),e("./props.js")(k,w,v,i),e("./race.js")(k,g,v,i),e("./reduce.js")(k,w,i,v,g,O),e("./settle.js")(k,w,O),e("./some.js")(k,w,i),e("./filter.js")(k,g),e("./each.js")(k,g),e("./any.js")(k),u.toFastProperties(k),u.toFastProperties(k.prototype),M({a:1}),M({b:2}),M({c:3}),M(1),M((function(){})),M(void 0),M(!1),M(new k(g)),O.setBounds(d.firstLineError,u.lastLineError),k}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,i){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,i);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===i?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(i));else{var u=o("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var o=this._promise,i=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(e){for(var t=new i,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return d(this)},t.props=function(e){return d(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},i.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new i(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=e("./errors").RangeError,a=e("./errors").AggregateError,s=o.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),o=n.promise();return n.setHowMany(t),n.init(),o}o.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new i(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},o=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return i.call(this._target())},e.prototype.isFulfilled=function(){return o.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),o=r.errorObj,i=r.isObject,a={}.hasOwnProperty;return function(e,s){if(i(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return o.e=e,o}}(e);if(l===o){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,i,a){var s=new t(n),l=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=r.tryCatch(i).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,!1,!0),s=null)}));return s&&u===o&&(s._rejectCallback(u.e,!0,!0),s=null),l}(e,l,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,o){var i,l;return void 0!==o?(i=t.resolve(o)._then(s,null,null,e,void 0),r.cancellation()&&o instanceof t&&i._setOnCancel(o)):(i=new t(n),l=setTimeout((function(){i._fulfill()}),+e),r.cancellation()&&i._setOnCancel(new a(l)),i._captureStackTrace()),i._setAsyncGuaranteed(),i};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new i("operation timed out"):new i(t),o.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,d=s.tryCatch,p={};function f(e){setTimeout((function(){throw e}),0)}function h(e,n){var o=0,a=e.length,s=new t(i);return function i(){if(o>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[o++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return f(e)}if(l instanceof t)return l._then(i,f,null,null,null)}i()}(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function g(e,t,n){this.constructor$(e,t,n)}function y(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():p},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==p?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(g,m),g.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new g(e,this,o());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,r,o){"use strict";var i=e("./es5"),a="undefined"==typeof navigator,s={e:{}},l,u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function c(){try{var e=l;return l=null,e.apply(this,arguments)}catch(e){return s.e=e,s}}function d(e){return l=e,c}var p=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function f(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function h(e){return"function"==typeof e||"object"==typeof e&&null!==e}function m(e){return f(e)?new Error(C(e)):e}function g(e,t){var n,r=e.length,o=new Array(r+1);for(n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=x.test(e+"")&&i.names(e).length>0;if(n||r||o)return!0}return!1}catch(e){return!1}}function O(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}var S=/^[a-z$_][a-z$_0-9]*$/i;function j(e){return S.test(e)}function E(e,t,n){for(var r=new Array(e),o=0;o10||G[0]>0),U.isNode&&U.toFastProperties(t);try{throw new Error}catch(e){U.lastLineError=e}r.exports=U},{"./es5":13}]},{},[4])(4)},e.exports=o(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/canvas-to-blob/index.js":function(e,t){e.exports=function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),r=n.length,o=new window.ArrayBuffer(r),i=new window.Uint8Array(o),a=0;a]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t)},t.Property=function(e,t){this.name=e,this.value=t},t.Property.prototype.getValue=function(){return this.value},t.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},t.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);return(this.value+"").match(/%$/)&&(e/=100),e},t.Property.prototype.valueOrDefault=function(e){return this.hasValue()?this.value:e},t.Property.prototype.numValueOrDefault=function(e){return this.hasValue()?this.numValue():e},t.Property.prototype.addOpacity=function(e){var n=this.value;if(null!=e.value&&""!=e.value&&"string"==typeof this.value){var o=new r(this.value);o.ok&&(n="rgba("+o.r+", "+o.g+", "+o.b+", "+e.numValue()+")")}return new t.Property(this.name,n)},t.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=this.value),t.Definitions[e]},t.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},t.Property.prototype.getFillStyleDefinition=function(e,n){var r=this.getDefinition();if(null!=r&&r.createGradient)return r.createGradient(t.ctx,e,n);if(null!=r&&r.createPattern){if(r.getHrefAttribute().hasValue()){var o=r.attribute("patternTransform");r=r.getHrefAttribute().getDefinition(),o.hasValue()&&(r.attribute("patternTransform",!0).value=o.value)}return r.createPattern(t.ctx,e)}return null},t.Property.prototype.getDPI=function(e){return 96},t.Property.prototype.getEM=function(e){var n=12,r=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);return r.hasValue()&&(n=r.toPixels(e)),n},t.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},t.Property.prototype.toPixels=function(e,n){if(!this.hasValue())return 0;var r=this.value+"";if(r.match(/em$/))return this.numValue()*this.getEM(e);if(r.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(r.match(/px$/))return this.numValue();if(r.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(r.match(/pc$/))return 15*this.numValue();if(r.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(r.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(r.match(/in$/))return this.numValue()*this.getDPI(e);if(r.match(/%$/))return this.numValue()*t.ViewPort.ComputeSize(e);var o=this.numValue();return n&&o<1?o*t.ViewPort.ComputeSize(e):o},t.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/s$/)?1e3*this.numValue():(e.match(/ms$/),this.numValue())},t.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/deg$/)?this.numValue()*(Math.PI/180):e.match(/grad$/)?this.numValue()*(Math.PI/200):e.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return t.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},t.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(e,n,r,o,i,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",t.ctx.font);return{fontFamily:i||s.fontFamily,fontSize:o||s.fontSize,fontStyle:e||s.fontStyle,fontWeight:r||s.fontWeight,fontVariant:n||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var e=this;this.Parse=function(n){for(var r={},o=t.trim(t.compressSpaces(n||"")).split(" "),i={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;sthis.x2&&(this.x2=e)),null!=t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},this.addX=function(e){this.addPoint(e,null)},this.addY=function(e){this.addPoint(null,e)},this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1),this.addPoint(e.x2,e.y2)},this.addQuadraticCurve=function(e,t,n,r,o,i){var a=e+2/3*(n-e),s=t+2/3*(r-t),l=a+1/3*(o-e),u=s+1/3*(i-t);this.addBezierCurve(e,t,a,l,s,u,o,i)},this.addBezierCurve=function(e,t,n,r,o,i,a,s){var l=[e,t],u=[n,r],c=[o,i],d=[a,s];this.addPoint(l[0],l[1]),this.addPoint(d[0],d[1]);for(var p=0;p<=1;p++){var f=function(e){return Math.pow(1-e,3)*l[p]+3*Math.pow(1-e,2)*e*u[p]+3*(1-e)*Math.pow(e,2)*c[p]+Math.pow(e,3)*d[p]},h=6*l[p]-12*u[p]+6*c[p],m=-3*l[p]+9*u[p]-9*c[p]+3*d[p],g=3*u[p]-3*l[p];if(0!=m){var y=Math.pow(h,2)-4*g*m;if(!(y<0)){var b=(-h+Math.sqrt(y))/(2*m);0=0;t--)this.transforms[t].unapply(e)},this.applyToPoint=function(e){for(var t=0;ts&&(this.styles[a]=o[a],this.stylesSpecificity[a]=i)}}},null!=e&&1==e.nodeType){for(var r=0;r0&&e.push([this.points[this.points.length-1],e[e.length-1][1]]),e}},t.Element.polyline.prototype=new t.Element.PathElementBase,t.Element.polygon=function(e){this.base=t.Element.polyline,this.base(e),this.basePath=this.path,this.path=function(e){var t=this.basePath(e);return null!=e&&(e.lineTo(this.points[0].x,this.points[0].y),e.closePath()),t}},t.Element.polygon.prototype=new t.Element.polyline,t.Element.path=function(e){this.base=t.Element.PathElementBase,this.base(e);var n=this.attribute("d").value;n=n.replace(/,/gm," ");for(var r=0;r<2;r++)n=n.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");n=(n=n.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(r=0;r<2;r++)n=n.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");n=n.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),n=t.compressSpaces(n),n=t.trim(n),this.PathParser=new function(e){this.tokens=e.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new t.Point(0,0),this.control=new t.Point(0,0),this.current=new t.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var e=new t.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)},this.getAsControlPoint=function(){var e=this.getPoint();return this.control=e,e},this.getAsCurrentPoint=function(){var e=this.getPoint();return this.current=e,e},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new t.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(e){return this.isRelativeCommand()&&(e.x+=this.current.x,e.y+=this.current.y),e},this.addMarker=function(e,t,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(e,null==t?null:t.angleTo(e))},this.addMarkerAngle=function(e,t){this.points.push(e),this.angles.push(t)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var e=0;e1&&(d*=Math.sqrt(y),p*=Math.sqrt(y));var b=(h==m?-1:1)*Math.sqrt((Math.pow(d,2)*Math.pow(p,2)-Math.pow(d,2)*Math.pow(g.y,2)-Math.pow(p,2)*Math.pow(g.x,2))/(Math.pow(d,2)*Math.pow(g.y,2)+Math.pow(p,2)*Math.pow(g.x,2)));isNaN(b)&&(b=0);var v=new t.Point(b*d*g.y/p,b*-p*g.x/d),w=new t.Point((s.x+c.x)/2+Math.cos(f)*v.x-Math.sin(f)*v.y,(s.y+c.y)/2+Math.sin(f)*v.x+Math.cos(f)*v.y),x=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))},_=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(x(e)*x(t))},O=function(e,t){return(e[0]*t[1]=1&&(C=0);var T=1-m?1:-1,k=S+T*(C/2),A=new t.Point(w.x+d*Math.cos(k),w.y+p*Math.sin(k));if(n.addMarkerAngle(A,k-T*Math.PI/2),n.addMarkerAngle(c,k-T*Math.PI),r.addPoint(c.x,c.y),null!=e){_=d>p?d:p;var P=d>p?1:d/p,M=d>p?p/d:1;e.translate(w.x,w.y),e.rotate(f),e.scale(P,M),e.arc(0,0,_,S,S+C,1-m),e.scale(1/P,1/M),e.rotate(-f),e.translate(-w.x,-w.y)}}break;case"Z":case"z":null!=e&&e.closePath(),n.current=n.start}return r},this.getMarkers=function(){for(var e=this.PathParser.getMarkerPoints(),t=this.PathParser.getMarkerAngles(),n=[],r=0;r1&&(this.offset=1);var n=this.style("stop-color",!0);""==n.value&&(n.value="#000"),this.style("stop-opacity").hasValue()&&(n=n.addOpacity(this.style("stop-opacity"))),this.color=n.value},t.Element.stop.prototype=new t.Element.ElementBase,t.Element.AnimateBase=function(e){this.base=t.Element.ElementBase,this.base(e),t.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var e=this.attribute("attributeType").value,t=this.attribute("attributeName").value;return"CSS"==e?this.parent.style(t,!0):this.parent.attribute(t,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(e){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+e;var t=!1;if(this.beginn&&a.attribute("x").hasValue())break;o+=a.measureTextRecursive(e)}return-1*("end"==r?o:o/2)}return 0},this.renderChild=function(e,t,n,r){var o=n.children[r];o.attribute("x").hasValue()?(o.x=o.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,r),o.attribute("dx").hasValue()&&(o.x+=o.attribute("dx").toPixels("x"))):(o.attribute("dx").hasValue()&&(t.x+=o.attribute("dx").toPixels("x")),o.x=t.x),t.x=o.x+o.measureText(e),o.attribute("y").hasValue()?(o.y=o.attribute("y").toPixels("y"),o.attribute("dy").hasValue()&&(o.y+=o.attribute("dy").toPixels("y"))):(o.attribute("dy").hasValue()&&(t.y+=o.attribute("dy").toPixels("y")),o.y=t.y),t.y=o.y,o.render(e);for(r=0;r0&&" "!=t[n-1]&&n0&&" "!=t[n-1]&&(n==t.length-1||" "==t[n+1])&&(i="initial"),void 0!==e.glyphs[r]&&null==(o=e.glyphs[r][i])&&"glyph"==e.glyphs[r].type&&(o=e.glyphs[r])}else o=e.glyphs[r];return null==o&&(o=e.missingGlyph),o},this.renderChildren=function(e){var n=this.parent.style("font-family").getDefinition();if(null==n)""!=e.fillStyle&&e.fillText(t.compressSpaces(this.getText()),this.x,this.y),""!=e.strokeStyle&&e.strokeText(t.compressSpaces(this.getText()),this.x,this.y);else{var r=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),o=this.parent.style("font-style").valueOrDefault(t.Font.Parse(t.ctx.font).fontStyle),i=this.getText();n.isRTL&&(i=i.split("").reverse().join(""));for(var a=t.ToNumberArray(this.parent.attribute("dx").value),s=0;s0?"":this.text}},t.Element.tspan.prototype=new t.Element.TextElementBase,t.Element.tref=function(e){this.base=t.Element.TextElementBase,this.base(e),this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(null!=e)return e.children[0].getText()}},t.Element.tref.prototype=new t.Element.TextElementBase,t.Element.a=function(e){this.base=t.Element.TextElementBase,this.base(e),this.hasText=e.childNodes.length>0;for(var n=0;n0){var r=new t.Element.g;r.children=this.children,r.parent=this,r.render(e)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){t.ctx.canvas.style.cursor="pointer"}},t.Element.a.prototype=new t.Element.TextElementBase,t.Element.image=function(e){this.base=t.Element.RenderedElementBase,this.base(e);var n=this.getHrefAttribute().value;if(""!=n){var r=n.match(/\.svg$/);if(t.Images.push(this),this.loaded=!1,r)this.img=t.ajax(n),this.loaded=!0;else{this.img=document.createElement("img"),1==t.opts.useCORS&&(this.img.crossOrigin="Anonymous");var o=this;this.img.onload=function(){o.loaded=!0},this.img.onerror=function(){t.log('ERROR: image "'+n+'" not found'),o.loaded=!0},this.img.src=n}this.renderChildren=function(e){var n=this.attribute("x").toPixels("x"),o=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=i&&0!=a&&(e.save(),r?e.drawSvg(this.img,n,o,i,a):(e.translate(n,o),t.AspectRatio(e,this.attribute("preserveAspectRatio").value,i,this.img.width,a,this.img.height,0,0),e.drawImage(this.img,0,0)),e.restore())},this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),o=this.attribute("height").toPixels("y");return new t.BoundingBox(e,n,e+r,n+o)}}},t.Element.image.prototype=new t.Element.RenderedElementBase,t.Element.g=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getBoundingBox=function(){for(var e=new t.BoundingBox,n=0;n0)for(var v=y[b].indexOf("url"),w=y[b].indexOf(")",v),x=y[b].substr(v+5,w-v-6),_=t.parseXml(t.ajax(x)).getElementsByTagName("font"),O=0;O<_.length;O++){var S=t.CreateElement(_[O]);t.Definitions[g]=S}}}},t.Element.style.prototype=new t.Element.ElementBase,t.Element.use=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(e){this.baseSetContext(e),this.attribute("x").hasValue()&&e.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&e.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(e){null!=n&&n.path(e)},this.getBoundingBox=function(){if(null!=n)return n.getBoundingBox()},this.renderChildren=function(e){if(null!=n){var r=n;"symbol"==n.type&&((r=new t.Element.svg).type="svg",r.attributes.viewBox=new t.Property("viewBox",n.attribute("viewBox").value),r.attributes.preserveAspectRatio=new t.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),r.attributes.overflow=new t.Property("overflow",n.attribute("overflow").value),r.children=n.children),"svg"==r.type&&(this.attribute("width").hasValue()&&(r.attributes.width=new t.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(r.attributes.height=new t.Property("height",this.attribute("height").value)));var o=r.parent;r.parent=null,r.render(e),r.parent=o}}},t.Element.use.prototype=new t.Element.RenderedElementBase,t.Element.mask=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(e,n){var r=this.attribute("x").toPixels("x"),o=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==i&&0==a){for(var s=new t.BoundingBox,l=0;l~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),t.join("")}e.exports=i},"./node_modules/canvg-browser/node_modules/xmldom/dom-parser.js":function(e,t,n){function r(e){this.options=e||{locator:{}}}function o(){this.cdata=!1}function i(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,i=n.domBuilder||new o,s=n.errorHandler,l=n.locator,c=n.xmlns||{},d={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&i.setDocumentLocator(l),r.errorHandler=function(e,t,n){if(!e){if(t instanceof o)return t;e=t}var r={},i=e instanceof Function;function s(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,i,l),r.domBuilder=n.domBuilder||i,/\/x?html?$/.test(t)&&(d.nbsp=" ",d.copy="©",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,c,d):r.errorHandler.error("invalid doc source"),i.doc},o.prototype={startDocument:function(){this.doc=(new c).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var o=this.doc,a=o.createElementNS(e,n||t),s=r.length;l(this,a),this.currentElement=a,this.locator&&i(this.locator,a);for(var u=0;u=0))throw _(w,new Error(e.tagName+"@"+n));for(var o=t.length-1;r"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function I(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(I(e,t))return!0}while(e=e.nextSibling)}function D(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function R(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i}}}function L(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,R(e.ownerDocument,e),t}function F(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===m){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var a=n?n.previousSibling:e.lastChild;o.previousSibling=a,i.nextSibling=n,a?a.nextSibling=o:e.firstChild=o,null==n?e.lastChild=i:n.previousSibling=i;do{o.parentNode=e}while(o!==i&&(o=o.nextSibling));return R(e.ownerDocument||e,e),t.nodeType==m&&(t.firstChild=t.lastChild=null),t}function z(){this._nsMap={}}function B(){}function q(){}function U(){}function G(){}function H(){}function V(){}function W(){}function Y(){}function K(){}function X(){}function Z(){}function Q(){}function $(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return ee(this,n,e,t,a),n.join("")}function J(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!r&&!o)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===o||"http://www.w3.org/2000/xmlns/"==o)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix==r)return a.namespace!=o}return!0}function ee(e,t,n,r,o){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case i:o||(o=[]);o.length;var c=e.attributes,g=c.length,y=e.firstChild,b=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",b);for(var v=0;v"),n&&/^script$/i.test(b))for(;y;)y.data?t.push(y.data):ee(y,t,n,r,o),y=y.nextSibling;else for(;y;)ee(y,t,n,r,o),y=y.nextSibling;t.push("")}else t.push("/>");return;case f:case m:for(y=e.firstChild;y;)ee(y,t,n,r,o),y=y.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,M),'"');case s:return t.push(e.data.replace(/[<&]/g,M));case l:return t.push("");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var S=e.publicId,j=e.systemId;if(t.push("');else if(j&&"."!=j)t.push(' SYSTEM "',j,'">');else{var E=e.internalSubset;E&&t.push(" [",E,"]"),t.push(">")}return;case d:return t.push("");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}_.prototype=Error.prototype,n(y,_),O.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(o,P),n(o,P.prototype),D.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==m){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==i&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),L(this,e)},importNode:function(e,t){return function e(t,n,r){var o;switch(n.nodeType){case i:(o=n.cloneNode(!1)).ownerDocument=t;case m:break;case a:r=!0}o||(o=n.cloneNode(!1));if(o.ownerDocument=t,o.parentNode=null,r)for(var s=n.firstChild;s;)o.appendChild(e(t,s,r)),s=s.nextSibling;return o}(this,e,t)},getElementById:function(e){var t=null;return I(this.documentElement,(function(n){if(n.nodeType==i&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new O,(t.attributes=new E)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new O,e},createTextNode:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new G;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new z,r=t.split(":"),o=n.attributes=new E;return n.childNodes=new O,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new B,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(D,P),z.prototype={nodeType:i,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===m?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,R(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new S(this,(function(t){var n=[];return I(t,(function(r){r===t||r.nodeType!=i||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new S(this,(function(n){var r=[];return I(n,(function(o){o===n||o.nodeType!==i||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)})),r}))}},D.prototype.getElementsByTagName=z.prototype.getElementsByTagName,D.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,r(z,P),B.prototype.nodeType=a,r(B,P),q.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(b[v])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(q,P),U.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(U,q),G.prototype={nodeName:"#comment",nodeType:p},r(G,q),H.prototype={nodeName:"#cdata-section",nodeType:l},r(H,q),V.prototype.nodeType=h,r(V,P),W.prototype.nodeType=g,r(W,P),Y.prototype.nodeType=c,r(Y,P),K.prototype.nodeType=u,r(K,P),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=m,r(X,P),Z.prototype.nodeType=d,r(Z,P),Q.prototype.serializeToString=function(e,t,n){return $.call(e,t,n)},P.prototype.toString=$;try{if(Object.defineProperty){Object.defineProperty(S.prototype,"length",{get:function(){return j(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case i:case m:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case i:case m:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=A,t.XMLSerializer=Q},"./node_modules/canvg-browser/node_modules/xmldom/sax.js":function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function i(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,o,i){for(var a,s=++t,l=0;;){var u=e.charAt(s);switch(u){case"=":if(1===l)a=e.slice(t,s),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(i.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");c=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,c,t-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');c=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,c,t),i.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,l=5}break;case"/":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:l=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==l&&n.setTagName(e.slice(t,s)),s;case">":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=a),4==l?(i.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c.replace(/&#?\w+;/g,o),t)):("http://www.w3.org/1999/xhtml"===r[""]&&c.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":u=" ";default:if(u<=" ")switch(l){case 0:n.setTagName(e.slice(t,s)),l=6;break;case 1:a=e.slice(t,s),l=2;break;case 4:var c=e.slice(t,s).replace(/&#?\w+;/g,o);i.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c,t);case 5:l=6}else switch(l){case 2:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,l=1;break;case 5:i.warning('attribute space is required"'+a+'"!!');case 6:l=1,t=s;break;case 3:l=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function l(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],s=a.qName,l=a.value;if((f=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,f),c=s.slice(f+1),p="xmlns"===u&&c;else c=s,u=null,p="xmlns"===s&&"";a.localName=c,!1!==p&&(null==o&&(o={},d(n,n={})),n[p]=o[p]=l,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,l))}for(i=e.length;i--;){(u=(a=e[i]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),c=e.localName=r.slice(f+1)):(u=null,c=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,c,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(h,c,r),o)for(u in o)t.endPrefixMapping(u)}function u(e,t,n,r,o){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)?(o.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,r),o.characters(a,0,a.length),i)}return t+1}function c(e,t,n,r){var o=r[n];return null==o&&((o=e.lastIndexOf(""))t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var i=function(e,t){var n,r=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;o.lastIndex=t,o.exec(e);for(;n=o.exec(e);)if(r.push(n),n[1])return r}(e,t),a=i.length;if(a>1&&/!doctype/i.test(i[0][0])){var s=i[1][0],l=a>3&&/^public$/i.test(i[2][0])&&i[3][0],u=a>4&&i[4][0],c=i[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),c.index+c[0].length}}return-1}function f(e,t,n){var r=e.indexOf("?>",t);if(r){var o=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(o){o[0].length;return n.processingInstruction(o[1],o[2]),r+2}return-1}return-1}function h(e){}function m(e,t){return e.__proto__=t,e}i.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),d(t,t={}),function(e,t,n,r,o){function i(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function d(t){if(t>_){var n=e.substring(_,t).replace(/&#?\w+;/g,i);v&&m(_),r.characters(n,0,t-_),_=t}}function m(t,n){for(;t>=y&&(n=b.exec(e));)g=n.index,y=g+n[0].length,v.lineNumber++;v.columnNumber=t-g+1}var g=0,y=0,b=/.*(?:\r\n?|\n)|.*$/g,v=r.locator,w=[{currentNSMap:t}],x={},_=0;for(;;){try{var O=e.indexOf("<",_);if(O<0){if(!e.substr(_).match(/^\s*$/)){var S=r.doc,j=S.createTextNode(e.substr(_));S.appendChild(j),r.currentElement=j}return}switch(O>_&&d(O),e.charAt(O+1)){case"/":var E=e.indexOf(">",O+3),C=e.substring(O+2,E),T=w.pop();E<0?(C=e.substring(O+2).replace(/[\s<].*/,""),o.error("end tag name: "+C+" is not complete:"+T.tagName),E=O+1+C.length):C.match(/\s_?_=E:d(Math.max(O,_)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},h.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},m({},m.prototype)instanceof m||(m=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=i},"./node_modules/chroma-js/chroma.js":function(e,t,n){(function(e){var n; +(window.webpackJsonp=window.webpackJsonp||[]).push([[15,6,7,"plugins/geostory-navigation-plugin~plugins/share-plugin",10,"vendors~plugins/notifications-plugin"],{"./MapStore2/node_modules/lodash/_assignMergeValue.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/eq.js");e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},"./MapStore2/node_modules/lodash/_baseExtremum.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isSymbol.js");e.exports=function(e,t,n){for(var o=-1,i=e.length;++ot}},"./MapStore2/node_modules/lodash/_baseLt.js":function(e,t){e.exports=function(e,t){return et||a&&s&&u&&!l&&!c||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!c&&e=l?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},"./MapStore2/node_modules/lodash/_createRange.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseRange.js"),o=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),i=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t=t||n<0||g&&e-h>=c}function x(){var e=o();if(w(e))return _(e);p=setTimeout(x,function(e){var n=t-(e-f);return g?s(n,c-(e-h)):n}(e))}function _(e){return p=void 0,y&&l?b(e):(l=u=void 0,d)}function O(){var e=o(),n=w(e);if(l=arguments,u=this,f=e,n){if(void 0===p)return v(f);if(g)return clearTimeout(p),p=setTimeout(x,t),b(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=u=p=void 0},O.flush=function(){return void 0===p?d:_(o())},O}},"./MapStore2/node_modules/lodash/each.js":function(e,t,n){e.exports=n("./MapStore2/node_modules/lodash/forEach.js")},"./MapStore2/node_modules/lodash/filter.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseFilter.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},"./MapStore2/node_modules/lodash/forEach.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayEach.js"),o=n("./MapStore2/node_modules/lodash/_baseEach.js"),i=n("./MapStore2/node_modules/lodash/_castFunction.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},"./MapStore2/node_modules/lodash/forOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),o=n("./MapStore2/node_modules/lodash/_castFunction.js");e.exports=function(e,t){return e&&r(e,o(t))}},"./MapStore2/node_modules/lodash/includes.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js"),o=n("./MapStore2/node_modules/lodash/isArrayLike.js"),i=n("./MapStore2/node_modules/lodash/isString.js"),a=n("./MapStore2/node_modules/lodash/toInteger.js"),s=n("./MapStore2/node_modules/lodash/values.js"),l=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var c=e.length;return n<0&&(n=l(c+n,0)),i(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},"./MapStore2/node_modules/lodash/isNaN.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isNumber.js");e.exports=function(e){return r(e)&&e!=+e}},"./MapStore2/node_modules/lodash/isUndefined.js":function(e,t){e.exports=function(e){return void 0===e}},"./MapStore2/node_modules/lodash/map.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_baseMap.js"),a=n("./MapStore2/node_modules/lodash/isArray.js");e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},"./MapStore2/node_modules/lodash/maxBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseExtremum.js"),o=n("./MapStore2/node_modules/lodash/_baseGt.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},"./MapStore2/node_modules/lodash/merge.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n){r(e,t,n)}));e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/min.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseExtremum.js"),o=n("./MapStore2/node_modules/lodash/_baseLt.js"),i=n("./MapStore2/node_modules/lodash/identity.js");e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},"./MapStore2/node_modules/lodash/negate.js":function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/node_modules/lodash/omit.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseClone.js"),i=n("./MapStore2/node_modules/lodash/_baseUnset.js"),a=n("./MapStore2/node_modules/lodash/_castPath.js"),s=n("./MapStore2/node_modules/lodash/_copyObject.js"),l=n("./MapStore2/node_modules/lodash/_customOmitClone.js"),u=n("./MapStore2/node_modules/lodash/_flatRest.js"),c=n("./MapStore2/node_modules/lodash/_getAllKeysIn.js"),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},"./MapStore2/node_modules/lodash/omitBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),o=n("./MapStore2/node_modules/lodash/negate.js"),i=n("./MapStore2/node_modules/lodash/pickBy.js");e.exports=function(e,t){return i(e,o(r(t)))}},"./MapStore2/node_modules/lodash/pickBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_basePickBy.js"),a=n("./MapStore2/node_modules/lodash/_getAllKeysIn.js");e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},"./MapStore2/node_modules/lodash/range.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createRange.js")();e.exports=r},"./MapStore2/node_modules/lodash/replace.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(){var e=arguments,t=r(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},"./MapStore2/node_modules/lodash/some.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arraySome.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),i=n("./MapStore2/node_modules/lodash/_baseSome.js"),a=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/_isIterateeCall.js");e.exports=function(e,t,n){var l=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,o(t,3))}},"./MapStore2/node_modules/lodash/sortBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseOrderBy.js"),i=n("./MapStore2/node_modules/lodash/_baseRest.js"),a=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},"./MapStore2/node_modules/lodash/sumBy.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIteratee.js"),o=n("./MapStore2/node_modules/lodash/_baseSum.js");e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):0}},"./MapStore2/node_modules/lodash/throttle.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/debounce.js"),o=n("./MapStore2/node_modules/lodash/isObject.js");e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/web/client/actions/additionallayers.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c}));var r="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",o="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",i="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",a="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",o=arguments.length>3?arguments[3]:void 0;return{type:r,id:e,owner:t,actionType:n,options:o}},l=function(e,t){return{type:o,owner:e,options:t}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.owner;return{type:i,id:t,owner:n}},c=function(){return{type:a}}},"./MapStore2/web/client/actions/annotations.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return s}));n("./MapStore2/node_modules/lodash/lodash.js");var r=function(e){return{type:"ANNOTATIONS:HIGHLIGHT_POINT",point:e}},o=function(){return{type:"ANNOTATIONS:NEW"}},i=function(){return{type:"ANNOTATIONS:CLEAN_HIGHLIGHT"}},a=function(){return{type:"ANNOTATIONS:CLOSE"}},s=function(e){return{type:"ANNOTATIONS:SET_EDITING_FEATURE",feature:e}}},"./MapStore2/web/client/actions/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"u",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return b})),n.d(t,"w",(function(){return v})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"p",(function(){return O})),n.d(t,"y",(function(){return S})),n.d(t,"v",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return C}));var r="BACKGROUND_SELECTOR:ADD_BACKGROUND",o="BACKGROUND_SELECTOR:REMOVE_BACKGROUND",i="BACKGROUND_SELECTOR:SET_CURRENT_BACKGROUND_LAYER",a="BACKGROUND_SELECTOR:BACKGROUND_ADDED",s="BACKGROUND_SELECTOR:BACKGROUND_EDITED",l="BACKGROUND_SELECTOR:ADD_BACKGROUND_PROPERTIES",u="BACKGROUND_SELECTOR:SET_BACKGROUND_MODAL_PARAMS",c="BACKGROUND_SELECTOR:UPDATE_BACKGROUND_THUMBNAIL",d="BACKGROUND_SELECTOR:BACKGROUNDS_CLEAR",p="BACKGROUND_SELECTOR:CREATE_BACKGROUNDS_LIST",f="BACKGROUND_SELECTOR:CLEAR_MODAL_PARAMETERS",h="BACKGROUND_SELECTOR:CONFIRM_DELETE_BACKGROUND_MODAL",m="BACKGROUND_SELECTOR:ALLOW_BACKGROUNDS_DELETION";function g(e){return{type:p,backgrounds:e}}function y(e){return{type:r,source:e}}function b(e){return{type:l,modalParams:e}}function v(e){return{type:u,modalParams:e}}function w(e){return{type:a,layerId:e}}function x(e){return{type:s,layerId:e}}function _(e){return{type:i,layerId:e}}function O(e){return{type:m,allow:e}}function S(e,t){return{type:c,thumbnailData:e,id:t}}function j(e){return{type:o,backgroundId:e}}function E(){return{type:f}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:h,show:e,layerTitle:t,layerId:n}}},"./MapStore2/web/client/actions/box.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="BOX_END",o="CHANGE_BOX_SELECTION_STATUS";function i(e){return{type:r,boxEndInfo:e}}function a(e){return{type:o,status:e}}},"./MapStore2/web/client/actions/catalog.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"t",(function(){return x})),n.d(t,"v",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"u",(function(){return S})),n.d(t,"f",(function(){return j})),n.d(t,"c",(function(){return E})),n.d(t,"i",(function(){return C})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return k})),n.d(t,"m",(function(){return A})),n.d(t,"l",(function(){return P})),n.d(t,"n",(function(){return M})),n.d(t,"k",(function(){return I})),n.d(t,"j",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"o",(function(){return R})),n.d(t,"a",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"q",(function(){return B})),n.d(t,"w",(function(){return q})),n.d(t,"s",(function(){return U})),n.d(t,"x",(function(){return G})),n.d(t,"A",(function(){return H})),n.d(t,"B",(function(){return V})),n.d(t,"z",(function(){return W})),n.d(t,"bb",(function(){return Y})),n.d(t,"W",(function(){return K})),n.d(t,"H",(function(){return X})),n.d(t,"Z",(function(){return Z})),n.d(t,"ab",(function(){return Q})),n.d(t,"K",(function(){return $})),n.d(t,"T",(function(){return J})),n.d(t,"I",(function(){return ee})),n.d(t,"O",(function(){return te})),n.d(t,"N",(function(){return ne})),n.d(t,"M",(function(){return re})),n.d(t,"L",(function(){return oe})),n.d(t,"P",(function(){return ie})),n.d(t,"Q",(function(){return ae})),n.d(t,"F",(function(){return se})),n.d(t,"C",(function(){return le})),n.d(t,"R",(function(){return ue})),n.d(t,"S",(function(){return ce})),n.d(t,"Y",(function(){return de})),n.d(t,"V",(function(){return pe})),n.d(t,"G",(function(){return fe})),n.d(t,"D",(function(){return me})),n.d(t,"E",(function(){return ge})),n.d(t,"U",(function(){return ye})),n.d(t,"J",(function(){return be})),n.d(t,"cb",(function(){return ve})),n.d(t,"db",(function(){return we})),n.d(t,"eb",(function(){return xe})),n.d(t,"X",(function(){return _e}));var r=n("./MapStore2/web/client/api/CSW.js"),o=n("./MapStore2/web/client/api/WMS.js"),i=n("./MapStore2/web/client/api/WMTS.js"),a=n("./MapStore2/web/client/api/mapBackground.js"),s=n("./MapStore2/web/client/actions/layers.js"),l=n("./MapStore2/web/client/actions/map.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/selectors/catalog.js"),f=n("./MapStore2/web/client/selectors/layers.js"),h=n("./MapStore2/web/client/actions/notifications.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.url,r=e.startPosition,o=e.maxRecords,i=e.text,a=e.options,s=void 0===a?{}:a;return{type:w,format:t,url:n,startPosition:r,maxRecords:o,text:i,options:s}}function K(e,t){return{type:x,searchOptions:e,result:t}}function X(e){return{type:j,format:e}}function Z(e){return{type:q,status:e}}function Q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:G,loading:e}}function $(e){return{type:C,service:e}}function J(e){return{type:N,status:e}}function ee(e,t){return{type:T,mode:e,isNew:t}}function te(e){return{type:A,title:e}}function ne(e){return{type:P,text:e}}function re(e,t){return{type:I,property:e,value:t}}function oe(e){return{type:D,format:e}}function ie(e){return{type:M,newType:e}}function ae(e){return{type:R,url:e}}function se(){return{type:z}}function le(e){return{type:L,service:e}}function ue(e){return{type:F,service:e}}function ce(){return{type:B}}function de(){return{type:_}}function pe(e){return{type:S,error:e}}function fe(){return{type:O}}function he(e,t){return{type:"CATALOG:DESCRIBE_ERROR",layer:e,error:t}}var me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoomToLayer,r=void 0!==n&&n;return function(t,n){var o=n(),i=Object(f.p)(o),a=Object(u.getLayerId)(e,i||[]);return t(Object(s.E)(g(g({},e),{},{id:a}))),r&&e.bbox&&t(Object(l.I)(e.bbox.bounds,e.bbox.crs)),"wms"===e.type?b.wms.describeLayers(Object(u.getLayerUrl)(e),e.name).then((function(n){if(n){var r=Object(d.find)(n,(function(t){return t.name===e.name}));if(r&&"WFS"===r.owsType){var i=c.filterUrlParams(c.cleanDuplicatedQuestionMarks(r.owsURL),Object(p.b)(o));t(Object(s.I)(a,{search:{url:i,type:"wfs"}}))}}})).catch((function(n){return t(he(e,n))})):null}};function ge(e){return{type:E,error:e}}function ye(e){return{type:U,metadataOptions:e}}var be=function(e){return{type:k,metadataTemplate:e}},ve=function(){return{type:W}},we=function(){return{type:H}},xe=function(){return{type:V}};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(h.f)({title:"catalog.notification.errorTitle",message:"catalog.notification.errorSearchingRecords",values:{records:e}})}},"./MapStore2/web/client/actions/dashboard.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r="DASHBOARD:DASHBOARD_RESET",o="DASHBOARD:DASHBOARD_LOADED"},"./MapStore2/web/client/actions/draw.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"h",(function(){return m}));var r="CHANGE_DRAWING_STATUS",o="DRAW:END_DRAWING",i="DRAW:SET_CURRENT_STYLE",a="DRAW:GEOMETRY_CHANGED",s="DRAW:DRAW_SUPPORT_STOPPED";function l(e,t,n,r,o){return{type:a,features:e,owner:t,enableEdit:n,textChanged:r,circleChanged:o}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:FEATURES_SELECTED",features:e}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:DRAWING_FEATURES",features:e}}function d(){return{type:s}}function p(e,t,n,o,i,a){return{type:r,status:e,method:t,owner:n,features:o,options:i,style:a}}function f(e,t){return{type:o,geometry:e,owner:t}}function h(e){return{type:i,currentStyle:e}}var m=function(e){return p("clean","",e,[],{})}},"./MapStore2/web/client/actions/featuregrid.js":function(e,t,n){"use strict";n.d(t,"L",(function(){return r})),n.d(t,"E",(function(){return o})),n.d(t,"n",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"J",(function(){return s})),n.d(t,"U",(function(){return l})),n.d(t,"T",(function(){return u})),n.d(t,"q",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"A",(function(){return p})),n.d(t,"D",(function(){return f})),n.d(t,"P",(function(){return h})),n.d(t,"O",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"C",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"B",(function(){return w})),n.d(t,"m",(function(){return x})),n.d(t,"F",(function(){return _})),n.d(t,"N",(function(){return O})),n.d(t,"G",(function(){return S})),n.d(t,"Y",(function(){return j})),n.d(t,"b",(function(){return E})),n.d(t,"s",(function(){return C})),n.d(t,"p",(function(){return T})),n.d(t,"W",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"g",(function(){return P})),n.d(t,"z",(function(){return M})),n.d(t,"f",(function(){return I})),n.d(t,"d",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"I",(function(){return R})),n.d(t,"o",(function(){return L})),n.d(t,"a",(function(){return F})),n.d(t,"j",(function(){return z})),n.d(t,"y",(function(){return B})),n.d(t,"Z",(function(){return q})),n.d(t,"v",(function(){return U})),n.d(t,"M",(function(){return G})),n.d(t,"V",(function(){return H})),n.d(t,"u",(function(){return V})),n.d(t,"X",(function(){return W})),n.d(t,"x",(function(){return Y})),n.d(t,"Q",(function(){return K})),n.d(t,"R",(function(){return X})),n.d(t,"S",(function(){return Z})),n.d(t,"w",(function(){return Q})),n.d(t,"t",(function(){return $})),n.d(t,"K",(function(){return J})),n.d(t,"H",(function(){return ee})),n.d(t,"Qb",(function(){return te})),n.d(t,"ub",(function(){return ne})),n.d(t,"qb",(function(){return re})),n.d(t,"Ob",(function(){return oe})),n.d(t,"vb",(function(){return ie})),n.d(t,"cb",(function(){return ae})),n.d(t,"hb",(function(){return se})),n.d(t,"Cb",(function(){return le})),n.d(t,"Ib",(function(){return ue})),n.d(t,"tb",(function(){return ce})),n.d(t,"Mb",(function(){return de})),n.d(t,"Lb",(function(){return pe})),n.d(t,"ob",(function(){return fe})),n.d(t,"mb",(function(){return he})),n.d(t,"nb",(function(){return me})),n.d(t,"eb",(function(){return ge})),n.d(t,"Gb",(function(){return ye})),n.d(t,"Kb",(function(){return be})),n.d(t,"bb",(function(){return ve})),n.d(t,"Db",(function(){return we})),n.d(t,"Tb",(function(){return xe})),n.d(t,"Rb",(function(){return _e})),n.d(t,"jb",(function(){return Oe})),n.d(t,"Pb",(function(){return Se})),n.d(t,"Sb",(function(){return je})),n.d(t,"rb",(function(){return Ee})),n.d(t,"ib",(function(){return Ce})),n.d(t,"zb",(function(){return Te})),n.d(t,"Bb",(function(){return ke})),n.d(t,"lb",(function(){return Ae})),n.d(t,"sb",(function(){return Pe})),n.d(t,"db",(function(){return Me})),n.d(t,"Ab",(function(){return Ie})),n.d(t,"gb",(function(){return De})),n.d(t,"fb",(function(){return Ne})),n.d(t,"yb",(function(){return Re})),n.d(t,"pb",(function(){return Le})),n.d(t,"Fb",(function(){return Fe})),n.d(t,"xb",(function(){return ze})),n.d(t,"Ub",(function(){return Be})),n.d(t,"Nb",(function(){return qe})),n.d(t,"Jb",(function(){return Ue})),n.d(t,"wb",(function(){return Ge})),n.d(t,"ab",(function(){return He})),n.d(t,"kb",(function(){return Ve})),n.d(t,"Hb",(function(){return We})),n.d(t,"Eb",(function(){return Ye}));var r="FEATUREGRID:SET_UP",o="FEATUREGRID:SELECT_FEATURES",i="FEATUREGRID:DESELECT_FEATURES",a="FEATUREGRID:CLEAR_SELECTION",s="FEATUREGRID:SET_SELECTION_OPTIONS",l="FEATUREGRID:TOGGLE_MODE",u="FEATUREGRID:TOGGLE_FEATURES_SELECTION",c="FEATUREGRID:FEATURES_MODIFIED",d="FEATUREGRID:NEW_FEATURE",p="FEATUREGRID:SAVE_CHANGES",f="FEATUREGRID:SAVING",h="FEATUREGRID:START_EDITING_FEATURE",m="FEATUREGRID:START_DRAWING_FEATURE",g="FEATUREGRID:DELETE_GEOMETRY",y="FEATUREGRID:DELETE_GEOMETRY_FEATURE",b="FEATUREGRID:SAVE_SUCCESS",v="FEATUREGRID:CLEAR_CHANGES",w="FEATUREGRID:SAVE_ERROR",x="FEATUREGRID:DELETE_SELECTED_FEATURES",_="SET_FEATURES",O="FEATUREGRID:SORT_BY",S="FEATUREGRID:SET_LAYER",j="QUERY:UPDATE_FILTER",E="FEATUREGRID:CHANGE_PAGE",C="FEATUREGRID:GEOMETRY_CHANGED",T="DOCK_SIZE_FEATURES",k="FEATUREGRID:TOGGLE_TOOL",A="FEATUREGRID:CUSTOMIZE_ATTRIBUTE",P="ASK_CLOSE_FEATURE_GRID_CONFIRM",M="FEATUREGRID:OPEN_GRID",I="FEATUREGRID:CLOSE_GRID",D="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",N="FEATUREGRID:FEATURE_GRID_CLOSE_CONFIRMED",R="FEATUREGRID:SET_PERMISSION",L="FEATUREGRID:DISABLE_TOOLBAR",F="FEATUREGRID:ACTIVATE_TEMPORARY_CHANGES",z="FEATUREGRID:DEACTIVATE_GEOMETRY_FILTER",B="FEATUREGRID:ADVANCED_SEARCH",q="FEATUREGRID:ZOOM_ALL",U="FEATUREGRID:INIT_PLUGIN",G="FEATUREGRID:SIZE_CHANGE",H="FEATUREGRID:TOGGLE_SHOW_AGAIN_FLAG",V="FEATUREGRID:HIDE_SYNC_POPOVER",W="FEATUREGRID:UPDATE_EDITORS_OPTIONS",Y={EDIT:"EDIT",VIEW:"VIEW"},K="FEATUREGRID:START_SYNC_WMS",X="FEATUREGRID:STOP_SYNC_WMS",Z="STORE_ADVANCED_SEARCH_FILTER",Q="LOAD_MORE_FEATURES",$="FEATUREGRID:QUERY_RESULT",J="FEATUREGRID:SET_TIME_SYNC",ee="FEATUREGRID:SET_PAGINATION";function te(){return{type:H}}function ne(){return{type:V}}function re(e,t){return{type:$,features:e,pages:t}}function oe(e){return{type:Z,filterObj:e}}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:U,options:e}}function ae(){return{type:D}}function se(){return{type:N}}function le(e,t){return{type:o,features:e,append:t}}function ue(e){return{type:r,options:e}}function ce(e){return{type:C,features:e}}function de(){return{type:h}}function pe(){return{type:m}}function fe(e){return{type:i,features:e}}function he(){return{type:g}}function me(e){return{type:y,features:e}}function ge(){return{type:a}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiselect,n=void 0!==t&&t;return{type:s,multiselect:n}}function be(e,t){return{type:O,sortBy:e,sortOrder:t}}function ve(e,t){return{type:E,page:e,size:t}}function we(e){return{type:S,id:e}}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:j,update:e,append:t}}function _e(e,t){return{type:k,tool:e,value:t}}function Oe(e,t,n){return{type:A,name:e,key:t,value:n}}function Se(){return{type:l,mode:Y.EDIT}}function je(){return{type:l,mode:Y.VIEW}}function Ee(e,t){return{type:c,features:e,updated:t}}function Ce(e){return{type:d,features:e}}function Te(){return{type:p}}function ke(){return{type:b}}function Ae(){return{type:x}}function Pe(){return{type:f}}function Me(){return{type:v}}function Ie(){return{type:w}}function De(){return{type:P}}function Ne(){return{type:I}}function Re(){return{type:M}}function Le(e){return{type:L,disabled:e}}function Fe(e){return{type:R,permission:e}}function ze(){return{type:B}}function Be(){return{type:q}}function qe(){return{type:K}}function Ue(e,t){return{type:G,size:e,dockProps:t}}var Ge=function(e){return{type:Q,pages:e}},He=function(e){return{type:F,activated:e}},Ve=function(e){return{type:z,deactivated:e}},We=function(e){return{type:J,value:e}},Ye=function(e){return{type:ee,size:e}}},"./MapStore2/web/client/actions/highlight.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}));var r="HIGHLIGHT_STATUS",o="UPDATE_HIGHLIGHTED",i="HIGHLIGHT:SET_HIGHLIGHT_FEATURES_PATH";function a(e){return{type:i,featuresPath:e}}function s(e,t){return{type:o,features:e,status:t}}},"./MapStore2/web/client/actions/layerCapabilities.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/api/WMS.js"),i=n("./MapStore2/web/client/api/WFS.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./node_modules/url/url.js"),u=n.n(l),c=n("./node_modules/object-assign/index.js"),d=n.n(c),p=n("./node_modules/xml2js/lib/xml2js.js"),f=n.n(p),h={describeCoverage:function(e,t){var n=u.a.parse(e,!0),r=u.a.format(d()({},n,{query:d()({service:"WCS",version:"1.1.0",identifiers:t,request:"DescribeCoverage"},n.query)}));return s.a.get(r).then((function(e){var t;return f.a.parseString(e.data,{explicitArray:!1},(function(e,n){t=n})),t}))}},m=n("./MapStore2/web/client/utils/LayersUtils.js"),g=n("./MapStore2/node_modules/lodash/lodash.js");function y(e,t,n){return function(a){return o.a.describeLayer(e,t.name,n).then((function(n){return n&&"WFS"===n.owsType?i.describeFeatureTypeOGCSchemas(e,n.name).then((function(e){var o=Object(g.get)(e,"complexType[0].complexContent.extension.sequence.element"),i=Object(g.head)(o&&o.filter((function(e){return"the_geom"===e.name||0===e.type.prefix.indexOf("gml")})));return i=i&&i.type.localPart,n.geometryType=i&&i.split("PropertyType")[0],a(Object(r.db)(t.id,"id",{describeLayer:n,describeFeatureType:e}))})).catch((function(){return a(Object(r.db)(t.id,"id",{describeLayer:n||{error:"no describe feature found"}}))})):(n&&"WCS"===n.owsType&&h.describeCoverage(e,n.name).then((function(e){var o=Object(g.get)(e,"wcs:CoverageDescriptions.wcs:CoverageDescription.wcs:Range.wcs:Field.wcs:Axis.wcs:AvailableKeys.wcs:Key");n.bands=o&&"string"==typeof o?["1"]:o.map((function(e,t){return t+1+""})),a(Object(r.db)(t.id,"id",{describeLayer:n,describeCoverage:e}))})).catch((function(){return a(Object(r.db)(t.id,"id",{describeLayer:n||{error:"no describe coverage found"}}))})),a(Object(r.db)(t.id,"id",{describeLayer:n||{error:"no describe Layer found"}})))})).catch((function(e){return a(Object(r.db)(t.id,"id",{describeLayer:{error:e.status}}))}))}}function b(e,t){var n=Object(m.getCapabilitiesUrl)(e);return function(i){return i(Object(r.db)(e.id,"id",{capabilitiesLoading:!0})),o.a.getCapabilities(n,t).then((function(t){var n=o.a.parseLayerCapabilities(t,e);i(n?Object(r.db)(e.id,"id",Object(m.formatCapabitiliesOptions)(n)):Object(r.db)(e.id,"id",{capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:"no layer info"},description:null}))})).catch((function(t){i(Object(r.db)(e.id,"id",{capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:t},description:null}))}))}}n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}))},"./MapStore2/web/client/actions/locate.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="CHANGE_LOCATE_STATE",o="LOCATE_ERROR";function i(e){return{type:r,state:e}}function a(e){return{type:o,error:e}}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"t",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"A",(function(){return v})),n.d(t,"w",(function(){return w})),n.d(t,"x",(function(){return x})),n.d(t,"z",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"f",(function(){return S})),n.d(t,"a",(function(){return j})),n.d(t,"y",(function(){return E})),n.d(t,"g",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"v",(function(){return A})),n.d(t,"N",(function(){return P})),n.d(t,"H",(function(){return M})),n.d(t,"I",(function(){return I})),n.d(t,"P",(function(){return D})),n.d(t,"E",(function(){return N})),n.d(t,"O",(function(){return R})),n.d(t,"K",(function(){return L})),n.d(t,"Q",(function(){return F})),n.d(t,"C",(function(){return z})),n.d(t,"T",(function(){return B})),n.d(t,"L",(function(){return q})),n.d(t,"U",(function(){return G})),n.d(t,"M",(function(){return H})),n.d(t,"W",(function(){return V})),n.d(t,"Y",(function(){return W})),n.d(t,"J",(function(){return Y})),n.d(t,"Z",(function(){return K})),n.d(t,"V",(function(){return X})),n.d(t,"D",(function(){return Z})),n.d(t,"F",(function(){return Q})),n.d(t,"B",(function(){return $})),n.d(t,"X",(function(){return J})),n.d(t,"G",(function(){return ee})),n.d(t,"R",(function(){return te})),n.d(t,"S",(function(){return ne}));var r=n("./MapStore2/web/client/api/Nominatim.js"),o="LOAD_FEATURE_INFO",i="ERROR_FEATURE_INFO",a="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",l="NEW_MAPINFO_REQUEST",u="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",d="SHOW_MAPINFO_MARKER",p="HIDE_MAPINFO_MARKER",f="SHOW_REVERSE_GEOCODE",h="HIDE_REVERSE_GEOCODE",m="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",y="CLEAR_WARNING",b="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",w="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",x="TOGGLE_MAPINFO_STATE",_="UPDATE_CENTER_TO_MARKER",O="IDENTIFY:CHANGE_PAGE",S="IDENTIFY:CLOSE_IDENTIFY",j="IDENTIFY:CHANGE_FORMAT",E="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",C="IDENTIFY:EDIT_LAYER_FEATURES",T="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",k="IDENTIFY:SET_MAP_TRIGGER",A="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function P(e,t,n,r,i){return{type:o,data:t,reqId:e,requestParams:n,layerMetadata:r,layer:i}}function M(e,t,n,r){return{type:i,error:t,reqId:e,requestParams:n,layerMetadata:r}}function I(e,t,n,r){return{type:a,reqId:e,exceptions:t,requestParams:n,layerMetadata:r}}function D(){return{type:g}}function N(){return{type:y}}function R(e,t){return{type:l,reqId:e,request:t}}function L(e,t,n,r){return{type:m,layer:e,request:t,metadata:n,queryableLayers:r}}function F(){return{type:u}}function z(e){return{type:c,infoFormat:e}}function B(){return{type:d}}function q(){return{type:p}}function U(e){return{type:f,reverseGeocodeData:e.data}}function G(e){return function(t){r.default.reverseGeocode(e).then((function(e){t(U(e))})).catch((function(e){t(U(e))}))}}function H(){return{type:h}}function V(){return{type:x}}function W(e){return{type:_,status:e}}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:b,point:e,layer:t,filterNameList:n,overrideParams:r,itemId:o}}function K(e){return{type:v,point:e}}function X(e){return{type:w,enabled:e}}function Z(e){return{type:O,index:e}}var Q=function(){return{type:S}},$=function(e){return{type:j,format:e}},J=function(e){return{type:E,showCoordinateEditor:e}},ee=function(e){return{type:C,layer:e}},te=function(e){return{type:T,query:e}},ne=function(e){return{type:k,trigger:e}}},"./MapStore2/web/client/actions/mapPopups.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return{type:"MAP:ADD_POPUP",id:e,popup:o({id:e},t),single:n}},l=function(e){return{type:a,id:e}},u=function(){return{type:"MAP:CLEAN_POPUPS"}}},"./MapStore2/web/client/actions/maplayout.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="MAP_LAYOUT:UPDATE_MAP_LAYOUT";function o(e){return{type:r,layout:e}}},"./MapStore2/web/client/actions/measurement.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"g",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"n",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"p",(function(){return w})),n.d(t,"u",(function(){return _})),n.d(t,"w",(function(){return O})),n.d(t,"t",(function(){return S})),n.d(t,"A",(function(){return j})),n.d(t,"B",(function(){return E})),n.d(t,"z",(function(){return C})),n.d(t,"q",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"r",(function(){return A})),n.d(t,"y",(function(){return P})),n.d(t,"C",(function(){return M})),n.d(t,"v",(function(){return I})),n.d(t,"x",(function(){return D}));var i="CHANGE_MEASUREMENT_TOOL",a="CHANGE_MEASUREMENT_STATE",s="MEASUREMENT:CHANGE_UOM",l="MEASUREMENT:CHANGED_GEOMETRY",u="MEASUREMENT:SET_TEXT_LABELS",c="MEASUREMENT:SET_CURRENT_FEATURE",d="MEASUREMENT:ADD_AS_LAYER",p="MEASUREMENT:RESET_GEOMETRY",f="MEASUREMENT:CHANGE_FORMAT",h="MEASUREMENT:CHANGE_COORDINATES",m="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",g="MEASUREMENT:UPDATE_MEASURES",y="MEASUREMENT:INIT",b="MEASUREMENT:SET_MEASUREMENT_CONFIG",v="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function w(e,t,n,r,o){return{type:m,features:e,textLabels:t,uom:n,save:r,id:o}}function x(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:y,defaultOptions:e}}},"./MapStore2/web/client/actions/playback.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"k",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"j",(function(){return m})),n.d(t,"s",(function(){return g})),n.d(t,"r",(function(){return y})),n.d(t,"w",(function(){return b})),n.d(t,"v",(function(){return v})),n.d(t,"u",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"q",(function(){return _})),n.d(t,"t",(function(){return O})),n.d(t,"p",(function(){return S})),n.d(t,"x",(function(){return j})),n.d(t,"n",(function(){return E})),n.d(t,"y",(function(){return C}));var r="PLAYBACK:START",o="PLAYBACK:PAUSE",i="PLAYBACK:STOP",a="PLAYBACK:SET_FRAMES",s="PLAYBACK:APPEND_FRAMES",l="PLAYBACK:FRAMES_LOADING",u="PLAYBACK:SET_CURRENT_FRAME",c="PLAYBACK:SELECT_PLAYBACK_RANGE",d="PLAYBACK:SETTINGS_CHANGE",p="PLAYBACK:TOGGLE_ANIMATION_MODE",f="PLAYBACK:ANIMATION_STEP_MOVE",h="PLAYBACK:UPDATE_METADATA",m={PLAY:"PLAY",STOP:"STOP",PAUSE:"PAUSE"},g=function(){return{type:r}},y=function(){return{type:o}},b=function(){return{type:i}},v=function(e){return{type:a,frames:e}},w=function(e){return{type:u,frame:e}},x=function(e){return{type:s,frames:e}},_=function(e){return{type:l,loading:e}},O=function(e){return{type:c,range:e}},S=function(e,t){return{type:d,name:e,value:t}},j=function(){return{type:p}},E=function(e){return{type:f,direction:e}},C=function(e){var t=e.next,n=e.previous,r=e.forTime;return{type:h,forTime:r,next:t,previous:n}}},"./MapStore2/web/client/actions/queryform.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"r",(function(){return s})),n.d(t,"H",(function(){return l})),n.d(t,"G",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"K",(function(){return d})),n.d(t,"s",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"A",(function(){return y})),n.d(t,"v",(function(){return b})),n.d(t,"w",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"J",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return S})),n.d(t,"u",(function(){return j})),n.d(t,"C",(function(){return E})),n.d(t,"o",(function(){return C})),n.d(t,"n",(function(){return T})),n.d(t,"B",(function(){return k})),n.d(t,"f",(function(){return A})),n.d(t,"O",(function(){return P})),n.d(t,"P",(function(){return M})),n.d(t,"N",(function(){return I})),n.d(t,"M",(function(){return D})),n.d(t,"L",(function(){return N})),n.d(t,"D",(function(){return R})),n.d(t,"d",(function(){return L})),n.d(t,"t",(function(){return F})),n.d(t,"p",(function(){return z})),n.d(t,"I",(function(){return B})),n.d(t,"l",(function(){return q})),n.d(t,"a",(function(){return U})),n.d(t,"F",(function(){return G})),n.d(t,"q",(function(){return H})),n.d(t,"z",(function(){return V})),n.d(t,"E",(function(){return W})),n.d(t,"m",(function(){return Y})),n.d(t,"R",(function(){return K})),n.d(t,"S",(function(){return X})),n.d(t,"db",(function(){return Z})),n.d(t,"pb",(function(){return Q})),n.d(t,"sb",(function(){return $})),n.d(t,"rb",(function(){return J})),n.d(t,"vb",(function(){return ee})),n.d(t,"mb",(function(){return te})),n.d(t,"eb",(function(){return ne})),n.d(t,"T",(function(){return re})),n.d(t,"X",(function(){return oe})),n.d(t,"Z",(function(){return ie})),n.d(t,"Y",(function(){return ae})),n.d(t,"nb",(function(){return se})),n.d(t,"jb",(function(){return le})),n.d(t,"lb",(function(){return ue})),n.d(t,"ub",(function(){return ce})),n.d(t,"kb",(function(){return de})),n.d(t,"V",(function(){return pe})),n.d(t,"W",(function(){return fe})),n.d(t,"fb",(function(){return he})),n.d(t,"ob",(function(){return me})),n.d(t,"U",(function(){return ge})),n.d(t,"ib",(function(){return ye})),n.d(t,"ab",(function(){return be})),n.d(t,"gb",(function(){return ve})),n.d(t,"yb",(function(){return xe})),n.d(t,"xb",(function(){return _e})),n.d(t,"wb",(function(){return Oe})),n.d(t,"Q",(function(){return Se})),n.d(t,"qb",(function(){return je})),n.d(t,"cb",(function(){return Ee})),n.d(t,"hb",(function(){return Ce})),n.d(t,"bb",(function(){return Te})),n.d(t,"tb",(function(){return ke}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function i(e){return(i="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)}var a="ADD_FILTER_FIELD",s="REMOVE_FILTER_FIELD",l="UPDATE_FILTER_FIELD",u="UPDATE_EXCEPTION_FIELD",c="ADD_GROUP_FIELD",d="UPDATE_LOGIC_COMBO",p="REMOVE_GROUP_FIELD",f="CHANGE_CASCADING_VALUE",h="EXPAND_ATTRIBUTE_PANEL",m="EXPAND_SPATIAL_PANEL",g="QUERYFORM:EXPAND_CROSS_LAYER",y="QUERYFORM:SET_CROSS_LAYER_PARAMETER",b="QUERYFORM:RESET_CROSS_LAYER_FILTER",v="SELECT_SPATIAL_METHOD",w="SELECT_VIEWPORT_SPATIAL_METHOD",x="UPDATE_GEOMETRY",_="SELECT_SPATIAL_OPERATION",O="CHANGE_SPATIAL_ATTRIBUTE",S="CHANGE_SPATIAL_FILTER_VALUE",j="REMOVE_SPATIAL_SELECT",E="SHOW_SPATIAL_DETAILS",C="QUERY_FORM_SEARCH",T="QUERY_FORM_RESET",k="SHOW_GENERATED_FILTER",A="CHANGE_DWITHIN_VALUE",P="ZONE_SEARCH",M="ZONE_SEARCH_ERROR",I="ZONE_FILTER",D="ZONE_CHANGE",N="ZONES_RESET",R="SIMPLE_FILTER_FIELD_UPDATE",L="ADD_SIMPLE_FILTER_FIELD",F="REMOVE_SIMPLE_FILTER_FIELD",z="REMOVE_ALL_SIMPLE_FILTER_FIELDS",B="UPDATE_FILTER_FIELD_OPTIONS",q="LOADING_FILTER_FIELD_OPTIONS",U="QUERYFORM:ADD_CROSS_LAYER_FILTER_FIELD",G="QUERYFORM:UPDATE_CROSS_LAYER_FILTER_FIELD",H="QUERYFORM:REMOVE_CROSS_LAYER_FILTER_FIELD",V="SET_AUTOCOMPLETE_MODE",W="TOGGLE_AUTOCOMPLETE_MENU",Y="QUERYFORM:LOAD_FILTER";function K(e){return{type:a,groupId:e}}function X(e,t){return{type:c,groupId:e,index:t}}function Z(e){return{type:s,rowId:e}}function Q(e,t){return{type:W,rowId:e,status:t}}function $(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:l,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}}function J(e,t){return{type:u,rowId:e,exceptionMessage:t}}function ee(e,t){return{type:d,groupId:e,logic:t}}function te(e){return{type:V,status:e}}function ne(e){return{type:p,groupId:e}}function re(e){return{type:f,attributes:e}}function oe(e){return{type:h,expand:e}}function ie(e){return{type:m,expand:e}}function ae(e){return{type:g,expand:e}}function se(e,t){return{type:y,key:e,value:t}}function le(e,t){return{type:v,fieldName:t,method:e}}function ue(){return{type:w}}function ce(e){return{type:x,geometry:e}}function de(e,t){return{type:_,fieldName:t,operation:e}}function pe(e){return{type:O,attribute:e}}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.feature,n=e.srsName,r=e.collectGeometries,o=e.style,i=e.options,a=e.value;return{type:S,value:a,collectGeometries:r,options:i,geometry:t&&t.geometry,feature:t,srsName:n,style:o}}function he(){return{type:j}}function me(e){return{type:E,show:e}}function ge(e){return{type:A,distance:e}}function ye(e,t){return{type:C,searchUrl:e,filterObj:t}}function be(e){return{type:Y,filter:e}}function ve(e){return{type:T,skip:e}}function we(e,t){return{type:M,error:e,id:t}}function xe(e,t){return{type:P,active:e,id:t}}function _e(e,t,n){return function(r){return o.a.post(e,t,{timeout:1e4,headers:{Accept:"application/json","Content-Type":"text/plain"}}).then((function(o){var a=o.data;if("object"!==i(a))try{a=JSON.parse(a)}catch(o){r(we("Search result broken ("+e+": "+t+"): "+o.message,n))}r(function(e,t){return{type:I,data:e,id:t}}(a,n)),r(xe(!1,n))})).catch((function(e){r(we(e,n))}))}}function Oe(e,t){return{type:D,id:e,value:t}}function Se(e){return{type:U,rowId:(new Date).getTime(),groupId:e}}function je(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{type:G,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}}function Ee(e){return{type:H,rowId:e}}function Ce(){return{type:b}}function Te(e,t){return{type:q,status:e,filterField:t}}function ke(e,t,n){return{type:B,filterField:e,options:t,valuesCount:n}}},"./MapStore2/web/client/actions/search.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"p",(function(){return i})),n.d(t,"l",(function(){return a})),n.d(t,"m",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"q",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"r",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return _})),n.d(t,"x",(function(){return O})),n.d(t,"L",(function(){return S})),n.d(t,"v",(function(){return j})),n.d(t,"C",(function(){return E})),n.d(t,"D",(function(){return C})),n.d(t,"E",(function(){return T})),n.d(t,"B",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"z",(function(){return P})),n.d(t,"t",(function(){return M})),n.d(t,"J",(function(){return I})),n.d(t,"G",(function(){return D})),n.d(t,"I",(function(){return N})),n.d(t,"F",(function(){return R})),n.d(t,"u",(function(){return L})),n.d(t,"K",(function(){return F})),n.d(t,"w",(function(){return z})),n.d(t,"y",(function(){return B})),n.d(t,"H",(function(){return q}));var r=n("./MapStore2/web/client/actions/notifications.js"),o="SEARCH:SEARCH_WITH_FILTER",i="TEXT_SEARCH_STARTED",a="TEXT_SEARCH_RESULTS_LOADED",s="TEXT_SEARCH_RESULTS_PURGE",l="TEXT_SEARCH_RESET",u="TEXT_SEARCH_ADD_MARKER",c="TEXT_SEARCH_TEXT_CHANGE",d="TEXT_SEARCH_LOADING",p="TEXT_SEARCH_NESTED_SERVICE_SELECTED",f="TEXT_SEARCH_ERROR",h="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",g="TEXT_SEARCH_SHOW_GFI",y="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",b="UPDATE_RESULTS_STYLE",v="CHANGE_SEARCH_TOOL",w="SEARCH:ZOOM_ADD_POINT",x="SEARCH:CHANGE_FORMAT",_="SEARCH:CHANGE_COORD";function O(e){return{type:x,format:e}}function S(e,t,n){return{type:w,pos:e,zoom:t,crs:n}}function j(e){return{type:v,activeSearchTool:e}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return{type:a,results:e,append:t,services:n}}function C(e){return{type:c,searchText:e}}function T(e){return{type:d,loading:e}}function k(e){return{type:f,error:e}}function A(){return{type:s}}function P(){return{type:l}}function M(e,t){return{type:u,markerPosition:e,markerLabel:t}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.services,r=void 0===n?null:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:i,searchText:e,services:r,maxResults:o}}function D(e,t,n){return{type:m,item:e,mapConfig:t,resultsStyle:n}}var N=function(e){return{type:g,item:e}};function R(e,t,n){return{type:p,searchText:n,services:e,items:t}}function L(e){return{type:h,item:e}}function F(e){return{type:b,style:e}}function z(e,t){return{type:_,coord:e,val:t}}function B(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function q(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},"./MapStore2/web/client/actions/searchconfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l}));var r="SET_SEARCH_CONFIG_PROP",o="RESET_SEARCH_CONFIG",i="UPDATE_SERVICE";function a(e,t){return{type:r,property:e,value:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{type:o,page:e}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{type:i,service:e,idx:t}}},"./MapStore2/web/client/actions/styleeditor.js":function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"q",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"k",(function(){return b})),n.d(t,"n",(function(){return v})),n.d(t,"D",(function(){return w})),n.d(t,"F",(function(){return x})),n.d(t,"A",(function(){return _})),n.d(t,"H",(function(){return O})),n.d(t,"y",(function(){return S})),n.d(t,"x",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"z",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"v",(function(){return k})),n.d(t,"G",(function(){return A})),n.d(t,"u",(function(){return P})),n.d(t,"t",(function(){return M})),n.d(t,"w",(function(){return I})),n.d(t,"C",(function(){return D})),n.d(t,"B",(function(){return N})),n.d(t,"E",(function(){return R}));var r="STYLEEDITOR:TOGGLE_STYLE_EDITOR",o="STYLEEDITOR:SELECT_STYLE_TEMPLATE",i="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",a="STYLEEDITOR:UPDATE_STATUS",s="STYLEEDITOR:RESET_STYLE_EDITOR",l="STYLEEDITOR:ADD_STYLE",u="STYLEEDITOR:CREATE_STYLE",c="STYLEEDITOR:LOADING_STYLE",d="STYLEEDITOR:LOADED_STYLE",p="STYLEEDITOR:ERROR_STYLE",f="STYLEEDITOR:UPDATE_STYLE_CODE",h="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",g="STYLEEDITOR:INIT_STYLE_SERVICE",y="STYLEEDITOR:SET_EDIT_PERMISSION",b="STYLEEDITOR:SET_DEFAULT_STYLE",v="STYLEEDITOR:UPDATE_EDITOR_METADATA";function w(e,t){return{type:r,layer:e,enabled:t}}function x(e){return{type:a,status:e}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,n=e.templateId,r=e.format,i=e.languageVersion,a=e.init;return{type:o,code:t,templateId:n,format:r,init:a,languageVersion:i}}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.temporaryId,n=e.templateId,r=e.code,o=e.format,a=e.languageVersion,s=e.init;return{type:i,temporaryId:t,templateId:n,code:r,format:o,init:s,languageVersion:a}}function S(e){return{type:c,status:e}}function j(){return{type:d}}function E(e){return{type:u,settings:e}}function C(){return{type:s}}function T(e){return{type:l,add:e}}function k(e,t){return{type:p,status:e,error:t}}function A(){return{type:f}}function P(e){return{type:h,code:e}}function M(e){return{type:m,styleName:e}}function I(e,t){return{type:g,service:e,canEdit:t}}function D(e){return{type:y,canEdit:e}}function N(){return{type:b}}function R(e){return{type:v,metadata:e}}},"./MapStore2/web/client/actions/wfsquery.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"k",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"i",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"A",(function(){return v})),n.d(t,"z",(function(){return w})),n.d(t,"v",(function(){return x})),n.d(t,"u",(function(){return _})),n.d(t,"t",(function(){return O})),n.d(t,"s",(function(){return S})),n.d(t,"r",(function(){return j})),n.d(t,"y",(function(){return E})),n.d(t,"x",(function(){return C})),n.d(t,"B",(function(){return T})),n.d(t,"q",(function(){return k})),n.d(t,"w",(function(){return A}));n("./MapStore2/web/client/libs/ajax.js");var r="LAYER_SELECTED_FOR_SEARCH",o="FEATURE_TYPE_SELECTED",i="FEATURE_TYPE_LOADED",a="FEATURE_LOADED",s="FEATURE_LOADING",l="FEATURE_TYPE_ERROR",u="FEATURE_ERROR",c="QUERY_CREATE",d="QUERY:UPDATE_QUERY",p="QUERY_RESULT",f="QUERY_ERROR",h="RESET_QUERY",m="QUERY",g="INIT_QUERY_PANEL",y="QUERY:TOGGLE_SYNC_WMS",b="QUERY:TOGGLE_LAYER_FILTER";function v(){return{type:y}}function w(){return{type:b}}function x(){return{type:g}}function _(e,t){return{type:o,url:e,typeName:t}}function O(e,t){return{type:i,typeName:e,featureType:t}}function S(e,t){return{type:l,typeName:e,error:t}}function j(e){return{type:s,isLoading:e}}function E(e,t,n,r,o){return{type:p,searchUrl:t,filterObj:n,result:e,queryOptions:r,reason:o}}function C(e){return{type:f,error:e}}function T(e,t){return{type:d,updates:e,reason:t}}function k(e,t){return{type:c,searchUrl:e,filterObj:t}}function A(e,t,n,r){return{type:m,searchUrl:e,filterObj:t,queryOptions:n,reason:r}}},"./MapStore2/web/client/actions/widgets.js":function(e,t,n){"use strict";n.d(t,"m",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"z",(function(){return f})),n.d(t,"y",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"r",(function(){return v})),n.d(t,"n",(function(){return w})),n.d(t,"s",(function(){return x})),n.d(t,"v",(function(){return _})),n.d(t,"q",(function(){return O})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return j})),n.d(t,"B",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"t",(function(){return P})),n.d(t,"u",(function(){return M})),n.d(t,"w",(function(){return I})),n.d(t,"x",(function(){return D})),n.d(t,"G",(function(){return N})),n.d(t,"F",(function(){return R})),n.d(t,"M",(function(){return L})),n.d(t,"Y",(function(){return F})),n.d(t,"X",(function(){return z})),n.d(t,"H",(function(){return B})),n.d(t,"E",(function(){return q})),n.d(t,"D",(function(){return U})),n.d(t,"J",(function(){return G})),n.d(t,"I",(function(){return H})),n.d(t,"O",(function(){return V})),n.d(t,"C",(function(){return W})),n.d(t,"N",(function(){return Y})),n.d(t,"T",(function(){return K})),n.d(t,"Q",(function(){return X})),n.d(t,"K",(function(){return Z})),n.d(t,"L",(function(){return Q})),n.d(t,"P",(function(){return $})),n.d(t,"U",(function(){return J})),n.d(t,"R",(function(){return ee})),n.d(t,"S",(function(){return te})),n.d(t,"V",(function(){return ne})),n.d(t,"W",(function(){return re}));var r=n("./node_modules/uuid/v1.js"),o=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="WIDGETS:INSERT",l="WIDGETS:NEW",u="WIDGETS:EDIT",c="WIDGETS:EDIT_NEW",d="WIDGETS:EDITOR_CHANGE",p="WIDGETS:EDITOR_SETTING_CHANGE",f="WIDGETS:UPDATE_PROPERTY",h="WIDGETS:UPDATE_LAYER",m="WIDGETS:CHANGE_LAYOUT",g="WIDGETS:DELETE",y="WIDGETS:CLEAR_WIDGETS",b="WIDGETS:ADD_DEPENDENCY",v="WIDGETS:REMOVE_DEPENDENCY",w="WIDGETS:LOAD_DEPENDENCIES",x="WIDGETS:RESET_DEPENDENCIES",_="WIDGETS:TOGGLE_CONNECTION",O="WIDGETS:OPEN_FILTER_EDITOR",S="WIDGETS:EXPORT_CSV",j="WIDGETS:EXPORT_IMAGE",E="WIDGETS:WIDGET_SELECTED",C="WIDGETS:NEW_CHART",T="floating",k="dependencySelector",A=/^widgets\["?([^"\]]*)"?\]\.?(.*)$/,P="WIDGET:TOGGLE_COLLAPSE",M="WIDGET:TOGGLE_COLLAPSE_ALL",I="WIDGET:TOGGLE_MAXIMIZE",D="WIDGET:TOGGLE_TRAY",N=function(e){return{type:l,widget:e}},R=function(){return{type:C}},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:s,target:t,id:o()(),widget:e}},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:T;return{type:f,id:e,target:o,key:t,value:n,mode:r}},z=function(e){return{type:h,layer:e}},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:g,target:t,widget:e}},q=function(){return{type:y}},U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return{type:m,allLayouts:t,layout:e,target:n}},G=function(e){return{type:u,widget:e}},H=function(e,t){return{type:c,widget:e,settings:t}},V=function(e,t){return{type:d,key:e,value:t}},W=function(e,t){return{type:p,key:e,value:t}},Y=function(e){return{type:w,dependencies:e}},K=function(e,t,n,r){return{type:_,active:e,availableDependencies:t,options:n,target:r}},X=function(e){return W("step",e)},Z=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:S,data:n,title:void 0===r?"export":r}},Q=function(e){var t=e.widgetDivId;return{type:j,widgetDivId:t}},$=function(){return{type:O}},J=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:T;return{type:P,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;return{type:M,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:I,widget:e,target:t}},re=function(e){return{type:D,value:e}}},"./MapStore2/web/client/api/CSW.js":function(e,t,n){"use strict";var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),f=function(e){var t=o.a.parse(e,!0);return o.a.format(l()({},t,{search:null},{query:l()({service:"CSW",version:"2.0.2"},t.query,{request:void 0})}))},h={parseUrl:f,getRecordById:function(e){return new Promise((function(t){Promise.all([n.e(1),n.e(27)]).then(function(){t(c.a.get(e).then((function(e){if(e){var t=n("./MapStore2/web/client/utils/ogc/CSW.js").unmarshaller.unmarshalString(e.data);if(t&&t.name&&"GetRecordByIdResponse"===t.name.localPart&&t.value&&t.value.abstractRecord){var r=t.value.abstractRecord[0].value.dcElement;if(r){for(var o={references:[]},i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2)?{ramp:"custom",colors:c.a.scale(o.colors).colors(n).join(",")}:{ramp:t}},v=function(e,t){var n=e.thematic&&e.thematic.params||[],r=e.thematic&&e.thematic.fieldAsParam&&["field"]||[];return Object.keys(t).reduce((function(o,i){return function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return t.field===e})).length>0}(e,t)}(i,[].concat(h(n),h(r)))?l()(o,function(e,t,n){return{viewparams:(e?e+";":"")+t+":"+n}}(o.viewparams,i,t[i])):"ramp"===i?l()(o,b(e,t[i],t.intervals||5)):"classification"===i?l()(o,(a=t[i])?{customClasses:a.reduce((function(e,t){return[].concat(h(e),[t.min+","+t.max+","+t.color])}),[]).join(";")}:{}):"attribute"===i?l()(o,{attribute:e.thematic&&e.thematic.fieldAsParam?t[i]:t.field}):"field"===i&&e.thematic&&!e.thematic.fieldAsParam?o:"strokeWeight"!==i||t.strokeOn?"strokeOn"===i?o:l()(o,f({},i,t[i])):l()(o,f({},i,-1));var a}),{})},w=function(e){return l()({protocol:e.protocol,hostname:e.domain},e.port?{port:e.port}:{})},x=function(e){return e.reduce((function(e,t){return Object(a.isNumber)(t)?t:e}),null)},_=function(e){return e.PolygonSymbolizer?"Polygon":e.LineSymbolizer?"LineString":e.PointSymbolizer?"Point":null},O=function(e){return e.PolygonSymbolizer?e.PolygonSymbolizer.Fill&&e.PolygonSymbolizer.Fill.CssParameter&&e.PolygonSymbolizer.Fill.CssParameter.$||"#808080":e.LineSymbolizer?e.LineSymbolizer.Stroke&&e.LineSymbolizer.Stroke.CssParameter&&e.LineSymbolizer.Stroke.CssParameter.$||"#808080":e.PointSymbolizer&&e.PointSymbolizer.Graphic&&e.PointSymbolizer.Graphic.Mark&&e.PointSymbolizer.Graphic.Mark.Fill&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter.$||"#808080"},S={getStyleService:function(e,t){var n=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(n),{pathname:n.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.xml",query:l()({},v(e,t),{fullSLD:!0})}))},getCapabilitiesUrl:function(e){var t=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(t),{pathname:t.applicationRootPath+"/rest/sldservice/capabilities.json"}))},getStyleMetadataService:function(e,t){var n=Object(r.e)(Object(d.getLayerUrl)(e));return i.a.format(l()(w(n),{pathname:n.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.json",query:t}))},getStyleParameters:function(e,t){return{SLD:S.getStyleService(e,t),viewparams:v(e,t).viewparams}},getMetadataParameters:function(e,t){return v(e,t)},getFieldsService:function(e){var t=Object(r.e)(Object(d.getLayerUrl)(e)),n=e.thematic&&e.thematic.datatable||e.name;return i.a.format(l()(w(t),{pathname:t.applicationRootPath+"/rest/sldservice/"+n+"/attributes.json"}))},readFields:function(e){return Object(a.sortBy)(Object(a.castArray)(e.Attributes.Attribute||[]).filter((function(e){return t=e.type,-1!==["Integer","Long","Double","Float","BigDecimal"].indexOf(t);var t})).map((function(e){return{name:e.name,type:(e.type,"number")}})),(function(e){return e.name}))},readClassification:function(e){!function(e){if(!e||!e.Rules||!e.Rules.Rule)throw new Error("toc.thematic.invalid_object");Object(a.castArray)(e.Rules.Rule).forEach((function(e){if(!e.PolygonSymbolizer&&!e.LineSymbolizer&&!e.PointSymbolizer)throw new Error("toc.thematic.invalid_geometry")}))}(e);var t=Object(a.castArray)(e.Rules.Rule||[]);return t.map((function(e,n){var r,o,i,a;return{title:e.Title,color:O(e),type:_(e),min:x([e.Filter.And&&(e.Filter.And.PropertyIsGreaterThanOrEqualTo||e.Filter.And.PropertyIsGreaterThan).Literal,e.Filter.PropertyIsEqualTo&&e.Filter.PropertyIsEqualTo.Literal,n===t.length-1&&(null==e||null===(r=e.Filter)||void 0===r||null===(o=r.PropertyIsGreaterThanOrEqualTo)||void 0===o?void 0:o.Literal)]),max:x([e.Filter.And&&(e.Filter.And.PropertyIsLessThanOrEqualTo||e.Filter.And.PropertyIsLessThan).Literal,e.Filter.PropertyIsEqualTo&&e.Filter.PropertyIsEqualTo.Literal,0===n&&(null==e||null===(i=e.Filter)||void 0===i||null===(a=i.PropertyIsLessThan)||void 0===a?void 0:a.Literal)])}}))||[]},readRasterClassification:function(e){var t,n,r,o;return((null===(n=Object(a.castArray)(null==e||null===(t=e.Rules)||void 0===t?void 0:t.Rule)[0])||void 0===n||null===(r=n.RasterSymbolizer)||void 0===r||null===(o=r.ColorMap)||void 0===o?void 0:o.ColorMapEntry)||[]).map((function(e){return{color:e["@color"],opacity:void 0===e["@opacity"]?1:e["@opacity"],label:e["@label"],quantity:parseFloat(e["@quantity"])}}))},methods:["equalInterval","quantile","jenks"],getThematicParameters:function(e){return e.map((function(e){return e.type&&S.standardParams[e.type]&&l()({},S.standardParams[e.type],e)||e}))},standardParams:{aggregate:{title:"toc.thematic.classification_aggregate",defaultValue:"sum",values:[{name:"toc.thematic.values.sum",value:"sum"},{name:"toc.thematic.values.avg",value:"avg"},{name:"toc.thematic.values.count",value:"count"},{name:"toc.thematic.values.min",value:"min"},{name:"toc.thematic.values.max",value:"max"}]}},getColor:b,getColors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t?t.thematic.colors||[].concat(h(e),h(t.thematic.additionalColors||[])):r?[r].concat(h(e)):h(e);return o.map((function(e){return!Object(a.isString)(e.colors)&&e.colors.length>=n?e:l()({},e,{colors:c.a.scale(e.colors).colors(n)})}))},hasThematicStyle:function(e){return!!(e&&e.params&&e.params.SLD)},removeThematicStyle:function(e){e.SLD,e.viewparams;var t=p(e,["SLD","viewparams"]);return l()({},t,{SLD:null,viewparams:null})},defaultParams:{attribute:"",intervals:5,method:"equalInterval",ramp:"red",field:"",open:!1,strokeWeight:.2,strokeColor:"#ff0000",strokeOn:!1}};t.a=S},"./MapStore2/web/client/api/StyleEditor.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return x}));var r=n("./MapStore2/node_modules/lodash/isEqual.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/ajax.js"),a=n.n(i),s=n("./MapStore2/web/client/api/geoserver/Styles.js"),l=n("./MapStore2/web/client/api/SLDService.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return t.map((function(t){return t.ruleId===e?n(t):t}))}var b={updateStyleService:function(e){var t=e.baseUrl,n=e.styleService,r=null!=n&&n.isStatic?n.baseUrl:t;if(g[r])return new Promise((function(e){return e(g[r])}));var o=l.a.getCapabilitiesUrl({url:r});return(null!=n&&n.isStatic?new Promise((function(e){return e(n)})):s.a.getStyleService({baseUrl:r})).then((function(e){return a.a.get(o).then((function(t){var n=t.data;return[e,n]})).catch((function(){return[e,null]}))})).then((function(e){var t,n,o,i,a,s,l,u,d,f=p(e,2),y=f[0],b=f[1],v=c(c({},y),{},{classificationMethods:b?(t=b,n=(t||{}).capabilities,o=void 0===n?{}:n,i=o.vector,a=void 0===i?{}:i,s=o.raster,l=void 0===s?{}:s,u=a.classifications||[],d=l.classifications||[],{vector:u.filter((function(e){return-1!==h.indexOf(e)})),raster:d.filter((function(e){return-1!==h.indexOf(e)}))}):{vector:m,raster:m}});return g[r]=v,v}))}};function v(e){var t=e.baseUrl,n=e.styleService;return b.updateStyleService({baseUrl:t,styleService:n})}function w(e){var t=e.values,n=e.properties,r=e.rules,i=e.layer,s=["intervals","method","reverse","attribute","ramp"],u=c(c({},n),t),p=n.ruleId;if(void 0!==t.ramp&&t.ramp!==n.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=l.a.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),u),{},{classification:u.classification.map((function(e,t){return c(c({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var h=s.reduce((function(e,t){return c(c({},e),{},d({},t,n[t]))}),{}),m=s.reduce((function(e,t){return c(c({},e),{},d({},t,u[t]))}),{});if(!s.find((function(e){return void 0===u[e]}))&&!o()(h,m)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method)){var g="custom"===u.ramp&&u.classification.length>0&&{name:"custom",colors:u.classification.map((function(e){return e.color}))},b=l.a.getColor(void 0,u.ramp,u.intervals,g);return a.a.get(l.a.getStyleMetadataService(i,c({intervals:u.intervals,method:u.method,attribute:u.attribute,reverse:u.reverse},b))).then((function(e){var n=e.data;return y(p,r,(function(e){return c(c(c({},e),t),{},{classification:l.a.readClassification(n),errorId:void 0})}))})).catch((function(){return y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:"styleeditor.classificationError"})}))}))}return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:void 0})})))}))}function x(e){var t=e.values,n=e.properties,r=e.rules,i=e.layer,s=["intervals","continuous","method","reverse","ramp"],u=c(c({},n),t),p=n.ruleId,f=s.reduce((function(e,t){return c(c({},e),{},d({},t,n[t]))}),{}),h=s.reduce((function(e,t){return c(c({},e),{},d({},t,u[t]))}),{});if(!s.find((function(e){return void 0===u[e]}))&&!o()(f,h)){var m="custom"===u.ramp&&u.classification.length>0&&{name:"custom",colors:u.classification.map((function(e){return e.color}))},g=l.a.getColor(void 0,u.ramp,u.intervals,m);return a.a.get(l.a.getStyleMetadataService(i,c({intervals:u.intervals,continuous:u.continuous,method:u.method,reverse:u.reverse},g))).then((function(e){var n=e.data;return y(p,r,(function(e){return c(c(c({},e),t),{},{classification:l.a.readRasterClassification(n),errorId:void 0})}))})).catch((function(){return y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:"styleeditor.classificationRasterError"})}))}))}return new Promise((function(e){return e(y(p,r,(function(e){return c(c(c({},e),t),{},{errorId:void 0})})))}))}},"./MapStore2/web/client/api/WMTS.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./node_modules/url/url.js"),s=n.n(a),l=n("./node_modules/object-assign/index.js"),u=n.n(l),c=n("./node_modules/xml2js/lib/xml2js.js"),d=n.n(c),p=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),h=n("./MapStore2/web/client/utils/WMTSUtils.js"),m={},g=function(e){var t=s.a.parse(e,!0);return s.a.format(u()({},t,{search:null},{query:u()({SERVICE:"WMTS",VERSION:"1.0.0",REQUEST:"GetCapabilities"},t.query)}))},y=function(e,t,n,r,o){for(var i=e.Capabilities.Contents,a=Object(h.getOperations)(e),s=Object(h.getRequestEncoding)(e),l=i.TileMatrixSet&&Object(p.castArray)(i.TileMatrixSet)||[],c=[],d=l.length,m=0;m=t-1&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=m()((null==e?void 0:e.entry)||[]);return t.reduce((function(e,t){return w(w({},e),{},x({},t["@key"],t.$))}),{})},T=function(e){var t=e.baseUrl,n=e.styleName,r=e.metadata,i=E(w(w({},Object(g.h)(n)),{},{geoserverBaseUrl:t}));return o.a.get(i).then((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data,a=void 0===n?{}:n;return o.a.put(i,{style:w(w({},a.style),{},{metadata:w(w({},C(null===(e=a.style)||void 0===e?void 0:e.metadata)),r)})})}))},k={saveStyle:function(e,t,n,r){var i=e+"styles/"+encodeURI(t),s=a()({},r);return s.headers=a()({},s.headers,{"Content-Type":"application/vnd.ogc.sld+xml"}),o.a.put(i,n,s)},getStyleService:function(e){var t=e.baseUrl;return function(e){var t=e.baseUrl;return c[t]?new Promise((function(e){return e(c[t])})):o.a.all([o.a.get("".concat(t,"rest/about/version"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"about.resource")})).catch((function(){return null})),o.a.get("".concat(t,"rest/about/manifest"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"about.resource")})).catch((function(){return null})),o.a.get("".concat(t,"rest/fonts"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return Object(s.get)(t,"fonts")})).catch((function(){return null}))]).then((function(e){var n=l(e,3),r=n[0],o=n[1],i=n[2],a={version:r&&d(r),manifest:o&&d(o),fonts:i};return r&&o?(c[t]=a,c[t]):a}))}({baseUrl:t}).then((function(e){var n=e.version,r=e.manifest,o=e.fonts,i=void 0===o?[]:o;if(!n)return null;var a=(r||[]).map((function(e){var t=e.name;return f()(_.filter((function(e){var n=e.regex;return t.match(n)})).map((function(e){return e.format})))})).filter((function(e){return e})),s=f()(n.filter((function(e){var t=e.name;return"geoserver"===(void 0===t?"":t).toLowerCase()})))||{};return{baseUrl:t,version:s.version,formats:[].concat(y(a),["sld"]),availableUrls:[],fonts:i}}))},getStyle:function(e){var t=e.options,n=e.format,r=e.baseUrl,i=e.styleName,a=Object(g.h)(i),s=a.name,l=a.workspace,u=j({options:t,format:n,baseUrl:r,name:s,workspace:l});return o.a.get(u.url,u.options)},createStyle:function(e){var t=e.baseUrl,n=e.code,r=e.options,i=e.format,a=void 0===i?"sld":i,s=e.styleName,l=e.languageVersion,u=e.metadata,c=Object(g.h)(s),d=c.name,p=c.workspace,f=j({options:r,format:a,baseUrl:t,name:d,workspace:p,languageVersion:l},!0);return o.a.post(f.url,n,f.options).then((function(){return u?T({baseUrl:t,styleName:s,metadata:u}).then((function(){return null})).catch((function(){return null})):null}))},updateStyle:function(e){var t=e.baseUrl,n=e.code,r=e.options,i=e.format,a=void 0===i?"sld":i,s=e.styleName,l=e.languageVersion,u=e.metadata,c=Object(g.h)(s),d=c.name,p=c.workspace,f=j({options:r,format:a,baseUrl:t,name:d,workspace:p,languageVersion:l});return o.a.put(f.url,n,f.options).then((function(){return u?T({baseUrl:t,styleName:s,metadata:u}).then((function(){return null})).catch((function(){return null})):null}))},deleteStyle:function(e){var t=e.baseUrl,n=e.options,r=e.format,i=void 0===r?"sld":r,a=e.styleName,s=Object(g.h)(a),l=s.name,u=s.workspace,c=j({options:n,format:i,baseUrl:t,name:l,workspace:u});return o.a.delete(c.url,c.options)},getStylesInfo:function(e){var t=e.baseUrl,n=e.styles,r=void 0===n?[]:n,i=[],s=r.length;return new Promise((function(e){r&&0!==r.length?r.forEach((function(n,l){var u=n.name;return o.a.get(E(w(w({},Object(g.h)(u)),{},{geoserverBaseUrl:t}))).then((function(t){var n=t.data;i[l]=a()({},r[l],n&&n.style&&w(w(w({},n.style),n.style.metadata&&{metadata:C(n.style.metadata)}),{},{name:Object(g.l)(n.style)})||{}),0===--s&&e(i.filter((function(e){return e})))})).catch((function(){i[l]=a()({},r[l]),0===--s&&e(i.filter((function(e){return e})))}))})):e([])}))},getStyleCodeByName:function(e){var t=e.baseUrl,n=e.styleName,r=e.options,i=Object(g.h)(n),a=i.name,s=i.workspace,l=E({name:a,workspace:s,geoserverBaseUrl:t});return o.a.get(l,r).then((function(e){return e.data&&e.data.style&&e.data.style.name?o.a.get(E({workspace:s,geoserverBaseUrl:t,name:e.data.style.name,format:(n=e.data.style.filename,n.split(".").pop())})).then((function(t){var n=t.data;return w(w({},e.data.style),{},{code:n})})):null;var n}))},updateStyleMetadata:T};t.a=k},"./MapStore2/web/client/api/identify.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:{},c=a.attachJSON,d=a.itemId,f=void 0===d?null:d,h=function(t){return o.Observable.defer((function(){return s.a.get(e,{params:t})}))},m=function(t){return Object(i.g)(n,e,t)},g=Object(i.g)(n,e,t)?m:h;return c&&"application/json"!==t.info_format&&"application/json"!==t.outputFormat?o.Observable.forkJoin(g(t),g(p(p({},t),{},{info_format:"application/json"})).map((function(e){return e.data})).catch((function(){return o.Observable.of({})}))).map((function(e){var t=u(e,2),n=t[0],o=t[1];return p(p({},n),{},{features:o&&o.features&&o.features.filter((function(e){return!!Object(r.isNil)(f)||e.id===f})),featuresCrs:o&&o.crs&&Object(l.parseURN)(o.crs)})})):g(t).map((function(e){return e.data})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(e)?e:p(p({},e),{},{features:e.features&&e.features.filter((function(e){return!f||e.id===f}))}),features:e.features&&e.features.filter((function(e){return!f||e.id===f})),featuresCrs:e&&e.crs&&Object(l.parseURN)(e.crs)}}))}},"./MapStore2/web/client/api/mapBackground.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=function(e,t,n,i){var a=Object(r.get)(o.default.getDefaults(),"initialState.defaultState.catalog.default.staticServices.default_map_backgrounds.backgrounds").filter((function(e){return!i||e.title.indexOf(i)>-1})),s=a.filter((function(e,r){return r>=t-1&&r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return m}));var p=function(e){var t,n=e.searchText,r=e.staticFilter,o=e.blacklist,i=e.item,a=e.queriableAttributes,s=e.predicate,l=Object(u.generateTemplateString)(r||"")(i),c=n.split(" ").filter((function(e){return e})).filter((function(e){return o.indexOf(e.toLowerCase())<0}));return 0===c.length&&(c=n?[n]:[]),c.length>0&&(t="(".concat(c.map((function(e){return a.map((function(t){return"".concat(t," ").concat(s," '%").concat(e.replace("'","''"),"%'")})).join(" OR ")})).join(") AND (")).concat(")")),t=t?t.concat(l):l||null},f={nominatim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnFullData:!1};return n("./MapStore2/web/client/api/Nominatim.js").default.geocode(e,t).then((function(e){return t.returnFullData?e:l(e.data)}))},wfs:function(e,t){var n=t.url,r=t.typeName,i=t.queriableAttributes,a=void 0===i?[]:i,s=t.outputFormat,l=void 0===s?"application/json":s,u=t.predicate,f=void 0===u?"ILIKE":u,h=t.staticFilter,m=void 0===h?"":h,g=t.blacklist,y=void 0===g?[]:g,b=t.item,v=t.fromTextToFilter,w=void 0===v?p:v,x=t.returnFullData,_=void 0!==x&&x,O=d(t,["url","typeName","queriableAttributes","outputFormat","predicate","staticFilter","blacklist","item","fromTextToFilter","returnFullData"]),S=w({searchText:e,staticFilter:m,blacklist:y,item:b,queriableAttributes:a,predicate:f});return c.getFeatureSimple(n,o()({maxFeatures:10,typeName:r,outputFormat:l,cql_filter:S},O)).then((function(e){return _?e:e.features}))}},h={setService:function(e,t){f[e]=t},getService:function(e){return f[e]?f[e]:null}},m={Services:f,Utils:h}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n0?" selected":"",u=this.props.node.loadingError?" group-error":"",c=s.isDraggable?o.a.createElement(H.a,{key:"grabTool",tooltip:"toc.grabGroupIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=o.a.createElement("div",{className:"toc-default-group-head"},c,this.renderVisibility(u),o.a.createElement(M,{tooltipOptions:this.props.tooltipOptions,tooltip:this.props.titleTooltip,node:this.props.node,currentLocale:this.props.currentLocale,onClick:this.props.onToggle,onSelect:this.props.onSelect})),p=o.a.createElement(U,{level:this.props.level+1,onSort:this.props.onSort,onError:this.props.onError,setDndState:this.props.setDndState,position:"collapsible"},this.props.children);return this.props.node.showComponent&&!this.props.node.hide?o.a.createElement(i.a,W({className:(this.props.isDragging||this.props.node.placeholder?"is-placeholder ":"")+"toc-default-group toc-group-"+this.props.level+l+u,sortableStyle:this.props.sortableStyle,style:this.props.style,type:"group"},s),n(a(this.props.isDraggable?r(d):d)),this.props.isDragging||this.props.node.placeholder?null:p):null}}])&&X(t.prototype,n),r&&X(t,r),s}(o.a.Component);te(ne,"propTypes",{node:s.a.object,style:s.a.object,sortableStyle:s.a.object,onToggle:s.a.func,level:s.a.number,onSort:s.a.func,onError:s.a.func,propertiesChangeHandler:s.a.func,groupVisibilityCheckbox:s.a.bool,visibilityCheckType:s.a.string,currentLocale:s.a.string,selectedNodes:s.a.array,onSelect:s.a.func,titleTooltip:s.a.bool,tooltipOptions:s.a.object,setDndState:s.a.func,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDraggable:s.a.bool,isDragging:s.a.bool,isOver:s.a.bool}),te(ne,"defaultProps",{node:{},onToggle:function(){},style:{marginBottom:"16px",cursor:"pointer"},sortableStyle:{},propertiesChangeHandler:function(){},groupVisibilityCheckbox:!1,visibilityCheckType:"glyph",level:1,currentLocale:"en-US",joinStr:" - ",selectedNodes:[],onSelect:function(){},titleTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e},isDraggable:!1,isDragging:!1,isOver:!1});t.a=Object(l.a)("LayerOrGroup",ne)},"./MapStore2/web/client/components/TOC/DefaultLayer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/TOC/Node.jsx"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/TOC/enhancers/draggableComponent.jsx"),d=n("./MapStore2/web/client/components/TOC/fragments/VisibilityCheck.jsx"),p=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),f=n("./MapStore2/web/client/utils/TOCUtils.js");n("./MapStore2/web/client/components/TOC/fragments/css/toctitle.css");function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var te=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function ne(e){return(ne="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 re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(){return(oe=Object.assign||function(e){for(var t=1;t0?" selected":"",l="Error"===this.props.node.loadingError?" layer-error":"",u="Warning"===this.props.node.loadingError?" layer-warning":"",c=i.isDraggable?o.a.createElement(T.a,{key:"grabTool",tooltip:"toc.grabLayerIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=!!this.props.node.dummy,p=!d&&this.filterLayers(this.props.node)?this.renderNode(c,a,s,l,u,d,i):null,f=o.a.createElement("div",{style:d?{opacity:0,boxShadow:"none"}:{},className:"toc-list-item"},!this.props.filterText||this.props.filterText&&d?this.renderNode(c,a,s,l,u,d,i):p);return!1!==i.node.showComponent&&!i.node.hide&&this.props.filter(this.props.node)?r(i.isDraggable&&!d?n(f):f):null}}])&&ae(t.prototype,n),r&&ae(t,r),a}(o.a.Component);pe(me,"propTypes",{node:a.a.object,propertiesChangeHandler:a.a.func,onToggle:a.a.func,onContextMenu:a.a.func,onSelect:a.a.func,style:a.a.object,sortableStyle:a.a.object,activateLegendTool:a.a.bool,activateOpacityTool:a.a.bool,indicators:a.a.array,visibilityCheckType:a.a.string,currentZoomLvl:a.a.number,scales:a.a.array,additionalTools:a.a.array,legendOptions:a.a.object,currentLocale:a.a.string,selectedNodes:a.a.array,filterText:a.a.string,onUpdateNode:a.a.func,titleTooltip:a.a.bool,filter:a.a.func,showFullTitleOnExpand:a.a.bool,hideOpacityTooltip:a.a.bool,tooltipOptions:a.a.object,connectDragPreview:a.a.func,connectDragSource:a.a.func,connectDropTarget:a.a.func,isDraggable:a.a.bool,isDragging:a.a.bool,isOver:a.a.bool,language:a.a.string}),pe(me,"defaultProps",{style:{},sortableStyle:{},propertiesChangeHandler:function(){},onToggle:function(){},onContextMenu:function(){},onSelect:function(){},activateLegendTool:!1,activateOpacityTool:!0,indicators:[],visibilityCheckType:"glyph",additionalTools:[],currentLocale:"en-US",joinStr:" - ",selectedNodes:[],filterText:"",onUpdateNode:function(){},filter:function(){return!0},titleTooltip:!1,showFullTitleOnExpand:!1,hideOpacityTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e}});t.a=Object(c.a)("LayerOrGroup",me)},"./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return a.a.Children.map(this.props.children,(function(n){if(t(n)){var r=(n.type.inheritedPropTypes||["node"]).reduce((function(t,n){return e.props[n]?c()(t,p({},n,e.props[n])):t}),{});return a.a.cloneElement(n,r)}return null}))},render:function(){var e=void 0===this.props.node.expanded||this.props.node.expanded,t=this.props.type,n=c()({},this.props.style,this.props.styler(this.props.node)),r=e&&"Error"!==this.props.node.loadingError?this.renderChildren((function(e){return e&&"collapsible"===e.props.position})):[];return this.props.animateCollapse&&(r=a.a.createElement(d.CSSTransitionGroup,{transitionName:"TOC-Node",transitionEnterTimeout:250,transitionLeaveTimeout:250},r)),a.a.createElement("div",{key:this.props.node.name,className:(e?t+"-expanded":t+"-collapsed")+" "+this.props.className,style:this.props.node.dummy?{padding:0}:n},this.renderChildren((function(e){return e&&"collapsible"!==e.props.position})),r)}});t.a=f},"./MapStore2/web/client/components/TOC/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/flatten.js"),d=n.n(c);function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;ta&&d>2*p)return;da&&d>f)return;r.sortIndex=e.sortIndex,r.newParentNodeId=e.parentNodeId,r.illegalDrop=null}e.setDndState&&e.setDndState(r)}}}},p=function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver({shallow:!0})}};t.a=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)(e,u,c),Object(i.DropTarget)(e,d,p)),Object(a.compose)(Object(i.DropTarget)(e,d,p))).apply(void 0,n)}},"./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],o=Object.keys(d.options).reduce((function(e,t){return a(a({},e),{},s({},t,"opacity"!==t||c[t]?c[t]:1))}),{});Object(r.isEqual)(o,d.options)||e?(Object(r.isArray)(t)&&t.forEach((function(e){Object(r.isFunction)(e)&&e()})),u(d.node,d.nodeType,a(a({},d.options),c)),f(),m(!1),i({}),n({})):m(!0)}},onSave:function(e){var t=e.onUpdateInitialSettings,n=void 0===t?function(){}:t,o=e.onUpdateOriginalSettings,i=void 0===o?function(){}:o,a=e.onHideSettings,s=void 0===a?function(){}:a,l=e.onShowAlertModal,u=void 0===l?function(){}:l;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(r.isArray)(e)&&e.forEach((function(e){Object(r.isFunction)(e)&&e()})),s(),u(!1),i({}),n({})}}}),Object(o.lifecycle)({componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,s=void 0===i?function(){}:i;o({}),s(a({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,o=void 0===n?{}:n,i=t.onRetrieveLayerData,a=void 0===i?function(){}:i;!o.expanded&&e.settings&&e.settings.expanded&&Object(r.isNil)(e.element.description)&&"wms"===e.element.type&&a(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,s=t.onUpdateOriginalSettings,l=void 0===s?function(){}:s,u=t.onUpdateInitialSettings,c=void 0===u?function(){}:u,d=t.onSetTab,p=void 0===d?function(){}:d;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),c(a({},e.element)),p(r))}})),c=Object(o.compose)(l,u)},"./MapStore2/web/client/components/TOC/fragments/LayersTool.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nt.state.containerWidth})),t.containerRef=o.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.containerRef.current&&this.containerRef.current.clientWidth;this.setState(function(e){for(var t=1;t=12?n:""))})})),O(x(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),O(x(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(g(g({},t.state),{},{opacity:Object(r.isNil)(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:g(g({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),O(x(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),O(x(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&Object(r.isNumber)(t.state.legendOptions.legendHeight)&&Object(r.isNumber)(t.state.legendOptions.legendWidth)})),t.containerRef=s.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e=this;return s.a.createElement(l.Grid,{fluid:!0,className:"fluid-container "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.format"})),s.a.createElement(u.DropdownList,{key:"format-dropdown",data:this.props.formats||["image/png","image/png8","image/jpeg","image/vnd.jpeg-png","image/gif"],value:this.props.element&&this.props.element.format||"image/png",onChange:function(t){e.props.onChange("format",t)}}))),s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"WMS Layer tile size"})),s.a.createElement(u.DropdownList,{key:"wsm-layersize-dropdown",data:[256,512],value:this.props.element&&this.props.element.tileSize||256,onChange:function(t){e.props.onChange("tileSize",t)}})))),s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,this.props.opacityText," %"),s.a.createElement(c.a,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(t){return e.onChange("opacity",t)}})))),"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement("hr",null),s.a.createElement(l.FormGroup,null,s.a.createElement(l.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(t){e.props.onChange("transparent",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.transparent"})),s.a.createElement(l.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(t){return e.props.onChange("tiled",t.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},s.a.createElement(d.default,{msgId:"layerProperties.cached"})),s.a.createElement(l.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(t){return e.props.onChange("singleTile",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&s.a.createElement(l.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(t){return e.props.onChange("localizedLayerStyles",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",s.a.createElement(p.a,{text:s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})))),s.a.createElement("div",{className:"legend-options"},s.a.createElement(l.Col,{xs:12,className:"legend-label"},s.a.createElement("label",{key:"legend-options-title",className:"control-label"},s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.title"}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"first-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendWidth")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendWidth"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendWidth",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"second-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendHeight")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendHeight"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendHeight",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,className:"legend-preview"},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendPreview"})),s.a.createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},s.a.createElement(f.a,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&y(t.prototype,n),o&&y(t,o),a}(s.a.Component);O(S,"propTypes",{opacityText:i.a.node,element:i.a.object,formats:i.a.array,settings:i.a.object,onChange:i.a.func,containerWidth:i.a.number,currentLocaleLanguage:i.a.string,isLocalizedLayerStylesEnabled:i.a.bool}),O(S,"defaultProps",{onChange:function(){},opacityText:s.a.createElement(d.default,{msgId:"opacity"})})},"./MapStore2/web/client/components/TOC/fragments/settings/General.jsx":function(e,t,n){"use strict";n("./node_modules/react-selectize/themes/index.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-selectize/src/index.js"),p=n("./node_modules/react-spinkit/dist/index.js"),f=n.n(p),h=n("./MapStore2/web/client/utils/LocaleUtils.js"),m=n("./MapStore2/web/client/utils/TOCUtils.js"),g=n("./MapStore2/web/client/components/I18N/Message.jsx"),y=n("./node_modules/recompose/es/Recompose.js"),b=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),v=Object(y.compose)(Object(y.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),Object(y.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),Object(y.withState)("layerName","setLayerName",""),Object(y.withState)("editingLayerName","setEditingLayerName",!1),Object(y.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),Object(y.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),Object(y.withState)("layerError","setLayerError"),Object(y.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,a=e.setOverlayTriggerDelayID,s=void 0===a?function(){}:a,l=e.setEnableOverlayTrigger,u=void 0===l?function(){}:l;return function(e){n!==e&&(r&&clearTimeout(r),u(!1),s(setTimeout((function(){u(!0)}),250))),i(e)}}}),Object(y.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,a=void 0===i?function(){}:i,s=e.setWaitingForLayerLoading,l=void 0===s?function(){}:s,u=e.setEditingLayerName,c=void 0===u?function(){}:u,d=e.setLayerError,p=void 0===d?function(){}:d;r&&n.loading?(l(!1),a(!0)):o&&!n.loading&&(a(!1),p(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,a=void 0!==i&&i,s=e.layerName,l=void 0===s?"":s,d=e.editingLayerName,p=void 0!==d&&d,h=e.layerError,m=e.waitingForLayerLoading,y=void 0!==m&&m,v=e.waitingForLayerLoad,w=void 0!==v&&v,x=e.setLayerName,_=void 0===x?function(){}:x,O=e.setWaitingForLayerLoading,S=void 0===O?function(){}:O,j=e.setEditingLayerName,E=void 0===j?function(){}:j,C=e.onUpdateEntry,T=void 0===C?function(){}:C,k=u.a.createElement(c.InputGroup.Addon,{className:"btn",onClick:function(){p?l!==o.name?(T("name",{target:{value:l}}),a?S(!0):E(!1)):E(!1):E(!0)}},y||w?u.a.createElement(f.a,{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):u.a.createElement(c.Glyphicon,{glyph:p?"ok":"pencil"}));return u.a.createElement(c.FormGroup,{validationState:!h||w||y?null:"error"},u.a.createElement(c.ControlLabel,null,u.a.createElement(g.default,{msgId:"layerProperties.name"})),u.a.createElement(c.InputGroup,null,u.a.createElement(c.FormControl,{value:l,key:"name",type:"text",disabled:!p,onChange:function(e){return _(e.target.value)}}),n?(t=k,u.a.createElement(b.a,{placement:"top",overlay:u.a.createElement(c.Tooltip,{id:"tooltip-layer-name-edit"},u.a.createElement(g.default,{msgId:"layerProperties.tooltip.".concat(p?"confirm":"edit","LayerName")}))},t)):k))}));function w(e){return(w="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 x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;tthis.props.maxZoom||this.props.currentZoom+this.props.step=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g={base:190,range:0,s:.95,v:.63},y=function(e,t){var n=t.base,r=t.range,o=m(t,["base","range"]);return(Object(c.c)(n,r,e+1,o)||[0]).slice(1)};function b(e){var t=e.type,n=e.isModeBarVisible;switch(t){case"pie":return{t:n?20:5,b:5,l:2,r:2,pad:4};default:return{l:5,r:5,b:30,t:n?20:5,pad:4}}}function v(e){var t=e.series,n=void 0===t?[]:t,r=e.cartesian,o=e.type,i=e.yAxis,a=e.xAxisAngle,s=e.xAxisOpts,l=void 0===s?{}:s,u=e.yAxisOpts,c=void 0===u?{}:u,d=e.data,p=void 0===d?[]:d,f=e.autoColorOptions,h=void 0===f?g:f;switch(o){case"pie":return{colorway:y(p.length,h)};default:return{colorway:y(n.length,h),yaxis:{type:null==c?void 0:c.type,automargin:!0,tickformat:null==c?void 0:c.format,tickprefix:null==c?void 0:c.tickPrefix,ticksuffix:null==c?void 0:c.tickSuffix,showticklabels:!0===i,showgrid:r},xaxis:{showgrid:r,type:null==l?void 0:l.type,showticklabels:!(null!=l&&l.hide),nticks:l.nTicks,automargin:!0,tickangle:null!=a?a:"auto"}}}}var w=function(e){var t=e.xAxis,n=e.series,r=void 0===n?[]:n,o=e.yAxisLabel,i=e.type,a=void 0===i?"line":i,s=e.height,l=e.width,u=e.legend,c=null==t?void 0:t.dataKey,p=l>350;return{layout:f(f({showlegend:u},v(f({},e))),{},{margin:b(f(f({},e),{},{isModeBarVisible:p})),autosize:!1,automargin:!1,height:s,width:l}),data:r.map((function(t){var n=t.dataKey;return f({type:a,name:o||n},function(e){var t=e.type,n=e.xDataKey,r=e.yDataKey,o=e.data,i=e.formula,a=o.map((function(e){return e[n]})),s=o.map((function(e){return e[r]}));switch(t){case"pie":return{textposition:"inside",values:s,labels:a};default:return i&&(s=s.map((function(e){var t=e;try{return Object(d.a)(i,{value:t})}catch(t){return e}}))),{x:a,y:s}}}(f(f({},e),{},{xDataKey:c,yDataKey:n})))})),config:{displayModeBar:p,modeBarButtonsToRemove:["lasso2d","select2d","hoverCompareCartesian","hoverClosestCartesian","hoverClosestPie"],displaylogo:!1}}};t.a=function(e){var t=e.onInitialized,n=m(e,["onInitialized"]),r=w(n),i=r.data,a=r.layout,s=r.config;return o.a.createElement(u,{onInitialized:t,data:i,layout:a,config:s})}},"./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/I18N/Message.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0;return E.a.Observable.timer(e)})).scan((function(e){return e+1}),0).map((function(e){return{scrollToTopCounter:e}})).startWith({}),(function(e,t){return T(T(T({},e),t),{},{scrollToTop:n})}))})),Object(S.withHandlers)({onGridSort:function(e){var t=e.onGridSort,n=void 0===t?function(){}:t,r=e.scrollToTop,o=void 0===r?function(){}:r;return function(){return o(0),n.apply(void 0,arguments)}},onAddFilter:function(e){var t=e.onAddFilter,n=void 0===t?function(){}:t,r=e.scrollToTop,o=void 0===r?function(){}:r;return function(){o(1e3),n.apply(void 0,arguments)}}})))(O),M=n("./MapStore2/node_modules/lodash/lodash.js"),I=n("./MapStore2/web/client/utils/featuregrid/EditorRegistry.jsx"),D=n.n(I),N=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),R=n("./MapStore2/web/client/components/data/featuregrid/editors/AttributeEditor.jsx"),L=n("./MapStore2/web/client/components/data/featuregrid/editors/NumberEditor.jsx"),F=n("./MapStore2/web/client/observables/autocomplete.js"),z=n("./MapStore2/web/client/utils/ConfigUtils.js"),B=n("./node_modules/recompose/rxjsObservableConfig.js"),q=n.n(B),U=n("./MapStore2/web/client/components/misc/combobox/PagedCombobox.jsx");function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return Object(M.isNil)(t)?null:a.a.createElement("span",null,t.toString())}:["int","number"].includes(e.localType)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return Object(M.isNil)(t)?null:a.a.createElement(de.a,{value:t,numberParams:{maximumFractionDigits:17}})}:null};function fe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function he(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ni.totalFeatures-1?i.totalFeatures-1:r+l,c=Math.floor(a/t),d=Math.floor(u/t),p=!1,f=c;f<=d&&!p;f++)-1===Object(s.j)(f*t,o,t)&&(p=!0);return p&&{startPage:c,endPage:d}})).filter((function(e){return e})).do((function(e){return n.moreFeatures(e)}))}))}(e.filter((function(e){return e.virtualScroll})).map((function(e){return ye(ye({},e),{},{onGridScroll$:r})}))).startWith({}).map((function(e){return ye(ye({},e),{},{onGridScroll:n})}))},virtualScroll:!0}),Object(S.withPropsOnChange)("showDragHandle",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showDragHandle,n=void 0===t||t;return{className:n?"feature-grid-drag-handle-show":"feature-grid-drag-handle-hide"}})),Object(S.withPropsOnChange)(["enableColumnFilters"],(function(e){return{displayFilters:e.enableColumnFilters}})),Object(S.withPropsOnChange)(["editingAllowedRoles","virtualScroll"],(function(e){return{editingAllowedRoles:e.editingAllowedRoles,initPlugin:e.initPlugin}})),Object(S.withPropsOnChange)(["autocompleteEnabled"],(function(e){return{autocompleteEnabled:e.autocompleteEnabled}})),Object(S.withPropsOnChange)(["url"],(function(e){return{url:e.url}})),Object(S.withPropsOnChange)(["typeName"],(function(e){return{typeName:e.typeName}})),Object(S.withPropsOnChange)(["features","newFeatures","changes"],(function(e){return{rows:(e.newFeatures?[].concat(he(e.newFeatures),he(e.features)):e.features).filter(e.focusOnEdit?Object(s.b)(e.changes&&Object.keys(e.changes).length>0,e.newFeatures,e.changes):function(){return!0}).map((function(t){return Object(s.a)(t,e.changes)})).map((function(e){return ye(ye({},e),{},{get:function(t){return"id"===t||"geometry"===t||"_new"===t?e[t]:e.properties&&e.properties[t]}})}))}})),Object(S.withPropsOnChange)(["newFeatures","changes","focusOnEdit"],(function(e){return{isFocused:e.focusOnEdit&&(e.changes&&Object.keys(e.changes).length>0||e.newFeatures&&e.newFeatures.length>0)}})),Object(S.withPropsOnChange)(["features","newFeatures","isFocused","virtualScroll","pagination"],(function(e){return{rowsCount:(e.isFocused||!e.virtualScroll)&&e.rows&&e.rows.length||e.pagination&&e.pagination.totalFeatures||0}})),Object(S.withHandlers)({rowGetter:function(e){return e.virtualScroll&&function(t){return Object(s.k)(t,e.rows,e.pages,e.size)}||function(t){return Object(s.i)(t,e.rows)}}}),Object(S.withPropsOnChange)(["describeFeatureType","columnSettings","tools","actionOpts","mode","isFocused","sortable"],(function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.localType,r=void 0===n?"":n,o=arguments.length>1?arguments[1]:void 0;return e.filterRenderers&&e.filterRenderers[o]?e.filterRenderers[o]:ue(Object(ce.a)(r))};return{columns:Object(s.l)(e.tools,e.rowGetter,e.describeFeatureType,e.actionOpts,t).concat(Object(s.c)(e.describeFeatureType,e.columnSettings,{editable:"EDIT"===e.mode,sortable:e.sortable&&!e.isFocused,defaultSize:e.defaultSize},{getEditor:function(t){var n={onTemporaryChanges:e.gridEvents&&e.gridEvents.onTemporaryChanges,autocompleteEnabled:e.autocompleteEnabled,url:e.url,typeName:e.typeName},r={attribute:t.name,url:e.url,typeName:e.typeName},o=e.customEditorsOptions&&e.customEditorsOptions.rules||[],i={type:t.localType,generalProps:n,props:e},a=D.a.getCustomEditor(r,o,i);return Object(M.isNil)(a)?e.editors(t.localType,n):a},getFilterRenderer:t,getFormatter:function(e){return pe(e)}}))}})),Object(S.withPropsOnChange)(["gridOpts","describeFeatureType","actionOpts","mode","select","columns"],(function(e){var t=Object(s.g)(e.gridEvents,e.rowGetter,e.describeFeatureType,e.actionOpts,e.columns),n=t.onRowsSelected,r=void 0===n?function(){}:n,o=t.onRowsDeselected,i=void 0===o?function(){}:o,a=t.onRowsToggled,l=void 0===a?function(){}:a,u=fe(t,["onRowsSelected","onRowsDeselected","onRowsToggled"]),c=e.gridOpts;return c=ye(ye({},c),{},{enableCellSelect:"EDIT"===e.mode,rowSelection:{showCheckbox:"EDIT"===e.mode,selectBy:{keys:{rowKey:"id",values:e.select.map((function(e){return e.id}))}},onRowsSelected:r,onRowsDeselected:i}}),u.onRowClick=function(e,t){e>=0&&l([{rowIdx:e,row:t}])},ye(ye({},u),c)})),N.a);function we(e){return(we="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 xe(){return(xe=Object.assign||function(e){for(var t=1;t=e)})),l.state={inputText:null!==(t=null===(n=e.value)||void 0===n||null===(r=n.toString)||void 0===r?void 0:r.call(n))&&void 0!==t?t:""},l.inputRef=o.a.createRef(),l}return t=a,(n=[{key:"componentDidMount",value:function(){var e,t;null===(e=(t=this.props).onTemporaryChanges)||void 0===e||e.call(t,!0)}},{key:"componentWillUnmount",value:function(){var e,t;null===(e=(t=this.props).onTemporaryChanges)||void 0===e||e.call(t,!1)}},{key:"getValue",value:function(){try{var e=b[this.props.dataType](this.state.inputText);return y({},this.props.column.key,this.validateNumberValue(e)?e:this.props.value)}catch(e){return y({},this.props.column.key,this.props.value)}}},{key:"getInputNode",value:function(){return this.inputRef.current}},{key:"render",value:function(){var e=this;return o.a.createElement(l.a,c({},this.props.inputProps,{style:!this.state.validated||this.state.isValid?{}:{borderColor:"red"},value:this.state.inputText,ref:function(t){e.inputRef=t},type:"number",min:this.props.minValue,max:this.props.maxValue,className:"form-control",defaultValue:this.props.value,onChange:function(t){e.setState({inputText:t,isValid:e.validateTextValue(t),validated:!0})}}))}}])&&d(t.prototype,n),r&&d(t,r),a}(o.a.Component);y(v,"propTypes",{value:a.a.oneOfType([a.a.string,a.a.number]),inputProps:a.a.object,dataType:a.a.string,minValue:a.a.number,maxValue:a.a.number,column:a.a.object,onTemporaryChanges:a.a.func}),y(v,"defaultProps",{dataType:"number",column:{}})},"./MapStore2/web/client/components/data/featuregrid/editors/customEditors.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/data/featuregrid/editors/DropDownEditor.jsx"),a=n("./MapStore2/web/client/components/data/featuregrid/editors/NumberEditor.jsx"),s=n("./node_modules/prop-types/index.js"),l=n.n(s);function u(e){return(u="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 c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n-1&&e.setState({focusedItemIndex:l})}})),j(O(e),"scrollDown",(function(t){var n=e.itemsRef[t];n&&n.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=n.offsetTop-e.listRef.offsetTop)})),j(O(e),"scrollUp",(function(t){var n=e.itemsRef[t];if(n){var r=e.listRef.scrollTop,o=n.offsetTop;r&&o|<=|>=|===|==|=|<|>)?(.*)/.exec(n);e.setState({inputValue:r[2],operator:r[1]||""}),e.inputFlush=!0})),F(R(e),"handleCalendarChange",(function(t){var n=q(t,new Date),r=e.format(n);e.setState({date:n,inputValue:r,open:""}),e.props.onChange(n,"".concat(e.state.operator).concat(r))})),F(R(e),"handleTimeSelect",(function(t){var n=e.state.date||new Date,r=q(n,t.date),o=e.format(r);e.setState({date:r,inputValue:o,open:""}),e.props.onChange(r,"".concat(e.state.operator).concat(o))})),F(R(e),"attachTimeRef",(function(t){return e.timeRef=t})),F(R(e),"attachCalRef",(function(t){return e.calRef=t})),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,n=e.operator;this.setDateFromValueProp(t,n)}},{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value||e.operator!==this.props.operator){var t=this.props,n=t.value,r=t.operator;this.setDateFromValueProp(n,r)}}},{key:"render",value:function(){var e=this,t=this.state,n=t.open,r=t.inputValue,o=t.operator,a=t.focused,s=this.props,l=s.calendar,u=s.time,c=s.toolTip,p=s.placeholder,f=s.tabIndex,h=Object.keys(this.props).reduce((function(t,n){return["placeholder","calendar","time","onChange","value"].includes(n)||(t[n]=e.props[n]),t}),{}),m="date"===n,g="time"===n;return i.a.createElement("div",{tabIndex:"-1",onKeyDown:this.handleKeyDown,onBlur:this.handleWidgetBlur,onFocus:this.handleWidgetFocus,className:"rw-datetimepicker rw-widget ".concat(l&&u?"rw-has-both":""," ").concat(l||u?"":"rw-has-neither"," ").concat(a?"rw-state-focus":"")},this.renderInput(r,o,c,p,f,m,g),l||u?i.a.createElement("span",{className:"rw-select"},l?i.a.createElement("button",{tabIndex:"-1",title:"Select Date",type:"button","aria-disabled":"false","aria-label":"Select Date",className:"rw-btn-calendar rw-btn",onClick:this.toggleCalendar},i.a.createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-calendar"})):"",u?i.a.createElement("button",{tabIndex:"-1",title:"Select Time",type:"button","aria-disabled":"false","aria-label":"Select Time",className:"rw-btn-time rw-btn",onClick:this.toggleTime},i.a.createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-clock-o"})):""):"",i.a.createElement("div",{className:"rw-popup-container rw-popup-animating",style:{display:g?"block":"none",overflow:g?"visible":"hidden",height:"216px"}},i.a.createElement("div",{className:"rw-popup rw-widget",style:{transform:g?"translateY(0)":"translateY(-100%)",position:g?"":"absolute"}},i.a.createElement(T,A({ref:this.attachTimeRef,onMouseDown:this.handleMouseDown},h,{onClose:this.close,onSelect:this.handleTimeSelect})))),i.a.createElement("div",{className:"rw-calendar-popup rw-popup-container ".concat(m?"":"rw-popup-animating"),style:{display:m?"block":"none",overflow:m?"visible":"hidden",height:"375px"}},i.a.createElement("div",{className:"rw-popup",style:{transform:m?"translateY(0)":"translateY(-100%)",padding:"0",borderRadius:"4px",position:m?"":"absolute"}},i.a.createElement(d.Calendar,A({tabIndex:"-1",ref:this.attachCalRef,onMouseDown:this.handleMouseDown,onChange:this.handleCalendarChange},h)))))}}])&&M(t.prototype,n),r&&M(t,r),a}(o.Component);F(V,"propTypes",{format:s.a.string,type:s.a.string,placeholder:s.a.string,onChange:s.a.func,calendar:s.a.bool,time:s.a.bool,value:s.a.any,operator:s.a.string,culture:s.a.string,toolTip:s.a.string,tabIndex:s.a.string}),F(V,"defaultProps",{placeholder:"Type date...",calendar:!0,time:!0,onChange:function(){},value:null});var W=V,Y=n("./MapStore2/web/client/utils/LocaleUtils.js"),K=n("./MapStore2/web/client/utils/TimeUtils.js");function X(e){return(X="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute,o=t.stringValue,i=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?(.*)/.exec(o),a=i[1],s=i[1]||"=";"!=="===a|"!="===a?s="<>":"==="===a|"=="===a&&(s="="),e.onValueChange(n),e.onChange({value:{startDate:n,operator:a},operator:s,type:e.type,attribute:r})}}}),Object(r.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.date",tooltipMsgId:"featuregrid.filter.tooltips.date"}))(ye),ve=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){}}),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n),e.onChange({value:n,operator:"=",type:e.type,attribute:r})}}}))(ie),we=n("./MapStore2/web/client/components/I18N/Message.jsx"),xe=function(e){var t=e.value,n=e.filterEnabled,r=void 0!==n&&n,o=e.filterDeactivated,a=void 0!==o&&o,s=e.column,l=void 0===s?{}:s,u=e.tooltipPlace,c=void 0===u?"top":u,d=e.tooltipDisabled,p=void 0===d?"featuregrid.filter.tooltips.geometry.disabled":d,f=e.tooltipEnabled,m=void 0===f?"featuregrid.filter.tooltips.geometry.enabled":f,y=e.tooltipApplied,b=void 0===y?"featuregrid.filter.tooltips.geometry.applied":y,v=e.onChange,w=void 0===v?function(){}:v,x=a?void 0:r&&t?b:r&&!t?m:p,_=i.a.createElement("div",{className:"featuregrid-geometry-filter".concat(r?" filter-enabled":"").concat(a?" filter-deactivated":""),onClick:a?function(){}:function(){w({enabled:!r,type:"geometry",attribute:l.geometryPropName})}},i.a.createElement(h.Glyphicon,{glyph:t?"remove-sign":"map-marker"}));return x?i.a.createElement(g.a,{placement:c,overlay:i.a.createElement(h.Tooltip,{id:"gofull-tooltip"},i.a.createElement(we.default,{msgId:x}))},_):_},_e=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?\s*(-?\d*\.?\d*)\s*/,Oe=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){}}),Object(r.withState)("valid","setValid",!0),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n);var o,i="=",a=_e.exec(n);a?("!=="===(i=a[1]||"=")|"!="===i?i="<>":"==="===i|"=="===i&&(i="="),o=parseFloat(a[2])):o=parseFloat(n,10),isNaN(o)&&""!==Object(m.trim)(n)?e.setValid(!1):e.setValid(!0),e.onChange({value:isNaN(o)?void 0:o,rawValue:n,operator:i,type:"number",attribute:r})}}}),Object(r.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.number",tooltipMsgId:"featuregrid.filter.tooltips.number"}))(ie),Se=Object(r.compose)(Object(r.defaultProps)({onValueChange:function(){},placeholderMsgId:"featuregrid.filter.placeholders.string"}),Object(r.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value,r=t.attribute;e.onValueChange(n),e.onChange({rawValue:n,value:Object(m.trim)(n)?Object(m.trim)(n):void 0,operator:"ilike",type:"string",attribute:r})}}}))(ie);n.d(t,"a",(function(){return Ee}));var je={defaultFilter:function(e){return Object(r.withProps)((function(){return{type:e}}))(ve)},string:function(){return Se},number:function(){return Oe},int:function(){return Oe},date:function(){return Object(r.withProps)((function(){return{type:"date"}}))(be)},time:function(){return Object(r.withProps)((function(){return{type:"time"}}))(be)},"date-time":function(){return Object(r.withProps)((function(){return{type:"date-time"}}))(be)},geometry:function(){return xe}},Ee=function(e,t){return je[e]?je[e](e,t):je.defaultFilter(e,t)}},"./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/data/identify/DefaultViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./MapStore2/web/client/components/I18N/HTML.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),c=n("./node_modules/react-bootstrap/es/index.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(t.prototype,n),r&&d(t,r),i}(a.a.Component);y(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),y(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(r.withHandlers)({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),a=Object(r.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/query/AutocompleteListItem.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(u,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?l.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:s.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:s.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/map/popups/index.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),a=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/web/client/actions/mapInfo.js"),p=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),f=n("./MapStore2/node_modules/lodash/lodash.js"),h=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),m=n("./MapStore2/web/client/selectors/map.js"),g=Object(s.compose)(Object(l.connect)(Object(u.a)(c.j,(function(e){return{index:e}})),{setIndex:d.D}),Object(s.defaultProps)({index:0,responses:[]})),y=Object(u.a)([c.t,c.w,c.s,c.h,c.u,m.f,c.l],(function(e,t,n,r,o,i,a){return{responses:e,validResponses:t,requests:n,format:r,showEmptyMessageGFI:o,missingResponses:(n||[]).length-(e||[]).length,renderEmpty:i,loaded:a}})),b=Object(s.compose)(Object(l.connect)(y),Object(s.defaultProps)({responses:[],container:function(e){var t=e.index,n=e.children;return o.a.createElement(o.a.Fragment,null,Object(f.isArray)(n)&&n[t]||n)},header:h.a}),g,a.a,a.b,Object(i.a)((function(e){var t=e.loaded;return Object(f.isUndefined)(t)})))(p.a);n.d(t,"IDENTIFY_POPUP",(function(){return v}));var v="identify";t.default={identify:b}},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png":function(e,t,n){e.exports=n.p+"MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAQCAYAAACcN8ZaAAAB3klEQVR42s3U4UdDURzG8czMXJnJ1Vwzc6VJZjaZJdlMlpQsKdmUFNOUspRSSqUolfQfr+fF98Vx5mwv9qbDx7LdznnO7/7Omej3+/+Ga0QMUYkhbvBgmhzCQxwxibIGrGEF8CQhU+LLtKQkQNqScUgjxRxTBIxbgfgD/BgnhM8kM5KTeclLQYqGkkMRBckzR8ic/mAgd5BAZplsUaqyIg2sDtHg2brUZJk5SmwopErJUWE8SpmTMhNvya60Zd/SNrR4bkeaskG4uiwRZk6yrJEYFibGAxn+scECHTmTnuVCzvmty3PHciB7bGKN6lQkzysPqIrHmpFhYbKUtckC1/Ioz4ZHuZdbuSLYiRxRpSZVWXZVxAzC0R4Ik5SQsu6w8yd5l2/5kg95I9SdXMoZQfYIUjeqEUrgOkXGPeN4TYRhxy8E+ZUf+eS7B7miIoeybVSjKDnm8u3+gH3pDTYwu1igATvs/pXqvBKiR4i2bNJfi1ZfUAnjgrOG8wY2quNzBKuU/ZS+uSFEl5O0xRGuUIlZCcw7xG5QPkeHYUSNV5WXGou2sC3rBC0LjenqCXGO0WEiTJa0Lr4KixdHBrDGuGGiRqCUpFk8pGIpQtCU7p4YPwxYxEMCk1aAMQZh8Ac8PfbIzYPJOwAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/mapcontrols/mouseposition sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./CRSSelector":"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx","./CRSSelector.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx","./MousePosition":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx","./MousePosition.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx","./MousePositionLabelDD":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDD.jsx","./MousePositionLabelDD.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDD.jsx","./MousePositionLabelDM":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDM.jsx","./MousePositionLabelDM.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDM.jsx","./MousePositionLabelDMS":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx","./MousePositionLabelDMS.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx","./MousePositionLabelDMSNW":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx","./MousePositionLabelDMSNW.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx","./MousePositionLabelYX":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx","./MousePositionLabelYX.jsx":"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx","./__tests__/CRSSelector-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/CRSSelector-test.js","./__tests__/CRSSelector-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/CRSSelector-test.js","./__tests__/MousePosition-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js","./__tests__/MousePosition-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js","./__tests__/MousePositionLabelDM-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDM-test.js","./__tests__/MousePositionLabelDM-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDM-test.js","./__tests__/MousePositionLabelDMS-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js","./__tests__/MousePositionLabelDMS-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js","./__tests__/MousePositionLabelDMSNW-test":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js","./__tests__/MousePositionLabelDMSNW-test.js":"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js","./mousePosition.css":"./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./MapStore2/web/client/components/mapcontrols/mouseposition sync recursive ^\\.\\/.*$"},"./MapStore2/web/client/components/mapcontrols/mouseposition/CRSSelector.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/CoordinatesUtils.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0?"N":"S"," "),a.a.createElement(u.a,{key:"lngD",numberParams:r,value:Object(l.roundCoord)({roundingBehaviour:"floor",value:Math.abs(e.lng),maximumFractionDigits:r.maximumFractionDigits})}),a.a.createElement("span",null,"° "),a.a.createElement(u.a,{key:"lngM",numberParams:t,value:Object(l.roundCoord)({roundingBehaviour:"floor",value:e.lngM,maximumFractionDigits:t.maximumFractionDigits})}),a.a.createElement("span",null,"' "),a.a.createElement(u.a,{key:"lngS",numberParams:n,value:e.lngS}),a.a.createElement("span",null,"'' ",e.lng>0?"E":"W")))}}])&&p(t.prototype,n),r&&p(t,r),i}(a.a.Component);b(v,"propTypes",{position:o.a.shape({lng:o.a.number,lat:o.a.number})}),t.default=v},"./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelYX.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/I18N/Number.jsx");function u(e){return(u="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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,p({enabled:!0},f)),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist();var n=t.getElementsByTagName("select").item(0).childNodes;o()(n.length).toBe(1)})),it("checks if a change of the combo fires the proper action",(function(){var e,t=l.a.render(a.a.createElement(u.default,p({enabled:!0},f,{onCRSChange:function(t){e=t}})),document.getElementById("container")),n=l.a.findDOMNode(t).getElementsByTagName("select").item(0);n.value="EPSG:4326",d.a.Simulate.change(n,{target:{value:"EPSG:4326"}}),o()(e).toBe("EPSG:4326")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePosition-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-dom/index.js"),c=n.n(u),d=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: ° ' Lng: ° ' ");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(11),o()(n[1].textContent).toBe("Lat: "),o()(n[2].textContent).toBe(""),o()(n[3].textContent).toBe("° "),o()(n[4].textContent).toBe(""),o()(n[5].textContent).toBe("' "),o()(n[6].textContent).toBe("Lng: "),o()(n[7].textContent).toBe(""),o()(n[8].textContent).toBe("° "),o()(n[9].textContent).toBe(""),o()(n[10].textContent).toBe("' ")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 13° 32.000' Lng: 028° 18.000' ")})),it("position with no rounding but flooring of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 43° 42.436' Lng: 010° 28.501' ")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMS-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s),u=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMS.jsx"),c=n("./node_modules/react-dom/test-utils.js"),d=n.n(c),p=n("./node_modules/react-intl/lib/index.es.js");describe("MousePositionLabelDMS",(function(){beforeEach((function(e){document.body.innerHTML='
',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: ° ' '' Lng: ° ' ''");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(16),o()(n[1].textContent).toBe("Lat: "),o()(n[2].textContent).toBe(""),o()(n[3].textContent).toBe("° "),o()(n[4].textContent).toBe(""),o()(n[5].textContent).toBe("' "),o()(n[6].textContent).toBe(""),o()(n[7].textContent).toBe("''"),o()(n[8].className).toBe("mouseposition-separator"),o()(n[9].textContent).toBe(" Lng: "),o()(n[10].textContent).toBe(""),o()(n[11].textContent).toBe("° "),o()(n[12].textContent).toBe(""),o()(n[13].textContent).toBe("' "),o()(n[14].textContent).toBe(""),o()(n[15].textContent).toBe("''")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 13° 31' 60.00'' Lng: 028° 18' 00.00''")})),it("position with no rounding but trunc of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: 43° 42' 26.16'' Lng: 010° 28' 30.05''")})),it("position with negative lat and lng correctly truncated ladD e lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:-.006,lat:-.006}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: -00° 00' 21.60'' Lng: -000° 00' 21.60''")})),it("test sign changes when crossing greenwich meridian and equator parallel and latD lngD are 0",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:-.006,lat:-.006}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("Lat: -00° 00' 21.60'' Lng: -000° 00' 21.60''");var n=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:.006,lat:.006}})),document.getElementById("container"));o()(n).toExist();var r=l.a.findDOMNode(n);o()(r).toExist(),o()(r.textContent).toBe("Lat: 00° 00' 21.60'' Lng: 000° 00' 21.60''")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/__tests__/MousePositionLabelDMSNW-test.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/expect/lib/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s),u=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePositionLabelDMSNW.jsx"),c=n("./node_modules/react-dom/test-utils.js"),d=n.n(c),p=n("./node_modules/react-intl/lib/index.es.js");describe("MousePositionLabelDMSNW",(function(){beforeEach((function(e){document.body.innerHTML='
',setTimeout(e)})),afterEach((function(e){l.a.unmountComponentAtNode(document.getElementById("container")),document.body.innerHTML="",setTimeout(e)})),it("checks default",(function(){var e=l.a.render(a.a.createElement(u.default,null),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("° ' '' S ° ' '' W");var n=d.a.scryRenderedDOMComponentsWithTag(e,"span");o()(n.length).toBe(13),o()(n[1].innerText).toBe(""),o()(n[2].innerText).toBe("° "),o()(n[3].innerText).toBe(""),o()(n[4].innerText).toBe("' "),o()(n[5].innerText).toBe(""),o()(n[6].innerText).toBe("'' S "),o()(n[7].innerText).toBe(""),o()(n[8].innerText).toBe("° "),o()(n[9].innerText).toBe(""),o()(n[10].innerText).toBe("' "),o()(n[11].innerText).toBe(""),o()(n[12].innerText).toBe("'' W")})),it("a position with defaults",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:28.3,lat:13.5333333}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("13° 31' 60.00'' N 028° 18' 00.00'' E")})),it("position with no rounding but flooring of latD and lngD",(function(){var e=l.a.render(a.a.createElement(p.IntlProvider,null,a.a.createElement(u.default,{position:{lng:10.475013256072998,lat:43.70726776739903}})),document.getElementById("container"));o()(e).toExist();var t=l.a.findDOMNode(e);o()(t).toExist(),o()(t.textContent).toBe("43° 42' 26.16'' N 010° 28' 30.05'' E")}))}))},"./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/mapcontrols/scale/ScaleBox.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/utils/MapUtils.js");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n=e.props.minZoom}))})),e}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return!Object(r.isEqual)(e,this.props)}},{key:"render",value:function(){var e=null;return e=this.props.readOnly?s.a.createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?s.a.createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):s.a.createElement(l.Form,{inline:!0},s.a.createElement(l.FormGroup,{bsSize:"small"},s.a.createElement(l.ControlLabel,null,this.props.label),s.a.createElement(l.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),s.a.createElement("div",{id:this.props.id,style:this.props.style},e)}}])&&p(t.prototype,n),o&&p(t,o),a}(s.a.Component);b(v,"propTypes",{id:i.a.string,style:i.a.object,scales:i.a.array,currentZoomLvl:i.a.number,minZoom:i.a.number,onChange:i.a.func,readOnly:i.a.bool,label:i.a.oneOfType([i.a.func,i.a.string,i.a.object]),template:i.a.func,useRawInput:i.a.bool}),b(v,"defaultProps",{id:"mapstore-scalebox",scales:Object(u.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(e){return e<1?Math.round(1/e)+" : 1":"1 : "+Math.round(e)},useRawInput:!1}),t.a=v},"./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Button.jsx"),l=n("./MapStore2/web/client/components/misc/Modal.jsx"),u=n("./node_modules/react-spinkit/dist/index.js"),c=n.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 p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return i.a.createElement(c,l({ref:t,className:n?s()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0})),S(_(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=l.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},l.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),l.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?l.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):l.a.createElement("span",null)),n=this.props.draggable?l.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?l.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&b(t.prototype,n),r&&b(t,r),a}(l.a.Component);S(j,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),S(j,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=j},"./MapStore2/web/client/components/misc/EmptyView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,a=void 0===r?{}:r,l=e.contentStyle,u=void 0===l?{}:l,c=e.imageStyle,d=void 0===c?{}:c,p=e.glyph,f=void 0===p?"info-sign":p,h=e.iconFit,m=e.title,g=e.tooltip,y=e.tooltipId,b=e.description,v=e.content;return o.a.createElement("div",{className:"empty-state-container",style:s({height:h?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:s({height:h?"100%":void 0},a)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:s({height:h?"100%":void 0},d)},o.a.createElement(i.a,{iconFit:h,tooltip:g,tooltipId:y,glyph:f})):null,m?o.a.createElement("h1",{key:"title"},m):null,b?o.a.createElement("p",{key:"description",className:"empty-state-description"},b):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:u},v))}},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./node_modules/react-select/dist/react-select.es.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?"full":e>40?"medium":"small"},d=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};d.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=d},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-container-dimensions/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Loader.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0?Math.min(i,l):i),p=n||(l>0?Math.min(i,l):i),f=Math.min(d,p);return o.a.createElement(s.a,{size:f,style:u({padding:f/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Modal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./MapStore2/web/client/components/misc/WithContainer.jsx");function s(e){return(s="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 n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=j?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(B(!1),D(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=T&&T.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},m),q):o.a.createElement("div",{className:"dropzone-content-image"},m,q,g&&o.a.createElement("div",{className:"dropzone-errors"},g))))}));t.a=m},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,n=e.caption,r=e.infoExtra,s=e.className,u=void 0===s?"":s,d=e.description,p=e.fullText,f=e.onClick,h=void 0===f?function(){}:f,m=e.onMouseEnter,g=void 0===m?function(){}:m,y=e.onMouseLeave,b=void 0===y?function(){}:y,v=e.preview,w=e.selected,x=e.size,_=e.style,O=void 0===_?{}:_,S=e.stylePreview,j=void 0===S?{}:S,E=e.styleTools,C=void 0===E?{}:E,T=e.title,k=e.loading,A=e.dragSymbol,P=void 0===A?"+":A,M=e.tools,I=c(e,["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"]);return o.a.createElement("div",{className:"mapstore-side-card".concat(w?" selected":"").concat(x?" ms-"+x:"").concat(u?" ".concat(u):"").concat(p?" full-text":""),onClick:function(e){return h(l({title:T,preview:v,description:d,caption:n,tools:M},I),e)},onMouseEnter:g,onMouseLeave:b,style:O},o.a.createElement("div",{className:"ms-head"},I.isDraggable&&I.connectDragSource&&I.connectDragSource(o.a.createElement("div",{className:"mapstore-side-card-tool text-center"},o.a.createElement("div",{style:{width:10,overflow:"hidden"}},P))),v&&o.a.createElement("div",{className:"mapstore-side-preview",style:j},v),o.a.createElement("div",{className:"mapstore-side-card-container"},o.a.createElement("div",{className:"mapstore-side-card-inner"},o.a.createElement("div",{className:"mapstore-side-card-left-container"},o.a.createElement("div",{className:"mapstore-side-card-info"},T&&o.a.createElement("div",{className:"mapstore-side-card-title"},o.a.createElement("span",null,T)),d&&o.a.createElement("div",{className:"mapstore-side-card-desc"},Object(i.isObject)(d)?d:o.a.createElement("span",null,d)),n&&o.a.createElement("div",{className:"mapstore-side-card-caption"},o.a.createElement("span",null,n))),r),o.a.createElement("div",{className:"mapstore-side-card-right-container"},o.a.createElement("div",{className:"mapstore-side-card-tool text-center",style:C},M),"sm"!==x&&o.a.createElement("div",{className:"mapstore-side-card-loading"},o.a.createElement(a.a,{className:"mapstore-side-card-loader",size:12,hidden:!k})))))),t&&o.a.createElement("div",{className:"ms-body"},t))}},"./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function u(e){return(u="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 c(){return(c=Object.assign||function(e){for(var t=1;t0&&(r=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&r.length>0)&&r.push((x(t={},e.props.textField,""),x(t,e.props.valueField,""),x(t,"disabled",!0),x(t,"pagination",e.renderPagination()),t));var o=e.props.loading?[]:r,i=e.props.itemComponent,l=a.a.createElement(s.Combobox,{placeholder:e.props.placeholder,dropUp:e.props.dropUp,busy:e.props.busy,data:o,disabled:e.props.disabled,itemComponent:function(t){return a.a.createElement(i,f({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||n,open:e.props.open,filter:e.props.filter,onChange:function(t){return e.props.onChange(t)},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){return e.props.onSelect(t)},onToggle:function(t){return e.props.onToggle(t)},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(l):l})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.selectedValue,n=e.disabled,r=e.onReset,o=e.label,i=e.clearable,s=o?a.a.createElement("label",null,o):a.a.createElement("span",null);return a.a.createElement("div",{className:"autocompleteField"},s,i?a.a.createElement("div",{className:"rw-combo-clearable ".concat(n?"disabled":"")},this.renderField(),a.a.createElement("span",{className:"rw-combo-clear ".concat(t?"":"hidden"),onClick:r},"x")):this.renderField())}}])&&m(t.prototype,n),r&&m(t,r),i}(a.a.Component);x(_,"propTypes",{busy:o.a.bool,data:o.a.array,disabled:o.a.bool,dropUp:o.a.bool,itemComponent:o.a.oneOfType([o.a.object,o.a.func]),label:o.a.string,loading:o.a.bool,filter:o.a.oneOfType([o.a.string,o.a.bool]),messages:o.a.object,onChange:o.a.func,onFocus:o.a.func,onSelect:o.a.func,onToggle:o.a.func,open:o.a.bool,pagination:o.a.object,nextPageIcon:o.a.string,prevPageIcon:o.a.string,selectedValue:o.a.string,textField:o.a.string,tooltip:o.a.object,valueField:o.a.string,placeholder:o.a.string,stopPropagation:o.a.bool,clearable:o.a.bool,onReset:o.a.func}),x(_,"contextTypes",{messages:o.a.object}),x(_,"defaultProps",{stopPropagation:!1,dropUp:!1,itemComponent:d.a,loading:!1,label:null,filter:"",pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onSelect:function(){},onReset:function(){},textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value",clearable:!1}),t.a=_},"./MapStore2/web/client/components/misc/coordinateeditors/CoordinateEntry.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nr?"error":null})),b(g(e),"validateDecimalLat",(function(t){var n=e.props.constraints[e.props.format].lat.min,r=e.props.constraints[e.props.format].lat.max,o=parseFloat(t);return isNaN(o)||or?"error":null})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.coordinate,r=t.value,i=t.onChange,a="validateDecimal"+Object(s.capitalize)(n);return o.a.createElement(l.FormGroup,{validationState:this[a](r)},o.a.createElement(u.a,{key:n,value:r,placeholder:n,onChange:function(t){""===t&&i(""),null===e[a](t)&&i(t)},onKeyDown:this.verifyOnKeyDownEvent,step:1,validateNameFunc:this[a],type:"number"}))}}])&&p(t.prototype,n),r&&p(t,r),a}(o.a.Component);b(v,"propTypes",{idx:a.a.number,value:a.a.number,constraints:a.a.object,format:a.a.string,coordinate:a.a.string,onChange:a.a.func,onKeyDown:a.a.func,onSubmit:a.a.func}),b(v,"defaultProps",{format:"decimal",coordinate:"lat",constraints:{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}},onKeyDown:function(){}});var w=v,x=n("./node_modules/recompose/es/Recompose.js"),_=Object(x.withProps)((function(e){var t=e.coordinate,n=void 0===t?"lat":t;return{maxDegrees:"lat"===n?90:180,directions:"lat"===n?["N","S"]:["E","W"]}})),O=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),S=Object(x.compose)(Object(x.withProps)((function(e){return{isValid:""!==e.value}})),Object(x.withState)("initial","setInitial",{}),Object(x.withProps)((function(e){var t=e.isValid,n=e.initial,r=e.degrees,o=e.minutes,i=e.seconds;return t||""===r&&""===o&&""===i?{}:n})),Object(x.withHandlers)({onChange:function(e){return function(t){var n=t.degrees,r=t.minutes,o=t.seconds,i=t.direction;isNaN(n)?e.setInitial({degrees:"",minutes:r,seconds:o,direction:i}):isNaN(r)?e.setInitial({degrees:n,minutes:"",seconds:o,direction:i}):isNaN(o)&&e.setInitial({degrees:n,minutes:r,seconds:"",direction:i}),e.onChange({degrees:n,minutes:r,seconds:o,direction:i})}}}));function j(e){return(j="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 E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t=0?a=r.degrees:r.minutes<0&&r.degrees<=0?(a=0,i=r.minutes):(a=0,i=0,o=1e-4)),{degrees:a,minutes:i,seconds:o,direction:s}}catch(e){return null}})),N(I(e),"getSexagesimalStep",(function(e){return e>=60?1:e<0?-1:0})),N(I(e),"getInputStyle",(function(e){return isNaN(e)||""===e?{borderColor:"#a94442"}:{}})),N(I(e),"verifyOnKeyDownEvent",(function(t){69===t.keyCode&&t.preventDefault(),13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),e.props.onKeyDown())})),N(I(e),"roundToNextSexagesimalStep",(function(e){return e<0?60+e:e>=60?e-60:e})),N(I(e),"isValid",(function(t){var n=t.minutes,r=t.seconds,o=t.degrees,i=t.direction;return!Object(s.isNil)(n)&&n>0&&n<60&&!Object(s.isNil)(r)&&r>0&&r<60&&!Object(s.isNil)(o)&&o>0&&oo&&"lat"===i?Math.sign(e)*o:e)}}}));function z(e){return(z="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 B(){return(B=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{seconds:{decimals:4}},o=n.seconds,i=e>=0?Math.floor(e):Math.ceil(e),a=Math.abs(60*(e-i)),s=Math.floor(a),l=60*(a-s),u=Object(r.round)(l,o.decimals);if(i=Math.abs(i),60===u&&(s++,u=0),60===s&&(i++,s=0),Object(r.isNaN)(i)||""===e)return{degrees:"",minutes:"",seconds:"",direction:t?"E":"N"};var c={degrees:i,minutes:s,seconds:u,direction:e<0?t?"W":"S":t?"E":"N"};return c}(e.value,"lon"===e.coordinate,e.aeronauticalOptions))})),Object(o.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.degrees,o=t.minutes,i=t.seconds,a=t.direction,s=0,l=0,u=0;void 0===n&&void 0===o&&void 0===i&&e.onChange(void 0),Object(r.isNaN)(n)||(s=n),Object(r.isNaN)(o)||(l=o),Object(r.isNaN)(i)||(u=i);var c=s+l/60+u/3600;(c>0&&("S"===a||"W"===a)||c<0&&("N"===a||"E"===a))&&(c*=-1),e.onChange(c.toPrecision(12))}}}))},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),s.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/draggableComponent.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dnd/lib/index.js"),a=n("./node_modules/recompose/es/Recompose.js");function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={beginDrag:function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)("row",d,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),draggingItem:t.getItem()||null}})),Object(i.DropTarget)("row",{drop:function(e,t){var n=t.getItem();n.sortId!==e.sortId&&e.onSort(e.sortId,n.sortId,{id:e.id,containerId:e.containerId},{id:n.id,containerId:n.containerId})}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})),(function(e){return function(t){var n=t.connectDragSource,r=t.connectDragPreview,i=t.connectDropTarget,a=t.isDragging,u=t.isOver,c=l(t,["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"]),d=c.draggingItem&&c.draggingItem.sortId=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(Object(i.branch)((function(e){var t=e.isDraggable;return void 0===t||t}),(function(e){return function(t){var n=t.onSort,r=t.isDraggable,i=t.items,s=void 0===i?[]:i,u=t.containerId,d=c(t,["onSort","isDraggable","items","containerId"]),p=s.map((function(e,t){return l(l({},e),{},{onSort:n,isDraggable:r,sortId:t,key:e.id||t,containerId:u})}));return o.a.createElement(e,a({},l(l({},d),{},{isDraggable:r}),{items:p}))}})))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/misc/EmptyView.jsx");t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-dom/index.js"),l=n.n(s);n("./node_modules/rxjs/Rx.js");function u(e){return(u="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataProp,n=void 0===t?"items":t,r=e.querySelector,i=e.closest,s=void 0!==i&&i,u=e.loadingProp,c=void 0===u?"loading":u,f=e.skip,g=void 0===f?0:f,b=e.pageSize,w=void 0===b?10:b,_=e.offsetSize,O=void 0===_?200:_;return function(e){var t,i;return i=t=function(t){m(a,t);var i=y(a);function a(){var e;p(this,a);for(var t=arguments.length,o=new Array(t),u=0;u=t.scrollHeight-n}}),i}}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var r=e.loaderProps;return o.a.createElement(n,s({},t,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return c(c({},n),{},d({},r,e[r]&&Object(s.e)(t,e[r])))}}(r,n),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&p(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(s.compose)(Object(s.getContext)({messages:i.a.object}),Object(s.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},t),e)}))})))},"./MapStore2/web/client/components/misc/enhancers/tooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),l=n("./MapStore2/web/client/components/I18N/Message.jsx"),u=n("./MapStore2/node_modules/lodash/lodash.js");function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,u=void 0===i?"top":i,d=t.tooltipTrigger,p=t.keyProp,f=t.idDropDown,h=t.args,m=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(s.a,{trigger:d,id:f,key:p,placement:u,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+p},r?o.a.createElement(l.default,{msgId:r,msgParams:{data:h}}):n)},o.a.createElement(e,m))}}),(function(e){return function(t){return o.a.createElement(e,Object(u.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/moment/moment.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/TimeUtils.js");function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dateTypeProp,n=void 0===t?"type":t,i=e.dateProp,u=void 0===i?"date":i,c=e.setDateProp,d=void 0===c?"onSetDate":c;return Object(r.compose)(Object(r.withPropsOnChange)([u],(function(e){var t,r=e[u],i=e[n],c=e.useUTCOffset,d=void 0===c||c,p=r,f="1970-01-01",h="00:00:00";!Object(o.isDate)(r)&&Object(o.isString)(r)&&("time"===i&&(p=new Date("".concat(f,"T").concat(r))),"date"===i&&(-1!==r.indexOf("Z")&&(p=r.substr(0,r.length-1)),p=new Date("".concat(p,"T").concat(h,"Z"))),"date-time"===i&&(p=new Date(r)));var m=p;if(p){switch(i){case"time":h=Object(s.h)(p);break;case"date":f=Object(s.g)(p);break;default:h=Object(s.h)(p),f=Object(s.g)(p)}(m=new Date("".concat(f,"T").concat(h,"Z"))).setUTCMilliseconds(p.getUTCMilliseconds());var g=d?Object(s.f)(m):0;m=new Date(m.getTime()+g)}return l(t={},u,m),l(t,"defaultCurrentDate","date-time"===i?a()().startOf("day").toDate():void 0),t})),Object(r.withHandlers)(l({},d,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e[d],r=e[n],o=e.useUTCOffset,i=void 0===o||o;return function(e,n){if(e){var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())),a=i?Object(s.f)(e):0,l=new Date(o.getTime()-a);switch(r){case"time":l="".concat(Object(s.h)(l),"Z");break;case"date":l="".concat(Object(s.g)(l),"Z")}t(l,n)}else t(null)}}))))}},"./MapStore2/web/client/components/misc/enhancers/withControllableState.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=function(e,t,n){return Object(r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e[t]}),Object(r.withState)(e,t,n))}},"./MapStore2/web/client/components/misc/enhancers/withMask.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=function(e,t,n){var r=n.maskContainerStyle,a=n.maskStyle,s=n.className,l=n.white;return function(n){return Object(i.nest)((function(n){return o.a.createElement("div",{className:"ms2-mask-container ".concat(s||""," ").concat(e(n)?"":"ms2-mask-empty"),style:r},n.children,e(n)?o.a.createElement("div",{className:"ms2-mask"+(l?" white-mask":""),style:a},t(n)):null)}),n)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.alwaysWrap,o=void 0===r||r,s=n.white,l=void 0!==s&&s,u=n.maskContainerStyle,c=void 0===u?{}:u,d=n.maskStyle,p=void 0===d?{}:d,f=n.className;return o?a(e,t,{maskContainerStyle:c,maskStyle:p,className:f,white:l}):Object(i.branch)(e,a((function(){return!0}),t,{maskContainerStyle:c,maskStyle:p,white:l}))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,l;return l=r=function(r){m(l,r);var s=y(l);function l(e){var r;return p(this,l),x(v(r=s.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=u.a.findDOMNode(v(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return h(l,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),l}(o.a.Component),x(r,"propTypes",{handleWidth:s.a.bool,handleHeight:s.a.bool,onResize:s.a.func}),x(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),l}}},"./MapStore2/web/client/components/misc/panels/DockPanel.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dock/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),l=n("./node_modules/recompose/es/Recompose.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}},p=function(e){var t=e.position,n=void 0===t?"right":t,r=e.onClose,i=e.bsStyle,a=void 0===i?"default":i,s=e.title,l=void 0===s?"":s,p=e.fullscreen,f=void 0!==p&&p,h=e.showFullscreen,m=void 0!==h&&h,g=e.glyph,y=void 0===g?"info-sign":g,b=e.additionalRows,v=e.onFullscreen,w=void 0===v?function(){}:v,x=r?o.a.createElement(c.a,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:a},o.a.createElement(u.Glyphicon,{glyph:"1-close"})):null,_=m?o.a.createElement(c.a,{key:"ms-header-glyph",className:"square-button",bsStyle:a,onClick:function(){return w(!f)}},o.a.createElement(u.Glyphicon,{glyph:d[n]&&d[n][f]||"resize-full"})):o.a.createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+a),style:{display:"flex"}},o.a.createElement(u.Glyphicon,{glyph:y,className:"".concat("default"===a?"text-primary":"")})),O="left"===n?[x,_]:[_,x];return o.a.createElement(u.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+a},o.a.createElement(u.Row,null,o.a.createElement(u.Col,{xs:2},O[0]),o.a.createElement(u.Col,{xs:8},o.a.createElement("h4",null,l)),o.a.createElement(u.Col,{xs:2},O[1])),b)};t.a=Object(l.withState)("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,n=e.className,r=void 0===n?"":n,i=e.fullscreen,l=void 0!==i&&i,u=e.position,c=e.open,d=e.size,f=void 0===d?550:d,h=e.style,m=void 0===h?{}:h,g=e.zIndex,y=void 0===g?1030:g,b=e.onClose,v=e.bsStyle,w=e.title,x=e.showFullscreen,_=void 0!==x&&x,O=e.glyph,S=e.header,j=e.footer,E=e.children,C=e.onFullscreen,T=void 0===C?function(){}:C,k=e.fixed,A=void 0!==k&&k,P=e.resizable,M=void 0!==P&&P,I=e.hideHeader;return o.a.createElement("div",{className:"ms-side-panel "+(A?"":"ms-absolute-dock ")+(M?"":"react-dock-no-resize ")+r},o.a.createElement(a.a,{fluid:t||l,position:u,dimMode:"none",isVisible:c,size:l?1:f,dockStyle:m,zIndex:y},o.a.createElement(s.a,{header:!I&&c&&o.a.createElement(p,{position:u,onClose:b,bsStyle:v,title:w,fullscreen:l,showFullscreen:_,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&j},c&&E)))}))},"./MapStore2/web/client/components/misc/panels/DockablePanel.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),s=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),l=n("./MapStore2/web/client/components/misc/ResizableModal.jsx");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(i.renameProps)({open:"show"})((function(e){var t=e.children,n=e.header,r=u(e,["children","header"]);return o.a.createElement(l.a,r,o.a.createElement(a.a,{header:o.a.createElement("div",{className:"ms-header"},n)},t))}));t.a=Object(i.branch)((function(e){return!e.dock}),(function(){return function(e){return o.a.createElement(c,e)}}))(s.a)},"./MapStore2/web/client/components/misc/quillmodules/assets/css/resizemodule.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/quillmodules/assets/css/resizemodule.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/spinners/InlineSpinner/img/spinner.gif":function(e,t){e.exports="data:image/gif;base64,R0lGODlhEAALAPQAAP///zMzM+Hh4dnZ2e7u7jc3NzMzM1dXV5qamn9/f8fHx05OTm5ubqGhoYKCgsrKylFRUTY2NnFxcerq6t/f3/b29l9fX+Li4vT09MTExLKystTU1PHx8QAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"},"./MapStore2/web/client/components/misc/style/filter.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/style/filter.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n0&&this.props.expanded&&o.a.createElement(u.a,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return o.a.createElement(s.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&j(t.prototype,n),r&&j(t,r),a}(o.a.Component);P(D,"propTypes",{header:a.a.node,title:a.a.oneOfType([a.a.string,a.a.node]),defaultExpanded:a.a.string,expanded:a.a.bool,onSwitch:a.a.func,locked:a.a.bool,buttons:a.a.array,loading:a.a.bool,error:a.a.any,errorMsgId:a.a.string,transitionProps:a.a.object,useToolbar:a.a.bool}),P(D,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});t.a=D},"./MapStore2/web/client/components/misc/toolbar/DropdownToolbarOptions.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/uuid/v1.js"),l=n.n(s);function u(){return(u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.menuOptions,n=void 0===t?[]:t,o=e.buttonConfig,i=void 0===o?{}:o;return a.a.createElement(c,u({},d,i),n.length?n.map((function(e,t){var n=e.glyph,o=e.text,i=e.onClick,s=e.active,l=void 0!==s&&s;return a.a.createElement(r.MenuItem,{active:l,eventKey:t,onClick:i,key:t},n&&a.a.createElement(r.Glyphicon,{glyph:n})," ",o)})):null)}},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-addons-css-transition-group/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,d=e.btnDefaultProps,p=void 0===d?{}:d,f=e.transitionProps,h=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,m=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,s=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,u({key:s.key||t},s))||o.a.createElement(l.a,u({key:s.key||t},p,s))):null}))};return o.a.createElement(s.ButtonGroup,i,h?o.a.createElement(a.a,h,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,d.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,d=e.glyphClassName,m=void 0===d?"":d,g=e.loaderProps,y=void 0===g?{}:g,b=e.children,v=h(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(p.a,Object(s.omit)(v,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:m}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,f({className:"ms-loader".concat(v.bsStyle&&" ms-loader-"+v.bsStyle||"").concat(v.bsSize&&" ms-loader-"+v.bsSize||"")},y)):null,b)}))},"./MapStore2/web/client/components/style/ColorPicker.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isFunction.js"),l=n.n(s),u=n("./node_modules/react-color/lib/index.js"),c=n("./node_modules/tinycolor2/tinycolor.js"),d=n.n(c),p=n("./node_modules/react-dom/index.js"),f=n("./MapStore2/web/client/utils/ConfigUtils.js");function h(){return(h=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nm/2+10&&b+w-E[0]>m/2+10,T=E[1]-y>g/2+10&&y+x-E[1]>g/2+10,k={top:{filter:function(){return C&&_-y>g+10},styles:function(){return{picker:{position:"absolute",top:_-g-10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+2,left:O+S/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return T&&b+w-(O+S)>m+10},styles:function(){return{picker:{position:"absolute",top:_-g/2-y,left:O+S+10-b},overlay:{},arrow:{top:_+j/2,left:O+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+x-(_+j)>g+10},styles:function(){return{picker:{position:"absolute",top:_+j+10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+j-2,left:O+S/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return T&&O-b>m+10},styles:function(){return{picker:{position:"absolute",top:_-g/2-y,left:O-m-10-b},overlay:{},arrow:{top:_+j/2,left:O+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=k&&null!==(d=k[v])&&void 0!==d&&null!==(p=d.filter)&&void 0!==p&&p.call(d))return null==k||null===(f=k[v])||void 0===f||null===(h=f.styles)||void 0===h?void 0:h.call(f);if("top"!==v&&k.top.filter())return k.top.styles();if("right"!==v&&k.right.filter())return k.right.styles();if("bottom"!==v&&k.bottom.filter())return k.bottom.styles();if("left"!==v&&k.left.filter())return k.left.styles()}return{picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}}}Object(r.useEffect)((function(){var e=function(){return E(D())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){T&&E(D())}),[T]);var N,R,L=c?" ms-disabled":"",F=o.a.createElement("div",{ref:I,className:"ms-color-picker-overlay",style:g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0},null==j?void 0:j.overlay)},o.a.createElement("div",{className:"ms-color-picker-cover",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0},onClick:function(){k(!1),_&&i(n?d()(_).toString(n):_)}}),o.a.createElement(u.SketchPicker,h({},f,{className:"ms-sketch-picker",styles:{picker:g({width:200,padding:"10px 10px 0",boxSizing:"initial"},null==j?void 0:j.picker)},color:d()(_||t).toRgb(),onChange:function(e){return O(e.rgb)}})),o.a.createElement("div",{className:"ms-sketch-picker-arrow",style:g({position:"absolute",borderWidth:12},null==j?void 0:j.arrow)})),z=P?Object(p.createPortal)(F,P):F;return o.a.createElement("div",{className:"ms-color-picker".concat(L)},o.a.createElement("div",{className:"ms-color-picker-swatch",ref:M,style:(N=_||t||"transparent",R=d()(N).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(R),backgroundColor:"transparent"}:{color:"transparent"===N?"#000000":d.a.mostReadable(R,["#000000"],{includeFallbackColors:!0}).toHexString(),backgroundColor:R}),onClick:function(){c||(k(!T),_&&i(n?d()(_).toString(n):_))}},a),T?z:null)}w.propTypes={value:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,onChangeColor:a.a.func,text:a.a.string,line:a.a.bool,disabled:a.a.bool,pickerProps:a.a.object,containerNode:a.a.oneOfType([a.a.node,a.a.func]),onOpen:a.a.function,placement:a.a.string},w.defaultProps={disabled:!1,line:!1,onChangeColor:function(){},pickerProps:{},onOpen:function(){},containerNode:function(){return document.querySelector("."+(Object(f.getConfigProp)("themePrefix")||"ms2")+" > div")||document.body}},t.a=w},"./MapStore2/web/client/components/style/ColorSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/style/ColorPicker.jsx");function u(e){var t=e.color,n=e.format,r=e.line,i=e.onChangeColor,a=e.disableAlpha,u=e.containerNode,c=e.onOpen,d=e.presetColors,p=e.placement;return o.a.createElement("div",{className:"ms-color-selector"},o.a.createElement(l.a,{text:o.a.createElement(s.Glyphicon,{glyph:"dropper"}),format:n,line:r,value:t,onChangeColor:i,pickerProps:{disableAlpha:a,presetColors:d},containerNode:u,onOpen:c,placement:p}))}u.propTypes={color:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,line:a.a.bool,onChangeColor:a.a.func,disableAlpha:a.a.bool,containerNode:a.a.node,onOpen:a.a.func,presetColors:a.a.array,placement:a.a.string},u.defaultProps={line:!1,onChangeColor:function(){},onOpen:function(){}},t.a=u},"./MapStore2/web/client/components/style/vector/iconNotFound.png":function(e,t,n){e.exports=n.p+"MapStore2/web/client/components/style/vector/iconNotFound.png"},"./MapStore2/web/client/components/styleeditor/hint/geocss.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?{list:O.map((function(e){return{text:e,displayText:e,render:function(e,t,n){var r,o,i=document.createElement("span"),a=(r=w[n.displayText]||{},o=r.localPart,("gml"===r.prefix?"geometry":u[o])||o||"");i.innerHTML=a&&'{'.concat(a,"} ")||"";var s=document.createElement("span");s.innerText=n.displayText,e.appendChild(i),e.appendChild(s)}}})),from:t(i.line,p),to:t(i.line,f)}:null}))}},"./MapStore2/web/client/components/styleeditor/mode/geocss.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},a=t.indentUnit,l=i.propertyKeywords&&i||e.resolveMode("text/geocss"),u=l.propertyKeywords,c=void 0===u?{}:u,d=l.colorKeywords,p=void 0===d?{}:d,f=l.valueKeywords,h=void 0===f?{}:f,m=l.logicKeywords,g=void 0===m?{}:m,y=l.allowNested,b={},v=function(e,t){return n=t,e},w=function(e){return function(t,n){for(var r=!1,o=t.next();o;){if(o===e&&!r){")"===e&&t.backUp(1);break}r=!r&&"\\"===o,o=t.next()}return(o===e||!r&&")"!==e)&&(n.tokenize=null),v("string","string")}},x=function(e,t){for(var n=!1,r=e.next();r;){if(n&&"/"===r){t.tokenize=null;break}n="*"===r,r=e.next()}return["comment","comment"]},_=function(e,t){var n=e.next();if("@"===n)return e.eat("{")?[null,"interpolation"]:e.match(/^(sd|scale)\b/)?["filter",null]:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]);if("/"===n)return e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"];if('"'===n||"'"===n)return t.tokenize=w(n),t.tokenize(e,t);if("#"===n)return e.eatWhile(/[\w\\\-]/),v("atom","hash");if(/\d/.test(n)||"."===n&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),v("number","unit");if("-"===n){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),v("number","unit");if(e.match(/^-[\w\\\-]+/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?v("variable-2","variable-definition"):v("variable-2","variable");if(e.match(/^\w+-/))return v("meta","meta")}else{if(/[,+>*\/]/.test(n))return v(null,"select-op");if("."===n&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return v("qualifier","qualifier");if(/[:;{}\[\]\(\)]/.test(n))return v(null,n);if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),v("property","word")}return v(null,null)};function O(e,t,n){this.type=e,this.indent=t,this.prev=n}var S=function(e,t,n,r){return e.context=new O(n,t.indentation()+(!1===r?0:a),e.context),n},j=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},E=function(e,t,n){return b[n.context.type](e,t,n)},C=function(e,t,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return E(e,t,n)},T=function(e){var t=e.current().toLowerCase();o=h.hasOwnProperty(t)?"atom":p.hasOwnProperty(t)?"keyword":"variable"};return b.top=function(e,t,n){if("{"===e)return S(n,t,"block");if("}"===e&&n.context.prev)return j(n);if("hash"===e)o="builtin";else if("word"===e)o="tag";else{if("variable-definition"===e)return"maybeprop";if("interpolation"===e)return S(n,t,"interpolation");if(":"===e)return"pseudo";if(y&&"("===e)return S(n,t,"parens")}return n.context.type},b.block=function(e,t,n){if("word"===e){var i=t.current().toLowerCase();return c.hasOwnProperty(i)?(o="property","maybeprop"):g.hasOwnProperty(Object(r.trim)(i))?(o="logic","maybeprop"):Object(r.startsWith)(Object(r.trim)(t.string),"[")?(o="filter","maybeprop"):(o+=" error","maybeprop")}return"meta"===e?"block":y||"hash"!==e&&"qualifier"!==e?b.top(e,t,n):(o="error","block")},b.maybeprop=function(e,t,n){return":"===e?S(n,t,"prop"):E(e,t,n)},b.prop=function(e,t,n){if(";"===e)return j(n);if("{"===e&&y)return S(n,t,"propBlock");if("}"===e||"{"===e)return C(e,t,n);if("("===e)return S(n,t,"parens");if("hash"!==e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"===e)T(t);else if("interpolation"===e)return S(n,t,"interpolation")}else o+=" error";return"prop"},b.propBlock=function(e,t,n){return"}"===e?j(n):"word"===e?(o="property","maybeprop"):n.context.type},b.parens=function(e,t,n){return"{"===e||"}"===e?C(e,t,n):")"===e?j(n):"("===e?S(n,t,"parens"):"interpolation"===e?S(n,t,"interpolation"):("word"===e&&T(t),"parens")},b.pseudo=function(e,t,r){return"word"===e?(o="variable-3",r.context.type):E(n,t,r)},b.at=function(e,t,n){return";"===e?j(n):"{"===e||"}"===e?C(e,t,n):("word"===e?o="tag":"hash"===e&&(o="builtin"),"at")},b.interpolation=function(e,t,n){return"}"===e?j(n):"{"===e||";"===e?C(e,t,n):("word"===e?o="variable":"variable"!==e&&"("!==e&&")"!==e&&(o="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new O("block",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||_)(e,t);return r&&"object"===s(r)&&(n=r[1],r=r[0]),o=r,t.state=b[t.state](n,e,t),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),o=n.indent;return"prop"!==n.type||"}"!==r&&")"!==r||(n=n.prev),n.prev&&("}"!==r||"block"!==n.type&&"top"!==n.type&&"interpolation"!==n.type?(")"===r&&"parens"===n.type||"{"===r&&("at"===n.type||"atBlock"===n.type))&&(o=Math.max(0,n.indent-a),n=n.prev):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}}));var t={colorKeywords:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],valueKeywords:["round"],pseudoProperties:["mark","shield","stroke","fill","symbol","nth-mark","nth-shield","nth-stroke","nth-fill","nth-symbol"],logicKeywords:["and","or"]};e.defineMIME("text/geocss",i(i({},Object.keys(t).reduce((function(e,n){return i(i({},e),{},a({},n,t[n].reduce((function(e,t){return i(i({},e),{},a({},t,!0))}),{})))}),{})),{},{propertyKeywords:{mark:{values:{"symbol(circle)":!0}},"mark-composite":!0,"mark-mime":!0,"mark-geometry":!0,"mark-size":!0,"mark-rotation":!0,"mark-label-obstacle":!0,"mark-anchor":!0,"mark-offset":!0,"z-index":!0,stroke:!0,"stroke-composite":!0,"stroke-geometry":!0,"stroke-offset":!0,"stroke-mime":!0,"stroke-opacity":!0,"stroke-width":!0,"stroke-size":!0,"stroke-rotation":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-repeat":!0,"stroke-label-obstacle":!0,fill:!0,"fill-composite":!0,"fill-geometry":!0,"fill-mime":!0,"fill-opacity":!0,"fill-size":!0,"fill-rotation":!0,"fill-label-obstacle":!0,"graphic-margin":!0,random:!0,"random-seed":!0,"random-rotation":!0,"random-symbol-count":!0,"random-tile-size":!0,"fill-random":!0,"fill-random-seed":!0,"fill-random-rotation":!0,"fill-random-symbol-count":!0,"fill-random-tile-size":!0,label:!0,"label-geometry":!0,"label-anchor":!0,"label-offset":!0,"label-rotation":!0,"label-z-index":!0,shield:!0,"shield-mime":!0,"font-family":!0,"font-fill":!0,"font-style":!0,"font-weight":!0,"font-size":!0,"halo-radius":!0,"halo-color":!0,"halo-opacity":!0,"label-padding":!0,"label-group":!0,"label-max-displacement":!0,"label-min-group-distance":!0,"label-repeat":!0,"label-all-group":!0,"label-remove-overlaps":!0,"label-allow-overruns":!0,"label-follow-line":!0,"label-max-angle-delta":!0,"label-auto-wrap":!0,"label-force-ltr":!0,"label-conflict-resolution":!0,"label-fit-goodness":!0,"label-priority":!0,"shield-resize":!0,"shield-margin":!0,"label-underline-text":!0,"label-strikethrough-text":!0,"label-char-spacing":!0,"label-word-spacing":!0,"raster-channels":!0,"raster-composite":!0,"raster-geometry":!0,"raster-opacity":!0,"raster-contrast-enhancement":!0,"raster-contrast-enhancement-algorithm":!0,"raster-contrast-enhancement-min":!0,"raster-contrast-enhancement-max":!0,"raster-gamma":!0,"raster-z-index":!0,"raster-color-map":!0,"raster-color-map-type":!0,composite:!0,"composite-base":!0,geometry:!0,"sort-by":!0,"sort-by-group":!0,transform:!0,size:!0,rotation:!0},envKeywords:{sd:{localPart:"env"},scale:{localPart:"env"}},allowNested:!0,name:"geocss"}))}},"./MapStore2/web/client/components/time/InlineDateTimeSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/moment/moment.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(""!==n){var o=u()(e.props.date).utc(),i=o["day"===t?"date":t]&&u()(o)["day"===t?"date":t](r(n));i.isValid()&&!isNaN(i.toDate().getTime())&&e.props.onUpdate(i.toISOString())}})),x(v(e),"getForm",(function(){var t=e.props.date&&u()(e.props.date).utc();return[{name:"icon",value:"calendar",type:"icon"},{name:"day",placeholder:"DD",value:t&&t.date()},{name:"month",placeholder:"MM",readOnly:!0,value:t&&t.month(),format:function(e){return!Object(i.isNil)(e)&&""!==e&&u.a.monthsShort(e)},parseValue:function(e){return e-1}},{name:"year",placeholder:"YYYY",value:t&&t.year()},{name:"icon",value:"time",type:"icon"},{name:"hours",placeholder:"hh",value:t&&t.hours()},{name:"separator",value:":",type:"separator"},{name:"minutes",placeholder:"mm",value:t&&t.minutes()},{name:"separator",value:":",type:"separator"},{name:"seconds",placeholder:"ss",value:t&&t.seconds()},{name:"separator",value:t&&t.utcOffset(),type:"separator",format:function(e){return"UTC "+(e>=0?"+":"-")+Object(i.padStart)(e/60,2,0)}}]})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.getForm();return o.a.createElement(c.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},o.a.createElement(c.FormGroup,{controlId:"inlineDateTime"},this.props.glyph&&o.a.createElement("div",{style:this.props.clickable?{cursor:"pointer"}:{},onClick:function(){return e.props.clickable&&e.props.onIconClick(e.props.date,e.props.glyph)}},o.a.createElement(_,{tooltip:this.props.clickable?this.props.tooltip:void 0,tooltipId:this.props.clickable?this.props.tooltipId:void 0,className:"ms-inline-datetime-icon",glyph:this.props.glyph})),t.map((function(t){return"icon"===t.type&&o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},o.a.createElement(_,{glyph:t.value}))||"separator"===t.type&&o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},t.format&&t.format(t.value)||t.value)||o.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},e.props.showButtons&&o.a.createElement(p.a,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name,!0)}},o.a.createElement(_,{glyph:"chevron-up"})),o.a.createElement(c.FormControl,{type:"text",readOnly:t.readOnly,placeholder:t.placeholder||t.name,disabled:!e.props.date,value:t.format&&t.format(t.value)||t.value,onChange:function(n){return e.onChange(t.name,n.target.value,t.parseValue)}}),e.props.showButtons&&o.a.createElement(p.a,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name)}},o.a.createElement(_,{glyph:"chevron-down"})))}))))}}])&&m(t.prototype,n),r&&m(t,r),s}(o.a.Component);x(O,"propTypes",{date:s.a.string,clickable:s.a.bool,onUpdate:s.a.func,onIconClick:s.a.func,glyph:s.a.string,style:s.a.object,className:s.a.string,tooltip:s.a.string,tooltipId:s.a.string,showButtons:s.a.bool}),x(O,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),t.a=O},"./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(l.a)(a.NavItem);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=e.element,o=void 0===n?{}:n,l=e.tabs,f=void 0===l?[]:l,h=e.activeTab,m=e.width,g=e.groups,y=e.isLocalizedLayerStylesEnabled,b=e.setActiveTab,v=void 0===b?function(){}:b,w=e.onUpdateParams,x=void 0===w?function(){}:w,_=e.onRetrieveLayerData,O=void 0===_?function(){}:_,S=e.realtimeUpdate,j=d(e,["settings","element","tabs","activeTab","width","groups","isLocalizedLayerStylesEnabled","setActiveTab","onUpdateParams","onRetrieveLayerData","realtimeUpdate"]);return i.a.createElement(a.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},i.a.createElement(a.Col,{xs:12},i.a.createElement(a.Nav,{bsStyle:"tabs",activeKey:h,justified:!0},f.map((function(e){return i.a.createElement(p,{key:"ms-tab-settings-"+e.id,tooltip:i.a.createElement(s.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){return v(e.id)}},i.a.createElement(a.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement(a.Col,{xs:12},f.filter((function(e){return e.id&&e.id===h})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,u({},j,{key:"ms-tab-settings-body-"+e.id,containerWidth:m,element:o,groups:g,nodeType:t.nodeType,settings:t,retrieveLayerData:O,isLocalizedLayerStylesEnabled:y,onChange:function(e,t){return Object(r.isObject)(e)?x(e,S):x(c({},e,t),S)}}))}))))}},"./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx"),o=n("./node_modules/recompose/es/Recompose.js"),i=Object(o.compose)(Object(o.withHandlers)({onMapViewChanges:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(e){n("map",e),n("mapStateSource",e.mapStateSource)}}}));t.a=i(r.a)},"./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),s=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),l=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),u=n("./MapStore2/web/client/components/TOC/TOC.jsx"),c=n("./MapStore2/node_modules/lodash/lodash.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.changeLayerPropertyByGroup,n=void 0===t?function(){}:t,r=e.changeLayerProperty,i=void 0===r?function(){}:r,c=e.changeGroupProperty,d=void 0===c?function(){}:c,p=e.onSort,f=e.onSelect,h=e.selectedNodes,m=e.nodes,g=void 0===m?[]:m;return o.a.createElement(u.a,{onSort:p,selectedNodes:h,onSelect:f,nodes:g},o.a.createElement(l.a,{groupElement:o.a.createElement(a.a,{onSort:p,selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(r){return n(e,r,t[r])}))},onToggle:function(e,t){return d(e,"expanded",!t)},groupVisibilityCheckbox:!0}),layerElement:o.a.createElement(s.a,{selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(n){return i(e,n,t[n])}))},onUpdateNode:function(e,t,n){return Object.keys(n).map((function(t){return i(e,t,n[t])}))},onToggle:function(e,t){return i(e,"expanded",!t)}})}))}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(o.withHandlers)({changeLayerProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?{}:o;return function(e,t,o){var a=Object(r.findIndex)(i.layers||[],{id:e});n("map.layers[".concat(a,"].").concat(t),o)}},changeLayerPropertyByGroup:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,a=void 0===o?{}:o;return function(e,t,o){return a.layers.filter(Object(i.belongsToGroup)(e)).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return Object(r.findIndex)(a.layers||[],{id:t})})).filter((function(e){return e>=0})).map((function(e){return n("map.layers[".concat(e,"].").concat(t),o)}))}},changeGroupProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?[]:o;return function(e,t,o){var a,s=i.groups?Object(r.castArray)(i.groups):[],l=Object(r.findIndex)(s,(function(t){return e===t.id})),u=-1===l?s.length:l;"expanded"!==t||null!=s&&null!==(a=s[u])&&void 0!==a&&a.id||n("map.groups[".concat(u,"].id"),e),n("map.groups[".concat(u,"].").concat(t),o)}},updateMapEntries:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return n("map[".concat(t,"]"),e[t])}))}}})},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.group,r=void 0===n?"Default":n;return r===e})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t}))};t.a=Object(o.compose)(Object(o.withStateHandlers)((function(){return{selectedLayers:[],selectedGroups:[]}}),{onNodeSelect:function(e,t){var n=e.selectedLayers,o=void 0===n?[]:n,a=e.selectedGroups,l=void 0===a?[]:a,u=t.map,c=void 0===u?{}:u;return function(e,t,n){return{selectedLayers:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?o.filter((function(t){return Object(r.findIndex)(s(e,c),(function(e){return e===t}))<0})):n?[].concat(i(o),i(s(e,c))):i(s(e,c)):Object(r.findIndex)(o,(function(t){return t===e}))>=0?o.filter((function(t){return t!==e})):n?[].concat(i(o),[e]):[e],selectedGroups:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?l.filter((function(t){return t!==e})):n?[].concat(i(l),[e]):[e]:n?l:[]}}}}),Object(o.withProps)((function(e){var t=e.selectedLayers,n=e.selectedGroups;return{selectedNodes:[].concat(i(t),i(n))}})))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(r.withProps)((function(e){var t,n,r,i=e.map;return{nodes:(t=Object(o.splitMapAndLayers)(i),n=t.layers,r=void 0===n?{}:n,Object(o.denormalizeGroups)(r.flat||[],r.groups||[]).groups)}}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),s=n("./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js"),l=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),u=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),c=n("./node_modules/prop-types/index.js"),d=n.n(c),p=n("./node_modules/react/index.js"),f=n.n(p),h=n("./node_modules/react-bootstrap/es/index.js"),m=n("./node_modules/react-select/dist/react-select.es.js"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),y=n("./MapStore2/web/client/components/I18N/Message.jsx");function b(e){return(b="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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n=0||!this.props.element.style||t.push({label:this.props.element.style,value:this.props.element.style}),f.a.createElement(h.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},f.a.createElement("form",{ref:"style"},f.a.createElement(m.default.Creatable,{key:"styles-dropdown",options:t,isLoading:this.props.element&&this.props.element.capabilitiesLoading,value:this.props.element.style||"",onOpen:function(){!e.props.element||e.props.element.capabilities&&e.props.element.availableStyles||e.props.retrieveLayerData(e.props.element)},promptTextCreator:function(e){return f.a.createElement(y.default,{msgId:"layerProperties.styleCustom",msgParams:{value:e}})},onChange:function(t){e.updateEntry("style",{target:{value:t&&t.value||""}})}}),f.a.createElement("br",null),this.renderLegend(),this.renderError(),f.a.createElement(g.a,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(y.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&w(t.prototype,n),o&&w(t,o),a}(f.a.Component);E(C,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(C,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var T=C,k=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js"),A=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js"),P=n("./node_modules/rxjs/Rx.js"),M=n.n(P),I=n("./MapStore2/web/client/observables/wms.js");function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.id===t.id})).switchMap((function(){return n.switchMap((function(e){return Object(I.b)(e).map((function(e){return{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}})).startWith({capabilitiesLoading:!0})})).catch((function(e){return M.a.Observable.of({capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:e},description:null})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(N({},t),{},{retrieveLayerData:r,element:N(N({},t.element),e)})}))}));function F(e){return(F="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)}var z=Object(o.withProps)((function(e){var t=e.nodes,n=void 0===t?{}:t,o=e.editNode,i={};return o&&function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;for(var i in t)null!==t[i]&&"object"===F(t[i])&&(Object(r.isMatch)(t[i],n)&&o.apply(void 0,[t[i]]),e(t[i],n,o))}(n,{id:o},(function(e){i=e})),{selectedNode:i}}));function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t,o=e.selectedNode,a=e.settings,s=void 0===a?{}:a;return{element:o,settings:q(q({},s),{},{nodeType:o&&o.nodes?"groups":"layers",options:{opacity:s.opacity>=0?s.opacity:o.opacity>=0?o.opacity:1}}),groups:Object(r.get)(Object(i.splitMapAndLayers)(n),"layers.groups")}})),Object(o.compose)(k.a,Object(o.withHandlers)({onUpdateNode:function(e){var t=e.changeLayerProperty,n=void 0===t?function(){}:t,r=e.changeGroupProperty,o=void 0===r?function(){}:r,i=e.editNode;return function(e,t,r){"layers"===t&&Object.keys(r).map((function(e){return n(i,e,r[e])})),"groups"===t&&Object.keys(r).map((function(e){return o(i,e,r[e])}))}}}),Object(o.withHandlers)({onUpdateParams:function(e){var t=e.settings,n=void 0===t?{}:t,r=e.onUpdateNode,o=void 0===r?function(){}:r;return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&o(n.node,n.nodeType,q(q({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),H)},"./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=Object(r.withState)("confirmDelete","toggleDeleteConfirm",!1)},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/web/client/utils/FilterUtils.js"),s=n("./MapStore2/web/client/utils/ogc/Filter/CQL/parser.js"),l=n("./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/ogc/Filter/fromObject.js"),d=n.n(c),p=n("./MapStore2/web/client/components/widgets/enhancers/utils.js");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return"cql_filter"===e.toLowerCase()}));return n&&o&&n[o]},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerFilter;return t};t.a=Object(o.compose)(Object(o.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.geomProp,r=e.dependencies,o=void 0===r?{}:r,i=e.layer,a=e.quickFilters,s=e.options,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2?arguments[2]:void 0;return t!==l.mapSync||o.viewport!==(l.dependencies&&l.dependencies.viewport)||o.quickFilters!==(l.dependencies&&l.dependencies.quickFilters)||o.options!==(l.dependencies&&l.dependencies.options)||n!==l.geomProp||u!==l.filter||s!==l.options||a!==l.quickFilters||b(i,o)!==b(l.layer,l.dependencies)||v(i)!==v(l.layer)}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.geomProp,o=void 0===n?"the_geom":n,l=e.dependencies,c=void 0===l?{}:l,f=e.filter,y=e.layer,v=e.quickFilters,w=e.options,x=c.viewport,_=u()({gmlVersion:"3.1.1"}),O=d()(_),S=_.filter,j=_.property,E=_.and,C=y||{},T=C.layerFilter,k={},A={},P=Object(p.a)(f,v,w);if(!t)return{filter:!Object(r.isEmpty)(P)||T?S(E.apply(void 0,g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]).concat(g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[])))):void 0};if(y&&c&&c.quickFilters&&c.layer&&y.name===c.layer.name&&(P=h(h({},P),Object(p.a)(P,c.quickFilters,c.options))),y&&c&&c.filter&&c.layer&&y.name===c.layer.name&&(P=h(h({},P),Object(a.composeAttributeFilters)([P,c.filter]))),c.viewport){var M=Object.keys(x.bounds).reduce((function(e,t){return h(h({},e),{},m({},t,parseFloat(x.bounds[t])))}),{});k=Object(i.getViewportGeometry)(M,x.crs);var I=b(y,c);return A=I?[O(Object(s.read)(I))]:[],{filter:S(E.apply(void 0,g(A).concat(g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]),g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[]),[j(o).intersects(k)])))}}return{filter:S(E.apply(void 0,g(T?Object(a.toOGCFilterParts)(T,"1.1.0","ogc"):[]).concat(g(P?Object(a.toOGCFilterParts)(P,"1.1.0","ogc"):[]))))}})))},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/widgets/enhancers/utils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,n=void 0===t?{}:t,r=e.options,a=e.layer,l=void 0===a?{}:a,u=Object(o.b)(l,n),c=Object(i.find)(Object.keys(u||{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"viewparams"===e.toLowerCase()})),d=u&&c&&u[c];return{options:d?s(s({},r),{},{viewParams:d}):r}})))},"./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.iconFit;return{iconFit:n,tooltip:t?o.a.createElement(i.default,{msgId:"widgets.errors.nodatainviewport"}):o.a.createElement(i.default,{msgId:"widgets.errors.nodata"})}}))},"./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),a=n("./MapStore2/web/client/components/I18N/Message.jsx");function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Object(i.a)((function(e){var t=e.layers;return 0===(void 0===t?[]:t).length}),(s(e={},t?"tooltip":"title",o.a.createElement(a.default,{msgId:"widgets.errors.noLegend"})),s(e,"description",!t&&o.a.createElement(a.default,{msgId:"widgets.errors.noLegendDescription"})),e))}},"./MapStore2/web/client/components/widgets/enhancers/errorChartState.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"ECONNABORTED"===e.code?o.a.createElement(i.default,{msgId:"widgets.errors.timeoutExpired"}):e.message?o.a.createElement(i.default,{msgId:"widgets.errors.genericErrorWithMessage",msgParams:{message:e.message}}):o.a.createElement(i.default,{msgId:"widgets.errors.genericError"})};t.a=Object(a.a)((function(e){return e.error}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.error,n=e.iconFit;return{glyph:"warning-sign",iconFit:n,tooltip:s(t)}}))},"./MapStore2/web/client/components/widgets/enhancers/legendWidget.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js"),a=n("./MapStore2/web/client/components/widgets/enhancers/tools/index.js"),s=n("./MapStore2/web/client/utils/MapUtils.js");t.a=Object(r.compose)(Object(r.withProps)((function(e){var t=e.dependencies,n=void 0===t?{}:t,r=e.dependenciesMap;return{layers:n[(void 0===r?{}:r).layers]||n.layers||[],scales:Object(s.getScales)(n.projection||n.viewport&&n.viewport.crs||"EPSG:3857",Object(o.get)(n,"mapOptions.view.DPI")),currentZoomLvl:n.zoom}})),Object(r.withProps)((function(e){var t=e.layers;return{layers:(void 0===t?[]:t).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"background"!==e.group&&!1!==e.visibility&&"vector"!==e.type}))}})),i.a,Object(a.b)(),Object(a.a)(),Object(a.e)())},"./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./node_modules/rxjs/Rx.js"),a=n.n(i),s=n("./MapStore2/web/client/observables/wps/aggregate.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),u=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.AggregationResults,n=void 0===t?[]:t,o=e.GroupByAttributes,i=void 0===o?[]:o,a=e.AggregationAttribute,s=e.AggregationFunctions;return n.map((function(e){return d(d({},i.reduce((function(t,n,o){var i=e[o];if(Object(r.isObject)(i)){if(Object(r.isNil)(i.time))throw new Error("Unknown response format from server");i=new Date(i.time).toISOString()}return d(d({},t),{},p({},n,i))}),{})),{},p({},"".concat(s[0],"(").concat(a,")"),e[e.length-1]))})).sort((function(e,t){var n=parseFloat(e[i]),r=parseFloat(t[i]);return isNaN(n)||isNaN(r)?et?1:0:n-r}))},h=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getWpsUrl)(n)&&r&&r.aggregateFunction&&r.aggregationAttribute&&r.groupByAttributes})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.groupByAttributes===t.groupByAttributes&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,o=e.filter,i=e.onLoad,u=void 0===i?function(){}:i,c=e.onLoadError,p=void 0===c?function(){}:c;return Object(s.a)(Object(l.getWpsUrl)(n),d(d({featureType:n.name},r),{},{filter:o}),{timeout:15e3}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:f(e),series:[{dataKey:"".concat(e.AggregationFunctions[0],"(").concat(e.AggregationAttribute,")")}],xAxis:{dataKey:e.GroupByAttributes[0]}}})).do(u).catch((function(e){return a.a.Observable.of({loading:!1,error:e,data:[]}).do(p)})).startWith({loading:!0})}))},m=Object(o.compose)(Object(o.withProps)((function(){return{dataStreamFactory:h}})),u.a),g=n("./MapStore2/web/client/observables/wfs.js");function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.features,n=arguments.length>1?arguments[1]:void 0,o=n.groupByAttributes;return Object(r.sortBy)(t.map((function(e){return e.properties})),o)},w=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getSearchUrl)(n)&&r&&r.aggregationAttribute&&r.groupByAttributes})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.groupByAttributes===t.groupByAttributes&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,o=e.options,i=e.filter,s=e.onLoad,l=void 0===s?function(){}:s,u=e.onLoadError,c=void 0===u?function(){}:u;return Object(g.b)(n,i,{propertyName:[].concat(y(Object(r.castArray)(o.aggregationAttribute)),y(Object(r.castArray)(o.groupByAttributes)))}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:v(e,o),series:[{dataKey:o.aggregationAttribute}],xAxis:{dataKey:o.groupByAttributes}}})).do(l).catch((function(e){return a.a.Observable.of({loading:!1,error:e,data:[]}).do(c)})).startWith({loading:!0})}))},x=Object(o.compose)(Object(o.withProps)((function(){return{dataStreamFactory:w}})),u.a);t.a=Object(o.branch)((function(e){var t=e.options,n=void 0===t?{}:t;return!n.aggregateFunction||"None"===n.aggregateFunction}),x,m)},"./MapStore2/web/client/components/widgets/enhancers/tools/index.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(w).length>0};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(k).length>0},P=Object(E.a)(S.MenuItem);function M(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(D).length>0};n.d(t,"d",(function(){return F})),n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return G})),n.d(t,"a",(function(){return W})),n.d(t,"e",(function(){return Y}));var R=function(){return Object(r.compose)(Object(r.withPropsOnChange)(["topLeftItems","widgetTools"],(function(e){var t=e.topLeftItems,n=void 0===t?[]:t,r=e.widgetTools;return{topLeftItems:N(r)?[].concat(M(n),[b.a.createElement(v.a,{btnGroupProps:{style:{position:"absolute",left:14}},btnDefaultProps:{className:"no-border",bsSize:"small",bsStyle:"link",style:{paddingLeft:4,paddingRight:4}},buttons:r.filter(D)})]):n}})))},L=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,o=void 0===r?[]:r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.updateProperty,l=void 0===s?function(){}:s,u=e.dataGrid,c=void 0===u?{}:u;return{widgetTools:a.showPin?[].concat(m(o),[{glyph:"pushpin",bsStyle:c.static&&"primary",glyphClassName:c.static?"active":void 0,tooltipId:c.static?"widgets.widget.menu.unpin":"widgets.widget.menu.pin",target:"icons",visible:!n.widget,onClick:function(){return l("dataGrid.static",!c.static)}}]):o}})))},F=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,o=void 0===r?[]:r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.canEdit,l=e.updateProperty,u=void 0===l?function(){}:l,c=e.hide,d=void 0!==c&&c;return{widgetTools:a.showHide?[].concat(f(o),[{glyph:"lock",target:"menu",active:d,textId:d?"widgets.widget.menu.unhide":"widgets.widget.menu.hide",tooltipId:d?"widgets.widget.menu.unhideDescription":"widgets.widget.menu.hideDescription",visible:!n.widget&&s,onClick:function(){return u("hide",!d)}}]):o}})))},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=void 0===t?"widget-menu":t,o=e.menuIcon,i=void 0===o?"option-vertical":o;return Object(r.withProps)((function(e){var t=e.widgetTools,r=e.topRightItems,o=void 0===r?[]:r;return{topRightItems:A(t)?[].concat(C(o),[b.a.createElement(S.ButtonToolbar,null,b.a.createElement(S.DropdownButton,{pullRight:!0,bsStyle:"default",className:n,title:b.a.createElement(S.Glyphicon,{glyph:i}),noCaret:!0,id:"dropdown-no-caret"},t.filter(k).map((function(e,t){var n=e.onClick,r=void 0===n?function(){}:n,o=e.disabled,i=void 0!==o&&o,a=e.glyph,s=e.glyphClassName,l=e.text,u=e.textId,c=e.tooltipId,d=e.active;return b.a.createElement(P,{active:d,tooltipId:c,onSelect:r,disabled:i,eventKey:t},b.a.createElement(S.Glyphicon,{className:s,glyph:a}),u?b.a.createElement(j.default,{msgId:u}):l)}))))]):o}}))},B=function(){return Object(r.compose)(Object(r.withPropsOnChange)(["icons","widgetTools"],(function(e){var t=e.icons,n=void 0===t?[]:t,r=e.widgetTools;return{icons:x(r)?b.a.createElement(v.a,{btnDefaultProps:{className:"no-border",bsSize:"xs",bsStyle:"link"},buttons:r.filter(w)}):n}})))},q=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.title,o=e.description,i=e.widgetType;return{widgetTools:o&&"text"!==i?[].concat(_(n),[{glyph:"question-sign",popover:{title:r,trigger:!0,text:o},target:"icons"}]):n}})))},U=function(){return Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.dataGrid,o=void 0===r?{}:r,i=e.canEdit,a=e.onEdit,s=void 0===a?function(){}:a,l=e.toggleDeleteConfirm,c=void 0===l?function(){}:l;return{widgetTools:i?[].concat(u(n),[{glyph:"pencil",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.edit",onClick:function(){return s()}},{glyph:"trash",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.delete",onClick:function(){return c(!0)}}]):n}}))},G=function(){return Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.data,o=e.title,i=e.exportCSV,a=void 0===i?function(){}:i;return{widgetTools:[].concat(d(n),[{glyph:"download",glyphClassName:"exportCSV",target:"menu",textId:"widgets.widget.menu.downloadData",disabled:!r||!r.length,onClick:function(){return a({data:r,title:o})}}])}}))},H=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.maximized,n=void 0===t?{}:t,r=e.widgetTools,i=void 0===r?[]:r,a=e.dataGrid,s=void 0===a?{}:a,l=e.toggleCollapse,u=void 0===l?function(){}:l,c=e.toolsOptions;return{widgetTools:(void 0===c?{}:c).showCollapse?[].concat(o(i),[{glyph:"minus",target:"icons",tooltipId:"widgets.widget.menu.collapse",visible:!n.widget&&!s.static,onClick:function(){return u()}}]):i}})))},V=function(){return l},W=function(){return Object(r.compose)(L(),H(),V(),q())},Y=function(){return Object(r.compose)(R(),B(),z())}},"./MapStore2/web/client/components/widgets/enhancers/utils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureGridUtils.js"),i=n("./MapStore2/web/client/utils/FilterUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.layer;return Object(a.getSearchUrl)(t)===Object(a.getSearchUrl)(r)&&t.loadingError===r.loadingError})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return Object(i.a)({layer:t}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return o.a.Observable.of({loading:!1,error:e})}))}))}},"./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/observables/wps/aggregate.js"),i=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),a=n("./node_modules/rxjs/Rx.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/LayersUtils.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.AggregationResults,n=void 0===t?[]:t,r=e.GroupByAttributes,o=void 0===r?[]:r,i=e.AggregationAttribute,a=e.AggregationFunctions;return n.map((function(e){return c(c({},o.reduce((function(t,n,r){return c(c({},t),{},d({},n,e[r]))}),{})),{},d({},"".concat(a[0],"(").concat(i,")"),e[e.length-1]))}))},f=function(e){return e.filter((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options;return n.name&&Object(l.getWpsUrl)(n)&&r&&r.aggregateFunction&&r.aggregationAttribute})).distinctUntilChanged((function(e,t){var n,r,o=e.layer,i=void 0===o?{}:o,a=e.options,s=void 0===a?{}:a,l=e.filter;return t.layer&&i.name===t.layer.name&&i.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.aggregateFunction===t.aggregateFunction&&e.aggregationAttribute===t.aggregationAttribute&&e.viewParams===t.viewParams}(s,t.options)&&(n=l,r=t.filter,n===r)})).switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,i=e.filter,a=e.onLoad,u=void 0===a?function(){}:a,d=e.onLoadError,f=void 0===d?function(){}:d;return Object(o.a)(Object(l.getWpsUrl)(n),c(c({featureType:n.name},r),{},{filter:i}),{timeout:15e3}).map((function(e){return{loading:!1,isAnimationActive:!1,error:void 0,data:p(e),series:[{dataKey:"".concat(e.AggregationFunctions[0],"(").concat(e.AggregationAttribute,")")}]}})).do(u).catch((function(e){return s.a.Observable.of({loading:!1,error:e,data:[]}).do(f)})).startWith({loading:!0})}))};t.a=Object(r.compose)(Object(r.withProps)((function(){return{dataStreamFactory:f}})),i.a)},"./MapStore2/web/client/components/widgets/widget/CounterView.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),o=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js"),i=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),a=n("./MapStore2/web/client/components/I18N/Number.jsx"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-textfit/lib/index.js"),c=n("./node_modules/react/index.js"),d=n.n(c);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=Object(r.a)(),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=void 0===t?"":t,r=e.uom,o=void 0===r?"":r,i=g(e,["value","uom"]);return d.a.createElement(u.Textfit,m({mode:"single",forceSingleModeWidth:!1,max:500,throttle:20},i),d.a.createElement(a.a,{value:n}),d.a.createElement("span",{style:{fontSize:"75%"}},o))},v=Object(s.compose)(y,o.a,i.a);t.a=v((function(e){var t=e.series,n=void 0===t?[]:t,r=e.data,o=void 0===r?[]:r,i=e.options,a=void 0===i?{}:i,s=e.style,u=void 0===s?{width:"100%",height:"100%",transform:"translate(-50%, -50%)",position:"absolute",display:"inline",padding:"1%",top:"50%",left:"50%"}:s;return d.a.createElement("div",{className:"counter-widget-view"},n.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataKey,n=arguments.length>1?arguments[1]:void 0;return d.a.createElement(b,{key:t,uom:Object(l.get)(a,"seriesOptions[".concat(n,"].uom")),value:o[0][t],style:f({textAlign:"center"},u)})})))}))},"./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/widgets/enhancers/deleteWidget.js"),s=n("./MapStore2/web/client/components/widgets/enhancers/tools/index.js");function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,n=void 0===t?{}:t,r=e.updateProperty,o=void 0===r?function(){}:r;return{gridEvents:h(h({},n),{},{onAddFilter:function(e){return o("quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,n,r,i,a){return o('options.columnSettings["'.concat(Object(p.get)(a.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.a,Object(s.b)(),Object(s.a)(),Object(s.e)(),Object(i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,n=void 0===t?{}:t,r=e.updateProperty,o=void 0===r?function(){}:r;return{gridEvents:h(h({},n),{},{onGridSort:function(e,t){return o("sortOptions",{sortBy:e,sortOrder:t})}})}}))),y=n("./MapStore2/web/client/components/widgets/enhancers/legendWidget.js"),b=Object(i.compose)(a.a,Object(s.b)(),Object(s.d)(),Object(s.a)(),Object(s.e)()),v=Object(i.compose)(a.a,Object(s.b)(),Object(s.a)(),Object(s.e)()),w=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),x=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),_=n("./MapStore2/web/client/utils/ogc/WFS/base.js"),O=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),S=n("./MapStore2/web/client/components/widgets/enhancers/wfsTable/describeFetch.js"),j=n("./node_modules/rxjs/Rx.js"),E=n.n(j),C=n("./MapStore2/web/client/observables/wfs.js"),T=function(e){return e.switchMap((function(e){var t=e.layer,n=void 0===t?{}:t,r=e.options,o=void 0===r?{}:r,i=e.filter,a=e.onLoad,s=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return Object(C.b)(n,i,{timeout:15e3,params:{propertyName:o.propertyName,viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return s({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return E.a.Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&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}(s,t.options)&&(n=l,r=t.filter,n===r)&&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}(u,t.sortOptions)})).map((function(e){return A(A({},e),{},{features:[],pages:[],pagination:{}})}))},I=n("./MapStore2/web/client/utils/FeatureGridUtils.js");function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return M(e).let(n?L(t.withLatestFrom(e.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pagination,n=void 0===t?{}:t;return{pagination:n}})),(function(e,t){return z({pagesRange:e},t)}))):T).startWith({})}(e,r.startWith({startPage:0,endPage:1})),(function(e,t){return z(z(z({},e),t),{},{pageEvents:{moreFeatures:n,onPageChange:function(){}}})})).startWith({loading:!0})},U=Object(i.compose)(Object(i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),Object(i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pages,n=e.features,r=e.pagination;return{pages:t,features:n,pagination:r,error:void 0}}}}),Object(i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,n=void 0===t?function(){}:t,r=e.onLoad,o=void 0===r?function(){}:r;return function(){n.apply(void 0,arguments),o.apply(void 0,arguments)}}}),Object(i.withProps)((function(){return{dataStreamFactory:q}})),O.a,Object(i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:Object(p.merge)(r?Object(_.getFeatureTypeProperties)(r).filter((function(e){return!Object(p.includes)(n.propertyName||[],e.name)})).reduce((function(e,t){return z(z({},e),{},B({},t.name,{hide:!0}))}),{}):{},n.columnSettings||{},i)}}))),G=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),H=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),V=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),W=n("./node_modules/xml2js/lib/xml2js.js"),Y=n.n(W),K=n("./MapStore2/web/client/components/widgets/enhancers/utils.js"),X=n("./MapStore2/web/client/observables/wps/common.js"),Z=n("./MapStore2/web/client/observables/wps/execute.js"),Q=function(e){var t=e.wfsGetFeature;return Object(Z.b)("gs:Bounds",[Object(X.h)("features",Object(X.i)("text/xml","http://geoserver/wfs","POST",t))],Object(X.l)(Object(X.j)("bounds","application/json")))},$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(Z.a)(e,Q(t),{},n)},J=n("./MapStore2/web/client/utils/FilterUtils.js"),ee=n("./MapStore2/web/client/utils/LayersUtils.js"),te=n("./MapStore2/web/client/utils/ImmutableUtils.js"),ne=n("./MapStore2/web/client/utils/MapUtils.js");function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies;return t&&(!Object(p.isEmpty)(n.quickFilters)||!Object(p.isEmpty)(n.filter))}),Object(i.compose)(Object(i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||Object(ne.createRegisterHooks)()}})),Object(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 Object(p.isEqual)(e.dependencies.quickFilters,t.dependencies.quickFilters)&&Object(p.isEqual)(e.dependencies.filter,t.dependencies.filter)&&Object(p.isEqual)(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.filter,i=e.hookRegister;if(!t||Object(p.isEmpty)(r.layer))return j.Observable.of({loading:!1});var a={};r.quickFilters&&(a=oe(oe({},a),Object(K.a)(o,r.quickFilters,r.options))),r.filter&&(a=oe(oe({},a),Object(J.composeAttributeFilters)([a,r.filter])));var s=r&&r.layer&&r.layer.name;if(!Object(p.isEmpty)(a)){a=oe(oe({},a),{},{options:oe(oe({},a.options||{}),{},{noSchemaLocation:!0})});var l=Object(J.toOGCFilter)(s,a,"1.1.0");return $(Object(ee.getWpsUrl)(r.layer),{wfsGetFeature:l}).switchMap((function(e){var t,n,r;if(Y.a.parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],n=t["ows:LowerCorner"].split(" "),r=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return j.Observable.of({loading:!1});var o={minx:parseFloat(n[0]),miny:parseFloat(n[1]),maxx:parseFloat(r[0]),maxy:parseFloat(r[1])},a=i.getHook(ne.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),j.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return j.Observable.of({error:"error getting bounds from filter",details:e})}))}return j.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,n=void 0!==t&&t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(te.e)("loading",n,r)}))}))))),se=n("./MapStore2/web/client/utils/VendorParamsUtils.js");function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.map,i=void 0===o?{}:o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;return t!==a.mapSync||!Object(p.isEqual)(r,a.dependencies)||!Object(p.isEqual)(i,a.map)||s!==a.filter}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,n=e.dependencies,r=void 0===n?{}:n,o=e.filter,i=void 0===o?{}:o,a=e.map,s=void 0===a?{layers:[]}:a,l=r&&r.layer&&r.layer.name,u=Object(p.find)(s.layers,{name:l})||{},c={},d={},f=void 0;return t&&!Object(p.isEmpty)(u)&&(r.quickFilters&&(c=ue(ue({},c),Object(K.a)(i,r.quickFilters,r.options))),r.filter&&(c=ue(ue({},c),Object(J.composeAttributeFilters)([c,r.filter]))),!Object(p.isEmpty)(c)&&Object(J.toCQLFilter)(c))?(f=Object(J.toCQLFilter)(c),d=Object(te.b)(!1,ue(ue({},u),{},{params:Object(se.optionsToVendorParams)({params:{CQL_FILTER:f}},u&&u.params&&u.params.CQL_FILTER)}),{name:l},s.layers),{map:ue(ue({},s),{},{layers:d})}):(d=s.layers.map((function(e){return ue(ue({},e),{},{params:ue(ue({},e.params),{},{CQL_FILTER:void 0})})})),{map:ue(ue({},s),{},{layers:d})})}))),pe=function(e){return Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync;return t}),Object(i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.mapSync,r=t.dependencies,o=void 0===r?{}:r,a=arguments.length>1?arguments[1]:void 0,s=a.mapSync,l=a.dependencies;return l&&Object(i.shallowEqual)(o[e],l[e])||n===s}),(function(t){var n=t.map,r=t.mapSync,o=t.dependencies,i=void 0===o?{}:o;return{mapStateSource:"__dependency_system__",map:i[e]&&r?Object(te.e)(e,i[e],n):n}})))},fe=n("./node_modules/react-bootstrap/es/index.js");function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?[]:t,r=ye(e,["data"]),i=Object.keys(n.reduce((function(e,t){return me(me({},e),t)}),{}));return o.a.createElement("div",{className:"mapstore-widget-table"},o.a.createElement(fe.Table,{striped:!0},o.a.createElement("thead",null,o.a.createElement("tr",null,i.map((function(e,t){return o.a.createElement("th",null,t+1===i.length&&r.yAxisLabel?r.yAxisLabel:t>0?"".concat(e):e)})))),o.a.createElement("tbody",null,n.map((function(e){return o.a.createElement("tr",null,i.map((function(t){return o.a.createElement("td",null,e[t])})))})))))},ve=n("./node_modules/react-container-dimensions/lib/index.js"),we=n.n(ve),xe=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),_e=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js"),Oe=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),Se=n("./MapStore2/web/client/components/charts/SimpleChart.jsx"),je=Object(xe.a)()(Object(_e.a)(Object(Oe.a)(Se.a))),Ee=function(e){return o.a.createElement("div",{className:"mapstore-widget-chart"},o.a.createElement(we.a,null,o.a.createElement(je,e)))},Ce=n("./MapStore2/web/client/components/I18N/Message.jsx"),Te=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),ke=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),Ae=function(e){var t=e.id,n=e.title,r=e.confirmDelete,i=void 0!==r&&r,a=e.className,s=e.isDraggable,l=void 0===s||s,u=e.toggleDeleteConfirm,c=void 0===u?function(){}:u,d=e.onDelete,p=void 0===d?function(){}:d,f=e.icons,h=e.topLeftItems,m=e.topRightItems,g=e.headerStyle,y=void 0===g?{}:g,b=e.children;return o.a.createElement("div",{className:"mapstore-widget-card",id:t},o.a.createElement(Te.a,{className:a,header:o.a.createElement("div",{style:y,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o.a.createElement("div",{className:"mapstore-widget-header"},o.a.createElement("span",{className:"widget-icons"},f),h,o.a.createElement("span",{className:"widget-title"},n),o.a.createElement("span",{className:"mapstore-widget-options"},m)))},b),i?o.a.createElement(ke.a,{confirmText:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.delete"}),titleText:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.delete"}),body:o.a.createElement(Ce.default,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return c(!1)},onConfirm:function(){return p(t)}}):null)};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,n=e.toggleTableView,r=void 0===n?function(){}:n;return t?o.a.createElement(fe.Glyphicon,{onClick:function(){r()},glyph:"arrow-left pull-left"}):null},De=function(e){var t=e.id,n=e.title,r=e.description,i=e.headerStyle,a=e.data,s=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,c=e.loading,d=e.icons,p=e.showTable,f=e.topRightItems,h=e.confirmDelete,m=void 0!==h&&h,g=e.dataGrid,y=void 0===g?{}:g,b=e.onDelete,v=void 0===b?function(){}:b,w=e.toggleTableView,x=void 0===w?function(){}:w,_=e.toggleDeleteConfirm,O=void 0===_?function(){}:_,S=Me(e,["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"]);return o.a.createElement(Ae,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:y.isDraggable,title:n,icons:d,topLeftItems:Ie({loading:c,title:n,description:r,showTable:p,toggleTableView:x}),confirmDelete:m,onDelete:v,toggleDeleteConfirm:O,topRightItems:f},p?o.a.createElement(be,Pe({data:s},S)):o.a.createElement(Ee,Pe({id:t,isAnimationActive:!c,loading:c,data:s,series:u,iconFit:!0},S)))},Ne=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),Re=Object(Ne.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return!t}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconFit;return{iconFit:t,tooltip:o.a.createElement(Ce.default,{msgId:"widgets.errors.notext"})}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return o.a.createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:t}})})),Le=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),Fe=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx");function ze(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Be=Object(i.withHandlers)({onMapViewChanges:function(e){var t=e.updateProperty,n=void 0===t?function(){}:t;return function(e){e.layers;var t=ze(e,["layers"]);return n("map",t,"merge")}}})(Fe.a),qe=n("./MapStore2/web/client/components/data/featuregrid/filterRenderers/index.js");function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,n=e.options,r=e.quickFilterStream$;return t?{filterRenderers:Object(I.d)(t).reduce((function(e,t){var o=t.localType,i=t.name,a=We({options:n,localType:o,attributeName:i,quickFilterStream$:r});return Ge(Ge({},e),{},He({},i,a))}),{})}:{}}))),Xe=n("./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx"),Ze=n("./MapStore2/web/client/components/data/featuregrid/FeatureGrid.jsx"),Qe=Object(_e.a)(Object(xe.a)((function(e){return!e.describeFeatureType}))(Ze.a)),$e=Ke((function(e){var t=e.id,n=e.title,r=e.loading,i=e.confirmDelete,a=void 0!==i&&i,s=e.enableColumnFilters,l=void 0!==s&&s,u=e.headerStyle,c=e.icons,d=e.topRightItems,p=e.toggleDeleteConfirm,f=void 0===p?function(){}:p,h=e.onDelete,m=void 0===h?function(){}:h,g=e.gridEvents,y=void 0===g?function(){}:g,b=e.pageEvents,v=void 0===b?{moreFeatures:function(){}}:b,w=e.describeFeatureType,x=e.filterRenderers,_=e.columnSettings,O=e.features,S=e.size,j=e.pages,E=e.error,C=e.pagination,T=void 0===C?{}:C,k=e.dataGrid,A=void 0===k?{}:k,P=e.virtualScroll,M=void 0===P||P;return o.a.createElement(Ae,{id:"widget-chart-".concat(t),title:n,headerStyle:u,icons:c,isDraggable:A.isDraggable,confirmDelete:a,onDelete:m,toggleDeleteConfirm:f,topRightItems:d},o.a.createElement(Te.a,{footer:T.totalFeatures?o.a.createElement("div",{style:{height:"30px",overflow:"hidden"}},r?o.a.createElement("span",{style:{float:"right"}},o.a.createElement(Le.a,null)):null,void 0===E&&o.a.createElement("span",{style:{float:"left",margin:"5px"}},o.a.createElement(Ce.default,{msgId:"featuregrid.resultInfoVirtual",msgParams:{total:T.totalFeatures}}))):null},o.a.createElement(Qe,{emptyRowsView:function(){return o.a.createElement(Xe.a,{loading:r})},gridEvents:y,sortable:!0,defaultSize:!1,columnSettings:_,pageEvents:v,virtualScroll:M,enableColumnFilters:l,filterRenderers:x,features:O,pages:j,error:E,size:S,rowKey:"id",describeFeatureType:w,pagination:T})))})),Je=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function et(){return(et=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,n=e.toggleTableView,r=void 0===n?function(){}:n;return t?o.a.createElement(fe.Glyphicon,{onClick:function(){r()},glyph:"arrow-left pull-left"}):null},rt=n("./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js"),ot=n("./MapStore2/web/client/components/widgets/widget/LegendView.jsx");function it(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var at=Object(rt.a)()(ot.a),st=Object(i.compose)(V.a,G.a,H.a,w.a,c)(De),lt=Object(i.compose)(b)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,n=void 0===t?function(){}:t,r=e.icons,i=e.topLeftItems,a=e.id,s=e.title,l=e.text,u=e.headerStyle,c=e.topRightItems,d=e.dataGrid,p=void 0===d?{}:d,f=e.confirmDelete,h=void 0!==f&&f,m=e.onDelete,g=void 0===m?function(){}:m;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:h,onDelete:g,toggleDeleteConfirm:n,headerStyle:u,isDraggable:p.isDraggable,icons:r,topLeftItems:i,topRightItems:c},o.a.createElement(Re,{text:l}))})),ut=Object(i.compose)(V.a,de,pe("center"),pe("zoom"),ae,v)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateProperty,n=void 0===t?function(){}:t,r=e.toggleDeleteConfirm,i=void 0===r?function(){}:r,a=e.id,s=e.title,l=e.map,u=e.icons,c=e.hookRegister,d=e.mapStateSource,f=e.topRightItems,h=e.confirmDelete,m=void 0!==h&&h,g=e.loading,y=void 0!==g&&g,b=e.dataGrid,v=void 0===b?{}:b,w=e.onDelete,x=void 0===w?function(){}:w,_=e.headerStyle,O=e.env;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:m,onDelete:x,toggleDeleteConfirm:i,headerStyle:_,icons:u,topRightItems:f,isDraggable:v.isDraggable},o.a.createElement(Te.a,{footer:o.a.createElement("div",{style:{height:"30px",overflow:"hidden"}},y?o.a.createElement("span",{style:{float:"right"}},o.a.createElement(Le.a,null)):null)},o.a.createElement(Be,{updateProperty:n,id:a,map:Object(p.omit)(l,"mapStateSource"),mapStateSource:d,hookRegister:c,layers:l&&l.layers,options:{style:{margin:10,height:"calc(100% - 20px)"}},env:O})))})),ct=Object(i.compose)(V.a,H.a,G.a,U,g)($e),dt=Object(i.compose)(V.a,G.a,H.a,x.a,d)((function(e){var t=e.id,n=e.title,r=e.description,i=e.data,a=void 0===i?[]:i,s=e.series,l=void 0===s?[]:s,u=e.loading,c=e.showTable,d=e.confirmDelete,p=void 0!==d&&d,f=e.headerStyle,h=e.icons,m=e.topRightItems,g=e.dataGrid,y=void 0===g?{}:g,b=e.toggleTableView,v=void 0===b?function(){}:b,w=e.toggleDeleteConfirm,x=void 0===w?function(){}:w,_=e.onDelete,O=void 0===_?function(){}:_,S=tt(e,["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","dataGrid","toggleTableView","toggleDeleteConfirm","onDelete"]);return o.a.createElement(Ae,{className:"counter-widget",id:"widget-chart-".concat(t),title:n,isDraggable:y.isDraggable,icons:h,topLeftItems:nt({loading:u,title:n,description:r,showTable:c,toggleTableView:v}),confirmDelete:p,onDelete:O,toggleDeleteConfirm:x,headerStyle:f,topRightItems:m},o.a.createElement(Je.a,et({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},S)))})),pt=Object(i.compose)(V.a,y.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,n=void 0===t?function(){}:t,r=e.id,i=e.title,a=e.icons,s=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,c=e.topRightItems,d=e.dataGrid,p=void 0===d?{}:d,f=e.onDelete,h=void 0===f?function(){}:f,m=it(e,["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"]);return o.a.createElement(Ae,{id:"widget-text-".concat(r),title:i,confirmDelete:u,onDelete:h,toggleDeleteConfirm:n,headerStyle:s,icons:a,topRightItems:c,isDraggable:p.isDraggable},o.a.createElement(at,m))}));function ft(){return(ft=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,n=e.toggleCollapse,r=void 0===n?function(){}:n,i=e.exportCSV,a=void 0===i?function(){}:i,s=e.exportImage,l=void 0===s?function(){}:s,u=e.onDelete,c=void 0===u?function(){}:u,d=e.onEdit,p=void 0===d?function(){}:d,f=ht(e,["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"]);return"text"===f.widgetType?o.a.createElement(lt,ft({},f,{toggleCollapse:r,onDelete:c,onEdit:p})):"table"===f.widgetType?o.a.createElement(ct,ft({},f,{toggleCollapse:r,exportCSV:a,dependencies:t,onDelete:c,onEdit:p})):"counter"===f.widgetType?o.a.createElement(dt,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):"map"===f.widgetType?o.a.createElement(ut,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):"legend"===f.widgetType?o.a.createElement(pt,ft({},f,{toggleCollapse:r,dependencies:t,onDelete:c,onEdit:p})):o.a.createElement(st,ft({},f,{toggleCollapse:r,exportCSV:a,dependencies:t,exportImage:l,onDelete:c,onEdit:p}))}},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n.n(i),s=n("./node_modules/prop-types/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&!_.default.isAllowedSRS("EPSG:3857",w))return r.Observable.empty();m=Object(x.g)(l,"wms",{removeParams:b,catalogURL:"csw"===t&&n?n+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+l.identifier:n},g)}else if(h){m={};var O=Object(x.a)(h.SRS);if(h.SRS.length>0&&!_.default.isAllowedSRS("EPSG:3857",O))return r.Observable.empty();m=Object(x.g)(l,"wmts",{removeParams:b},g)}else{Object(x.c)(l).esri&&(m=Object(x.b)(l,g))}return l?m:o}))):r.Observable.empty()}))})).mergeMap((function(e){if(e){var t=e.filter((function(e){return Object(u.isString)(e)})).join(" "),n=[];return t&&(n=[Object(c.X)(t)]),n=[].concat(j(n),j(e.filter((function(e){return Object(u.isObject)(e)})).map((function(e){return Object(d.E)(e)})))),r.Observable.from(n)}return r.Observable.empty()})).catch((function(){return r.Observable.empty()}))},newCatalogServiceAdded:function(t,n){return t.ofType(c.d).switchMap((function(){var t=n.getState(),o=Object(y.j)(t);return r.Observable.of(o).switchMap((function(t){var n,o,i;return null!==(n=null===(o=e[t.type])||void 0===o||null===(i=o.validate)||void 0===i?void 0:i.call(o,t))&&void 0!==n?n:r.Observable.of(t)})).switchMap((function(t){var n,o,i;return null!==(n=null===(o=e[t.type])||void 0===o||null===(i=o.testService)||void 0===i?void 0:i.call(o,t))&&void 0!==n?n:r.Observable.of(t)})).switchMap((function(){return r.Observable.of(Object(c.C)(o),Object(p.j)({title:"notification.success",message:"catalog.notification.addCatalogService",autoDismiss:6,position:"tc"}))})).startWith(Object(c.Z)(!0)).catch((function(e){return r.Observable.of(Object(p.f)({exception:e,title:"notification.warning",message:e.notification||"catalog.notification.warningAddCatalogService",autoDismiss:6,position:"tc"}))})).concat(r.Observable.of(Object(c.Z)(!1)))}))},deleteCatalogServiceEpic:function(e,t){return e.ofType(c.q).switchMap((function(){var e=t.getState(),n=Object(y.s)(e),o=Object(y.v)(e),i=o[n]?Object(p.j)({title:"notification.warning",message:"catalog.notification.serviceDeletedCorrectly",autoDismiss:6,position:"tc"}):Object(p.f)({title:"notification.warning",message:"catalog.notification.impossibleDeleteService",autoDismiss:6,position:"tc"}),a=Object(c.R)(n);return o[n]?r.Observable.of(i,a):r.Observable.of(i)}))},openCatalogEpic:function(e){return e.ofType(f.c).filter((function(e){return"metadataexplorer"===e.control&&e.value})).switchMap((function(){return r.Observable.of(Object(h.fb)(),Object(m.Q)(),Object(m.L)())}))},getMetadataRecordById:function(t,n){return t.ofType(c.s).switchMap((function(t){var o=t.metadataOptions,a=void 0===o?{}:o,c=n.getState(),f=Object(w.j)(c);return r.Observable.defer((function(){return e.wms.getCapabilities(Object(O.getCapabilitiesUrl)(f))})).switchMap((function(t){var n=Object(u.get)(t,"capability.layer.layer",[]),o=1===n.length?n[0].metadataURL:Object(u.find)(n,(function(e){return e.name===f.name.split(":")[1]})),c=Object(u.get)(Object(u.find)(o,(function(e){return Object(u.isString)(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&("application/xml"===e.format||"text/xml"===e.format)})),"onlineResource.href"),h=Object(u.get)(Object(u.find)(o,(function(e){return Object(u.isString)(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&"text/html"===e.format})),"onlineResource.href"),m=Object(u.find)(Object(u.get)(a,"extractors",[]),(function(e){var t=e.properties,n=e.layersRegex,r=n?new RegExp(n):null;return Object(u.isObject)(t)&&(!n||r.test(f.name))})),g=h?{metadataUrl:h}:{},y=r.Observable.defer((function(){return e.csw.getRecordById(f.catalogURL)})).switchMap((function(e){return e&&e.error?r.Observable.of(Object(p.f)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),Object(d.Y)(g,!1)):e&&e.dc?r.Observable.of(Object(d.Y)(A(A({},g),e.dc),!1)):r.Observable.empty()})),b=r.Observable.defer((function(){return i.a.get(c)})).pluck("data").map((function(e){return(new l.DOMParser).parseFromString(e)})).map((function(e){var t=s.a.useNamespaces(a.xmlNamespaces||{});return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return Object(u.toPairs)(n).reduce((function(n,o){var i,a=S(o,2),s=a[0],l=a[1];if(Object(u.isObject)(l)&&Object(u.isString)(l.xpath)&&Object(u.isObject)(l.properties)&&Object(u.keys)(l.properties).length>0){0===(i=t(l.xpath,r).map((function(t){return e(l.properties,t)}))).length&&(i=null)}else{var c,d=t(l,r);if(1===d.length)i=null!==(c=Object(u.get)(d[0],"nodeValue"))&&void 0!==c?c:Object(u.get)(d[0],"childNodes[0].nodeValue");else d.length>1&&(i=d.map((function(e){return Object(u.get)(e,"childNodes[0].nodeValue")})).filter((function(e){return!!e})))}return A(A({},n),i?P({},s,i):{})}),{})}(m.properties,e)})).switchMap((function(e){return r.Observable.of(Object(d.Y)(A(A({},g),e),!1))}));return c&&m?b:f.catalogURL?y:r.Observable.of(Object(d.Y)(g,!1))})).startWith(Object(d.Y)({},!0)).catch((function(){return r.Observable.of(Object(p.f)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),Object(d.Y)({},!1))}))}))},autoSearchEpic:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,o=void 0===n?function(){}:n;return e.ofType(c.l).debounce((function(){var e=o(),t=Object(y.d)(e);return r.Observable.timer(t)})).switchMap((function(e){var t=e.text,n=o(),i=Object(y.l)(n),a=Object(y.q)(n),s=a.type,l=a.url;return r.Observable.of(Object(c.bb)({format:s,url:l,startPosition:1,maxRecords:i,text:t}))}))},catalogCloseEpic:function(e,t){return e.ofType(c.e).switchMap((function(){var e,n=t.getState(),o=Object(b.f)(n),i=Object(y.v)(n);return(e=r.Observable).of.apply(e,j([Object(f.f)("metadataexplorer","enabled",!1,"group",null),Object(c.I)("view"),Object(c.Y)()].concat("backgroundSelector"===o?[Object(c.K)(Object(u.head)(Object(u.keys)(i))),Object(g.p)(!0)]:[])))}))}}}},"./MapStore2/web/client/epics/measurement.js":function(e,t,n){"use strict";n.r(t),n.d(t,"addAnnotationFromMeasureEpic",(function(){return w})),n.d(t,"addAsLayerEpic",(function(){return x})),n.d(t,"openMeasureEpic",(function(){return _})),n.d(t,"closeMeasureEpics",(function(){return O})),n.d(t,"setMeasureStateFromAnnotationEpic",(function(){return S}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./node_modules/uuid/v1.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MeasurementUtils.js"),l=n("./MapStore2/web/client/actions/measurement.js"),u=n("./MapStore2/web/client/actions/layers.js"),c=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),d=n("./MapStore2/web/client/actions/controls.js"),p=n("./MapStore2/web/client/actions/featuregrid.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),h=n("./MapStore2/web/client/selectors/controls.js"),m=n("./MapStore2/web/client/selectors/measurement.js"),g=n("./MapStore2/web/client/actions/annotations.js");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o.a.Observable.defer((function(){return h.a[n?"updateStyle":"createStyle"]({baseUrl:t,code:r,format:a,styleName:s,languageVersion:u,options:c})})).switchMap((function(){var e;return Object(i.isArray)(d)&&(e=o.a.Observable).of.apply(e,[Object(f.x)()].concat(T(d)))||d})).catch((function(e){var t;return(t=o.a.Observable).of.apply(t,[Object(f.v)(l,e),Object(f.x)()].concat(T(p)))})).startWith(Object(f.y)(l))},R=function(e,t){return e.ofType(f.m).filter((function(){return!Object(S.n)(t.getState())})).switchMap((function(e){var n=t.getState(),r=Object(j.o)(n),a=!!Object(i.get)(r,"options.availableStyles");if(!e.enabled)return function(e){var t=Object(S.u)(e),n=Object(S.s)(e).baseUrl,r=void 0===n?"":n;return o.a.Observable.of(Object(f.z)(),Object(l.e)({owner:y.b})).merge(t?D({styleName:t,baseUrl:r}):o.a.Observable.empty())}(n);if(Object(S.e)(n)&&a)return o.a.Observable.empty();var u=e.layer||Object(j.j)(n);if(!u||u&&!u.url)return o.a.Observable.empty();var d=Object(p.findGeoServerName)(u);if(!d)return o.a.Observable.empty();var m=u.url.split(d),g="".concat(m[0]).concat(d),b=Object(S.s)(n);return o.a.Observable.defer((function(){return Object(C.c)({baseUrl:g,styleService:b})})).switchMap((function(e){var t,n=[Object(f.w)(e)];return(t=Object(c.b)(u).switchMap((function(e){var t=Object(p.formatCapabitiliesOptions)(e);if(!t.availableStyles)return o.a.Observable.of(Object(f.v)("availableStyles",{status:401}),Object(f.x)());return o.a.Observable.defer((function(){return h.a.getStylesInfo({baseUrl:g,styles:t&&t.availableStyles||[]})})).switchMap((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return o.a.Observable.of(Object(l.g)(u.id,y.b,"override",{}),Object(s.fb)({availableStyles:e}),Object(s.db)(u.id,"layer",P(P({},t),{},{availableStyles:e})),Object(f.x)())}(e)}))}))).startWith.apply(t,n).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)())}))})).startWith(Object(f.y)("global"))}))},L=function(e,t){return e.ofType(f.o).filter((function(e){return!!e.status})).switchMap((function(n){var r=t.getState(),i=Object(S.j)(r),a=i&&i.params||{},l=i&&!i.describeFeatureType&&Object(u.a)(i.url,i,{query:a}),c=Object(S.q)(r)||i.availableStyles&&i.availableStyles[0]&&i.availableStyles[0].name,d=Object(S.p)(r),p=Object(S.s)(r).baseUrl,h=void 0===p?"":p;return l&&function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};return(n=o.a.Observable).of.apply(n,[Object(f.y)("global")].concat(T(i))).merge(e.ofType(s.A).filter((function(){var e=Object(j.j)(t.getState());return r(e)})).switchMap((function(){var e=Object(j.j)(t.getState());return a(e)})).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)())})).takeUntil(e.ofType(f.g)))}(e,t,(function(e){return e&&e.describeLayer}),[l],(function(e){return o.a.Observable.concat(I({status:n.status,styleName:c,baseUrl:h}),o.a.Observable.of(Object(f.C)(!(e&&e.describeLayer&&401===e.describeLayer.error)),Object(f.E)({editorType:d.msEditorType||"textarea",styleJSON:d.msStyleJSON}),Object(f.x)()))}))||o.a.Observable.concat(I({status:n.status,styleName:c,baseUrl:h}),o.a.Observable.of(Object(f.E)({editorType:d.msEditorType||"textarea",styleJSON:d.msStyleJSON})))}))},F=function(e,t){return e.ofType(f.j,f.d).switchMap((function(e){var n=t.getState(),r=Object(S.u)(n),o=Object(S.j)(n),i=Object(y.h)(o.name).workspace,s=e.format&&e.format!==Object(S.g)(n),u=r||"".concat(i?"".concat(i,":"):"").concat(Object(y.f)()),c=e.format||Object(S.g)(n),d=Object(S.r)(n),p=Object(S.s)(n).baseUrl,h=void 0===p?"":p,m=Object(S.l)(n),g="sld"===c&&(e.code||"").match(/version=\"1\.1\.0\"/)&&{version:"1.1.0"}||e.format&&!e.languageVersion&&{version:"1.0.0"}||e.languageVersion||{version:"1.0.0"},b=m.version!==g.version?{params:{raw:!0}}:{},v=g,w=function(t){return N({update:!0,code:e.code,format:c,styleName:t,status:d,baseUrl:h,languageVersion:v,options:b},[Object(l.h)(y.b,[{style:t,_v_:Date.now(),singleTile:!0}]),Object(f.H)({temporaryId:t,templateId:e.templateId||"",code:e.code,format:c,init:e.init,languageVersion:v})],"edit"===d?[]:[Object(a.f)({title:"styleeditor.updateTmpErrorTitle",message:"styleeditor.updateTmpStyleErrorMessage",uid:"updateTmpStyleError",autoDismiss:5})])},x=("css"===c?"* { stroke: #888888; }":"sld"===c&&'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n')||"",_=function(e){return N({code:x,format:c,styleName:e,status:d,baseUrl:h},w(e),[Object(a.f)({title:"styleeditor.createTmpErrorTitle",message:"styleeditor.createTmpStyleErrorMessage",uid:"createTmpStyleError",autoDismiss:5}),Object(f.H)({temporaryId:null,templateId:"",code:"",format:"",init:"",languageVersion:null})])};return s&&r&&D({styleName:r,baseUrl:h,onSuccess$:_("".concat(i?"".concat(i,":"):"").concat(Object(y.f)())),onError$:w(u)})||r&&w(u)||_(u)}))},z=function(e,t){return e.ofType(f.b).switchMap((function(e){var n=t.getState(),r=Object(S.c)(n),u=Object(S.j)(n),c=Object(y.h)(u.name).workspace,d="".concat(c?"".concat(c,":"):"").concat(Object(y.e)(e.settings)),p=Object(S.g)(n),m=e.settings||{},g=m.title,b=void 0===g?"":g,v=m._abstract,w=void 0===v?"":v,x=Object(S.s)(n).baseUrl,_=void 0===x?"":x,j=P({title:b,description:w},{msStyleJSON:null,msEditorType:"visual"});return o.a.Observable.defer((function(){return h.a.createStyle({baseUrl:_,code:Object(i.template)(r)({styleTitle:b,styleAbstract:w}),format:p,styleName:d,metadata:j})})).switchMap((function(){return o.a.Observable.of(Object(l.h)(y.b,[{}]),Object(s.fb)({style:d||""},!0),Object(f.F)(""),Object(f.x)()).merge(function(e){var t=e.baseUrl,n=e.layer,r=e.styleName,a=e.format,l=e.title,u=e._abstract,c=e.metadata;return o.a.Observable.defer((function(){return O.updateAvailableStyles({baseUrl:t,layerName:n.name,styles:[{name:r}]})})).switchMap((function(){var e=P({filename:"".concat(r,".").concat(a),format:a,name:r,title:l,_abstract:u},c&&{metadata:c}),t=Object(i.head)(n.availableStyles),d=n.availableStyles&&[t,e].concat(T(n.availableStyles.filter((function(e,t){return t>0}))))||[e];return o.a.Observable.of(Object(s.fb)({availableStyles:d},!0),Object(f.x)())})).catch((function(){return o.a.Observable.of(Object(f.x)())})).startWith(Object(f.y)("global"))}({layer:u,styleName:d,format:p,title:b,_abstract:w,baseUrl:_,metadata:j}))})).catch((function(e){return o.a.Observable.of(Object(f.v)("",e),Object(f.x)(),Object(a.f)({title:"styleeditor.createStyleErrorTitle",message:"styleeditor.createStyleErrorMessage",uid:"createStyleError",autoDismiss:5}))})).startWith(Object(f.y)(""))}))},B=function(e,t){return e.ofType(f.p).switchMap((function(){var e=t.getState(),n=Object(S.g)(e),r=Object(S.l)(e),i=Object(S.c)(e),l=Object(S.q)(e),u=Object(S.u)(e),c=Object(S.j)(e),d=Object(S.s)(e).baseUrl,p=void 0===d?"":d,m=Object(S.d)(e)||{},g={msStyleJSON:m.styleJSON||null,msEditorType:m.editorType},y=(c.availableStyles||[]).map((function(e){return e.name===l?P(P({},e),{},{metadata:P(P({},e.metadata),g)}):e}));return o.a.Observable.defer((function(){return h.a.updateStyle({baseUrl:p,code:i,format:n,styleName:l,languageVersion:r,options:{params:{raw:!0}},metadata:g})})).switchMap((function(){return o.a.Observable.of(Object(f.x)(),Object(s.db)(c.id,"layer",{_v_:Date.now(),availableStyles:y}),Object(s.fb)({availableStyles:y}),Object(f.H)({temporaryId:u,templateId:"",code:i,format:n,init:!0,languageVersion:r}),Object(a.j)({title:"styleeditor.savedStyleTitle",message:"styleeditor.savedStyleMessage",uid:"savedStyleTitle",autoDismiss:5}))})).catch((function(e){return o.a.Observable.of(Object(f.v)("global",e),Object(f.x)(),Object(a.f)({title:"styleeditor.updateStyleErrorTitle",message:"styleeditor.updateStyleErrorMessage",uid:"updateStyleError",autoDismiss:5}))})).startWith(Object(f.y)("global"))}))},q=function(e,t){return e.ofType(f.c).filter((function(e){return!!e.styleName})).switchMap((function(e){var n=e.styleName,r=t.getState(),i=Object(S.j)(r),l=Object(S.s)(r).baseUrl,u=void 0===l?"":l,c=Object(E.f)(r),p=Object(E.d)(r);return o.a.Observable.defer((function(){return O.removeStyles({baseUrl:u,layerName:i.name,styles:[{name:n}]})})).switchMap((function(){var e=i.availableStyles&&i.availableStyles.filter((function(e){return e.name!==n}))||[];return o.a.Observable.concat(o.a.Observable.of(Object(s.fb)({style:"",availableStyles:e},!0),Object(f.x)(),Object(d.g)("layersettings","originalSettings",P(P({},c),{},{style:""})),Object(d.g)("layersettings","initialSettings",P(P({},p),{},{style:""}))),D({styleName:n,baseUrl:u,onSuccess$:o.a.Observable.of(Object(a.j)({title:"styleeditor.deletedStyleSuccessTitle",message:"styleeditor.deletedStyleSuccessMessage",uid:"deletedStyleSuccess",autoDismiss:5})),onError$:o.a.Observable.of(Object(a.f)({title:"styleeditor.deletedStyleErrorTitle",message:"styleeditor.deletedStyleErrorMessage",uid:"deletedStyleError",autoDismiss:5}))}))})).catch((function(){return o.a.Observable.of(Object(f.x)())})).startWith((function(){return o.a.Observable.of(Object(f.y)("global"))}))}))},U=function(e,t){return e.ofType(f.k).switchMap((function(){var e=t.getState(),n=Object(S.s)(e).baseUrl,r=void 0===n?"":n,i=Object(S.j)(e),l=Object(S.q)(e);return o.a.Observable.defer((function(){return O.updateDefaultStyle({baseUrl:r,layerName:i.name,styleName:l})})).switchMap((function(){var e=i.availableStyles.filter((function(e){var t=e.name;return l===t})),t=i.availableStyles.filter((function(e){var t=e.name;return l!==t})),n=[].concat(T(e),T(t));return o.a.Observable.of(Object(s.fb)({availableStyles:n},!0),Object(a.j)({title:"styleeditor.setDefaultStyleSuccessTitle",message:"styleeditor.setDefaultStyleSuccessMessage",uid:"setDefaultStyleSuccess",autoDismiss:5}),Object(f.x)())})).startWith(Object(f.y)("global")).catch((function(){return o.a.Observable.of(Object(a.f)({title:"styleeditor.setDefaultStyleErrorTitle",message:"styleeditor.setDefaultStyleErrorMessage",uid:"setDefaultStyleError",autoDismiss:5}),Object(f.x)())}))}))};t.default={toggleStyleEditorEpic:R,updateLayerOnStatusChangeEpic:L,updateTemporaryStyleEpic:F,createStyleEpic:z,updateStyleCodeEpic:B,deleteStyleEpic:q,setDefaultStyleEpic:U}},"./MapStore2/web/client/epics/timeline.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setTimelineCurrentTime",(function(){return A})),n.d(t,"setupTimelineExistingSettings",(function(){return P})),n.d(t,"settingInitialOffsetValue",(function(){return M})),n.d(t,"updateRangeDataOnRangeChange",(function(){return I}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/moment/moment.js"),s=n.n(a),l=n("./MapStore2/web/client/observables/epics.js"),u=n("./MapStore2/web/client/actions/map.js"),c=n("./MapStore2/web/client/actions/timeline.js"),d=n("./MapStore2/web/client/actions/dimension.js"),p=n("./MapStore2/web/client/actions/layers.js"),f=n("./MapStore2/web/client/actions/notifications.js"),h=n("./MapStore2/web/client/selectors/layers.js"),m=n("./MapStore2/web/client/selectors/timeline.js"),g=n("./MapStore2/web/client/selectors/dimension.js"),y=n("./MapStore2/web/client/utils/TimeUtils.js"),b=n("./MapStore2/web/client/api/MultiDim.js");function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||x(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 w(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||x(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 x(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.n)(e),r=Object(m.m)(e),o=Object(m.p)(e),i=Object(m.i)(n)(e);return[o,r,"time",S({limit:1},t),i]},C=function(e,t,n){if(Object(m.m)(e))return o.a.Observable.forkJoin(b.b.apply(void 0,w(E(e,{sort:"asc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return v(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)})),b.b.apply(void 0,w(E(e,{sort:"desc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return v(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)}))).map((function(e){return Object(y.d)(e.filter((function(e){return!!e})),n)||n}));var r=Object(g.e)(Object(h.g)(e,t))(e);return o.a.Observable.of(Object(y.d)(r,n)||n)},T=function(e){return Object(i.isString)(e)?e:e.toISOString()},k=function(e,t,n){var r=t.domain.split("--"),a=Object(m.j)(n())||{start:new Date(r[0]),end:new Date(r[1])},s=Object(y.j)(a,20),l=s.range,u=s.resolution,c=Object(h.g)(n(),e).name,d=j({},"time","".concat(T(l.start),"/").concat(T(l.end)));return Object(b.c)(t.source.url,c,"time",j({},"time","".concat(T(l.start),"/").concat(T(l.end))),u,Object(m.i)(e)(n())).merge(Object(b.a)(t.source.url,c,d,S(S({},Object(m.i)(e)(n())),{},{expandLimit:20}))).scan((function(e,t){return S(S({},e),t)}),{}).switchMap((function(e){var t,n=e.Histogram,r=e.Domains,a=Object(i.get)(Object(i.head)(Object(i.castArray)(Object(i.get)(r,"DimensionDomain")||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Identifier;return"time"===t}))),"Domain");try{t=n&&n.Values&&n.Values.split(",").map((function(e){return parseInt(e,10)}))||[]}catch(e){t=[]}var s=a&&a.indexOf("--")<0&&a.split(",");return o.a.Observable.of({range:l,histogram:n&&n.Domain?{values:t,domain:n.Domain}:void 0,domain:a?{values:s}:void 0})}))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.g).throttleTime(100).switchMap((function(e){var t=e.time,n=e.group,i=r();return n?C(i,n,t).switchMap((function(e){var t=Object(m.j)(i)||{},n=t.start,r=t.end,a=[];if(n&&r&&(s()(e).isBefore(n)||s()(e).isAfter(r))){var l=s()(r).diff(n);a=[Object(c.l)({start:s()(e).subtract(l/2),end:s()(e).add(l/2)})]}return o.a.Observable.from([].concat(w(a),[Object(d.g)(e)]))})).let(Object(l.a)(Object(c.r)(!1,!0),Object(c.r)(!1,!1))):o.a.Observable.of(Object(d.g)(t))}))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(p.t,c.a).exhaustMap((function(){return Object(m.c)(r())&&Object(i.get)(Object(m.q)(r()),"[0].id")&&!Object(m.n)(r())?o.a.Observable.of(Object(c.n)(Object(i.get)(Object(m.q)(r()),"[0].id"))).concat(o.a.Observable.of(1).switchMap((function(){return C(r(),Object(i.get)(Object(m.q)(r()),"[0].id"),Object(g.a)(r)||(new Date).toISOString()).filter((function(e){return e})).map((function(e){return Object(d.g)(e)}))}))):o.a.Observable.empty()}))},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.b).switchMap((function(e){var t=r(),n=Object(g.a)(t),i=Object(m.j)(t);if(e.enabled){var a=i||{},l=a.start,u=void 0===l?0:l,p=a.end,f=void 0===p?432e6:p,h=Object(g.h)(t),y=s()(f).diff(u),b=i?s()(u).add(y/2).toISOString():s()(new Date).toISOString(),v=s()(n||b).add(y/5),w=e.enabled&&!n?o.a.Observable.of(Object(d.g)(b)):o.a.Observable.empty(),x=e.enabled&&!h||e.enabled&&s()(h).diff(n)<0?o.a.Observable.of(Object(d.f)(v.toISOString())):o.a.Observable.empty(),_=i?o.a.Observable.empty():o.a.Observable.of(Object(c.l)({start:s()(b).add(-1*y/2),end:s()(b).add(y/2)}));return w.concat(x).concat(_)}return o.a.Observable.of(Object(d.f)())}))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.d).merge(e.ofType(u.e).filter((function(){return Object(m.e)(r())})),e.ofType(c.i)).debounceTime(400).merge(e.ofType(d.d).debounceTime(50)).switchMap((function(){var e,t=Object(g.i)(r())||{},n=Object.keys(t).filter((function(e){return t[e]&&t[e].domain&&Object(y.i)(t[e].domain)||Object(m.e)(r())}));return(e=o.a.Observable).merge.apply(e,w(n.map((function(e){return k(e,t[e],r).map((function(t){var n=t.range,r=t.histogram,o=t.domain;return Object(c.m)(e,n,r,o)})).startWith(Object(c.r)(e,!0)).catch((function(){return o.a.Observable.of(Object(f.f)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"}))})).concat(o.a.Observable.of(Object(c.r)(e,!1)))}))))}))};t.default={setTimelineCurrentTime:A,setupTimelineExistingSettings:P,settingInitialOffsetValue:M,updateRangeDataOnRangeChange:I}},"./MapStore2/web/client/epics/widgets.js":function(e,t,n){"use strict";n.r(t),n.d(t,"exportWidgetData",(function(){return T})),n.d(t,"alignDependenciesToWidgets",(function(){return k})),n.d(t,"toggleWidgetConnectFlow",(function(){return A})),n.d(t,"clearWidgetsOnLocationChange",(function(){return P})),n.d(t,"exportWidgetImage",(function(){return M})),n.d(t,"updateLayerOnLayerPropertiesChange",(function(){return I})),n.d(t,"updateLayerOnLoadingErrorChange",(function(){return D}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/widgets.js"),s=n("./MapStore2/web/client/actions/config.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),u=n("./MapStore2/web/client/actions/layers.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/router.js"),p=n("./MapStore2/web/client/actions/maps.js"),f=n("./MapStore2/web/client/actions/dashboard.js"),h=n("./node_modules/connected-react-router/esm/actions.js"),m=n("./node_modules/file-saver/FileSaver.js"),g=n("./MapStore2/web/client/utils/FileUtils.js"),y=n("./node_modules/json-2-csv/lib/converter.js"),b=n.n(y),v=n("./node_modules/canvg-browser/index.js"),w=n.n(v);function x(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t===h.b}))},C=function(e,t,n,r){return o.a.Observable.of(Object(a.O)("mapSync",e),Object(a.O)("dependenciesMap",function(e,t,n){var r,o=n.dependenciesMap,s=n.mappings,l=["layer","filter","quickFilters","options"],u=["layers","viewport","zoom","center"],c=(a.A.exec(t)||[])[1],d=Object(i.omitBy)(o,(function(e){return-1===e.indexOf(c)})),p=Object.keys(s).filter((function(e){return void 0!==s[e]})).reduce((function(e,n){return!Object(i.endsWith)(t,"map")&&Object(i.includes)(l,n)?S(S({},e),{},j({},n,"".concat(t,".").concat(s[n]))):Object(i.endsWith)(t,"map")?Object(i.includes)(u,n)?S(S({},e),{},j({},n,"map"===t?s[n]:"".concat(t,".").concat(s[n]))):S(S({},e),{},j({},n,"".concat(t.replace(".map",""),".").concat(s[n]))):e}),{});return e?S(S(S({},d),p),{},(j(r={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),j(r,"mapSync","".concat(t.replace(".map",""),".mapSync")),r)):Object(i.omit)(d,[Object.keys(s)])}(e,t,n)))},T=function(e){return e.ofType(a.k).do((function(e){var t=e.data,n=void 0===t?[]:t,r=e.title,o=void 0===r?"data":r;return b.a.json2csv(n,(function(e,t){return e?null:Object(m.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(s.d,f.a,a.m).map((function(){return Object(l.b)(r())})).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 Object(i.isEqual)(x(e),x(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(a.N)(e.reduce((function(e,t){var n,r,o=t.replace(".map","");return Object(i.endsWith)(t,"map")?S(S({},e),{},(j(n={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),j(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),j(n,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),j(n,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),j(n,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),j(n,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),n)):S(S({},e),{},(j(r={},"".concat(t,".filter"),"".concat(t,".filter")),j(r,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),j(r,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),j(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),j(r,"".concat(t,".layer"),"".concat(t,".layer")),j(r,"".concat(t,".options"),"".concat(t,".options")),r))}),{}))}))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.v).switchMap((function(t){var n=t.active,s=t.availableDependencies,u=void 0===s?[]:s,c=t.options;return n&&u.length>0?1===u.length?C(n,u[0],c):o.a.Observable.of(Object(a.U)(n,{availableDependencies:u})).merge(e.ofType(a.B).filter((function(){return Object(l.q)(r())})).switchMap((function(e){var t=e.widget,s=Object(i.get)(Object(l.f)(r()),"availableDependencies").filter((function(e){return(a.A.exec(e)||[])[1]===t.id}));return C(n,s[0],c,t.dependeciesMap).concat(o.a.Observable.of(Object(a.U)(!1,{})))})).takeUntil(e.ofType(h.b).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.key;return t===a.i&&n===a.f}))))):C(n,u[0],c)}))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(s.d).switchMap((function(){var t=Object(d.a)(r()).split("/"),n=t[t.length-1];return e.let(E).filter((function(){var e=Object(d.a)(r()).split("/");return e[e.length-1]!==n})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.payload,n=void 0===t?{}:t;return n&&n.location&&n.location.pathname?o.a.Observable.of(Object(a.E)()):o.a.Observable.empty()}))}))},M=function(e){return e.ofType(a.l).do((function(e){var t,n,r=e.widgetDivId,o=e.title,i=void 0===o?"data":o,a=document.createElement("canvas"),s=document.querySelector("#".concat(r," .recharts-wrapper svg")),l=s.outerHTML?s.outerHTML:(t=s,(n=document.createElement("div")).appendChild(t.cloneNode(!0)),n.innerHTML);w()(a,l,{renderCallback:function(){var e=a.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,a.width,a.height),Object(g.b)(a.toDataURL("image/jpeg",1),"".concat(i,".jpg"),"image/jpeg")}})})).filter((function(){return!1}))},I=function(e,t){return e.ofType(u.f).switchMap((function(e){var n,r=e.layer,s=e.newProperties,l=t.getState(),u=Object(c.g)(l,r);return(n=o.a.Observable).of.apply(n,x(Object(i.has)(s,"layerFilter")&&u?[Object(a.X)(u)]:[]))}))},D=function(e,t){return e.ofType(u.o,u.n).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var n,r=e.layerId,i=t.getState(),s=Object(c.g)(i,r);return(n=o.a.Observable).of.apply(n,x(s&&s.previousLoadingError!==s.loadingError?[Object(a.X)(s)]:[]))}))})).mergeAll()};t.default={exportWidgetData:T,alignDependenciesToWidgets:k,toggleWidgetConnectFlow:A,clearWidgetsOnLocationChange:P,exportWidgetImage:M,updateLayerOnLayerPropertiesChange:I,updateLayerOnLoadingErrorChange:D}},"./MapStore2/web/client/observables/autocomplete.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./node_modules/rxjs/Rx.js"),u=n.n(l),c=n("./MapStore2/web/client/api/searchText.js"),d=n("./MapStore2/web/client/libs/ajax.js"),p=n.n(d),f=n("./MapStore2/web/client/utils/ogc/WPS/autocomplete.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t=e.searchText,n=void 0===t?"":t,r=e.queriableAttributes,o=void 0===r?[]:r,a=e.predicate,s=void 0===a?"ILIKE":a,l=Object(i.head)(o),u=n.toLowerCase(),c="strToLowerCase(".concat(l,") ").concat(s," '%").concat(u,"%'");return Object(i.isNil)(l)?"":"("+c+")"},y=function(e){return e.distinctUntilChanged((function(e){var t=e.value,n=e.currentPage,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(r.value!==t||r.currentPage!==n)})).throttle((function(e){return u.a.Observable.timer(e.delayDebounce||0)})).merge(e.debounce((function(e){return u.a.Observable.timer(e.delayDebounce||0)}))).distinctUntilChanged().switchMap((function(e){if(e.performFetch){var t=Object(f.getWpsPayload)({attribute:e.attribute,layerName:e.typeName,maxFeatures:e.maxFeatures,startIndex:(e.currentPage-1)*e.maxFeatures,value:e.value});return u.a.Observable.fromPromise(p.a.post(e.url,t,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return{fetchedData:e.data,busy:!1}}))).catch((function(){return u.a.Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({busy:!0})}return u.a.Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({})},b=function(e){return u.a.Observable.merge(e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.value;return t===r})).debounce((function(e){return u.a.Observable.timer(e.delayDebounce||0)})),e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterProps,n=e.currentPage,r=arguments.length>1?arguments[1]:void 0,o=r.filterProps,i=r.currentPage;return t===o&&n===i}))).switchMap((function(e){if(e.performFetch){var t=o.a.parse(e.url,!0),n="";(Object(i.endsWith)(t.pathname,"wfs")||Object(i.endsWith)(t.pathname,"wms")||Object(i.endsWith)(t.pathname,"ows")||Object(i.endsWith)(t.pathname,"wps"))&&(n=t.pathname.replace(/(wms|ows|wps|wfs)$/,"wfs")),t.query&&t.query.service&&delete t.query.service;var r=o.a.format(s()({},t,{search:null,pathname:n})),a=s()({},function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,a(t))},u=function(e,t,n){return function(o){return(n?l(o,Object(r.castArray)(e)).catch(n):l(o,Object(r.castArray)(e))).concat(i.a.Observable.from(Object(r.castArray)(t)))}}},"./MapStore2/web/client/observables/wfs.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return I}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/rxjs/Rx.js"),s=n.n(a),l=n("./node_modules/xml2js/lib/xml2js.js"),u=n("./node_modules/xml2js/lib/processors.js"),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),p=n("./MapStore2/web/client/utils/FilterUtils.js"),f=n("./MapStore2/web/client/utils/LayersUtils.js"),h=n("./MapStore2/web/client/utils/ObservableUtils.js"),m=n("./MapStore2/web/client/utils/ogc/WFS/RequestBuilder.js");function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.totalFeatures,n=e.features,r=v(e,["totalFeatures","features"]),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.startIndex,a=arguments.length>2?arguments[2]:void 0;return a>t&&a===i+n.length&&t===n.length?x(x({},r),{},{features:n,totalFeatures:a}):x(x({},r),{},{features:n,totalFeatures:t})},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.pagination||!Object(i.isNil)(t.startIndex)&&!Object(i.isNil)(t.maxFeatures)&&{startIndex:t.startIndex,maxFeatures:t.maxFeatures}},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(p.getWFSFilterData)(t,n),a=o.a.parse(e,!0),l=Object(i.isObject)(a.query)?a.query:{};l.service="WFS",l.outputFormat="json";var u=o.a.format({protocol:a.protocol,host:a.host,pathname:a.pathname,query:l});return s.a.Observable.defer((function(){return d.a.post(u,r,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/json"}})})).let(h.b).map((function(e){return T(e.data,k(t,n),n.totalFeatures)}))},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.search,n=void 0===t?{}:t,r=e.url,o=e.name,a=arguments.length>1?arguments[1]:void 0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.sortOptions,u=s.propertyName,c=v(s,["sortOptions","propertyName"]);return A(n.url||r,a&&"object"===b(a)?x(x({},a),{},{typeName:o||a.typeName}):S(j(o,[].concat(g(l?[E(l.sortBy,l.sortOrder)]:[]),g(u?[C(u)]:[]),g(a?Object(i.castArray)(a):[]))),c),c).catch((function(e){if("OGCError"===e.name&&"NoApplicableCode"===e.code&&!l&&u&&u[0])return A(n.url||r,a&&"object"===b(a)?x(x({},a),{},{typeName:o||a.typeName}):S(j(o,[E(u[0])].concat(g(u?[C(u)]:[]),g(a?Object(i.castArray)(a):[]))),c),c);throw e}))},M=function(e){var t=e.layer;return s.a.Observable.defer((function(){return d.a.get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=e.describeFeatureTypeURL,s=o.a.parse(a||r.url||i,!0);return o.a.format(x(x({},s),{},{search:void 0,query:x(x({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))}(t))})).let(h.b)},I=function(e){var t=e.layer;return s.a.Observable.defer((function(){return d.a.get(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=Object(f.getCapabilitiesUrl)({name:t,url:r&&r.url||i}),s=o.a.parse(a,!0);return o.a.format(x(x({},s),{},{search:void 0,query:x(x({},s.query),{},{service:"WFS",version:"1.1.1",request:"GetCapabilities"})}))}(t))})).let(h.b).switchMap((function(e){return s.a.Observable.bindNodeCallback((function(e,t){return Object(l.parseString)(e,{tagNameProcessors:[u.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data)}))}},"./MapStore2/web/client/observables/wms.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),a=n.n(i),s=n("./node_modules/rxjs/Rx.js"),l=n("./MapStore2/web/client/api/WMS.js"),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=o.a.parse(r.url||i,!0);return o.a.format(m(m({},a),{},{search:void 0,query:m(m({},a.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(p.b)},b=function(e){return s.Observable.defer((function(){return l.a.getCapabilities(Object(d.getCapabilitiesUrl)(e))})).let(p.b).map((function(t){return l.a.parseLayerCapabilities(t,e)}))},v=function(e){return y(e).map((function(e){var t=e.data,n=void 0===t?{}:t;return n&&n.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.owsURL;return m(m({},e),{},{params:{},search:n?{type:"wfs",url:Object(f.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/observables/wps/aggregate.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/observables/wps/common.js"),i=n("./MapStore2/web/client/observables/wps/execute.js");function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')+'').concat(p,"");return Object(i.b)("gs:Aggregate",[Object(o.h)("features",Object(o.i)("text/xml","http://geoserver/wfs","POST",f)),Object(o.h)("aggregationAttribute",Object(o.f)(Object(o.e)(n)))].concat(a(Object(r.castArray)(u).map((function(e){return Object(o.h)("function",Object(o.f)(Object(o.e)(e)))}))),[Object(o.h)("singlePass",Object(o.f)(Object(o.e)("false")))],a(Object(r.castArray)(l).map((function(e){return Object(o.h)("groupByAttributes",Object(o.f)(Object(o.e)(e)))})))),Object(o.l)(Object(o.j)("result","application/json")))};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(i.a)(e,l(t),{},n)}},"./MapStore2/web/client/observables/wps/common.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"m",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return x}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t"+"".concat(e,"")+t+""},c=function(e){return"".concat(e,"")},d=function(e,t,n,r){return'")+("POST"===n?"".concat(r,""):"")},p=function(e){return"".concat(e,"")},f=function(e,t,n){return"").concat(e,"")},h=function(e){return"")},m=function(e){return"".concat(e,"")},g=function(e,t){return"")+"".concat(e,"")+""},y=function(e,t,n){return"")+n+""},b=function(e,t,n,r,o){return"")+"".concat(n,"")+(r?"".concat(r,""):"")+(o?"".concat(o,""):"")+""},v=function(e){return u("writeParameters",c(f("".concat(e,""))))},w=function(e,t){return'').concat(t,"")},x=function(e,t){if(e){var n=o.a.parse(e,!0),r=n.pathname;return(Object(i.endsWith)(n.pathname,"wfs")||Object(i.endsWith)(n.pathname,"wms"))&&(r=n.pathname.replace(/(wms|ows|wfs|wps)$/,"wps")),o.a.format(s(s({},n),{},{search:null,pathname:r,query:s(s({service:"WPS"},t),n.query)}))}return e}},"./MapStore2/web/client/observables/wps/execute.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"e",(function(){return k})),n.d(t,"a",(function(){return P}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./node_modules/xml2js/lib/xml2js.js"),a=n("./node_modules/xml2js/lib/processors.js"),s=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(s),u=n("./MapStore2/web/client/observables/wps/common.js");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 d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'+"".concat(e,"")+""+(t||[]).join("")+""+(n||"")+""},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.Observable.defer((function(){return l.a.get(Object(u.d)(e,{version:"1.0.0",REQUEST:"GetExecutionStatus",executionId:t}),h({headers:{Accept:"application/xml"}},n))}))},j=function(e,t){var n,o,i=function(e){var t,n,o,i,a,s,l,u,c,d,p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.identity,h=null==e||null===(t=e.ExecuteResponse)||void 0===t||null===(n=t.Status)||void 0===n?void 0:n[0];return null!=h&&h.ProcessAccepted?{status:"ProcessAccepted"}:null!=h&&h.ProcessStarted?{status:"ProcessStarted"}:null!=h&&h.ProcessSucceeded?{status:"ProcessSucceeded",data:f(null===(o=e.ExecuteResponse.ProcessOutputs)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.Output)}:null!=h&&h.ProcessFailed?{status:"ProcessFailed",exceptionReport:null==h||null===(a=h.ProcessFailed)||void 0===a||null===(s=a[0])||void 0===s||null===(l=s.ExceptionReport)||void 0===l||null===(u=l[0])||void 0===u||null===(c=u.Exception)||void 0===c||null===(d=c[0])||void 0===d||null===(p=d.ExceptionText)||void 0===p?void 0:p[0]}:null!=h&&h.ProcessPaused?{status:"ProcessPaused"}:{status:"UnexpectedStatus"}}(e,t);if("ProcessFailed"===i.status)throw new _(i.exceptionReport,"ProcessFailed");if("UnexpectedStatus"===i.status)throw new _("UnexpectedProcessStatus");if("ProcessSucceeded"===i.status)return{succeeded:!0,data:i.data};var a=null==e||null===(n=e.ExecuteResponse)||void 0===n||null===(o=n.$)||void 0===o?void 0:o.statusLocation;if(!a)throw new _("NoStatusLocation");var s=a.indexOf("executionId=");if(-1===s)throw new _("NoExecutionId");var l=a.slice(s+12),u=l.indexOf("&");return{succeeded:!1,executionId:-1===u?l:l.slice(0,u)}},E=function(e){var t,n;return null!=e&&null!==(t=e.Identifier)&&void 0!==t&&t[0]?{identifier:null==e||null===(n=e.Identifier)||void 0===n?void 0:n[0]}:null},C=function(e){var t,n,r,o,i;return null!=e&&null!==(t=e.Data)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.LiteralData?{data:null==e||null===(r=e.Data)||void 0===r||null===(o=r[0])||void 0===o||null===(i=o.LiteralData)||void 0===i?void 0:i[0]}:null},T=function(e){var t,n,r,o,i,a;return null!=e&&e.Reference?{href:null==e||null===(t=e.Reference)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.$)||void 0===r?void 0:r.href,mimeType:null==e||null===(o=e.Reference)||void 0===o||null===(i=o[0])||void 0===i||null===(a=i.$)||void 0===a?void 0:a.mimeType}:null},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return[E].concat(d(t||[])).map((function(t){return t(e)})).reduce((function(e,t){return t?h(h({},e),t):e}),{})}))}},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.Observable.defer((function(){return l.a.post(Object(u.d)(e,{version:"1.0.0",REQUEST:"Execute"}),t,h({headers:{"Content-Type":"application/xml"}},n))}))},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=n.executeStatusUpdateInterval,l=void 0===s?2e3:s,u=n.outputsExtractor,c=function(e){return o.Observable.defer((function(){return new Promise((function(t,n){return Object(i.parseString)(e,{tagNameProcessors:[a.stripPrefix]},(function(e,r){return e?n(e):t(r)}))}))}))};return A(e,t,r).catch((function(){throw new _("ExecuteProcessXHRFailed")})).switchMap((function(e){return"application/xml"===e.headers["content-type"]||"text/xml"===e.headers["content-type"]?c(e.data).map((function(t){return{data:t,type:"application/xml",originalData:e.data}})):o.Observable.of({data:e.data,type:e.headers["content-type"]})})).flatMap((function(t){var n=t.data,r=t.type,i=t.originalData;if("application/xml"!==r)return o.Observable.of(n);if(null==n||!n.ExecuteResponse)return o.Observable.of(i);var a=j(n,u),s=a.succeeded,d=a.data,p=a.executionId;if(s)return o.Observable.of(d);var f=o.Observable.interval(l).take(1).flatMap((function(){return S(e,p).catch((function(){throw new _("GetExecutionStatusXHRFailed")})).flatMap((function(e){return c(e.data).flatMap((function(e){var t=j(e,u);return t.succeeded?o.Observable.of(t.data):f}))}))}));return f}))}},"./MapStore2/web/client/plugins/BackgroundSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/controls.js"),s=n("./MapStore2/web/client/actions/layers.js"),l=n("./MapStore2/web/client/actions/backgroundselector.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./MapStore2/web/client/selectors/backgroundselector.js"),f=n("./MapStore2/web/client/selectors/maplayout.js"),h=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js"),m=n("./MapStore2/web/client/utils/PluginsUtils.js"),g=n("./MapStore2/web/client/reducers/controls.js"),y=n("./MapStore2/web/client/actions/catalog.js"),b=n("./node_modules/object-assign/index.js"),v=n.n(b);var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.a:return v()({},e,{source:t.source});case y.v:return v()({},e,{source:"metadataExplorer"});case l.k:return v()({},e,{modalParams:t.modalParams});case l.d:return v()({},e,{backgrounds:[],removedBackgroundsThumbIds:[],modalParams:{},lastRemovedId:void 0});case l.m:if(t.id){var n=e.backgrounds||[],r=-1===n.findIndex((function(e){return e.id===t.id})),o=r?n.concat({id:t.id}):n,i=o.map((function(e){return e.id===t.id?v()({},e,{id:t.id,thumbnail:t.thumbnailData}):v()({},e)}));return v()({},e,{backgrounds:i})}return e;case l.g:return v()({},e,{modalParams:void 0});case l.j:var a=e.backgrounds||[],s=e.removedBackgroundsThumbIds||[],u=a.filter((function(e){return e.id!==t.backgroundId})),c=a.filter((function(e){return e.id===t.backgroundId&&!!e.thumbId})).map((function(e){return e.thumbId}));return v()({},e,{backgrounds:u,removedBackgroundsThumbIds:s.concat(c),lastRemovedId:t.backgroundId});case l.i:return v()({},e,{backgrounds:t.backgrounds});case l.h:return v()({},e,{confirmDeleteBackgroundModal:{show:t.show,layerTitle:t.layerTitle,layerId:t.layerId}});case l.c:return v()({},e,{allowDeletion:t.allow||!1});default:return e}},x=n("./node_modules/rxjs/Rx.js"),_=n.n(x),O=n("./MapStore2/web/client/actions/config.js"),S=n("./MapStore2/web/client/observables/wms.js"),j=n("./MapStore2/web/client/utils/LayersUtils.js");function E(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?I.a.createElement(L.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:this.props.showAdd?[{glyph:"plus",tooltipId:"backgroundSelector.addTooltip",onClick:function(){return e.props.onAdd()}}]:[]}):null)}}])&&B(t.prototype,n),r&&B(t,r),i}(I.a.Component);V(W,"propTypes",{src:R.a.string,side:R.a.number,frame:R.a.number,margin:R.a.number,labelHeight:R.a.number,label:R.a.string,showLabel:R.a.bool,onToggle:R.a.func,onAdd:R.a.func,showAdd:R.a.bool}),V(W,"defaultProps",{src:"./images/mapthumbs/none.jpg",side:50,frame:4,margin:5,labelHeight:29,label:"",showLabel:!0,onToggle:function(){},onAdd:function(){}});var Y=W,K=n("./node_modules/react-bootstrap/es/index.js");function X(e){return(X="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 Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n-1,n="wmts"===this.props.layer.type&&Object(i.has)(this.props.layer.allowedSRS,this.props.projection),r=this.props.vertical?"background-preview-icon-container-vertical":"background-preview-icon-container-horizontal",o=this.props.layer.visibility?" bg-primary":" bg-body",a=(t||n||Object(i.includes)(["wms","empty","osm"],this.props.layer.type))&&!this.props.layer.invalid,s=a?function(){e.props.onToggle(),e.props.onPropertiesChange(e.props.layer.id,{visibility:!0}),e.props.setCurrentBackgroundLayer(e.props.layer.id)}:function(){};return I.a.createElement("div",{className:r+o+(a?"":" disabled-icon"),style:{padding:this.props.frame/2,marginLeft:this.props.vertical?this.props.margin:0,marginRight:this.props.vertical?0:this.props.margin,marginBottom:this.props.margin,width:this.props.side+this.props.frame,height:this.props.side+this.props.frame}},I.a.createElement("div",{className:"background-preview-icon-frame",style:{width:this.props.side,height:this.props.side}},I.a.createElement("img",{onMouseOver:function(){e.props.onLayerChange("tempLayer",e.props.layer)},onMouseOut:function(){e.props.onLayerChange("tempLayer",e.props.currentLayer)},onClick:s,src:this.props.src})))}}])&&ye(t.prototype,n),r&&ye(t,r),a}(I.a.Component);_e(Oe,"propTypes",{side:R.a.number,frame:R.a.number,margin:R.a.number,src:R.a.string,vertical:R.a.bool,layer:R.a.object,currentLayer:R.a.object,onPropertiesChange:R.a.func,onToggle:R.a.func,onLayerChange:R.a.func,setCurrentBackgroundLayer:R.a.func,projection:R.a.string}),_e(Oe,"defaultProps",{side:50,frame:4,margin:5,src:"",vertical:!1,layer:{},currentLayer:{},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){}});var Se=Oe,je=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),Ee=n("./node_modules/react-select/dist/react-select.es.js"),Ce=n("./node_modules/uuid/v1.js"),Te=n.n(Ce),ke=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),Ae=n("./MapStore2/web/client/components/misc/Button.jsx"),Pe=n("./MapStore2/web/client/utils/ResourceUtils.js"),Me=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Ie(e){return(Ie="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 De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var n=0;n0){var r=n[0],o=new FileReader;return o.onload=function(e){return t(e.target.result,r.size)},o.readAsDataURL(r)}return t(null)})),qe(ze(e),"getThumbnailDataUri",(function(t){e.getDataUri(e.files,t)})),qe(ze(e),"generateUUID",(function(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))})),qe(ze(e),"processUpdateThumbnail",(function(t,n,r){var o=e.generateUUID();!e.props.map||r||!e.props.map.thumbnail||e.refs.imgThumbnail||n||e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!0),e.props.map&&!r&&e.props.map.newThumbnail&&!e.refs.imgThumbnail&&n&&(e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&r&&e.refs.imgThumbnail&&(e.deleteThumbnail(e.props.map.thumbnail,null,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&!r&&e.refs.imgThumbnail&&e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id),e.props.map.newThumbnail||r||e.refs.imgThumbnail||(e.props.map.thumbnail&&n&&e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id))})),qe(ze(e),"updateThumbnail",(function(t,n){e.props.map.errors&&e.props.map.errors.length||e.getDataUri(e.files,(function(r){return e.processUpdateThumbnail(t,n,r),r}))})),qe(ze(e),"deleteThumbnail",(function(t,n){if(t&&-1!==t.indexOf("geostore")){var r=Object(Pe.a)(t);r&&e.props.onDeleteThumbnail(r,n)}})),e}return t=i,(n=[{key:"renderThumbnailErrors",value:function(){return this.props.thumbnailErrors&&this.props.thumbnailErrors.length>0?I.a.createElement("div",{className:"dropzone-errorBox alert-danger"},I.a.createElement("p",null,I.a.createElement(D.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(e){return I.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},Ue[e])}))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(Me.a,{ref:"imgThumbnail",thumbnail:this.getThumbnailUrl(),className:null,dropZoneProps:{className:"dropzone alert alert-info",rejectClassName:"alert-danger"},loading:this.props.loading,maxFileSize:this.props.maxFileSize,style:{pointerEvents:this.props.map.saving?"none":"auto"},label:this.props.withLabel&&I.a.createElement("label",{className:"control-label"},I.a.createElement(D.default,{msgId:"map.thumbnail"})),"ù":!0,message:I.a.createElement(I.a.Fragment,null,this.props.message,I.a.createElement("br",null),this.props.suggestion),error:this.renderThumbnailErrors(),onUpdate:function(t,n){var r;e.props.onError([],e.props.map.id),e.files=n,e.props.onUpdate(t,null==n||null===(r=n[0])||void 0===r?void 0:r.preview)},onError:function(t,n){e.props.onError(t,e.props.map.id),e.files=n,e.props.onUpdate(null,null)},onRemove:function(){e.files=null,e.props.onUpdate(null,null),e.props.onRemoveThumbnail(),e.props.onError([],e.props.map.id)}})}}])&&Ne(t.prototype,n),r&&Ne(t,r),i}(I.a.Component);qe(Ge,"propTypes",{glyphiconRemove:R.a.string,style:R.a.object,thumbnailErrors:R.a.array,loading:R.a.bool,withLabel:R.a.bool,map:R.a.object,maxFileSize:R.a.number,onDrop:R.a.func,onError:R.a.func,onUpdate:R.a.func,onSaveAll:R.a.func,onCreateThumbnail:R.a.func,onDeleteThumbnail:R.a.func,onRemoveThumbnail:R.a.func,message:R.a.oneOfType([R.a.string,R.a.element]),suggestion:R.a.oneOfType([R.a.string,R.a.element])}),qe(Ge,"contextTypes",{messages:R.a.object}),qe(Ge,"defaultProps",{loading:!1,withLabel:!0,glyphiconRemove:"remove-circle",maxFileSize:5e5,onDrop:function(){},onError:function(){},onUpdate:function(){},onSaveAll:function(){},onRemoveThumbnail:function(){},onCreateThumbnail:function(){},onDeleteThumbnail:function(){},message:I.a.createElement(D.default,{msgId:"map.message"}),suggestion:I.a.createElement(D.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var He=Ge,Ve=n("./MapStore2/web/client/utils/LocaleUtils.js"),We=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function Ye(e){return(Ye="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 Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(e,t)}(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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?I.a.createElement("div",{className:"dropzone-errorBox alert-danger"},I.a.createElement("p",null,I.a.createElement(D.default,{msgId:"map.error"})),this.state.thumbnailErrors.map((function(t){return I.a.createElement("div",{id:"error"+t,key:"error"+t,className:"error"+t},e[t])}))):null}},{key:"renderSpecificTypeForm",value:function(){var e=this;return"wms"===this.props.layer.type?I.a.createElement(I.a.Fragment,null,I.a.createElement(K.FormGroup,{controlId:"formControlsSelect"},I.a.createElement(K.ControlLabel,null,I.a.createElement(D.default,{msgId:"layerProperties.format"})),I.a.createElement(Ee.default,{onChange:function(t){return e.setState({format:t&&t.value})},value:this.state.format||this.props.defaultFormat,clearable:!0,options:this.props.formatOptions})),this.renderStyleSelector(),I.a.createElement(at,null,I.a.createElement("div",{style:{display:"flex",alignItems:"center"}},I.a.createElement(K.ControlLabel,{style:{flex:1}},I.a.createElement(D.default,{msgId:"backgroundDialog.additionalParameters"})),I.a.createElement(at,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var t=Math.max.apply(Math,Qe(e.state.additionalParameters.length>0?e.state.additionalParameters.map((function(e){return e.id})):[-1]))+1;e.setState({additionalParameters:[].concat(Qe(e.state.additionalParameters),[{id:t,type:"string",param:"",val:""}])})}},I.a.createElement(K.Glyphicon,{glyph:"plus"}))),this.state.additionalParameters.map((function(t){return I.a.createElement("div",{key:"val:"+t.id,style:{display:"flex",marginTop:8}},I.a.createElement("div",{style:{display:"flex",flex:1,marginRight:8}},I.a.createElement(K.FormControl,{style:{width:"50%",marginRight:8,minWidth:0},placeholder:Object(Ve.f)(e.context.messages,"backgroundDialog.parameter"),value:t.param,onChange:function(n){return e.addAdditionalParameter(n.target.value,"param",t.id,t.type)}}),"boolean"===t.type?I.a.createElement("div",{style:{width:"50%"}},I.a.createElement(Ee.default,{onChange:function(n){return e.addAdditionalParameter(n.value,"val",t.id,t.type)},clearable:!1,value:t.val,options:e.props.booleanOptions})):I.a.createElement(K.FormControl,{style:{width:"50%",minWidth:0},placeholder:Object(Ve.f)(e.context.messages,"backgroundDialog.value"),value:t.val.toString(),onChange:function(n){return e.addAdditionalParameter(n.target.value,"val",t.id,t.type)}})),I.a.createElement(Ee.default,{style:{flex:1,width:90},onChange:function(n){return e.addAdditionalParameter(t.val,"val",t.id,n.value)},clearable:!1,value:t.type,options:e.props.parameterTypeOptions.map((function(t){var n=t.label;return Xe(Xe({},Ze(t,["label"])),{},{label:Object(Ve.f)(e.context.messages,n)})}))}),I.a.createElement(at,{onClick:function(){return e.setState({additionalParameters:e.state.additionalParameters.filter((function(e){return t.id!==e.id}))})},tooltipId:"backgroundDialog.removeAdditionalParameterTooltip",className:"square-button-md",style:{borderColor:"transparent"}},I.a.createElement(K.Glyphicon,{glyph:"trash"})))})))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(ke.a,{fitContent:!0,title:I.a.createElement(D.default,{msgId:this.props.editing?"backgroundDialog.editTitle":"backgroundDialog.addTitle"}),show:!0,fade:!0,clickOutEnabled:!1,bodyClassName:"ms-flex modal-properties-container background-dialog",loading:this.props.loading,onClose:function(){e.props.onClose(),e.resetParameters()},buttons:this.props.loading?[]:[{text:I.a.createElement(D.default,{msgId:this.props.editing?"save":"backgroundDialog.add"}),bsStyle:"primary",onClick:function(){var t=e.props.editing?e.props.layer.id:Te()(),n=e.props.layer.thumbURL||"",r=e.state.format||e.props.defaultFormat;e.props.updateThumbnail(e.state.thumbnail.data,t),e.props.onSave(v()({},e.props.layer,Object(i.omit)(e.state,"thumbnail"),e.props.editing?{}:{id:t},{params:Object(i.omit)(e.state.additionalParameters.reduce((function(e,t){return v()(e,it({},t.param,t.val))}),{}),["source","title"]),format:r,group:"background"},n||e.state.thumbnail.data?{thumbURL:e.state.thumbnail.url}:{})),e.resetParameters()}}]},I.a.createElement(K.Form,{style:{width:"100%"}},this.renderThumbnailErrors(),I.a.createElement(He,{onUpdate:function(t,n){return e.setState({thumbnail:{data:t,url:n}})},onError:function(t){return e.setState({thumbnailErrors:t})},message:I.a.createElement(D.default,{msgId:"backgroundDialog.thumbnailMessage"}),suggestion:"",map:{newThumbnail:Object(i.get)(this.state.thumbnail,"url")||"NODATA"}}),I.a.createElement(K.FormGroup,null,I.a.createElement(K.ControlLabel,null,I.a.createElement(D.default,{msgId:"layerProperties.title"})),I.a.createElement(K.FormControl,{value:this.state.title,placeholder:Object(Ve.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(t){return e.setState({title:t.target.value})}})),this.renderSpecificTypeForm()))}}])&&Je(t.prototype,n),r&&Je(t,r),a}(I.a.Component);it(st,"propTypes",{loading:R.a.bool,editing:R.a.bool,layer:R.a.object,capabilities:R.a.object,onAdd:R.a.func,onClose:R.a.func,source:R.a.string,onSave:R.a.func,addParameters:R.a.func,updateThumbnail:R.a.func,thumbURL:R.a.string,title:R.a.string,format:R.a.string,style:R.a.string,thumbnail:R.a.object,additionalParameters:R.a.object,addParameter:R.a.func,defaultFormat:R.a.string,formatOptions:R.a.array,parameterTypeOptions:R.a.array,booleanOptions:R.a.array}),it(st,"contextTypes",{messages:R.a.object}),it(st,"defaultProps",{updateThumbnail:function(){},onClose:function(){},onSave:function(){},addParameters:function(){},addParameter:function(){},loading:!1,editing:!1,layer:{},capabilities:{},title:"",thumbnail:{},additionalParameters:{},formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],parameterTypeOptions:[{label:"backgroundDialog.string",value:"string"},{label:"backgroundDialog.number",value:"number"},{label:"backgroundDialog.boolean",value:"boolean"}],booleanOptions:[{label:"True",value:!0},{label:"False",value:!1}]});var lt=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function ut(e){return(ut="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 ct(){return(ct=Object.assign||function(e){for(var t=1;t1&&I.a.createElement(je.a,{glyph:"trash",className:"square-button-md background-tool-button delete-button",bsStyle:"primary",onClick:function(){e.props.onRemoveBackground(!0,i.title||i.name||"",i.id)}}),e.props.mapIsEditable&&!e.props.enabledCatalog&&!("wms"!==i.type&&"wmts"!==i.type&&"tms"!==i.type&&"tileprovider"!==i.type)&&I.a.createElement(je.a,{glyph:"wrench",className:"square-button-md background-tool-button edit-button",bsStyle:"primary",onClick:function(){e.props.addBackgroundProperties({layer:i,editing:!0})}})),I.a.createElement(Se,{projection:e.props.projection,vertical:o,key:a,src:s,currentLayer:e.props.currentLayer,margin:r,side:t,frame:n,layer:i,onToggle:e.props.onToggle,onPropertiesChange:e.props.onPropertiesChange,onLayerChange:e.props.onLayerChange,setCurrentBackgroundLayer:e.props.setCurrentBackgroundLayer}))})):[]})),bt(gt(e),"getDimensions",(function(t,n,r,o,i,a){var s=i/2-(t+2*n+2*r)-o,l=t+2*n+2*r+(t+2*n+r)*a+o>i/2,u=Math.floor(s/(t+2*n+r));return u=u>a?a:u,{pagination:l,listSize:e.props.enabled?(t+n+r)*u+52:0,visibleIconsLength:u}})),bt(gt(e),"renderBackgroundSelector",(function(){var t=v()({side:78,sidePreview:104,frame:3,margin:5,label:!0,vertical:!1},e.props.dimensions),n=2*t.frame,r=t.side-n,o=e.props.enabled?t.sidePreview-n:r,i=t.margin,a=e.props.enabled?o-2*n:0,s=e.props.enabled?e.props.tempLayer:e.props.currentLayer,l=e.getIcons(r,n,i,t.vertical),u=e.getDimensions(r,n,i,0,t.vertical?e.props.size.height:e.props.size.width,l.length),c=u.pagination,d=u.listSize,p=u.visibleIconsLength,f=r+n+i,h=r+n+2*i,m=t.vertical?{bottom:h,left:0,width:h,height:d}:{left:o+2*i+n,width:d,height:f},g=t.vertical?{height:f*p,width:f}:{height:f,width:f*p},y=e.props.modalParams&&e.props.modalParams.layer||{},b=(e.props.backgroundList||[]).find((function(e){return e.id===y.id})),w={title:y.title,format:y.format,style:y.style,additionalParameters:y.params,thumbnail:{data:b&&b.thumbnail,url:e.getThumb(y)}},x=e.props.confirmDeleteBackgroundModal||{show:!1},_=x.show,O=x.layerId,S=x.layerTitle;return p<=0&&!e.props.alwaysVisible&&e.props.enabled?null:I.a.createElement("span",null,I.a.createElement(lt.a,{draggable:!1,modal:!0,show:_,onClose:function(){return e.props.onRemoveBackground(!1)},onConfirm:function(){e.props.removeBackground(O),e.props.onRemoveBackground(!1)},confirmButtonBSStyle:"default",confirmButtonContent:I.a.createElement(D.default,{msgId:"confirm"}),closeText:I.a.createElement(D.default,{msgId:"cancel"}),closeGlyph:"1-close"},I.a.createElement(D.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),e.props.modalParams&&I.a.createElement(st,ct({onClose:e.props.clearModal,onSave:function(t){e.props.modalParams.editing?(e.props.updateNode(t.id,"layers",t),e.props.onBackgroundEdit(t.id)):(e.props.addLayer(t),e.props.backgroundAdded(t.id))},updateThumbnail:e.props.onUpdateThumbnail},w,e.props.modalParams)),I.a.createElement("div",{className:"background-plugin-position",style:e.props.style},I.a.createElement(Y,{layers:e.props.layers,showAdd:"mobile"!==e.props.mode&&e.props.mapIsEditable&&e.props.hasCatalog&&!e.props.enabledCatalog,onAdd:function(){return e.props.onAdd(e.props.source||"backgroundSelector")},showLabel:t.label,src:e.getThumb(s),side:o,frame:n,margin:i,labelHeight:a,label:s.title,onToggle:e.props.onToggle}),I.a.createElement("div",{className:"background-list-container",style:m},I.a.createElement(he,{vertical:t.vertical,start:e.props.start,bottom:0,height:g.height,width:g.width,icons:l,pagination:c,length:p,onStartChange:e.props.onStartChange}))))})),e}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.props.onLayerChange("currentLayer",{}),this.props.onLayerChange("tempLayer",{}),this.props.onStartChange(0)}},{key:"render",value:function(){return this.props.layers.length>0?this.renderBackgroundSelector():null}}])&&pt(t.prototype,n),r&&pt(t,r),i}(I.a.Component);bt(vt,"propTypes",{mode:R.a.string,backgroundList:R.a.array,backgrounds:R.a.array,start:R.a.number,style:R.a.object,enabled:R.a.bool,layers:R.a.array,currentLayer:R.a.object,tempLayer:R.a.object,size:R.a.object,dimensions:R.a.object,thumbs:R.a.object,mapIsEditable:R.a.bool,onPropertiesChange:R.a.func,onToggle:R.a.func,onLayerChange:R.a.func,onStartChange:R.a.func,onAdd:R.a.func,hasCatalog:R.a.bool,alwaysVisible:R.a.bool,enabledCatalog:R.a.bool,onRemove:R.a.func,onBackgroundEdit:R.a.func,source:R.a.string,addBackgroundProperties:R.a.func,onUpdateThumbnail:R.a.func,removeBackground:R.a.func,onRemoveBackground:R.a.func,setCurrentBackgroundLayer:R.a.func,confirmDeleteBackgroundModal:R.a.object,deletedId:R.a.string,modalParams:R.a.object,updateNode:R.a.func,clearModal:R.a.func,allowDeletion:R.a.bool,projection:R.a.string}),bt(vt,"defaultProps",{mode:"desktop",addBackgroundProperties:function(){},onBackgroundEdit:function(){},setCurrentBackgroundLayer:function(){},source:"backgroundSelector",start:0,style:{},enabled:!1,layers:[],currentLayer:{},tempLayer:{},size:{width:0,height:0},dimensions:{},allowDeletion:!0,thumbs:{unknown:n("./MapStore2/web/client/components/background/img/default.jpg")},mapIsEditable:!0,onRemoveBackground:function(){},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){},onStartChange:function(){},onAdd:function(){},onRemove:function(){},clearModal:function(){}});var wt=vt;function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var T=Object(s.connect)((function(){return{noCaret:!0,pullRight:!0,bsStyle:"primary",title:o.a.createElement(c.Glyphicon,{glyph:"menu-hamburger"})}}))(c.DropdownButton),k=function(e){var t=e.children,n=C(e,["children"]);return o.a.createElement("div",n,t)},A=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&&x(e,t)}(a,e);var t,n,r,i=_(a);function a(){var e;v(this,a);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(e){return b(b({},e),t(e.children))})).sort((function(e,t){return e.position-t.position})),o={container:k,containerWrapperStyle:{position:"static"},className:"burger-menu-submenu",toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,panelStyle:e.props.panelStyle,panelClassName:e.props.panelClassName};return n.length>0?{containerWrapperStyle:{position:"static"},style:{position:"relative"},childTools:r,childPanels:e.getPanels(n),innerProps:o}:{}}(t.children))})).sort((function(e,t){return e.position-t.position}))))})),e}return t=a,(n=[{key:"render",value:function(){return o.a.createElement(d.a,{id:this.props.id,className:"square-button",container:T,mapType:this.props.mapType,toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,tools:this.getTools(),panels:this.getPanels(this.props.items),panelStyle:this.props.panelStyle,panelClassName:this.props.panelClassName})}}])&&w(t.prototype,n),r&&w(t,r),a}(o.a.Component);E(A,"propTypes",{id:a.a.string,dispatch:a.a.func,items:a.a.array,title:a.a.node,onItemClick:a.a.func,controls:a.a.object,mapType:a.a.string,panelStyle:a.a.object,panelClassName:a.a.string}),E(A,"contextTypes",{messages:a.a.object,router:a.a.object}),E(A,"defaultProps",{id:"mapstore-burger-menu",items:[],onItemClick:function(){},title:o.a.createElement(c.MenuItem,{header:!0},o.a.createElement(p.a,{msgId:"options"})),controls:[],mapType:"leaflet",panelStyle:{minWidth:"300px",right:"52px",zIndex:100,position:"absolute",overflow:"auto"},panelClassName:"toolbar-panel"}),t.default=Object(f.d)("BurgerMenu",{component:Object(s.connect)((function(e){return{controls:e.controls}}))(A),containers:{OmniBar:{name:"burgermenu",position:2,tool:!0,priority:1}}})},"./MapStore2/web/client/plugins/Expander.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx");t.a={ExpanderPlugin:s()(l.a,{Toolbar:{name:"expand",position:1e4,alwaysVisible:!0,tooltip:"expandtoolbar.tooltip",showWhen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,n=void 0===t?[]:t;return n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"expand"!==!e.name&&!e.alwaysVisible})).length>1},icon:o.a.createElement(i.Glyphicon,{glyph:"option-horizontal"}),toggle:!0,toggleControl:"toolbar",toggleProperty:"expanded",priority:1}}),reducers:{}}},"./MapStore2/web/client/plugins/FullScreen.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js");var o=n("./node_modules/screenfull/dist/screenfull.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/actions/controls.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=n("./node_modules/rxjs/Rx.js"),c=n.n(u),d=function(e){return e.ofType("TOGGLE_FULLSCREEN").switchMap((function(e){var t=document.querySelector(e&&e.querySelector||"."+(l.default.getConfigProp("themePrefix")||"ms2")+" > div");return t&&e.enable&&i.a.enabled?i.a.request(t):t&&!e.enable&&i.a.exit(),c.a.Observable.merge(c.a.Observable.fromEvent(document,Object(a.last)(Object(a.head)([["exitFullscreen","fullscreenchange"],["webkitExitFullscreen","webkitfullscreenchange"],["webkitCancelFullScreen","webkitfullscreenchange"],["mozCancelFullScreen","mozfullscreenchange"],["msExitFullscreen","MSFullscreenChange"]].filter((function(e){return document[e[0]]}))))).filter((function(){return i.a.element!==t})).map((function(){return Object(s.g)("fullscreen","enabled",!1)})),c.a.Observable.of(Object(s.g)("fullscreen","enabled",e.enable)),c.a.Observable.fromEvent(window,"hashchange").do((function(){return i.a.exit()})).map((function(){return Object(s.g)("fullscreen","enabled",!1)})))}))},p=n("./node_modules/object-assign/index.js"),f=n.n(p),h=n("./node_modules/prop-types/index.js"),m=n.n(h),g=n("./node_modules/react/index.js"),y=n.n(g),b=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),v=n("./node_modules/react-bootstrap/es/index.js"),w=n("./MapStore2/web/client/components/I18N/Message.jsx");function x(e){return(x="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 _(){return(_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.controls,n=void 0===t?{}:t;return{active:n.fullscreen&&n.fullscreen.enabled}}),{onClick:function(e,t){return n=e,r=t.querySelector,{type:"TOGGLE_FULLSCREEN",enable:n,elementSelector:r};var n,r}})(M);t.a={FullScreenPlugin:f()(I,{disablePluginIf:"{state('browser') && state('browser').safari}",Toolbar:{name:"fullscreen",position:5,alwaysVisible:!0,tool:!0,priority:1}}),reducers:{},epics:{toggleFullscreenEpic:d}}},"./MapStore2/web/client/plugins/Identify.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/identify/identify.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./MapStore2/web/client/actions/map.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),h=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),g=n("./MapStore2/web/client/utils/ImmutableUtils.js"),y=Object(c.withHandlers)({needsRefresh:function(){return function(e,t){if(t.enabled&&t.point&&t.point.pixel){if(!e.point||!e.point.pixel||e.point.pixel.x!==t.point.pixel.x||e.point.latlng!==t.point.latlng||e.point.pixel.y!==t.point.pixel.y)return!0;if(!e.point||!e.point.pixel||t.point.pixel&&e.format!==t.format)return!0}return!1}},onClose:function(e){var t=e.purgeResults,n=void 0===t?function(){}:t,r=e.closeIdentify,o=void 0===r?function(){}:r;return function(){n(),o()}},onSubmitClickPoint:function(e){var t=e.onSubmitClickPoint,n=void 0===t?function(){}:t,o=e.point;return function(e){var t=Object(r.isNil)(e.lat)||Object(r.isNaN)(e.lat)?0:parseFloat(e.lat),i=Object(r.isNil)(e.lon)||Object(r.isNaN)(e.lon)?0:parseFloat(e.lon),a=Object(g.e)("latlng.lng",i,Object(g.e)("latlng.lat",t,o));n(a)}},onChangeFormat:function(e){var t=e.onChangeFormat,n=void 0===t?function(){}:t;return function(e){n(e)}}}),b=Object(c.compose)(y,Object(c.lifecycle)({componentDidMount:function(){var e=this.props,t=e.enabled,n=e.changeMousePointer,r=void 0===n?function(){}:n,o=e.disableCenterToMarker,i=e.onEnableCenterToMarker,a=void 0===i?function(){}:i;t&&r("pointer"),o||a()},componentWillUnmount:function(){var e=this.props,t=e.hideMarker,n=void 0===t?function(){}:t,r=e.purgeResults,o=void 0===r?function(){}:r,i=e.changeMousePointer;(void 0===i?function(){}:i)("auto"),n(),o()},componentWillReceiveProps:function(e){var t=this.props,n=t.hideMarker,r=void 0===n?function(){}:n,o=t.purgeResults,i=void 0===o?function(){}:o,a=t.changeMousePointer,s=void 0===a?function(){}:a,l=t.enabled;e.enabled&&!l?s("pointer"):!e.enabled&&l&&(s("auto"),r(),i())}})),v=n("./node_modules/@turf/bbox/index.js"),w=n.n(v),x=Object(c.withHandlers)({zoomToFeature:function(e){var t=e.zoomToExtent,n=void 0===t?function(){}:t,r=e.currentFeature,o=void 0===r?[]:r,i=e.currentFeatureCrs;return function(){var e=o.filter((function(e){return!!e.geometry}));if(e.length>0){var t=w()({type:"FeatureCollection",features:e});t&&n(t,i)}}}}),_=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),O=n("./MapStore2/web/client/components/I18N/Message.jsx"),S=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx"),j=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),E=n("./MapStore2/web/client/components/misc/Portal.jsx"),C=function(e){var t=e.latlng,n=e.enableRevGeocode,r=e.hideRevGeocode,o=void 0===r?function(){}:r,i=e.showModalReverse,a=e.revGeocodeDisplayName;return n&&t?s.a.createElement(E.a,null,s.a.createElement(j.a,{fade:!0,title:s.a.createElement("span",null,s.a.createElement(l.Glyphicon,{glyph:"map-marker"})," ",s.a.createElement(O.default,{msgId:"identifyRevGeocodeModalTitle"})),size:"xs",show:i,onClose:o,buttons:[{text:s.a.createElement(O.default,{msgId:"close"}),onClick:o,bsStyle:"primary"}]},s.a.createElement("div",{className:"ms-alert",style:{padding:15}},s.a.createElement("div",{className:"ms-alert-center text-center"},s.a.createElement("div",null,a))))):null},T=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),k=function(e){return s.a.createElement(T.a,{format:e.formatCoord||"decimal",aeronauticalOptions:{seconds:{decimals:4,step:1e-4}},idx:1,onSubmit:function(t,n){e.onSubmit(Object(r.isEmpty)(n)?void 0:n)},onChangeFormat:function(t){e.onChangeFormat(t)},key:"GFI row coord editor",component:e.coordinate||{},customClassName:"coord-editor",isDraggable:!1,showDraggable:!1,formatVisible:!0,showLabels:!0,removeVisible:!1})},A=n("./MapStore2/web/client/components/I18N/Number.jsx"),P=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),M=Object(P.a)((function(e){var t=e.degrees,n=void 0===t?0:t,r=e.minutes,o=void 0===r?0:r,i=e.seconds,a=void 0===i?0:i,l=e.direction,u=e.integerFormat,c=e.decimalFormat;return s.a.createElement("span",{className:"coordinate-dms"},s.a.createElement(A.a,{key:"latD",numberParams:u,value:n}),s.a.createElement("span",null,"° "),s.a.createElement(A.a,{key:"latM",numberParams:u,value:o}),s.a.createElement("span",null,"' "),s.a.createElement(A.a,{key:"latS",numberParams:c,value:a}),s.a.createElement("span",null,"'' ")," ",s.a.createElement("span",null,l))})),I=function(e){var t=e.integerFormat,n=void 0===t?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:0}:t,o=e.decimalFormat,i=void 0===o?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:4,minimumFractionDigits:4}:o,a=e.coordinate,u=void 0===a?{}:a,c=e.formatCoord,d=void 0===c?"decimal":c,p=e.className;return s.a.createElement(l.Row,{className:p},s.a.createElement(l.Col,{xs:12},Object(r.isNil)(u.lat)||Object(r.isNil)(u.lon)?null:"decimal"===d?s.a.createElement("div",{className:"ms-coordinates-decimal"},"Lat: ",s.a.createElement(A.a,{value:Math.round(1e5*u.lat)/1e5})," - Long: ",s.a.createElement(A.a,{value:u.lon})):s.a.createElement("div",{className:"ms-coordinates-aeronautical"},s.a.createElement("span",null,"Lat: ",s.a.createElement(M,{integerFormat:n,decimalFormat:i,value:u.lat})),s.a.createElement("span",null," - "),s.a.createElement("span",null," Long: ",s.a.createElement(M,{coordinate:"lon",integerFormat:n,decimalFormat:i,value:u.lon})))))},D=function(e){var t=e.coordinate,n=void 0===t?{}:t,r=e.formatCoord,o=e.edit,i=e.onSubmit,a=void 0===i?function(){}:i,l=e.onChangeFormat,u=void 0===l?function(){}:l;return o?s.a.createElement(k,{removeVisible:!1,formatCoord:r,coordinate:n||{lat:"",lon:""},onSubmit:a,onChangeFormat:u}):s.a.createElement(I,{className:"coordinates-text",formatCoord:r,coordinate:n||{lat:"",lon:""}})},N=n("./MapStore2/web/client/utils/IdentifyUtils.js"),R=n("./node_modules/prop-types/index.js"),L=n.n(R),F=n("./node_modules/react-select/dist/react-select.es.js"),z=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function B(){return(B=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}))).mergeMap((function(e){var t=Object(Me.c)(o()),n=Object(De.a)(e,Fe(Fe({},Object(Oe.i)(o())),{},{env:t})),r=n.url,i=n.request,a=n.metadata;if(Object(Oe.o)(o())&&Object(Oe.r)(o())&&(i=Fe(Fe({},i),Object(Oe.r)(o())[e.name])),s[e.name]&&(i=Fe(Fe({},i),s[e.name])),r){var u=r,c=i,h=a,m=Object(De.c)(e,p,d),g=Object(Oe.k)(o()),y=Object(Oe.o)(o()),b=fe.a.v1(),v=Fe(Fe({},m),c);return Object(Re.a)(u,v,e,{attachJSON:g,itemId:y}).map((function(t){return t.data.exceptions?Object(f.I)(b,t.data.exceptions,c,h):Object(f.N)(b,t.data,c,Fe(Fe({},h),{},{features:t.features,featuresCrs:t.featuresCrs}),e)})).catch((function(e){return de.a.Observable.of(Object(f.H)(b,e.data||e.statusText||e.status,c,h))})).startWith(Object(f.O)(b,v))}return de.a.Observable.of(Object(f.K)(e,i,a,l))}));return t&&t.modifiers&&!0===t.modifiers.ctrl&&t.multiSelection?h:h.startWith(Object(f.Q)())}))},handleMapInfoMarker:function(e,t){var n=t.getState;return e.ofType(f.j).filter((function(){return!Object(Oe.n)(n())})).map((function(e){return e.layer?Object(f.L)():Object(f.T)()}))},closeFeatureGridFromIdentifyEpic:function(e){return e.ofType(f.n,f.k).switchMap((function(){return de.a.Observable.of(Object(ge.fb)())}))},closeFeatureAndAnnotationEditing:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,o=void 0===n?function(){}:n;return e.ofType(f.f).switchMap((function(){return Object(r.get)(o(),"annotations.editing")?de.a.Observable.of(Object(ve.b)()):de.a.Observable.of(Object(f.Q)())}))},hideMarkerOnIdentifyCloseOrClearWarning:function(e){return e.ofType(f.f,f.e).flatMap((function(){return de.a.Observable.of(Object(f.L)())}))},changeMapPointer:function(e,t){return e.ofType(p.f).filter((function(){return!t.getState().map})).switchMap((function(t){return e.ofType(we.d).mapTo(t)}))},onMapClick:function(e,t){return e.ofType(p.i).filter((function(){var e=t.getState().mapInfo.disableAlwaysOn,n=void 0!==e&&e;return!Object(Ce.f)(t.getState())&&(n||!Ue(t.getState()||{}))})).switchMap((function(e){var n=e.point,r=e.layer,o=Object(Ce.o)(t.getState());return de.a.Observable.of(Object(f.J)(Ge(n,o),r),Object(_e.u)()).merge(de.a.Observable.of(Object(xe.b)(fe()(),{component:Ne.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:n?n.rawPos:[]}})).filter((function(){return Object(Oe.n)(t.getState())})))}))},onUpdateFeatureInfoClickPoint:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(f.A).map((function(e){var t=e.point,n=Object(Ce.o)(r());return{point:Ge(t,n)}})).withLatestFrom(e.ofType(f.j),(function(e,t){var n=e.point;return Fe(Fe({},t),{},{point:n})}))},featureInfoClickOnHighligh:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(f.w).filter((function(e){return e.enabled&&Object(Oe.b)(r())})).switchMap((function(){return de.a.Observable.from([Object(f.J)(Object(Oe.b)(r()),Object(Oe.a)(r()),Object(Oe.g)(r()),Object(Oe.r)(r()),Object(Oe.o)(r())),Object(f.T)()])}))},zoomToVisibleAreaEpic:function(e,t){return e.ofType(f.j).filter((function(){return Object(Se.c)(t.getState())})).switchMap((function(n){return e.ofType(f.n,f.h).switchMap((function(){var o=t.getState(),i=Object(Ce.l)(o),a=Object(Ce.o)(o),s=Object(Ce.n)(o),l=Object(r.find)(s,{code:a}),u=l&&l.extent,c=u&&Object(ke.reprojectBbox)(u,a,"EPSG:4326"),d=Object(Te.b)(o),h=n.point&&n.point&&n.point.latlng,m=Object(Ie.getCurrentResolution)(Math.round(i.zoom),0,21,96),g=d&&i&&i.size&&{left:Object(Ie.parseLayoutValue)(d.left,i.size.width),bottom:Object(Ie.parseLayoutValue)(d.bottom,i.size.height),right:Object(Ie.parseLayoutValue)(d.right,i.size.width),top:Object(Ie.parseLayoutValue)(d.top,i.size.height)};if(!i||!g||!h||n.point.cartographic||Object(ke.isInsideVisibleArea)(h,i,g,m)||Object(Ce.f)(o))return de.a.Observable.of(Object(f.Y)("disabled"));if(c&&!Object(ke.isPointInsideExtent)(h,c))return de.a.Observable.empty();var y=Object(ke.centerToVisibleArea)(h,i,g,m);return de.a.Observable.of(Object(f.Y)("enabled"),Object(p.J)(y.pos,y.zoom,y.crs)).concat(e.ofType(f.f).switchMap((function(){var e=i&&Object(Ie.getBbox)(i.center,i.zoom);return de.a.Observable.of(Object(p.x)(i.center,i.zoom,e,i.size,null,i.projection))})).takeUntil(e.ofType(p.e).skip(1)))}))}))},closeFeatureInfoOnCatalogOpenEpic:function(e,t){return e.ofType(me.b).filter((function(e){return"metadataexplorer"===e.control&&e.properties&&e.properties.enabled})).switchMap((function(){return de.a.Observable.of(Object(f.Q)(),Object(f.L)()).merge(de.a.Observable.of(Object(xe.c)()).filter((function(){return Object(Oe.n)(t.getState())})))}))},closeFeatureInfoOnAnnotationOpenEpic:function(e,t){var n=t.getState;return e.ofType(me.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control;return"annotations"===t&&Object(r.get)(n(),"controls.annotations.enabled",!1)})).mapTo(Object(f.Q)())},closeFeatureInfoOnMeasureOpenEpic:function(e){return e.ofType(me.c).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.value;return"measure"===t&&n})).mapTo(Object(f.Q)())},cleanPopupsEpicOnPurge:function(e,t){var n=t.getState;return e.ofType(f.q).filter((function(){return Object(Oe.n)(n())})).mapTo(Object(xe.c)())},identifyEditLayerFeaturesEpic:function(e,t){return e.ofType(f.g).exhaustMap((function(e){var n,r=e.layer;return de.a.Observable.of(Object(f.R)(null===(n=Object(Oe.b)(t.getState()))||void 0===n?void 0:n.geometricFilter),Object(be.F)(r))}))},switchFeatureGridToEdit:function(e,t){return e.ofType(ye.j).switchMap((function(){var e=Object(Oe.d)(t.getState()),n=(Object(r.find)(Object(je.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).attribute||Object(r.get)(Object(Ee.k)(t.getState()),"attribute");return e?de.a.Observable.of(Object(f.R)(),Object(ge.Pb)(),Object(ge.Tb)(Fe(Fe({},e),{},{attribute:n,value:Fe(Fe({},e.value),{},{attribute:n})}))):de.a.Observable.empty()}))},resetCurrentEditFeatureQuery:function(e){return e.ofType(ge.f,he.b).mapTo(Object(f.R)())},mouseMoveMapEventEpic:function(e,t){var n=t.getState;return e.ofType(p.l).debounceTime(Object(Ae.a)(n())).switchMap((function(e){var t=e.position,r=e.layer,o=Object(Pe.b)("annotations")(n()),i=Object(Pe.e)(n()),a=n().mousePosition.mouseOut;return!Object(Ce.f)(n())||o||i||a?de.a.Observable.empty():de.a.Observable.of(Object(f.J)(t,r)).merge(de.a.Observable.of(Object(xe.b)(fe()(),{component:Ne.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:t?t.rawPos:[]},autoPanMargin:70,autoPan:!0})))}))},removePopupOnUnregister:function(e,t){var n=t.getState;return e.ofType(p.r).switchMap((function(){var e,t,r=de.a.Observable.empty(),o=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(o.length&&!Object(Ce.f)(n())){var i=o[0].id;r=de.a.Observable.of(Object(xe.d)(i))}return r}))},removePopupOnLocationChangeEpic:function(e,t){var n=t.getState;return e.ofType(he.b,f.q,f.e).switchMap((function(){var e,t,r=de.a.Observable.empty(),o=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(o.length){var i=o[0].id;r=de.a.Observable.of(Object(xe.d)(i))}return r}))},removeMapInfoMarkerOnRemoveMapPopupEpic:function(e,t){var n=t.getState;return e.ofType(xe.a).switchMap((function(){return Object(Ce.f)(n())?de.a.Observable.of(Object(f.L)()):de.a.Observable.empty()}))},setMapTriggerEpic:function(e,t){return e.ofType(f.s,we.d).switchMap((function(){return de.a.Observable.of("hover"===Object(Oe.q)(t.getState())?Object(p.F)("mousemove","identifyFloatingTool"):Object(p.H)("mousemove","identifyFloatingTool"))}))}},Ve=n("./MapStore2/web/client/reducers/mapInfo.js"),We=n("./MapStore2/web/client/selectors/locale.js"),Ye=n("./MapStore2/web/client/selectors/maptype.js"),Ke=n("./MapStore2/web/client/utils/ConfigUtils.js");function Xe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ze(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t0&&n.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.geometry;return e||!!n}),!1)||!1,tooltipId:"identifyZoomToFeature",onClick:s}]},showFullscreen:!1,validResponses:[],validator:De.i,zIndex:1050}),ot=Object(c.compose)(Object(u.connect)(et,{purgeResults:f.Q,closeIdentify:f.F,onSubmitClickPoint:f.Z,onToggleShowCoordinateEditor:f.X,onChangeFormat:f.B,changeMousePointer:p.y,clearWarning:f.E,hideMarker:f.L,showRevGeocode:f.U,hideRevGeocode:f.M,onEnableCenterToMarker:f.Y.bind(null,"enabled"),onEdit:f.G},(function(e,t,n){return $e($e($e($e({},n),e),t),{},{enabled:e.enabled&&(e.isCesium||!n.showInMapPopup)&&!e.floatingIdentifyEnabled})})),Object(c.compose)(Object(u.connect)(Object(d.c)({highlight:Oe.k,currentFeature:Oe.f,currentFeatureCrs:Oe.e}),{toggleHighlightFeature:f.V,zoomToExtent:p.I}),x),Object(u.connect)(Object(d.a)(Ye.c,(function(e){return{mapType:e}})),{},(function(e,t,n){var r=e.mapType,o=n.showHighlightFeatureButton;return $e($e({},Ze(n,["showHighlightFeatureButton"])),{},{showHighlightFeatureButton:"openlayers"===r&&o})})),rt,tt,m.b,b)((function(e){var t,n,o=e.enabled,i=e.requests,a=void 0===i?[]:i,u=e.onClose,c=e.responses,d=void 0===c?[]:c,p=e.index,f=e.viewerOptions,h=void 0===f?{}:f,m=e.format,g=e.dock,y=void 0===g||g,b=e.position,v=e.size,w=e.fluid,x=e.validResponses,T=void 0===x?[]:x,k=e.viewer,A=void 0===k?function(){return null}:k,P=e.getToolButtons,M=void 0===P?function(){return[]}:P,I=e.getFeatureButtons,R=void 0===I?function(){return[]}:I,L=e.showFullscreen,F=e.reverseGeocodeData,z=void 0===F?{}:F,B=e.point,q=e.dockStyle,U=void 0===q?{}:q,G=e.draggable,H=e.setIndex,Y=e.warning,X=e.clearWarning,Z=e.zIndex,Q=e.showEmptyMessageGFI,$=e.showEdit,J=e.isEditingAllowed,ee=e.onEdit,te=void 0===ee?function(){}:ee,ne=e.enabledCoordEditorButton,re=e.showCoordinateEditor,oe=e.onSubmitClickPoint,ie=e.onChangeFormat,ae=e.formatCoord,se=e.loaded,le=e.validator,ue=void 0===le?function(){return null}:le,ce=B&&B.latlng||null,de=T[p],pe=(de||{}).layer,fe=null;ce&&(fe=ce&&Math.round(1e17*ce.lng)/1e17,fe-=360*Math.floor(fe/360+.5));var he=A,me=M(K(K({},e),{},{lngCorrected:fe,validResponses:T,latlng:ce,showEdit:$&&J&&!!de&&Object(N.b)(de),onEdit:te.bind(null,pe&&{id:pe.id,name:pe.name,url:Object(r.get)(pe,"search.url")})})),ge=a.length===(null===(t=ue(m))||void 0===t||null===(n=t.getNoValidResponses(d))||void 0===n?void 0:n.length)||0,ye=a.length-d.length,be=z.error?s.a.createElement(O.default,{msgId:"identifyRevGeocodeError"}):z.display_name;return s.a.createElement("div",{id:"identify-container",className:o&&0!==a.length?"identify-active":""},s.a.createElement(S.a,{bsStyle:"primary",glyph:"map-marker",open:o&&0!==a.length,size:v,fluid:w,position:b,draggable:G,onClose:u,dock:y,style:U,showFullscreen:L,zIndex:Z,header:[s.a.createElement(l.Row,{className:"layer-select-row"},s.a.createElement("div",{className:"layer-col"},s.a.createElement("span",{className:"identify-icon glyphicon glyphicon-1-layer"}),s.a.createElement(V,{responses:d,index:p,loaded:se,setIndex:H,missingResponses:ye,emptyResponses:ge}),s.a.createElement(_.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:R(e),transitionProps:null}))),s.a.createElement(l.Row,{className:"coordinates-edit-row"},s.a.createElement("span",{className:"identify-icon glyphicon glyphicon-point"}),s.a.createElement("div",{className:"coordinate-editor"},s.a.createElement(D,{key:"coordinate-editor",formatCoord:ae,enabledCoordEditorButton:ne,onSubmit:oe,onChangeFormat:ie,edit:re,coordinate:{lat:ce&&ce.lat,lon:fe}})),s.a.createElement(C,W({latlng:ce,revGeocodeDisplayName:be},e)),s.a.createElement(_.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:me,transitionProps:null}))].filter((function(e){return e}))},s.a.createElement(he,W({index:p,setIndex:H,format:m,missingResponses:ye,responses:d,requests:a,showEmptyMessageGFI:Q},h))),s.a.createElement(E.a,null,s.a.createElement(j.a,{fade:!0,title:s.a.createElement(O.default,{msgId:"warning"}),size:"xs",show:Y,onClose:X,buttons:[{text:s.a.createElement(O.default,{msgId:"close"}),onClick:X,bsStyle:"primary"}]},s.a.createElement("div",{className:"ms-alert",style:{padding:15}},s.a.createElement("div",{className:"ms-alert-center text-center"},s.a.createElement(O.default,{msgId:"identifyNoQueryableLayers"}))))))})),it=Object(u.connect)((function(e){return{infoFormat:Object(Oe.h)(e)}}),{onInfoFormatChange:f.C})(Q.a),at=Object(u.connect)((function(e){return{trigger:Object(Ce.f)(e)?"hover":"click"}}),{onSetMapTrigger:f.S})(ue);t.a={IdentifyPlugin:i()(ot,{Toolbar:{name:"info",position:6,tooltip:"info.tooltip",icon:s.a.createElement(l.Glyphicon,{glyph:"map-marker"}),help:s.a.createElement($.a,{msgId:"helptexts.infoButton"}),action:f.W,selector:function(e){return{bsStyle:e.mapInfo&&e.mapInfo.enabled?"success":"primary",active:!(!e.mapInfo||!e.mapInfo.enabled)}}},Settings:{tool:[s.a.createElement(it,{key:"featureinfoformat",label:s.a.createElement($.a,{msgId:"infoFormatLbl"})}),s.a.createElement(at,{key:"featureinfotrigger"})],position:3}}),reducers:{mapInfo:Ve.a},epics:He}},"./MapStore2/web/client/plugins/Map.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=e,a=r,s=o,l=i;if(Object({NODE_ENV:"production"}).isTest){var u={},c=function(e){return u[e]=u[e]||{rootCount:0,iframesCreated:!1,timedOut:!1,fontLoaded:!1,requiredExtraTimeout:!1},u[e]};window.reporter=window.reporter||{modifyRootCount:function(e,t){c(e).rootCount+=t},iframesCreated:function(e){c(e).iframesCreated=!0},timedOut:function(e){c(e).timedOut=!0},fontLoaded:function(e){c(e).fontLoaded=!0},requiredExtraTimeout:function(e){c(e).requiredExtraTimeout=!0},getTests:function(){return u}}}n.timeoutAfter&&setTimeout((function(){a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,-1),document.body.removeChild(a),a=0,n.onTimeout&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.timedOut(l),n.onTimeout()))}),n.timeoutAfter),s=function(){a&&a.firstChild.clientWidth===a.lastChild.clientWidth&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,-1),document.body.removeChild(a),a=0,Object({NODE_ENV:"production"}).isTest&&window.reporter.fontLoaded(l),t())},Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(l,1),Object({NODE_ENV:"production"}).isLegacy||s(document.body.appendChild(a=document.createElement("div")).innerHTML='
'+(n.sampleText||" ")+'
'+(n.sampleText||" ")+"
"),Object({NODE_ENV:"production"}).isLegacy&&s(document.body.appendChild(a=document.createElement("div")).innerHTML='
.'+(n.sampleText||" ")+'.
.'+(n.sampleText||" ")+".
"),a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.iframesCreated(l),Object({NODE_ENV:"production"}).isLegacy||(a.firstChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=s,a.lastChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=s),Object({NODE_ENV:"production"}).isLegacy&&(a.firstChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",s):i.contentWindow.onresize=s,a.lastChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",s):i.contentWindow.onresize=s),Object({NODE_ENV:"production"}).isTest||(i=setTimeout(s)),Object({NODE_ENV:"production"}).isTest&&(i=setTimeout((function(){a&&(window.reporter.requiredExtraTimeout(l),s())}))))},u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./node_modules/react-spinkit/dist/index.js"),p=n.n(d),f=(n("./MapStore2/web/client/plugins/map/css/map.css"),n("./MapStore2/web/client/components/I18N/Message.jsx")),h=n("./MapStore2/web/client/utils/ConfigUtils.js"),m=n("./MapStore2/web/client/actions/map.js"),g=n("./MapStore2/node_modules/lodash/lodash.js"),y=n("./node_modules/reselect/es/index.js"),b=n("./MapStore2/web/client/selectors/map.js"),v=n("./MapStore2/web/client/selectors/maptype.js"),w=n("./MapStore2/web/client/selectors/layers.js"),x=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t?Object(x.reprojectGeoJson)(o,r,"EPSG:4326").features:[]})),C=Object(y.a)([E,function(e){return Object(g.get)(e,e&&e.highlight&&e.highlight.featuresPath||"highlight.emptyFeatures")||[]}],(function(e,t){return[].concat(_(t),_(e))})),T=n("./MapStore2/web/client/selectors/security.js"),k=n("./MapStore2/web/client/selectors/locale.js"),A=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),P=Object(y.c)({projectionDefs:b.n,map:b.l,mapType:v.c,layers:w.n,features:C,loadingError:function(e){return e.mapInitialConfig&&e.mapInitialConfig.loadingError&&e.mapInitialConfig.loadingError.data},securityToken:T.c,elevationEnabled:b.e,shouldLoadFont:v.b,isLocalizedLayerStylesEnabled:A.b,localizedLayerStylesName:A.d,currentLocaleLanguage:k.a}),M=n("./MapStore2/web/client/reducers/map.js"),I=n("./MapStore2/web/client/reducers/layers.js"),D=n("./MapStore2/web/client/actions/draw.js"),N={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.a:return c()({},e,{drawStatus:t.status,drawOwner:t.owner,drawMethod:t.method,options:t.options,features:t.features,style:t.style});case D.e:return c()({},e,{currentStyle:t.currentStyle});case D.d:return c()({},e,{tempFeatures:t.features});case D.b:return c()({},e,{tempFeatures:[]});default:return e}},L=n("./MapStore2/web/client/actions/box.js"),F={status:null};var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case L.b:return c()({},e,{status:t.status});default:return e}},B=n("./MapStore2/web/client/actions/highlight.js");function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:H,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case B.b:return c()({},e,{featuresPath:t.featuresPath||"highlight.emptyFeatures"});case B.a:return U(U({},e),{},{status:t.status});case B.c:return U(U({},e),{},{highlighted:t.features.length,features:t.features,status:t.status||e.status});default:return e}},W=n("./MapStore2/web/client/reducers/maptype.js"),Y=n("./MapStore2/web/client/actions/additionallayers.js");function K(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(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 X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Y.c:var n=Object(g.pickBy)({id:t.id,owner:t.owner,actionType:t.actionType,options:t.options},g.identity),r=Object(g.head)(e.filter((function(e){return e.id===n.id})));return r?e.map((function(e){return e.id===n.id?Q(Q({},r),n):Q({},e)})):[].concat(K(e),[n]);case Y.d:var o=t.options,i=t.owner;return e.map((function(e,t){return e.owner===i?Q(Q({},e),{},{options:Object(g.isObject)(o)&&o[e.id]||Object(g.isArray)(o)&&o[t]||{}}):Q({},e)}));case Y.a:var a=t.id,s=t.owner;return s?e.filter((function(e){return e.owner!==s})):e.filter((function(e){return e.id!==a}));case Y.b:return[];default:return e}},ee=n("./node_modules/rxjs/Rx.js"),te=n.n(ee),ne=n("./MapStore2/web/client/actions/layers.js"),re=n("./MapStore2/web/client/actions/config.js"),oe=n("./MapStore2/web/client/actions/security.js"),ie=n("./MapStore2/web/client/selectors/maplayout.js"),ae=n("./MapStore2/web/client/actions/controls.js"),se=n("./MapStore2/web/client/utils/LayersUtils.js"),le=n("./MapStore2/web/client/utils/MapUtils.js"),ue=n("./MapStore2/web/client/actions/notifications.js"),ce=n("./MapStore2/web/client/actions/mapInfo.js");function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t=180&&o[3]>=90)n=1;else{var s=x.default.reprojectBbox(o,e.crs,t.projection||"EPSG:4326");n=le.default.getZoomForExtent(s,t.size,0,21,null)}e.maxZoom&&n>e.maxZoom&&(n=e.maxZoom);var l={minx:i[0],miny:i[1],maxx:i[2],maxy:i[3]},u=pe(pe({},t.bbox),{},{bounds:l});return te.a.Observable.of(Object(m.x)(a,n,u,t.size,e.mapStateSource,t.projection,t.viewerOptions))}return te.a.Observable.empty()}(pe(pe({},e),{},{extent:t}),Object(b.l)(r()))}))}},me=n("./MapStore2/web/client/actions/mapPopups.js"),ge=n("./MapStore2/web/client/actions/measurement.js"),ye=n("./MapStore2/web/client/selectors/measurement.js");function be(e){return{type:"CHANGE_SELECTION_STATE",geomType:e.geomType,point:e.point,line:e.line,polygon:e.polygon}}var ve=n("./MapStore2/web/client/actions/locate.js"),we=n("./node_modules/react-redux/es/index.js");function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(e,t)}(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 _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){l(e,n,{timeoutAfter:t.timeoutAfter,onTimeout:r,sampleText:t.sampleText,generic:t.generic})}))}(t,{timeoutAfter:5e3}).catch((function(){e.props.onFontError({family:t})}))}))).then((function(){e.setState({canRender:!0})}))),this.updatePlugins(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.mapType===this.props.mapType&&e.actions===this.props.actions||this.updatePlugins(e)}},{key:"render",value:function(){if(this.props.map&&this.state.canRender&&this.state.plugins){var e=this.props.map.mapOptions,t=void 0===e?{}:e;return a.a.createElement(this.state.plugins.Map,Ee({id:"map"},this.props.options,{projectionDefs:this.props.projectionDefs},this.props.map,{mapOptions:c()({},t,this.getMapOptions()),zoomControl:this.props.zoomControl,onResolutionsChange:this.props.onResolutionsChange}),this.renderLayers(),this.renderSupportTools())}return this.props.loadingError?a.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapErrorMessage"},a.a.createElement(f.default,{msgId:"map.loadingerror"}),":",this.props.loadingError):a.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapLoadingMessage"},this.props.loadingSpinner?a.a.createElement(p.a,{spinnerName:"circle",overrideSpinnerClassName:"spinner"}):null,a.a.createElement(f.default,{msgId:this.props.mapLoadingMessage}))}}])&&Ae(t.prototype,n),r&&Ae(t,r),i}(a.a.Component);Re(Le,"propTypes",{mapType:o.a.string,map:o.a.object,layers:o.a.array,additionalLayers:o.a.array,zoomControl:o.a.bool,mapLoadingMessage:o.a.string,loadingSpinner:o.a.bool,loadingError:o.a.string,tools:o.a.array,fonts:o.a.array,options:o.a.object,mapOptions:o.a.object,projectionDefs:o.a.array,toolsOptions:o.a.object,onFontError:o.a.func,onResolutionsChange:o.a.func,actions:o.a.object,features:o.a.array,securityToken:o.a.string,shouldLoadFont:o.a.bool,elevationEnabled:o.a.bool,isLocalizedLayerStylesEnabled:o.a.bool,localizedLayerStylesName:o.a.string,currentLocaleLanguage:o.a.string,items:o.a.array,onLoadingMapPlugins:o.a.func}),Re(Le,"defaultProps",{mapType:"leaflet",actions:{},zoomControl:!1,mapLoadingMessage:"map.loading",loadingSpinner:!0,tools:["measurement","locate","scalebar","draw","highlight","popup","box"],options:{},mapOptions:{},fonts:["FontAwesome"],toolsOptions:{measurement:{},locate:{},scalebar:{leaflet:{position:"bottomright"}},overview:{overviewOpt:{position:"bottomright",collapsedWidth:25,collapsedHeight:25,zoomLevelOffset:-5,toggleDisplay:!0},layers:[{type:"osm"}]}},securityToken:"",additionalLayers:[],shouldLoadFont:!1,elevationEnabled:!1,onFontError:function(){},onResolutionsChange:function(){},items:[],onLoadingMapPlugins:function(){}});t.a=Object(s.d)("Map",{component:Object(s.c)(P,{onFontError:m.B,onResolutionsChange:m.G})(Le),reducers:{map:M.a,layers:I.a,draw:R,box:z,highlight:V,maptype:W.a,additionallayers:J},epics:he})},"./MapStore2/web/client/plugins/MapFooter.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx"),l=n("./node_modules/recompose/es/Recompose.js");function u(e){return(u="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 c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return function(r){return r.withLatestFrom(e.startWith(t)).filter((function(e){var t=_(e,2)[1];return n(t)})).map((function(e){return _(e,1)[0]}))}},j=n("./MapStore2/web/client/observables/epics.js"),E=n("./MapStore2/web/client/api/MultiDim.js"),C=n("./node_modules/rxjs/Rx.js"),T=n.n(C);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||P(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 A(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||P(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 P(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(x.n)(e()),r=Object(x.m)(e()),o=Object(x.p)(e()),i=Object(w.h)(e())||{},a=i.startPlaybackTime,s=i.endPlaybackTime,l=Object(w.j)(e())===c.j.PLAY||Object(w.j)(e())===c.j.PAUSE;return[o,r,"time",D({limit:20,time:a&&s&&l?R(a,s):void 0},t),Object(x.i)(n)(e())]},F=function(e,t){if(Object(x.m)(e())){var n=Object(b.e)(Object(x.k)(e()))(e()),r=Object(x.o)(e());return"multidim-extension"!==Object(f.get)(r,"source.type")&&n&&n.length>0?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fromValue,o=n.limit,i=void 0===o?20:o,a=Object(w.h)(t())||{},s=a.startPlaybackTime,l=a.endPlaybackTime;return T.a.Observable.of(e.filter((function(e){return!s||!l||p()(e).isSameOrAfter(s)&&p()(e).isSameOrBefore(l)})).filter((function(e){return!r||p()(e).isAfter(r)})).slice(0,i))}(n,e,t):E.b.apply(void 0,A(L(e,t))).map((function(e){return e.DomainValues.Domain.split(",")}))}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fromValue,r=t.limit,o=void 0===r?20:r,i=t.sort,a=void 0===i?"asc":i,s=Object(w.i)(e()),l=s.timeStep,u=s.stepUnit,c=p.a.duration(l,u),d=Object(w.h)(e())||{},f=d.startPlaybackTime,h=d.endPlaybackTime,m=void 0!==n?n:f||Object(b.a)(e())||(new Date).toString(),g=[];m!==n&&g.push(p()(m).toISOString());for(var y=0;y0&&void 0!==arguments[0]?arguments[0]:function(){return{}};return function(t){var n=Object(b.f)(e());return T.a.Observable.from(n.map((function(e){return Object(g.I)(e.id,{singleTile:!0})}))).concat(t).concat(T.a.Observable.from(n.map((function(e){return Object(g.I)(e.id,{singleTile:e.singleTile})}))))}},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.start,r=t.end;return n&&r&&(p()(e).isBefore(n)||p()(e).isAfter(r))},q={retrieveFramesForPlayback:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.f).exhaustMap((function(){return F(r,{fromValue:Object(w.h)(r())&&Object(w.h)(r()).startPlaybackTime&&Object(w.h)(r()).endPlaybackTime?void 0:Object(b.a)(r())}).map((function(e){return Object(c.v)(e)})).let(Object(j.a)(Object(c.q)(!0),Object(c.q)(!1)),(function(){return T.a.Observable.of(Object(y.f)({title:"There was an error retrieving animation",message:"Please contact the administrator"}),Object(c.w)())})).let(Object(j.a)(Object(m.r)(!1,!0),Object(m.r)(!1,!1))).concat(e.ofType(c.h).filter((function(e){return e.frame%20==10})).switchMap((function(){return F(r,{fromValue:Object(w.e)(r())}).map(c.o).let(Object(j.a)(Object(c.q)(!0),Object(c.q)(!1)))}))).takeUntil(e.ofType(c.k,v.b)).concat(T.a.Observable.of(Object(m.r)(!1,!1))).let(z(r))}))},updateCurrentTimeFromAnimation:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.h).map((function(){return Object(w.b)(r())})).map((function(e){return e?Object(h.e)(e):Object(c.w)()}))},timeDimensionPlayback:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.i).exhaustMap((function(){return T.a.Observable.interval(1e3*Object(w.c)(r())).startWith(0).let(S(e.ofType(c.f,c.e).map((function(e){return e.type===c.f})))).map((function(){return Object(c.u)(Object(w.a)(r())+1)})).merge(e.ofType(c.a).map((function(e){var t=e.direction;return Object(c.u)(Math.max(0,Object(w.a)(r())+t))}))).concat(T.a.Observable.of(Object(c.w)())).takeUntil(e.ofType(c.k,v.b))}))},playbackToggleGuideLayerToFixedStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.l).exhaustMap((function(){return Object(x.m)(r())?T.a.Observable.of(Object(m.n)(void 0)):T.a.Observable.of(Object(m.n)(Object(f.get)(Object(x.q)(r()),"[0].id")))}))},playbackMoveStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.a).filter((function(){return Object(w.j)(r())!==c.j.PLAY})).switchMap((function(e){var t=e.direction,n=void 0===t?1:t,o=Object(w.g)(r())||{},i=Object(b.a)(r());return i&&o.forTime===i?T.a.Observable.of(n>0?o.next:o.previous):F(r,{limit:1,sort:n>0?"asc":"desc",fromValue:Object(b.a)(r())}).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=k(e,1),n=t[0];return n}))})).filter((function(e){return!!e})).map((function(e){return Object(h.e)(e)}))},playbackCacheNextPreviousTimes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.b,h.a,m.f,c.k,m.i).filter((function(){return Object(w.j)(r())!==c.j.PLAY&&Object(w.j)(r())!==c.j.PAUSE})).filter((function(){return Object(x.n)(r())})).filter((function(e){return!!e})).switchMap((function(e){var t=e.time||Object(b.a)(r());return T.a.Observable.forkJoin(E.b.apply(void 0,A(L(r,{sort:"asc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return k(e,1)[0]})).catch((function(e){return e&&T.a.Observable.of(null)})),E.b.apply(void 0,A(L(r,{sort:"desc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return k(e,1)[0]})).catch((function(e){return e&&T.a.Observable.of(null)}))).map((function(e){var n=k(e,2),r=n[0],o=n[1];return Object(c.y)({forTime:t,next:r,previous:o})}))}))},playbackFollowCursor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.a).filter((function(e){return(e.type===h.a||Object(w.j)(r())===c.j.PLAY)&&B(Object(b.a)(r()),Object(x.j)(r()))})).filter((function(){return Object(f.get)(Object(w.i)(r()),"following")})).switchMap((function(){return T.a.Observable.of(Object(m.l)((e=Object(b.a)(r()),t=Object(x.j)(r()),n=t.start,o=t.end,i=p()(o).diff(p()(n)),{start:e,end:p()(e).add(i).toISOString()})));var e,t,n,o,i}))},playbackStopWhenDeleteLayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(g.t).filter((function(){return!Object(x.n)(r())&&"PLAY"===Object(w.j)(r())})).switchMap((function(){return T.a.Observable.of(Object(c.w)())}))}},U=n("./MapStore2/web/client/reducers/dimension.js"),G=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/utils/ImmutableUtils.js");function V(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(e,t)}(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 n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:function(){};try{if(!Object(f.isNaN)(parseInt(e,10))){var r=parseInt(e,10);return t(r<1?1:r)}return n()}catch(e){return n(e)}},ae=function(e){var t=e.startPlaybackTime,n=e.endPlaybackTime,r=p()(t).diff(n);return{startPlaybackTime:r>=0?n:t,endPlaybackTime:r>=0?t:n}};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=Object(l.compose)(Object(s.connect)(Object(u.a)(w.i,x.n,w.h,(function(e,t,n){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return ie(e,(function(e){s("frameDuration",e)}))}}),a.a.createElement(Z.InputGroup.Addon,null,"s"))),a.a.createElement(Z.ControlLabel,null,a.a.createElement(K.default,{msgId:"playback.settings.step.label"})," ",a.a.createElement(Q.a,{text:a.a.createElement(K.default,{msgId:"playback.settings.step.tooltip"})})),a.a.createElement(Z.FormGroup,{controlId:"formPlaybackStep"},a.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},a.a.createElement(te.a,{disabled:!f,componentClass:"input",type:"number",style:{input:{maxWidth:120}},value:r,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ie(e,(function(e){s("timeStep",e)}))}}),a.a.createElement(Z.FormControl,{disabled:!f,componentClass:"select",value:o,onChange:function(e){var t=e.target;return s("stepUnit",(void 0===t?{}:t).value)}},a.a.createElement(K.default,{msgId:"playback.settings.step.year",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"years"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.week",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"weeks"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.day",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"days"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.hour",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"hour"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.minute",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"minutes"},e)})),a.a.createElement(K.default,{msgId:"playback.settings.step.second",msgParams:{number:r||1}},(function(e){return a.a.createElement("option",{value:"seconds"},e)}))))),a.a.createElement(ee.a,{onSwitch:function(e){return d(e)},expanded:m.startPlaybackTime&&m.endPlaybackTime,title:a.a.createElement(K.default,{msgId:"playback.settings.range.title"}),buttons:b},a.a.createElement(Z.FormGroup,{controlId:"formPlaybackMode",style:{margin:10}},a.a.createElement($.a,{tooltipId:"playback.settings.range.animationStart",glyph:"play",date:m.startPlaybackTime,onUpdate:function(e){return y(ae(re(re({},m),{},{startPlaybackTime:e})))},style:w,showButtons:!0}),a.a.createElement($.a,{glyph:"stop",tooltipId:"playback.settings.range.animationEnd",date:m.endPlaybackTime,onUpdate:function(e){return y(ae(re(re({},m),{},{endPlaybackTime:e})))},style:w,showButtons:!0}))),a.a.createElement(Z.FormGroup,{controlId:"formPlaybackFollowingMode"},a.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},a.a.createElement(Z.ControlLabel,null,a.a.createElement(K.default,{msgId:"playback.settings.mode.following"})," ",a.a.createElement(Q.a,{text:a.a.createElement(K.default,{msgId:"playback.settings.mode.followingDescription"})})),a.a.createElement("span",null,a.a.createElement(J.a,{checked:t,onChange:function(e){return s("following",e)}})))))})),ce=Object(l.compose)(Object(l.withState)("showSettings","onShowSettings",!1),Object(l.withState)("collapsed","setCollapsed",!0),Object(l.withProps)((function(e){var t=e.setCollapsed;return{buttons:[{glyph:"minus",onClick:function(){return t(!0)}}]}}))),de=Object(u.a)(w.j,x.n,w.g,w.d,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return t?e===c.j.PLAY||e===c.j.PAUSE?r:{hasNext:!!n.next,hasPrevious:!!n.previous}:{hasNext:!0,hasPrevious:!0}})),pe=Object(l.compose)(Object(s.connect)(de,{stepMove:c.n}),Object(l.withHandlers)({forward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(1)}},backward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(-1)}}})),fe=Object(l.compose)(ce,pe)((function(e){var t=e.status,n=e.statusMap,r=e.play,o=void 0===r?function(){}:r,i=e.forward,s=void 0===i?function(){}:i,l=e.backward,u=void 0===l?function(){}:l,c=e.pause,d=void 0===c?function(){}:c,p=e.stop,f=void 0===p?function(){}:p,h=e.hasPrevious,m=e.hasNext,g=e.showSettings,y=e.onShowSettings,b=void 0===y?function(){}:y,v=e.settingsStyle,w=void 0===v?{}:v;return a.a.createElement("div",{style:{display:"flex"}},t!==n.PLAY&&t!==n.PAUSE&&g&&a.a.createElement(ue,{style:w}),a.a.createElement(X.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"step-backward",key:"back",onClick:u,disabled:!h,tooltip:a.a.createElement(K.default,{msgId:"playback.backwardStep"})},{glyph:t===n.PLAY?"pause":"play",key:"play",active:t===n.PLAY||t===n.PAUSE,disabled:!m,bsStyle:t===n.PLAY||t===n.PAUSE?"success":"primary",onClick:function(){return t===n.PLAY?d():o()},tooltipId:m&&(t===n.PLAY?"playback.pause":t===n.PAUSE?"playback.paused":"playback.play")},{glyph:"stop",key:"stop",disabled:t!==n.PLAY&&t!==n.PAUSE,onClick:f,tooltip:!(t!==n.PLAY&&t!==n.PAUSE)&&a.a.createElement(K.default,{msgId:"playback.stop"})},{glyph:"step-forward",key:"forward",onClick:s,disabled:!m,tooltip:m&&a.a.createElement(K.default,{msgId:"playback.forwardStep"})},{glyph:"cog",key:"settings",bsStyle:t!==n.PLAY&&t!==n.PAUSE&&g?"success":"primary",active:(t!==n.PLAY||t!==n.PAUSE)&&!!g,disabled:t===n.PLAY||t===n.PAUSE,onClick:function(){return t!==n.PLAY&&b(!g)},tooltip:!(t===n.PLAY||t===n.PAUSE)&&a.a.createElement(K.default,{msgId:"playback.settings.tooltip"})}]}))}));function he(e){return(he="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 me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{status:c.j.STOP,currentFrame:-1,settings:Y},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c.f:return Object(H.e)("status",c.j.PLAY,e);case c.e:return Object(H.e)("status",c.j.PAUSE,e);case c.k:return Object(H.e)("status",c.j.STOP,Object(H.e)("currentFrame",-1,e));case c.i:return Object(H.e)("frames",t.frames,Object(H.e)("currentFrame",-1,e));case c.d:return Object(H.e)("framesLoading",t.loading,e);case c.b:return Object(H.e)("frames",[].concat(V(e.frames||[]),V(t.frames)),e);case c.h:return Object(H.e)("currentFrame",t.frame,e);case c.g:return Object(H.e)("playbackRange",t.range,e);case c.c:return Object(H.e)("settings[".concat(t.name,"]"),t.value,e);case c.m:return Object(H.e)("metadata",{next:t.next,previous:t.previous,forTime:t.forTime},e);case G.a:return Object(H.e)("metadata",void 0,Object(H.e)("framesLoading",void 0,Object(H.e)("playbackRange",void 0,Object(H.e)("frames",void 0,Object(H.e)("currentFrame",-1,Object(H.e)("status","STOP",Object(H.e)("settings",Y,e)))))));default:return e}},dimension:U.default}}},"./MapStore2/web/client/plugins/Print.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/print/print.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-redux/es/index.js"),p=n("./node_modules/reselect/es/index.js"),f=n("./MapStore2/web/client/actions/controls.js"),h=n("./MapStore2/web/client/actions/print.js"),m=n("./MapStore2/web/client/components/I18N/Message.jsx"),g=n("./MapStore2/web/client/components/misc/Dialog.jsx");function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={antiAliasing:!0,iconSize:24,legendDpi:96,fontFamily:"Verdana",fontSize:8,bold:!1,italic:!1,resolution:96,name:"",description:""},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("_")[0]};var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{spec:b,capabilities:null,map:null,isLoading:!1,pdfUrl:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case f.d:return"print"===t.control?i()({},e,{pdfUrl:null,isLoading:!1,error:null}):e;case h.f:var n=Object(r.get)(t,"capabilities.layouts",[{name:"A4"}]),o=n.filter((function(t){return v(t.name)===e.spec.sheet})).length?e.spec.sheet:v(n[0].name);return i()({},e,{capabilities:t.capabilities,spec:i()({},e.spec||{},{sheet:o,resolution:t.capabilities&&t.capabilities.dpis&&t.capabilities.dpis.length&&t.capabilities.dpis[0].value})});case h.j:return i()({},e,{spec:i()({},e.spec,y({},t.name,t.value))});case h.c:var a=t.layers.map((function(e){return e.title?i()({},e,{title:Object(r.isObject)(e.title)&&t.currentLocale&&e.title[t.currentLocale]||Object(r.isObject)(e.title)&&e.title.default||e.title}):e}));return i()({},e,{map:{center:t.center,zoom:t.zoom,scaleZoom:t.scaleZoom,scale:t.scale,layers:a,projection:t.projection},error:null});case h.b:var s=t.zoom-e.map.scaleZoom;return i()({},e,{map:i()({},e.map,{scaleZoom:t.zoom,zoom:e.map.zoom+s,scale:t.scale})});case h.a:return i()({},e,{map:i()({},e.map,{size:t.size})});case h.i:return i()({},e,{isLoading:!0,pdfUrl:null,error:null});case h.g:return i()({},e,{isLoading:!1,pdfUrl:t.url,error:null});case h.h:case h.e:return i()({},e,{isLoading:!1,pdfUrl:null,error:t.error});case h.d:return i()({},e,{isLoading:!1,pdfUrl:null,error:null});default:return e}},x=n("./MapStore2/web/client/selectors/layers.js"),_=n("./MapStore2/web/client/selectors/locale.js"),O=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),S=n("./MapStore2/web/client/selectors/map.js"),j=n("./MapStore2/web/client/selectors/maptype.js"),E=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),C=n("./MapStore2/web/client/utils/LocaleUtils.js"),T=n("./MapStore2/web/client/utils/MapUtils.js");function k(e){return(k="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 A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})),U(B(e),"filterLayers",(function(t){var n=e.props.layers.filter((function(t){return t.visibility&&e.isAllowed(t)}));if(e.isBackgroundIgnored()&&e.props.defaultBackground&&t.defaultBackground){var r=e.props.layers.filter((function(t){return t.type===e.props.defaultBackground}))[0];return[i()({},r,{visibility:!0})].concat(M(n))}return n})),U(B(e),"configurePrintMap",(function(t,n){var r=t||e.props.map,o=n||e.props.printSpec;if(r&&r.bbox&&e.props.capabilities){var i=Object(E.reprojectBbox)([r.bbox.bounds.minx,r.bbox.bounds.miny,r.bbox.bounds.maxx,r.bbox.bounds.maxy],r.bbox.crs,r.projection),a=e.getMapSize();if(e.props.useFixedScales){var s=e.props.getZoomForExtent(i,a,e.props.minZoom,e.props.maxZoom),l=Q(e.props.capabilities),u=$(r.zoom,l);e.props.configurePrintMap(r.center,s,u,l[u],e.filterLayers(o),r.projection,e.props.currentLocale)}else e.props.configurePrintMap(r.center,r.zoom,r.zoom,e.props.scales[r.zoom],e.filterLayers(o),r.projection,e.props.currentLocale)}})),U(B(e),"print",(function(){var t=e.props.printSpec;e.props.isLocalizedLayerStylesEnabled&&(t=P(P({},t),{},{env:e.props.localizedLayerStylesEnv,language:e.props.currentLocaleLanguage})),e.props.setPage(0),e.props.onBeforePrint(),e.props.preloadData(t).then((function(t){var n=e.props.getPrintSpecification(t);e.props.onPrint(e.props.capabilities.createURL,P(P({},n),e.props.overrideOptions))})).catch((function(t){e.props.printError("Error pre-loading data:"+t.message)}))})),e}return t=p,(n=[{key:"UNSAFE_componentWillMount",value:function(){if(this.props.usePreview&&!window.PDFJS){var e=document.createElement("script");e.type="text/javascript",e.src="https://unpkg.com/pdfjs-dist@1.4.79/build/pdf.combined.js",document.head.appendChild(e)}this.configurePrintMap()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.open&&!this.props.open,n=this.props.open&&this.props.syncMapPreview&&Object(T.mapUpdated)(this.props.map,e.map),r=e.printSpec.defaultBackground!==this.props.printSpec.defaultBackground;(t||n||r)&&this.configurePrintMap(e.map,e.printSpec)}},{key:"render",value:function(){return(this.props.capabilities||this.props.error)&&this.props.open?this.props.withContainer?this.props.withPanelAsContainer?u.a.createElement(c.Panel,{className:"mapstore-print-panel",header:u.a.createElement("span",null,u.a.createElement("span",{className:"print-panel-title"},u.a.createElement(m.default,{msgId:"print.paneltitle"})),u.a.createElement("span",{className:"print-panel-close panel-close",onClick:this.props.toggleControl})),style:this.props.style},this.renderBody()):u.a.createElement(g.a,{id:"mapstore-print-panel",style:P({left:"17%",top:"50px",zIndex:1990},this.props.style)},u.a.createElement("span",{role:"header"},u.a.createElement("span",{className:"print-panel-title"},u.a.createElement(m.default,{msgId:"print.paneltitle"})),u.a.createElement("button",{onClick:this.props.toggleControl,className:"print-panel-close close"},this.props.closeGlyph?u.a.createElement(c.Glyphicon,{glyph:this.props.closeGlyph}):u.a.createElement("span",null,"×"))),this.renderBody()):this.renderBody():null}}])&&R(t.prototype,n),s&&R(t,s),p}(u.a.Component);U(J,"propTypes",{map:s.a.object,layers:s.a.array,capabilities:s.a.object,printSpec:s.a.object,printSpecTemplate:s.a.object,withContainer:s.a.bool,withPanelAsContainer:s.a.bool,open:s.a.bool,pdfUrl:s.a.string,title:s.a.string,style:s.a.object,mapWidth:s.a.number,mapType:s.a.string,alternatives:s.a.array,toggleControl:s.a.func,onBeforePrint:s.a.func,setPage:s.a.func,onPrint:s.a.func,printError:s.a.func,configurePrintMap:s.a.func,preloadData:s.a.func,getPrintSpecification:s.a.func,getLayoutName:s.a.func,error:s.a.string,getZoomForExtent:s.a.func,minZoom:s.a.number,maxZoom:s.a.number,usePreview:s.a.bool,mapPreviewOptions:s.a.object,syncMapPreview:s.a.bool,useFixedScales:s.a.bool,scales:s.a.array,ignoreLayers:s.a.array,defaultBackground:s.a.string,closeGlyph:s.a.string,submitConfig:s.a.object,previewOptions:s.a.object,currentLocale:s.a.string,currentLocaleLanguage:s.a.string,overrideOptions:s.a.object,isLocalizedLayerStylesEnabled:s.a.bool,localizedLayerStylesEnv:s.a.object}),U(J,"contextTypes",{messages:s.a.object}),U(J,"defaultProps",{withContainer:!0,withPanelAsContainer:!1,title:"print.paneltitle",toggleControl:function(){},onBeforePrint:function(){},setPage:function(){},onPrint:function(){},configurePrintMap:function(){},printSpecTemplate:{},preloadData:K,getPrintSpecification:X,getLayoutName:Z,getZoomForExtent:T.defaultGetZoomForExtent,pdfUrl:null,mapWidth:370,mapType:"leaflet",minZoom:1,maxZoom:23,alternatives:[{name:"legend",component:v,regex:/legend/},{name:"2pages",component:w,regex:/2_pages/},{name:"landscape",component:k,regex:/landscape/}],usePreview:!0,mapPreviewOptions:{enableScalebox:!1,enableRefresh:!1},syncMapPreview:!0,useFixedScales:!1,scales:[],ignoreLayers:["google","bing"],defaultBackground:"osm",closeGlyph:"1-close",submitConfig:{buttonConfig:{bsSize:"small",bsStyle:"primary"},glyph:""},previewOptions:{buttonStyle:"primary"},style:{},currentLocale:"en-US",overrideOptions:{}});var ee=Object(p.a)([function(e){return e.controls.print&&e.controls.print.enabled||e.controls.toolbar&&"print"===e.controls.toolbar.active},function(e){return e.print&&e.print.capabilities},function(e){return e.print&&e.print.spec&&i()({},e.print.spec,e.print.map||{})},function(e){return e.print&&e.print.pdfUrl},function(e){return e.print&&e.print.error},S.l,x.p,S.p,function(e){return e.browser&&(!e.browser.ie||e.browser.ie11)},_.b,_.a,j.c,O.b,O.c],(function(e,t,n,r,o,i,a,s,l,u,c,d,p,f){return{open:e,capabilities:t,printSpec:n,pdfUrl:r,error:o,map:i,layers:a.filter((function(e){return!e.loadingError})),scales:s,usePreview:l,currentLocale:u,currentLocaleLanguage:c,mapType:d,isLocalizedLayerStylesEnabled:p,localizedLayerStylesEnv:f}})),te=Object(d.connect)(ee,{toggleControl:f.h.bind(null,"print",null),onPrint:h.q,printError:h.p,onBeforePrint:h.r,setPage:f.g.bind(null,"print","currentPage"),configurePrintMap:h.m})(J);e(te)}.bind(null,n)).catch(n.oe)},enabler:function(e){return e.print&&e.print.enabled||e.toolbar&&"print"===e.toolbar.active}},{disablePluginIf:"{state('mapType') === 'cesium' || !state('printEnabled')}",Toolbar:{name:"print",position:7,help:u.a.createElement(m.default,{msgId:"helptexts.print"}),tooltip:"printbutton",icon:u.a.createElement(c.Glyphicon,{glyph:"print"}),exclusive:!0,panel:!0,priority:1},BurgerMenu:{name:"print",position:2,text:u.a.createElement(m.default,{msgId:"printbutton"}),icon:u.a.createElement(c.Glyphicon,{glyph:"print"}),action:f.h.bind(null,"print",null),priority:2,doNotHide:!0}}),reducers:{print:w}}},"./MapStore2/web/client/plugins/ScaleBox.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/PluginsUtils.js"),a=n("./node_modules/reselect/es/index.js"),s=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/actions/map.js"),u=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/actions/help.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),f=n("./MapStore2/web/client/components/help/HelpBadge.jsx");n("./MapStore2/web/client/components/help/help.css");function h(e){return(h="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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n0},D=Object(p.withHandlers)({clickHandler:function(e){var t=e.selectedLayer,n=e.offsetEnabled,o=e.status,i=e.setCurrentTime,a=void 0===i?function(){}:i,s=e.selectGroup,l=void 0===s?function(){}:s;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.time,s=e.group,u=e.what,c=e.event;if("PLAY"!==o)switch(u){case"group-label":s&&"PLAY"!==o&&l(s);break;default:var d=c&&c.target&&c.target.closest(".vis-custom-time"),p=d&&d.getAttribute("class"),f=p&&Object(r.trim)(p.replace("vis-custom-time",""));i&&!n&&"startPlaybackTime"!==f&&"endPlaybackTime"!==f&&a(i.toISOString(),t)}}},timechangedHandler:function(e){var t=e.currentTime,n=e.setOffset,r=void 0===n?function(){}:n,o=e.setCurrentTime,i=void 0===o?function(){}:o,a=e.currentTimeRange,s=void 0===a?{}:a,l=e.playbackRange,u=e.setPlaybackRange,c=void 0===u?function(){}:u,d=e.selectedLayer;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.time,o=e.id;if("startPlaybackTime"!==o&&"endPlaybackTime"!==o)"currentTime"===o&&(s.end?I(n,s.end)?i(n.toISOString(),null):(i(s.end),r(n.toISOString())):i(n.toISOString(),d)),"offsetTime"===o&&(I(t,n)?r(n.toISOString()):(i(n.toISOString()),r(t)));else{var a=P(P({},l),{},M({},o,n.toISOString())),u=Object(k.e)(a.startPlaybackTime,a.endPlaybackTime),p=u.start,f=u.end;I(p,f)&&c({startPlaybackTime:p,endPlaybackTime:f})}}}});function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;o(e),t(e)}})}})),Object(p.withPropsOnChange)(["rangeItems","currentTime","offsetEnabled","selectedLayer","currentTimeRange","readOnly"],(function(e){var t=e.currentTimeRange,n=e.rangeItems,r=void 0===n?[]:n,o=e.readOnly;return{rangeItems:e.offsetEnabled&&void 0!==t.start&&void 0!==t.end?[].concat(F(r),[R(R({id:"current-range",editable:{updateTime:!o,updateGroup:!1,remove:!1}},Object(k.e)(t.start,t.end)),{},{type:"background",className:"ms-current-range"})]).filter((function(e){return e})):r}}))),Object(p.withPropsOnChange)(["currentTime","playbackRange","playbackEnabled","offsetEnabled","currentTimeRange"],(function(e){var t=e.currentTime,n=e.playbackRange,r=e.playbackEnabled,o=e.offsetEnabled,i=e.currentTimeRange;return{customTimes:[t?{currentTime:t}:{},r&&n&&n.startPlaybackTime&&n.endPlaybackTime?n:{},o&&i?{offsetTime:i.end}:{}].reduce((function(e,t){return t?R(R({},e),t):R({},e)}),{})}}))),q=n("./node_modules/prop-types/index.js"),U=n.n(q),G=n("./node_modules/vis/dist/vis-timeline-graph2d.min.js"),H=n.n(G);n("./node_modules/vis/dist/vis-timeline-graph2d.min.css");function V(e){return(V="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 W(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(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 Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t.$el.initialFitDone?t.setAllItems(e):(t.setAllItems(e),t.$el.emit("changed")):t.$el.initialRangeChangeDone&&t.setAllItems(e)})),t.state={customTimes:[]},t}return t=s,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.refs.container;this.$el=new H.a.Timeline(t,void 0,this.props.options),ne.forEach((function(t){return e.$el.on(t,e.props["".concat(t,"Handler")])})),this.init()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.items,r=t.groups,o=t.options,i=t.selection,a=t.customTimes,s=t.readOnly,l=t.rangeItems,u=n!==e.items,c=r!==e.groups,d=o!==e.options,p=a!==e.customTimes,f=i!==e.selection,h=s!==e.readOnly,m=l!==e.rangeItems;return u||c||d||p||f||h||m}},{key:"componentDidUpdate",value:function(e){this.init(e)}},{key:"componentWillUnmount",value:function(){this.$el.destroy()}},{key:"render",value:function(){return u.a.createElement("div",{ref:"container",className:this.props.readOnly?"read-only-timeline":"",onMouseOut:this.props.onMouseOutHandler})}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,o=n.items,a=n.rangeItems,s=n.groups,l=n.options,u=n.selection,c=n.selectionOptions,d=void 0===c?{}:c,p=n.customTimes,f=n.animate,h=void 0===f||f,m=n.currentTime,g=l;if(h&&(g=Object(r.omit)(l,"start","end"),l.start&&l.end?this.$el.setWindow(l.start,l.end,{animation:h}):this.$el.setWindow(i()().subtract(1,"month"),i()().add(1,"month"),{animation:h})),this.$el.setOptions(g),s.length>0){var y=new H.a.DataSet;y.add(s),this.$el.setGroups(y)}if(o&&o!==t.items)this.setItems(o);else if(a!==t.rangeItems){var b=this.$el&&this.$el.itemsData&&this.$el.itemsData.getDataSet();if(b){var v=Object(r.intersectionBy)(a||[],t.rangeItems||[],"id"),w=Object(r.differenceBy)(a||[],t.rangeItems||[],"id"),x=Object(r.differenceBy)(t.rangeItems||[],a||[],"id");v.map((function(e){return b.update(e)})),w.map((function(e){return b.add(e)})),x.map((function(e){var t=e.id;return b.remove(t)}))}else this.setItems(o)}this.$el.setSelection(u,d),m&&this.$el.setCurrentTime(m);var _=Object(r.keys)(this.state.customTimes),O=Object(r.keys)(p),S=Object(r.difference)(O,_),j=Object(r.difference)(_,O),E=Object(r.intersection)(_,O);Object(r.each)(j,(function(t){return e.$el.removeCustomTime(t)})),Object(r.each)(S,(function(t){var n=p[t];e.$el.addCustomTime(n,t)})),Object(r.each)(E,(function(t){var n=p[t];e.$el.setCustomTime(n,t)})),this.setState({customTimes:p}),(this.props.readOnly!==t.readOnly||this.props.readOnly&&S.length>0)&&Object(r.each)(this.$el.customTimes,(function(n){e.props.readOnly?n.hammer.off("panstart panmove panend"):!0===t.readOnly&&(n.hammer.on("panstart",n._onDragStart.bind(n)),n.hammer.on("panmove",n._onDrag.bind(n)),n.hammer.on("panend",n._onDragEnd.bind(n)))}))}}])&&K(t.prototype,n),o&&K(t,o),s}(u.a.Component);ee(ae,"propTypes",Object(r.assign)(ie,re)),ee(ae,"defaultProps",Object(r.assign)({items:[],groups:[],options:{},selection:[],customTimes:{}},oe));var se=ae;function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.title,r=e.name;return t+n+r})).length>0}),(function(e){var t=e.layers,n=void 0===t?[]:t,o=e.loading,i=void 0===o?{}:o,a=e.selectedLayer;return{groups:n.map((function(e){return{id:e.id,className:(i[e.id]?"loading":"")+(e.id&&e.id===a?" selected":""),content:'
'+(i[e.id]?'
':'
'.concat(e.id&&e.id===a?'':"","
"))+'
'.concat(Object(r.isString)(e.title)?e.title:e.name,"
")+"
"}}))}}))),fe=Object(p.compose)(Object(d.connect)(Object(f.a)(_.a,j.a,(function(e,t){return{currentTime:e,currentTimeRange:t}})),{setCurrentTime:g.o,moveCurrentRange:h.e,setOffset:h.f})),he=Object(p.compose)(Object(d.connect)(Object(f.c)({playbackRange:S.h,status:S.j}),{setPlaybackRange:m.t})),me=Object(p.compose)(Object(d.connect)(Object(f.a)(j.n,(function(e){return{selectedLayer:e}})),{selectGroup:g.n})),ge=Object(p.compose)(Object(d.connect)((function(){return{}}),{rangechangedHandler:g.l})),ye=Object(p.compose)(fe,he,me,D,ge,pe,Object(p.defaultProps)({key:"timeline",options:{maxHeight:"90%",verticalScroll:!0,stack:!1,showMajorLabels:!0,showCurrentTime:!1,zoomMin:10,zoomable:!0,type:"background",margin:{item:0,axis:0},format:{minorLabels:{minute:"h:mma",hour:"ha"}},itemsAlwaysDraggable:!0,moment:function(e){return i()(e).utc()}}}),Object(p.withPropsOnChange)(["viewRange","options"],(function(e){var t=e.viewRange,n=void 0===t?{}:t;return{options:ue(ue({},e.options),n)}})),Object(p.withPropsOnChange)(["status"],(function(e){return{readOnly:"PLAY"===e.status}})),B,Object(C.a)((function(e){var t=e.loading;return t&&t.timeline}),(function(){return u.a.createElement("div",{style:{margin:"auto",fontWeight:"bold"}},u.a.createElement(T.a,{style:{display:"inline-block",verticalAlign:"middle"}}),u.a.createElement(y.default,{msgId:"loading"}))}),{white:!0}))(se),be=n("./node_modules/rxjs/Rx.js"),ve=n.n(be),we=n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"),xe=n("./MapStore2/web/client/components/misc/Button.jsx");function _e(){return(_e=Object.assign||function(e){for(var t=1;t0},Re=Object(p.compose)(Object(d.connect)(Object(f.a)(j.f,j.q,_.a,j.a,_.g,S.h,S.j,j.j,(function(e,t,n,r,o,i,a,s){return{visible:e,layers:t,currentTime:n,currentTimeRange:r,offsetEnabled:o,playbackRange:i,status:a,viewRange:s}})),{setCurrentTime:g.o,onOffsetEnabled:g.k,setOffset:h.f,setPlaybackRange:m.t,moveRangeTo:g.l}),Object(p.branch)((function(e){var t=e.visible,n=void 0===t||t,r=e.layers,o=void 0===r?[]:r;return!n||0===Object.keys(o).length}),p.renderNothing),Object(p.withState)("options","setOptions",{collapsed:!0}),Object(d.connect)(Object(f.a)(j.e,(function(e){return{mapSync:e}})),{toggleMapSync:g.q}),Object(p.compose)(Object(p.compose)(Object(p.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{containerWidth:e.width}}}}),Object(v.a)({querySelector:".ms2",closest:!0,debounceTime:100})),Object(p.defaultProps)({style:{marginBottom:35,marginLeft:100,marginRight:80}}),Object(d.connect)(Object(f.a)((function(e){return Object(O.c)(e,{right:!0,bottom:!0,left:!0})}),(function(e){return{mapLayoutStyle:e}}))),Object(p.withProps)((function(e){var t=e.containerWidth,n=e.style,r=e.mapLayoutStyle,o=n||{},i=o.marginLeft,a=o.marginRight,s=r.left,l=void 0===s?0:s,u=r.right,c=void 0===u?0:u;c=Ie(c)&&De(c)*t||c,l=Ie(l)&&De(l)*t||l;if(t){var d=t-c-l-i-a;return{hide:d<410,compactToolbar:d<880,style:Ae(Ae(Ae({},n),r),{},{minWidth:410})}}return{style:Ae(Ae(Ae({},n),r),{},{minWidth:410})}})),Object(p.branch)((function(e){return e.hide}),p.renderNothing),Object(p.setDisplayName)("TimelinePlugin")))((function(e){var t=e.items,n=e.options,o=e.setOptions,a=e.mapSync,s=e.toggleMapSync,l=void 0===s?function(){}:s,d=e.currentTime,p=e.setCurrentTime,f=e.offsetEnabled,h=e.onOffsetEnabled,m=e.currentTimeRange,g=e.setOffset,b=e.style,v=e.status,_=e.viewRange,O=e.moveRangeTo,S=e.compactToolbar,j=n.hideLayersName,E=n.collapsed,C=Object(r.head)(t&&t.filter((function(e){return"playback"===e.name}))),T=C&&C.plugin,k=function(e,t,n,r){var o=i()(n.end).diff(n.start)/2;if("time-current"===t&&n&&n.start.toString()!==i()(e).add(-1*o).toString()&&n.end.toString()!==i()(e).add(o).toString()&&O({start:i()(e).add(-1*o),end:i()(e).add(o)}),"range-start"===t||"range-end"===t){var a=i()(r.end).diff(r.start),s=i()(r.start).add(a/2);O(a/2<=o?{start:i()(s).add(-1*o),end:i()(s).add(o)}:{start:i()(s).add(-1*a*5/2),end:i()(s).add(5*a/2)})}};return u.a.createElement("div",{style:Ae(Ae({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},b),{},{right:E?"auto":b.right||0}),className:"timeline-plugin".concat(j?" hide-layers-name":"").concat(f?" with-time-offset":"")},f&&u.a.createElement(x.a,{clickable:!E,glyph:"range-start",onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_,m)},tooltip:u.a.createElement(y.default,{msgId:"timeline.rangeStart"}),showButtons:!0,date:d||m&&m.start,onUpdate:function(e){return(m&&Ne(e,m.end)||!m)&&"PLAY"!==v&&p(e)},className:"shadow-soft",style:{position:"absolute",top:-5,left:2,transform:"translateY(-100%)"}}),u.a.createElement("div",{className:"timeline-plugin-toolbar".concat(S?" ms-collapsed":"")},f&&m?u.a.createElement(x.a,{clickable:!E,glyph:"range-end",onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_,m)},tooltip:u.a.createElement(y.default,{msgId:"timeline.rangeEnd"}),date:m.end,showButtons:!0,onUpdate:function(e){return"PLAY"!==v&&Ne(d,e)&&g(e)}}):u.a.createElement(x.a,{clickable:!E,glyph:"time-current",showButtons:!0,onIconClick:function(e,t){return"PLAY"!==v&&k(e,t,_)},tooltip:u.a.createElement(y.default,{msgId:"timeline.currentTime"}),date:d||m&&m.start,onUpdate:function(e){return(m&&Ne(e,m.end)||!m)&&"PLAY"!==v&&p(e)}}),u.a.createElement("div",{className:"timeline-plugin-btn-group"},u.a.createElement(w.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"list",tooltip:u.a.createElement(y.default,{msgId:j?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:j?"primary":"success",visible:!E,active:!j,onClick:function(){return o(Ae(Ae({},n),{},{hideLayersName:!j}))}},{glyph:"time-offset",bsStyle:f?"success":"primary",active:f,disabled:"PLAY"===v,tooltip:u.a.createElement(y.default,{msgId:f?"timeline.disableRange":"timeline.enableRange"}),onClick:function(){"PLAY"!==v&&h(!f)}},{glyph:"map-synch",tooltip:u.a.createElement(y.default,{msgId:a?"timeline.mapSyncOn":"timeline.mapSyncOff"}),bsStyle:a?"success":"primary",active:a,onClick:function(){return l(!a)}}]}),T&&u.a.createElement(T,Te({},C,{settingsStyle:{right:E||S?40:"unset"}}))),u.a.createElement(Me,{onClick:function(){return o(Ae(Ae({},n),{},{collapsed:!E}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:u.a.createElement(y.default,{msgId:E?"timeline.expand":"timeline.collapse"})},u.a.createElement(c.Glyphicon,{glyph:E?"chevron-up":"chevron-down"}))),!E&&u.a.createElement(ye,{offsetEnabled:f,playbackEnabled:!0,hideLayersName:j}))}));t.a={TimelinePlugin:s()(Re,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:u.a.createElement(Ce,null),position:0}}),reducers:{dimension:n("./MapStore2/web/client/reducers/dimension.js").default,timeline:n("./MapStore2/web/client/reducers/timeline.js").default},epics:n("./MapStore2/web/client/epics/timeline.js").default}},"./MapStore2/web/client/plugins/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-redux/es/index.js"),l=(n("./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css"),n("./node_modules/react-transition-group/index.js")),u=n("./MapStore2/web/client/selectors/featuregrid.js"),c=n("./MapStore2/web/client/selectors/maplayout.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./node_modules/object-assign/index.js"),f=n.n(p),h=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function m(e){return(m="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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"toolbar";return Object(s.connect)(P(e))(A)},reducers:{controls:n("./MapStore2/web/client/reducers/controls.js").default}}},"./MapStore2/web/client/plugins/ZoomAll.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/plugins/zoomall/zoomall.css");var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/actions/map.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),f=n("./MapStore2/web/client/components/misc/Button.jsx"),h=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),m=n("./MapStore2/web/client/utils/MapUtils.js"),g=n("./MapStore2/web/client/utils/ConfigUtils.js");function y(e){return(y="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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n0&&u.a.createElement(s,w({},t.innerProps,{mapType:e.props.mapType,tools:l,panels:t.childPanels}))),t)})),A(T(e),"renderTools",(function(){return e.props.tools.map(e.renderTool)})),A(T(e),"renderPanels",(function(){return e.props.panels.filter((function(e){return!e.panel.loadPlugin})).map((function(t){var n=t.panel,r=u.a.createElement(n,w({key:t.name,mapType:e.props.mapType},t.cfg,t.props||{},{items:t.items||[]})),o=t.title?u.a.createElement(g.default,{msgId:t.title}):null;return t.wrap?u.a.createElement(c.Collapse,{key:"mapToolBar-item-collapse-"+t.name,in:e.props.activePanel===t.name},u.a.createElement(c.Panel,{header:o,style:e.props.panelStyle,className:e.props.panelClassName},r)):r}))})),A(T(e),"mergeHandlers",(function(e,t){return Object.keys(t).reduce((function(n,r){return i()(n,A({},r,e[r]?Object(p.d)(e[r],t[r]):t[r]))}),e)})),A(T(e),"addTooltip",(function(t,n){if(n.tooltip){var r=u.a.createElement(c.Tooltip,{id:e.props.id+"-"+n.name+"-tooltip"},u.a.createElement(g.default,{msgId:n.tooltip}));return u.a.createElement(y.a,{key:e.props.id+"-"+n.name+"-overlay",rootClose:!0,placement:"left",overlay:r},t)}return t})),e}return t=s,(n=[{key:"render",value:function(){var e=this.props.container;return u.a.createElement("span",{id:this.props.id,style:this.props.containerWrapperStyle},u.a.createElement(e,{id:this.props.id+"-container",style:this.props.style,className:this.props.className},this.renderTools()),this.renderPanels())}}])&&S(t.prototype,n),o&&S(t,o),s}(u.a.Component);A(M,"propTypes",{id:s.a.string.isRequired,container:s.a.func,containerWrapperStyle:s.a.object,tool:s.a.func,className:s.a.string,style:s.a.object,tools:s.a.array,panels:s.a.array,mapType:s.a.string,toolStyle:s.a.string,activeStyle:s.a.string,toolSize:s.a.string,stateSelector:s.a.string.isRequired,eventSelector:s.a.string,panelStyle:s.a.object,panelClassName:s.a.string,activePanel:s.a.string,toolCfg:s.a.object}),A(M,"contextTypes",{messages:s.a.object,router:s.a.object}),A(M,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:b.a,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),t.a=M},"./MapStore2/web/client/plugins/drawer/drawer.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/drawer/drawer.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/identify/identify.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/locale/Message.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),o=n("./MapStore2/web/client/components/I18N/Message.jsx");t.a=Object(r.connect)((function(e){return{locale:e.locale&&e.locale.currentLocale,messages:e.locale&&e.locale.messages||[]}}))(o.default)},"./MapStore2/web/client/plugins/locate/locate.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/locate/locate.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$":function(e,t,n){var r={"./cesium/index":["./MapStore2/web/client/plugins/map/cesium/index.js",24],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",2,7,12,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",2,3,5,7,17]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$",e.exports=o},"./MapStore2/web/client/plugins/map/css/map.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/maploading/maploading.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/metadataexplorer/css/style.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/metadataexplorer/css/style.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/omnibar/omnibar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/print/print.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/scalebox/scalebox.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/img/layers.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3woCDCsUqrUEAAAAAQxJREFUOMvN0iFLw1EUBfCf02Q0LGhQQVZekiU/gTAYImpasMi6VVBhwSCsi0kQbIJFsBoMBjHdpKDJMjBaxM3yhCn7z4HF29695xzuue/wxxofNkwp1crl8kKn03kswowVEEvYx25utdCKiO6vAimlKZxh+cfoCo2IeC0USClVcY7Zgo2fsR4Rd1+NUh95CzdDyDCHm4z9LoAueiMcvpexAy0sZgvzBeQnrEXE/SALM3hHFZcDyJd59pFSmh5koY1b1FDHXl61m7+zjpWMaX+RJvoEGjjAKZawncFwjSM0cYidYTlYxQkCGzmt56hgMyIuRkliJZPKWeAlH+9hpChnkUkc52czIt78y/oEtThIARE8NNwAAAAASUVORK5CYII="},"./MapStore2/web/client/plugins/zoom/zoom.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/zoomall/zoomall.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,n){e.exports=n.p+"symbolMissing.svg"},"./MapStore2/web/client/reducers/catalog.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/catalog.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./node_modules/uuid/index.js"),c=n.n(u);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t${description}

"};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{default:{services:{},selectedService:"",newService:{}},delayAutoSearch:1e3,loading:!1,pageSize:4,services:{},selectedService:"",newService:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.w:return f(f({},e),{},{saving:t.status});case r.t:return l()({},e,{result:t.result,searchOptions:t.searchOptions,loadingError:null,layerError:null,loading:!1});case r.v:return l()({},e,{result:null,loadingError:null,searchOptions:null});case r.u:return l()({},e,{result:null,searchOptions:null,loadingError:t.error,loading:!1,layerError:null});case r.f:return l()({},e,{result:null,loadingError:null,format:t.format,layerError:null});case r.c:return l()({},e,{layerError:t.error});case r.g:return l()({},e,{newService:t.isNew?m:l()({},e.services&&e.services[e.selectedService||""]||{},{oldService:e.selectedService||""}),mode:t.mode,result:null,loadingError:null,layerError:null});case o.d:return e&&!Object(a.isNil)(e.default)?t.config&&!Object(a.isNil)(t.config.catalogServices)?l()({},e,{services:t.config.catalogServices.services,selectedService:t.config.catalogServices.selectedService}):l()({},e,{services:e.default.services,selectedService:e.default.selectedService}):e;case r.r:return Object(i.e)("openCatalogServiceList",t.status,e);case r.l:return Object(i.e)("searchOptions.text",t.text,e);case r.k:return Object(i.e)('newService["'.concat(t.property,'"]'),t.value,e);case r.m:return Object(i.e)("newService.title",t.title,e);case r.o:return Object(i.e)("newService.url",t.url,e);case r.j:return Object(i.e)("newService.format",t.format,e);case r.n:var n=t.newType.toLowerCase(),s={};return"csw"!==n&&(s={showTemplate:!1,metadataTemplate:""}),l()({},e,{newService:l()({},e.newService,f({type:n},s))});case r.a:var u=t.service,p=u.isNew,g=d(u,["isNew"]),y=p?g.title+c()():e.selectedService,b=l()({},e.services,h({},y,g));return l()({},e,{services:b,selectedService:y,mode:"view",result:null,loadingError:null,searchOptions:l()({},e.searchOptions,{text:""}),layerError:null});case r.i:return t.service!==e.selectedService?l()({},e,{selectedService:t.service,result:null,loadingError:null,layerError:null}):e;case r.p:var v,w="";return delete(v=l()({},e.services))[t.service],Object.keys(v).length&&(w=v[Object.keys(v)[0]].title),l()({},e,{services:v,selectedService:w,mode:"view",result:null,loadingError:null,layerError:null});case r.B:return Object(i.e)("newService.hideThumbnail",!e.newService.hideThumbnail,e);case r.x:return Object(i.e)("loading",t.loading,e);case r.h:return Object(i.e)("newService.metadataTemplate",t.metadataTemplate,e);case r.A:var x=Object(i.e)("newService.showTemplate",!e.newService.showTemplate,e);return x.newService.showTemplate&&(x=Object(i.e)("newService.metadataTemplate",x.newService.metadataTemplate||"

${description}

",x)),x;case r.z:return Object(i.e)("newService.showAdvancedSettings",!e.newService.showAdvancedSettings,e);default:return e}}},"./MapStore2/web/client/reducers/dimension.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/dimension.js"),o=n("./MapStore2/web/client/actions/layers.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./node_modules/moment/moment.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:return Object(a.e)("data[".concat(t.dimension,"][").concat(t.layerId,"]"),t.data,e);case r.b:return Object(a.e)("currentTime",t.time,e);case r.c:return Object(a.e)("offsetTime",t.offsetTime,e);case r.a:if(e.offsetTime&&e.currentTime){var n=l()(e.offsetTime).diff(e.currentTime),s=l()(t.time).add(n);return Object(a.e)("currentTime",t.time,Object(a.e)("offsetTime",s.toISOString(),e))}return Object(a.e)("currentTime",t.time,e);case o.t:var c=Object(u.mapValues)(e.data,(function(e){return Object(u.pickBy)(e,(function(e,n){return n!==t.node}))}));return Object(a.e)("data",c,e);case i.a:return Object(a.e)("data",void 0,Object(a.e)("currentTime",void 0,Object(a.e)("offsetTime",void 0,e)));default:return e}}},"./MapStore2/web/client/reducers/mapInfo.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/mapInfo.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js");function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.p:return s()({},e,{warning:"NO_QUERYABLE_LAYERS"});case r.e:return s()({},e,{warning:null});case r.c:return s()({},e,{enabled:t.enabled});case r.x:return s()({},e,{enabled:!e.enabled});case r.d:return s()({},e,{index:t.index});case r.w:return s()({},e,{highlight:t.enabled});case r.o:var a=t.reqId,l=t.request,u=e.requests||[];return s()({},e,{requests:[].concat(d(u),[{request:l,reqId:a}])});case r.q:e.index,e.loaded;var p=c(e,["index","loaded"]);return h(h({},p),{},{queryableLayers:[],responses:[],requests:[]});case r.n:return g(e,t,"data");case r.i:return g(e,t,"exceptions");case r.h:return g(e,t,"error");case r.j:return s()({},e,{clickPoint:t.point,clickLayer:t.layer||null,itemId:t.itemId||null,overrideParams:t.overrideParams||null,filterNameList:t.filterNameList||null});case r.b:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{infoFormat:t.infoFormat})});case r.t:return s()({},e,{showMarker:!0});case r.l:return s()({},e,{showMarker:!1});case r.u:return s()({},e,{showModalReverse:!0,reverseGeocodeData:t.reverseGeocodeData});case r.m:return s()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case i.a:return s()({},e,{showMarker:!1,responses:[],requests:[]});case r.k:var f,m=n("./node_modules/turf-buffer/index.js"),b=n("./node_modules/turf-intersect/index.js"),v={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[t.request.lng,t.request.lat]}},w=t.metadata&&t.metadata.units;switch(w){case"m":w="meters";break;case"deg":w="degrees";break;case"mi":w="miles";break;default:w="meters"}var x,_=t.metadata&&t.metadata.resolution||1,O=m(v,(t.metadata.buffer||1)*_,w),S=(t.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,n){var r=n.properties.useGeodesicLines&&n.properties.geometryGeodesic?h(h({},n),{},{geometry:n.properties.geometryGeodesic}):n;return e||b(O,_&&t.metadata.buffer&&w?m(r,1,"meters"):r)}),!1):b(O,_&&t.metadata.buffer&&w?m(e,1,"meters"):e)}catch(e){return!1}})),j=e.responses||[],E="hover"===(null==e||null===(f=e.configuration)||void 0===f?void 0:f.trigger)||!1,C={response:{crs:null,features:S,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:t.request,layerMetadata:t.metadata,format:"JSON"};E?(j=[].concat(d(j),[C]),x={reqId:0}):(j[e.requests.length]=C,x={reqId:e.requests.length});var T=[].concat(d(e.requests),[{}]);return g(s()({},e,{requests:T,queryableLayers:t.queryableLayers,responses:d(j)}),x,"vector");case r.z:return s()({},e,{centerToMarker:t.status});case r.v:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case o.d:return h(h({},e),{},{configuration:t.config.mapInfoConfiguration||e.configuration||{}});case r.a:return h(h({},e),{},{formatCoord:t.format});case r.y:return h(h({},e),{},{showCoordinateEditor:!t.showCoordinateEditor});case r.r:return h(h({},e),{},{currentEditFeatureQuery:t.query});case r.s:return h(h({},e),{},{configuration:h(h({},e.configuration),{},{trigger:t.trigger})});default:return e}}},"./MapStore2/web/client/reducers/maplayout.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/maplayout.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout:{},boundingMapRect:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:var n=t.layout,o=n.boundingMapRect,a=void 0===o?{}:o,l=u(n,["boundingMapRect"]);return i()({},e,{layout:i()({},l,l),boundingMapRect:s({},a)});default:return e}}},"./MapStore2/web/client/reducers/maps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/actions/maps.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{enabled:!1,showMapDetails:!0,errors:[],searchFilter:{},searchText:"",results:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.j:return i()({},e,{searchText:t.text});case r.u:return i()({},e,{searchFilter:c(c({},e.searchFilter),{},d({},t.filter,t.filterData))});case r.x:return i()({},e,{searchFilter:t.searchFilter});case r.w:return i()({},e,{contexts:t.contexts});case r.c:return i()({},e,{loading:t.value,loadFlags:c(c({},e.loadFlags||{}),"loading"!==t.name?d({},t.name,t.value):{})});case r.p:return i()({},e,{metadata:i()({},e.metadata,d({},t.prop,t.value))});case r.g:return i()({},e,{loading:!0,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});case r.f:if(t.maps&&t.maps.results&&Array.isArray(t.maps.results))return i()({},e,t.maps,{loading:!1,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});var n=""!==t.maps.results?[t.maps.results]:[];return i()({},e,t.maps,{results:n,loading:!1});case r.h:return{loadingError:t.error};case r.o:for(var o=""===e.results||Object(a.isNil)(e.results)?[]:s(e.results),l=0;l0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAP_TYPE_CHANGED":return{mapType:t.mapType};default:return e}}},"./MapStore2/web/client/reducers/measurement.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/measurement.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/web/client/utils/MeasurementUtils.js"),s=n("./MapStore2/web/client/utils/openlayers/DrawUtils.js"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/object-assign/index.js"),c=n.n(u);function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.g:var n,u=Object(l.findIndex)(e.features,(function(e){return("bearing"===(e.properties.values[0]||{}).type?"Bearing":e.geometry.type)===t.geomType}));return c()({},e,{lineMeasureEnabled:t.geomType!==e.geomType&&"LineString"===t.geomType,areaMeasureEnabled:t.geomType!==e.geomType&&"Polygon"===t.geomType,bearingMeasureEnabled:t.geomType!==e.geomType&&"Bearing"===t.geomType,geomType:t.geomType===e.geomType?null:t.geomType,features:null===t.geomType?[]:e.features,textLabels:null===t.geomType?[]:e.textLabels,feature:{properties:{disabled:!0}},currentFeature:-1!==u?u:(null===(n=e.features)||void 0===n?void 0:n.length)||0,len:0,area:0,bearing:0});case r.f:var p=t.feature;return Object(s.c)(p)&&(p=Object(i.e)("geometry.coordinates[0]",Object(l.dropRight)(p.geometry.coordinates[0]),p)),c()({},e,{lineMeasureEnabled:t.lineMeasureEnabled,areaMeasureEnabled:t.areaMeasureEnabled,bearingMeasureEnabled:t.bearingMeasureEnabled,geomType:t.geomType,values:t.values,feature:Object(i.e)("properties.disabled",e.feature.properties.disabled,p),point:t.point,len:t.len,area:t.area,bearing:t.bearing,lenUnit:t.lenUnit,areaUnit:t.areaUnit});case r.o:var h=t.measures,b=h.point,v=h.len,w=h.area,x=h.bearing;return m(m({},e),{},{point:b,len:v,area:w,bearing:x});case r.j:var _=Object(i.e)("feature.properties.disabled",!0,e);return m(m({},_),{},{isDrawing:!0,updatedByUI:!1});case r.h:var O,S="length"===t.uom?"lenUnit":"lenArea",j=t.value,E=j.value,C=j.label;return c()({},e,(g(O={},S,E),g(O,"uom",c()({},t.previousUom,g({},t.uom,{unit:E,label:C}))),g(O,"updatedByUI",!0),O));case r.c:var T=t.features,k=Object(a.b)(T);return m(m({},e),{},{features:T,geomTypeSelected:k,updatedByUI:!1,isDrawing:!1},Object(l.isEmpty)(T)&&{exportToAnnotation:!1});case r.m:var A=t.property,P=t.value;return m(m({},e),{},g({},A,P));case r.k:var M=t.features,I=Object(a.b)(M);return m(m({},e),{},{features:M,geomTypeSelected:I,updatedByUI:!0,isDrawing:!1,exportToAnnotation:!0,id:t.id});case r.n:return m(m({},e),{},{textLabels:t.textLabels});case r.l:return m(m({},e),{},{currentFeature:Object(l.isNumber)(t.featureIndex)?t.featureIndex:e.features.length});case o.d:e.id;var D=f(e,["id"]);return"info"===t.control?m(m({},D),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""}):"measure"===t.control?m(m({},D),{},{geomType:"",lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1}):e;case o.c:return"measure"===t.control&&!1===t.value?m(m({},e),{},{geomType:"",lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1}):e;case o.a:return m(m({},e),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""});case r.e:return m(m({},e),{},{format:t.format});case r.i:return m(m({},e),t.defaultOptions);case r.d:var N=t.coordinates.map((function(e){return[e.lon,e.lat]})),R=e.features||[],L=R[e.currentFeature]||{},F=N.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==N.length;return m(m({},e),{},{feature:{type:"Feature",properties:{disabled:N.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==N.length},geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[Object(l.dropRight)(N)]:N}},features:[].concat(d(R.slice(0,e.currentFeature)),[m(m({},L),{},{type:"Feature",properties:m(m({},L.properties||{}),{},{disabled:F||e.bearingMeasureEnabled&&N.length<2}),geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[[].concat(d(N),[N[0]])]:N}})],d(R.slice(e.currentFeature+1,R.length))),updatedByUI:!0});default:return e}}},"./MapStore2/web/client/reducers/notifications.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/notifications.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case r.c:t.type;var n=u(t,["type"]);return[].concat(s(e),[i({},n)]);case r.b:return e.filter((function(e){return e.uid!==t.uid}));case r.a:return[];default:return e}}},"./MapStore2/web/client/reducers/query.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/wfsquery.js"),o=n("./MapStore2/web/client/actions/queryform.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.f:return s()({},e,{typeName:t.typeName,url:t.url});case r.e:return s()({},e,{featureTypes:s()({},e.featureTypes,l({},t.typeName,t.featureType))});case r.d:return s()({},e,{featureTypes:s()({},e.featureTypes,l({},t.typeName,{error:t.error}))});case r.c:return s()({},e,{featureLoading:t.isLoading});case r.b:return s()({},e,{featureLoading:!1,data:s()({},e.data,l({},t.typeName,d(t.feature)))});case r.a:return s()({},e,{featureLoading:!1,featureTypes:s()({},e.data,l({},t.typeName,{error:t.error}))});case r.j:return s()({},e,{isNew:!0,searchUrl:t.searchUrl,filterObj:t.filterObj});case r.p:return s()({},e,{filterObj:s()({},e.filterObj,t.updates)});case r.l:return s()({},e,{isNew:!1,result:t.result,searchUrl:t.searchUrl,filterObj:t.filterObj,resultError:null});case r.k:return s()({},e,{isNew:!1,result:null,resultError:t.error});case i.a:case o.n:return t.skip&&t.skip.indexOf("query")>=0?e:s()({},e,{isNew:!1,result:null,filterObj:null,searchUrl:null});case r.m:return s()({},e,{result:null,resultError:null});case r.o:return s()({},e,{syncWmsFilter:!e.syncWmsFilter});case r.n:return s()({},e,{isLayerFilter:!e.isLayerFilter});default:return e}}},"./MapStore2/web/client/reducers/queryform.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/queryform.js"),o=n("./MapStore2/web/client/actions/draw.js"),i=n("./node_modules/object-assign/index.js"),a=n.n(i),s=n("./node_modules/turf-union/index.js"),l=n.n(s),u=n("./node_modules/turf-bbox/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/utils/ImmutableUtils.js");function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a()({},t,(v(e={},n.fieldName,n.fieldValue),v(e,"type",n.fieldType),e),{fieldOptions:a()({},b({},t.fieldOptions),{currentPage:void 0===n.fieldOptions.currentPage?1:n.fieldOptions.currentPage})});return"attribute"===n.fieldName&&(r.value="string"===n.fieldType?"":null,r.operator="="),"operator"===n.fieldName&&(r.value=null),r};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:var n={rowId:(new Date).getTime(),groupId:t.groupId,attribute:null,operator:"=",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};return a()({},e,{filterFields:e.filterFields?[].concat(m(e.filterFields),[n]):[n]});case r.r:return a()({},e,{filterFields:e.filterFields.filter((function(e){return e.rowId!==t.rowId}))});case r.H:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?x(e,t):e}))});case r.I:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.filterField.rowId?a()({},e,{options:a()({},b({},e.options),v({},e.attribute,t.options))},{fieldOptions:a()({},b({},e.fieldOptions),{valuesCount:t.valuesCount})}):e}))});case r.E:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?a()({},e,{openAutocompleteMenu:t.status}):e}))});case r.z:return a()({},e,{autocompleteEnabled:t.status});case r.l:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.filterField.rowId?a()({},e,{loading:t.status}):e}))});case r.G:return a()({},e,{filterFields:e.filterFields.map((function(e){return e.rowId===t.rowId?a()({},e,{exception:t.exceptionMessage}):e}))});case r.c:var i={id:(new Date).getTime(),logic:"OR",groupId:t.groupId,index:t.index+1};return a()({},e,{groupFields:e.groupFields?[].concat(m(e.groupFields),[i]):[i]});case r.K:return a()({},e,{groupFields:e.groupFields.map((function(e){return e.id===t.groupId?a()({},e,{logic:t.logic}):e}))});case r.s:return a()({},e,{filterFields:e.filterFields.filter((function(e){return e.groupId!==t.groupId})),groupFields:e.groupFields.filter((function(e){return e.id!==t.groupId}))});case r.e:return a()({},e,{filterFields:e.filterFields.map((function(e){for(var n=0;n0?a()({},e,{values:t.data.features,open:!0,error:null}):e}))})});case r.O:return a()({},e,{spatialField:a()({},e.spatialField,{zoneFields:e.spatialField.zoneFields.map((function(e){return e.id===t.id?a()({},e,{busy:t.active}):e}))})});case r.M:var _,O,S=e.spatialField.zoneFields.map((function(e){if(e.id===t.id){if(_=e.multivalue?t.value.value:t.value.value[0],t.value.feature[0]){var n=t.value.feature[0],r=n.geometry_name;if(e.multivalue&&t.value.feature.length>1){for(var o=1;o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s()({},e,l({},t.property,t.value));case i.d:var n=t.config.map.text_search_config||t.config.map.text_serch_config;return s()({},e,{textSearchConfig:n});case o.a:case r.a:return s()({},e,{service:void 0,page:t.page,init_service_values:void 0,editIdx:void 0});case r.c:var a=(e.textSearchConfig&&e.textSearchConfig.services||[]).slice(),u=s()({},t.service,{priority:parseInt(t.service.priority,10)});return-1!==t.idx?a[t.idx]=u:a.push(u),s()({},e,{service:void 0,page:0,init_service_values:void 0,editIdx:void 0,textSearchConfig:{services:a,override:e.textSearchConfig&&e.textSearchConfig.override||!1}});default:return e}}},"./MapStore2/web/client/reducers/styleeditor.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/styleeditor.js"),o=n("./MapStore2/node_modules/lodash/isString.js"),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.f:return s(s({},e),{},{service:t.service,canEdit:t.canEdit});case r.l:return s(s({},e),{},{canEdit:t.canEdit});case r.q:return s(s({},e),{},{temporaryId:t.temporaryId,templateId:t.templateId,code:t.code,format:t.format,error:null,languageVersion:t.languageVersion,initialCode:t.init?t.code:e.initialCode});case r.o:return""===t.status?s(s({},e),{},{status:t.status,code:"",templateId:"",initialCode:"",addStyle:!1,error:{}}):s(s({},e),{},{status:t.status});case r.i:return{service:e.service&&s({},e.service)||{},canEdit:e.canEdit};case r.a:return s(s({},e),{},{addStyle:t.add});case r.h:return s(s({},e),{},{loading:!t.status||t.status,error:{}});case r.g:return s(s({},e),{},{loading:!1,enabled:!0});case r.e:var n,o,a,u=(null==t||null===(n=t.error)||void 0===n?void 0:n.statusText)||(null==t||null===(o=t.error)||void 0===o?void 0:o.message)||"",c=i()(null==t||null===(a=t.error)||void 0===a?void 0:a.messageId)&&{messageId:t.error.messageId},d=u.match(/line\s([\d]+)|column\s([\d]+)|lineNumber:\s([\d]+)|columnNumber:\s([\d]+)/g),p=d&&2===d.length&&d.reduce((function(e,t){var n=t.split(" "),r=n[0].replace(/Number:/g,""),o=parseFloat(n[1]);return r&&!isNaN(o)&&s(s({},e),{},l({},r,o))||s({},e)}),s({message:u},c))||s({message:u},c);return s(s({},e),{},{loading:!1,canEdit:!(t.error&&(401===t.error.status||403===t.error.status)),error:s(s({},e.error),{},l({},t.status||"global",s({status:t.error&&t.error.status||404},p)))});case r.n:return s(s({},e),{},{metadata:s(s({},e.metadata),t.metadata)});default:return e}}},"./MapStore2/web/client/reducers/timeline.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./MapStore2/web/client/actions/timeline.js"),a=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./MapStore2/node_modules/lodash/lodash.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:{autoSelect:!0,collapsed:!1}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.h:return Object(a.e)("settings.collapsed",t.collapsed,e);case i.i:return Object(a.e)("settings.mapSync",t.mapSync,e);case i.d:return Object(a.e)("range",{start:t.start,end:t.end},e);case i.e:return Object(a.e)("rangeData[".concat(t.layerId,"]"),{range:t.range,histogram:t.histogram,domain:t.domain},e);case i.c:return t.layerId?Object(a.e)("loading[".concat(t.layerId,"]"),t.loading,e):Object(a.e)("loading.timeline",t.loading,e);case i.f:return Object(a.e)("selectedLayer",t.layerId,e);case r.t:var n=e;return Object(s.assign)({},e,{rangeData:Object(s.has)(n.rangeData,t.node)?Object(s.pickBy)(n.rangeData,(function(e,n){return n!==t.node})):n.rangeData,loading:Object(s.has)(n.rangeData,t.node)?Object(s.pickBy)(n.loading,(function(e,n){return n!==t.node})):n.loading,selectedLayer:e.selectedLayer===t.node?void 0:e.selectedLayer});case o.a:return Object(s.assign)({},e,{range:void 0,rangeData:void 0,selectedLayer:void 0,loading:void 0,MouseEvent:void 0});default:return e}}},"./MapStore2/web/client/reducers/widgets.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/widgets.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/actions/dashboard.js"),a=n("./node_modules/object-assign/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/fp/set.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./MapStore2/web/client/utils/ImmutableUtils.js");function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:y,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case r.i:return u()("builder.settings.".concat(n.key),n.value,t);case r.j:return u()("builder.editor",n.widget,u()("builder.settings",n.settings||y.settings,t));case r.g:return u()("builder.editor",m(m({},n.widget),{},{widgetType:n.widget&&n.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(n.widget&&n.widget.widgetType||"chart")?1:0,t));case r.h:return u()("builder.editor.".concat(n.key),n.value,t);case r.m:var a=Object(d.c)("containers[".concat(n.target,"].widgets"),m(m({id:n.id},n.widget),{},{dataGrid:n.id&&{y:0,x:0,w:1,h:1}}),{id:n.widget.id||n.id},t);return a;case r.z:var l=Object(c.find)(Object(c.get)(t,"containers[".concat(n.target,"].widgets")),{id:n.id});return Object(d.c)("containers[".concat(n.target,"].widgets"),u()(n.key,"merge"===n.mode?s()({},l[n.key],n.value):n.value,l),{id:n.id},t);case r.y:if(n.layer){var f=Object(c.get)(t,"containers[".concat(r.d,"].widgets"));if(f)return u()("containers[".concat(r.d,"].widgets"),f.map((function(e){return Object(c.get)(e,"layer.id")===n.layer.id?u()("layer",n.layer,e):e})),t)}return t;case r.e:return Object(d.a)("containers[".concat(n.target,"].widgets"),{id:n.widget.id},t);case i.a:var h=n.data;return u()("containers[".concat(r.d,"]"),m({},h),t);case o.d:var g=n.config||{},b=g.widgetsConfig;return u()("containers[".concat(r.d,"]"),m({},b),t);case r.b:return u()("containers[".concat(n.target,"].layout"),n.layout)(u()("containers[".concat(n.target,"].layouts"),n.allLayouts,t));case r.c:case i.b:return u()("containers[".concat(r.d,"]"),y.containers[r.d],t);case r.a:var v=n.key,w=n.value;return u()("dependencies[".concat(v,"]"),w,t);case r.r:var x=n.key;return u()("dependencies[".concat(x,"]"),null,t);case r.n:var _=n.dependencies;return u()("dependencies",_,t);case r.s:return u()("dependencies",y.dependencies,t);case r.t:var O=n.widget,S=void 0===O?{}:O;if(S.dataGrid&&S.dataGrid.static)return t;var j=Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(S.id));if(j){var E=[].concat(p(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[])),p(Object(c.castArray)(Object(c.get)(j,"layout",[])))),C=Object(c.mapValues)(Object(c.get)(t,"containers[".concat(n.target,"].layouts"),{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[].concat(p(e),p(Object(c.castArray)(Object(c.get)(j,"layouts[".concat(t,"]"),[]))))}));return Object(c.omit)(Object(d.d)(u()("containers[".concat(n.target,"].layout"),E),u()("containers[".concat(n.target,"].layouts"),C))(t),"containers[".concat(n.target,"].collapsed[").concat(S.id,"]"))}return u()("containers[".concat(n.target,"].collapsed[").concat(S.id,"]"),{layout:Object(c.find)(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[]),{i:S.id}),layouts:Object(c.mapValues)(Object(c.get)(t,"containers[".concat(n.target,"].layouts"),{}),(function(e){return Object(c.find)(e,{i:S.id})}))},t);case r.w:var T,k,A,P,M,I,D,N,R,L,F,z,B,q,U,G,H,V,W=n.widget,Y=null==t||null===(T=t.containers)||void 0===T||null===(k=T[n.target])||void 0===k?void 0:k.maximized;if(!W||null!==(A=W.dataGrid)&&void 0!==A&&A.static)return t;if(null!=Y&&Y.widget)return Object(d.d)(u()("containers[".concat(n.target,"].layout"),Y.layout),u()("containers[".concat(n.target,"].layouts"),Y.layouts),u()("containers[".concat(n.target,"].maximized"),{}),u()("containers[".concat(n.target,"].widgets"),null==t||null===(G=t.containers)||void 0===G||null===(H=G[n.target])||void 0===H||null===(V=H.widgets)||void 0===V?void 0:V.map((function(e){return e.id===Y.widget.id?m(m({},e),{},{dataGrid:m(m({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(P=t.containers)&&void 0!==P&&null!==(M=P[n.target])&&void 0!==M&&null!==(I=M.collapsed)&&void 0!==I&&I[W.id])return t;var K={x:0,y:0,w:1,h:1},X=Object(c.find)(null==t||null===(D=t.containers)||void 0===D||null===(N=D[n.target])||void 0===N?void 0:N.layout,{i:W.id}),Z=m(m({},X),K);return Object(d.d)(u()("containers[".concat(n.target,"].maximized"),{widget:W,layout:null==t||null===(R=t.containers)||void 0===R||null===(L=R[n.target])||void 0===L?void 0:L.layout,layouts:null==t||null===(F=t.containers)||void 0===F||null===(z=F[n.target])||void 0===z?void 0:z.layouts}),u()("containers[".concat(n.target,"].layout"),[Z]),u()("containers[".concat(n.target,"].layouts"),{xxs:[Z]}),u()("containers[".concat(n.target,"].widgets"),null==t||null===(B=t.containers)||void 0===B||null===(q=B[n.target])||void 0===q||null===(U=q.widgets)||void 0===U?void 0:U.map((function(e){return e.id===W.id?m(m({},e),{},{dataGrid:m(m({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case r.u:var Q=Object(c.get)(t,"containers[".concat(n.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),$=Q.filter((function(e){return Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),J=Q.filter((function(e){return!Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),ee=0===J.length;return ee?$.reduce((function(t,n){return e(t,Object(r.R)(n))}),t):J.length>0?J.reduce((function(t,n){return e(t,Object(r.R)(n))}),t):t;case r.x:return u()("tray",n.value,t);default:return t}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),i=n("./MapStore2/web/client/selectors/maptype.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=function(e){return e.backgroundSelector&&e.backgroundSelector.source},l=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},u=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},c=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},d=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},p=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},f=Object(r.a)(o.p,i.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(a.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return u})),n.d(t,"w",(function(){return c})),n.d(t,"x",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"u",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"t",(function(){return v})),n.d(t,"r",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return O})),n.d(t,"s",(function(){return S})),n.d(t,"i",(function(){return j})),n.d(t,"f",(function(){return E})),n.d(t,"p",(function(){return C})),n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return k})),n.d(t,"l",(function(){return A})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return M}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/selectors/map.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0},C=function(e){return x(e)&&x(e).length>0},T=function(e){return e&&e.featuregrid&&e.featuregrid.filters},k=function(e){return g(e,y(e))},A=function(e){return e&&e.featuregrid&&e.featuregrid.open},P=function(e,t){return Object(r.get)(T(e),t)},M=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.title||e.name}(g(e,y(e)));return Object(r.isObject)(t)?t[Object(a.b)(e)]||t.default||"":t},I=function(e){return(Object(p.a)(e)||[]).map((function(t){var n=function(e,t){return Object(r.get)(e,"featuregrid.attributes[".concat(t.name||t.attribute,"]"))}(e,t);return n?h(h({},t),n):t}))},D=function(e){return e&&e.featuregrid&&e.featuregrid.mode},N=function(e){return(v(e)||[]).length},R=function(e){return Object(l.p)(w(e))},L=function(e){return function(e){var t=_(e);if(t){var n=Object(l.p)(w(e));return!(!n[t.id]||null===n[t.id].geometry)||(!n[t.id]||null!==n[t.id].geometry)&&((!t._new||!Object(r.head)(x(e))||null!==Object(r.head)(x(e)).geometry)&&(!(!t._new||!Object(r.head)(x(e))||null===Object(r.head)(x(e)).geometry)||null!==t.geometry))}return!1}(e)},F=function(e){return Object(r.get)(e,"featuregrid.showAgain",!1)},z=function(e){if(Object(r.get)(e,"featuregrid.showTimeSync",!1)){var t=y(e);return Object(u.d)({id:t},"time")(e)}return null},B=function(e){return Object(r.get)(e,"featuregrid.timeSync",!1)},q=function(e){return Object(r.get)(e,"featuregrid.showPopoverSync",!0)},U=function(e){return e&&e.featuregrid&&e.featuregrid.saving},G=function(e){return e&&e.featuregrid&&e.featuregrid.saved},H=function(e){return e&&e.featuregrid&&e.featuregrid.drawing},V=function(e){return Object(r.get)(e,"featuregrid.multiselect",!1)},W=function(e){return Object(s.isSimpleGeomType)(O(e))},Y=function(e){return e.featuregrid&&e.featuregrid.dockSize},K=function(e){var t=g(e,y(e));return t&&t.name||""},X=function(e){var t=function(e){return Object(r.get)(g(e,y(e)),"params")}(e);return{viewParams:t&&(t.VIEWPARAMS||t.viewParams||t.viewparams),cqlFilter:t&&(t.CQL_FILTER||t.cqlFilter||t.cql_filter)}},Z=function(e){var t=Object(c.d)(e),n=function(e){return Object(r.get)(e,"featuregrid.editingAllowedRoles",["ADMIN"])}(e)||["ADMIN"],o=function(e){return e&&e.featuregrid&&e.featuregrid.canEdit}(e);return(-1!==n.indexOf(t)||o)&&!Object(d.a)(e)},Q=function(e){return Object(r.get)(e,"featuregrid.pagination")}},"./MapStore2/web/client/selectors/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return w})),n.d(t,"m",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"v",(function(){return S})),n.d(t,"u",(function(){return j})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"q",(function(){return k})),n.d(t,"y",(function(){return A})),n.d(t,"c",(function(){return P})),n.d(t,"k",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"f",(function(){return D})),n.d(t,"w",(function(){return N})),n.d(t,"l",(function(){return R})),n.d(t,"n",(function(){return L})),n.d(t,"z",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"h",(function(){return B}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),i=n("./MapStore2/web/client/selectors/security.js"),a=n("./MapStore2/web/client/selectors/router.js");function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},x=function(e){return Object(r.get)(e,"geostory.isSettingsEnabled",!1)},_=function(e){var t=Object(r.get)(h(e),"settings",{}),n=v(e).filter((function(e){return e.type===o.h.IMMERSIVE})),i=t.checked||[],a=Object(r.uniq)(i.map((function(e){return Object(o.o)(n,e)})).filter((function(e){return e})));return c(c({},t),{},{expanded:a})},O=function(e){return Object(r.get)(_(e),"checked",[]).reduce((function(e,t){return c(c({},e),{},d({},t,!0))}),{})},S=function(e){return!Object(r.isEqual)(Object(r.get)(h(e),"settings",{}),function(e){return Object(r.get)(e,"geostory.oldSettings",{})}(e))},j=function(e){return Object(r.get)(e,"geostory.selectedCard","")},E=function(e){return function(t){return p("".concat(e,".resourceId"))(t)}},C=function(e){return Object(r.get)(h(e),"resources",[])},T=function(e){return function(t){return Object(r.find)(C(t),{id:e})}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withImmersiveSection,n=void 0!==t&&t,r=e.includeAlways,i=void 0===r||r;return function(e){var t=v(e),r=O(e);return t.reduce((function(e,t){if(t.type===o.h.TITLE&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.PARAGRAPH&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.BANNER&&(i||r[t.id]))return[].concat(s(e),[t]);if(t.type===o.h.IMMERSIVE){var a=t.contents&&t.contents.reduce((function(e,t){return i||r[t.id]?[].concat(s(e),[c(c({},t),{},{sectionId:e.id})]):e}),[])||[];return n?[].concat(s(e),[t],s(a)):[].concat(s(e),s(a))}return e}),[])}},A=function(e){return k({includeAlways:!0})(e).length},P=function(e){return Object(r.findIndex)(k({includeAlways:!0})(e),{id:m(e).columns&&m(e).columns[m(e).sectionId]?m(e).columns[m(e).sectionId]:m(e).sectionId||""})},M=function(e){return void 0!==Object(r.get)(e,"geostory.focusedContent.target")},I=function(e){return Object(r.get)(e,"geostory.focusedContent")},D=function(e){return p(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},N=function(e){return v(e).reduce((function(e,t){if(t.type===o.h.IMMERSIVE){var n=t.contents&&t.contents.map((function(e){return{label:e.title||"",value:e.id}}))||[];return[].concat(s(e),[{label:t.title||"",value:t.id,children:n}])}return[].concat(s(e),[{label:t.title||"",value:t.id}])}),[])},R=function(e,t){return!!Object(r.find)(v(e),(function(e){return function e(t,n){var o=n.contents,i=n.background;return n.resourceId===t||(!(!i||i.resourceId!==t)||!!o&&!!Object(r.find)(o,(function(n){return e(t,n)})))}(t,e)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(e).includes("geostory/shared")},F=function(e){return Object(r.get)(e,"geostory.updateUrlOnScroll",!1)},z=function(e){return Object(r.get)(e,"geostory.currentStory.settings.theme.fontFamilies",[])},B=function(e){return Object(r.get)(e,"geostory.mediaEditorSettings")}},"./MapStore2/web/client/selectors/localizedLayerStyles.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/locale.js"),a=function(e){return Object(r.has)(e,"localConfig.localizedLayerStyles")},s=function(e){var t=Object(r.get)(e,"localConfig.plugins.dashboard",[]),n=Object(r.find)(t,(function(e){return"DashboardEditor"===e.name}))||{};return Object(r.get)(n,"cfg.catalog.localizedLayerStyles",!1)},l=function(e){return Object(r.get)(e,"localConfig.localizedLayerStyles.name","mapstore_language")},u=Object(o.a)(a,l,i.a,(function(e,t,n){var r=[];return e&&r.push({name:t,value:n}),r}))},"./MapStore2/web/client/selectors/maplayout.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/map.js"),i=n("./MapStore2/web/client/utils/MapUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=u(e);return n&&Object.keys(n).filter((function(e){return t[e]})).reduce((function(e,t){return s(s({},e),{},l({},t,n[t]))}),{})||{}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=u(e),o=!!Object(r.head)(t.filter((function(e){return n[e.key]})).map((function(e){return"not"===e.type?n[e.key]!==e.value&&n[e.key]:n[e.key]===e.value})));return o},f=function(e){return p(e,[{key:"right",value:658}])},h=function(e){return p(e,[{key:"bottom",value:30,type:"not"}])},m=function(e){var t=Object(o.l)(e),n=c(e);return n&&t&&t.size&&{left:Object(i.parseLayoutValue)(n.left,t.size.width),bottom:Object(i.parseLayoutValue)(n.bottom,t.size.height),right:Object(i.parseLayoutValue)(n.right,t.size.width),top:Object(i.parseLayoutValue)(n.top,t.size.height)}}},"./MapStore2/web/client/selectors/measurement.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/web/client/selectors/maptype.js"),o=n("./MapStore2/web/client/selectors/controls.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/web/client/utils/MeasureUtils.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return{hasNext:e[t+1],hasPrevious:e[t-1]}}))},"./MapStore2/web/client/selectors/query.js":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"n",(function(){return c})),n.d(t,"o",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"l",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"g",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t-1)||t&&t.collectGeometries&&t.operation)}},"./MapStore2/web/client/selectors/queryform.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"d",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/locale.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=function(e){return Object(r.get)(e,"queryform.crossLayerFilter")},f=function(e){return(Object(i.p)(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group;return"wms"===t&&"background"!==n})).map((function(t){var n=t.title;return u(u({},d(t,["title"])),{},{title:Object(s.e)(Object(a.b)(e),n)})}))},h=function(e){return Object(r.get)(e,"queryform.spatialField.geometry")},m=function(e){return Object(r.get)(e,"queryform.spatialField")},g=Object(o.a)((function(e){return Object(r.get)(e,"queryform.attributePanelExpanded")}),(function(e){return Object(r.get)(e,"queryform.spatialPanelExpanded")}),(function(e){return Object(r.get)(e,"queryform.crossLayerExpanded")}),(function(e,t,n){return{attributePanelExpanded:e,spatialPanelExpanded:t,crossLayerExpanded:n}})),y=function(e){return Object(r.get)(e,"layerFilter.persisted")},b=function(e){return Object(r.get)(e,"layerFilter.applied")},v=function(e){return Object(r.get)(e,"queryform.spatialField.method")},w=function(e){return Object(r.get)(e,"queryform.maxFeaturesWPS")},x=function(e){return h(e)&&h(e).type||"Polygon"},_=function(e){return h(e)&&h(e).projection||"EPSG =4326"},O=function(e){return h(e)&&h(e).coordinates||[]}},"./MapStore2/web/client/selectors/router.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return Object(r.get)(e,"router.location.pathname")||"/"},i=function(e){return Object(r.get)(e,"router.location.search")||""}},"./MapStore2/web/client/selectors/styleeditor.js":function(e,t,n){"use strict";n.d(t,"u",(function(){return u})),n.d(t,"t",(function(){return c})),n.d(t,"r",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"n",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"j",(function(){return _})),n.d(t,"h",(function(){return O})),n.d(t,"m",(function(){return S})),n.d(t,"q",(function(){return j})),n.d(t,"o",(function(){return E})),n.d(t,"i",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"p",(function(){return k}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/layers.js"),i=n("./MapStore2/web/client/utils/StyleEditorUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:i,type:"range",content:"".concat(l," items")}]:Object(s.l)({start:u,end:c,duration:i}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return _(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=m(n,3),o=r[0],i=r[1],a=r[2],l=Math.max.apply(Math,h(e.histogram.values)),u=Object(s.k)({start:o,end:i,duration:a});return e.histogram.values.map((function(e,t){return p(p({},u[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(s.i)(e.domain)?_(e.values||e.domain.split(","),t):n&&n.histogram?O(n,t):[]},j=Object(i.a)(l.i,b,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(Object.keys(e).map((function(r){return S(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(p({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(h(e),h(t))}),[]))})),E=function(e){return Object(r.get)(e,"timeline.loading")},C=function(e){return Object(r.get)(e,"timeline.selectedLayer")},T=function(e){return Object(c.g)(e,C(e))},k=function(e){return T(e)&&T(e).name},A=function(e){return T(e)&&T(e).dimensions&&Object(r.head)(T(e).dimensions.filter((function(e){return"time"===e.name})))},P=function(e){return Object(r.get)(A(e),"source.url")},M=Object(o.a)(l.a,l.h,(function(e,t){return{start:e,end:t}})),I=function(e){return Object(l.c)(e,C(e))},D=l.f,N=Object(o.a)(D,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),R=function(e){return!v(e)&&N(e)},L=function(e){return function(t){var n=(Object(u.l)(t)||{}).bbox;if(!n)return{};var o=Object(l.b)(e,"time")(t),i=Object(r.get)(o,"source.version"),s=Object.keys(n.bounds).reduce((function(e,t){return p(p({},e),{},f({},t,parseFloat(n.bounds[t])))}),{});if(!s||!x(t))return{};if("1.1"!==i){var c=Object(l.b)(e,"space")(t),d=Object(r.get)(c,"domain.CRS");if(!d||!s||!x(t))return{};var h=m(Object(a.reprojectBbox)(s,Object(u.o)(t),d),4),g=h[0],y=h[1],b=h[2],v=h[3];return b0;)if(!n[s=i.shift()])for(n[s]=!0,a.push(s),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},i=Object.keys(o).map((function(t){return m(o[t],e)}))||[];return[].concat(d(t),d(i.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),b=n("./node_modules/reselect/es/index.js"),v=n("./MapStore2/web/client/utils/ReselectUtils.js");function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),T=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].widgets"))},k=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].collapsed"))},A=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].maximized"))},P=Object(b.a)(T,k,A,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),M=Object(b.a)(k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),I=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},D=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},N=Object(b.a)(I,D,o.l,a.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),R=Object(b.a)(I,D,o.l,a.a,E,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=i&&"map"!==i.widgetType?i&&i.layer||{}:i&&i.map&&i.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(a)||a.name===e.layer.name})).filter((function(e){return i&&i.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),L=function(e){return Object(r.get)(O(e),"".concat(s.f))},F=function(e){return Object(r.get)(L(e),"active")},z=(Object(b.a)(T,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=u(g(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(c.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layouts"))}),B=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layout"))},q=function(e){return Object(r.get)(e,"widgets.tray")},U=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},G=function(e){return Object(r.get)(E(e),"filter")},H=Object(v.a)(S,j,(function(e){return j(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.l)(e),t.slice(4)):t.match(s.A)?function(e,t){var n=s.A.exec(e),o=n&&n[2],i=m(e,t);return o?Object(r.get)(i,o):i}(t,T(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return x(x({},t),{},_({},Object.keys(e)[o],n[o]))}),{})}));Object(b.c)({widgets:T,layouts:z})},"./MapStore2/web/client/utils/AnnotationsUtils.js":function(e,t,n){"use strict";var r=n("./node_modules/uuid/v1.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/LocaleUtils.js"),a=n("./MapStore2/web/client/utils/MarkerUtils.js"),s=n("./MapStore2/web/client/utils/VectorStyleUtils.js"),l=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/node_modules/lodash/lodash.js"),c=n("./node_modules/uuid/index.js"),d=n.n(c),p=n("./node_modules/@turf/meta/main.es.js");var f=function(e){var t=[1/0,1/0,-1/0,-1/0];return Object(p.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return-1!==e.indexOf("rgba")?"rgb".concat(e.slice(e.indexOf("("),e.lastIndexOf(",")),")"):e},M=function(e){return("start"===e?"lm":"end"===e&&"rm")||"cm"},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.features,o=void 0===r?[]:r;return"FeatureCollection"===n?o.reduce((function(e,t){return e[t.geometry.type]=k[t.geometry.type],e}),{type:"FeatureCollection"}):x({},k[n])},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x({title:"annotations.defaulttitle"!==Object(i.f)(t,"annotations.defaulttitle")?Object(i.f)(t,"annotations.defaulttitle"):"Default title",id:o()()},e)},N=function(e){return Object(u.isString)(e)&&e||Object(u.isArray)(e)&&e.join(" ")},R=function(e){return e.color&&e.opacity&&e.weight},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t&&t[e]?t[e]:t,o=r,i=o.dashArray?N(o.dashArray):"solid";switch(e){case"MultiPolygon":case"Polygon":case"Circle":return{strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,fillColor:P(o.fillColor),fillOpacity:o.fillOpacity,strokeDashstyle:i};case"LineString":case"MultiLineString":return{strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i};case"Text":var l=R(o)?{labelOutlineColor:P(o.color),labelOutlineOpacity:o.opacity,labelOutlineWidth:o.weight}:{};return x({fontStyle:o.fontStyle,fontSize:o.fontSize,fontFamily:o.fontFamily,fontWeight:o.fontWeight,labelAlign:M(o.textAlign),fontColor:P(o.fillColor),fontOpacity:o.fillOpacity,label:n,stroke:!0,strokeColor:P(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i},l);case"Point":case"MultiPoint":var c=o.symbolUrl&&Object(s.fetchStyle)(Object(s.hashAndStringify)(o),"base64")||a.a.extraMarkers.markerToDataUrl(o),d=-18,p=-46;return o.iconAnchor&&Object(u.isArray)(o.iconAnchor)&&o.size&&(d="pixels"===o.anchorXUnits?-1*o.iconAnchor[0]:-1*o.size*o.iconAnchor[0],p="pixels"===o.anchorYUnits?-1*o.iconAnchor[1]:-1*o.size*o.iconAnchor[1]),c?{graphicWidth:o.size||36,graphicHeight:o.size||46,externalGraphic:c,graphicXOffset:d,graphicYOffset:p,display:!1===o.filtering&&"none"}:{fillColor:"#0000AE",fillOpacity:.5,strokeColor:"#0000FF",pointRadius:10,strokeOpacity:1,strokeWidth:1,display:!1===o.filtering&&"none"};default:return{fillColor:"#FF0000",fillOpacity:0,strokeColor:"#FF0000",pointRadius:5,strokeOpacity:1,strokeDashstyle:i,strokeWidth:1}}},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"FeatureCollection"===t.type?e.concat(t.features.map((function(e){return Object(u.castArray)(e.style||t.style||{}).filter((function(e){return!!Object(u.isNil)(e.filtering)||e.filtering})).map((function(t){return O.fromAnnotationToGeoJson(x(x({},e),{},{style:t}))}))})).reduce((function(e,t){return e.concat(t)}),[])):t.geometry&&"GeometryCollection"===t.geometry.type?e.concat(O.flattenGeometryCollection(t)):e.concat({type:"Feature",geometry:t.geometry,properties:x(x({},t.properties),{},{ms_style:L(t.geometry.type,t.style)})})}),[])},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lat,n=e.lon;return!isNaN(parseFloat(t))&&!isNaN(parseFloat(n))},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.lon,e.lat]},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[[]]],t=e[0].filter(O.validateCoordsArray);return t.length>3&&Object(u.head)(t)[0]===Object(u.last)(t)[0]&&Object(u.head)(t)[1]===Object(u.last)(t)[1]};O={ANNOTATION_TYPE:"ms2-annotations",convertGeoJSONToInternalModel:function(e){var t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];switch(n){case"Point":case"MultiPoint":return{type:1===s.length?"Text":n};case"Polygon":return{type:1===l.length?"Circle":n};case"GeometryCollection":var u=o.filter((function(e){return"Point"===e.type||"MultiPoint"===e.type})),c=o.filter((function(e){return"Polygon"===e.type})),d=0,p=0;return{type:"GeometryCollection",geometries:o.map((function(e){if("Point"===e.type||"MultiPoint"===e.type){if(u.length===s.length)return{type:"Text"};if(0===s.length)return{type:e.type};if(0===d)return d++,{type:"Text"}}if("Polygon"===e.type){if(c.length===l.length)return{type:"Circle"};if(0===l.length)return{type:e.type};if(0===p)return p++,{type:"Circle"}}return{type:e.type}}))};case"FeatureCollection":var f=a.map((function(e){return e.properties&&e.properties.isCircle?{type:"Circle"}:e.properties&&e.properties.isText?{type:"Text"}:{type:e.geometry.type}}));return{type:"FeatureCollection",features:f};default:return{type:n}}},getAvailableStyler:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i;switch(n){case"Point":case"MultiPoint":case"Symbol":return[O.getRelativeStyler(n)];case"LineString":case"MultiLineString":return[O.getRelativeStyler(n)];case"Polygon":case"MultiPolygon":case"Text":case"Circle":return[O.getRelativeStyler(n)];case"GeometryCollection":return o.reduce((function(e,t){return-1!==e.indexOf(O.getRelativeStyler(t.type))?e:e.concat(O.getAvailableStyler(t))}),[]);case"FeatureCollection":return a.reduce((function(e,t){return-1!==e.indexOf(O.getRelativeStyler(t.type))?e:e.concat(O.getAvailableStyler(t))}),[]);default:return[]}},getRelativeStyler:function(e){switch(e){case"Point":case"MultiPoint":return"marker";case"Symbol":return"symbol";case"Circle":return"circle";case"LineString":case"MultiLineString":return"lineString";case"Polygon":case"MultiPolygon":return"polygon";case"Text":return"text";default:return""}},createFont:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fontSize,n=void 0===t?"14":t,r=e.fontSizeUom,o=void 0===r?"px":r,i=e.fontFamily,a=void 0===i?"Arial":i,s=e.fontStyle,l=void 0===s?"normal":s,u=e.fontWeight,c=void 0===u?"normal":u;return"".concat(l," ").concat(c," ").concat(n).concat(o," ").concat(a)},DEFAULT_ANNOTATIONS_STYLES:k,STYLE_CIRCLE:S,STYLE_POINT_MARKER:j,STYLE_POINT_SYMBOL:{iconAnchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",color:"#000000",fillColor:"#000000",opacity:1,size:64,fillOpacity:1},STYLE_TEXT:E,STYLE_LINE:C,STYLE_POLYGON:T,getGeometryType:function(e){var t,n,r;return null!=e&&null!==(t=e.properties)&&void 0!==t&&t.isCircle?"Circle":null!=e&&null!==(n=e.properties)&&void 0!==n&&n.isText?"Text":null==e||null===(r=e.geometry)||void 0===r?void 0:r.type},getGeometryGlyphInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point",t={Point:{glyph:"point",label:"Point"},MultiPoint:{glyph:"point",label:"Point"},LineString:{glyph:"polyline",label:"Line"},MultiLineString:{glyph:"polyline",label:"Line"},Polygon:{glyph:"polygon",label:"Polygon"},MultiPolygon:{glyph:"polygon",label:"Polygon"},Text:{glyph:"font",label:"Text"},Circle:{glyph:"1-circle",label:"Circle"}};return t[e]},normalizeAnnotation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="FeatureCollection"===e.type?x({},e):{type:"Feature",geometry:e},r=I(n),o=D(n.properties,t);return x({style:r,properties:o},n)},removeDuplicate:function(e){return Object(u.values)(e.reduce((function(e,t){return x(x({},e),{},_({},t.properties.id,t))}),{}))},circlesToMultiPolygon:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.circles,a=void 0===i?[]:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,l=a.reduce((function(e,t){return e.concat([r[t].coordinates])}),[]);return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:l},properties:{id:o()(),ms_style:L("Circle",s)}}},fromCircleToPolygon:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return{type:"Feature",geometry:t.polygonGeom||e,properties:{id:t.id||o()(),ms_style:L("Circle",n)}}},fromTextToPoint:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return{type:"Feature",geometry:e,properties:{id:t.id||o()(),ms_style:L("Text",n,t.valueText)}}},fromLineStringToGeodesicLineString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return{type:"Feature",geometry:e.geometryGeodesic,properties:{id:e.id||o()(),ms_style:L(e.geometryGeodesic.type,t)}}},textToPoint:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.textGeometriesIndexes,a=void 0===i?[]:i,s=t.textValues,l=void 0===s?[]:s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return a.map((function(e,t){return{type:"Feature",geometry:r[e],properties:{id:o()(),ms_style:L("Text",u,l[t])}}}))},flattenGeometryCollection:function(e){var t=e.geometry,n=e.properties,r=e.style,i=n.circles&&O.circlesToMultiPolygon(t,n,r.Circle)||[],a=n.textGeometriesIndexes&&O.textToPoint(t,n,r.Text)||[],s=(n.circles||[]).concat(n.textGeometriesIndexes||[]);return t.geometries.filter((function(e,t){return-1===s.indexOf(t)})).map((function(e){return{type:"Feature",geometry:e,properties:{id:o()(),ms_style:L(e.type,r[e.type])}}})).concat(i,a)},createGeometryFromGeomFunction:function(e){var t=s.geometryFunctions[e.style.geometry]&&s.geometryFunctions[e.style.geometry].type||e.geometry.type,n=e.geometry.coordinates||[];switch(e.style.geometry){case"startPoint":n=Object(u.head)(n);break;case"endPoint":n=Object(u.last)(n);break;case"centerPoint":n=m(e).geometry.coordinates}return{type:t,coordinates:n}},fromAnnotationToGeoJson:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geometry,n=e.properties,r=void 0===n?{}:n,i=e.style,a=void 0===i?{}:i,s=a.geometry?O.createGeometryFromGeomFunction({geometry:t,properties:r,style:a,type:"Feature"}):t;return r.isCircle&&"Polygon"===s.type?O.fromCircleToPolygon(s,r,a):r.isText?O.fromTextToPoint(s,r,a):"LineString"===s.type&&r.useGeodesicLines&&a.filtering?O.fromLineStringToGeodesicLineString(r,a):{type:"Feature",geometry:s,properties:{id:r.id||o()(),ms_style:L(s.type,a)}}},annotationsToPrint:F,formatCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]];return e.map((function(e){return{lat:e&&e[1],lon:e&&e[0]}}))},getBaseCoord:function(e){switch(e){case"Polygon":case"LineString":case"MultiPoint":return[];default:return[[{lat:"",lon:""}]]}},getComponents:function(e){var t=e.type,n=e.coordinates;switch(t){case"Polygon":return O.isCompletePolygon(n)?O.formatCoordinates(Object(u.slice)(n[0],0,n[0].length-1)):O.formatCoordinates(n[0]);case"LineString":case"MultiPoint":return O.formatCoordinates(n);default:return O.formatCoordinates([n])}},addIds:function(e){return e.map((function(e){return e.properties&&e.properties.id?e:Object(l.e)("properties.id",d.a.v1(),e)}))},COMPONENTS_VALIDATION:{Point:{min:1,add:!1,remove:!1,validation:"validateCoordinates",notValid:"Add a valid coordinate to complete the Point"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 3 valid coordinates to complete the Polygon"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Circle:{add:!1,remove:!1,validation:"validateCircle",notValid:"Add a valid coordinate and a radius (m) to complete the Circle"},Text:{add:!1,remove:!1,validation:"validateText",notValid:"Add a valid coordinate and a Text value"}},validateCoords:z,validateCoordsArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=b(e,2),n=t[0],r=t[1];return!isNaN(parseFloat(r))&&!isNaN(parseFloat(n))},validateCoord:function(e){return!isNaN(parseFloat(e))},coordToArray:B,validateCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.remove,o=void 0!==r&&r,i=e.type;if(n&&n.length){var a=n.filter(O.validateCoords);return o?a.length>O.COMPONENTS_VALIDATION[i].min&&a.length===n.length:a.length>=O.COMPONENTS_VALIDATION[i].min&&a.length===n.length}return!1},validateCircle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{radius:0}:r;if(n&&n.length){var i=Object(u.head)(n);return!isNaN(parseFloat(o.radius))&&O.validateCoords(i)}return!1},validateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{valueText:""}:r;if(n&&n.length){var i=Object(u.head)(n);return o&&!!o.valueText&&O.validateCoords(i)}return!1},validateFeature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[[]]:t,r=e.type,o=e.remove,i=void 0!==o&&o,a=e.properties,s=void 0===a?{}:a;return!Object(u.isNil)(r)&&("Text"===r?O.validateText({components:n,properties:s}):"Circle"===r?O.validateCircle({components:n,properties:s}):O.validateCoordinates({components:n,remove:i,type:r}))},updateAllStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.features&&e.features.length?x(x({},e),{},{features:e.features.map((function(e){return y()({},e,{style:Object(u.castArray)(e.style).map((function(e){return y()({},e,t)}))})}))}):e},getStartEndPointsForLinestring:A,DEFAULT_SHAPE:"triangle",DEFAULT_PATH:"product/assets/symbols/",checkSymbolsError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading_symbols_path";return e.length&&-1!==Object(u.findIndex)(e,(function(e){return e===t}))},isAMissingSymbol:function(e){return e.symbolUrlCustomized===n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")},isCompletePolygon:q,getDashArrayFromStyle:N,isAnnotation:function(e){return"ms2-annotations"===(null==e?void 0:e.type)||"Annotations"===(null==e?void 0:e.name)}}},"./MapStore2/web/client/utils/CatalogUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return C})),n.d(t,"g",(function(){return k})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return P})),n.d(t,"i",(function(){return M})),n.d(t,"j",(function(){return I})),n.d(t,"h",(function(){return D}));var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/url/url.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./MapStore2/web/client/utils/LocaleUtils.js"),p=n("./MapStore2/web/client/utils/WMTSUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js"),h=n("./MapStore2/web/client/api/WMS.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=e;return r&&r.records?r.records.map((function(e){var r,a,l,u=e.dc;if(u&&u.URI){var c=Object(i.isArray)(u.URI)?u.URI:u.URI&&[u.URI]||[],p=Object(i.head)([].filter.call(c,(function(e){return"thumbnail"===e.name})))||Object(i.head)([].filter.call(c,(function(e){var t;return!e.name&&(null===(t=e.protocol)||void 0===t?void 0:t.indexOf("image/"))>-1})));r=p?p.value:null,a=Object(i.head)([].filter.call(c,(function(e){return e.protocol&&(e.protocol.match(/^OGC:WMS-(.*)-http-get-map/g)||e.protocol.match(/^OGC:WMS/g))})))}if(!a&&u&&u.references&&u.references.length){var f=Array.isArray(u.references)?u.references:[u.references];if(a=Object(i.head)([].filter.call(f,(function(e){return e.scheme&&(e.scheme.match(/^OGC:WMS-(.*)-http-get-map/g)||"OGC:WMS"===e.scheme)})))){var h=s.a.parse(a.value,!0),m=h.query&&h.query.layers||u.alternative;a=o()({},a,{name:m})}}if(!a&&u&&u.references&&u.references.length){var v=Array.isArray(u.references)?u.references:[u.references];if(l=Object(i.head)([].filter.call(v,(function(e){return e.scheme&&"WWW:DOWNLOAD-REST_MAP"===e.scheme})))){var w=u.alternative;l=o()({},l,{name:w})}}if(!r&&u&&u.references){var _=x(u);_&&(r=_.value)}var O=[];u&&u.references&&(Array.isArray(u.references)?u.references:[u.references]).filter((function(e){return e.scheme.indexOf("http-get-capabilities")>-1})).forEach((function(e){var n=0===e.value.indexOf("http")?e.value:(t&&t.catalogURL||"")+"/"+e.value;O.push({type:e.scheme,url:n})}));if(a&&a.name){0===a.value.indexOf("http")||o()({},a,{value:(t&&t.catalogURL||"")+"/"+a.value});var S={type:a.protocol||a.scheme,url:a.value,SRS:[],params:{name:a.name}};O.push(S)}if(l&&l.name){var j={type:"arcgis",url:l.value,SRS:[],params:{name:l.name}};O.push(j)}r&&(0===r.indexOf("http")||(r=(b(t&&t.url)||"")+r));var E={boundingBox:e.boundingBox&&e.boundingBox.extent&&Object(i.castArray)(e.boundingBox.extent.join(","))};if(u&&(E=g(g({},E),Object(i.sortBy)(Object.keys(u)).reduce((function(e,t){return g(g({},e),{},y({},t,Object(i.uniq)(Object(i.castArray)(u[t]))))}),{}))),u&&u.URI&&Object(i.castArray)(u.URI)&&Object(i.castArray)(u.URI).length&&(E=g(g({},E),{},{uri:[""]})),u&&u.subject&&Object(i.castArray)(u.subject)&&Object(i.castArray)(u.subject).length&&(E=g(g({},E),{},{subject:["
    "+Object(i.castArray)(u.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),O&&Object(i.castArray)(O).length?E=g(g({},E),{},{references:[""]}):delete E.references,u&&u.temporal){var C=u.temporal.split("; ");if(C.length){var T=C.filter((function(e){return-1!==e.indexOf("scheme=")})).map((function(e){var t=e.indexOf("=");return e.substr(t+1,e.length-1)}));T=T.length?T[0]:"W3C-DTF";var k=C.filter((function(e){return-1!==e.indexOf("start=")||-1!==e.indexOf("end=")})).map((function(e){var t=e.indexOf("="),r=e.substr(0,t),o=e.substr(t+1,e.length-1),a=e.length-t-1<=10;return Object(i.includes)(["start","end"],r)&&"W3C-DTF"===T&&!a?Object(d.f)(n,"catalog.".concat(r))+new Date(o).toLocaleString():Object(i.includes)(["start","end"],r)?Object(d.f)(n,"catalog.".concat(r))+o:""}));E=g(g({},E),{},{temporal:["
    "+k.map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})}}return{boundingBox:e.boundingBox,description:u&&Object(i.isString)(u.abstract)&&u.abstract||"",layerOptions:t&&t.layerOptions||{},identifier:u&&Object(i.isString)(u.identifier)&&u.identifier||"",references:O,thumbnail:r,title:u&&Object(i.isString)(u.title)&&u.title||"",tags:u&&u.tags||"",metadata:E}})):null},wms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&e.records?e.records.map((function(n){return{capabilities:n,credits:n.credits,boundingBox:h.a.getBBox(n),description:n.Abstract||n.Title||n.Name,identifier:n.Name,service:e.service,tags:"",layerOptions:g(g({},(null==t?void 0:t.layerOptions)||{}),(null==e?void 0:e.layerOptions)||{}),title:Object(c.getLayerTitleTranslations)(n)||n.Name,formats:Object(i.castArray)(n.formats||[]),dimensions:(n.Dimension&&Object(i.castArray)(n.Dimension)||[]).map((function(e){return o()({},{values:e._&&e._.split(",")||[]},e.$||{})})).filter((function(e){return e&&"time"!==e.name})),references:[{type:"OGC:WMS",url:t&&t.url,SRS:n.SRS&&(Object(i.isArray)(n.SRS)?n.SRS:[n.SRS])||[],params:{name:n.Name}}]}})):null},wmts:function(e,t){return e&&e.records?e.records.map((function(e){var n=Object(i.castArray)(p.getGetTileURL(e)||t&&t.url);1===n.length&&(n=n[0]);var r=p.getCapabilitiesURL(e),a=Object(i.castArray)(e.TileMatrixSetLink||[]).reduce((function(t,n){var r,a=Object(i.head)((e.TileMatrixSet&&Object(i.castArray)(e.TileMatrixSet)||[]).filter((function(e){return e["ows:Identifier"]===n.TileMatrixSet}))),s=a&&l.default.getEPSGCode(a["ows:SupportedCRS"]),u=n.TileMatrixSetLimits&&(n.TileMatrixSetLimits.TileMatrixLimits||[]).map((function(e){return{identifier:e.TileMatrix,ranges:{cols:{min:e.MinTileCol,max:e.MaxTileCol},rows:{min:e.MinTileRow,max:e.MaxTileRow}}}}))||a.TileMatrix.map((function(e){return{identifier:e["ows:Identifier"]}}));return o()(t,(y(r={},a["ows:Identifier"],u),y(r,s,u),r))}),{}),s=function(e){var t=e["ows:WGS84BoundingBox"];return t||(t={"ows:LowerCorner":"-180.0 -90.0","ows:UpperCorner":"180.0 90.0"}),t}(e);return{title:v(e["ows:Title"]||e["ows:Identifier"]),description:v(e["ows:Abstract"]||e["ows:Title"]||e["ows:Identifier"]),identifier:v(e["ows:Identifier"]),tags:"",layerOptions:t&&t.layerOptions||{},style:e.style,capabilitiesURL:r,queryable:e.queryable,requestEncoding:e.requestEncoding,tileMatrixSet:e.TileMatrixSet,matrixIds:a,format:e.format,TileMatrixSetLink:Object(i.castArray)(e.TileMatrixSetLink),boundingBox:{extent:[s["ows:LowerCorner"].split(" ")[0],s["ows:LowerCorner"].split(" ")[1],s["ows:UpperCorner"].split(" ")[0],s["ows:UpperCorner"].split(" ")[1]],crs:"EPSG:4326"},references:[{type:"OGC:WMTS",url:n,SRS:w(e.SRS||[],a),params:{name:e["ows:Identifier"]}}]}})):null},tms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.records){var n=t.service&&"tms"===t.service.provider;return n?e.records.map((function(e){return{title:e.title,tileMapUrl:e.href,description:"".concat(e.srs).concat(e.format?", "+e.format:""),tmsUrl:t.tmsUrl,references:[{type:"OGC:TMS",version:"1.0.0",url:t.url}]}})):e.records.map((function(e){return{title:e.title||e.provider,url:e.url,attribution:e.attribution,options:e.options,provider:e.provider,type:"tileprovider",references:[]}}))}return null},wfs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.records;return t?t.map((function(e){return g(g({},e),{},{references:[{type:"OGC:WFS-1.1.0-http-get-capabilities",url:e.url},{type:"OGC:WFS-1.1.0-http-get-feature",url:e.url}]})})):null},backgrounds:function(e){return e&&e.records?e.records.map((function(e){return{description:e.title,title:e.title,identifier:e.name,thumbnail:e.thumbURL,references:[],background:e}})):null}},O=function(e){return e.filter((function(e){return l.default.isSRSAllowed(e)})).reduce((function(e,t){return o()(e,y({},t,!0))}),{})},S=function(e,t){var n=e.split("?"),r={};n.length>=2&&n[1]&&n[1].split(/[&;]/g).forEach((function(e){var n=e.split("=");-1===t.indexOf(n[0].toLowerCase())&&(r[n[0]]=n[1])}));return{url:n[0],params:r}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,n=void 0===t?[]:t;return{wfs:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WFS"===e.type||e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-feature")>-1)}))),wms:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WMS"===e.type||e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-map")>-1)}))),wmts:Object(i.head)(n.filter((function(e){return e.type&&("OGC:WMTS"===e.type||e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-map")>-1)}))),tms:Object(i.head)(n.filter((function(e){return e.type&&("OGC:TMS"===e.type||e.type.indexOf("OGC:TMS")>-1)})))}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{references:[]};return{esri:Object(i.head)(e.references.filter((function(e){return e.type&&("ESRI:SERVER"===e.type||"arcgis"===e.type)})))}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.references,n=void 0===t?[]:t,r=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),o=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),a=Object(i.head)(n.filter((function(e){return e.type&&e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),s=[];return r&&s.push({type:"WMS_GET_CAPABILITIES",url:r.url,labelId:"catalog.wmsGetCapLink"}),a&&s.push({type:"WMTS_GET_CAPABILITIES",url:a.url,labelId:"catalog.wmtsGetCapLink"}),o&&s.push({type:"WFS_GET_CAPABILITIES",url:o.url,labelId:"catalog.wfsGetCapLink"}),s},T=function(e){return e&&!Object(i.isArray)(e)&&-1!==e.indexOf(",")?e.split(",").map((function(e){return e.trim()})):e},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wms",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.removeParams,o=void 0===r?[]:r,a=n.format,s=n.catalogURL,l=n.url,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=arguments.length>4?arguments[4]:void 0;if(!e||!e.references)return null;var p,f,h=j(e),m=h.wms,y=h.wmts,b=m||y,v=function(e){return S(u.default.cleanDuplicatedQuestionMarks(e),["request","layer","layers","service","version"].concat(o))},w=T(b.url);if(w&&Object(i.isArray)(w))p=w.map((function(e){return v(e)})).map((function(e){return e.url})),f=w.map((function(e){return v(e)})).map((function(e){return e.params})).reduce((function(e,t){return g(g({},e),t)}),{});else{var x=v(w||s),_=x.url,E=x.params;p=_,f=E}var k=function(e){return Object(i.isArray)(e)&&1===e.length?e[0]:e},A=k(l||p),P=O(b.SRS);return g(g(g({type:t,requestEncoding:e.requestEncoding,style:e.style,format:a,url:A,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:b.params&&b.params.name,title:e.title||b.params&&b.params.name,matrixIds:"wmts"===t?e.matrixIds||[]:void 0,description:e.description||"",tileMatrixSet:"wmts"===t?e.tileMatrixSet||[]:void 0,credits:!u.default.getConfigProp("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:C(e),params:f,allowedSRS:P,catalogURL:s},c),e.layerOptions),{},{localizedLayerStyles:Object(i.isNil)(d)?void 0:d})},A=function(e,t,n,r){return _[e]&&_[e](t,n,r)||null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.references)return null;var n=E(e),r=n.esri;return g({type:r.type,url:r.url,visibility:!0,dimensions:e.dimensions||[],name:r.params&&r.params.name,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}}},t)},M=function(e,t,n){var r=e.tileMapUrl,o=t.TileMap,a=void 0===o?{}:o,s=n.forceDefaultTileGrid,l=a.Title,u=a.Abstract,c=a.SRS,d=a.BoundingBox,p=void 0===d?{}:d,h=a.Origin,m=a.TileFormat,g=void 0===m?{}:m,b=a.TileSets,v=a.$,w=v.version,x=v.tilemapservice,_=Object(i.get)(p,"$",{}),O=_.minx,S=_.miny,j=_.maxx,E=_.maxy,C=Object(i.get)(h,"$"),T=C.x,k=C.y,A=Object(i.get)(g,"$",{}),P=A.width,M=A.height,I=A["mime-type"],D=A.extension,N=[parseFloat(P),parseFloat(M,10)],R=Object(i.castArray)(Object(i.get)(b,"TileSet",[]).map((function(e){return e.$}))).map((function(e){var t=e.href,n=e.order,r=e["units-per-pixel"];return{href:Object(f.cleanAuthParamsFromURL)(t),order:parseFloat(n),resolution:parseFloat(r)}})),L=Object(i.get)(b,"profile");return{title:l,visibility:!0,hideErrors:!0,name:l,allowedSRS:y({},c,!0),description:u,srs:c,version:w,tileMapService:x?Object(f.cleanAuthParamsFromURL)(x):void 0,type:"tms",profile:L,tileMapUrl:r,forceDefaultTileGrid:s,bbox:p&&{crs:c,bounds:{minx:parseFloat(O),miny:parseFloat(S),maxx:parseFloat(j),maxy:parseFloat(E)}},tileSets:R,origin:{x:parseFloat(T),y:parseFloat(k)},format:I,tileSize:N,extension:D}},I=function(e){return g({type:e.type||"wfs",search:{url:e.url,type:"wfs"},url:e.url,queryable:e.queryable,visibility:!0,name:e.name,title:e.title||e.name,description:e.description||"",bbox:e.boundingBox,links:C(e),style:{weight:1,color:"rgba(0, 0, 255, 1)",opacity:1,fillColor:"rgba(0, 0, 255, 0.1)",fillOpacity:.1,radius:10}},e.layerOptions)},D=function(e){return{type:"tileprovider",visibility:!0,url:e.url,title:e.title,attribution:e.attribution,options:e.options,provider:e.provider,name:e.provider}}},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t,n,o){var i=e;isNaN(parseFloat(e))&&(i=r.hexToHsv(e)[0]);var a=.5/(n-1),s=t/(n-1),l=[];1===n&&(a=.5,s=t/2);for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:"red";return i()(e).toHexString()},u=function(e,t,n){var r=i()(e);return e&&r.setAlpha(Object(a.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,i,a,s,l,u=e/255,c=t/255,d=n/255;switch(o=Math.min(Math.min(u,c),d),a=(i=Math.max(Math.max(u,c),d))-o,i){case o:s=0;break;case u:s=60*(c-d)/a,c0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:l,colorToRgbaStr:u}},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,n){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/ExpressionUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/filtrex/lib/filtrex.js");function o(e,t){return Object(r.compileExpression)(e)(t)}},"./MapStore2/web/client/utils/FeatureGridUtils.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"c",(function(){return S})),n.d(t,"l",(function(){return j})),n.d(t,"g",(function(){return E})),n.d(t,"n",(function(){return C})),n.d(t,"o",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return P})),n.d(t,"m",(function(){return M})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return D}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ogc/WFS/base.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return Object(r.findIndex)(e,(function(e){return e<=n&&n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return t[d(e,n,r)]||l({},p)},h=function(e,t){return t[e]},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.isArray)(e)?e.reduce((function(e,t){return l(l({},e),{},u({},t.id,l(l({},e[t.id]),t.updated)))}),{}):{}},g=function(e,t){var n=Object.keys(t).filter((function(e){return"geometry"!==e})).reduce((function(e,n){return l(l({},e),{},u({},n,t[n]))}),{}),r=Object.keys(t).filter((function(e){return"geometry"===e})).reduce((function(e,n){return l(l({},e),{},u({},n,t[n]))}),{});return l(l(l({},e),r),{},{properties:l(l({},e&&e.properties||{}),n)})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=Object(r.findIndex)(e,t);return o>=0?e.map((function(e,t){return t===o?n:e})):[].concat(i(e),[n])},b=function(e){return(Object(o.getFeatureTypeProperties)(e)||[]).filter((function(e){return!Object(o.isGeometryType)(e)}))},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return t.map((function(t){return n<=t&&t<=r?0:Math.abs(t-e)})).reduce((function(e,t,n,r){return t>r[e]&&n||e}),0)},w=function(e,t){return t.filter((function(t,n){return n!==e}))},x=function(e,t,n){return e.filter((function(e,r){return r=t+n}))},_=function(e,t,n,r){for(var o,i,a=e;a<=t&&void 0===o;a++)-1===d(a*r,n,r)&&(o=a);for(var s=t;s>=e&&void 0===i;s--)-1===d(s*r,n,r)&&(i=s);return[o,i].filter((function(e){return void 0!==e}))},O=function(e,t,n){var r=e.startPage,o=e.endPage,i=_(r,o,t,n),a=i[1]-i[0]+1;return{startIndex:i[0]*n,maxFeatures:a*n}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.editable,o=void 0!==r&&r,i=n.sortable,a=void 0===i||i,s=n.resizable,l=void 0===s||s,u=n.filterable,c=void 0===u||u,d=n.defaultSize,p=void 0===d?200:d,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=f.getEditor,m=void 0===h?function(){}:h,g=f.getFilterRenderer,y=void 0===g?function(){}:g,v=f.getFormatter,w=void 0===v?function(){}:v;return b(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||p||void 0,name:t[e.name]&&t[e.name].label||e.name,resizable:l,editable:o,filterable:c,editor:m(e),formatter:w(e),filterRenderer:y(e,e.name)}}))},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=Object(o.findGeometryProperty)(n);return e.map((function(e){return l(l({},e),{},{events:e.events&&Object.keys(e.events).reduce((function(o,i){return l(l({},o),{},u({},i,(function(o,a){return e.events[i](t(a.rowIdx),a,n,r)})))}),{})},"geometry"===e.key&&a?{filterRenderer:i(l(l({},a),{},{localType:"geometry"}),a.name),filterable:!0,geometryPropName:a.name}:{})}))},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return Object.keys(e).reduce((function(i,a){return l(l({},i),{},u({},a,(function(){for(var i=arguments.length,s=new Array(i),l=0;l0?r._new:!e||e&&!!n[r.id]}},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g(e,t[e.id]||{})},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attribute,n=e.operator,o=e.value,i=e.type,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},a),{},{groupFields:[{id:1,logic:"AND",index:0}],filterFields:"geometry"===i?a.filterFields:Object(r.isNil)(o)?(a.filterFields||[]).filter((function(e){return e.attribute!==t})):y(a.filterFields||[],{attribute:t},{attribute:t,rowId:Date.now(),type:i,groupId:1,operator:n,value:o}),spatialField:"geometry"===i?o:a.spatialField,spatialFieldOperator:Object(r.isArray)(o)?"OR":""})},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startIndex,n=void 0===t?0:t,r=e.maxFeatures,o=void 0===r?1:r,i=e.totalFeatures,a=void 0===i?0:i,s=e.resultSize;return{page:Math.ceil(n/o),resultSize:s,size:o,total:a,maxPages:Math.ceil(a/o)-1}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.endPage,o=t.startPage,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.pages,s=i.features,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.size,c=l.maxStoredPages,d=l.startIndex,p=_(o,n,a,u),f=p[1]-p[0]+1,h=Object(r.get)(e,"features",[]);h.length!==f*u&&(h=h.concat(Object(r.fill)(Array(f*u-h.length>0?f*u-h.length:h.length),!1)));var m=a,g=s,y=m.length+f-Math.max(c,n-o+1);if(y>0)for(var b=o*u,O=n*u,S=b+(O-b)/2,j=0;je.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:"";return Object(s.flatten)([[[/\&/g,"&"]],e?[]:[[/\"/g,"""]],t?[]:[[/\'/g,"'"]],n?[]:[[/\>/g,">"]],r?[]:[[/\1&&void 0!==arguments[1]?arguments[1]:"snapshot.png",n=arguments.length>2?arguments[2]:void 0;p(a()(e),t,n)}},"./MapStore2/web/client/utils/GeoStoryUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return P})),n.d(t,"a",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return N})),n.d(t,"b",(function(){return R})),n.d(t,"x",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"t",(function(){return z})),n.d(t,"v",(function(){return B})),n.d(t,"z",(function(){return q})),n.d(t,"j",(function(){return G})),n.d(t,"k",(function(){return H})),n.d(t,"n",(function(){return W})),n.d(t,"q",(function(){return Y})),n.d(t,"r",(function(){return K})),n.d(t,"s",(function(){return X})),n.d(t,"o",(function(){return Z})),n.d(t,"w",(function(){return Q})),n.d(t,"u",(function(){return $})),n.d(t,"y",(function(){return J})),n.d(t,"l",(function(){return ee})),n.d(t,"m",(function(){return te})),n.d(t,"c",(function(){return ne}));var r=n("./MapStore2/node_modules/lodash/get.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/findIndex.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/toPath.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/isArray.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/values.js"),p=n.n(d),f=n("./MapStore2/node_modules/lodash/filter.js"),h=n.n(f),m=n("./MapStore2/node_modules/lodash/merge.js"),g=n.n(m),y=n("./MapStore2/node_modules/lodash/isString.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isObject.js"),w=n.n(v),x=n("./MapStore2/node_modules/lodash/includes.js"),_=n.n(x),O=n("./MapStore2/node_modules/lodash/replace.js"),S=n.n(O),j=n("./node_modules/uuid/index.js"),E=n.n(j);function C(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return g()({},U,e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g()({},e,t)},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return!t||n.test(e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return h()(e,(function(e){return V(e.data&&(e.data.title||e.data.name),t,n)||V(e.data&&e.data.description,t,n)}))},Y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};switch(t){case P.TITLE:return{id:E()(),type:P.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:E()(),type:M.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case P.BANNER:return{id:E()(),type:P.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:E()(),background:{fit:"cover",size:"full",align:"center"}}]};case P.PARAGRAPH:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:E()(),type:M.COLUMN,size:"full",align:"center",contents:[{id:E()(),type:M.TEXT,html:""}]}]};case P.IMMERSIVE:return{id:E()(),type:P.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(M.COLUMN,n)]};case I.MEDIA:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:E()(),type:M.COLUMN,contents:[{id:E()(),type:M.MEDIA,size:"large",align:"center"}]}]};case I.WEBPAGE:return{id:E()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:E()(),type:M.COLUMN,contents:[{id:E()(),type:M.WEBPAGE,size:"medium",align:"center"}]}]};case M.COLUMN:return{id:E()(),type:M.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:E()(),type:M.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case M.TEXT:return{id:E()(),type:M.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case M.IMAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case M.WEBPAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case M.MEDIA:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},K=function(e,t){return l()(e).reduce((function(e,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),i=o()(t,e),s=a()(i,r);return s>=0?[].concat(C(e),[s]):e}return[].concat(C(e),[n])}),[])},X=function(e,t){return l()(e).reduce((function(e,n){var r=e.path,i=e.flatPath;if(n&&0===n.indexOf("{")){var s=JSON.parse(n),l=o()(t,r),u=a()(l,s);if(u>=0){var c=l[u],d=c.id,p=c.type;return{path:[].concat(C(r),[u]),flatPath:[].concat(C(i),[{id:d,type:r[r.length-1],contentType:p}])}}return{path:r,flatPath:i}}return{path:[].concat(C(r),[n]),flatPath:i}}),{path:[],flatPath:[]})},Z=function(e,t){return e.reduce((function(e,n){return _()(n.contents.map((function(e){return e.id})),t)?n.id:e}),null)},Q=function(e){return e.type===P.PARAGRAPH&&!1!==e.editURL&&e&&c()(e.contents)&&e.contents.length&&c()(e.contents[0].contents)&&e.contents[0].contents.length&&e.contents[0].contents[0].type===M.WEBPAGE&&!1!==e.contents[0].contents[0].editURL},$=function(e,t){if(t)switch(e){case"small":return.4*t;case"medium":return.6*t;case"large":return.8*t;default:return t}return 0},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i="EMPTY";if(!t.includes(n))return null;var a=t.substring(t.indexOf(n)).split("/");return r&&n?a.length>1&&a[2]&&Number(a[0])===n?5===a.length?S()(e,"".concat(a[2],"/column/").concat(a[4]),"".concat(r)):S()(e,"".concat(a[2]),"".concat(r)):(t.includes("shared"),""!==a[1]?"".concat(e,"/section/").concat(r):"".concat(e,"section/").concat(r)):!r&&o&&b()(o)&&o!==i&&a.length>1?t.includes("shared")&&!a[2]?e:5===a.length?S()(e,"".concat(a[4]),"".concat(o)):"".concat(e,"/column/").concat(o):null},ee=function(e,t,n){var r={active:t,inactive:n,custom:{families:[],urls:[]}};return e.filter((function(e){return!!e.src})).forEach((function(e,t){r.custom.families[t]=e.family,r.custom.urls[t]=e.src})),r},te=function(e){return e.map((function(e){return e.family}))},ne=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"]},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/MarkerUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var css_tree__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-tree/lib/index.js"),css_tree__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(css_tree__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/raw-loader/index.js!./MapStore2/web/client/utils/font-awesome.txt"),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png"),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var css={fontawesome:raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default.a},baseImage=new Image,shadowImage=new Image;baseImage.src=_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,shadowImage.src=_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a;var getNodeOfType=function e(t,n){return n(t)?t:t.children?t.children.reduce((function(t,r){return e(r,n)||t}),null):null},glyphs={},loadGlyphs=function loadGlyphs(font){var parsedCss=css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.toPlainObject(css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.parse(css[font]));return parsedCss.children.reduce((function(previous,rule){if(rule.prelude){var classSelector=getNodeOfType(rule.prelude,(function(e){return"ClassSelector"===e.type})),pseudoClassSelector=getNodeOfType(rule.prelude,(function(e){return"PseudoClassSelector"===e.type}));if(classSelector&&classSelector.name&&0===classSelector.name.indexOf("fa-")&&pseudoClassSelector&&"before"===pseudoClassSelector.name){var text=getNodeOfType(getNodeOfType(rule.block,(function(e){return"Declaration"===e.type&&"content"===e.property})).value,(function(e){return"String"===e.type})).value;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(previous,_defineProperty({},classSelector.name.substring(3),eval("'\\u"+text.substring(2,text.length-1)+"'")))}}return previous}),{})},extraMarkers={size:[36,46],colors:["red","orange-dark","orange","yellow","blue-dark","blue","cyan","purple","violet","pink","green-dark","green","green-light","black"],shapes:["circle","square","star","penta"],icons:[_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a],images:[shadowImage,baseImage]},getOffsets=function(e,t){return[-extraMarkers.colors.indexOf(e)*extraMarkers.size[0]-2,-extraMarkers.shapes.indexOf(t)*extraMarkers.size[1]]},MarkerUtils={extraMarkers:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},extraMarkers,{getOffsets:getOffsets,markerToDataUrl:function(e){var t=e.iconColor,n=e.iconShape,r=e.iconGlyph;if(MarkerUtils.extraMarkers.images){var o=document.createElement("canvas"),i=extraMarkers.size;o.width=i[0],o.height=i[1];var a=o.getContext("2d"),s=getOffsets(t,n);a.drawImage(extraMarkers.images[0],4,31,35,16),a.drawImage(extraMarkers.images[1],Math.abs(s[0]),Math.abs(s[1]),i[0],i[1],0,0,i[0],i[1]),a.font="14px FontAwesome",a.fillStyle="rgb(255,255,255)",a.textBaseline="middle",a.textAlign="center",a.fillText(MarkerUtils.getGlyphs("fontawesome")[r]||"",i[0]/2-2,i[1]/2-7);var l=o.toDataURL("image/png");return o=null,l}return null},matches:function(e,t){return e.iconColor===t.color&&e.iconShape===t.shape},getStyle:function(e){return{iconColor:e.color,iconShape:e.shape}},getGrid:function(){return extraMarkers.shapes.map((function(e){return{name:e,markers:extraMarkers.colors.map((function(t){return{name:t,width:extraMarkers.size[0],height:extraMarkers.size[1],offsets:getOffsets(t,e),style:{color:t,shape:e},thumbnailStyle:{backgroundImage:"url("+extraMarkers.icons[0]+")",width:extraMarkers.size[0]+"px",height:extraMarkers.size[1]+"px",backgroundPositionX:getOffsets(t,e)[0],backgroundPositionY:getOffsets(t,e)[1],cursor:"pointer"}}}))}}))}}),getGlyphs:function(e){return glyphs[e]||(glyphs[e]=loadGlyphs(e)),glyphs[e]}};MarkerUtils.markers={extra:MarkerUtils.extraMarkers},__webpack_exports__.a=MarkerUtils},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"degToDms",(function(){return o})),n.d(t,"getFormattedBearingValue",(function(){return i})),n.d(t,"CONVERSION_RATE",(function(){return a})),n.d(t,"convertUom",(function(){return s})),n.d(t,"validateCoord",(function(){return l})),n.d(t,"validateFeatureCoordinates",(function(){return u})),n.d(t,"isValidGeometry",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,i=t.fractionDigits,a=void 0===i?0:i,s="";if(r){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var u=a>0?e.toFixed(a):Math.floor(e);s=l+u+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][n]?e*a[t][n]:e}var l=function(e){return!Object(r.isNaN)(parseFloat(e[0]))&&!Object(r.isNaN)(parseFloat(e[1]))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,o=t;if("LineString"===n){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===n){if((o=Object(r.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(r.head)(o)])]}return o},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type;if(!n||!t||t&&Object(r.isArray)(t)&&0===t.length)return!1;var o=u({coordinates:t,type:n});return(o="Polygon"===n?Object(r.head)(o):o).length>0}},"./MapStore2/web/client/utils/MeasurementUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),s=n("./MapStore2/web/client/utils/MeasureUtils.js"),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.uniq)(e.map((function(e){return"LineString"===e.geometry.type&&"bearing"===Object(r.get)(e,"properties.values[0].type","")?"Bearing":e.geometry.type})))},g={offsetY:1,fontSize:"10",fontSizeUom:"px",fontFamily:"Courier New",font:"10px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},y={offsetY:-15,fontSize:"13",fontSizeUom:"px",fontFamily:"Courier New",font:"13px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},b=function(e,t,n,o,u,d){var f,m,b=(f=e,(m=Object(r.uniq)(f.map((function(e){return Object(r.get)(e,"properties.values[0].type","")})))).length>1?{title:"Multiple Measurement",iconGlyph:"geometry-collection"}:{title:"Measure "+Object(r.startCase)(m[0]),iconGlyph:"1-measure-"+m[0]});return{type:"FeatureCollection",features:[].concat(p(Object(r.flatten)(e.map((function(e){return function(e,t,n){var r,o=n||y;return[{type:"Feature",geometry:{type:e.geometry.type,coordinates:Object(s.validateFeatureCoordinates)(e.geometry),textLabels:e.geometry.textLabels},properties:{id:i()(),isValidFeature:!0,geometryGeodesic:"LineString"===e.geometry.type?{type:"LineString",coordinates:Object(l.transformLineToArcs)(e.geometry.coordinates)}:null,useGeodesicLines:"LineString"===e.geometry.type,values:(null===(r=e.properties)||void 0===r?void 0:r.values)||[]},style:[c(c({},a.a[e.geometry.type]),{},{type:e.geometry.type,id:i()(),geometry:"LineString"===e.geometry.type?"lineToArc":null,title:"".concat(e.geometry.type," Style"),filtering:!0})].concat("LineString"===e.geometry.type?Object(a.e)():[])}].concat(p(e.properties.values.map((function(e){var n=e.value,r=e.formattedValue,a=e.type;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:r||h(t,n)[a],isText:!0,isValidFeature:!0,id:i()()},style:c(c({},o),{},{id:i()(),filtering:!0,title:"Text Style",type:"Text"})}}))))}(e,n,d)})))),p(t.filter((function(e){return!!e})).map((function(e){var t=e.text;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:t,isValidFeature:!0,isText:!0,id:i()()},style:c(c({},g),{},{id:i()(),filtering:!0,title:"Text Style",type:"Text"})}})))),properties:{id:o,description:u,type:"Measure",title:b.title,iconGlyph:b.iconGlyph},style:{}}}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=function(e,t){return e===t},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},s=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,a())})),l=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,a(e))}))}},"./MapStore2/web/client/utils/StyleEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return N})),n.d(t,"f",(function(){return z})),n.d(t,"e",(function(){return B})),n.d(t,"c",(function(){return q})),n.d(t,"g",(function(){return U})),n.d(t,"j",(function(){return G})),n.d(t,"i",(function(){return H})),n.d(t,"h",(function(){return V})),n.d(t,"l",(function(){return W})),n.d(t,"k",(function(){return Z})),n.d(t,"d",(function(){return Q}));var r=n("./MapStore2/node_modules/lodash/head.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/get.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isArray.js"),l=n.n(s),u=n("./MapStore2/node_modules/lodash/isString.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/flatten.js"),p=n.n(d),f=n("./MapStore2/node_modules/lodash/isNil.js"),h=n.n(f),m=n("./MapStore2/node_modules/lodash/omit.js"),g=n.n(m),y=n("./MapStore2/node_modules/lodash/omitBy.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isUndefined.js"),w=n.n(v),x=n("./node_modules/uuid/v1.js"),_=n.n(x),O=n("./node_modules/url/url.js"),S=n.n(O),j=n("./MapStore2/web/client/utils/styleeditor/stylesTemplates.js");function E(e){return function(e){if(Array.isArray(e))return e}(e)||k(e)||T(e)||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 C(e){return function(e){if(Array.isArray(e))return A(e)}(e)||k(e)||T(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 T(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type&&e.type.localPart&&e.type.localPart.toLowerCase()||"";return-1!==t.indexOf("polygon")||-1!==t.indexOf("surface")?"polygon":-1!==t.indexOf("linestring")?"linestring":-1!==t.indexOf("point")?"point":"vector"},z=function(){return"".concat(_()(),"_ms_").concat(Date.now().toString())},B=function(e){var t=e.title;return"".concat((void 0===t?"":t).toLowerCase().replace(/\s/g,"_")).concat(D).concat(_()())},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeLayer,n=void 0===t?{}:t,r=e.describeFeatureType,i=void 0===r?{}:r,s=n&&n.owsType||null,l=a()(i,"complexType[0].complexContent.extension.sequence.element")||null,u=l&&o()(l.filter((function(e){var t=e.type;return t&&"gml"===t.prefix}))),c=("WCS"===s?"raster":u&&"WFS"===s&&F(u))||null,d="raster"===c?n.bands:l&&l.reduce((function(e,t){var n=t.name,r=t.type,o=void 0===r?{}:r;return M(M({},e),{},I({},n,{localPart:o.localPart,prefix:o.prefix}))}),{});return{geometryType:c,properties:d,owsType:s}},U=function(e){return L[e]||e},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(R.isSameOrigin)return R.isSameOrigin(e,t);if(!t.baseUrl||!e.url)return!1;var n=[t.baseUrl].concat(C(t.availableUrls||[])),r=n.map((function(e){var t=S.a.parse(e);return"".concat(t.protocol,"//").concat(t.host)})),o=S.a.parse(e.url),i="".concat(o.protocol,"//").concat(o.host);return-1!==r.indexOf(i)},H=function(){if(R.getStyleTemplates){var e=R.getStyleTemplates();return[].concat(C(l()(e)?e:[]),C(j.baseTemplates))}return[].concat(C(j.customTemplates),C(j.baseTemplates))},V=function(e){var t=c()(e)&&e.split(":")||[];return{workspace:t[1]&&t[0],name:t[1]||t[0]}},W=function(e){var t=e.name,n=e.workspace;return"".concat(n&&n.name&&"".concat(n.name,":")||"").concat(t)},Y=function(e){var t,n=null==e||null===(t=e.groupFields)||void 0===t?void 0:t.find((function(e){return!e.groupId}));return n&&function e(t,n){if(!(t&&t.filterFields&&t.groupFields&&n))return null;var r=t.filterFields.filter((function(e){return e.groupId===n.id})),o=t.groupFields.filter((function(e){return e.groupId===n.id})),i=[].concat(C(r),C(o)),a={OR:"||",AND:"&&",like:"*=","=":"==","<>":"!=",isNull:"=="},s=i.map((function(n){if(void 0!==n.rowId){var r=n.operator,o=n.attribute,i=n.value;return r&&o&&!h()(i)?[a[r]||r,o,"isNull"===r?null:i]:null}return e(t,n)})).filter((function(e){return e})),l=n.logic;return 0===s.length?null:[a[l]].concat(C(s))}(e,n)},K=function(e){var t=[],n=[];return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.index,o=void 0===r?0:r,i=n.groupId,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(!t)return null;var s={"||":"OR","&&":"AND","*=":"like","==":"=","!=":"<>"},u=E(t),c=u[0],d=u.slice(1),p=l()(c),f=p?c[0]:c,h=p?c.filter((function(e,t){return 0!==t})):d;if("||"===f||"&&"===f){var m=_()();return a("groupField",{id:m,index:o,logic:s[f]}),e(d,{index:o+1,groupId:m},a)}return f?(a("filterField",{attribute:h[0],groupId:i,operator:s[f]||f,rowId:_()(),type:isNaN(parseFloat(h[1]))?"string":"number",value:h[1]}),e(d,{index:o,groupId:i},a)):null}(e,void 0,(function(e,r){"groupField"===e&&t.push(r),"filterField"===e&&n.push(r)})),{groupFields:t,filterFields:n}};function X(e){var t=b()(e,w.a);return Object.keys(t).reduce((function(e,n){switch(n){case"haloColor":case"haloWidth":return"Text"===t.kind&&0===t.haloWidth?e:M(M({},e),{},I({},n,t[n]));case"outlineWidth":case"outlineColor":case"outlineOpacity":return"Fill"===t.kind&&0===t.outlineWidth?e:M(M({},e),{},I({},n,t[n]));case"strokeWidth":case"strokeColor":case"strokeOpacity":return"Mark"===t.kind&&0===t.strokeWidth?e:M(M({},e),{},I({},n,t[n]));case"graphicFill":case"graphicStroke":return M(M({},e),{},I({},n,X(t[n])));default:return M(M({},e),{},I({},n,t[n]))}}),{})}function Z(e){return e&&e.rules?M(M({},e),{},{rules:p()(e.rules.map((function(e){if("Classification"===e.kind)return(e.classification||[]).map((function(t,n){var r=n===e.classification.length-1?"<=":"<",o=null!==t.min?[[">=",e.attribute,t.min]]:[],i=null!==t.max?[[r,e.attribute,t.max]]:[],a=null!==t.min&&">= "+t.min,s=null!==t.max&&r+" "+t.max;return M(M({name:a&&s?a+" and "+s:a||s,filter:o[0]||i[0]?["&&"].concat(o,i):void 0},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[X(M(M({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","attribute","symbolizerKind"])),{},{kind:e.symbolizerKind||"Fill",color:t.color}))]})}));if("Raster"===e.kind){var t=e.classification&&e.classification.length>0&&{colorMapEntries:(e.classification||[]).map((function(e){return{label:e.label,quantity:e.quantity,color:e.color,opacity:e.opacity}}))};return M(M({name:e.name||""},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[X(M(M({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","continuous","symbolizerKind","name"])),{},{kind:"Raster"},t&&{colorMap:t}))]})}var n=Y(e.filter);return M(M({},e),{},{filter:n,symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){return X(e)}))})})))}):e}function Q(e){return M(M({},e),{},{rules:e.rules.map((function(e){return M(M({},e),{},{ruleId:_()(),filter:e.filter&&K(e.filter),symbolizers:e.symbolizers&&e.symbolizers.map((function(e){return M(M({},e),{},{symbolizerId:_()()})}))||[]})}))})}},"./MapStore2/web/client/utils/TMSUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("?")[0].split("@");if(t.length>1){var n=t[t.length-1];if(Object(r.includes)(["png","png8","jpeg","vnd.jpeg-png","gif"],n))return n}return null}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.width,a=void 0===i?64:i,s=o.height,l=void 0===s?64:s,u=o.contain,c=o.type,d=void 0===c?"image/jpeg":c,p=o.quality,f=void 0===p?.5:p,h=new Image;h.crossOrigin="anonymous",h.onload=function(){var e=h.naturalWidth/h.naturalHeight,t=a,r=l,o=a/l,i=document.createElement("canvas");i.setAttribute("width",a),i.setAttribute("height",l),i.style.width=a+"px",i.style.height=l+"px";var s=i.getContext("2d"),c=!u&&eo?[t,t/e]:[r*e,r];s.save(),s.translate(t/2,r/2),s.drawImage(h,-c[0]/2,-c[1]/2,c[0],c[1]),s.restore();var p=i.toDataURL(d,f);n(p)},h.onerror=function(e){r(e)},h.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.type,a=void 0===i?"image/jpeg":i,s=o.quality,l=void 0===s?.5:s,u=document.createElement("video");u.crossOrigin="anonymous";var c=document.createElement("source"),d=document.createElement("canvas");u.addEventListener("loadedmetadata",(function(){var e=u.videoWidth,t=u.videoHeight;d.setAttribute("width",e),d.setAttribute("height",t),d.style.width=e+"px",d.style.height=t+"px"}),!0),u.addEventListener("loadeddata",(function(){u.currentTime=1}),!0),u.addEventListener("seeked",(function(){d.getContext("2d").drawImage(u,0,0);try{var e=d.toDataURL(a,l);n(e)}catch(e){r(e)}}),!0),u.addEventListener("error",(function(e){r(e)}),!0),u.appendChild(c),u.setAttribute("src",e)}))},i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,a=null===(e=t.match(i))||void 0===e?void 0:e[1];return a?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(a,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/URLUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/query-string/index.js"),s=n.n(a);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var n=e?e.split("&").filter((function(e){return!!e})):[],r=t?t.split("&").filter((function(e){return!!e})):[];return Object(i.isEqual)(Object(i.sortBy)(n),Object(i.sortBy)(r))}(a.query,s.query);return d&&f&&p&&h&&m},p=function(e){return s.a.parse(e)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,n=new RegExp(t);return n.test(e)},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/,r=new RegExp(n),o=r.test(e);if(!o)return!1;if(o&&!t)return!0;if(o&&t){var a=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return Object(i.find)(a,e)})).length}return!1}},"./MapStore2/web/client/utils/VectorStyleUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isAttrPresent",(function(){return g})),n.d(t,"isStrokeStyle",(function(){return y})),n.d(t,"isFillStyle",(function(){return b})),n.d(t,"isTextStyle",(function(){return v})),n.d(t,"isCircleStyle",(function(){return w})),n.d(t,"isMarkerStyle",(function(){return x})),n.d(t,"isSymbolStyle",(function(){return _})),n.d(t,"getStylerTitle",(function(){return O})),n.d(t,"geometryFunctions",(function(){return S})),n.d(t,"getGeometryFunction",(function(){return j})),n.d(t,"registerGeometryFunctions",(function(){return E})),n.d(t,"addOpacityToColor",(function(){return C})),n.d(t,"hashCode",(function(){return T})),n.d(t,"registerStyle",(function(){return A})),n.d(t,"setSymbolsStyles",(function(){return P})),n.d(t,"fetchStyle",(function(){return M})),n.d(t,"getSymbolsStyles",(function(){return I})),n.d(t,"hashAndStringify",(function(){return D})),n.d(t,"domNodeToString",(function(){return N})),n.d(t,"createSvgUrl",(function(){return R})),n.d(t,"createStylesAsync",(function(){return L})),n.d(t,"getStyleParser",(function(){return F}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),i=n("./MapStore2/web/client/utils/ColorUtils.js"),a=n("./node_modules/axios/index.js"),s=n.n(a),l=n("./node_modules/geostyler-sld-parser/build/dist/SldStyleParser.js"),u=n.n(l),c=n("./node_modules/geostyler-geocss-parser/build/dist/GeoCSSStyleParser.js"),d=n.n(c);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(r.isNil)(e[t])})).length>0},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return g(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return g(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return g(e,t)},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return g(e,t)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return g(e,t)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return g(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x(e)?"Marker":_(e)?"Symbol":v(e)?"Text":w(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":y(e)?"Polyline":""},S={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},j=function(e,t){return S[e]&&S[e][t]},E=function(e,t,n){if(!(e&&t&&n))throw new Error("specify all the params: functionName, func, type");S[e]={func:t,type:n}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},T=function(e){var t,n=0;if(0===e.length)return n;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k=e},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return k[e]&&k[e][t]},I=function(){return k},D=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},N=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return _(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var n=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(r.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(r.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(r.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([N(o)],{type:"image/svg+xml;charset=utf-8"}),s=n.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var u=l.getContext("2d"),c=new Image;c.src=s;var d="",p=D(e);return c.onload=function(){try{u.drawImage(c,l.width/2-c.width/2,l.height/2-c.height/2),d=l.toDataURL("image/png"),l=null,A(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),base64:d})}catch(e){return}},A(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),svg:o,base64:d}),s})).catch((function(){return n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return _(e)&&!M(D(e))?R(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):M(D(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(_(e)?M(D(e)):e)}))}))},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return m[e]}},"./MapStore2/web/client/utils/featuregrid/EditorRegistry.jsx":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).length>0&&Object.keys(e).reduce((function(n,r){var o=new RegExp(e[r]);return n&&o.test(t[r])}),!0)},u=function(e,t,n){if(s[t]){if(s[t][e])return s[t][e](n);if(s[t].defaultEditor)return s[t].defaultEditor(n)}return null};e.exports={get:function(){return s},register:function(e){var t=e.name,n=e.editors;n&&(s[t]=n)},remove:function(e){if(t=e,-1!==Object.keys(s).indexOf(t))try{return delete s[e],!0}catch(e){return!1}var t;return!1},clean:function(){s={}},getCustomEditor:function(e){var t=e.attribute,n=e.url,r=e.typeName,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2?arguments[2]:void 0,c=s.type,d=s.generalProps,p=void 0===d?{}:d,f=s.props,h=a(i,(function(e){return l(e.regex,{attribute:t,url:n,typeName:r})}));if(h){var m=u(c,h.editor,o(o(o({},f),p),h.editorProps||{}));return m}return null}}},"./MapStore2/web/client/utils/ogc/Filter/base.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),o=r.filter,i=r.fidFilter;e.exports={fidFilter:i,filter:o}},"./MapStore2/web/client/utils/ogc/WFS/RequestBuilder.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.wfsVersion,n=void 0===t?"1.1.0":t,r=e.gmlVersion,i=e.filterNS,d=e.wfsNS,p=void 0===d?"wfs":d,f=r;!f&&n?f=l(n):f||(f="3.1.1");var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.viewParams,r=e.resultType,o=e.outputFormat,i=e.startIndex,a=e.maxFeatures,s=function(e){return 0===n.indexOf("2.")?'count="'.concat(e,'"'):'maxFeatures="'.concat(e,'"')};return(0===n.indexOf("1.")?u(n):c(n))+(r?' resultType="'.concat(r,'"'):"")+(o?' outputFormat="'.concat(o,'"'):"")+(i||0===i?' startIndex="'.concat(i,'"'):"")+(a||0===a?" ".concat(s(a)):"")+(t?' viewParams="'.concat(t,'"'):"")},m=function(e){return s(e).map((function(e){return"<".concat("2.0"===n?"fes":"ogc",":PropertyName>").concat(e,"")})).join("")};return o(o({propertyName:m},a({gmlVersion:f,wfsVersion:n,filterNS:i||"2.0"===n?"fes":"ogc"})),{},{getFeature:function(e,t){return"<".concat(p,":GetFeature ").concat(h(t),">").concat(Array.isArray(e)?e.join(""):e,"")},sortBy:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ASC";return"<".concat(p,":SortBy><").concat(p,":SortProperty>").concat(m(e),"<").concat(p,":SortOrder>").concat(t,"")},query:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.srsName,i=void 0===o?"EPSG:4326":o;return"<".concat(p,":Query ").concat("2.0"===n?"typeNames":"typeName",'="').concat(e,'" srsName="').concat(i,'">')+"".concat(Array.isArray(t)?t.join(""):t)+"")}})}},"./MapStore2/web/client/utils/ogc/WFST/RequestBuilder.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?[e].concat(s(t)):e},T=function(e){this.version=e},k=function(e){return u(e,"featureTypes[0].typeName")},A=function(e){return e.targetPrefix?"".concat(e.targetPrefix,":").concat(k(e)):k(e)},P=function(e,t){return e.geometry_name||S(t).name},M=function(e,t){return"geometry"===e||e===P({},t)?P({},t):e};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.wfsVersion,r=void 0===n?"1.1.0":n,i=t.wfsNS,s=void 0===i?"wfs":i,l=a(t,["wfsVersion","wfsNS"]);if("1.1.0"!==r)throw new T(r);var u=function(t){return p(e.targetPrefix,k(e),Object.keys(t.properties||[]).filter((function(t){return _(t,e)})).map((function(n){return f(e.targetPrefix,n,O(t.properties[n],n,e))})).concat(t.geometry?f(e.targetPrefix,P(t,e),O(t.geometry,P(t,e),e)):[]))},c=function(e){return e.features?e.features.map(u):u(e)};return o(o({},E(o(o({},l),{},{wfsVersion:r,wfsNS:s}))),{},{insert:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),o=1;o1?n-1:0),i=1;i').concat(t,"")},i=function(e,t,n){return o(e,r("ogc",t),n)};e.exports={deleteFeaturesByFilter:o,deleteById:i,deleteFeature:function(e,t,n){return i(e,t.features&&1===t.features.length?t.features[0].id:t.id,n)}}},"./MapStore2/web/client/utils/ogc/WFST/insert.js":function(e,t){var n=function(e,t,n){return"<".concat(e?e+":"+t:t,">").concat(Array.isArray(n)?n.join(""):n,"")},r=n,o=n;e.exports={insert:function(e,t){return"<".concat(e,":Insert>").concat(Array.isArray(t)?t.join(""):t,"")},feature:o,attribute:r}},"./MapStore2/web/client/utils/ogc/WFST/transaction.js":function(e,t){e.exports={transaction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.wfsNS,o=void 0===r?"wfs":r,i=n.wfsVersion,a=void 0===i?"1.1.0":i;return"<".concat(o,":Transaction ")+'service="WFS" '+'version="'.concat(a,'" ')+"xmlns:".concat(o,'="http://www.opengis.net/wfs" ')+'xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs" '+"".concat(t,">")+"".concat(Array.isArray(e)?e.join(""):e)+"")}}},"./MapStore2/web/client/utils/ogc/WFST/update.js":function(e,t){e.exports={update:function(e,t,n){return"<".concat(e,':Update typeName="').concat(t,'">').concat(Array.isArray(n)?n.join(""):n,"")},propertyChange:function(e,t,n){return"<".concat(e,":Property>")+"<".concat(e,":Name>").concat(t,"")+"<".concat(e,":Value>").concat(n,"")+"")}}},"./MapStore2/web/client/utils/ogc/WPS/autocomplete.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n '+o+" *"+c+"*":"",p=n&&!n.disabled&&a(n)?s(n,"1.1.0","ogc"):[];return' gs:PagedUnique features features '+(d.length>0||p.length>0?''+l.apply(void 0,r(p).concat([d]))+"":"")+' '+o+' fieldName fieldName '+o+' maxFeatures maxFeatures '+i+' startIndex startIndex '+u+' result '}}},"./MapStore2/web/client/utils/openlayers/DrawUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return x}));var r=n("./node_modules/ol/interaction/DragPan.js"),o=n("./node_modules/ol/interaction/KeyboardPan.js"),i=n("./node_modules/ol/interaction/MouseWheelZoom.js"),a=n("./node_modules/ol/interaction/DoubleClickZoom.js"),s=n("./node_modules/ol/interaction/DragZoom.js"),l=n("./node_modules/ol/interaction/KeyboardZoom.js"),u=n("./node_modules/ol/interaction/PinchZoom.js"),c=n("./node_modules/ol/interaction/PinchRotate.js"),d=n("./node_modules/ol/interaction/DragRotate.js"),p=n("./node_modules/ol/geom/Point.js"),f=n("./node_modules/ol/geom/LineString.js"),h=n("./node_modules/ol/geom/MultiPoint.js"),m=n("./node_modules/ol/geom/MultiLineString.js"),g=n("./node_modules/ol/geom/MultiPolygon.js"),y=n("./node_modules/ol/geom/Circle.js"),b=n("./node_modules/ol/geom/Polygon.js"),v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=t.coordinates,o=t.radius,i=t.center;switch(n){case"Point":e=new p.a(r||[]);break;case"LineString":e=new f.a(r||[]);break;case"MultiPoint":e=new h.a(r||[]);break;case"MultiLineString":e=new m.a(r||[]);break;case"MultiPolygon":e=new g.a(r||[]);break;default:e=o&&i?Object(b.c)(new y.a([i.x,i.y],o),100):new b.b(r||[])}return e},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.geometry&&"Polygon"===e.geometry.type},x={dragPan:{options:{kinetic:!1},Instance:r.a},keyboardPan:{options:{kinetic:!1},Instance:o.a},mouseWheelZoom:{options:{duration:0},Instance:i.a},doubleClickZoom:{options:{duration:0},Instance:a.a},shiftDragZoom:{options:{duration:0},Instance:s.a},keyboardZoom:{options:{},Instance:l.a},pinchZoom:{options:{duration:0},Instance:u.a},pinchRotate:{options:{},Instance:c.a},altShiftDragRotate:{options:{},Instance:d.a}}},"./MapStore2/web/client/utils/styleeditor/stylesTemplates.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base CSS",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\traster-channels: auto;\n}",preview:{config:{backgroundColor:"#333333",texts:[{text:"CSS",fill:"#ffaa33",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base SLD",format:"sld",code:'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t1.0\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}}].map((function(e){return o(o({},e),{},{styleId:a()})})),l=[{types:["linestring","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #999999;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#999999"}]}}},{types:["linestring","vector"],title:"Dashed line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #333333;\n\tstroke-width: 0.75;\n\tstroke-dasharray: 6 2;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:4,strokeDasharray:"20 4"}]}}},{types:["linestring","vector"],title:"Section line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #330033;\n\tstroke-width: 1;\n\tstroke-dasharray: 10 4 1 4;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#330033",strokeWidth:4,strokeDasharray:"20 10 4 10"}]}}},{types:["linestring","vector"],title:"Simple railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('shape://vertline'), #000000;\n :stroke {\n stroke: #000000;\n size: 8;\n };\n}\n",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:2,strokeLinejoin:"round"},{stroke:"#333333",strokeWidth:16,strokeDasharray:"2 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #777777, #ffffff;\n\tstroke-width: 4, 2;\n\tstroke-dasharray: 1 0, 10 10;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#777777",strokeWidth:8,strokeLinejoin:"round"},{stroke:"#ffffff",strokeWidth:6,strokeDasharray:"20 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Waterway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #8bbceb, #bbddff;\n\tstroke-width: 10, 8;\n\tstroke-linejoin: round;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#8bbceb",strokeWidth:14,strokeLinejoin:"round"},{stroke:"#bbddff",strokeWidth:12,strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Red road",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #ff5539, #ffffff;\n\tstroke-width: 8, 5;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#ff5539",strokeWidth:14},{stroke:"#ffffff",strokeWidth:7}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('circle');\n stroke-dasharray: 8 20;\n :stroke {\n size: 8;\n fill: #ddd;\n stroke: #777;\n stroke-width: 0.5;\n };\n}\n",types:["linestring","vector"],title:"Stroke Pattern",format:"css",preview:{config:{type:"linestring",paths:[{type:"point",transform:"translate(-0, -55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n label: 'Label';\n label-anchor: 0.5 0.5;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n}\n",types:["linestring","vector"],title:"Label",format:"css",preview:{config:{type:"linestring",paths:[{stroke:"#333",strokeWidth:4}],texts:[{text:"Label",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n}\n",types:["polygon","vector"],title:"Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-dasharray: 10 5;\n stroke-width: 2;\n stroke-opacity: 0.5;\n}\n",types:["polygon","vector"],title:"Dashed Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4,strokeDasharray:"20 10",strokeOpacity:.5}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Simple",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Line Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#line)"}],patterns:[{id:"line",icon:{d:"M0.0 1.0 L1.0 0.0",stroke:"#000",strokeWidth:.05}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://dot');\n :fill {\n size: 8;\n stroke: #000000;\n stroke-width: 4;\n };\n}\n",types:["polygon","vector"],title:"Dot Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#poly_dot)"}],patterns:[{id:"poly_dot",icon:{d:"M0.5 0.5 L0.5 0.52Z",stroke:"#000",strokeLinecap:"round",strokeWidth:.2}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n mark: symbol('circle');\n :mark {\n size: 16;\n stroke: #333;\n stroke-width: 2;\n fill: #ddd;\n };\n}\n\n* {\n stroke: #333333;\n stroke-width: 0.5;\n}\n",types:["polygon","vector"],title:"Marker",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333"},{type:"point",d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#333",fill:"#ddd",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd, symbol('cross');\n :fill {\n size: 20;\n stroke: #333;\n stroke-width: 1;\n fill: #f2f2f2;\n };\n}\n",types:["polygon","vector"],title:"Fill Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"},{fill:"url(#poly_square)"}],patterns:[{id:"poly_square",icon:{d:"M0.1 0.1 L0.9 0.1 L0.9 0.9 L0.1 0.9Z",stroke:"#333",strokeLinecap:"round",strokeWidth:.05,fill:"#f2f2f2"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 0.5;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n stroke: #474747;\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Label and Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#000",strokeWidth:2},{fill:"url(#line)"}],texts:[{text:"Label",style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{types:["point","vector"],title:"Square",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('square');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Circle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('circle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Triangle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('triangle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Star",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('star');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Cross",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('cross');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"X",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('x');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://vertline');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Plus",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://plus');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Times",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://times');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Open arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://oarrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Closed arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://carrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 2;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n mark: symbol('circle');\n :mark {\n size: 7;\n stroke: #0d0d0d;\n stroke-width: 0.7;\n };\n}\n",types:["polygon","point","vector"],title:"Label and Marker",format:"css",preview:{config:{type:"polygon",paths:[{type:"point",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#0d0d0d",fill:"transparent",strokeWidth:2}],texts:[{text:"Label",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}}].map((function(e){return o(o({},e),{},{styleId:a()})}));e.exports={baseTemplates:s,customTemplates:l}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"o",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return b}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",i="GEONODE:RESOURCE_ERROR",a="GEONODE:UPDATE_RESOURCE_PROPERTIES",s="GEONODE:SET_RESOURCE_TYPE",l="GEONODE:SET_NEW_RESOURCE",u="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function p(e){return{type:o,data:e}}function f(e){return{type:s,resourceType:e}}function h(e){return{type:i,error:e}}function m(e){return{type:a,properties:e}}function g(){return{type:l}}function y(e){return{type:u,id:e}}function b(e){return{type:c,permissions:e}}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"l",(function(){return h}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",i="GEONODE:SAVE_ERROR",a="GEONODE:CLEAR_SAVE",s="GEONODE:SAVE_CONTENT",l="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function u(){return{type:r}}function c(e){return{type:o,success:e}}function d(e){return{type:i,error:e}}function p(){return{type:a}}function f(e,t,n){return{type:s,id:e,metadata:t,reload:n}}function h(e){return{type:l,id:e}}},"./js/api/geonode/adapter/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./js/utils/APIUtils.js"),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.post(Object(a.b)("".concat(t,"resources/")),e,{timeout:1e4,params:{full:!0}}).then((function(e){return e.data}))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.patch(Object(a.b)("".concat(n,"resources/").concat(e,"/")),t,{params:{full:!0}}).then((function(e){return e.data}))},u=function(e){var t=Object(i.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.get(Object(a.b)("".concat(t,"resources/").concat(e,"/")),{params:{full:!0}}).then((function(e){return e.data}))}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"g",(function(){return v}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),a=n("./node_modules/js-cookie/src/js.cookie.js"),s=n.n(a),l=n("./js/utils/GNSearchUtils.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(p,"/categories").concat(f),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.identifier,n),n}))}))},g=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(p,"/keywords").concat(f),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(p,"/regions").concat(f),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.name,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",s=Object(i.getConfigProp)("geoNodeApi")||{},c=s.endpointV1,p=void 0===c?"/api":c,f=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(p,"/owners").concat(f),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(l.h)(a+e.username,n),n}))}))},v=function(e){var t=s.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return C})),n.d(t,"i",(function(){return A})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"j",(function(){return N})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return z}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./js/utils/APIUtils.js"),a=n("./MapStore2/node_modules/lodash/mergeWith.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),p=n("./MapStore2/node_modules/lodash/castArray.js"),f=n.n(p),h=n("./js/api/geonode/v1/index.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js"),g=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(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 n=0,r=new Array(t);n1?e+i.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+i[0]}),"");return"".concat(e).concat(n)}var C=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=_(_({},S),e)}(t),t}))};function T(e,t){return t?s()(_({},e),_({},t),(function(e,t){return u()(e)&&u()(t)?[].concat(v(e),v(t)):d()(e)&&u()(t)?[e].concat(v(t)):u()(e)&&d()(t)?[].concat(v(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var k,A=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,s=void 0===a?1:a,l=e.sort,c=e.f,d=b(e,["q","pageSize","page","sort","f"]),p=((Object(m.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return j("resources",(function(){return o.a.get(Object(i.b)(E(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:_(_(_({},T(d,p)),l&&{sort:u()(l)?l:[l]}),{},{page:s,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,s=void 0===a?1:a,l=e.sort,c=b(e,["q","pageSize","page","sort"]);return j("maps",(function(){return o.a.get(Object(i.b)(E(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:_(_(_({},c),l&&{sort:u()(l)?l:[l]}),{},{page:s,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,a=void 0===r?20:r,s=t.page,l=void 0===s?1:s,c=t.sort,d=b(t,["q","pageSize","page","sort"]);return j("maps",(function(){return o.a.get(Object(i.b)(E(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:_(_(_({},d),c&&{sort:u()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:l,page_size:a})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},I=function(e){return o.a.get(Object(i.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},D=function(e){return o.a.post(Object(i.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},N=function(e,t){return o.a.patch(Object(i.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},R=function(e){return o.a.get(Object(i.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},L=function(){return Object(h.f)().then((function(e){return R(e.sub).then((function(t){return _(_({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},F=function(e){return o.a.get(e).then((function(e){return e.data}))},z=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return k?new Promise((function(e){return e(k)})):o.a.get(Object(i.b)(S.resource_types)).then((function(e){var n=e.data;return v(k=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(g.h)(t+e,n),n})))}))}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),i=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/backgroundselector.js"),s=n("./MapStore2/web/client/utils/MapUtils.js"),l=n("./node_modules/reselect/es/index.js"),u=n("./MapStore2/web/client/selectors/catalog.js"),c=n("./MapStore2/web/client/selectors/widgets.js"),d=n("./MapStore2/web/client/selectors/mapInfo.js"),p=n("./MapStore2/web/client/selectors/dimension.js"),f=n("./MapStore2/web/client/selectors/timeline.js"),h=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},m=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var z=function(e,t){return e.ofType(C.s).exhaustMap((function(e){var n,r=e.resource,i=Object(E.mapValues)(r.attributes,(function(e){if(Object(E.isObject)(e)){var t=null;try{t=JSON.stringify(e)}catch(e){t=null}return t}return e})),a=Object(E.keys)(i).filter((function(e){return"thumbnail"!==e&&"details"!==e&&!Object(E.isNil)(i[e])}));return o.a.Observable.forkJoin((n=Object(E.get)(r,"attributes.context"),n?Object(A.d)(n,{withData:!1}):o.a.Observable.of(null)),r.id?Object(A.h)(r):Object(A.b)(r)).switchMap((function(e){var n=M(e,2),s=n[0],l=n[1];return(a.length>0?o.a.Observable.forkJoin(a.map((function(e){return Object(A.i)({id:l,name:e,value:i[e]})}))):o.a.Observable.of([])).switchMap((function(){return o.a.Observable.from([].concat(P(r.id?[Object(p.o)(l)]:[]),P(r.id?[Object(p.m)(r.data,l)]:[]),[r.id?Object(d.h)("mapSave"):Object(d.h)("mapSaveAs"),Object(p.t)(r.id)],P(r.id?[]:[Object(C.F)(l,O()({id:l,canDelete:!0,canEdit:!0,canCopy:!0},r.metadata),r.data),Object(S.d)(s?"/context/".concat(s.name,"/").concat(l):"/viewer/".concat(Object(T.c)(t.getState()),"/").concat(l))]))).merge(o.a.Observable.of(Object(j.b)({title:"map.savedMapTitle",message:"map.savedMapMessage",autoDismiss:6,position:"tc"})))}))})).catch((function(e){var t=e.status,n=e.statusText,r=e.data,i=e.message,a=F(e,["status","statusText","data","message"]);return o.a.Observable.of(Object(p.s)(t?{status:t,statusText:n,data:r}:i||a),Object(j.a)(R(R({},Object(k.c)(e,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(C.I)(r.metadata):Object(C.L)(r.metadata))}))},B=n("./MapStore2/web/client/selectors/controls.js");function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType("GEONODE:CREATE_MAP_THUMBNAIL","GEONODE:CREATE_LAYER_THUMBNAIL").do((function(){try{$("#_thumbnail_processing").modal("show")}catch(e){console.log(e)}})).exhaustMap((function(e){var t=e.type,r=n(),i=Object(s.p)(r),u=Object(l.l)(r),c="GEONODE:CREATE_MAP_THUMBNAIL"===t,d=c?x()(u,"info.id"):i[i.length-1].name,p=c?"maps":"layers",f=u.size,h=f.width,m=f.height,g=u.bbox.bounds,y=g.maxx,b=g.minx,v=g.maxy,w={bbox:[b,y,g.miny,v],srid:u.bbox.crs,center:u.center,zoom:u.zoom,width:h,height:m,layers:i.filter((function(e){return"background"!==e.group&&e.visibility})).map((function(e){return e.name})).join(",")};return Object(a.d)(p,d,w).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.status;try{$("#_thumbnail_feedbacks").find(".modal-title").text(n),$("#_thumbnail_feedbacks").find(".modal-body").text(t),$("#_thumbnail_feedbacks").modal("show")}catch(e){console.log(e)}})).mapTo({type:"THUMBNAIL_UPDATE"}).catch((function(e){var t=e.code,n=e.message;try{"ECONNABORTED"===t?($("#_thumbnail_feedbacks").find(".modal-title").text("Timeout"),$("#_thumbnail_feedbacks").find(".modal-body").text("Failed from timeout: Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show")):($("#_thumbnail_feedbacks").find(".modal-title").text("Error: "+n),$("#_thumbnail_feedbacks").find(".modal-body").text("Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show"))}catch(e){console.log(e)}finally{return o.a.Observable.of({type:"THUMBNAIL_UPDATE_ERROR"})}})).do((function(){try{$("#_thumbnail_processing").modal("hide")}catch(e){console.log(e)}}))}))},V=function(e,t){return e.ofType(p.d,f.M,d.b,f.f,f.z,h.f,h.x,h.n,h.i,d.d,d.c,m.w,m.k,h.h,h.q).switchMap((function(){var e=t.getState();if(x()(e,"browser.mobile")){var n=U({},Object(g.m)(e)?{bottom:"50%"}:{bottom:void 0});return o.a.Observable.of(Object(c.b)({boundingMapRect:n}))}var r=Object(u.getConfigProp)("mapLayout")||{left:{sm:300,md:500,lg:600},right:{md:658},bottom:{sm:30}};if("embedded"===x()(e,"mode")){var i={height:"calc(100% - "+r.bottom.sm+"px)"},a=U({},Object(g.m)(e)?{bottom:"50%"}:{bottom:void 0});return o.a.Observable.of(Object(c.b)(U(U({},i),{},{boundingMapRect:a})))}var s=x()(e,"controls.drawer.resizedWidth"),l=v()([x()(e,"controls.queryPanel.enabled")&&{left:r.left.lg}||null,x()(e,"controls.widgetBuilder.enabled")&&{left:r.left.md}||null,x()(e,"layers.settings.expanded")&&{left:r.left.md}||null,x()(e,"controls.drawer.enabled")&&{left:s||r.left.sm}||null].filter((function(e){return e})))||{left:0},d=v()([x()(e,"controls.details.enabled")&&{right:r.right.md}||null,x()(e,"controls.annotations.enabled")&&{right:r.right.md}||null,x()(e,"controls.metadataexplorer.enabled")&&{right:r.right.md}||null,x()(e,"controls.measure.enabled")&&Object(B.h)(e)&&{right:r.right.md}||null,x()(e,"mapInfo.enabled")&&Object(g.m)(e)&&{right:r.right.md}||null].filter((function(e){return e})))||{right:0},p=100*Object(y.g)(e),f=Object(y.o)(e)&&{bottom:p+"%",dockSize:p}||{bottom:r.bottom.sm},h=Object(y.o)(e)&&{transform:"translate(0, -"+r.bottom.sm+"px)"}||{transform:"none"},m={height:"calc(100% - "+r.bottom.sm+"px)"},b=U(U(U({},f),l),d);return o.a.Observable.of(Object(c.b)(U(U(U(U(U(U({},l),d),f),h),m),{},{boundingMapRect:b})))}))};t.b={mapSaveMapResourceEpic:z,_setFeatureEditPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(m.u).filter((function(e){return"layer"===e.nodeType&&!Object(u.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(){var e=Object(s.j)(n()||{});return e?Object(a.b)(e).map((function(e){return Object(f.Fb)(e)})).startWith(Object(f.Fb)({canEdit:!1})).catch((function(){return o.a.Observable.empty()})):o.a.Observable.of(Object(f.Fb)({canEdit:!1}))}))},_setThumbnail:H,_setStyleEditorPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(i.f,m.u).filter((function(e){var t=e.nodeType;return t&&"layer"===t&&!Object(u.getConfigProp)("disableCheckEditPermissions")||!t&&!Object(u.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(e){var t=Object(s.j)(n()||{});return t?Object(a.c)(t).map((function(e){var t=e.canEdit;return Object(i.C)(t)})).startWith(Object(i.C)(e.canEdit)).catch((function(){return o.a.Observable.empty()})):o.a.Observable.of(Object(i.C)(!1))}))},updateMapLayoutEpic:V}},"./js/extend.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=!1},"./js/plugins.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"getRecords",(function(){return on})),n.d(r,"textSearch",(function(){return an})),n.d(r,"validate",(function(){return sn})),n.d(r,"testService",(function(){return ln}));var o={};n.r(o),n.d(o,"parseUrl",(function(){return yn})),n.d(o,"getRecords",(function(){return bn})),n.d(o,"textSearch",(function(){return vn}));var i={};n.r(i),n.d(i,"scaleBand",(function(){return rs})),n.d(i,"scalePoint",(function(){return os})),n.d(i,"scaleIdentity",(function(){return Ol})),n.d(i,"scaleLinear",(function(){return _l})),n.d(i,"scaleLog",(function(){return Pl})),n.d(i,"scaleOrdinal",(function(){return ns})),n.d(i,"scaleImplicit",(function(){return ts})),n.d(i,"scalePow",(function(){return Il})),n.d(i,"scaleSqrt",(function(){return Dl})),n.d(i,"scaleQuantile",(function(){return Nl})),n.d(i,"scaleQuantize",(function(){return Rl})),n.d(i,"scaleThreshold",(function(){return Ll})),n.d(i,"scaleTime",(function(){return Yc})),n.d(i,"scaleUtc",(function(){return ed})),n.d(i,"schemeCategory10",(function(){return nd})),n.d(i,"schemeCategory20b",(function(){return rd})),n.d(i,"schemeCategory20c",(function(){return od})),n.d(i,"schemeCategory20",(function(){return id})),n.d(i,"interpolateCubehelixDefault",(function(){return wd})),n.d(i,"interpolateRainbow",(function(){return Sd})),n.d(i,"interpolateWarm",(function(){return xd})),n.d(i,"interpolateCool",(function(){return _d})),n.d(i,"interpolateViridis",(function(){return Ed})),n.d(i,"interpolateMagma",(function(){return Cd})),n.d(i,"interpolateInferno",(function(){return Td})),n.d(i,"interpolatePlasma",(function(){return kd})),n.d(i,"scaleSequential",(function(){return Ad}));var a={};n.r(a),n.d(a,"featureGridBrowseData",(function(){return Xz})),n.d(a,"featureGridLayerSelectionInitialization",(function(){return Zz})),n.d(a,"featureGridStartupQuery",(function(){return Qz})),n.d(a,"featureGridSort",(function(){return $z})),n.d(a,"featureGridUpdateGeometryFilter",(function(){return Jz})),n.d(a,"featureGridUpdateTextFilters",(function(){return eB})),n.d(a,"enableGeometryFilterOnEditMode",(function(){return tB})),n.d(a,"disableMultiSelect",(function(){return nB})),n.d(a,"handleClickOnMap",(function(){return rB})),n.d(a,"handleBoxSelectionDrawEnd",(function(){return oB})),n.d(a,"activateBoxSelectionTool",(function(){return iB})),n.d(a,"deactivateBoxSelectionTool",(function(){return aB})),n.d(a,"selectFeaturesOnMapClickResult",(function(){return sB})),n.d(a,"activateTemporaryChangesEpic",(function(){return lB})),n.d(a,"handleGeometryFilterActivation",(function(){return uB})),n.d(a,"deactivateGeometryFilter",(function(){return cB})),n.d(a,"activateGeometryFilter",(function(){return dB})),n.d(a,"featureGridChangePage",(function(){return pB})),n.d(a,"featureGridReloadPageOnSaveSuccess",(function(){return fB})),n.d(a,"updateSelectedOnSaveOrCloseFeatureGrid",(function(){return hB})),n.d(a,"savePendingFeatureGridChanges",(function(){return mB})),n.d(a,"deleteSelectedFeatureGridFeatures",(function(){return gB})),n.d(a,"handleEditFeature",(function(){return yB})),n.d(a,"handleDrawFeature",(function(){return bB})),n.d(a,"resetEditingOnFeatureGridClose",(function(){return vB})),n.d(a,"closeRightPanelOnFeatureGridOpen",(function(){return wB})),n.d(a,"onFeatureGridGeometryEditing",(function(){return xB})),n.d(a,"deleteGeometryFeature",(function(){return _B})),n.d(a,"triggerDrawSupportOnSelectionChange",(function(){return OB})),n.d(a,"onFeatureGridCreateNewFeature",(function(){return SB})),n.d(a,"setHighlightFeaturesPath",(function(){return jB})),n.d(a,"resetGridOnLocationChange",(function(){return EB})),n.d(a,"resetQueryPanel",(function(){return CB})),n.d(a,"autoCloseFeatureGridEpicOnDrowerOpen",(function(){return TB})),n.d(a,"askChangesConfirmOnFeatureGridClose",(function(){return kB})),n.d(a,"onClearChangeConfirmedFeatureGrid",(function(){return AB})),n.d(a,"onCloseFeatureGridConfirmed",(function(){return PB})),n.d(a,"removeWmsFilterOnGridClose",(function(){return MB})),n.d(a,"autoReopenFeatureGridOnFeatureInfoClose",(function(){return IB})),n.d(a,"onOpenAdvancedSearch",(function(){return DB})),n.d(a,"onFeatureGridZoomAll",(function(){return NB})),n.d(a,"resetControlsOnEnterInEditMode",(function(){return RB})),n.d(a,"closeIdentifyWhenOpenFeatureGrid",(function(){return LB})),n.d(a,"startSyncWmsFilter",(function(){return FB})),n.d(a,"stopSyncWmsFilter",(function(){return zB})),n.d(a,"deactivateSyncWmsFilterOnFeatureGridClose",(function(){return BB})),n.d(a,"syncMapWmsFilter",(function(){return qB})),n.d(a,"virtualScrollLoadFeatures",(function(){return UB})),n.d(a,"replayOnTimeDimensionChange",(function(){return GB})),n.d(a,"hideFeatureGridOnDrawerOpenMobile",(function(){return HB})),n.d(a,"hideDrawerOnFeatureGridOpenMobile",(function(){return VB}));var s={};n.r(s),n.d(s,"checkWPSAvailabilityEpic",(function(){return WJ})),n.d(s,"openDownloadTool",(function(){return YJ})),n.d(s,"fetchFormatsWFSDownload",(function(){return KJ})),n.d(s,"startFeatureExportDownload",(function(){return XJ})),n.d(s,"closeExportDownload",(function(){return ZJ})),n.d(s,"showInfoBubbleMessageEpic",(function(){return QJ})),n.d(s,"checkExportDataEntriesEpic",(function(){return $J})),n.d(s,"serializeCookieOnExportDataChange",(function(){return JJ})),n.d(s,"resetExportDataResultsOnLogout",(function(){return e0})),n.d(s,"setExportDataResultsOnLoginSuccessAndMapConfigLoaded",(function(){return t0}));var l=n("./js/epics/index.js"),u=n("./js/extend.js"),c=n("./node_modules/react/index.js"),d=n.n(c),p=n("./node_modules/prop-types/index.js"),f=n.n(p),h=n("./node_modules/react-redux/es/index.js"),m=n("./MapStore2/node_modules/lodash/get.js"),g=n.n(m),y=n("./MapStore2/web/client/components/misc/Portal.jsx"),b=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),v=n("./MapStore2/web/client/components/I18N/Message.jsx"),w=n("./node_modules/react-bootstrap/es/index.js"),x=n("./MapStore2/web/client/actions/controls.js"),_=n("./MapStore2/web/client/actions/layers.js"),O=n("./MapStore2/web/client/utils/PluginsUtils.js");function S(e){return(S="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 j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n0?" toc-head-sections-"+e.length:" toc-head-sections";return d.a.createElement("div",{className:"mapstore-toc-head"+t},d.a.createElement(w.Grid,{fluid:!0},this.props.showTitle?this.renderTitle():null,this.props.showFilter?this.renderFilter():null,this.props.showTools?this.renderTools():null))}}])&&ye(t.prototype,n),r&&ye(t,r),i}(d.a.Component);Oe(Se,"propTypes",{title:f.a.string,filterText:f.a.string,filterPlaceholder:f.a.oneOfType([f.a.object,f.a.string]),showTitle:f.a.bool,showFilter:f.a.oneOfType([f.a.bool,f.a.number]),showTools:f.a.bool,toolbar:f.a.object,onFilter:f.a.func,onClear:f.a.func,filterTooltipClear:f.a.oneOfType([f.a.object,f.a.string])}),Oe(Se,"defaultProps",{title:"",filterText:"",filterPlaceholder:"Filter",showTitle:!0,showFilter:!0,showTools:!0,toolbar:null,onFilter:function(){},onClear:function(){},filterTooltipClear:"Clear"});var je=Se,Ee=n("./MapStore2/web/client/libs/proj4.js"),Ce=n.n(Ee),Te=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),ke=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),Ae=(n("./MapStore2/web/client/components/TOC/fragments/css/settingsModal.css"),n("./MapStore2/web/client/components/data/template/jsx/Template.jsx")),Pe=n("./MapStore2/web/client/components/misc/Dialog.jsx"),Me=n("./MapStore2/web/client/components/TOC/fragments/template/index.js"),Ie=n("./MapStore2/web/client/utils/StringUtils.js"),De=n("./MapStore2/web/client/utils/URLUtils.js"),Ne=n("./MapStore2/web/client/components/misc/Button.jsx");function Re(e){return(Re="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 Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=function(e,n){t.setState({collapsed:Fe(Fe({},t.state.collapsed),{},Ve({},e,n))})},i=function(e,n){return d.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},e,d.a.createElement(Ne.a,{style:{margin:"4px 0 0 4px"},className:"square-button-md no-border",onClick:function(){return o(n,!t.state.collapsed[n])}},d.a.createElement(w.Glyphicon,{glyph:t.state.collapsed[n]?"plus":"minus"})))},a=function(e,t){return"".concat(e,"@item_").concat(t)},s=Object(le.keys)(e).filter((function(e){return"references"!==e})).map((function(n){var o,s,l=e[n],u="".concat(r,".").concat(n),c="toc.layerMetadata.".concat(n),p=Object(re.f)(t.context.messages,c)===c?d.a.createElement(v.default,{msgId:"toc.layerMetadata.defaultPropName",msgParams:{propName:n}}):d.a.createElement(v.default,{msgId:c}),f=function(e){return d.a.createElement("tr",null,d.a.createElement("td",null,p),d.a.createElement("td",null,e))};if(Object(le.isArray)(l))if(l.length){var h="toc.layerMetadata.itemTitles.".concat(n),m=Object(re.f)(t.context.messages,h),g=m===h?Object(re.f)(t.context.messages,"toc.layerMetadata.itemTitles.default"):m,y=l.map((function(e,n){var r=a(u,n);return Object(le.isObject)(e)?t.renderMetadata(e,l.length>1?i(d.a.createElement("h4",null,"".concat(g," #").concat(n+1)),r):null,r):d.a.createElement("li",{key:n},e)}));o=Object(le.isObject)(l[0])?(s=d.a.createElement("div",null,i(d.a.createElement("h4",null,p),u),t.state.collapsed[u]?null:d.a.createElement("div",null,y)),d.a.createElement("tr",null,d.a.createElement("td",{colSpan:"2"},s))):f(d.a.createElement("ul",null,y))}else o=null;else if(Object(le.isString)(l)){var b=Object(Ie.b)(l),w=Object(De.c)(l);o=f(b||w?d.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:w?l:"mailto:".concat(l)},l):l)}return o})).filter((function(e){return!!e}));return d.a.createElement("div",{style:r?{padding:"8px"}:{}},n,t.state.collapsed[r]?null:d.a.createElement(w.Table,null,d.a.createElement("tbody",null,s)))})),t.state={collapsed:{}},t}return t=i,(n=[{key:"renderEmpty",value:function(){return d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"toc.layerMetadata.emptyMetadata"}))}},{key:"render",value:function(){var e=this.props.model;return Object(le.keys)(e).length?d.a.createElement("div",{style:{maxHeight:"400px",overflow:"auto"},id:e.identifier},this.renderMetadata(e)):this.renderEmpty()}}])&&ze(t.prototype,n),r&&ze(t,r),i}(d.a.Component);Ve(We,"propTypes",{model:f.a.object}),Ve(We,"contextTypes",{messages:f.a.object}),Ve(We,"defaultProps",{model:{}});var Ye=We;function Ke(e){return(Ke="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 Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n1&0===r.length?"LAYERS":i,i=r.length>1&&!o?"GROUPS":i,i=e.props.selectedLayers.length>0&&e.props.selectedLayers.filter((function(e){return"Error"===e.loadingError})).length===e.props.selectedLayers.length?"".concat(i,"_LOAD_ERROR"):i})),gt(ht(e),"getSelectedGroup",(function(){return e.props.selectedGroups.length>0&&e.props.selectedGroups[e.props.selectedGroups.length-1]})),gt(ht(e),"getSelectedNodeDepth",(function(){return"DESELECT"===e.getStatus()?0:e.getSelectedGroup().id.split(".").length+1})),gt(ht(e),"addLayer",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddLayer(t&&t.id)})),gt(ht(e),"addGroup",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddGroup(t&&t.id)})),gt(ht(e),"browseData",(function(){e.props.onToolsActions.onBrowseData({url:e.props.selectedLayers[0].search.url||e.props.selectedLayers[0].url,name:e.props.selectedLayers[0].name,id:e.props.selectedLayers[0].id})})),gt(ht(e),"download",(function(){var t;e.props.onToolsActions.onDownload({url:(null===(t=e.props.selectedLayers[0].search)||void 0===t?void 0:t.url)||e.props.selectedLayers[0].url,name:e.props.selectedLayers[0].name,id:e.props.selectedLayers[0].id})})),gt(ht(e),"checkBbox",(function(){var t=e.props.selectedLayers.filter((function(e){return e.bbox})).map((function(e){return e.bbox})),n=t.length>0?t.reduce((function(e,t){return e.crs===t.crs?e:{crs:"differentCRS"}})):{crs:"differentCRS"};return!!Object(le.head)(t)&&"differentCRS"!==n.crs&&n.crs})),gt(ht(e),"zoomTo",(function(){var t=e.props.selectedLayers.filter((function(e){return e.bbox})).map((function(e){return e.bbox})),n=t.length>1?t.reduce((function(e,t){return{bounds:{maxx:e.bounds.maxx>t.bounds.maxx?e.bounds.maxx:t.bounds.maxx,maxy:e.bounds.maxy>t.bounds.maxy?e.bounds.maxy:t.bounds.maxy,minx:e.bounds.minx1?"LAYERS":"LAYER"]:d.a.createElement(v.default,{msgId:"toc.epsgNotSupported",msgParams:{epsg:n||" "}}))},d.a.createElement(Ne.a,{bsStyle:"primary",className:"square-button-md",style:r?{opacity:1,cursor:"pointer"}:{opacity:.5,cursor:"default"},onClick:r?this.zoomTo:function(){}},d.a.createElement(w.Glyphicon,{glyph:"zoom-to"}))):null,!this.props.activateTool.activateSettingsTool||"LAYER"!==t&&"GROUP"!==t&&"LAYER_LOAD_ERROR"!==t||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"settings",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-settings"},this.props.text.settingsTooltip["LAYER_LOAD_ERROR"===t?"LAYER":t])},d.a.createElement(Ne.a,{active:this.props.settings.expanded,bsStyle:this.props.settings.expanded?"success":"primary",className:"square-button-md",onClick:function(){e.showSettings(t)}},d.a.createElement(w.Glyphicon,{glyph:"wrench"}))),!this.props.activateTool.activateLayerFilterTool||"LAYER"!==t&&"LAYER_LOAD_ERROR"!==t||!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"queryPanel",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-layerFilter"},this.props.text.layerFilterTooltip)},d.a.createElement(Ne.a,{bsStyle:"primary",className:"square-button-md",onClick:this.props.onToolsActions.onQueryBuilder},d.a.createElement(w.Glyphicon,{glyph:"filter-layer"}))),!this.props.activateTool.activateQueryTool||"LAYER"!==t||!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"featuresGrid",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-featuresGrid"},this.props.text.featuresGridTooltip)},d.a.createElement(Ne.a,{bsStyle:"primary",className:"square-button-md",onClick:this.browseData},d.a.createElement(w.Glyphicon,{glyph:"features-grid"}))),(!this.props.activateTool.activateRemoveLayer||"LAYER"!==t&&"LAYERS"!==t&&"LAYER_LOAD_ERROR"!==t&&"LAYERS_LOAD_ERROR"!==t)&&(!this.props.activateTool.activateRemoveGroup||"GROUP"!==t&&"GROUPS"!==t&&"GROUP_LOAD_ERROR"!==t&&"GROUPS_LOAD_ERROR"!==t)||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"removeNode",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-trash"},this.props.selectedGroups.length?this.props.text.trashTooltip.GROUP:this.props.text.trashTooltip[this.props.selectedLayers.length>1?"LAYERS":"LAYER"])},d.a.createElement(Ne.a,{active:this.state.showDeleteDialog,bsStyle:this.props.settings.showDeleteDialog?"success":"primary",className:"square-button-md",onClick:this.displayDeleteDialog},d.a.createElement(w.Glyphicon,{glyph:"trash"}))),!this.isLoading()&&"LAYER_LOAD_ERROR"===t||"LAYERS_LOAD_ERROR"===t?d.a.createElement(Te.a,{key:"reload",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-reload"},this.props.text.reloadTooltip[this.props.selectedLayers.length>1?"LAYERS":"LAYER"])},d.a.createElement(Ne.a,{bsStyle:"primary",className:"square-button-md",onClick:this.reload},d.a.createElement(w.Glyphicon,{glyph:"refresh"}))):null,!this.props.activateTool.activateWidgetTool||"LAYER"!==t||1!==this.props.selectedLayers.length||"vector"===this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"widgets",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-widgets"},this.props.text.createWidgetTooltip)},d.a.createElement(Ne.a,{bsStyle:"primary",className:"square-button-md",onClick:this.props.onToolsActions.onNewWidget},d.a.createElement(w.Glyphicon,{glyph:"stats"}))),!this.props.activateTool.activateDownloadTool||"LAYER"!==t||"wms"!==this.props.selectedLayers[0].type&&!this.props.selectedLayers[0].search||this.props.settings.expanded||this.props.layerMetadata.expanded?null:d.a.createElement(Te.a,{key:"downloadTool",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"toc-tooltip-downloadTool"},this.props.text.downloadToolTooltip)},d.a.createElement(Ne.a,{bsStyle:this.props.layerdownload.expanded?"success":"primary",className:"square-button-md",onClick:this.download},d.a.createElement(w.Glyphicon,{glyph:"download"}))),!this.props.activateTool.activateMetedataTool||"LAYER"!==t||this.props.settings.expanded||this.props.layerdownload.expanded?null:d.a.createElement(Te.a,{key:"layerMetadata",placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"legend-tooltip-metadata"},this.props.text.layerMetadataTooltip)},d.a.createElement(Ne.a,{key:"layer-metadata",bsStyle:this.props.layerMetadata.expanded?"success":"primary",className:"square-button-md",onClick:function(){return e.showMetadata()}},d.a.createElement(w.Glyphicon,{glyph:"info-sign"}))),this.props.items.filter((function(n){var r=n.selector;return(void 0===r?function(){return!0}:r)(lt(lt({},e.props),{},{status:t}))})).map((function(n){var r=n.Component;return d.a.createElement(r,at({},e.props,{status:t}))})),d.a.createElement(ke.a,{ref:"removelayer",options:{animation:!1,className:"modal-fixed"},show:this.state.showDeleteDialog,onHide:this.closeDeleteDialog,onClose:this.closeDeleteDialog,onConfirm:this.removeNodes,titleText:this.props.selectedGroups&&this.props.selectedGroups.length?this.props.text.confirmDeleteLayerGroupText:this.props.text.confirmDeleteText,confirmText:this.props.text.confirmDeleteConfirmText,cancelText:this.props.text.confirmDeleteCancelText,body:this.props.selectedGroups&&this.props.selectedGroups.length?this.props.text.confirmDeleteLayerGroupMessage:this.props.text.confirmDeleteMessage}),o):null}}])&&ct(t.prototype,n),r&&ct(t,r),i}(d.a.Component);gt(yt,"propTypes",{groups:f.a.array,items:f.a.array,selectedLayers:f.a.array,generalInfoFormat:f.a.string,selectedGroups:f.a.array,onToolsActions:f.a.object,text:f.a.object,activateTool:f.a.object,options:f.a.object,style:f.a.object,settings:f.a.object,layerMetadata:f.a.object,layerdownload:f.a.object,maxDepth:f.a.number,metadataTemplate:f.a.oneOfType([f.a.string,f.a.array,f.a.object,f.a.func])}),gt(yt,"defaultProps",{groups:[],items:[],selectedLayers:[],selectedGroups:[],onToolsActions:{onZoom:function(){},onNewWidget:function(){},onBrowseData:function(){},onQueryBuilder:function(){},onUpdate:function(){},onRemove:function(){},onClear:function(){},onSettings:function(){},onUpdateSettings:function(){},onRetrieveLayerData:function(){},onHideSettings:function(){},onReload:function(){},onAddLayer:function(){},onAddGroup:function(){},onDownload:function(){},onGetMetadataRecord:function(){},onHideLayerMetadata:function(){},onShow:function(){},onLayerInfo:function(){}},maxDepth:3,text:{settingsText:"",opacityText:"",elevationText:"",saveText:"",closeText:"",confirmDeleteText:"",confirmDeleteMessage:"",confirmDeleteConfirmText:"",confirmDeleteCancelText:"",createWidgetTooltip:"",addLayerTooltip:"",addLayerToGroupTooltip:"",addGroupTooltip:"",addSubGroupTooltip:"",zoomToTooltip:{LAYER:"",LAYERS:""},settingsTooltip:{LAYER:"",GROUP:""},featuresGridTooltip:"",downloadToolTooltip:"",trashTooltip:{LAYER:"",LAYERS:"",GROUP:""},reloadTooltip:{LAYER:"",LAYERS:""},layerMetadataTooltip:"",layerMetadataPanelTitle:"",layerFilter:"",layerInfoTooltip:""},activateTool:{activateToolsContainer:!0,activateRemoveLayer:!0,activateRemoveGroup:!0,activateZoomTool:!0,activateQueryTool:!0,activateDownloadTool:!0,activateSettingsTool:!0,activateAddLayer:!0,activateAddGroup:!0,includeDeleteButtonInSettings:!1,activateMetedataTool:!0,activateLayerFilterTool:!0,activateLayerInfoTool:!0},options:{modalOptions:{},metadataOptions:{},settingsOptions:{}},style:{chartStyle:{}},settings:{},layerMetadata:{},layerdownload:{},metadataTemplate:null});var bt=yt,vt=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),wt=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),xt=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),_t=n("./MapStore2/web/client/api/CSW.js"),Ot=n("./MapStore2/web/client/api/WMS.js"),St=n("./MapStore2/web/client/api/WMTS.js"),jt=n("./MapStore2/web/client/utils/ConfigUtils.js"),Et=n("./node_modules/xml2js/lib/xml2js.js"),Ct=n.n(Et),Tt=n("./MapStore2/web/client/libs/ajax.js"),kt=n.n(Tt),At=n("./MapStore2/web/client/utils/SecurityUtils.js"),Pt=n("./MapStore2/web/client/utils/TMSUtils.js");function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=Object(le.castArray)(Object(le.get)(e,"TileMapService.TileMaps.TileMap",[])),a=o.projection,s=Object(le.get)(o,"options.service.allSRS"),l=i.map((function(t){var n=t.$,r=void 0===n?{}:n;return It(It({},r),{},{href:Object(At.cleanAuthParamsFromURL)(r.href),identifier:Object(At.cleanAuthParamsFromURL)(r.href),format:Object(Pt.a)(r.href),tmsUrl:Object(At.cleanAuthParamsFromURL)(e.url)})})).filter((function(e){var t=e.srs;return!(a&&!s)||Rt(t,a)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t,o=e.srs,i=void 0===o?"":o;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())||-1!==i.toLowerCase().indexOf(r.toLowerCase())}));return{numberOfRecordsMatched:l.length,numberOfRecordsReturned:Math.min(n,l.length),nextRecord:t+Math.min(n,l.length)+1,records:l.filter((function(e,r){return r>=t-1&&r0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())})),i=o.filter((function(e,r){return r>=t-1&&r4&&void 0!==arguments[4]?arguments[4]:{},i=o.options,a=i||{},s=a.service,l=void 0===s?{}:s;return"tms"===l.provider&&zt(e,t,n,r,o),Wt(0,t,n,r,o)},an=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.options,a=i||{},s=a.service,l=void 0===s?{}:s;return"tms"===l.provider?zt(e,t,n,r,o):Wt(0,t,n,r,o)},sn=function(e){return"tms"===e.provider?nn(e):Yt(e)},ln=function(e){return"tms"===e.provider?rn({parseUrl:Ft})(e):function(e){return qt.Observable.of(e)}(e)},un=n("./MapStore2/web/client/api/WFS.js");function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=Object(le.castArray)(Object(le.get)(e,'["wfs:WFS_Capabilities"].FeatureTypeList.FeatureType',[])),i=o.map((function(t){var n=t.Name,r=t.Title,o=t.Abstract,i=t.DefaultSRS,a=t.OtherSRS,s=void 0===a?[]:a,l=t["ows:WGS84BoundingBox"],u=l["ows:LowerCorner"].split(" "),c=l["ows:UpperCorner"].split(" "),d={minx:parseFloat(u[0]),miny:parseFloat(u[1]),maxx:parseFloat(c[0]),maxy:parseFloat(c[1])};return{featureType:t,type:"wfs",url:Object(At.cleanAuthParamsFromURL)(e.url),name:n,title:r,description:o,SRS:[i].concat(fn(s)),defaultSRS:i,boundingBox:{bounds:d,crs:"EPSG:4326"}}})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"":t,o=e.name,i=void 0===o?"":o,a=e.description;return!r||-1!==n.toLowerCase().indexOf(r.toLowerCase())||-1!==i.toLowerCase().indexOf(r.toLowerCase())||-1!==a.toLowerCase().indexOf(r.toLowerCase())})),a=i.filter((function(e,r){return r>=t-1&&r0?" toc-body-sections-"+r.length:" toc-body-sections";return d.a.createElement("div",null,d.a.createElement(je,{title:e.props.mapName,showTitle:e.props.activateMapTitle,showFilter:e.props.activateFilterLayer&&(e.props.groups.filter((function(e){return(e.nodes||[]).length}))||[]).length,showTools:e.props.activateToolsContainer,onClear:function(){e.props.onSelectNode()},onFilter:e.props.onFilter,filterTooltipClear:d.a.createElement(v.default,{msgId:"toc.clearFilter"}),filterPlaceholder:Object(re.f)(e.context.messages,"toc.filterPlaceholder"),filterText:e.props.filterText,toolbar:d.a.createElement(bt,{items:e.props.items.filter((function(e){return"toolbar"===e.target})),groups:e.props.groups,selectedLayers:e.props.selectedLayers,selectedGroups:e.props.selectedGroups,generalInfoFormat:e.props.generalInfoFormat,settings:e.props.settings,swipeSettings:e.props.swipeSettings,layerMetadata:e.props.layerMetadata,layerdownload:e.props.layerdownload,metadataTemplate:e.props.metadataTemplate,maxDepth:e.props.maxDepth,activateTool:{activateToolsContainer:e.props.activateToolsContainer,activateRemoveLayer:e.props.activateRemoveLayer,activateRemoveGroup:e.props.activateRemoveGroup,activateZoomTool:e.props.activateZoomTool,activateQueryTool:e.props.activateQueryTool,activateDownloadTool:e.props.activateDownloadTool,activateSettingsTool:e.props.activateSettingsTool,activateAddLayer:e.props.activateAddLayerButton&&!e.props.catalogActive,activateAddGroup:e.props.activateAddGroupButton,includeDeleteButtonInSettings:!1,activateMetedataTool:e.props.activateMetedataTool,activateWidgetTool:e.props.activateWidgetTool,activateLayerFilterTool:e.props.activateLayerFilterTool,activateLayerInfoTool:e.props.updatableLayersCount>0&&e.props.activateLayerInfoTool},options:{modalOptions:{},metadataOptions:e.props.metadataOptions,settingsOptions:e.props.settingsOptions},style:{chartStyle:e.props.chartStyle},text:{settingsText:d.a.createElement(v.default,{msgId:"layerProperties.windowTitle"}),opacityText:d.a.createElement(v.default,{msgId:"opacity"}),elevationText:d.a.createElement(v.default,{msgId:"elevation"}),saveText:d.a.createElement(v.default,{msgId:"save"}),closeText:d.a.createElement(v.default,{msgId:"close"}),confirmDeleteText:d.a.createElement(v.default,{msgId:"layerProperties.deleteLayer"}),confirmDeleteMessage:d.a.createElement(v.default,{msgId:"layerProperties.deleteLayerMessage"}),confirmDeleteLayerGroupText:d.a.createElement(v.default,{msgId:"layerProperties.deleteLayerGroup"}),confirmDeleteLayerGroupMessage:d.a.createElement(v.default,{msgId:"layerProperties.deleteLayerGroupMessage"}),confirmDeleteConfirmText:d.a.createElement(v.default,{msgId:"layerProperties.delete"}),confirmDeleteCancelText:d.a.createElement(v.default,{msgId:"cancel"}),addLayer:d.a.createElement(v.default,{msgId:"toc.addLayer"}),addLayerTooltip:d.a.createElement(v.default,{msgId:"toc.addLayer"}),addLayerToGroupTooltip:d.a.createElement(v.default,{msgId:"toc.addLayerToGroup"}),addGroupTooltip:d.a.createElement(v.default,{msgId:"toc.addGroup"}),addSubGroupTooltip:d.a.createElement(v.default,{msgId:"toc.addSubGroup"}),createWidgetTooltip:d.a.createElement(v.default,{msgId:"toc.createWidget"}),zoomToTooltip:{LAYER:d.a.createElement(v.default,{msgId:"toc.toolZoomToLayerTooltip"}),LAYERS:d.a.createElement(v.default,{msgId:"toc.toolZoomToLayersTooltip"})},settingsTooltip:{LAYER:d.a.createElement(v.default,{msgId:"toc.toolLayerSettingsTooltip"}),GROUP:d.a.createElement(v.default,{msgId:"toc.toolGroupSettingsTooltip"})},featuresGridTooltip:d.a.createElement(v.default,{msgId:"toc.toolFeaturesGridTooltip"}),downloadToolTooltip:d.a.createElement(v.default,{msgId:"toc.toolDownloadTooltip"}),trashTooltip:{LAYER:d.a.createElement(v.default,{msgId:"toc.toolTrashLayerTooltip"}),LAYERS:d.a.createElement(v.default,{msgId:"toc.toolTrashLayersTooltip"}),GROUP:d.a.createElement(v.default,{msgId:"toc.toolTrashGroupTooltip"})},reloadTooltip:{LAYER:d.a.createElement(v.default,{msgId:"toc.toolReloadLayerTooltip"}),LAYERS:d.a.createElement(v.default,{msgId:"toc.toolReloadLayersTooltip"})},layerMetadataTooltip:d.a.createElement(v.default,{msgId:"toc.layerMetadata.toolLayerMetadataTooltip"}),layerMetadataPanelTitle:d.a.createElement(v.default,{msgId:"toc.layerMetadata.layerMetadataPanelTitle"}),layerFilterTooltip:d.a.createElement(v.default,{msgId:"toc.layerFilterTooltip"}),layerInfoTooltip:d.a.createElement(v.default,{msgId:"toc.layerInfoTooltip"})},onToolsActions:{onZoom:e.props.onZoomToExtent,onNewWidget:e.props.onNewWidget,onBrowseData:e.props.onBrowseData,onQueryBuilder:e.props.onQueryBuilder,onDownload:e.props.onDownload,onUpdate:e.props.updateNode,onRemove:e.props.removeNode,onClear:e.props.onSelectNode,onSettings:e.props.onSettings,onUpdateSettings:e.props.updateSettings,onRetrieveLayerData:e.props.retrieveLayerData,onHideSettings:e.props.hideSettings,onReload:e.props.refreshLayerVersion,onAddLayer:e.props.onAddLayer,onAddGroup:e.props.onAddGroup,onGetMetadataRecord:e.props.onGetMetadataRecord,onHideLayerMetadata:e.props.hideLayerMetadata,onShow:e.props.layerPropertiesChangeHandler,onLayerInfo:e.props.onLayerInfo}})}),d.a.createElement("div",{className:"mapstore-toc"+o},e.props.noFilterResults&&e.props.filterText?d.a.createElement("div",null,d.a.createElement("div",{className:"toc-filter-no-results"},d.a.createElement(v.default,{msgId:"toc.noFilteredResults"}))):d.a.createElement(fe.a,{onError:e.props.onError,onSort:!e.props.filterText&&e.props.activateSortLayer?e.props.onSort:null,filter:e.getNoBackgroundLayers,nodes:e.props.filteredGroups},d.a.createElement(xt.a,{groupElement:t,layerElement:n}))))})),e}return t=i,(n=[{key:"render",value:function(){return this.props.groups?this.renderTOC():d.a.createElement("div",null)}}])&&Tn(t.prototype,n),r&&Tn(t,r),i}(d.a.Component);Dn(Fn,"propTypes",{id:f.a.number,items:f.a.array,buttonContent:f.a.node,groups:f.a.array,settings:f.a.object,swipeSettings:f.a.object,layerMetadata:f.a.object,layerdownload:f.a.object,metadataTemplate:f.a.oneOfType([f.a.string,f.a.array,f.a.object,f.a.func]),refreshMapEnabled:f.a.bool,groupStyle:f.a.object,groupPropertiesChangeHandler:f.a.func,layerPropertiesChangeHandler:f.a.func,onToggleGroup:f.a.func,onToggleLayer:f.a.func,onContextMenu:f.a.func,onBrowseData:f.a.func,onQueryBuilder:f.a.func,onDownload:f.a.func,onSelectNode:f.a.func,selectedNodes:f.a.array,onZoomToExtent:f.a.func,retrieveLayerData:f.a.func,onSort:f.a.func,onSettings:f.a.func,onRefreshLayer:f.a.func,onNewWidget:f.a.func,hideSettings:f.a.func,updateSettings:f.a.func,updateNode:f.a.func,removeNode:f.a.func,activateTitleTooltip:f.a.bool,showFullTitleOnExpand:f.a.bool,activateOpacityTool:f.a.bool,activateSortLayer:f.a.bool,activateFilterLayer:f.a.bool,activateMapTitle:f.a.bool,activateToolsContainer:f.a.bool,activateRemoveLayer:f.a.bool,activateRemoveGroup:f.a.bool,activateLegendTool:f.a.bool,activateZoomTool:f.a.bool,activateQueryTool:f.a.bool,activateDownloadTool:f.a.bool,activateSettingsTool:f.a.bool,activateMetedataTool:f.a.bool,activateWidgetTool:f.a.bool,activateLayerInfoTool:f.a.bool,maxDepth:f.a.number,visibilityCheckType:f.a.string,settingsOptions:f.a.object,chartStyle:f.a.object,currentZoomLvl:f.a.number,scales:f.a.array,layerOptions:f.a.object,metadataOptions:f.a.object,spatialOperations:f.a.array,spatialMethodOptions:f.a.array,groupOptions:f.a.object,currentLocale:f.a.string,currentLocaleLanguage:f.a.string,onFilter:f.a.func,filterText:f.a.string,generalInfoFormat:f.a.string,selectedLayers:f.a.array,selectedGroups:f.a.array,mapName:f.a.string,filteredGroups:f.a.array,noFilterResults:f.a.bool,onAddLayer:f.a.func,onAddGroup:f.a.func,onError:f.a.func,onGetMetadataRecord:f.a.func,hideLayerMetadata:f.a.func,activateAddLayerButton:f.a.bool,activateAddGroupButton:f.a.bool,activateLayerFilterTool:f.a.bool,catalogActive:f.a.bool,refreshLayerVersion:f.a.func,hideOpacityTooltip:f.a.bool,layerNodeComponent:f.a.func,groupNodeComponent:f.a.func,isLocalizedLayerStylesEnabled:f.a.bool,onLayerInfo:f.a.func,onSetSwipeActive:f.a.func,updatableLayersCount:f.a.number,onSetSwipeMode:f.a.func}),Dn(Fn,"contextTypes",{messages:f.a.object}),Dn(Fn,"defaultProps",{items:[],groupPropertiesChangeHandler:function(){},layerPropertiesChangeHandler:function(){},retrieveLayerData:function(){},onToggleGroup:function(){},onToggleLayer:function(){},onContextMenu:function(){},onToggleQuery:function(){},onZoomToExtent:function(){},onSettings:function(){},onRefreshLayer:function(){},onNewWidget:function(){},updateNode:function(){},removeNode:function(){},onSelectNode:function(){},selectedNodes:[],activateOpacityTool:!0,activateTitleTooltip:!0,showFullTitleOnExpand:!1,activateSortLayer:!0,activateFilterLayer:!0,activateMapTitle:!0,activateToolsContainer:!0,activateLegendTool:!0,activateZoomTool:!0,activateSettingsTool:!0,activateMetedataTool:!0,activateRemoveLayer:!0,activateRemoveGroup:!0,activateQueryTool:!0,activateDownloadTool:!0,activateWidgetTool:!1,activateLayerFilterTool:!1,activateLayerInfoTool:!0,maxDepth:3,visibilityCheckType:"glyph",settingsOptions:{includeCloseButton:!1,closeGlyph:"1-close",buttonSize:"small",showFeatureInfoTab:!0},layerOptions:{},metadataOptions:{},groupOptions:{},spatialOperations:[{id:"INTERSECTS",name:"queryform.spatialfilter.operations.intersects"},{id:"BBOX",name:"queryform.spatialfilter.operations.bbox"},{id:"CONTAINS",name:"queryform.spatialfilter.operations.contains"},{id:"WITHIN",name:"queryform.spatialfilter.operations.within"}],spatialMethodOptions:[{id:"Viewport",name:"queryform.spatialfilter.methods.viewport"},{id:"BBOX",name:"queryform.spatialfilter.methods.box"},{id:"Circle",name:"queryform.spatialfilter.methods.circle"},{id:"Polygon",name:"queryform.spatialfilter.methods.poly"}],currentLocale:"en-US",filterText:"",selectedLayers:[],selectedGroups:[],mapName:"",filteredGroups:[],noFilterResults:!1,onAddLayer:function(){},onAddGroup:function(){},onError:function(){},onGetMetadataRecord:function(){},hideLayerMetadata:function(){},activateAddLayerButton:!1,activateAddGroupButton:!1,catalogActive:!1,refreshLayerVersion:function(){},metadataTemplate:null,onLayerInfo:function(){},onSetSwipeMode:function(){}});var zn=Object(F.withPropsOnChange)(["user","addLayersPermissions","activateAddLayerButton","removeLayersPermissions","activateRemoveLayer","sortingPermission","activateRemoveLayer","addGroupsPermissions","activateAddGroupButton","removeGroupsPermissions","activateRemoveGroup","layerInfoToolPermissions","activateLayerInfoTool"],(function(e){var t=e.addLayersPermissions,n=void 0===t||t,r=e.removeLayersPermissions,o=void 0===r||r,i=e.sortingPermissions,a=void 0===i||i,s=e.addGroupsPermissions,l=void 0===s||s,u=e.removeGroupsPermissions,c=void 0===u||u,d=e.layerInfoToolPermissions,p=void 0!==d&&d,f=e.activateAddLayerButton,h=e.activateRemoveLayer,m=e.activateSortLayer,g=e.activateAddGroupButton,y=e.activateRemoveGroup,b=e.activateLayerInfoTool,v=e.user,w=function(e,t){var n=v&&"ADMIN"===v.role||!1;return!(!e&&!n)&&t};return{activateAddLayerButton:w(n,f),activateRemoveLayer:w(o,h),activateSortLayer:w(a,m),activateAddGroupButton:w(l,g),activateRemoveGroup:w(c,y),activateLayerInfoTool:w(p,b)}})),Bn=Object(F.branch)((function(e){var t=e.checkPlugins;return void 0===t||t}),Object(F.withPropsOnChange)(["items","activateAddLayerButton","activateAddGroupButton","activateLayerFilterTool","activateSettingsTool","FeatureEditor","activateLayerInfoTool"],(function(e){var t=e.items,n=void 0===t?[]:t,r=e.activateAddLayerButton,o=void 0===r||r,i=e.activateAddGroupButton,a=void 0===i||i,s=e.activateQueryTool,l=void 0===s||s,u=e.activateSettingsTool,c=void 0===u||u,d=e.activateLayerFilterTool,p=void 0===d||d,f=e.activateWidgetTool,h=void 0===f||f,m=e.activateLayerInfoTool,g=void 0===m||m,y=e.activateDownloadTool,b=void 0===y||y;return{activateAddLayerButton:o&&!!Object(le.find)(n,{name:"MetadataExplorer"})||!1,activateAddGroupButton:a&&!!Object(le.find)(n,{name:"AddGroup"})||!1,activateSettingsTool:c&&!!Object(le.find)(n,{name:"TOCItemsSettings"})||!1,activateQueryTool:l&&!!Object(le.find)(n,{name:"FeatureEditor"})||!1,activateLayerFilterTool:p&&!!Object(le.find)(n,{name:"FilterLayer"})||!1,activateWidgetTool:h&&!!Object(le.find)(n,{name:"WidgetBuilder"})&&!!Object(le.find)(n,{name:"Widgets"}),activateLayerInfoTool:g&&!!Object(le.find)(n,{name:"LayerInfo"})||!1,activateDownloadTool:b&&!!Object(le.find)(n,{name:"LayerDownload"})||!1}}))),qn=Object(h.connect)(Ln,{groupPropertiesChangeHandler:_.G,layerPropertiesChangeHandler:_.I,retrieveLayerData:U.b,onToggleGroup:Object(te.toggleByType)("groups",_.bb),onToggleLayer:Object(te.toggleByType)("layers",_.bb),onContextMenu:_.K,onBrowseData:_.F,onQueryBuilder:function(){return{type:"LAYER_FILTER:OPEN_QUERY_BUILDER"}},onDownload:_.L,onSort:_.U,onSettings:_.Z,onZoomToExtent:G.I,hideSettings:_.O,updateSettings:_.eb,updateNode:_.db,removeNode:_.W,onSelectNode:_.X,onFilter:_.M,onAddLayer:x.f.bind(null,"metadataexplorer","enabled",!0,"group"),onAddGroup:x.f.bind(null,"addgroup","enabled",!0,"parent"),onGetMetadataRecord:ce.U,onError:H.f,hideLayerMetadata:_.N,onNewWidget:function(){return Object(ue.G)()},refreshLayerVersion:_.V,onLayerInfo:x.g.bind(null,"layerinfo","enabled",!0,!1)})(Object(F.compose)(zn,Bn)(Fn)),Un={TOCPlugin:ie()(qn,{Toolbar:{name:"toc",position:7,exclusive:!0,panel:!0,help:d.a.createElement(v.default,{msgId:"helptexts.layerSwitcher"}),tooltip:"layers",wrap:!0,title:"layers",icon:d.a.createElement(w.Glyphicon,{glyph:"1-layer"}),priority:1},DrawerMenu:{name:"toc",position:1,glyph:"1-layer",icon:d.a.createElement("img",{src:se.a}),buttonConfig:{buttonClassName:"square-button no-border",tooltip:"toc.layers"},priority:2}}),reducers:{queryform:n("./MapStore2/web/client/reducers/queryform.js").default,query:n("./MapStore2/web/client/reducers/query.js").default},epics:n("./MapStore2/web/client/epics/catalog.js").default(Sn)},Gn=n("./MapStore2/web/client/plugins/Map.jsx"),Hn=n("./MapStore2/web/client/plugins/Toolbar.jsx"),Vn=(n("./MapStore2/web/client/plugins/drawer/drawer.css"),n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx")),Wn=n("./MapStore2/web/client/selectors/maplayout.js"),Yn=n("./node_modules/react-sidebar/dist-modules/index.js"),Kn=n.n(Yn),Xn=n("./node_modules/react-resizable/index.js");function Zn(e){return(Zn="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 Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nr(e,t){for(var n=0;n0?d.a.createElement("div",{id:this.props.id},d.a.createElement(Lr,jr({},this.props,{id:"drawer-menu-button"})),d.a.createElement(Rr,jr({single:this.props.singleSection},this.props.menuOptions,{title:d.a.createElement(Or.a,{msgId:"menu"}),alignment:"left"}),this.renderItems())):null}}])&&Cr(t.prototype,n),r&&Cr(t,r),i}(d.a.Component);Ir(Fr,"propTypes",{items:f.a.array,active:f.a.string,toggleMenu:f.a.func,id:f.a.string,glyph:f.a.string,buttonStyle:f.a.string,menuOptions:f.a.object,singleSection:f.a.bool,buttonClassName:f.a.string,menuButtonStyle:f.a.object,disabled:f.a.bool}),Ir(Fr,"contextTypes",{messages:f.a.object,router:f.a.object}),Ir(Fr,"defaultProps",{id:"mapstore-drawermenu",items:[],toggleMenu:function(){},glyph:"1-layer",buttonStyle:"primary",menuOptions:{},singleSection:!0,buttonClassName:"square-button ms-drawer-menu-button",disabled:!1});var zr=Object(h.connect)((function(e){return{active:e.controls&&e.controls.drawer&&e.controls.drawer.active,disabled:e.controls&&e.controls.drawer&&e.controls.drawer.disabled}}),{toggleMenu:x.h.bind(null,"drawer",null)})(Fr),Br={DrawerMenuPlugin:ie()(zr,{disablePluginIf:"{state('featuregridmode') === 'EDIT'}",FloatingLegend:{priority:1,name:"drawer-menu",button:Lr}}),reducers:{}},qr=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),Ur=n("./MapStore2/web/client/plugins/MapLoading.jsx"),Gr=n("./MapStore2/web/client/plugins/OmniBar.jsx"),Hr=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),Vr=n("./MapStore2/web/client/plugins/FullScreen.jsx"),Wr=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),Yr=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),Kr=n("./MapStore2/web/client/plugins/Expander.jsx"),Xr=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),Zr=n("./node_modules/redux-undo/lib/index.js"),Qr=n.n(Zr);function $r(e){return($r="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 Jr(){return(Jr=Object.assign||function(e){for(var t=1;t0)}}),{onClick:Oo})(_o),Eo=Object(h.connect)((function(e){return{disabled:!((e.map&&e.map.past&&{past:e.map.past,future:e.map.future}||{past:[],future:[]}).future.length>0)}}),{onClick:So})(uo),Co={UndoPlugin:ie()(jo,{Toolbar:{name:"undo",position:5,tool:!0,tooltip:"history.undoBtnTooltip",icon:d.a.createElement(w.Glyphicon,{glyph:"step-backward"}),help:d.a.createElement(Or.a,{msgId:"helptexts.historyundo"}),priority:1}}),RedoPlugin:ie()(Eo,{Toolbar:{name:"redo",position:6,tool:!0,tooltip:"history.redoBtnTooltip",icon:d.a.createElement(w.Glyphicon,{glyph:"step-forward"}),help:d.a.createElement(Or.a,{msgId:"helptexts.historyredo"}),priority:1}}),reducers:{}},To=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),ko=n("./MapStore2/web/client/plugins/MapFooter.jsx"),Ao=n("./MapStore2/web/client/plugins/Print.jsx"),Po=n("./MapStore2/web/client/actions/annotations.js"),Mo=n("./MapStore2/web/client/actions/measurement.js"),Io=n("./MapStore2/web/client/selectors/measurement.js"),Do=n("./node_modules/react-widgets/lib/index.js"),No=n("./node_modules/uuid/v1.js"),Ro=n.n(No),Lo=n("./MapStore2/web/client/utils/FileUtils.js"),Fo=n("./MapStore2/web/client/utils/MeasurementUtils.js"),zo=n("./MapStore2/web/client/utils/MeasureUtils.js"),Bo=n("./MapStore2/web/client/components/I18N/Number.jsx"),qo=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),Uo=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),Go=n("./node_modules/react-select/dist/react-select.es.js"),Ho=n("./MapStore2/web/client/components/misc/enhancers/draggableContainer.jsx"),Vo=n("./MapStore2/web/client/utils/AnnotationsUtils.js"),Wo=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),Yo=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),Ko=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx"),Xo=function(e,t,n){return Object(le.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?Object(zo.convertUom)(parseFloat(e),t,n):e},Zo=function(e,t,n){return Object(le.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat(Object(zo.convertUom)(e,n,t).toFixed(4)):e},Qo=Object(F.compose)(Object(F.defaultProps)({valueUom:"m",displayUom:"m",units:[{value:"degrees",label:"deg",originUom:"degrees"},{value:"ft",label:"ft",originUom:"m"},{value:"m",label:"m",originUom:"m"},{value:"km",label:"km",originUom:"m"},{value:"mi",label:"mi",originUom:"m"},{value:"nm",label:"nm",originUom:"m"}]}),Object(F.withStateHandlers)((function(e){var t=e.displayUom;return{uom:void 0===t?"nm":t}}),{setUom:function(){return function(e){return{uom:e}}}}),Object(F.withState)("localValue","setLocalValue"),Object(F.withPropsOnChange)(["value","localValue","uom","valueUom"],(function(e){var t=e.value,n=e.localValue,r=e.uom,o=e.valueUom;return{value:t===Xo(n,r,o)?n:Zo(t,r,o)}})),Object(F.withHandlers)({onChange:function(e){var t=e.uom,n=e.projection,r=e.valueUom,o=e.onChange,i=void 0===o?function(){}:o,a=e.setLocalValue,s=void 0===a?function(){}:a;return function(e){s(e),i(Xo(e,t,r),n)}}}))((function(e){var t=e.value,n=e.units,r=void 0===n?[]:n,o=e.uom,i=e.projection,a=void 0===i?"EPSG:3857":i,s=e.style,l=void 0===s?{display:"inline-flex",width:"100%"}:s,u=e.setUom,c=void 0===u?function(){}:u,p=e.onChange,f=void 0===p?function(){}:p,h=Object(Yo.getUnits)(a);return d.a.createElement(w.FormGroup,{style:l},d.a.createElement(Ko.a,{value:t,placeholder:"radius",name:"radius",onChange:function(e){return f(e,o)},step:1,type:"number"}),d.a.createElement(w.FormControl,{componentClass:"select",placeholder:"select",value:o,onChange:function(e){return c(e.target.value)},style:{width:85}},r.filter((function(e){var t=e.originUom;return h===t})).map((function(e){return d.a.createElement("option",{key:e.value,value:e.value},e.label)}))))}));function $o(e){return($o="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 Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(t&&t.length){var o=t.filter(Vo.g);return n?o.length>e.props.componentsValidation[e.props.type].min||o.length>=e.props.componentsValidation[e.props.type].min&&!Object(Vo.g)(t[r]):o.length>=e.props.componentsValidation[e.props.type].min}return!1})),di(ui(e),"validateCircle",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.radius;if(t&&t.length){var r=Object(le.head)(t);return!Object(le.isNaN)(parseFloat(n))&&Object(Vo.g)(r)}return!1})),di(ui(e),"validateText",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.valueText;if(t&&t.length){var r=Object(le.head)(t);return!!n&&Object(Vo.g)(r)}return!1})),di(ui(e),"isValid",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1?arguments[1]:void 0;return e[e.props.componentsValidation[e.props.type].validation](t,!1,n)})),di(ui(e),"addCoordPolygon",(function(t){if("Polygon"===e.props.type){var n=t.filter(Vo.g);return t.concat([n.length?n[0]:{lat:"",lon:""}])}return t})),di(ui(e),"change",(function(t,n){var r=e.props.components,o=Object(le.isNaN)(parseFloat(n.lat))?"":parseFloat(n.lat),i=Object(le.isNaN)(parseFloat(n.lon))?"":parseFloat(n.lon);r[t]={lat:o,lon:i};var a=e.addCoordPolygon(r);e.props.onChange(a,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection),e.isValid(r)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(r[t]):((e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(null),e.props.onSetInvalidSelected("coords",r.map(Vo.d)))})),e}return t=i,(n=[{key:"renderCircle",value:function(){var e=this;return d.a.createElement("div",{style:{flex:1,overflowY:"auto",padding:"0 10px"}},d.a.createElement("div",null,d.a.createElement(w.FormGroup,{validationState:this.getValidationStateRadius(this.props.properties.radius)},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"annotations.editor.radius"})),d.a.createElement(Qo,ri({placeholder:"radius"},this.props.measureOptions,{value:this.props.properties.radius,projection:this.props.mapProjection,name:"radius",onChange:function(t,n){e.isValid(e.props.components,t)?e.props.onChangeRadius(parseFloat(t),e.props.components.map(Vo.d),n):""!==t?e.props.onChangeRadius(parseFloat(t),[],n):(e.props.onChangeRadius(null,e.props.components.map(Vo.d),n),e.props.onSetInvalidSelected("radius",e.props.components.map(Vo.d)))},step:1,type:"number"})))))}},{key:"render",value:function(){var e=this,t=this.props.features[this.props.currentFeature||0],n=Object(le.get)(t,"geometry.textLabels",[]),r=Object(le.get)(t,"properties.values",[]),o=this.props,i=o.componentsValidation,a=o.type,s=ti(this.props.components),l=s.filter(Vo.g).length===s.length,u=this[i[a].validation]()&&l,c=[{value:"decimal",text:d.a.createElement(v.default,{msgId:"annotations.editor.decimal"})},{value:"aeronautical",text:d.a.createElement(v.default,{msgId:"annotations.editor.aeronautical"})}],p=[{glyph:u?"ok-sign text-success":"exclamation-mark text-danger",tooltipId:u?"annotations.editor.valid":i[a].notValid,visible:!0},{Element:function(){return d.a.createElement(fi,{noCaret:!0,title:d.a.createElement(pi,{glyph:"cog"}),pullRight:!0,className:"square-button-md no-border",tooltip:"Format"},c.map((function(t){var n=t.text,r=t.value;return d.a.createElement(w.MenuItem,{active:e.props.format===r,key:r,onClick:function(){return e.props.onChangeFormat(r)}},n)})))}},{glyph:"plus",tooltipId:"annotations.editor.add",visible:!i[a].add||!i[a].max||this.props.components.length!==i[a].max,onClick:function(){var t=ti(e.props.components);t=t.concat([{lat:"",lon:""}]),e.props.onChange(t,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection)}}];return d.a.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1}},d.a.createElement("div",{className:"measure-feature-selector"},d.a.createElement("div",null,this.props.showFeatureSelector?d.a.createElement(Go.default,{value:this.props.currentFeature,options:[].concat(ti(this.props.features.map((function(t,n){var r=Object(le.get)(t,"properties.values",[]),o="bearing"===(r[0]||{}).type?"Bearing":t.geometry.type;if(o!==e.props.type)return null;var i="LineString"===o?"Length":"Bearing"===o?"Bearing":"Area",a=r.length>0?"".concat(i," ").concat(r[0].formattedValue):"",s=r.length>1&&"Polygon"===o?", Perimeter: ".concat(r[1].formattedValue):"";return{label:"".concat(o," (").concat(a).concat(s,")"),value:n}}))),[{label:Object(re.f)(this.context.messages,"annotations.editor.newFeature"),value:this.props.features.length}]).filter((function(e){return!!e})),onChange:function(t){return e.props.onChangeCurrentFeature(null==t?void 0:t.value)}}):null),d.a.createElement("div",null,d.a.createElement(Uo.a,{btnGroupProps:{className:"pull-right"},btnDefaultProps:{className:"square-button-md no-border"},buttons:p}))),"Circle"===this.props.type&&this.renderCircle(),"Circle"===this.props.type&&d.a.createElement("div",{style:{flex:1,overflowY:"auto",paddingLeft:10,marginTop:10}},d.a.createElement("div",null,d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"annotations.editor.center"})))),d.a.createElement("div",{className:"coordinates-row-container"},this.props.components.map((function(t,o){return d.a.createElement(d.a.Fragment,null,e.props.showLengthAndBearingLabel&&d.a.createElement("div",{className:"label-texts"},d.a.createElement("span",null,e.renderLabelTexts(o,{textLabels:n,featurePropValue:r}))),d.a.createElement(Wo.a,{format:e.props.format,aeronauticalOptions:e.props.aeronauticalOptions,sortId:o,key:o+" key",renderer:e.props.renderer,isDraggable:e.props.isDraggable,isDraggableEnabled:e.props.isDraggable&&e[i[a].validation](),showDraggable:e.props.isDraggable&&!("Point"===e.props.type||"Text"===e.props.type||"Circle"===e.props.type),formatVisible:!1,removeVisible:i[a].remove,removeEnabled:e[i[a].validation](e.props.components,i[a].remove,o),onSubmit:e.change,onMouseEnter:function(t){(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(t)},onMouseLeave:function(){(e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(null)},onSort:function(t,n){var r=e.props.components.reduce((function(r,o,i){return t===i?[].concat(ti(r),t>n?[ei({},o),Object(le.head)(e.props.components.filter((function(e,t){return t===n})))]:[Object(le.head)(e.props.components.filter((function(e,t){return t===n}))),ei({},o)]):n===i?ti(r):[].concat(ti(r),[ei({},o)])}),[]).filter((function(e){return e}));e.isValid(r)?e.props.onChange(r):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(Vo.d))},idx:o,component:t,onRemove:function(){var t=e.props.components.filter((function(e,t){return t!==o}));e.isValid(t)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type&&o!==t.length||"Polygon"===e.props.type?e.props.onHighlightPoint(t[o]):e.props.onHighlightPoint(null),e.props.onChange(t)):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(Vo.d))}}))}))),(!this.props.components||0===this.props.components.length)&&d.a.createElement("div",{className:"text-center",style:{padding:15,paddingBottom:30}},d.a.createElement("i",null,d.a.createElement(v.default,{msgId:"annotations.editor.addByClick"}))))}}])&&ii(t.prototype,n),r&&ii(t,r),i}(d.a.Component);di(hi,"propTypes",{components:f.a.array,measureOptions:f.a.object,onSetInvalidSelected:f.a.func,onChange:f.a.func,onChangeRadius:f.a.func,onHighlightPoint:f.a.func,onChangeText:f.a.func,onChangeFormat:f.a.func,onChangeCurrentFeature:f.a.func,format:f.a.string,aeronauticalOptions:f.a.object,componentsValidation:f.a.object,transitionProps:f.a.object,properties:f.a.object,mapProjection:f.a.string,features:f.a.array,currentFeature:f.a.number,showFeatureSelector:f.a.bool,type:f.a.string,isDraggable:f.a.bool,isMouseEnterEnabled:f.a.bool,isMouseLeaveEnabled:f.a.bool,showLengthAndBearingLabel:f.a.bool,renderer:f.a.string}),di(hi,"contextTypes",{messages:f.a.object}),di(hi,"defaultProps",{components:[],measureOptions:{},onChange:function(){},onChangeRadius:function(){},onHighlightPoint:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeCurrentFeature:function(){},onSetInvalidSelected:function(){},componentsValidation:{Bearing:{min:2,max:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Point:{min:1,max:1,add:!0,remove:!1,validation:"validateCoordinates",notValid:"annotations.editor.notValidMarker"},Circle:{min:1,max:1,add:!0,remove:!1,validation:"validateCircle",notValid:"annotations.editor.notValidCircle"},Text:{min:1,max:1,add:!0,remove:!1,validation:"validateText",notValid:"annotations.editor.notValidText"}},transitionProps:{transitionName:"switch-panel-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300},features:[],isDraggable:!0,isMouseEnterEnabled:!1,isMouseLeaveEnabled:!1,properties:{},type:"Point"});var mi=Object(Ho.a)(hi);function gi(e){return(gi="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 yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Object(zo.getFormattedBearingValue)(Object(le.round)(e||0,6),t)},onChangeUom:function(){},onChangeFormat:function(){},onMount:function(){},onUpdateOptions:function(){},onAddAsLayer:function(){}});var Ei=ji,Ci=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx");function Ti(e){return(Ti="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 ki(){return(ki=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mi(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?[d.a.createElement(w.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Nav,{bsStyle:"tabs",activeKey:o,justified:!0},X.map((function(e){return d.a.createElement(Ji,{key:"ms-tab-settings-"+e.id,tooltip:d.a.createElement(v.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){k(e.id),e.onClick&&e.onClick()}},d.a.createElement(w.Glyphicon,{glyph:e.glyph}))})))))]:[]))},X.filter((function(e){return e.id&&e.id===o})).filter((function(e){return e.Component})).map((function(t){return d.a.createElement(t.Component,Zi({},e,Q[t.id],{key:"ms-tab-settings-body-"+t.id,containerWidth:c,element:m,groups:f,nodeType:x.nodeType,settings:x,retrieveLayerData:I,onChange:function(e,t){return Object(le.isObject)(e)?P(e,L):P(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t),L)},isLocalizedLayerStylesEnabled:J,currentLocaleLanguage:l}))}))),d.a.createElement(y.a,null,d.a.createElement(b.a,{fade:!0,show:z,title:d.a.createElement(v.default,{msgId:"layerProperties.changedSettings"}),size:"xs",onClose:function(){return N(!1)},buttons:[{bsStyle:"primary",text:d.a.createElement(v.default,{msgId:"close"}),onClick:function(){return j(!0,te)}},{bsStyle:"primary",text:d.a.createElement(v.default,{msgId:"save"}),onClick:function(){return O(te)}}]},d.a.createElement("div",{className:"ms-alert"},d.a.createElement("div",{className:"ms-alert-center"},d.a.createElement(v.default,{msgId:"layerProperties.changedSettingsAlert"}))))))};ea.contextTypes={plugins:f.a.object,pluginsConfig:f.a.array,loadedPlugins:f.a.object};var ta=ea,na=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),ra=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),oa=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),ia=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),aa=n("./MapStore2/web/client/utils/MapInfoUtils.js"),sa=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),la=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),ua=n("./node_modules/react-nouislider/dist/react-nouislider.common.js"),ca=n.n(ua);n("./node_modules/recharts/node_modules/core-js/es6/math.js");if(!Object.setPrototypeOf&&!{}.__proto__){var da=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:da.call(Object,e)}}var pa=n("./node_modules/recharts/node_modules/prop-types/index.js"),fa=n.n(pa),ha=n("./node_modules/classnames/index.js"),ma=n.n(ha),ga=n("./MapStore2/node_modules/lodash/isNil.js"),ya=n.n(ga),ba=n("./MapStore2/node_modules/lodash/isString.js"),va=n.n(ba),wa=n("./MapStore2/node_modules/lodash/isObject.js"),xa=n.n(wa),_a=n("./MapStore2/node_modules/lodash/isFunction.js"),Oa=n.n(_a),Sa=n("./MapStore2/node_modules/lodash/isArray.js"),ja=n.n(Sa),Ea=n("./MapStore2/node_modules/lodash/sortBy.js"),Ca=n.n(Ea),Ta=n("./MapStore2/node_modules/lodash/isNaN.js"),ka=n.n(Ta),Aa=n("./MapStore2/node_modules/lodash/isNumber.js"),Pa=n.n(Aa),Ma=function(e,t){return et?1:e>=t?0:NaN},Ia=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ma(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Da=Ia(Ma),Na=Da.right,Ra=(Da.left,Na);var La=function(e){return null===e?NaN:+e},Fa=Array.prototype,za=(Fa.slice,Fa.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t=0?(i>=Ba?10:i>=qa?5:i>=Ua?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Ba?10:i>=qa?5:i>=Ua?2:1)}(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s=Ba?o*=10:i>=qa?o*=5:i>=Ua&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function Wa(){}function Ya(e,t){var n=new Wa;if(e instanceof Wa)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ss(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ss(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=fs.exec(e))?new Cs(t[1],t[2],t[3],1):(t=hs.exec(e))?new Cs(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ms.exec(e))?Ss(t[1],t[2],t[3],t[4]):(t=gs.exec(e))?Ss(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ys.exec(e))?Ps(t[1],t[2]/100,t[3]/100,1):(t=bs.exec(e))?Ps(t[1],t[2]/100,t[3]/100,t[4]):vs.hasOwnProperty(e)?Os(vs[e]):"transparent"===e?new Cs(NaN,NaN,NaN,0):null}function Os(e){return new Cs(e>>16&255,e>>8&255,255&e,1)}function Ss(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cs(e,t,n,r)}function js(e){return e instanceof ls||(e=_s(e)),e?new Cs((e=e.rgb()).r,e.g,e.b,e.opacity):new Cs}function Es(e,t,n,r){return 1===arguments.length?js(e):new Cs(e,t,n,null==r?1:r)}function Cs(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ts(){return"#"+As(this.r)+As(this.g)+As(this.b)}function ks(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function As(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ps(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Is(e,t,n,r)}function Ms(e){if(e instanceof Is)return new Is(e.h,e.s,e.l,e.opacity);if(e instanceof ls||(e=_s(e)),!e)return new Is;if(e instanceof Is)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new Is(a,s,l,e.opacity)}function Is(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ds(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ns(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}as(ls,_s,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ws,formatHex:ws,formatHsl:function(){return Ms(this).formatHsl()},formatRgb:xs,toString:xs}),as(Cs,Es,ss(ls,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Cs(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Cs(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ts,formatHex:Ts,formatRgb:ks,toString:ks})),as(Is,(function(e,t,n,r){return 1===arguments.length?Ms(e):new Is(e,t,n,null==r?1:r)}),ss(ls,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Is(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Is(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Cs(Ds(e>=240?e-240:e+120,o,r),Ds(e,o,r),Ds(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Rs=function(e){return function(){return e}};function Ls(e,t){return function(n){return e+n*t}}function Fs(e){return 1==(e=+e)?zs:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rs(isNaN(t)?n:t)}}function zs(e,t){var n=t-e;return n?Ls(e,n):Rs(isNaN(e)?t:e)}var Bs=function e(t){var n=Fs(t);function r(e,t){var r=n((e=Es(e)).r,(t=Es(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=zs(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function qs(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=ri&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:is(n,r)})),i=Ks.lastIndex;return i2?rl:nl,r=o=null,c}function c(t){return(r||(r=n(i,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(o||(o=n(a,i,tl,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(i=Ja.call(e,Js),u()):i.slice()},c.range=function(e){return arguments.length?(a=es.call(e),u()):a.slice()},c.rangeRound=function(e){return a=es.call(e),s=Qs,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}var al=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sl(e){if(!(t=al.exec(e)))throw new Error("invalid format: "+e);var t;return new ll({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ll(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}sl.prototype=ll.prototype,ll.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function ul(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var cl,dl,pl,fl,hl=function(e){return(e=ul(Math.abs(e)))?e[1]:NaN},ml=function(e,t){var n=ul(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},gl={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ml(100*e,t)},r:ml,s:function(e,t){var n=ul(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(cl=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ul(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},yl=function(e){return e},bl=Array.prototype.map,vl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];dl=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yl:(t=bl.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?yl:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bl.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=sl(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,y=e.trim,b=e.type;"n"===b?(m=!0,b="g"):gl[b]||(void 0===g&&(g=12),y=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?i:/[%p]/.test(b)?l:"",x=gl[b],_=/[defgprs%]/.test(b);function O(e){var o,i,l,p=v,O=w;if("c"===b)O=x(e)+O,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==d&&(S=!1),p=(S?"("===d?d:u:"-"===d||"("===d?"":d)+p,O=("s"===b?vl[8+cl/3]:"")+O+(S&&"("===d?")":""),_)for(o=-1,i=e.length;++o(l=e.charCodeAt(o))||l>57){O=(46===l?a+e.slice(o+1):e.slice(o))+O,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var j=p.length+e.length+O.length,E=j>1)+p+e+O+E.slice(j);break;default:e=E+p+e+O}return s(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return e+""},O}return{format:d,formatPrefix:function(e,t){var n=d(((e=sl(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(hl(t)/3))),o=Math.pow(10,-r),i=vl[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),pl=dl.format,fl=dl.formatPrefix;var wl=function(e,t,n){var r,o=e[0],i=e[e.length-1],a=Ha(o,i,null==t?10:t);switch((n=sl(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(o),Math.abs(i));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hl(t)/3)))-hl(Math.abs(e)))}(a,s))||(n.precision=r),fl(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hl(t)-hl(e))+1}(a,Math.max(Math.abs(o),Math.abs(i))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-hl(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return pl(n)};function xl(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ga(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return wl(t(),e,n)},e.nice=function(n){var r=t(),o=r.length-1,i=null==n?10:n,a=r[0],s=r[o],l=Ha(a,s,i);return l&&(l=Ha(Math.floor(a/l)*l,Math.ceil(s/l)*l,i),r[0]=Math.floor(a/l)*l,r[o]=Math.ceil(s/l)*l,t(r)),e},e}function _l(){var e=il(tl,is);return e.copy=function(){return ol(e,_l())},xl(e)}function Ol(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=Ja.call(n,Js),t):e.slice()},t.copy=function(){return Ol().domain(e)},xl(t)}var Sl=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;pl)break;m.push(d)}}else for(;p=1;--c)if(!((d=u*c)l)break;m.push(d)}}else m=Ga(p,f,Math.min(f-p,h)).map(o);return i?m.reverse():m},e.tickFormat=function(t,i){if(null==i&&(i=10===n?".0e":","),"function"!=typeof i&&(i=pl(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/o(Math.round(r(e)));return t*n0?n[o-1]:e[0],o=n?[r[n-1],t]:[r[a-1],r[a]]},i.copy=function(){return Rl().domain([e,t]).range(o)},xl(i)}function Ll(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[Ra(e,r,0,n)]}return r.domain=function(o){return arguments.length?(e=es.call(o),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(o){return arguments.length?(t=es.call(o),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return Ll().domain(e).range(t)},r}var Fl=new Date,zl=new Date;function Bl(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Fl.setTime(+t),zl.setTime(+r),e(Fl),e(zl),Math.floor(n(Fl,zl))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var ql=Bl((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));ql.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Bl((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Ul=ql,Gl=(ql.range,Bl((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Hl=Gl;Gl.range;function Vl(e){return Bl((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Wl=Vl(0),Yl=Vl(1),Kl=Vl(2),Xl=Vl(3),Zl=Vl(4),Ql=Vl(5),$l=Vl(6),Jl=(Wl.range,Yl.range,Kl.range,Xl.range,Zl.range,Ql.range,$l.range,Bl((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),eu=Jl,tu=(Jl.range,Bl((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),nu=tu,ru=(tu.range,Bl((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),ou=ru,iu=(ru.range,Bl((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),au=iu,su=(iu.range,Bl((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));su.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Bl((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):su:null};var lu=su;su.range;function uu(e){return Bl((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var cu=uu(0),du=uu(1),pu=uu(2),fu=uu(3),hu=uu(4),mu=uu(5),gu=uu(6),yu=(cu.range,du.range,pu.range,fu.range,hu.range,mu.range,gu.range,Bl((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),bu=yu,vu=(yu.range,Bl((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));vu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Bl((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var wu=vu;vu.range;function xu(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function _u(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ou(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Su,ju,Eu,Cu={"-":"",_:" ",0:"0"},Tu=/^\s*\d+/,ku=/^%/,Au=/[\\^$*+?|[\]().{}]/g;function Pu(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Uu(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Gu(e,t,n){var r=Tu.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Hu(e,t,n){var r=Tu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Vu(e,t,n){var r=Tu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Wu(e,t,n){var r=Tu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yu(e,t,n){var r=Tu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ku(e,t,n){var r=Tu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Xu(e,t,n){var r=Tu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Zu(e,t,n){var r=Tu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Qu(e,t,n){var r=Tu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $u(e,t,n){var r=ku.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ju(e,t,n){var r=Tu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ec(e,t,n){var r=Tu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tc(e,t){return Pu(e.getDate(),t,2)}function nc(e,t){return Pu(e.getHours(),t,2)}function rc(e,t){return Pu(e.getHours()%12||12,t,2)}function oc(e,t){return Pu(1+eu.count(Ul(e),e),t,3)}function ic(e,t){return Pu(e.getMilliseconds(),t,3)}function ac(e,t){return ic(e,t)+"000"}function sc(e,t){return Pu(e.getMonth()+1,t,2)}function lc(e,t){return Pu(e.getMinutes(),t,2)}function uc(e,t){return Pu(e.getSeconds(),t,2)}function cc(e){var t=e.getDay();return 0===t?7:t}function dc(e,t){return Pu(Wl.count(Ul(e)-1,e),t,2)}function pc(e){var t=e.getDay();return t>=4||0===t?Zl(e):Zl.ceil(e)}function fc(e,t){return e=pc(e),Pu(Zl.count(Ul(e),e)+(4===Ul(e).getDay()),t,2)}function hc(e){return e.getDay()}function mc(e,t){return Pu(Yl.count(Ul(e)-1,e),t,2)}function gc(e,t){return Pu(e.getFullYear()%100,t,2)}function yc(e,t){return Pu((e=pc(e)).getFullYear()%100,t,2)}function bc(e,t){return Pu(e.getFullYear()%1e4,t,4)}function vc(e,t){var n=e.getDay();return Pu((e=n>=4||0===n?Zl(e):Zl.ceil(e)).getFullYear()%1e4,t,4)}function wc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pu(t/60|0,"0",2)+Pu(t%60,"0",2)}function xc(e,t){return Pu(e.getUTCDate(),t,2)}function _c(e,t){return Pu(e.getUTCHours(),t,2)}function Oc(e,t){return Pu(e.getUTCHours()%12||12,t,2)}function Sc(e,t){return Pu(1+bu.count(wu(e),e),t,3)}function jc(e,t){return Pu(e.getUTCMilliseconds(),t,3)}function Ec(e,t){return jc(e,t)+"000"}function Cc(e,t){return Pu(e.getUTCMonth()+1,t,2)}function Tc(e,t){return Pu(e.getUTCMinutes(),t,2)}function kc(e,t){return Pu(e.getUTCSeconds(),t,2)}function Ac(e){var t=e.getUTCDay();return 0===t?7:t}function Pc(e,t){return Pu(cu.count(wu(e)-1,e),t,2)}function Mc(e){var t=e.getUTCDay();return t>=4||0===t?hu(e):hu.ceil(e)}function Ic(e,t){return e=Mc(e),Pu(hu.count(wu(e),e)+(4===wu(e).getUTCDay()),t,2)}function Dc(e){return e.getUTCDay()}function Nc(e,t){return Pu(du.count(wu(e)-1,e),t,2)}function Rc(e,t){return Pu(e.getUTCFullYear()%100,t,2)}function Lc(e,t){return Pu((e=Mc(e)).getUTCFullYear()%100,t,2)}function Fc(e,t){return Pu(e.getUTCFullYear()%1e4,t,4)}function zc(e,t){var n=e.getUTCDay();return Pu((e=n>=4||0===n?hu(e):hu.ceil(e)).getUTCFullYear()%1e4,t,4)}function Bc(){return"+0000"}function qc(){return"%"}function Uc(e){return+e}function Gc(e){return Math.floor(+e/1e3)}!function(e){Su=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Iu(o),c=Du(o),d=Iu(i),p=Du(i),f=Iu(a),h=Du(a),m=Iu(s),g=Du(s),y=Iu(l),b=Du(l),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:tc,e:tc,f:ac,g:yc,G:vc,H:nc,I:rc,j:oc,L:ic,m:sc,M:lc,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Uc,s:Gc,S:uc,u:cc,U:dc,V:fc,w:hc,W:mc,x:null,X:null,y:gc,Y:bc,Z:wc,"%":qc},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:xc,e:xc,f:Ec,g:Lc,G:zc,H:_c,I:Oc,j:Sc,L:jc,m:Cc,M:Tc,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Uc,s:Gc,S:kc,u:Ac,U:Pc,V:Ic,w:Dc,W:Nc,x:null,X:null,y:Rc,Y:Fc,Z:Bc,"%":qc},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Vu,e:Vu,f:Qu,g:qu,G:Bu,H:Yu,I:Yu,j:Wu,L:Zu,m:Hu,M:Ku,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Gu,Q:Ju,s:ec,S:Xu,u:Ru,U:Lu,V:Fu,w:Nu,W:zu,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:qu,Y:Bu,Z:Uu,"%":$u};function _(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=_u(Ou(i.y,0,1))).getUTCDay(),r=o>4||0===o?du.ceil(r):du(r),r=bu.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=xu(Ou(i.y,0,1))).getDay(),r=o>4||0===o?Yl.ceil(r):Yl(r),r=eu.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?_u(Ou(i.y,0,1)).getUTCDay():xu(Ou(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,_u(i)):xu(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in Cu?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=_(n,v),v.X=_(r,v),v.c=_(t,v),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}(e),ju=Su.format,Su.parse,Eu=Su.utcFormat,Su.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Hc(e){return new Date(e)}function Vc(e){return e instanceof Date?+e:+new Date(+e)}function Wc(e,t,n,r,o,i,a,s,l){var u=il(tl,is),c=u.invert,d=u.domain,p=l(".%L"),f=l(":%S"),h=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),b=l("%B"),v=l("%Y"),w=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function x(s){return(a(s)180||n<-180?n-360*Math.round(n/360):n):Rs(isNaN(e)?t:e)}));var vd=bd(zs),wd=vd(gd(300,.5,0),gd(-240,.5,1)),xd=vd(gd(-100,.75,.35),gd(80,1.5,.8)),_d=vd(gd(260,.75,.35),gd(80,1.5,.8)),Od=gd(),Sd=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Od.h=360*e-100,Od.s=1.5-1.5*t,Od.l=.8-.9*t,Od+""};function jd(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Ed=jd(td("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Cd=jd(td("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Td=jd(td("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),kd=jd(td("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ad(e){var t=0,n=1,r=!1;function o(o){var i=(o-t)/(n-t);return e(r?Math.max(0,Math.min(1,i)):i)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.clamp=function(e){return arguments.length?(r=!!e,o):r},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ad(e).domain([t,n]).clamp(r)},xl(o)}var Pd=function(e){return 0===e?0:e>0?1:-1},Md=function(e){return va()(e)&&e.indexOf("%")===e.length-1},Id=function(e){return Pa()(e)&&!ka()(e)},Dd=function(e){return Id(e)||va()(e)},Nd=0,Rd=function(e){return""+(e||"")+ ++Nd},Ld=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Id(e)&&!va()(e))return n;var o=void 0;if(Md(e)){var i=e.indexOf("%");o=t*parseFloat(e.slice(0,i))/100}else o=+e;return isNaN(o)&&(o=n),r&&o>t&&(o=t),o},Fd=/^dataMin[\s]*-[\s]*([\d]+)$/,zd=/^dataMax[\s]*\+[\s]*([\d]+)$/,Bd=function(e,t,n){if(!ja()(e))return t;var r=[];if(Id(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Fd.test(e[0])){var o=+Fd.exec(e[0])[1];r[0]=t[0]-o}else r[0]=t[0];if(Id(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(zd.test(e[1])){var i=+zd.exec(e[1])[1];r[1]=t[1]+i}else r[1]=t[1];return r},qd=function(e,t){if(!t)return!1;var n=t.range(),r=n[0],o=n[n.length-1];return r<=o?e>=r&&e<=o:e>=o&&e<=r},Ud=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=Ca()(t,(function(e){return e.coordinate})),r=1/0,o=1,i=n.length;o=0||t.indexOf("AreaChart")>=0)?os():"category"===r?rs():_l();if(va()(n)){var o="scale"+n.slice(0,1).toUpperCase()+n.slice(1);return(i[o]||os)()}return Oa()(n)?n:os()},Wd=function(e,t,n){return ya()(e)||ya()(t)?n:Dd(t)?g()(e,t,n):Oa()(t)?t(e):n},Yd=function(e,t){if(!e)return null;for(var n=0,r=e.length;n=0&&t.push(e)})),t},dp=function(e,t){return!(!ya()(e)||!ya()(t))||!ya()(e)&&!ya()(t)&&Kd(e.props,t.props)},pp=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","width","height","viewBox","className","style"]),l=o||{width:n,height:r,x:0,y:0},u=ma()("recharts-surface",i),c=rp(s);return d.a.createElement("svg",pp({},c,{className:u,width:n,height:r,style:a,viewBox:l.x+" "+l.y+" "+l.width+" "+l.height,version:"1.1"}),t)}hp.propTypes=fp;var mp=hp,gp=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=ma()("recharts-layer",n);return d.a.createElement("g",gp({className:o},r),t)}bp.propTypes=yp;var vp=bp,wp=Math.PI,xp=2*wp,_p=xp-1e-6;function Op(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Sp(){return new Op}Op.prototype=Sp.prototype={constructor:Op,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(c*s-l*u)>1e-6&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),y=Math.sqrt(d),b=o*Math.tan((wp-Math.acos((h+d-m)/(2*g*y)))/2),v=b/y,w=b/g;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%xp+xp),d>_p?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=wp)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var jp=Sp,Ep=function(e){return function(){return e}},Cp=Math.PI,Tp=2*Cp;function kp(e){this._context=e}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Ap=function(e){return new kp(e)};function Pp(e){return e[0]}function Mp(e){return e[1]}var Ip=function(){var e=Pp,t=Mp,n=Ep(!0),r=null,o=Ap,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=jp())),s=0;s<=c;++s)!(s=c;--d)s.point(g[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),y[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):y[u]))}if(f)return s=null,f+""||null}function u(){return Ip().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Ep(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Ep(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Ep(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Ep(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Ep(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ep(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Ep(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l};Rp(Ap);function Np(e){this._curve=e}function Rp(e){function t(t){return new Np(e(t))}return t._curve=e,t}Np.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Lp={draw:function(e,t){var n=Math.sqrt(t/Cp);e.moveTo(n,0),e.arc(0,0,n,0,Tp)}},Fp={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zp=Math.sqrt(1/3),Bp=2*zp,qp={draw:function(e,t){var n=Math.sqrt(t/Bp),r=n*zp;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Up=Math.sin(Cp/10)/Math.sin(7*Cp/10),Gp=Math.sin(Tp/10)*Up,Hp=-Math.cos(Tp/10)*Up,Vp={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Gp*n,o=Hp*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Tp*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Wp={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Yp=Math.sqrt(3),Kp={draw:function(e,t){var n=-Math.sqrt(t/(3*Yp));e.moveTo(0,2*n),e.lineTo(-Yp*n,-n),e.lineTo(Yp*n,-n),e.closePath()}},Xp=Math.sqrt(3)/2,Zp=1/Math.sqrt(12),Qp=3*(Zp/2+1),$p={draw:function(e,t){var n=Math.sqrt(t/Qp),r=n/2,o=n*Zp,i=r,a=n*Zp+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(-.5*r-Xp*o,Xp*r+-.5*o),e.lineTo(-.5*i-Xp*a,Xp*i+-.5*a),e.lineTo(-.5*s-Xp*l,Xp*s+-.5*l),e.lineTo(-.5*r+Xp*o,-.5*o-Xp*r),e.lineTo(-.5*i+Xp*a,-.5*a-Xp*i),e.lineTo(-.5*s+Xp*l,-.5*l-Xp*s),e.closePath()}},Jp=function(){};function ef(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function tf(e){this._context=e}tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ef(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nf(e){this._context=e}nf.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rf(e){this._context=e}rf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function of(e,t){this._basis=new tf(e),this._beta=t}of.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new tf(e):new of(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function af(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function sf(e,t){this._context=e,this._k=(1-t)/6}sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:af(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:af(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new sf(e,t)}return n.tension=function(t){return e(+t)},n})(0);function lf(e,t){this._context=e,this._k=(1-t)/6}lf.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:af(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new lf(e,t)}return n.tension=function(t){return e(+t)},n})(0);function uf(e,t){this._context=e,this._k=(1-t)/6}uf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:af(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new uf(e,t)}return n.tension=function(t){return e(+t)},n})(0);function cf(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function df(e,t){this._context=e,this._alpha=t}df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:cf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new df(e,t):new sf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function pf(e,t){this._context=e,this._alpha=t}pf.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:cf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new pf(e,t):new lf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ff(e,t){this._context=e,this._alpha=t}ff.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:cf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new ff(e,t):new uf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function hf(e){this._context=e}hf.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function mf(e){return e<0?-1:1}function gf(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(mf(i)+mf(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function yf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function bf(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function vf(e){this._context=e}function wf(e){this._context=new xf(e)}function xf(e){this._context=e}function _f(e){this._context=e}function Of(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var jf=Array.prototype.slice,Ef=function(e,t){if((r=e.length)>1)for(var n,r,o=1,i=e[t[0]],a=i.length;o=0;)n[t]=t;return n};function Tf(e,t){return e[t]}var kf,Af,Pf,Mf=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t=this.props,n=t.layout,r=t.align,o=t.verticalAlign,i=t.margin,a=t.chartWidth,s=t.chartHeight,l=void 0,u=void 0;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(l="center"===r&&"vertical"===n?{left:((a||0)-(this.getBBox()||{width:0}).width)/2}:"right"===r?{right:i&&i.right||0}:{left:i&&i.left||0});e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(u="middle"===o?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===o?{bottom:i&&i.bottom||0}:{top:i&&i.top||0});return Qf({},l,u)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,a=Qf({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),i);return d.a.createElement("div",{className:"recharts-legend-wrapper",style:a,ref:function(t){e.wrapperNode=t}},function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(Zf,t)}(n,this.props))}}],[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Id(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}]),t}(c.Component),Yf.displayName="Legend",Yf.propTypes={content:fa.a.oneOfType([fa.a.element,fa.a.func]),wrapperStyle:fa.a.object,chartWidth:fa.a.number,chartHeight:fa.a.number,width:fa.a.number,height:fa.a.number,iconSize:fa.a.number,iconType:fa.a.oneOf(oh),layout:fa.a.oneOf(["horizontal","vertical"]),align:fa.a.oneOf(["center","left","right"]),verticalAlign:fa.a.oneOf(["top","bottom","middle"]),margin:fa.a.shape({top:fa.a.number,left:fa.a.number,bottom:fa.a.number,right:fa.a.number}),payload:fa.a.arrayOf(fa.a.shape({value:fa.a.any,id:fa.a.any,type:fa.a.oneOf(Jd)})),formatter:fa.a.func,onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func,onBBoxUpdate:fa.a.func},Yf.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Wf=Kf))||Wf,ah=n("./node_modules/react-smooth/lib/index.js"),sh=n.n(ah),lh=Object.assign||function(e){for(var t=1;t1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.payload,r=t.isAnimationActive,o=t.animationDuration,i=t.animationEasing,a=n&&n.length&&n.filter((function(e){return!ya()(e.value)})).length,s=this.props,l=s.content,u=s.viewBox,c=s.coordinate,p=s.position,f=s.active,h=s.offset,m=s.wrapperStyle,g=yh({pointerEvents:"none",visibility:f&&a?"visible":"hidden",position:"absolute",top:0},m),y=void 0,b=void 0;if(p&&Id(p.x)&&Id(p.y))y=p.x,b=p.y;else{var v=this.state,w=v.boxWidth,x=v.boxHeight;w>0&&x>0&&c?(y=p&&Id(p.x)?p.x:Math.max(c.x+w+h>u.x+u.width?c.x-w-h:c.x+h,u.x),b=p&&Id(p.y)?p.y:Math.max(c.y+x+h>u.y+u.height?c.y-x-h:c.y+h,u.y)):g.visibility="hidden"}return g=yh({},g,Object(ah.translateStyle)({transform:"translate("+y+"px, "+b+"px)"})),r&&f&&(g=yh({},g,Object(ah.translateStyle)({transition:"transform "+o+"ms "+i}))),d.a.createElement("div",{className:"recharts-tooltip-wrapper",style:g,ref:function(t){e.wrapperNode=t}},function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(gh,t)}(l,this.props))}}]),t}(c.Component),fh.displayName="Tooltip",fh.propTypes=Oh,fh.defaultProps=Sh,ph=hh))||ph,Eh=n("./MapStore2/node_modules/lodash/debounce.js"),Ch=n.n(Eh),Th=n("./node_modules/recharts/node_modules/react-resize-detector/lib/index.js"),kh=n.n(Th),Ah=function(){function e(e,t){for(var n=0;n0?Ch()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ah(t,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,i=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),l=r.children;Md(i)||Md(a);var u=Md(i)?t:i,c=Md(a)?n:a;return o&&o>0&&(c=u/o,s&&c>s&&(c=s)),d.a.cloneElement(l,{width:u,height:c})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o={width:t.width,height:t.height,minWidth:n,minHeight:r,maxHeight:t.maxHeight};return d.a.createElement("div",{className:"recharts-responsive-container",style:o,ref:function(t){e.container=t}},this.renderChart(),d.a.createElement(kh.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}]),t}(c.Component),xh.displayName="ResponsiveContainer",xh.propTypes={aspect:fa.a.number,width:fa.a.oneOfType([fa.a.string,fa.a.number]),height:fa.a.oneOfType([fa.a.string,fa.a.number]),minHeight:fa.a.number,minWidth:fa.a.number,maxHeight:fa.a.number,children:fa.a.node.isRequired,debounce:fa.a.number},xh.defaultProps={width:"100%",height:"100%",debounce:0};var Ph,Mh,Ih=Object.assign||function(e){for(var t=1;t=0&&t===+t?t+"px":t}(n,e[n])+";"}),"")},Kh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||lp())return{width:0,height:0};var n=""+e,r=Yh(t),o=n+"-"+r;if(Uh.widthCache[o])return Uh.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i)),i.setAttribute("style",Yh(Bh({},Gh,t))),i.textContent=n;var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return Uh.widthCache[o]=s,++Uh.cacheCount>2e3&&(Uh.cacheCount=0,Uh.widthCache={}),s}catch(e){return{width:0,height:0}}},Xh=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},Zh=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}},Qh=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),p=this.state.wordsByLines;if(!Dd(c.x)||!Dd(c.y))return null;var f=c.x+(Id(t)?t:0),h=c.y+(Id(n)?n:0),m=void 0;switch(o){case"start":m=zh()("calc("+l+")");break;case"middle":m=zh()("calc("+(p.length-1)/2+" * -"+s+" + ("+l+" / 2))");break;default:m=zh()("calc("+(p.length-1)+" * -"+s+")")}var g=[];if(i){var y=p[0].width;g.push("scale("+this.props.width/y+")")}return a&&g.push("rotate("+a+", "+f+", "+h+")"),g.length&&(c.transform=g.join(" ")),d.a.createElement("text",Qh({},rp(c),{x:f,y:h,className:ma()("recharts-text",u),textAnchor:r}),p.map((function(e,t){return d.a.createElement("tspan",{x:f,dy:0===t?m:s,key:t},e.words.join(" "))})))}}]),t}(c.Component),Vh.propTypes=Qh({},Qd,{scaleToFit:fa.a.bool,angle:fa.a.number,textAnchor:fa.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:fa.a.oneOf(["start","middle","end"]),style:fa.a.object}),Vh.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},Wh),im=Math.PI/180,am=function(e,t,n,r){return{x:e+Math.cos(-im*r)*n,y:t+Math.sin(-im*r)*n}},sm=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.left||0)-(n.right||0)))/2},lm=Object.assign||function(e){for(var t=1;t180)+","+ +(i>s)+",\n "+u.x+","+u.y+"\n ";if(r>0){var d=am(t,n,r,i),p=am(t,n,r,s);c+="L "+p.x+","+p.y+"\n A "+r+","+r+",0,\n "+ +(Math.abs(a)>180)+","+ +(i<=s)+",\n "+d.x+","+d.y+" Z"}else c+="L "+t+","+n+" Z";return c},ym=Zd((rm=nm=function(e){function t(){return cm(this,t),dm(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),um(t,[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.startAngle,s=e.endAngle,l=e.className;if(o0&&Math.abs(a-s)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.startAngle,s=e.endAngle,l=Pd(s-a),u=mm({cx:t,cy:n,radius:o,angle:a,sign:l,cornerRadius:i}),c=u.circleTangency,d=u.lineTangency,p=u.theta,f=mm({cx:t,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i}),h=f.circleTangency,m=f.lineTangency,g=f.theta,y=Math.abs(a-s)-p-g;if(y<0)return gm({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:a,endAngle:s});var b="M "+d.x+","+d.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+c.x+","+c.y+"\n A"+o+","+o+",0,"+ +(y>180)+","+ +(l<0)+","+h.x+","+h.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+m.x+","+m.y+"\n ";if(r>0){var v=mm({cx:t,cy:n,radius:r,angle:a,sign:l,isExternal:!0,cornerRadius:i}),w=v.circleTangency,x=v.lineTangency,_=v.theta,O=mm({cx:t,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i}),S=O.circleTangency,j=O.lineTangency,E=O.theta,C=Math.abs(a-s)-_-E;if(C<0)return b+"L"+t+","+n+"Z";b+="L"+j.x+","+j.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+S.x+","+S.y+"\n A"+r+","+r+",0,"+ +(C>180)+","+ +(l>0)+","+w.x+","+w.y+"\n A"+i+","+i+",0,0,"+ +(l<0)+","+x.x+","+x.y+"Z"}else b+="L"+t+","+n+"Z";return b}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(p,c/2),startAngle:a,endAngle:s}):gm({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:a,endAngle:s}),d.a.createElement("path",lm({},rp(this.props),op(this.props),{className:u,d:f}))}}]),t}(c.Component),nm.displayName="Sector",nm.propTypes=lm({},Qd,{className:fa.a.string,cx:fa.a.number,cy:fa.a.number,innerRadius:fa.a.number,outerRadius:fa.a.number,startAngle:fa.a.number,endAngle:fa.a.number,cornerRadius:fa.a.oneOfType([fa.a.number,fa.a.string])}),nm.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0},tm=rm))||tm,bm=Object.assign||function(e){for(var t=1;t=0?1:-1,s=r>=0?1:0,l=void 0;if(i>0&&o instanceof Array){for(var u=[],c=0;c<4;c++)u[c]=o[c]>i?i:o[c];l="M"+e+","+(t+a*u[0]),u[0]>0&&(l+="A "+u[0]+","+u[0]+",0,0,"+s+","+(e+u[0])+","+t),l+="L "+(e+n-u[1])+","+t,u[1]>0&&(l+="A "+u[1]+","+u[1]+",0,0,"+s+",\n "+(e+n)+","+(t+a*u[1])),l+="L "+(e+n)+","+(t+r-a*u[2]),u[2]>0&&(l+="A "+u[2]+","+u[2]+",0,0,"+s+",\n "+(e+n-u[2])+","+(t+r)),l+="L "+(e+u[3])+","+(t+r),u[3]>0&&(l+="A "+u[3]+","+u[3]+",0,0,"+s+",\n "+e+","+(t+r-a*u[3])),l+="Z"}else if(i>0&&o===+o&&o>0){var d=Math.min(i,o);l="M "+e+","+(t+a*d)+"\n A "+d+","+d+",0,0,"+s+","+(e+d)+","+t+"\n L "+(e+n-d)+","+t+"\n A "+d+","+d+",0,0,"+s+","+(e+n)+","+(t+a*d)+"\n L "+(e+n)+","+(t+r-a*d)+"\n A "+d+","+d+",0,0,"+s+","+(e+n-d)+","+(t+r)+"\n L "+(e+d)+","+(t+r)+"\n A "+d+","+d+",0,0,"+s+","+e+","+(t+r-a*d)+" Z"}else l="M "+e+","+t+" h "+n+" v "+r+" h "+-n+" Z";return l},Fm=Zd((Sm=Om=function(e){function t(){var e,n,r;Mm(this,t);for(var o=arguments.length,i=Array(o),a=0;a0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:p,animationEasing:c,isActive:m},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return d.a.createElement(sh.a,{canBegin:l>0,from:"0px "+(-1===l?1:l)+"px",to:l+"px 0px",attributeName:"strokeDasharray",begin:f,duration:p,isActive:h,easing:c},d.a.createElement("path",Am({},rp(e.props),op(e.props),{className:g,d:Lm(o,i,n,r,a),ref:function(t){e.node=t}})))})):d.a.createElement("path",Am({},rp(this.props),op(this.props),{className:g,d:Lm(n,r,o,i,a)}))}}]),t}(c.Component),Om.displayName="Rectangle",Om.propTypes=Am({},Qd,$d,{className:fa.a.string,x:fa.a.number,y:fa.a.number,width:fa.a.number,height:fa.a.number,radius:fa.a.oneOfType([fa.a.number,fa.a.array]),isAnimationActive:fa.a.bool,isUpdateAnimationActive:fa.a.bool,animationBegin:fa.a.number,animationDuration:fa.a.number,animationEasing:fa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Om.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_m=Sm))||_m,zm=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Og(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sg(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var jg,Eg,Cg,Tg=Zd((gg=mg=function(e){function t(){return Og(this,t),Sg(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),xg(t,[{key:"getTickValueCoord",value:function(e){var t=e.radius,n=this.props,r=n.angle,o=n.cx,i=n.cy;return am(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e=void 0;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=_g(e,["cx","cy","angle","ticks","axisLine"]),s=o.reduce((function(e,t){return[Math.min(e[0],t.radius),Math.max(e[1],t.radius)]}),[1/0,-1/0]),l=am(t,n,s[0],r),u=am(t,n,s[1],r),c=wg({},rp(a),{fill:"none"},rp(i),{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return d.a.createElement("line",wg({className:"recharts-polar-radius-axis-line"},c))}},{key:"renderTickItem",value:function(e,t,n){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(om,wg({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,a=t.stroke,s=_g(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),u=rp(s),c=rp(r),p=n.map((function(t,n){var s=e.getTickValueCoord(t),p=wg({textAnchor:l,transform:"rotate("+(90-o)+", "+s.x+", "+s.y+")"},u,{stroke:"none",fill:a},c,{index:n},s,{payload:t});return d.a.createElement(vp,wg({className:"recharts-polar-radius-axis-tick",key:"tick-"+n},ap(e.props,t,n)),e.renderTickItem(r,p,i?i(t.value):t.value))}));return d.a.createElement(vp,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"renderLabel",value:function(){var e=this.props.label,t=this.props,n=t.ticks,r=t.angle,o=t.stroke,i=_g(t,["ticks","angle","stroke"]),a=vg()(n,(function(e){return e.radius||0})).radius||0,s=this.getTickValueCoord({radius:a+10}),l=wg({},i,{stroke:"none",fill:o},s,{textAnchor:"middle",transform:"rotate("+(90-r)+", "+s.x+", "+s.y+")"});return d.a.isValidElement(e)?d.a.cloneElement(e,l):Oa()(e)?e(l):Dd(e)?d.a.createElement(vp,{className:"recharts-polar-radius-axis-label"},d.a.createElement(om,l,e)):null}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?d.a.createElement(vp,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),this.renderLabel()):null}}]),t}(c.Component),mg.displayName="PolarRadiusAxis",mg.propTypes=wg({},Qd,$d,{cx:fa.a.number,cy:fa.a.number,hide:fa.a.bool,angle:fa.a.number,tickCount:fa.a.number,ticks:fa.a.arrayOf(fa.a.shape({value:fa.a.any,radius:fa.a.value})),orientation:fa.a.oneOf(["left","right","middle"]),axisLine:fa.a.oneOfType([fa.a.bool,fa.a.object]),label:fa.a.oneOfType([fa.a.number,fa.a.string,fa.a.element,fa.a.func]),tick:fa.a.oneOfType([fa.a.bool,fa.a.object,fa.a.element,fa.a.func]),stroke:fa.a.string,tickFormatter:fa.a.func,domain:fa.a.arrayOf(fa.a.oneOfType([fa.a.number,fa.a.oneOf(["auto","dataMin","dataMax"])])),scale:fa.a.oneOfType([fa.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"]),fa.a.func]),allowDataOverflow:fa.a.bool}),mg.defaultProps={cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto"},hg=gg))||hg,kg=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=kg({},rp(this.props),{fill:"none"},rp(o));if("circle"===i)return d.a.createElement(tg,kg({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return am(t,n,r,e.angle)}));return d.a.createElement(Ym,kg({className:"recharts-polar-angle-axis-line"},a,{points:s}))}},{key:"renderTickItem",value:function(e,t,n){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(om,kg({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,a=t.stroke,s=rp(this.props),l=rp(r),u=kg({},s,{fill:"none"},rp(o)),c=n.map((function(t,n){var c=e.getTickLineCoord(t),p=e.getTickTextAnchor(t),f=kg({textAnchor:p},s,{stroke:"none",fill:a},l,{index:n,payload:t,x:c.x2,y:c.y2});return d.a.createElement(vp,kg({className:"recharts-polar-angle-axis-tick",key:"tick-"+n},ap(e.props,t,n)),o&&d.a.createElement("line",kg({className:"recharts-polar-angle-axis-tick-line"},u,c)),r&&e.renderTickItem(r,f,i?i(t.value):t.value))}));return d.a.createElement(vp,{className:"recharts-polar-angle-axis-ticks"},c)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:d.a.createElement(vp,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}]),t}(c.Component),Eg.displayName="PolarAngleAxis",Eg.propTypes=kg({},Qd,$d,{dataKey:fa.a.oneOfType([fa.a.number,fa.a.string,fa.a.func]),cx:fa.a.number,cy:fa.a.number,radius:fa.a.oneOfType([fa.a.number,fa.a.string]),hide:fa.a.bool,axisLine:fa.a.oneOfType([fa.a.bool,fa.a.object]),axisLineType:fa.a.oneOf(["polygon","circle"]),tickLine:fa.a.oneOfType([fa.a.bool,fa.a.object]),tick:fa.a.oneOfType([fa.a.bool,fa.a.func,fa.a.object,fa.a.element]),ticks:fa.a.arrayOf(fa.a.shape({value:fa.a.any,angle:fa.a.number})),stroke:fa.a.string,orientation:fa.a.oneOf(["inner","outer"]),tickFormatter:fa.a.func}),Eg.defaultProps={cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1},jg=Cg))||jg,Ng=n("./MapStore2/node_modules/lodash/isPlainObject.js"),Rg=n.n(Ng),Lg=Object.assign||function(e){for(var t=1;t=360?p:p-1)*l,g=e.reduce((function(e,t){return e+Wd(t,d,0)}),0),y=[],b=void 0;return g>0&&(y=e.map((function(e,t){var y=Wd(e,d,0)/g,v=void 0,w=(v=t?(f<0?b.endAngle:b.startAngle)+Pd(f)*l:s)+Pd(f)*(u+y*(h-p*u-m));return b=Vg({percent:y,cornerRadius:a},e,{cx:n,cy:r,innerRadius:o,outerRadius:i,name:Wd(e,c),value:Wd(e,d),startAngle:f<0?v:w,endAngle:f<0?w:v,midAngle:(v+w)/2})}))),y}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["shape","points","animationDuration","animationEasing","animationBegin","isAnimationActive","animationId","dataKey","className"]));if(d.a.isValidElement(t))return d.a.cloneElement(t,Jg({},l,{points:n}));if(Oa()(t))return t(this.props);var u=n[0],c=n.map((function(e){return{x:e.x-u.cx,y:e.y-u.cy}}));return d.a.createElement(vp,{className:"recharts-radar-polygon",transform:"translate("+u.cx+", "+u.cy+")"},d.a.createElement(sh.a,{from:"scale(0)",to:"scale(1)",attributeName:"transform",isActive:a,begin:i,easing:o,duration:r,key:s},d.a.createElement(Ym,Jg({onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},rp(this.props),{points:c}))))}},{key:"renderLabelItem",value:function(e,t,n){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(om,Jg({key:t.key},t,{className:"recharts-radar-label"}),n)}},{key:"renderLabels",value:function(){var e=this,t=this.props,n=t.points,r=t.label,o=rp(this.props),i=rp(r),a=n.map((function(t,n){var a=Jg({textAnchor:"middle"},o,{stroke:"none",fill:o&&o.stroke||"#666"},i,t,{index:n,key:"label-"+n,payload:t});return e.renderLabelItem(r,a,t.value)}));return d.a.createElement(vp,{className:"recharts-radar-labels"},a)}},{key:"renderDotItem",value:function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(tg,Jg({},t,{className:"recharts-radar-dot"}))}},{key:"renderDots",value:function(){var e=this,t=this.props,n=t.dot,r=t.points,o=rp(this.props),i=rp(n),a=r.map((function(t,r){var a=Jg({key:"dot-"+r,r:3},o,i,{cx:t.x,cy:t.y,index:r,playload:t});return e.renderDotItem(n,a)}));return d.a.createElement(vp,{className:"recharts-radar-dots"},a)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.label,o=e.dot;if(!n||!n.length)return null;var i=ma()("recharts-radar",t);return d.a.createElement(vp,{className:i},this.renderPolygon(),r&&this.renderLabels(),o&&this.renderDots())}}]),t}(c.Component),Zg.displayName="Radar",Zg.propTypes=Jg({},Qd,{className:fa.a.string,dataKey:fa.a.oneOfType([fa.a.number,fa.a.string,fa.a.func]).isRequired,points:fa.a.arrayOf(fa.a.shape({x:fa.a.number,y:fa.a.number,cx:fa.a.number,cy:fa.a.number,angle:fa.a.number,radius:fa.a.number,value:fa.a.number,payload:fa.a.object})),shape:fa.a.oneOfType([fa.a.element,fa.a.func]),dot:fa.a.oneOfType([fa.a.element,fa.a.func,fa.a.object,fa.a.bool]),label:fa.a.oneOfType([fa.a.element,fa.a.func,fa.a.object,fa.a.bool]),legendType:fa.a.oneOf(Jd),onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func,isAnimationActive:fa.a.bool,animationId:fa.a.number,animationBegin:fa.a.number,animationDuration:fa.a.number,animationEasing:fa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Zg.defaultProps={dot:!1,label:!1,legendType:"rect",isAnimationActive:!lp(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xg=Qg))||Xg,sy=Object.assign||function(e){for(var t=1;t0,m=h?u+i:Math.max(c-i,0);if(m<=0)return"";var g=Kh(t,n).width/(m*hy),y=void 0,b=void 0;b=h?(y="inner"===a?Math.min(f+g,p):f)-g:(y="inner"===a?Math.max(f-g,p):f)+g;var v=am(s,l,m,y),w=am(s,l,m,b);return"M"+v.x+","+v.y+"\n A"+m+","+m+",0,\n "+(g>=180?1:0)+",\n "+(h?1:0)+",\n "+w.x+","+w.y}},{key:"renderSectorShape",value:function(e,t){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(ym,t)}},{key:"renderSectors",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,a=n.cornerRadius,s=this.props,l=s.animationEasing,u=s.animationDuration,c=s.animationBegin,p=s.isAnimationActive,f=rp(this.props);return e.map((function(e,n){var s=e.startAngle,h=e.endAngle;return d.a.createElement(sh.a,{from:{angle:s},to:{angle:h},begin:c,isActive:p,duration:u,easing:l,shouldReAnimate:!0,key:"aniamte-"+n,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd},(function(s){var l=s.angle,u=sy({},f,{cornerRadius:a},e,ap(t.props,e,n),{endAngle:l,key:"sector-"+n,className:"recharts-radial-bar-sector"});return t.renderSectorShape(n===i?o:r,u)}))}))}},{key:"renderBackground",value:function(e){var t=this,n=this.props,r=n.startAngle,o=n.endAngle,i=n.background,a=n.cornerRadius,s=rp(i);return e.map((function(e,n){e.value;var l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["value"]),u=sy({cornerRadius:a},l,{fill:"#eee"},s,ap(t.props,e,n),{startAngle:r,endAngle:o,index:n,key:"sector-"+n,className:"recharts-radial-bar-background-sector"});return t.renderSectorShape(i,u)}))}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;if(d.a.isValidElement(e))r=d.a.cloneElement(e,t);else if(Oa()(e))r=e(t);else{var o=Rd("recharts-defs-"),i=rp(t),a=this.getLabelPathArc(t,n,i);r=d.a.createElement("text",sy({},i,{key:t.key,className:"recharts-radial-bar-label"}),d.a.createElement("defs",null,d.a.createElement("path",{id:o,d:a})),d.a.createElement("textPath",{xlinkHref:"#"+o},n))}return r}},{key:"renderLabels",value:function(e){var t=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props.label;return e.map((function(e,r){var o=sy({fontSize:10},e,rp(n),{index:r,key:"label-"+r});return t.renderLabelItem(n,o,e.value)}))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.background,o=e.label;if(!t||!t.length)return null;var i=this.getSectors(),a=ma()("recharts-area",n);return d.a.createElement(vp,{className:a},r&&d.a.createElement(vp,{className:"recharts-radial-bar-background"},this.renderBackground(i)),d.a.createElement(vp,{className:"recharts-radial-bar-sectors"},this.renderSectors(i)),o&&d.a.createElement(vp,{className:"recharts-radial-bar-labels"},this.renderLabels(i)))}}]),t}(c.Component),oy.displayName="RadialBar",oy.propTypes=sy({},Qd,{className:fa.a.string,shape:fa.a.oneOfType([fa.a.func,fa.a.element]),activeShape:fa.a.oneOfType([fa.a.object,fa.a.func,fa.a.element]),activeIndex:fa.a.number,cornerRadius:fa.a.oneOfType([fa.a.number,fa.a.string]),cx:fa.a.number,cy:fa.a.number,startAngle:fa.a.number,endAngle:fa.a.number,maxAngle:fa.a.number,minAngle:fa.a.number,data:fa.a.arrayOf(fa.a.shape({cx:fa.a.number,cy:fa.a.number,innerRadius:fa.a.number,outerRadius:fa.a.number,value:fa.a.value})),legendType:fa.a.oneOf(Jd),label:fa.a.oneOfType([fa.a.bool,fa.a.func,fa.a.element,fa.a.object]),background:fa.a.oneOfType([fa.a.bool,fa.a.func,fa.a.object,fa.a.element]),onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func,isAnimationActive:fa.a.bool,animationBegin:fa.a.number,animationDuration:fa.a.number,animationEasing:fa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),oy.defaultProps={startAngle:180,endAngle:0,maxAngle:135,minAngle:0,legendType:"rect",data:[],isAnimationActive:!lp(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},ry=iy))||ry,gy=n("./MapStore2/node_modules/lodash/range.js"),yy=n.n(gy),by=function(){function e(e,t){for(var n=0;n0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},e.data&&e.data.length?n.updateScale(e):n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),by(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,s=n.updateId;e.data!==r||e.updateId!==s?this.updateScale(e):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=Math.min(t,n),o=Math.max(t,n);return{startIndex:this.getIndexInRange(this.scaleValues,r),endIndex:this.getIndexInRange(this.scaleValues,o)}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Wd(n[e],o,e);return Oa()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,l=i.travellerWidth,u=i.startIndex,c=i.endIndex,d=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-l-o,a+s-l-r):p<0&&(p=Math.max(p,a-r,a-o));var f=this.getIndex({startX:r+p,endX:o+p});f.startIndex===u&&f.endIndex===c||!d||d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=this.state[o],a=this.props,s=a.x,l=a.width,u=a.travellerWidth,c=a.onChange,d={startX:this.state.startX,endX:this.state.endX},p=e.pageX-r;p>0?p=Math.min(p,s+l-u-i):p<0&&(p=Math.max(p,s-i)),d[o]=i+p;var f=this.getIndex(d);this.setState((vy(t={},o,i+p),vy(t,"brushMoveStartX",e.pageX),t),(function(){c&&c(f)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,s=e.travellerWidth;if(n&&n.length){var l=n.length;this.scale=os().domain(yy()(0,l)).range([i,i+a-s]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.state={isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return d.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,s=e.padding,l=c.Children.only(a);return l?d.a.cloneElement(l,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,s=Math.floor(r+i/2)-1,l=Math.max(e,this.props.x);return d.a.createElement(vp,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},d.a.createElement("rect",{x:l,y:r,width:o,height:i,fill:a,stroke:"none"}),d.a.createElement("line",{x1:l+1,y1:s,x2:l+o-1,y2:s,fill:"none",stroke:"#fff"}),d.a.createElement("line",{x1:l+1,y1:s+2,x2:l+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return d.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,s=this.state,l=s.startX,u=s.endX,c={pointerEvents:"none",fill:a};return d.a.createElement(vp,{className:"recharts-brush-texts"},d.a.createElement(om,{textAnchor:"end",verticalAnchor:"middle",style:c,x:Math.min(l,u)-5,y:r+o/2},this.getTextOfTick(t)),d.a.createElement(om,{textAnchor:"start",verticalAnchor:"middle",style:c,x:Math.max(l,u)+i+5,y:r+o/2},this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=this.state,i=o.startX,a=o.endX,s=o.isTextActive,l=o.isSlideMoving,u=o.isTravellerMoving;if(!t||!t.length)return null;var c=ma()("recharts-brush",n),p=1===d.a.Children.count(r);return d.a.createElement(vp,{className:c,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove},this.renderBackground(),p&&this.renderPanorama(),this.renderSlide(i,a),this.renderTraveller(i,"startX"),this.renderTraveller(a,"endX"),(s||l||u)&&this.renderText())}}]),t}(c.Component),py.displayName="Brush",py.propTypes={className:fa.a.string,fill:fa.a.string,stroke:fa.a.string,x:fa.a.number.isRequired,y:fa.a.number.isRequired,width:fa.a.number.isRequired,height:fa.a.number.isRequired,travellerWidth:fa.a.number,padding:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),dataKey:fa.a.oneOfType([fa.a.string,fa.a.number,fa.a.func]),data:fa.a.array,startIndex:fa.a.number,endIndex:fa.a.number,tickFormatter:fa.a.func,children:fa.a.node,onChange:fa.a.func,updateId:fa.a.oneOfType([fa.a.string,fa.a.number])},py.defaultProps={x:0,y:0,width:0,height:40,travellerWidth:5,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},dy=fy))||dy,Sy=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},jy=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Jy,eb,tb,nb=(Wy=Vy=function(e){function t(){return Qy(this,t),$y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Xy(t,[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Zy(e,["viewBox"]),o=this.props,i=o.viewBox,a=Zy(o,["viewBox"]);return!Kd(n,i)||!Kd(r,a)||!Kd(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.orientation,s=t.tickSize,l=t.mirror,u=void 0,c=void 0,d=void 0,p=void 0,f=void 0,h=void 0,m=l?-1:1,g=e.tickSize||s,y=Id(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":u=c=e.coordinate,d=h=(p=r+!l*i)-m*g,f=y;break;case"left":d=p=e.coordinate,u=f=(c=n+!l*o)-m*g,h=y;break;case"right":d=p=e.coordinate,u=f=(c=n+l*o)+m*g,h=y;break;default:u=c=e.coordinate,d=h=(p=r+l*i)+m*g,f=y}return{line:{x1:u,y1:d,x2:c,y2:p},tick:{x:f,y:h}}}},{key:"getTickTextAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=void 0;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle"}return r}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"getLabelProps",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height;switch(e.orientation){case"left":return{x:t+r,y:n-6,textAnchor:"middle"};case"right":return{x:t,y:n-6,textAnchor:"middle"};case"top":return{x:t+r+6,y:n+o+6,textAnchor:"start"};default:return{x:t+r+6,y:n+6,textAnchor:"start"}}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,s=e.mirror,l=Ky({},rp(this.props),{fill:"none"},rp(a));if("top"===i||"bottom"===i){var u="top"===i&&!s||"bottom"===i&&s;l=Ky({},l,{x1:t,y1:n+u*o,x2:t+r,y2:n+u*o})}else{var c="left"===i&&!s||"right"===i&&s;l=Ky({},l,{x1:t+c*r,y1:n,x2:t+c*r,y2:n+o})}return d.a.createElement("line",Ky({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTickItem",value:function(e,t,n){return d.a.isValidElement(e)?d.a.cloneElement(e,t):Oa()(e)?e(t):d.a.createElement(om,Ky({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,a=r.tick,s=r.tickFormatter,l=t.getTicks(Ky({},this.props,{ticks:e})),u=this.getTickTextAnchor(),c=this.getTickVerticalAnchor(),p=rp(this.props),f=rp(a),h=Ky({},p,{fill:"none"},rp(o)),m=l.map((function(e,t){var r=n.getTickLineCoord(e),l=r.line,m=r.tick,g=Ky({textAnchor:u,verticalAnchor:c},p,{stroke:"none",fill:i},f,m,{index:t,payload:e});return d.a.createElement(vp,Ky({className:"recharts-cartesian-axis-tick",key:"tick-"+t},ap(n.props,e,t)),o&&d.a.createElement("line",Ky({className:"recharts-cartesian-axis-tick-line"},h,l)),a&&n.renderTickItem(a,g,Oa()(s)?s(e.value):e.value))}));return d.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=e.stroke,r=e.orientation,o=e.viewBox,i=rp(this.props);if(d.a.isValidElement(t))return d.a.cloneElement(t,Ky({},i,{orientation:r,viewBox:o}));if(Oa()(t))return t(this.props);if(Dd(t)){var a=Ky({},i,{stroke:"none",fill:n},this.getLabelProps());return d.a.createElement("g",{className:"recharts-cartesian-axis-label"},d.a.createElement(om,a,t))}return null}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=this.props,a=i.ticks,s=Zy(i,["ticks"]),l=a;return Oa()(o)&&(l=a&&a.length>0?o(this.props):o(s)),n<=0||r<=0||!l||!l.length?null:d.a.createElement(vp,{className:"recharts-cartesian-axis"},t&&this.renderAxisLine(),this.renderTicks(l),this.renderLabel())}}],[{key:"getTicks",value:function(e){var n=e.ticks,r=e.viewBox,o=e.minTickGap,i=e.orientation,a=e.interval,s=e.tickFormatter;return n&&n.length?Id(a)||lp()?t.getNumberIntervalTicks(n,Id(a)?a:0):"preserveStartEnd"===a?t.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o},!0):"preserveStart"===a?t.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o}):t.getTicksEnd({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n=e.ticks,r=e.tickFormatter,o=e.viewBox,i=e.orientation,a=e.minTickGap,s=o.x,l=o.y,u=o.width,c=o.height,d="top"===i||"bottom"===i?"width":"height",p=(n||[]).slice(),f=p.length,h=f>=2?Pd(p[1].coordinate-p[0].coordinate):1,m=void 0,g=void 0;if(1===h?(m="width"===d?s:l,g="width"===d?s+u:l+c):(m="width"===d?s+u:l+c,g="width"===d?s:l),t){var y=n[f-1],b=Oa()(r)?r(y.value):y.value,v=Kh(b)[d],w=h*(y.coordinate+h*v/2-g);p[f-1]=y=Ky({},y,{tickCoord:w>0?y.coordinate-w*h:y.coordinate}),h*(y.tickCoord-h*v/2-m)>=0&&h*(y.tickCoord+h*v/2-g)<=0&&(g=y.tickCoord-h*(v/2+a),p[f-1]=Ky({},y,{isShow:!0}))}for(var x=t?f-1:f,_=0;_=0&&h*(O.tickCoord+h*j/2-g)<=0&&(m=O.tickCoord+h*(j/2+a),p[_]=Ky({},O,{isShow:!0}))}return p.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t=e.ticks,n=e.tickFormatter,r=e.viewBox,o=e.orientation,i=e.minTickGap,a=r.x,s=r.y,l=r.width,u=r.height,c="top"===o||"bottom"===o?"width":"height",d=(t||[]).slice(),p=d.length,f=p>=2?Pd(d[1].coordinate-d[0].coordinate):1,h=void 0,m=void 0;1===f?(h="width"===c?a:s,m="width"===c?a+l:s+u):(h="width"===c?a+l:s+u,m="width"===c?a:s);for(var g=p-1;g>=0;g--){var y=d[g],b=Oa()(n)?n(y.value):y.value,v=Kh(b)[c];if(g===p-1){var w=f*(y.coordinate+f*v/2-m);d[g]=y=Ky({},y,{tickCoord:w>0?y.coordinate-w*f:y.coordinate})}else d[g]=y=Ky({},y,{tickCoord:y.coordinate});f*(y.tickCoord-f*v/2-h)>=0&&f*(y.tickCoord+f*v/2-m)<=0&&(m=y.tickCoord-f*(v/2+i),d[g]=Ky({},y,{isShow:!0}))}return d.filter((function(e){return e.isShow}))}}]),t}(c.Component),Vy.displayName="CartesianAxis",Vy.propTypes=Ky({},Qd,$d,{x:fa.a.number,y:fa.a.number,width:fa.a.number,height:fa.a.number,orientation:fa.a.oneOf(["top","bottom","left","right"]),viewBox:fa.a.shape({x:fa.a.number,y:fa.a.number,width:fa.a.number,height:fa.a.number}),label:fa.a.oneOfType([fa.a.number,fa.a.string,fa.a.func,fa.a.element]),tick:fa.a.oneOfType([fa.a.bool,fa.a.func,fa.a.object,fa.a.element]),axisLine:fa.a.oneOfType([fa.a.bool,fa.a.object]),tickLine:fa.a.oneOfType([fa.a.bool,fa.a.object]),mirror:fa.a.bool,minTickGap:fa.a.number,ticks:fa.a.array,tickSize:fa.a.number,stroke:fa.a.string,tickFormatter:fa.a.func,ticksGenerator:fa.a.func,interval:fa.a.oneOfType([fa.a.number,fa.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Vy.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,interval:"preserveEnd"},Wy),rb=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["x1","y1","x2","y2","key"]);n=d.a.createElement("line",rb({},rp(l),{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}},{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,i=n.horizontal;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=rb({},t.props,{x1:r,y1:e,x2:r+o,y2:e,key:"line-"+n,index:n});return t.renderLineItem(i,a)}));return d.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,i=n.vertical;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=rb({},t.props,{x1:e,y1:r,x2:e,y2:r+o,key:"line-"+n,index:n});return t.renderLineItem(i,a)}));return d.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,i=t.width,a=t.height;return d.a.createElement("rect",{x:r,y:o,width:i,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.horizontal,a=e.vertical,s=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,u=e.xAxis,c=e.yAxis,p=e.offset,f=e.chartWidth,h=e.chartHeight;if(r<=0||o<=0||t!==+t||n!==+n)return null;var m=this.props,g=m.horizontalPoints,y=m.verticalPoints;return Oa()(s)&&(g=s({yAxis:c,width:f,height:h,offset:p})),Oa()(l)&&(y=l({xAxis:u,width:f,height:h,offset:p})),d.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(g),a&&this.renderVertical(y))}}]),t}(c.Component),eb.displayName="CartesianGrid",eb.propTypes=rb({},Qd,{x:fa.a.number,y:fa.a.number,width:fa.a.number,height:fa.a.number,horizontal:fa.a.oneOfType([fa.a.object,fa.a.element,fa.a.func,fa.a.bool]),vertical:fa.a.oneOfType([fa.a.object,fa.a.element,fa.a.func,fa.a.bool]),horizontalPoints:fa.a.arrayOf(fa.a.number),verticalPoints:fa.a.arrayOf(fa.a.number),horizontalCoordinatesGenerator:fa.a.func,verticalCoordinatesGenerator:fa.a.func,xAxis:fa.a.object,yAxis:fa.a.object,offset:fa.a.object,chartWidth:fa.a.number,chartHeight:fa.a.number}),eb.defaultProps={x:0,y:0,width:0,height:0,horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none"},Jy=tb))||Jy,cb=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),c=rp(u);return i.map((function(e,i){var u=a(e,o),p=u.x,f=u.y,h=u.value,m=u.errorVal;if(!m)return null;var g=void 0,y=void 0,b=void 0,v=void 0,w=void 0,x=void 0,_=void 0,O=void 0,S=void 0,j=void 0,E=void 0,C=void 0;return Array.isArray(m)?(E=m[0],C=m[1]):(E=m,C=m),"vertical"===n?(_=s.scale,y=f+t,b=_((g=h)-E),v=y+r,O={x1:w=_(g+C),y1:v,x2:w,y2:x=y-r},S={x1:b,y1:y,x2:w,y2:y},j={x1:b,y1:v,x2:b,y2:x}):"horizontal"===n&&(_=l.scale,b=(g=p+t)-r,w=g+r,v=_((y=h)-E),O={x1:b,y1:x=_(y+C),x2:w,y2:x},S={x1:g,y1:v,x2:g,y2:x},j={x1:b,y1:v,x2:w,y2:v}),d.a.createElement(vp,cb({className:"recharts-errorBar",key:i},c),d.a.createElement("line",O),";",d.a.createElement("line",S),";",d.a.createElement("line",j),";")}))}},{key:"render",value:function(){return d.a.createElement(vp,{className:"recharts-errorBars"},this.renderErrorBars())}}]),t}(c.Component),sb.propTypes={dataKey:fa.a.oneOfType([fa.a.string,fa.a.number,fa.a.func]).isRequired,data:fa.a.array,xAxis:fa.a.object,yAxis:fa.a.object,layout:fa.a.string,dataPointFormatter:fa.a.func,stroke:fa.a.string,strokeWidth:fa.a.number,width:fa.a.number,offset:fa.a.number},sb.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},lb),bb=Object.assign||function(e){for(var t=1;ti){s=[].concat(wb(n.slice(0,l)),[i-u]);break}var c=s.length%2==0?[0,a]:[a];return[].concat(wb(this.repeat(n,o)),wb(s),c).map((function(e){return e+"px"})).join(", ")}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(wb(e),[0]):e,r=[],o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["points","strokeDasharray","isAnimationActive","animationBegin","animationDuration","animationEasing","onClick","onMouseEnter","onMouseLeave"]),h=this.state.totalLength,m={isActive:i,begin:a,canBegin:h>0,easing:l,duration:s,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart,shouldReAnimate:!0,pathRef:this.pathRef},g=bb({},f,{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-"+this.id+")":null,onClick:u,onMouseEnter:c,onMouseLeave:p,points:r});if(!i)return d.a.createElement(km,bb({},g,{strokeDasharray:o}));if(o&&h){var y=o.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));return d.a.createElement(sh.a,bb({},m,{from:{curveLen:0},to:{curveLen:h}}),(function(e){var n=e.curveLen;return d.a.createElement(km,bb({},g,{strokeDasharray:t.getStrokeDasharray(n,h,y)}))}))}return o?d.a.createElement(km,bb({},g,{pathRef:this.pathRef,strokeDasharray:o})):d.a.createElement(sh.a,bb({},m,{from:"0px "+(0===h?1:h)+"px",to:h+"px 0px",attributeName:"strokeDasharray"}),d.a.createElement(km,g))}},{key:"render",value:function(){var e=this.props,t=e.dot,n=e.points,r=e.label,o=e.className,i=e.xAxis,a=e.yAxis,s=e.top,l=e.left,u=e.width,c=e.height;if(!n||!n.length)return null;var p=1===n.length,f=ma()("recharts-line",o),h=i&&i.allowDataOverflow||a&&a.allowDataOverflow;return d.a.createElement(vp,{className:f},h?d.a.createElement("defs",null,d.a.createElement("clipPath",{id:"clipPath-"+this.id},d.a.createElement("rect",{x:l,y:s,width:u,height:c}))):null,!p&&this.renderCurve(h),this.renderErrorBar(),(p||t)&&this.renderDots(),r&&this.renderLabels())}}]),t}(c.Component),mb.displayName="Line",mb.propTypes=bb({},Qd,$d,{className:fa.a.string,type:fa.a.oneOfType([fa.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),fa.a.func]),unit:fa.a.oneOfType([fa.a.string,fa.a.number]),name:fa.a.oneOfType([fa.a.string,fa.a.number]),yAxisId:fa.a.oneOfType([fa.a.string,fa.a.number]),xAxisId:fa.a.oneOfType([fa.a.string,fa.a.number]),yAxis:fa.a.object,xAxis:fa.a.object,legendType:fa.a.oneOf(Jd),layout:fa.a.oneOf(["horizontal","vertical"]),connectNulls:fa.a.bool,activeDot:fa.a.oneOfType([fa.a.object,fa.a.element,fa.a.func,fa.a.bool]),dot:fa.a.oneOfType([fa.a.object,fa.a.element,fa.a.func,fa.a.bool]),label:fa.a.oneOfType([fa.a.object,fa.a.element,fa.a.func,fa.a.bool]),top:fa.a.number,left:fa.a.number,width:fa.a.number,height:fa.a.number,points:fa.a.arrayOf(fa.a.shape({x:fa.a.number,y:fa.a.number,value:fa.a.value})),onAnimationStart:fa.a.func,onAnimationEnd:fa.a.func,isAnimationActive:fa.a.bool,animationBegin:fa.a.number,animationDuration:fa.a.number,animationEasing:fa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:fa.a.number}),mb.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!lp(),animationBegin:0,animationDuration:1500,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},hb=gb))||hb,Cb=Object.assign||function(e){for(var t=1;t=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a0&&t.handleMouseMove(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Tv(nb.getTicks(Lv({},nb.defaultProps,t,{ticks:kv(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Tv(nb.getTicks(Lv({},nb.defaultProps,t,{ticks:kv(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return kv(e,!0)},t.tooltipTicksGenerator=function(e){var t=e.layout,n=e.xAxisMap,r=e.yAxisMap,o=Gd("horizontal"===t?n:r),i=kv(o,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:Ca()(i,(function(e){return e.coordinate})),tooltipAxis:o}};var n=t.createDefaultState(e);return t.state=Lv({},n,{updateId:0},t.updateStateOfAxisMapsOffsetAndStackGroups(Lv({props:e},n))),t.validateAxes(),t.uniqueChartId=Rd("recharts"),e.throttleDelay&&(t.triggeredAfterMouseMove=gv()(t.triggeredAfterMouseMove,e.throttleDelay)),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),Fv(r,[{key:"componentDidMount",value:function(){ya()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.data,r=t.children,o=t.width,i=t.height,a=t.layout,s=t.stackOffset,l=t.margin;if(e.data===n&&e.width===o&&e.height===i&&e.layout===a&&e.stackOffset===s&&Kd(e.margin,l)){if(!function(e,t){if(e===t)return!0;if(c.Children.count(e)!==c.Children.count(t))return!1;var n=c.Children.count(e);if(0===n)return!0;if(1===n)return dp(e,t);for(var r=0;ri||si)&&e.domain([t[0],t[n-1]])}}(w);var x=Mv(w,i);"xAxis"===r?(v="top"===l&&!f||"bottom"===l&&f,y=n.left,b=u[m]-v*i.height):(v="left"===l&&!f||"right"===l&&f,y=u[m]-v*i.width,b=n.top);var _=Lv({},i,x,{range:g,x:y,y:b,scale:w,width:"xAxis"===r?n.width:i.width,height:"yAxis"===r?n.height:i.height});return i.hide||"xAxis"!==r?i.hide||(u[m]+=(v?-1:1)*_.width):u[m]+=(v?-1:1)*_.height,Lv({},e,zv({},o,_))}),{})}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.state.offset,n=Xh(this.container),r=Zh(e,n);if(!(r.chartX>=t.left&&r.chartX<=t.left+t.width&&r.chartY>=t.top&&r.chartY<=t.top+t.height))return null;var o=this.props.layout,i=this.state,a=i.orderedTooltipTicks,s=(i.tooltipAxis,i.tooltipTicks),l=function(e,t){var n=-1,r=t.length;if(r>1){for(var o=0;o0&&o(t[o].coordinate+t[o-1].coordinate)/2&&e<=(t[o].coordinate+t[o+1].coordinate)/2||o===r-1&&e>(t[o].coordinate+t[o-1].coordinate)/2){n=t[o].index;break}}else n=0;return n}("horizontal"===o?r.chartX:r.chartY,a);if(l>=0){var u=s[l]&&s[l].value,c=this.getTooltipContent(l),d=s[l]?{x:"horizontal"===o?s[l].coordinate:r.chartX,y:"horizontal"===o?r.chartY:s[l].coordinate}:qv;return Lv({},r,{activeTooltipIndex:l,activeLabel:u,activePayload:c,activeCoordinate:d})}return null}},{key:"getTooltipContent",value:function(e){var t=this.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.graphicalItems,i=this.props.data.slice(n,r+1);return e<0||!o||!o.length||e>=i.length?null:o.map((function(t){var n=t.props,r=n.dataKey,o=n.name,a=n.unit,s=n.formatter;return Lv({},rp(t),{dataKey:r,unit:a,formatter:s,name:o||r,color:Av(t),value:Wd(i[e],r),payload:i[e]})}))}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,i=n.data;if(!sp({props:n})||!i||!i.length)return null;var a=n.children,s=n.layout,l=n.stackOffset,u="horizontal"===s?"yAxis":"xAxis",c="horizontal"===s?"xAxis":"yAxis",d=tp(a,t),p=function(e,t,n,r,o){var i=t.reduce((function(e,t){var o=t.props.stackId,i=t.props[n],a=e[i]||{hasStack:!1,stackGroups:{}};if(Dd(o)){var s=a.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items=[t].concat(s.items),a.hasStack=!0,a.stackGroups[o]=s}else a.stackGroups[Rd("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return bv({},e,wv({},i,a))}),{});return Object.keys(i).reduce((function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return bv({},t,wv({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Ov(e,a.items,o)}))}),{})),bv({},t,wv({},a,s))}),{})}(i,d,u+"Id",c+"Id",l),f=this.getAxisMap(n,{axisType:"xAxis",graphicalItems:d,stackGroups:"xAxis"===u&&p,dataStartIndex:r,dataEndIndex:o}),h=this.getAxisMap(n,{axisType:"yAxis",graphicalItems:d,stackGroups:"yAxis"===u&&p,dataStartIndex:r,dataEndIndex:o}),m=this.calculateOffset(n,d,f,h);f=this.getFormatAxisMap(n,f,m,"xAxis"),h=this.getFormatAxisMap(n,h,m,"yAxis");var g=this.tooltipTicksGenerator({layout:s,xAxisMap:f,yAxisMap:h});return Lv({graphicalItems:d,xAxisMap:f,yAxisMap:h,offset:m,stackGroups:p},g)}},{key:"addListener",value:function(){Nv.on(Rv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._maxListeners+1)}},{key:"removeListener",value:function(){Nv.removeListener(Rv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._maxListeners-1)}},{key:"createDefaultState",value:function(e){var t=e.children,n=np(t,Oy);return{chartX:0,chartY:0,dataStartIndex:n&&n.props&&n.props.startIndex||0,dataEndIndex:n&&n.props&&n.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!1}}},{key:"calculateOffset",value:function(e,t,n,r){var o=e.width,i=e.height,a=e.children,s=e.margin||{},l=np(a,Oy),u=np(a,ih),c=Object.keys(r).reduce((function(e,t){var n=r[t],o=n.orientation;return n.mirror||n.hide?e:Lv({},e,zv({},o,e[o]+n.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(n).reduce((function(e,t){var r=n[t],o=r.orientation;return r.mirror||r.hide?e:Lv({},e,zv({},o,e[o]+r.height))}),{top:s.top||0,bottom:s.bottom||0}),p=Lv({},d,c),f=p.bottom;if(l&&(p.bottom+=l.props.height||Oy.defaultProps.height),u&&this.legendInstance){var h=this.legendInstance.getBBox();p=Iv(p,t,e,h)}return Lv({brushBottom:f},p,{width:o-p.left-p.right,height:i-p.top-p.bottom})}},{key:"validateAxes",value:function(){var e=this.props,t=e.layout,n=e.children,r=tp(n,rv),o=tp(n,cv);if("horizontal"===t&&r&&r.length)r.forEach((function(e){"category"===e.props.type||"number"===e.props.type&&ya()(e.props.dataKey)}));else if("vertical"===t){this.constructor.displayName;o&&o.length,r&&r.length,o&&o.length&&o.forEach((function(e){"category"===e.props.type||"number"===e.props.type&&ya()(e.props.dataKey)}))}return null}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;ya()(t)||Nv.emit(Rv,t,this.uniqueChartId,e)}},{key:"renderAxes",value:function(e,t){var n=this.props,r=n.width,o=n.height,i=e&&Object.keys(e);if(i&&i.length){for(var a=[],s=0,l=i.length;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","width","height"]),a=this.state,s=a.xAxisMap,l=a.yAxisMap,u=rp(i);return d.a.createElement(mp,Lv({},u,{width:r,height:o}),this.renderGrid(),this.renderReferenceElements(!1,Yy),this.renderReferenceElements(!1,My),this.renderReferenceElements(!1,By),this.renderAxes(s,"x-axis"),this.renderAxes(l,"y-axis"),d.a.createElement(e,Lv({},this.props,this.state)),this.renderReferenceElements(!0,Yy),this.renderReferenceElements(!0,My),this.renderReferenceElements(!0,By),this.renderBrush(),cp(n))}},{key:"render",value:function(){var e=this,t=this.props.data;if(!sp(this)||!t||!t.length)return null;var n=this.props,r=n.className,o=n.width,i=n.height,a=n.style,s=n.compact,l={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchMove:this.handleTouchMove};return s?this.renderChart():d.a.createElement("div",Lv({className:ma()("recharts-wrapper",r),style:Lv({},a,{position:"relative",cursor:"default",width:o,height:i})},l,{ref:function(t){e.container=t}}),this.renderChart(),this.renderLegend(),this.renderTooltip())}}]),r}(c.Component),n.displayName=ep(e),n.propTypes=Lv({},e.propTypes,{syncId:fa.a.oneOfType([fa.a.string,fa.a.number]),compact:fa.a.bool,width:fa.a.number,height:fa.a.number,data:fa.a.arrayOf(fa.a.object),layout:fa.a.oneOf(["horizontal","vertical"]),stackOffset:fa.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:fa.a.number,margin:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),style:fa.a.object,className:fa.a.string,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),onClick:fa.a.func,onMouseLeave:fa.a.func,onMouseEnter:fa.a.func,onMouseMove:fa.a.func}),n.defaultProps={layout:"horizontal",stackOffset:"none",margin:{top:5,right:5,bottom:5,left:5}},r},Gv=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Wv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Kv,Xv,Zv,Qv=function(e){var t=e.getComposedData,n=e.ChildComponent;return function(e){var r,o;return o=r=function(r){function o(){var e,t,n;Wv(this,o);for(var r=arguments.length,i=Array(r),a=0;a=0?r.stackedData[o]:null}}return null}(e,l[E].stackGroups),j=Ud(T,k);var A=ya()(m)?h:m;O=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var l=Ld(t,r,0,!0),u=void 0;if(i[0].barSize===+i[0].barSize){var c=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(c=!0,p=s*(d*=.9));var f={offset:((r-p)/2>>0)-l,size:0};u=i.reduce((function(e,t){var n=[].concat(vv(e),[{item:t.item,position:{offset:f.offset+f.size+l,size:c?d:t.barSize}}]);return f=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:f})})),n}),[])}else{var h=Ld(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var m=(r-2*h-(s-1)*l)/s;m>1&&(m>>=0);var g=a===+a?Math.min(m,a):m;u=i.reduce((function(e,t,n){var r=[].concat(vv(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u}({barGap:p,barCategoryGap:f,bandSize:j,sizeList:g[C],maxBarSize:A})}var P=t&&t({props:r,xAxis:v,yAxis:w,xTicks:x,yTicks:_,dataKey:d,item:e,bandSize:j,barPosition:O,offset:c,stackedData:S})||{};b.push(P)})),{axisTicks:y,allComposedData:b}}},{key:"componentWillReceiveProps",value:function(e){var t=e.graphicalItems,n=e.children,r=(e.chartX,e.chartY,e.activeTooltipIndex,e.activeLabel,e.activeCoordinate,e.activePayload,e.isTooltipActive,Vv(e,["graphicalItems","children","chartX","chartY","activeTooltipIndex","activeLabel","activeCoordinate","activePayload","isTooltipActive"])),o=this.props,i=o.graphicalItems,a=o.children,s=(o.chartX,o.chartY,o.activeTooltipIndex,o.activeLabel,o.activeCoordinate,o.activePayload,o.isTooltipActive,Vv(o,["graphicalItems","children","chartX","chartY","activeTooltipIndex","activeLabel","activeCoordinate","activePayload","isTooltipActive"]));Kd(t,i)&&Kd(n,a)&&Kd(r,s)||this.setState(this.calculateExpensiveState({props:e}))}},{key:"shouldComponentUpdate",value:function(e,t){var n=e.graphicalItems,r=Vv(e,["graphicalItems"]),o=this.props,i=o.graphicalItems,a=Vv(o,["graphicalItems"]);return!Kd(n,i)||!Kd(r,a)||!Kd(t,this.state)}},{key:"render",value:function(){return d.a.createElement(e,Gv({},this.props,this.state))}}]),o}(c.Component),r.displayName="ComposedDataDecorator("+ep(e)+")",r.propTypes=Gv({},e.propTypes,{chartX:fa.a.number,chartY:fa.a.number,data:fa.a.array}),r.defaultProps=e.defaultProps,o}},$v=Object.assign||function(e){for(var t=1;t=0?0:s<0?s:a}return i[0]}({props:t,xAxis:i,yAxis:a}),x=tp(m,Lh);return v.map((function(e,t){var n=void 0,r=void 0,p=void 0,f=void 0,m=void 0;if(u?n=function(e,t){if(!t||2!==t.length||!Id(t[0])||!Id(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Id(e[0])||e[0]r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]0&&Math.abs(m)0&&Math.abs(f)=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","children","className","width","height"]),s=tp(n,$g),l=rp(a);return d.a.createElement("div",{className:ma()("recharts-wrapper",r),style:bw({},t,{position:"relative",cursor:"default",width:o,height:i})},d.a.createElement(mp,bw({},l,{width:o,height:i}),this.renderItems(s),cp(n)),this.renderLegend(s),this.renderTooltip())}}]),t}(c.Component),fw.displayName="PieChart",fw.propTypes={allComposedData:fa.a.array,width:fa.a.number,height:fa.a.number,margin:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),title:fa.a.string,style:fa.a.object,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),className:fa.a.string,onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func},fw.defaultProps={style:{},margin:{top:0,right:0,bottom:0,left:0}},pw=hw));var xw,_w,Ow,Sw=function(){function e(e,t){for(var n=0;nn.height)&&(o=n.height);for(var i=n.x,a=void 0,s=0,l=e.length;sn.width)&&(o=n.width);for(var i=n.y,a=void 0,s=0,l=e.length;s0;)i.push(s=d[0]),i.area+=s.area,(l=Pw(i,u,n))<=a?(d.shift(),a=l):(i.area-=i.pop().area,o=Mw(i,u,o,!1),u=Math.min(o.width,o.height),i.length=i.area=0,a=1/0);return i.length&&(o=Mw(i,u,o,!0),i.length=i.area=0),jw({},t,{children:c.map((function(t){return e(t,n)}))})}return t},Dw=(Zd((Ow=_w=function(e){function t(){var e,n,r;Ew(this,t);for(var o=arguments.length,i=Array(o),a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","className","style","children"]),s=rp(a);return d.a.createElement("div",{className:ma()("recharts-wrapper",r),style:jw({},o,{position:"relative",cursor:"default",width:t,height:n})},d.a.createElement(mp,jw({},s,{width:t,height:n}),this.renderAllNodes(),cp(i)),this.renderTooltip())}}]),t}(c.Component),_w.displayName="Treemap",_w.propTypes={width:fa.a.number,height:fa.a.number,data:fa.a.array,style:fa.a.object,aspectRatio:fa.a.number,content:fa.a.oneOfType([fa.a.element,fa.a.func]),fill:fa.a.string,stroke:fa.a.string,className:fa.a.string,nameKey:fa.a.oneOfType([fa.a.string,fa.a.number,fa.a.func]),dataKey:fa.a.oneOfType([fa.a.string,fa.a.number,fa.a.func]),children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func,isAnimationActive:fa.a.bool,isUpdateAnimationActive:fa.a.bool,animationBegin:fa.a.number,animationDuration:fa.a.number,animationEasing:fa.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},_w.defaultProps={dataKey:"value",aspectRatio:.5*(1+Math.sqrt(5)),isAnimationActive:!lp(),isUpdateAnimationActive:!lp(),animationBegin:0,animationDuration:1500,animationEasing:"linear"},xw=Ow)),n("./MapStore2/node_modules/lodash/sumBy.js")),Nw=n.n(Dw),Rw=n("./MapStore2/node_modules/lodash/min.js"),Lw=n.n(Rw),Fw=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var qw,Uw,Gw,Hw={x:0,y:0},Vw=function(e){return e.y+e.dy/2},Ww=function(e){return e&&e.value||0},Yw=function(e,t){return t.reduce((function(t,n){return t+Ww(e[n])}),0)},Kw=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+Vw(i)*Ww(t[r])}),0)},Xw=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+Vw(i)*Ww(t[r])}),0)},Zw=function(e,t){return e.y-t.y},Qw=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o0&&(u.y+=c),s=u.y+u.dy+n}s=t+n;for(var d=a-1;d>=0;d--){var p=i[d],f=p.y+p.dy+n-s;if(!(f>0))break;p.y-=f,s=p.y}}},Jw=function(e,t,n,r){for(var o=0,i=t.length;o=0;o--)for(var i=t[o],a=0,s=i.length;a=1)for(var c=(t-n)/u,d=0,p=i.length;d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","data","width","height","margin","children","style"]),c=Ld(this.props.cx,o,o/2),p=Ld(this.props.cy,i,i/2),f=sm(o,i,a),h=Ld(this.props.innerRadius,f,0),m=Ld(this.props.outerRadius,f,.8*f);if(m<=0||!r||!r.length)return null;var g=tp(s,ay),y=np(s,Tg),b=this.getRadiusAxisCfg(y,h,m),v=rp(u);return d.a.createElement("div",{className:ma()("recharts-wrapper",n),style:nx({},l,{position:"relative",cursor:"default",width:o,height:i}),ref:function(t){e.container=t}},d.a.createElement(mp,nx({},v,{width:o,height:i}),this.renderGrid(b,c,p,h,m),this.renderRadiusAxis(y,b,c,p),this.renderAngleAxis(c,p,m,f),this.renderRadars(g,b.scale,c,p),cp(s)),this.renderLegend(g),this.renderTooltip())}}]),t}(c.Component),Uw.displayName="RadarChart",Uw.propTypes={width:fa.a.number,height:fa.a.number,margin:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),cx:fa.a.oneOfType([fa.a.number,fa.a.string]),cy:fa.a.oneOfType([fa.a.number,fa.a.string]),startAngle:fa.a.number,innerRadius:fa.a.oneOfType([fa.a.number,fa.a.string]),outerRadius:fa.a.oneOfType([fa.a.number,fa.a.string]),clockWise:fa.a.bool,data:fa.a.array,style:fa.a.object,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),className:fa.a.string,animationId:fa.a.number,onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func},Uw.defaultProps={width:0,height:0,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%",startAngle:90,clockWise:!0,data:[],margin:{top:0,right:0,bottom:0,left:0}},qw=Gw))||qw);var ax,sx,lx,ux=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"xAxis",t=arguments[1],n=this.props.children,r="xAxis"===e?rv:cv,o=np(n,r);if(r.displayName,o){var i=Bd(o.props.domain,this.getDomain(t,o.props.dataKey,o.props[e+"Id"],e),o.props.allowDataOverflow);return ux({},o.props,{axisType:e,domain:i,type:"number",originalDomain:o.props.domain})}return null}},{key:"getZAxis",value:function(e){var t=this.props.children,n=np(t,hv),r=n&&n.props||hv.defaultProps,o=r.dataKey?this.getDomain(e,r.dataKey):[-1,1];return ux({},r,{domain:o,scale:Vd(r).domain(o).range(r.range)})}},{key:"getOffset",value:function(e,t,n){var r=this.props,o=r.width,i=r.height,a=r.margin,s=r.children,l=np(s,ih),u={left:a.left||0,right:a.right||0,top:a.top||0,bottom:a.bottom||0};if(t.hide||t.mirror||(u[t.orientation]+=t.height),n.hide||n.mirror||(u[n.orientation]+=n.width),l&&this.legendInstance){var c=this.legendInstance.getBBox();u=Iv(u,e,this.props,c)}return ux({},u,{width:o-u.left-u.right,height:i-u.top-u.bottom})}},{key:"getFormatAxis",value:function(e,t,n){var r=e.orientation,o=e.domain,i=e.mirror,a=e.tickFormat,s=e.padding,l=void 0===s?{}:s,u={left:t.left,right:t.left+t.width,top:t.top,bottom:t.top+t.height},c="xAxis"===n?[t.left+(l.left||0),t.left+t.width-(l.right||0)]:[t.top+t.height-(l.bottom||0),t.top+(l.top||0)],d=Vd(e).domain(o).range(c),p=Mv(d,e);a&&d.tickFormat(a);var f=void 0,h=void 0;if("xAxis"===n){var m="top"===r&&!i||"bottom"===r&&i;f=t.left,h=u[r]-m*e.height}else{f=u[r]-("left"===r&&!i||"right"===r&&i)*e.width,h=t.top}return ux({},e,p,{scale:d,width:"xAxis"===n?t.width:e.width,height:"yAxis"===n?t.height:e.height,x:f,y:h})}},{key:"getTooltipContent",value:function(e,t,n,r){if(!e)return null;var o=e.payload,i=e.node,a=[{name:t.name||t.dataKey,unit:t.unit||"",value:i.x,payload:o},{name:n.name||n.dataKey,unit:n.unit||"",value:i.y,payload:o}];return i.z&&"-"!==i.z&&a.push({name:r.name||r.dataKey,unit:r.unit||"",value:i.z,payload:o}),a}},{key:"renderTooltip",value:function(e,t,n,r,o){var i=this.props.children,a=np(i,jh);if(!a)return null;var s=this.state,l=s.isTooltipActive,u=s.activeItem,c=s.activeTooltipCoord,p={x:o.left,y:o.top,width:o.width,height:o.height};return d.a.cloneElement(a,{viewBox:p,active:l,label:"",payload:this.getTooltipContent(u,t,n,r),coordinate:c})}},{key:"renderGrid",value:function(e,t,n){var r=this.props,o=r.children,i=r.width,a=r.height,s=np(o,ub);if(!s)return null;var l=Tv(nb.getTicks(ux({},nb.defaultProps,e,{ticks:kv(e,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.left,n.left+n.width),u=Tv(nb.getTicks(ux({},nb.defaultProps,t,{ticks:kv(t,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.top,n.top+n.height);return d.a.cloneElement(s,{key:"grid",x:n.left,y:n.top,width:n.width,height:n.height,verticalPoints:l,horizontalPoints:u})}},{key:"renderLegend",value:function(e){var t=this,n=this.props,r=n.children,o=n.width,i=n.height,a=n.margin,s=o-(a.left||0)-(a.right||0),l=(a.top,a.bottom,Pv(r,e,s));return l?d.a.createElement(ih,ux({},l,{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:this.handleLegendBBoxUpdate})):null}},{key:"renderAxis",value:function(e,t){var n=this.props,r=n.width,o=n.height;return e&&!e.hide?d.a.createElement(vp,{key:t,className:t},d.a.createElement(nb,ux({},e,{viewBox:{x:0,y:0,width:r,height:o},ticks:kv(e,!0)}))):null}},{key:"renderCursor",value:function(e,t,n){var r=this.props.children,o=np(r,jh);if(!o||!o.props.cursor||!this.state.isTooltipActive)return null;var i=this.state.activeItem,a=ux({stroke:"#ccc",strokeDasharray:"5 5"},rp(o.props.cursor),n,{x:i.cx,y:i.cy,payload:i});return d.a.isValidElement(o.props.cursor)?d.a.cloneElement(o.props.cursor,a):d.a.createElement(ug,a)}},{key:"renderItems",value:function(e,t,n,r,o){var i=this,a=this.state.activeGroupId;return e.map((function(e,s){var l=e.props,u=l.strokeWidth,c=l.data,p=u===+u?u:1;return p=a==="scatter-"+s?p+2:p,d.a.cloneElement(e,ux({key:e.key||"scatter-"+s,groupId:"scatter-"+s,strokeWidth:p,onMouseLeave:i.handleScatterMouseLeave,onMouseEnter:i.handleScatterMouseEnter,points:i.getComposedData(e,c,t,n,r)},o,{xAxis:t,yAxis:n}))}),this)}},{key:"renderReferenceElements",value:function(e,t,n,r,o){var i=this.props.children,a=tp(i,o);if(!a||!a.length)return null;var s=ep(o)+"-"+(r?"front":"back");return a.filter((function(e){return r===e.props.isFront})).map((function(r,o){return d.a.cloneElement(r,{key:s+"-"+o,xAxis:e,yAxis:t,viewBox:{x:n.left,y:n.top,width:n.width,height:n.height}})}))}},{key:"render",value:function(){if(!sp(this))return null;var e=this.props,t=(e.style,e.children),n=e.className,r=e.width,o=e.height,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["style","children","className","width","height"]),a=tp(t,Zb),s=this.getZAxis(a),l=this.getAxis("xAxis",a),u=this.getAxis("yAxis",a),c=this.getOffset(a,l,u);l=this.getFormatAxis(l,c,"xAxis"),u=this.getFormatAxis(u,c,"yAxis");var p=op(this.props),f=rp(i);return d.a.createElement("div",ux({className:ma()("recharts-wrapper",n),style:{position:"relative",cursor:"default",width:r,height:o}},p),d.a.createElement(mp,ux({},f,{width:r,height:o}),this.renderGrid(l,u,c),this.renderReferenceElements(l,u,c,!1,Yy),this.renderReferenceElements(l,u,c,!1,My),this.renderReferenceElements(l,u,c,!1,By),this.renderAxis(l,"recharts-x-axis"),this.renderAxis(u,"recharts-y-axis"),this.renderCursor(l,u,c),this.renderItems(a,l,u,s,c),this.renderReferenceElements(l,u,c,!0,Yy),this.renderReferenceElements(l,u,c,!0,My),this.renderReferenceElements(l,u,c,!0,By),cp(t)),this.renderLegend(a),this.renderTooltip(a,l,u,s,c))}}]),t}(c.Component),sx.displayName="ScatterChart",sx.propTypes=ux({},$d,{width:fa.a.number,height:fa.a.number,margin:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),title:fa.a.string,style:fa.a.object,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),className:fa.a.string}),sx.defaultProps={style:{},margin:{top:5,right:5,bottom:5,left:5}},ax=lx));var fx,hx,mx,gx=Object.assign||function(e){for(var t=1;t>0)-r,radius:0};a=t.reduce((function(e,t){return l={offset:l.offset+l.radius+r,radius:t.barSize},[].concat(Cx(e),[{item:t.item,position:l}])}),[])}else{var u=Ld(o,e),c=(e-2*u-(i-1)*r)/i>>0;u=-Math.max((c*i+(i-1)*r)/2>>0,0),a=t.reduce((function(e,t,n){return[].concat(Cx(e),[{item:t.item,position:{offset:u+(c+r)*n,radius:c}}])}),[])}return a}},{key:"createDefaultState",value:function(){return{activeTooltipLabel:"",activeTooltipPayload:[],activeTooltipCoord:{x:0,y:0},isTooltipActive:!1}}},{key:"renderLegend",value:function(){var e=this.props.children,t=np(e,ih);if(!t)return null;var n=this.props,r=n.data,o=n.width,i=n.height,a=n.margin,s=t.props&&t.props.payload||r.map((function(e){return{type:t.props.iconType||"square",color:e.fill||"#000",value:e.name,payload:e}}));return d.a.cloneElement(t,jx({},ih.getWithHeight(t,o),{payload:s,chartWidth:o,chartHeight:i,margin:a}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=np(e,jh);if(!t)return null;var n=this.props,r=n.width,o=n.height,i=this.state,a=i.isTooltipActive,s=i.activeTooltipLabel,l=i.activeTooltipCoord,u=i.activeTooltipPayload,c={x:0,y:0,width:r,height:o};return d.a.cloneElement(t,{viewBox:c,active:a,label:s,payload:u,coordinate:l})}},{key:"renderItems",value:function(e,t,n){var r=this;if(!e||!e.length)return null;var o=this.props,i=o.onMouseEnter,a=o.onMouseLeave,s=o.onClick,l=this.getRadiusList(e),u=t.bandwidth(),c=this.getBarPosition(u,l);return e.map((function(e,o){var l=e.props,u=l.dataKey,p=l.onMouseEnter,f=l.onMouseLeave,h=l.onClick;return d.a.cloneElement(e,jx({},n,{key:e.key||"radial-bar-"+o,onMouseEnter:Hd(r.handleMouseEnter,i,p),onMouseLeave:Hd(r.handleMouseLeave,a,f),onClick:Hd(null,s,h),data:r.getComposedData(e,c,t,n,u)}))}),this)}},{key:"render",value:function(){var e=this.props.data;if(!sp(this)||!e||!e.length)return null;var t=this.props,n=t.style,r=t.children,o=t.className,i=t.width,a=t.height,s=t.margin,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["style","children","className","width","height","margin"]),u=tp(r,my),c=Ld(this.props.cx,i,i/2),p=Ld(this.props.cy,a,a/2),f=sm(i,a,s),h=Ld(this.props.innerRadius,f,0),m=Ld(this.props.outerRadius,f,.8*f),g=this.getRadiusScale(h,m),y=rp(l);return d.a.createElement("div",{className:ma()("recharts-wrapper",o),style:jx({},n,{cursor:"default",position:"relative",width:i,height:a})},d.a.createElement(mp,jx({},y,{width:i,height:a}),this.renderItems(u,g,{cx:c,cy:p}),cp(r)),this.renderLegend(),this.renderTooltip(u))}}]),t}(c.Component),xx.displayName="RadialBarChart",xx.propTypes={width:fa.a.number,height:fa.a.number,margin:fa.a.shape({top:fa.a.number,right:fa.a.number,bottom:fa.a.number,left:fa.a.number}),cy:fa.a.oneOfType([fa.a.number,fa.a.string]),cx:fa.a.oneOfType([fa.a.number,fa.a.string]),data:fa.a.array,innerRadius:fa.a.oneOfType([fa.a.number,fa.a.string]),outerRadius:fa.a.oneOfType([fa.a.number,fa.a.string]),barCategoryGap:fa.a.oneOfType([fa.a.number,fa.a.string]),barGap:fa.a.number,barSize:fa.a.number,title:fa.a.string,style:fa.a.object,onMouseEnter:fa.a.func,onMouseLeave:fa.a.func,onClick:fa.a.func,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node]),className:fa.a.string},xx.defaultProps={cx:"50%",cy:"50%",innerRadius:"30%",outerRadius:"90%",barGap:2,barCategoryGap:"10%",style:{},margin:{top:0,right:0,bottom:0,left:0}},wx=_x));var Ax,Px,Mx,Ix=Object.assign||function(e){for(var t=1;t=0)if(ya()(t[a]))t[a]=n.length,n.push({items:[i],type:a});else{var s=t[a];n[s].items=[].concat(Nx(n[s].items),[i])}}return n}},{key:"renderCursor",value:function(e){var t=e.xAxisMap,n=e.yAxisMap,r=e.offset,o=this.props,i=o.children,a=o.isTooltipActive,s=o.layout,l=o.activeTooltipIndex,u=o.axisTicks,c=np(i,jh);if(!c||!c.props.cursor||!a||l<0)return null;var p=Gd("horizontal"===s?t:n),f=u;if(!f||!f[l])return null;var h=Ud(p),m=f[l].coordinate,g=Ix({fill:"#f1f1f1"},rp(c.props.cursor),{x:"horizontal"===s?m:r.left+.5,y:"horizontal"===s?r.top+.5:m,width:"horizontal"===s?h:r.width-1,height:"horizontal"===s?r.height-1:h});return d.a.isValidElement(c.props.cursor)?d.a.cloneElement(c.props.cursor,g):d.a.createElement(Fm,g)}},{key:"render",value:function(){var e=this,t=this.props,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,i=this.filterGraphicalItems();return d.a.createElement(vp,{className:"recharts-composed"},this.renderCursor({xAxisMap:n,yAxisMap:r,offset:o}),i.map((function(t){var n=t.items,r=t.type,o=zx[r];return d.a.createElement(o,Ix({key:r},e.props,{graphicalItems:n,isComposed:!0}))})))}}]),t}(c.Component),Px.displayName="ComposedChart",Px.propTypes={allComposedData:fa.a.array,axisTicks:fa.a.array,layout:fa.a.oneOf(["horizontal","vertical"]),dataStartIndex:fa.a.number,dataEndIndex:fa.a.number,isTooltipActive:fa.a.bool,activeTooltipIndex:fa.a.number,xAxisMap:fa.a.object,yAxisMap:fa.a.object,offset:fa.a.object,graphicalItems:fa.a.array,stackGroups:fa.a.object,children:fa.a.oneOfType([fa.a.arrayOf(fa.a.node),fa.a.node])},Ax=Mx))||Ax)||Ax,[Eb,Db,Ub]);function Bx(e){return(Bx="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 qx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ux(e,t){for(var n=0;n120&&t[1]>30)Object.assign(e.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"===e.domNode.style.float){var n=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"auto",bottom:"-".concat(n.height+4,"px"),left:"-".concat(n.width+4,"px")})}else{var r=e.display.getBoundingClientRect();Object.assign(e.display.style,{right:"-".concat(r.width+4,"px"),bottom:"-".concat(r.height+4,"px"),left:"auto"})}}})),D_(P_(e),"getCurrentSize",(function(){return"IMG"===e.domNode.tagName.toUpperCase()?[e.domNode.width,Math.round(e.domNode.width/e.domNode.naturalWidth*e.domNode.naturalHeight)]:[e.domNode.clientWidth,e.domNode.clientHeight]})),e}return n}(u),d=function(e){C_(n,e);var t=k_(n);function n(){var e;I_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&(s.style.borderLeftWidth="0"),Object.assign(s.style,e.options.toolbarButtonSvgStyles),n.isApplied()&&e._selectButton(s),e.toolbar.appendChild(s)}))})),D_(P_(e),"_selectButton",(function(e){e.style.filter="invert(20%)"})),e}return n}(u),f={DisplaySize:c,Toolbar:p,Resize:d},h=["height","width"],m=function(e){C_(a,e);var t,r,o,i=k_(a);function a(){return I_(this,a),i.apply(this,arguments)}return t=a,o=[{key:"create",value:function(e){var t="",n="100%",r=200;Object(le.isObject)(e)?(t=e.src||t,n=e.width||n,r=e.height||r):t=e||t;var o=E_(M_(a),"create",this).call(this,e);o.style.position="relative",e.domNodeStyle&&Object.assign(o.style,e.domNodeStyle),o.style.width=Object(le.isString)(n)&&-1!==n.indexOf("%")?n:n+"px",o.style.height=Object(le.isString)(r)&&-1!==r.indexOf("%")?r:r+"px";var i=document.createElement("IFRAME");i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(t)),i.setAttribute("width",n),i.setAttribute("height",r);var s=document.createElement("DIV");return s.setAttribute("class","ms-quill-iframe"),s.style.overflow="hidden",s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.width=Object(le.isString)(n)&&-1!==n.indexOf("%")?n:n+"px",s.style.height=Object(le.isString)(r)&&-1!==r.indexOf("%")?r:r+"px",s.style.border="1px solid #ddd",o.appendChild(i),o.appendChild(s),o}},{key:"formats",value:function(e){return h.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return n.sanitize(e)}},{key:"value",value:function(e){var t=e.children&&e.children[0]&&e.children[0].children&&e.children[0].children[0];return t?{src:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),domNodeStyle:S_({},e.style)}:""}}],(r=[{key:"format",value:function(e,t){h.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):E_(M_(a.prototype),"format",this).call(this,e,t)}}])&&j_(t.prototype,r),o&&j_(t,o),a}(t);m.blotName="video",m.className="ql-video",m.tagName="DIV";return{ResizeModule:function t(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I_(this,t),D_(this,"initializeModules",(function(){r.removeModules(),r.modules=r.moduleClasses.map((function(e){return new(f[e]||e)(r)})),r.modules.forEach((function(e){e.onCreate()})),r.onUpdate()})),D_(this,"onUpdate",(function(){r.repositionElements(),r.modules.forEach((function(e){e.onUpdate()}))})),D_(this,"removeModules",(function(){r.modules.forEach((function(e){e.onDestroy()})),r.modules=[]})),D_(this,"handleClick",(function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()||e.target&&e.target.tagName&&"DIV"===e.target.tagName.toUpperCase()&&"ms-quill-iframe"===e.target.getAttribute("class")){if(r.domNode===e.target)return;r.domNode&&r.hide(),r.show(e.target)}else r.domNode&&r.hide()})),D_(this,"show",(function(e){r.domNode=e,r.showOverlay(),r.initializeModules()})),D_(this,"showOverlay",(function(){r.overlay&&r.hideOverlay(),r.quill.setSelection(null),r.setUserSelect("none"),document.addEventListener("keyup",r.checkImage,!0),r.quill.root.addEventListener("input",r.checkImage,!0);var e=r.quill.root.parentNode.querySelector(".ql-editor");if(e&&(e.style.overflow="hidden"),r.overlay=document.createElement("div"),Object.assign(r.overlay.style,r.options.overlayStyles),r.domNode&&"ms-quill-iframe"===r.domNode.getAttribute("class")){r.input=document.createElement("input"),r.input.style.position="absolute",r.input.style.left="8px",r.input.style.top="16px",r.input.style.width="calc(100% - 16px)";var t=r.domNode.parentNode&&r.domNode.parentNode.children&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0].getAttribute("src")||"";r.input.setAttribute("value",t),r.overlay.appendChild(r.input),r.overlay.style.backgroundColor="rgba(0, 0, 0, 0.2)"}r.quill.root.parentNode.appendChild(r.overlay),r.repositionElements()})),D_(this,"hideOverlay",(function(){if(r.overlay){r.input&&(r.domNode.parentNode&&r.domNode.parentNode.children&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0]&&r.domNode.parentNode.children[0].setAttribute("src",r.input.value),r.overlay.removeChild(r.input),r.input=void 0);var e=r.quill.root.parentNode.querySelector(".ql-editor");e&&(e.style.overflow="auto"),r.quill.root.parentNode.removeChild(r.overlay),r.overlay=void 0,document.removeEventListener("keyup",r.checkImage),r.quill.root.removeEventListener("input",r.checkImage),r.setUserSelect("")}})),D_(this,"repositionElements",(function(){if(r.overlay&&r.domNode){var e=r.quill.root.parentNode,t="IMG"===r.domNode.tagName.toUpperCase()?r.domNode.getBoundingClientRect():r.domNode.parentNode.parentNode.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(r.overlay.style,{left:"".concat(t.left-n.left-1+e.scrollLeft,"px"),top:"".concat(t.top-n.top+e.scrollTop,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")})}})),D_(this,"hide",(function(){r.hideOverlay(),r.removeModules(),r.domNode=void 0})),D_(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){r.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),D_(this,"checkImage",(function(t){r.domNode&&r.input!==t.target&&(46!==t.keyCode&&8!==t.keyCode||"IMG"!==r.domNode.tagName.toUpperCase()||e.find(r.domNode).deleteAt(0),r.hide())})),this.quill=n;var i=!1;if(o.modules&&(i=o.modules.slice()),this.options=Object(le.defaultsDeep)({},o,l),!1!==i&&(this.options.modules=i),this.quill.theme&&this.quill.theme.modules&&this.quill.theme.modules.toolbar&&this.quill.theme.modules.toolbar.container&&this.options.iframeIcon){var a=this.quill.theme.modules.toolbar.container.querySelector(".ql-video");a&&(a.innerHTML='')}this.quill.theme&&this.quill.theme.tooltip&&this.quill.theme.tooltip.root&&this.quill.theme.tooltip.root.classList&&this.quill.theme.tooltip.root.classList.add&&this.options.iframeIcon&&this.quill.theme.tooltip.root.classList.add("ms-ql-iframe-tooltip"),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]},IFrame:m,toolbarConfig:{container:[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"],["video"]]},BaseModule:u,Toolbar:p,DisplaySize:c,Resize:d}}(Z_),$_=Q_.ResizeModule,J_=Q_.IFrame,eO=Q_.toolbarConfig;Z_.register({"formats/video":J_,"modules/resizeModule":$_});var tO=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&&H_(e,t)}(i,e);var t,n,r,o=V_(i);function i(){var e;U_(this,i);for(var t=arguments.length,n=new Array(t),r=0;r3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=Math.PI/2*3,s=t,l=n,u=Math.PI/r;e.moveTo(t,n-o);for(var c=0;c=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var DS=function(e){var t=e.type,n=e.patterns,r=e.paths,o=e.texts,i=e.backgroundColor,a=void 0===i?"#ffffff":i;return d.a.createElement("svg",{viewBox:"0 0 200 200"},d.a.createElement("defs",null,n&&n.filter((function(e){return e.icon})).map((function(e){return d.a.createElement("pattern",{id:e.id,viewBox:"0 0 1 1",width:"15%",height:"15%"},e.icon&&d.a.createElement("path",e.icon))})),n&&n.filter((function(e){return e.image})).map((function(e){return d.a.createElement("pattern",{id:e.id,width:"100%",height:"100%"},e.image&&d.a.createElement("image",e.image))}))),d.a.createElement("path",{fill:a,d:"M0 0 L200 0 L200 200 L0 200Z"}),r&&r.map((function(e){var n=e.type,r=IS(e,["type"]);return"polygon"===(n||t)&&d.a.createElement("path",MS({},r,{d:"M20 20 L180 20 L180 180 L20 180Z"}))||"linestring"===(n||t)&&d.a.createElement("path",MS({},r,{fill:"none",d:"M30 160 L100 40 L170 160"}))||"point"===(n||t)&&d.a.createElement("path",r)})),o&&o.map((function(e){var t=e.text,n=IS(e,["text"]);return d.a.createElement("text",MS({x:"100",y:"100",textAnchor:"middle",alignmentBaseline:"middle"},n),t)})))};function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RS(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var o=e.editor&&e.editor.getWrapperElement&&e.editor.getWrapperElement()||null;aj.a.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),xj(vj(e),"onUpdate",(function(){e.update.cancel(),e.update()})),xj(vj(e),"getInlineWidget",(function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.token,o=void 0===r?{}:r,i=e.className,a=void 0===i?"":i,s=e.style,l=void 0===s?{}:s,u=document.createElement("div");return u.setAttribute("class","".concat(a," ms-style-editor-inline-widget")),ie()(u.style,l),u.onclick=function(){return n(dj({},o))},u})),e}return t=i,(n=[{key:"UNSAFE_componentWillMount",value:function(){this.setState({code:this.props.code})}},{key:"UNSAFE_componentWillUpdate",value:function(e){if(!Object(le.isEqual)(this.props.error,e.error)&&(this.marker&&(this.marker.clear(),this.marker=null),e.error)){var t=this.editor.lineCount(),n={line:e.error.line-1||0,ch:0},r=e.error.line?{line:t,ch:0}:this.editor.getCursor();this.marker=this.editor.markText(n,r,{className:"ms-style-editor-error"})}}},{key:"render",value:function(){var e=this;return d.a.createElement(qo.a,{className:"ms-style-editor",style:this.props.style,header:d.a.createElement("div",{className:"ms-style-editor-head"},this.props.loading&&d.a.createElement(kS.a,{className:"ms-style-editor-loader",size:20}),this.props.error&&d.a.createElement(lj.a,{glyph:"exclamation-mark",bsStyle:"danger",placement:"right",title:d.a.createElement(v.default,{msgId:"styleeditor.validationErrorTitle"}),text:this.props.error.line?this.props.error.message:d.a.createElement(v.default,{msgId:"styleeditor.genericValidationError"})}))},d.a.createElement(sj.Controlled,{key:"style-editor",value:this.state.code,editorDidMount:function(t){e.onRenderToken(t),e.editor=t,t.on("inputRead",e.onAutocomplete),e.update=Object(le.debounce)((function(){e.props.onChange(e.state.code)}),e.props.waitTime),aj.a.extendMode(e.props.mode,{hintProperties:e.props.hintProperties})},editorWillUnmount:function(t){return t.off("inputRead",e.onAutocomplete)},onBeforeChange:function(t,n,r){return e.setState({code:r})},onChange:function(t){e.onRenderToken(t),e.onUpdate()},options:{theme:this.props.theme,mode:this.props.mode,lineNumbers:!0,styleSelectedText:!0,indentUnit:2,tabSize:2}}),this.state.token&&d.a.createElement("div",{className:"ms-inline-widget-container"},d.a.createElement("div",null,d.a.createElement("button",{className:"btn close square-button",onClick:function(){e.state.value&&e.editor.replaceRange(e.state.value,{line:e.state.lineNo,ch:e.state.token.start},{line:e.state.lineNo,ch:e.state.token.end}),e.setState({token:null,inlineWidgetType:null,lineNo:null,value:null})}})),d.a.createElement("div",null,this.props.inlineWidgets.filter((function(t){return t.type===e.state.inlineWidgetType})).map((function(t){var n=t.Widget;return d.a.createElement(n,{value:e.state.value,token:e.state.token,onChange:function(t){return e.setState({value:t})}})})))))}}])&&mj(t.prototype,n),r&&mj(t,r),i}(d.a.Component);xj(_j,"propTypes",{mode:f.a.string,theme:f.a.string,style:f.a.object,code:f.a.string,onChange:f.a.func,waitTime:f.a.number,hintProperties:f.a.object,error:f.a.object,inlineWidgets:f.a.array,loading:f.a.bool}),xj(_j,"defaultProps",{mode:"geocss",theme:"lesser-dark",style:{},code:"",onChange:function(){},waitTime:1e3,hintProperties:{},inlineWidgets:[]});var Oj=_j,Sj=n("./MapStore2/node_modules/lodash/find.js"),jj=n.n(Sj),Ej=n("./MapStore2/node_modules/lodash/identity.js"),Cj=n.n(Ej),Tj=n("./MapStore2/node_modules/lodash/omit.js"),kj=n.n(Tj),Aj=n("./MapStore2/web/client/components/style/ColorSelector.jsx"),Pj=n("./MapStore2/web/client/components/misc/Slider.jsx");function Mj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ij(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rj=function(e){var t=e.ramp,n=e.name,r=e.label,o=1/t.length,i=(t||[]).reduce((function(e,n,r){return"".concat(e,", ").concat(n," ").concat(r/t.length*100,"%, ").concat(n," ").concat(100*(r/t.length+o),"%")}),"linear-gradient(to right");return d.a.createElement("div",{style:{backgroundImage:"".concat(i,")"),width:"100%",display:"inline-block",verticalAlign:"middle",padding:"0 2px"}},d.a.createElement("span",{style:{color:"#000000",backgroundColor:"rgba(255, 255, 255, 0.75)",padding:"0 4px"}},d.a.createElement(v.default,{msgId:r||n,msgParams:{number:t.length}})))};function Lj(e){var t=e.value,n=e.samples,r=e.onChange,o=e.items,i=e.rampFunction,a=e.disabled,s=o.map((function(e){var t=e.options,r=void 0===t?{}:t,o=Nj(e,["options"]);return Ij(Ij({},o),{},{options:r,ramp:i?i(o,r):(Object(mO.c)(r.base,r.range,n+1,r.options)||["#AAA"]).splice(1)})})),l=jj()(s,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e===t||e.name===(t&&t.name)}));return d.a.createElement(Go.default,{valueKey:"name",className:"color-ramp-selector",clearable:!1,value:l,options:s,disabled:a,valueRenderer:Rj,optionRenderer:Rj,onChange:function(e){e&&r(e)}})}Lj.propTypes={value:f.a.oneOfType([f.a.string,f.a.object]),samples:f.a.number,onChange:f.a.func,items:f.a.array,rampFunction:f.a.func,disabled:f.a.bool},Lj.defaultProps={samples:5,onChange:function(){},items:[{name:"global.colors.blue",schema:"sequencial",options:{base:190,range:20}},{name:"global.colors.red",schema:"sequencial",options:{base:10,range:4}},{name:"global.colors.green",schema:"sequencial",options:{base:120,range:4}},{name:"global.colors.brown",schema:"sequencial",options:{base:30,range:4,s:1,v:.5}},{name:"global.colors.purple",schema:"sequencial",options:{base:300,range:4}},{name:"global.colors.random",schema:"qualitative",options:{base:190,range:340,options:{base:10,range:360,s:.67,v:.67}}}],disabled:!1};var Fj=Lj;function zj(e){return(zj="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 Bj(e){return function(e){if(Array.isArray(e))return qj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qj(e,t)}(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 qj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n div")||document.body}:t,r=e.placement,o=e.content,i=e.children,a=e.open,s=e.onOpen,l=void 0===s?function(){}:s,u=Oa()(n)?n():n,p=Object(c.useRef)({picker:{opacity:0},arrow:{opacity:0},overlay:{}}),f=gE(Object(c.useState)(p.current),2),h=f[0],m=f[1],g=Object(c.useRef)(),y=Object(c.useRef)(),b=Object(c.useRef)(),v=Object(c.useCallback)((function(){var e,t,n,o,i,s;if(!a)return p.current;var l={picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}};if("center"===r)return l;var u=null==g||null===(e=g.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e),c=null==y||null===(n=y.current)||void 0===n||null===(o=n.getBoundingClientRect)||void 0===o?void 0:o.call(n),d=null==b||null===(i=b.current)||void 0===i||null===(s=i.getBoundingClientRect)||void 0===s?void 0:s.call(i);if(u&&c&&d){var f,h,m,v,w=d.width,x=d.height,_=c.top,O=c.left,S=c.width,j=c.height,E=u.top,C=u.left,T=u.width,k=u.height,A=[C+T/2,E+k/2],P=A[0]-O>w/2+10&&O+S-A[0]>w/2+10,M=A[1]-_>x/2+10&&_+j-A[1]>x/2+10,I={top:{filter:function(){return P&&E-_>x+10},styles:function(){return{picker:{position:"absolute",top:E-x-10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:E+2,left:C+T/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return M&&O+S-(C+T)>w+10},styles:function(){return{picker:{position:"absolute",top:E-x/2-_,left:C+T+10-O},overlay:{},arrow:{top:E+k/2,left:C+T-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return P&&_+j-(E+k)>x+10},styles:function(){return{picker:{position:"absolute",top:E+k+10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:E+k-2,left:C+T/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return M&&C-O>w+10},styles:function(){return{picker:{position:"absolute",top:E-x/2-_,left:C-w-10-O},overlay:{},arrow:{top:E+k/2,left:C+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=I&&null!==(f=I[r])&&void 0!==f&&null!==(h=f.filter)&&void 0!==h&&h.call(f))return null==I||null===(m=I[r])||void 0===m||null===(v=m.styles)||void 0===v?void 0:v.call(m);if("top"!==r&&I.top.filter())return I.top.styles();if("right"!==r&&I.right.filter())return I.right.styles();if("bottom"!==r&&I.bottom.filter())return I.bottom.styles();if("left"!==r&&I.left.filter())return I.left.styles()}return l}),[r,a]);Object(c.useEffect)((function(){m(v());var e=function(){return m(v())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[v]);var w=Object(c.useRef)();return w.current={open:a},Object(c.useEffect)((function(){function e(e){var t=b.current,n=t&&e.target&&t.contains(e.target);if(w.current.open&&!n){var r,o,i=e.clientX,a=e.clientY,s=(null==b||null===(r=b.current)||void 0===r||null===(o=r.getBoundingClientRect)||void 0===o?void 0:o.call(r))||{},u=s.left,c=s.top,d=s.width,p=s.height;void 0!==i&&void 0!==a&&!(i>=u&&i<=u+d&&a>=c&&a<=c+p)&&l(!1)}}return window.addEventListener("click",e,!0),window.addEventListener("wheel",e,!0),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("wheel",e,!0),window.removeEventListener("scroll",e,!0)}}),[]),d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"ms-popover",ref:g},Object(c.cloneElement)(i,{onClick:function(e){e.stopPropagation(),l(!a)}})),u&&a?Object(cE.createPortal)(d.a.createElement("div",{className:"ms-popover-overlay",ref:y,style:hE({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0,pointerEvents:"none"},null==h?void 0:h.overlay)},d.a.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0}}),d.a.createElement("div",{ref:b,style:hE({pointerEvents:"auto"},null==h?void 0:h.picker)},o),d.a.createElement("div",{className:"ms-popover-arrow",style:hE({position:"absolute",borderTop:"".concat(9,"px solid transparent"),borderBottom:"".concat(9,"px solid transparent"),borderRight:"".concat(9,"px solid #ffffff"),filter:"drop-shadow(-4px 2px 4px rgba(0, 0, 0, 0.2))"},null==h?void 0:h.arrow)})),u):null)}var vE=function(e){var t=e.open,n=e.onOpen,r=void 0===n?function(){}:n,o=pE(e,["open","onOpen"]),i=gE(Object(c.useState)(t),2),a=i[0],s=i[1];return d.a.createElement(bE,dE({},o,{open:a,onOpen:function(e){s(e),r(e)}}))},wE=[{value:"Circle",label:"styleeditor.circle",preview:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Square",label:"styleeditor.square",preview:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Triangle",label:"styleeditor.triangle",preview:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Star",label:"styleeditor.star",preview:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Cross",label:"styleeditor.cross",preview:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"X",label:"styleeditor.x",preview:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"shape://vertline",label:"styleeditor.verticalLine",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://horline",label:"styleeditor.horizontalLine",preview:{type:"point",paths:[{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://slash",label:"styleeditor.slash",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://backslash",label:"styleeditor.backslash",preview:{type:"point",paths:[{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://dot",label:"styleeditor.dot",preview:{type:"point",paths:[{d:"M 95,100 105,100 Z",stroke:"#333333",strokeWidth:10,fill:"none"}]}},{value:"shape://plus",label:"styleeditor.plus",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://times",label:"styleeditor.times",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://oarrow",label:"styleeditor.openArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://carrow",label:"styleeditor.closedArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}}],xE=Object(Vn.a)(Ne.a);var _E=function(e){var t=e.value,n=e.config,r=void 0===n?{}:n,o=e.onChange,i=void 0===o?function(){}:o,a=r.options,s=void 0===a?wE:a,l=s.find((function(e){return e.value===t}));return d.a.createElement(vE,{content:d.a.createElement("div",{className:"ms-mark-list"},d.a.createElement("ul",null,s.map((function(e){return d.a.createElement("li",{key:e.value},d.a.createElement(xE,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return i(e.value)}},d.a.createElement(DS,e.preview)))}))))},d.a.createElement(xE,{className:"ms-mark-preview"},l&&d.a.createElement(DS,l.preview)))};var OE=function(e){var t=e.label,n=void 0===t?"styleeditor.band":t,r=e.value,o=e.bands,i=e.onChange,a=e.enhancementType;return d.a.createElement(d.a.Fragment,null,d.a.createElement(uE,{label:n},d.a.createElement(Go.default,{clearable:!1,options:o,value:r,onChange:function(e){return i("band",e.value)}})),d.a.createElement(uE,{label:"styleeditor.contrastEnhancement"},d.a.createElement(Go.default,{clearable:!1,options:[{label:d.a.createElement(v.default,{msgId:"styleeditor.none"}),value:"none"},{label:d.a.createElement(v.default,{msgId:"styleeditor.normalize"}),value:"normalize"},{label:d.a.createElement(v.default,{msgId:"styleeditor.histogram"}),value:"histogram"}],value:a||"none",onChange:function(e){var t="none"===e.value?void 0:e.value;i("enhancementType",t)}})))};function SE(){return(SE=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function AE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.map((function(e){return e.value})),r=(null==t?void 0:t.value)&&-1===n.indexOf(t.value);return r?[t].concat(EE(e)):e}function b(e){return n?[{value:n,label:n}].reduce(y,e):e}var w=i(p),x=jE(Object(c.useState)(b(w)),2),_=x[0],O=x[1];Object(c.useEffect)((function(){O(b(w))}),[null==w?void 0:w.length]);var S=f?NE:DE,j=!l||l({value:n});return d.a.createElement(uE,{label:t,invalid:!j},d.a.createElement(S,SE({clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},s,{options:_.map((function(e){return PE(PE({},e),{},{label:e.labelId?d.a.createElement(v.default,{msgId:e.labelId}):e.label})})),value:n,onChange:function(e){return g?u(e.length>0?e.map((function(e){return e.value})):void 0):(O(y(_,e)),u(e.value))}})))},colorRamp:function(e){var t=e.label,n=e.value,r=e.config,o=r.samples,i=void 0===o?5:o,a=r.getOptions,s=void 0===a?function(){return[]}:a,l=r.rampFunction,u=void 0===l?function(e){return e.colors}:l,c=e.onChange,p=s(kE(e,["label","value","config","onChange"]));return d.a.createElement(uE,{label:t},d.a.createElement(Fj,{items:p,rampFunction:u,samples:i,value:{name:n},onChange:function(e){return c(e.name)}}))},colorMap:function(e){var t=e.value,n=e.onChange;return d.a.createElement("div",{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},d.a.createElement(lE,{classification:t,onUpdateClasses:function(e,t){return n({classification:e,type:t})}}))},channel:function(e){var t,n,r,o=e.value,i=e.onChange,a=e.bands,s=o.channelSelection,l=s?s.grayChannel?"gray":"rgb":"auto",u=(a||[]).map((function(e){return{label:e,value:e}}));if("rgb"===l)return Object.keys(s).map((function(e){var t,n,r=null===(t=s[e])||void 0===t?void 0:t.sourceChannelName,a=null===(n=s[e])||void 0===n?void 0:n.contrastEnhancement;return d.a.createElement(d.a.Fragment,null,d.a.createElement(OE,{key:e,value:r,bands:u,label:"styleeditor."+e,enhancementType:(null==a?void 0:a.enhancementType)||"none",onChange:function(t,n){return"band"===t?i({contrastEnhancement:{},channelSelection:PE(PE({},o.channelSelection),{},ME({},e,PE(PE({},o.channelSelection[e]),{},{sourceChannelName:n})))}):"enhancementType"===t?i({contrastEnhancement:{},channelSelection:PE(PE({},o.channelSelection),{},ME({},e,PE(PE({},o.channelSelection[e]),{},{contrastEnhancement:PE(PE({},s[e].contrastEnhancement),{},{enhancementType:n})})))}):null}}),d.a.createElement(uE,{key:e+"-divider",divider:!0}))}));var c=void 0===(null==s||null===(t=s.grayChannel)||void 0===t?void 0:t.sourceChannelName)?"auto":null==s||null===(n=s.grayChannel)||void 0===n?void 0:n.sourceChannelName,p="auto"===l?o.contrastEnhancement:null==s||null===(r=s.grayChannel)||void 0===r?void 0:r.contrastEnhancement;return d.a.createElement(OE,{label:"styleeditor.grayChannel",value:c,bands:[{label:d.a.createElement(v.default,{msgId:"styleeditor.channelAuto"}),value:"auto"}].concat(EE(u)),enhancementType:(null==p?void 0:p.enhancementType)||"none",onChange:function(e,t){return"band"===e?i("auto"===t?PE(PE({},o),{},{channelSelection:void 0}):{contrastEnhancement:{},channelSelection:{grayChannel:PE(PE({contrastEnhancement:{}},null==s?void 0:s.grayChannel),{},{sourceChannelName:t})}}):"enhancementType"===e?i("auto"===l?{channelSelection:void 0,contrastEnhancement:PE(PE({},o.contrastEnhancement),{},{enhancementType:t})}:{contrastEnhancement:{},channelSelection:Object.keys(s).reduce((function(e,n){return PE(PE({},e),{},ME({},n,PE(PE({},s[n]),{},{contrastEnhancement:PE(PE({},s[n].contrastEnhancement),{},{enhancementType:t})})))}),{})}):null}})},dash:function(e){var t=e.label,n=e.value,r=e.onChange,o=e.config.options;return d.a.createElement(uE,{label:t},d.a.createElement(Qj,{dashArray:n,onChange:r,options:o,defaultStrokeWidth:2,isValidNewOption:function(e){return!!e.label&&!e.label.split(" ").find((function(e){return ka()(parseFloat(e))}))},creatable:!0}))}};function LE(e){var t=e.properties,n=e.params,r=e.config,o=e.onChange,i=Object(c.useRef)({properties:t});return i.current={properties:t},d.a.createElement(d.a.Fragment,null,Object.keys(n).map((function(e){var a=n[e]||{},s=a.type,l=a.setValue,u=a.getValue,c=a.isDisabled,p=a.config,f=a.label,h=a.key||e,m=RE[s],g=l&&l(t[h],i.current.properties);return m&&d.a.createElement(m,SE({},r,{key:h,label:f||h,config:p,disabled:c&&c(t[h],i.current.properties),value:ya()(g)?t[h]:g,onChange:function(e){return o(u&&u(e,i.current.properties)||e)}}))})))}var FE=LE;function zE(e){return(zE="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 BE(){return(BE=Object.assign||function(e){for(var t=1;t0&&e.props.onChangeCascadingValue(s)}})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.attributes.filter((function(t){return t.attribute===e.props.filterField.attribute}))[0];return d.a.createElement("div",{className:"filter-field-row"},d.a.createElement("div",{className:"filter-field-attribute"},d.a.createElement(XE,{valueField:"id",textField:"name",fieldOptions:this.props.attributes.map((function(e){return{id:e.attribute,name:e.label}})),placeholder:Object(re.f)(this.context.messages,"queryform.attributefilter.combo_placeholder"),fieldValue:this.props.filterField.attribute,attType:t&&t.type,fieldName:"attribute",fieldRowId:this.props.filterField.rowId,onUpdateField:this.updateFieldElement,comboFilter:"contains"})),d.a.createElement("div",{className:"filter-field-operator"},t?this.renderOperatorField():null),d.a.createElement("div",{className:"filter-field-value"},t&&this.props.filterField.operator?this.renderValueField(t):null),this.props.deleteButton?d.a.createElement("div",{className:"filter-field-tools"},this.props.deleteButton):null)}}])&&$E(t.prototype,n),r&&$E(t,r),i}(d.a.Component);oC(iC,"propTypes",{attributes:f.a.array,filterField:f.a.object,operatorOptions:f.a.array,onUpdateField:f.a.func,maxFeaturesWPS:f.a.number,toggleMenu:f.a.func,deleteButton:f.a.node,onUpdateExceptionField:f.a.func,onChangeCascadingValue:f.a.func}),oC(iC,"contextTypes",{messages:f.a.object}),oC(iC,"defaultProps",{attributes:[],filterField:null,operatorOptions:["=",">","<",">=","<=","<>","><"],onUpdateField:function(){},toggleMenu:function(){},onUpdateExceptionField:function(){},onChangeCascadingValue:function(){}});var aC=iC,sC=n("./node_modules/moment/moment.js"),lC=n.n(sC),uC=n("./node_modules/react-widgets/lib/localizers/moment.js"),cC=n.n(uC),dC=n("./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js"),pC=n("./MapStore2/web/client/utils/TimeUtils.js");function fC(e){return(fC="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 hC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mC(e,t){for(var n=0;nt.endDate?e.props.onUpdateExceptionField(e.props.fieldRowId,"queryform.attributefilter.datefield.wrong_date_range"):e.props.onUpdateExceptionField(e.props.fieldRowId,null),e.props.onUpdateField(e.props.fieldRowId,e.props.fieldName,t,e.props.attType)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.fieldValue&&this.props.fieldValue.startDate||null,n=this.props.fieldValue&&this.props.fieldValue.endDate||null;return"><"===this.props.operator?d.a.createElement("div",{className:"query-field"},d.a.createElement("div",{className:"query-field-value"},this.props.showLabels&&d.a.createElement(v.default,{msgId:"queryform.from"}),d.a.createElement(_C,{type:this.props.attType,defaultValue:t,value:t,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(pC.c)(this.context.locale,this.props.attType),onChange:function(t){return e.updateValueState({startDate:t,endDate:n})}})),d.a.createElement("div",{className:"query-field-value"},this.props.showLabels&&d.a.createElement(v.default,{msgId:"queryform.to"}),d.a.createElement(_C,{type:this.props.attType,defaultValue:n,value:n,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(pC.c)(this.context.locale,this.props.attType),onChange:function(n){return e.updateValueState({startDate:t,endDate:n})}}))):d.a.createElement("div",null,this.props.showLabels&&d.a.createElement(v.default,{msgId:"queryform.date"}),d.a.createElement(_C,{type:this.props.attType,defaultValue:t,value:t,time:this.props.timeEnabled,calendar:this.props.dateEnabled,format:Object(pC.c)(this.context.locale,this.props.attType),onChange:function(t){e.updateValueState({startDate:t,endDate:null})}}))}}])&&mC(t.prototype,n),r&&mC(t,r),i}(d.a.Component);xC(OC,"propTypes",{attType:f.a.string,dateEnabled:f.a.bool,fieldName:f.a.string,fieldRowId:f.a.number,fieldValue:f.a.object,fieldException:f.a.string,operator:f.a.string,onUpdateField:f.a.func,onUpdateExceptionField:f.a.func,showLabels:f.a.bool,timeEnabled:f.a.bool}),xC(OC,"contextTypes",{locale:f.a.string}),xC(OC,"defaultProps",{timeEnabled:!1,dateEnabled:!0,operator:null,fieldName:null,fieldRowId:null,attType:null,fieldValue:null,fieldException:null,onUpdateField:function(){},onUpdateExceptionField:function(){},showLabels:!1});var SC=OC;function jC(e){return(jC="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 EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CC(e){for(var t=1;t<"===e.props.operator?d.a.createElement("div",{className:"query-field"},d.a.createElement("div",{className:"query-field-value"},r,d.a.createElement(Do.NumberPicker,TC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:null,onChange:function(t){return!isNaN(t)&&e.changeNumber({lowBound:t,upBound:e.props.fieldValue&&null!==e.props.fieldValue.upBound&&void 0!==e.props.fieldValue.upBound?e.props.fieldValue.upBound:null})}},e.props.options))),d.a.createElement("div",{className:"query-field-value"},o,d.a.createElement(Do.NumberPicker,TC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.upBound&&void 0!==e.props.fieldValue.upBound?e.props.fieldValue.upBound:null,onChange:function(t){return!isNaN(t)&&e.changeNumber({upBound:t,lowBound:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:null})}},e.props.options)))):d.a.createElement("div",null,n,d.a.createElement(Do.NumberPicker,TC({style:t,value:e.props.fieldValue&&null!==e.props.fieldValue.lowBound&&void 0!==e.props.fieldValue.lowBound?e.props.fieldValue.lowBound:e.props.fieldValue,onChange:function(t){return!isNaN(t)&&e.changeNumber(t)}},e.props.options)))})),RC(DC(e),"changeNumber",(function(t){"><"===e.props.operator?null!==t.lowBound&&void 0!==t.lowBound&&null!==t.upBound&&void 0!==t.upBound&&t.lowBound>=t.upBound?e.props.onUpdateExceptionField(e.props.fieldRowId,Object(re.f)(e.context.messages,"queryform.attributefilter.numberfield.wrong_range")):e.props.fieldException&&e.props.onUpdateExceptionField(e.props.fieldRowId,null):e.props.isRequired&&null==t?e.props.onUpdateExceptionField(e.props.fieldRowId,Object(re.f)(e.context.messages,"queryform.attributefilter.numberfield.isRequired")):e.props.fieldException&&e.props.onUpdateExceptionField(e.props.fieldRowId,null),e.props.onUpdateField(e.props.fieldRowId,e.props.fieldName,t,e.props.attType)})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props.style;return this.props.fieldException&&(e=CC(CC({},this.props.style),{},{borderColor:"#FF0000"})),d.a.createElement(Te.a,{placement:"bottom",overlay:this.props.fieldException?d.a.createElement(w.Tooltip,{id:this.props.fieldRowId+"_tooltip"},d.a.createElement("strong",null,this.props.fieldException)):d.a.createElement("noscript",null)},this.renderPicker(e))}}])&&AC(t.prototype,n),r&&AC(t,r),i}(d.a.Component);RC(LC,"propTypes",{operator:f.a.string,fieldName:f.a.string,fieldRowId:f.a.number,attType:f.a.string,fieldValue:f.a.oneOfType([f.a.number,f.a.object]),fieldException:f.a.oneOfType([f.a.object,f.a.bool,f.a.string]),onUpdateField:f.a.func,onUpdateExceptionField:f.a.func,isRequired:f.a.bool,label:f.a.string,lowLabel:f.a.string,upLabel:f.a.string,options:f.a.shape({format:f.a.string,min:f.a.number,max:f.a.number,step:f.a.number,precision:f.a.number}),style:f.a.object}),RC(LC,"contextTypes",{messages:f.a.object}),RC(LC,"defaultProps",{style:{borderColor:"#dedede"},operator:"=",fieldName:null,fieldRowId:null,attType:"number",fieldValue:null,fieldException:null,isRequired:!1,label:null,lowLabel:null,upLabel:null,options:{},onUpdateField:function(){},onUpdateExceptionField:function(){}});var FC=LC,zC=n("./MapStore2/web/client/utils/FilterUtils.js");function BC(e){return(BC="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 qC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return d.a.createElement(LT.Message,{msgId:t})}})," ",d.a.createElement("span",{className:"group_label_b"},d.a.createElement(LT.Message,{msgId:"queryform.attributefilter.group_label_b"}))),e.renderGroupButtons(t))})),KT(WT(e),"renderGroupField",(function(t){var n=e.props.filterFields.filter((function(e){return e.groupId===t.id})),r=e.props.groupFields.filter((function(e){return e.groupId===t.id})),o=[].concat(zT(n),zT(r)).map((function(t){return void 0!==t.rowId?e.renderFilterField(t):e.renderGroupField(t)}));return d.a.createElement("div",{className:"mapstore-conditions-group",key:t.id},e.renderGroupHeader(t),d.a.createElement("div",{className:"query-content"},o))})),KT(WT(e),"renderHeader",(function(){return Object(re.f)(e.context.messages,"queryform.attributefilter.attribute_filter_header")})),KT(WT(e),"updateLogicCombo",(function(t,n,r){var o=e.props.logicComboOptions.filter((function(t){return r===Object(re.f)(e.context.messages,t.name)}))[0].logic;e.props.actions.onUpdateLogicCombo(t,o)})),e}return t=i,(n=[{key:"render",value:function(){var e=this;return this.props.withContainer?d.a.createElement(cT.a,{id:"attributeFilterPanel",className:"query-filter-container",header:this.renderHeader(),collapsible:!0,expanded:this.props.attributePanelExpanded,onSwitch:function(t){return e.props.actions.onExpandAttributeFilterPanel(t)}},this.props.groupFields.filter((function(e){return!e.groupId})).map(this.renderGroupField)):d.a.createElement("div",{className:"query-filter-container"},this.props.groupFields.filter((function(e){return!e.groupId})).map(this.renderGroupField))}}])&&UT(t.prototype,n),r&&UT(t,r),i}(d.a.Component);KT(XT,"propTypes",{groupLevels:f.a.number,withContainer:f.a.bool,autocompleteEnabled:f.a.bool,maxFeaturesWPS:f.a.number,groupFields:f.a.array,filterFields:f.a.array,attributes:f.a.array,fieldWidth:f.a.string,removeButtonIcon:f.a.string,addButtonIcon:f.a.string,logicComboOptions:f.a.array,attributePanelExpanded:f.a.bool,actions:f.a.object,listOperators:f.a.array,stringOperators:f.a.array,booleanOperators:f.a.array,defaultOperators:f.a.array}),KT(XT,"contextTypes",{messages:f.a.object}),KT(XT,"defaultProps",{autocompleteEnabled:!0,withContainer:!0,groupLevels:1,groupFields:[],filterFields:[],attributes:[],removeButtonIcon:"trash",addButtonIcon:"glyphicon glyphicon-plus",attributePanelExpanded:!0,logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"},{logic:"NOR",name:"queryform.attributefilter.groupField.none"}],actions:{onAddGroupField:function(){},onAddFilterField:function(){},onRemoveFilterField:function(){},onUpdateFilterField:function(){},onUpdateExceptionField:function(){},onUpdateLogicCombo:function(){},onRemoveGroupField:function(){},onChangeCascadingValue:function(){},onExpandAttributeFilterPanel:function(){},toggleMenu:function(){}},listOperators:["="],stringOperators:["=","like","ilike","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>","><"]});var ZT=XT;function QT(e){return function(e){if(Array.isArray(e))return $T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $T(e,t)}(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 $T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ek(ek({},t),{},(tk(e={},n.fieldName,n.fieldValue),tk(e,"type",n.fieldType),tk(e,"fieldOptions",ek(ek({},t.fieldOptions),{},{currentPage:void 0===n.fieldOptions.currentPage?1:n.fieldOptions.currentPage})),e));return"attribute"===n.fieldName?ek(ek({},r),{},{value:"string"===n.fieldType?"":null,operator:""}):"operator"===n.fieldName?ek(ek({},r),{},{value:null}):r},ok=function(e){var t=e.filterObj,n=void 0===t?{groupFields:[{id:1,logic:"OR",index:0}]}:t,r=e.attributes,o=void 0===r?[]:r,i=e.groupLevels,a=void 0===i?0:i,s=e.onChange,l=void 0===s?function(){}:s,u=n.groupFields,c=n.filterFields;return d.a.createElement("div",{className:"ms-style-rule-filter"},d.a.createElement(ZT,{attributes:o,filterFields:c,groupFields:u,autocompleteEnabled:!1,groupLevels:a,withContainer:!1,listOperators:["="],stringOperators:["=","<>","like","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>"],logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"}],actions:{onAddGroupField:function(e,t){var n={id:(new Date).getTime(),logic:"OR",groupId:e,index:t+1};l({filterFields:c,groupFields:u?[].concat(QT(u),[n]):[n]})},onAddFilterField:function(e){var t={rowId:(new Date).getTime(),groupId:e,attribute:null,operator:"",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};l({filterFields:c?[].concat(QT(c),[t]):[t],groupFields:u})},onRemoveFilterField:function(e){l({filterFields:c.filter((function(t){return t.rowId!==e})),groupFields:u})},onUpdateFilterField:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};l({filterFields:c.map((function(i){return i.rowId===e?rk(i,{rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:o}):i})),groupFields:u})},onUpdateExceptionField:function(e,t){l({filterFields:c.map((function(n){return n.rowId===e?ek(ek({},n),{},{exception:t}):n})),groupFields:u})},onUpdateLogicCombo:function(e,t){l({filterFields:c,groupFields:u.map((function(n){return n.id===e?ek(ek({},n),{},{logic:t}):n}))})},onRemoveGroupField:function(e){l({filterFields:c.filter((function(t){return t.groupId!==e})),groupFields:u.filter((function(t){return t.id!==e}))})},onChangeCascadingValue:function(){}}}))};function ik(e){var t=e.value,n=e.hide,r=e.attributes,o=e.onChange,i=e.placement,a=void 0===i?"right":i;return n||!r||0===r.length?null:d.a.createElement(vE,{placement:a,content:d.a.createElement(ok,{filterObj:t,attributes:r,onChange:function(e){return o({filter:e})}})},d.a.createElement(nk,{className:"square-button-md no-border",active:!!t,tooltipId:"styleeditor.openFilterBuilder"},d.a.createElement(w.Glyphicon,{glyph:"filter"})))}function ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sk(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.value?-1:1})):e}var s=uk(Object(c.useState)(function(e){var n=e.map((function(e,t){return{value:e,zoom:t}})),r=[t.min,t.max].filter((function(e){return void 0!==e}));return 0===r.length?n:r.reduce(a,n)}(o)),2),l=s[0],u=s[1];return d.a.createElement("div",{className:"ms-style-rule-scale"},d.a.createElement(gk,{label:"styleeditor.maxScaleDenominator",value:t.max,options:l.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==n&&n===e.zoom,disabled:t.min&&e.value<=t.min}})),isValidNewOption:function(e){return e>=t.min},onChange:function(e){i(sk(sk({},t),{},{max:e})),u(a(l,e))}}),d.a.createElement(gk,{label:"styleeditor.minScaleDenominator",value:t.min,options:l.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==n&&n===e.zoom,disabled:t.max&&e.value>=t.max}})),isValidNewOption:function(e){return e<=t.max},onChange:function(e){i(sk(sk({},t),{},{min:e})),u(a(l,e))}}))}function bk(e){var t=e.value,n=void 0===t?{}:t,r=e.scales,o=void 0===r?[]:r,i=e.zoom,a=e.hide,s=e.onChange,l=e.placement,u=void 0===l?"right":l;return a?null:d.a.createElement(vE,{placement:u,content:d.a.createElement(yk,{value:n,zoom:i,scales:o,onChange:function(e){return s({scaleDenominator:e})}})},d.a.createElement(hk,{className:"square-button-md no-border",tooltipId:"styleeditor.openScaleDenominator",active:void 0!==n.min||void 0!==n.max},d.a.createElement(w.Glyphicon,{glyph:"1-ruler"})))}function vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wk(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ak=function(e){var t=e.ruleId,n=e.glyph,r=e.params,o=e.kind,i=e.symbolizerKind,a=e.classificationType,s=void 0===a?"classificationVector":a,l=e.attributes,u=void 0===l?[]:l,p=e.onUpdate,f=e.onReplace,h=e.methods,m=e.getColors,g=void 0===m?function(){}:m,y=e.ruleBlock,b=void 0===y?{}:y,v=e.symbolizerBlock,w=void 0===v?{}:v,x=e.bands,_=kk(e,["ruleId","glyph","params","kind","symbolizerKind","classificationType","attributes","onUpdate","onReplace","methods","getColors","ruleBlock","symbolizerBlock","bands"]),O=_.ramp,S=_.method,j=_.classification,E=_.attribute,C=_.intervals,T=_.reverse,k=_.continuous,A=Object(c.useRef)();A.current={ruleId:t,intervals:C,method:S,attribute:E,reverse:T,ramp:O,continuous:k,classification:j};var P=r.reduce((function(e,t){return Oa()(t)?Ck(Ck({},e),t(i)):Ck(Ck({},e),t)}),{}),M=(w[i]||{}).glyph;return d.a.createElement(jk,{key:"Classification",glyph:M||n,tools:d.a.createElement(Sk,{ruleKind:o,symbolizerKind:i,ruleId:t,onSelect:f,ruleBlock:b,symbolizerBlock:w})},d.a.createElement(FE,{properties:_,config:{attributes:u,methods:h,getColors:function(){var e="custom"===O&&j.length>0&&{name:"custom",colors:j.map((function(e){return e.color}))},t=g(void 0,void 0,5,e);return t?t.map((function(e){var t=e.name,n=kk(e,["name"]);return Ck({label:t?"global.colors.".concat(t):void 0,name:t},n)})):[]},bands:x,method:S},params:P,onChange:function(e){return p(Ck(Ck({},A.current),{},{type:s,values:e}))}}))},Pk=n("./MapStore2/node_modules/lodash/isEqual.js"),Mk=n.n(Pk),Ik=n("./node_modules/tinycolor2/tinycolor.js"),Dk=n.n(Ik);function Nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rk(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zk={color:function(e){var t=e.key,n=void 0===t?"color":t,r=e.opacityKey,o=void 0===r?"opacity":r,i=e.graphicKey,a=e.label,s=void 0===a?"Fill":a,l=e.stroke,u=e.pattern,c=e.disableAlpha,d=e.getGroupParams,p=e.getGroupConfig;return{type:"color",label:s,config:{stroke:l,pattern:u,disableAlpha:c,getGroupParams:d,getGroupConfig:p,graphicKey:i},setValue:function(e,t){var n;if(u&&null!==(n=t[i])&&void 0!==n&&n.kind)return t[i];var r=ya()(t[o])?1:t[o];return Dk()(e).setAlpha(r).toRgb()},getValue:function(e){var t,r;if(u&&xa()(e)&&e.kind)return Fk(r={},i,e),Fk(r,n,void 0),Fk(r,o,void 0),r;var a=e||{},s=a.a,l=Lk(a,["a"]);return Rk((Fk(t={},n,Dk()(Rk(Rk({},l),{},{a:1})).toHexString()),Fk(t,o,s),t),u&&Fk({},i,void 0))}}},width:function(e){var t=e.key,n=void 0===t?"width":t,r=e.label,o=void 0===r?"Width":r,i=e.dasharrayKey,a=void 0===i?"dasharray":i;return{type:"slider",label:o,config:{range:{min:0,max:20},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=e[0]&&e[0].split(" px")[0],o=parseFloat(r),i=t[a],s=t[n];return Rk(Fk({},n,o),i&&Fk({},a,o?i.map((function(e){return Math.round(e/s*o)})):void 0))}}},dasharray:function(e){var t=e.key,n=void 0===t?"dasharray":t,r=e.label;return{type:"dash",label:void 0===r?"Dash array":r,config:{options:[{value:"0"},{value:"1 4"},{value:"1 12"},{value:"8 8"},{value:"8 16"},{value:"8 8 1 8"},{value:"8 8 1 4 1 8"}]},setValue:function(e,t){var n=void 0===t.width?1:t.width;return void 0!==e?e.map((function(e){return Math.round(e/n)})):[0]},getValue:function(e,t){if(Mk()(e,["0"]))return Fk({},n,void 0);var r=void 0===t.width?1:t.width,o=!(e||[]).find((function(e){return ka()(parseFloat(e))}));return Fk({},n,void 0!==e&&o?e.map((function(e){return parseFloat(e)*r})):void 0)}}},cap:function(e){var t=e.key,n=void 0===t?"cap":t,r=e.label;return{type:"toolbar",label:void 0===r?"Line cap":r,config:{options:[{labelId:"styleeditor.lineCapButt",value:"butt"},{labelId:"styleeditor.lineCapRound",value:"round"},{labelId:"styleeditor.lineCapSquare",value:"square"}]},getValue:function(e){return Fk({},n,e)}}},join:function(e){var t=e.key,n=void 0===t?"join":t,r=e.label;return{type:"toolbar",label:void 0===r?"Line join":r,config:{options:[{labelId:"styleeditor.lineJoinBevel",value:"bevel"},{labelId:"styleeditor.lineJoinRound",value:"round"},{labelId:"styleeditor.lineJoinMiter",value:"miter"}]},getValue:function(e){return Fk({},n,e)}}},size:function(e){var t=e.key,n=void 0===t?"radius":t,r=e.label;return{type:"slider",label:void 0===r?"Radius":r,config:{range:{min:1,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Fk({},n,parseFloat(t))}}},opacity:function(e){var t=e.key,n=void 0===t?"opacity":t,r=e.label;return{type:"slider",label:void 0===r?"Opacity":r,config:{range:{min:0,max:1}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Fk({},n,parseFloat(t))}}},offset:function(e){var t=e.key,n=void 0===t?"offset":t,r=e.label,o=void 0===r?"":r,i=e.axis,a=void 0===i?"":i;return{key:n,type:"slider",label:o,config:{range:{min:-100,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="y"===a?parseFloat(e[1]):parseFloat(e[0]);return ka()(t)?0:t},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=e[0]&&e[0].split(" px")[0],o=t[n]||[0,0];return Fk({},n,"y"===a?[o[0],parseFloat(r)]:[parseFloat(r),o[1]])}}},rotate:function(e){var t=e.key,n=void 0===t?"rotate":t,r=e.label;return{type:"slider",label:void 0===r?"Rotation (deg)":r,config:{range:{min:0,max:360},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+"°"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split("°")[0];return Fk({},n,parseFloat(t))}}},shape:function(e){var t=e.label,n=e.key,r=void 0===n?"wellKnownName":n;return{type:"mark",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},image:function(e){var t=e.label,n=e.key,r=void 0===n?"image":n;return{type:"image",label:t,config:{isValid:e.isValid},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},text:function(e){var t=e.label,n=e.key,r=void 0===n?"label":n;return{type:"input",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},fontStyle:function(e){var t=e.label,n=e.key,r=void 0===n?"fontStyle":n;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontStyleNormal",value:"normal"},{labelId:"styleeditor.fontStyleItalic",value:"italic"}]},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},fontWeight:function(e){var t=e.label,n=e.key,r=void 0===n?"fontWeight":n;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontWeightNormal",value:"normal"},{labelId:"styleeditor.fontWeightBold",value:"bold"}]},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},bool:function(e){var t=e.key,n=void 0===t?"label":t;return{type:"toolbar",label:e.label,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},isDisabled:e.isDisabled,getValue:function(e){return Fk({},n,e)}}},intervals:function(e){var t=e.key,n=void 0===t?"intervals":t,r=e.label,o=e.isDisabled;return{type:"slider",label:r,config:{range:{min:2,max:25},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)}}},isDisabled:void 0===o?function(e,t){return"customInterval"===(null==t?void 0:t.method)}:o,setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return parseFloat(e)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Fk({},n,parseFloat(e[0]))}}},select:function(e){var t=e.label,n=e.key,r=void 0===n?"":n,o=e.getOptions;return{type:"select",label:t,config:{getOptions:void 0===o?function(){return[]}:o,selectProps:e.selectProps,isValid:e.isValid},getValue:function(e){return Fk({},r,e)}}},colorRamp:function(e){var t=e.label,n=e.key,r=void 0===n?"":n,o=e.getOptions;return{type:"colorRamp",label:t,config:{getOptions:void 0===o?function(){return[]}:o},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Fk({},r,e)}}},colorMap:function(e){var t=e.label,n=e.key,r=void 0===n?"":n;return{type:"colorMap",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.classification,o=e.type,i="interval"===o||"customInterval"===t.method,a="color"===o||"custom"===t.ramp;return Rk(Rk(Fk({},r,n),i&&{method:"customInterval"}),a&&{ramp:"custom"})}}},channel:function(e){return{type:"channel",label:e.label,setValue:function(e,t){return{channelSelection:t.channelSelection,contrastEnhancement:t.contrastEnhancement}},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{channelSelection:e.channelSelection,contrastEnhancement:e.contrastEnhancement}}}}};function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qk(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ni&&c>u||(e.onSort(o,i),t.getItem().index=i)}(e,t,n)}},(function(e){return{connectDropTarget:e.dropTarget()}}))(Object(Wk.DragSource)("RULE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(Yk));function Xk(){return(Xk=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qk(e){return function(e){if(Array.isArray(e))return $k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(e,t)}(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 $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt?[n,o]:[o,n]:[o])}),[]);return y(r)}function I(e,t){var n=e.symbolizers,r=void 0===n?[]:n;return!!jj()(r,(function(e){return"Text"===e.kind}))&&t>0}return T.current={rules:r},d.a.createElement("div",{ref:t,className:"ms-style-rules-editor"},d.a.createElement("div",{className:"ms-style-rules-editor-head"},d.a.createElement("div",{className:"ms-style-rules-editor-left"},i),d.a.createElement("div",{className:"ms-style-rules-editor-right"},d.a.createElement(Uo.a,{btnDefaultProps:{className:"square-button-md no-border"},buttons:[].concat(Qk(Object.keys(f).map((function(e){var t=f[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(b),tooltipId:t.tooltipAddId,onClick:function(){return A({name:"",ruleId:Ro()(),symbolizers:[eA(eA({},f[e].deaultProperties),{},{symbolizerId:Ro()()})]})}}}))),Qk(Object.keys(u).filter((function(e){return u[e].add})).map((function(e){var t=u[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(b),tooltipId:t.tooltipAddId,onClick:function(){return A(eA({name:"",ruleId:Ro()()},u[e].deaultProperties))}}}))))}))),d.a.createElement("ul",{className:"ms-style-rules-editor-body"},0===r.length&&d.a.createElement(oA,null),r.map((function(e,t){var n=e.name,o=e.symbolizers,i=void 0===o?[]:o,a=e.filter,s=e.scaleDenominator,l=void 0===s?{}:s,c=e.ruleId,p=e.kind,h=e.errorId,g=u[p]||{},b=g.params,A=g.glyph,D=g.hideInputLabel,N=g.hideFilter,R=g.hideScaleDenominator,L=g.classificationType;return d.a.createElement(Kk,{key:c+(r.length>1?"_draggable":""),draggable:r.length>1,id:c,index:t,errorId:h,onSort:M,title:D?d.a.createElement(v.default,{msgId:"styleeditor.rule".concat(p)}):d.a.createElement(w.FormGroup,{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},d.a.createElement(rA,{value:n,placeholder:"styleeditor.enterLegendLabelPlaceholder",onChange:function(e){return k({values:{name:e.target.value},ruleId:c},!0)}})),tools:d.a.createElement(d.a.Fragment,null,I(e,t)&&d.a.createElement(lj.a,{glyph:"exclamation-mark",bsStyle:"warning",placement:"right",title:d.a.createElement(v.default,{msgId:"styleeditor.warningTextOrderTitle"}),text:d.a.createElement(v.default,{msgId:"styleeditor.warningTextOrder"})}),d.a.createElement(ik,{hide:N,value:a,attributes:x,onChange:function(e){return k({values:e,ruleId:c},!0)}}),d.a.createElement(bk,{hide:R,value:l,scales:O,zoom:S,onChange:function(e){return k({values:e,ruleId:c},!0)}}),d.a.createElement(nA,{className:"square-button-md no-border",tooltipId:"styleeditor.removeRule",onClick:function(){return function(e){var t=T.current.rules.filter((function(t){return t.ruleId!==e}));y(t)}(c)}},d.a.createElement(w.Glyphicon,{glyph:"trash"})))},"Classification"===p||"Raster"===p?d.a.createElement(Ak,Xk({},e,{ruleBlock:u,symbolizerBlock:f,glyph:A,classificationType:L,params:b,methods:E,getColors:C,bands:_,attributes:x&&x.map((function(e){return eA(eA({},e),{},{disabled:"number"!==e.type})})),onUpdate:m,onChange:function(e){return k({values:e,ruleId:c},!0)},onReplace:P})):i.map((function(e){var t=e.kind,n=void 0===t?"":t,r=e.symbolizerId,o=Zk(e,["kind","symbolizerId"]),i=f[n]||{},a=i.params,s=i.glyph;return a&&d.a.createElement(jk,{key:r,defaultExpanded:!0,draggable:!0,glyph:s,tools:d.a.createElement(Sk,{hide:"Icon"===n,symbolizerKind:n,ruleBlock:u,symbolizerBlock:f,ruleId:c,onSelect:P,graphic:o.graphicFill||o.graphicStroke,channelSelection:o.channelSelection})},d.a.createElement(FE,{properties:o,params:a,config:{bands:_,attributes:x,fonts:j},onChange:function(e){return k({values:e,ruleId:c,symbolizerId:r})}}))})))})),o&&d.a.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundColor:"rgba(255, 255, 255, 0.4)",zIndex:10,transition:"0.3s all"}})))})),aA=Vk(),sA=aA.symbolizerBlock,lA=aA.ruleBlock;iA.propTypes={rules:f.a.array,loading:f.a.bool,toolbar:f.a.node,config:f.a.object,ruleBlock:f.a.object,symbolizerBlock:f.a.object,onUpdate:f.a.func,onChange:f.a.func},iA.defaultProps={rules:[],config:{},ruleBlock:lA,symbolizerBlock:sA,onUpdate:function(){},onChange:function(){}};var uA=iA;function cA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dA(e){return function(e){if(Array.isArray(e))return hA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||fA(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 pA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||fA(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 fA(e,t){if(e){if("string"==typeof e)return hA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hA(e,t):void 0}}function hA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var PA={classificationVector:oj.b,classificationRaster:oj.a,classification:oj.b,"classification-raster":oj.a};function MA(e,t){return e&&"raster"!==t&&Object.keys(e).filter((function(t){return-1!==["integer","long","double","float","bigdecimal","string","decimal"].indexOf(e[t].localPart.toLowerCase())})).map((function(t){var n=e[t].localPart;return{attribute:t,label:t,type:-1!==["integer","long","double","float","bigdecimal","decimal"].indexOf(n.toLowerCase())?"number":"string"}}))}var IA=Object(h.connect)(Object(L.a)([tj.c,tj.g,tj.m,tj.f,tj.n,tj.j,tj.h,X.p,X.l,tj.s],(function(e,t,n,r,o,i,a,s,l,u){var c,d;return{code:e,mode:Object(nj.g)(t),bands:ja()(n)&&"raster"===a&&n||[],attributes:MA(n,a),error:r.edit||null,loading:o,format:t,layer:i,geometryType:a,scales:s.map((function(e){return Math.round(e)})),zoom:l.zoom,fonts:u.fonts||[],methods:("raster"===a?null==u||null===(c=u.classificationMethods)||void 0===c?void 0:c.raster:null==u||null===(d=u.classificationMethods)||void 0===d?void 0:d.vector)||rj.a.methods}})),{onError:Ki.v.bind(null,"edit")})(OA);IA.defaultProps={getColors:rj.a.getColors,styleUpdateTypes:PA};var DA={visual:IA,textarea:Object(h.connect)(Object(L.a)([tj.c,tj.g,tj.m,tj.f,tj.n],(function(e,t,n,r,o){return{code:e,mode:Object(nj.g)(t),hintProperties:n,error:r.edit||null,loading:o}})))(Oj)};function NA(e){var t=e.code,n=e.error,r=e.canEdit,o=e.editorType,i=e.onUpdateMetadata,a=e.onChange,s=e.loading,l=AA(e,["code","error","canEdit","editorType","onUpdateMetadata","onChange","loading"]),u=TA(Object(c.useState)(),2),p=u[0],f=u[1],h={position:"relative",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"};if(!t&&!n)return d.a.createElement("div",{style:h},d.a.createElement(kS.a,{size:150}));if(!r)return d.a.createElement("div",{style:h},d.a.createElement("div",null,d.a.createElement(w.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),d.a.createElement("h1",null,d.a.createElement(v.default,{msgId:"styleeditor.noPermission"}))));if(404===(null==n?void 0:n.status))return d.a.createElement("div",{style:h},d.a.createElement("div",null,d.a.createElement(w.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),d.a.createElement("h1",null,d.a.createElement(v.default,{msgId:"styleeditor.styleNotFound"}))));var m=DA[o]||DA.textarea;return d.a.createElement(qo.a,{style:{position:"relative"},header:d.a.createElement("div",{className:"ms-style-editor-switch"},d.a.createElement(Uo.a,{buttons:[{className:"square-button-md no-border",glyph:"code",active:"textarea"===o,disabled:s,tooltipId:"visual"===o?"styleeditor.switchToTextareaEditor":"styleeditor.switchToVisualEditor",onClick:function(){return s?null:"visual"===o?i({editorType:"textarea"}):f(!0)}}]}))},m&&d.a.createElement(m,CA({},l,{onChange:function(e,t){a(e),xa()(t)&&i({styleJSON:JSON.stringify(t)})}})),p&&d.a.createElement("div",{className:"ms-style-editor-alert",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",padding:16,backgroundColor:"rgba(0, 0, 0, 0.6)"}},d.a.createElement(w.Alert,{bsStyle:"warning",style:{textAlign:"center"}},d.a.createElement("p",{style:{padding:8}},d.a.createElement(v.default,{msgId:"styleeditor.alertForceTranslate"})),d.a.createElement("p",null,d.a.createElement(Uo.a,{buttons:[{text:d.a.createElement(v.default,{msgId:"styleeditor.stayInTextareaEditor"}),onClick:function(){return f(!1)},style:{marginRight:4}},{bsStyle:"primary",text:d.a.createElement(v.default,{msgId:"styleeditor.useLatestValidStyle"}),onClick:function(){i({editorType:"visual"}),f(!1)}}]})))))}NA.defaultProps={inlineWidgets:EA};var RA=Object(h.connect)(Object(SA.a)(tj.c,tj.f,tj.b,(function(e){var t=Object(tj.d)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=Object(tj.d)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),tj.n,(function(e,t,n,r,o,i){return{code:e,error:t.edit||null,canEdit:n,editorType:r,defaultStyleJSON:o,loading:i}})),{onUpdateMetadata:Ki.E,onChange:Ki.u})(NA),LA=Object(nj.i)(),FA=Object(dO.a)((function(e){return!e.canEdit}),{glyph:"exclamation-mark",title:d.a.createElement(v.default,{msgId:"styleeditor.noPermission"})}),zA=function(e){return Object(cO.a)(e,{size:150,style:{margin:"auto"}},(function(e){return d.a.createElement("div",{style:{position:"relative",height:"100%",display:"flex"}},d.a.createElement(kS.a,e))}))},BA=Object(F.compose)(Object(F.defaultProps)({templates:LA}),Object(h.connect)(Object(L.a)([tj.t,tj.a,tj.h,tj.b,tj.s,tj.n],(function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.formats,a=void 0===i?[]:i,s=arguments.length>5?arguments[5]:void 0;return{selectedStyle:e,add:t&&e,geometryType:n,canEdit:r,availableFormats:a,loading:s}})),{onSelect:Ki.A,onClose:Ki.r.bind(null,!1),onSave:Ki.s}),FA,zA((function(e){return!e.geometryType})),Object(F.withState)("filterText","onFilter",""),Object(F.withState)("styleSettings","onUpdate",{}))(QS),qA=Object(F.compose)(Object(h.connect)(Object(L.a)([tj.r,tj.i],(function(e,t){return{status:e,defaultStyle:t.defaultStyle,enabledStyle:t.enabledStyle,availableStyles:t.availableStyles}})),{onSelect:_.fb}),Object(F.withState)("filterText","onFilter",""),Object(TS.a)((function(e){var t=e.status,n=e.readOnly;return"template"===t&&!n}),(function(){return d.a.createElement(BA,null)}),{maskContainerStyle:{display:"flex",position:"relative"},maskStyle:{overflowY:"auto",left:0}}))(qS),UA=Object(F.compose)(Object(F.withState)("showModal","onShowModal"),Object(h.connect)(Object(L.a)([tj.r,tj.t,tj.f,tj.k,tj.c,tj.n,tj.q,tj.b,tj.i,tj.s,tj.o],(function(e,t,n,r,o,i,a,s,l){var u=l.defaultStyle,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},d=c.formats,p=void 0===d?["sld"]:d,f=arguments.length>10?arguments[10]:void 0;return{status:e,templateId:t,error:n,isCodeChanged:r!==o,loading:i,layerDefaultStyleName:u,selectedStyle:u===a?"":a,editEnabled:s,disableCodeEditing:-1===p.indexOf(f)}})),{onSelectStyle:Ki.F.bind(null,"template"),onEditStyle:Ki.F.bind(null,"edit"),onBack:Ki.F.bind(null,""),onReset:CS.h.bind(null,nj.b,[{}]),onAdd:Ki.r.bind(null,!0),onUpdate:Ki.G,onDelete:Ki.t,onSetDefault:Ki.B}))(ej),GA=Object(F.compose)(Object(h.connect)(Object(L.a)([tj.j],(function(e){return{layer:e}})),{onInit:U.b}),Object(F.lifecycle)({componentWillMount:function(){this.props.onInit&&this.props.layer&&this.props.onInit(this.props.layer)}}),zA((function(e){var t=e.layer,n=void 0===t?{}:t;return n&&n.capabilitiesLoading})))((function(){return d.a.createElement(qo.a,{className:"ms-style-editor-container",footer:d.a.createElement("div",{style:{height:25}})},d.a.createElement(qA,{readOnly:!0}))})),HA=Object(F.branch)((function(e){return e.readOnly}),(function(){return GA}))(qA),VA=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function WA(){return(WA=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}iP(aP,"propTypes",{element:f.a.object,defaultInfoFormat:f.a.object,onChange:f.a.func,formatCards:f.a.object}),iP(aP,"defaultProps",{element:{},defaultInfoFormat:[],onChange:function(){},formatCards:{}});var hP={html:iO.a,json:JSON.parse(sO.a),text:uO.a},mP=Object(F.defaultProps)({readOnly:!0})(HA),gP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=void 0===t?{}:t;return"layers"===n.nodeType},yP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=void 0===t?{}:t;return"wfs"===n.type||"vector"===n.type&&"annotations"!==n.id},bP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=void 0===t?{}:t;return"wms"===n.type},vP=function(e){return gP(e)&&(bP(e)||yP(e))},wP={HIDDEN:{titleId:"layerProperties.hideFormatTitle",descId:"layerProperties.hideFormatDescription",glyph:"hide-marker"},TEXT:{titleId:"layerProperties.textFormatTitle",descId:"layerProperties.textFormatDescription",glyph:"ext-txt",body:function(){return d.a.createElement("div",null,d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"layerProperties.exampleOfResponse"})),d.a.createElement("br",null),d.a.createElement(ra.a,{response:hP.text}))}},HTML:{titleId:"layerProperties.htmlFormatTitle",descId:"layerProperties.htmlFormatDescription",glyph:"ext-html",body:function(){return d.a.createElement("div",null,d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"layerProperties.exampleOfResponse"})),d.a.createElement("br",null),d.a.createElement(na.a,{response:hP.html}))}},PROPERTIES:{titleId:"layerProperties.propertiesFormatTitle",descId:"layerProperties.propertiesFormatDescription",glyph:"ext-json",body:function(){return d.a.createElement("div",null,d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"layerProperties.exampleOfResponse"})),d.a.createElement("br",null),d.a.createElement(oa.a,{response:hP.json}))}},TEMPLATE:{titleId:"layerProperties.templateFormatTitle",descId:"layerProperties.templateFormatDescription",glyph:"ext-empty",body:function(e){var t=e.template,n=void 0===t?"":t,r=fP(e,["template"]);return d.a.createElement("div",null,d.a.createElement("div",null,n&&"


"!==n?d.a.createElement(v.default,{msgId:"layerProperties.templatePreview"}):null),d.a.createElement("br",null),d.a.createElement("div",null,n&&"


"!==n?d.a.createElement(ia.a,{html:n}):d.a.createElement("span",null,d.a.createElement("p",null,d.a.createElement(v.default,{msgId:"layerProperties.templateFormatInfoAlert2",msgParams:{attribute:"{ }"}})),d.a.createElement("pre",null,d.a.createElement(v.default,{msgId:"layerProperties.templateFormatInfoAlertExample",msgParams:{properties:"{ properties.id }"}})),d.a.createElement("p",null,d.a.createElement("small",null,d.a.createElement(v.default,{msgId:"layerProperties.templateFormatInfoAlert1"}))," ( ",d.a.createElement(w.Glyphicon,{glyph:"pencil"})," )")),d.a.createElement(nO,pP({template:n},r))))}}},xP=Object(F.defaultProps)({formatCards:wP,defaultInfoFormat:Object.assign({HIDDEN:"text/html"},Object(aa.d)())})(aP),_P={},OP=function(e,t,n){if(e){var r=_P[e.name];return r||(r=Object(O.f)(e,t,n))&&r.loaded&&(_P[e.name]=r),r}return e},SP=function(e){var t=e.settings,n=e.items,r=void 0===n?[]:n,o=e.loadedPlugins,i=e.onToggleStyleEditor,a=void 0===i?function(){}:i,s=e.onUpdateParams,l=void 0===s?function(){}:s,u=e.element,c=fP(e,["settings","items","loadedPlugins","onToggleStyleEditor","onUpdateParams","element"]);if(yP({element:u}))return{Component:ES};var p=Object(le.sortBy)(Object(le.filter)(cP(r),{target:"style"}),["priority"]).filter((function(e){var t=e.selector;return!t||t(lP(lP({},c),{},{element:u}))})),f=Object(le.head)(Object(le.filter)(p,{name:"ThematicLayer"}));if(f){var h=t&&t.options&&t.options.thematic,m=[{glyph:"list",tooltipId:"toc.thematic.classify",visible:c.isAdmin&&!h||!1,onClick:function(){return l({thematic:{unconfigured:!0}})}},{glyph:"trash",tooltipId:"toc.thematic.remove_thematic",visible:c.isAdmin&&h||!1,onClick:function(){return l({thematic:null})}}];return h?{Component:"style"===c.activeTab&&f.plugin&&OP(f,o,d.a.createElement(rO.a,{width:100,height:100})),toolbar:m}:{toolbar:m}}var g=Object(le.head)(p);if(g&&g.plugin){var y=g.cfg||g.plugin.cfg;return{onClose:function(){return a(null,!1)},Component:OP(lP(lP({},g),{},{cfg:lP(lP({},y||{}),{},{active:!0})}),o,d.a.createElement(rO.a,{width:100,height:100})),toolbarComponent:g.ToolbarComponent&&(y&&Object(F.defaultProps)(y)(g.ToolbarComponent)||g.ToolbarComponent)}}return{}},jP=function(e){var t=e.showFeatureInfoTab,n=void 0===t||t,r=e.loadedPlugins,o=e.items,i=e.onToggleStyleEditor,a=fP(e,["showFeatureInfoTab","loadedPlugins","items","onToggleStyleEditor"]);return[{id:"general",titleId:"layerProperties.general",tooltipId:"layerProperties.general",glyph:"wrench",visible:!0,Component:sa.a},{id:"display",titleId:"layerProperties.display",tooltipId:"layerProperties.display",glyph:"eye-open",visible:gP(a),Component:la.a},lP({id:"style",titleId:"layerProperties.style",tooltipId:"layerProperties.style",glyph:"dropper",visible:vP(a),Component:mP},SP(lP({items:o,loadedPlugins:r,onToggleStyleEditor:i},a))),{id:"feature",titleId:"layerProperties.featureInfo",tooltipId:"layerProperties.featureInfo",glyph:"map-marker",visible:n&&gP(a)&&bP(a)&&!(a.element.featureInfo&&a.element.featureInfo.viewer),Component:xP,toolbar:[{glyph:"pencil",tooltipId:"layerProperties.editCustomFormat",visible:!a.showEditor&&a.element&&a.element.featureInfo&&"TEMPLATE"===a.element.featureInfo.format||!1,onClick:function(){return a.onShowEditor&&a.onShowEditor(!a.showEditor)}}]},{id:"elevation",titleId:"layerProperties.elevation",tooltipId:"layerProperties.elevation",glyph:"1-vector",visible:gP(a)&&bP(a)&&a.element.dimensions&&a.getDimension&&a.getDimension(a.element.dimensions,"elevation"),Component:v_}].filter((function(e){return e.visible}))},EP=Object(L.a)([V.o,V.p,V.k,Z.b,Z.a,function(e){return Object(Wn.c)(e,{height:!0})},J.a,Q.d,Q.f,Q.a,V.f,ee.b],(function(e,t,n,r,o,i,a,s,l,u,c,d){return{settings:e,element:c,groups:n,currentLocale:r,currentLocaleLanguage:o,dockStyle:i,isAdmin:a,initialSettings:s,originalSettings:l,activeTab:u,isLocalizedLayerStylesEnabled:d}})),CP=Object(F.compose)(Object(h.connect)(EP,{onHideSettings:_.O,onUpdateSettings:_.eb,onUpdateNode:_.db,onRetrieveLayerData:U.b,onUpdateOriginalSettings:x.g.bind(null,"layersettings","originalSettings"),onUpdateInitialSettings:x.g.bind(null,"layersettings","initialSettings"),onSetTab:x.g.bind(null,"layersettings","activeTab"),onUpdateParams:_.fb,onToggleStyleEditor:Ki.D}),Xi.b,Object(F.defaultProps)({getDimension:te.getDimension,enableLayerNameEditFeedback:!0}),Object(F.getContext)({loadedPlugins:f.a.object}),Object(F.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,n=void 0===t?[]:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.items;return n!==o}),(function(e){return{tabs:jP(e)}})))(ta),TP=Object(O.d)("TOCItemsSettings",{component:CP,containers:{TOC:{doNotHide:!0,name:"TOCItemsSettings"}}}),kP=n("./MapStore2/web/client/selectors/widgets.js");function AP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PP=function e(t){var n=t.accessInfo,r=t.postProcessValue,o=t.reduceFun;return function(t){var i=Object(le.castArray)(t),a=o;return i.length>1&&"__OR__"===i[0]&&(a=function(e,t){return e||t},i=i.slice(1)),i.map((function(t){var i=t;if(Object(le.isArray)(i))return e({accessInfo:n,postProcessValue:r,reduceFun:o})(i);var a=!1;i&&Object(le.isString)(i)&&i.startsWith("!")&&(a=!0,i=i.substr(1));var s=function(e){return a?!e:e},l=Object(le.isString)(i)&&i.split(":");if(l&&l[0]){var u=l[0].split(/\!\=\=?/),c=l[0].split(/\=\=?\=?/);return u.length>1?s(r(Object(le.get)(n,u[0]),i)!==u[1]):c.length>1?s(r(Object(le.get)(n,c[0]),i)===c[1]):s(r(Object(le.get)(n,l[0]),i))}return i})).reduce(a||function(e,t){return e&&t})}},MP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.asObject,r=void 0!==n&&n,o=t.postProcessValue,i=void 0===o?function(e){return e}:o,a=t.reduceFun,s=t.accessInfo,l=void 0===s?"accessInfo":s;return Object(F.withPropsOnChange)([e,l],(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return AP({},e,r?Object(le.mapValues)(t[e],PP({accessInfo:t[l],postProcessValue:i,reduceFun:a})):PP({accessInfo:t[l],postProcessValue:i,reduceFun:a})(t[e]))}))},IP=function(){return Object(F.compose)(Object(h.connect)(Object(L.a)(X.h,X.i,J.e,(function(e,t,n){return{accessInfo:{mapId:e,mapInfo:t,user:n}}}))),MP.apply(void 0,arguments))},DP=Object(h.connect)(Object(L.a)(Wn.e,Wn.a,pe.a,(function(e,t,n){return{enabled:!e&&!t&&!n}}))),NP=n("./node_modules/react-container-dimensions/lib/index.js"),RP=n.n(NP),LP=n("./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js");function FP(){return(FP=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.overrideWidthProvider;return Object(F.compose)(Object(F.defaultProps)({useDefaultWidthProvider:!t}),(function(e){return function(t){return d.a.createElement(RP.a,null,(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.width;return d.a.createElement(e,FP({width:r},t))}))}}))},BP=function(e){return Object(F.compose)(Object(F.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),Object(LP.a)(e))},qP=n("./node_modules/react-grid-layout/index.js");function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GP(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $P=Object(F.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),qP.WidthProvider)(qP.Responsive),JP=WP(n("./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx").default),eM=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 Object(le.find)(e.widgets,(function(e){return e===t.id}))}))},tM=Object(F.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.style,r=e.className,o=void 0===r?"":r,i=e.toolsOptions,a=void 0===i?{}:i,s=e.rowHeight,l=void 0===s?208:s,u=e.breakpoints,c=void 0===u?{lg:1200,md:996,sm:768,xs:480,xxs:0}:u,p=e.cols,f=void 0===p?{lg:6,md:6,sm:4,xs:2,xxs:1}:p,h=e.widgets,m=void 0===h?[]:h,g=e.layouts,y=e.dependencies,b=e.verticalCompact,v=void 0!==b&&b,w=e.compactMode,x=e.useDefaultWidthProvider,_=void 0===x||x,O=e.measureBeforeMount,S=e.width,j=e.showGroupColor,E=e.groups,C=void 0===E?[]:E,T=e.canEdit,k=void 0===T||T,A=e.getWidgetClass,P=void 0===A?function(){}:A,M=e.onWidgetClick,I=void 0===M?function(){}:M,D=e.updateWidgetProperty,N=void 0===D?function(){}:D,R=e.deleteWidget,L=void 0===R?function(){}:R,F=e.toggleCollapse,z=void 0===F?function(){}:F,B=e.toggleMaximize,q=void 0===B?function(){}:B,U=e.editWidget,G=void 0===U?function(){}:U,H=e.onLayoutChange,V=void 0===H?function(){}:H,W=e.language,Y=e.env,K=QP(e,["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"]),X=m.filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap})),Z=function(e){return"table"===e.widgetType&&X.filter((function(t){return Object.keys(t).filter((function(n){return t[n]&&-1!==t[n].indexOf(e.id)})).length>0})).length>0};return d.a.createElement($P,{key:t||"widgets-view",useDefaultWidthProvider:_,measureBeforeMount:O,width:_?void 0:S,isResizable:k,isDraggable:k,draggableHandle:".draggableHandle",onLayoutChange:V,preventCollision:!0,style:n,className:"widget-container ".concat(o," ").concat(k?"":"no-drag"),rowHeight:l,autoSize:!0,verticalCompact:v,compactMode:w,breakpoints:c,cols:f,layouts:g?JSON.parse(JSON.stringify(Object(le.mapValues)(g,(function(e){return e.map((function(e){var t=Object(le.find)(m,{id:e.i});return t?XP(XP({},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 d.a.createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return I(e)},className:P(e)},d.a.createElement(JP,YP({"data-grid":e.dataGrid},K,e,{quickFilters:Z(e)?e.quickFilters:void 0,toolsOptions:a,groups:eM(C,e),showGroupColor:j,dependencies:y,enableColumnFilters:Z(e),canEdit:k,updateProperty:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.maximized,o=n-120,i=4,a=Math.floor(o/i-20),s=null!=r&&r.widget?{width:"100%",height:"100%",marginTop:0,bottom:"auto",top:0,left:0,zIndex:1330}:{},l=null!=r&&r.widget?{width:t,useDefaultWidthProvider:!1,rowHeight:n-50,breakpoints:{xxs:0},cols:{xxs:1}}:{};return cM({rowHeight:a,className:"on-map",breakpoints:{md:480,xxs:0},cols:{md:6,xxs:1},style:cM({left:t&&t>800?"500px":"0",marginTop:52,bottom:65,height:Math.floor((n-100)/(a+10))*(a+10),width:"calc(100% - ".concat(t&&t>800?570:70,"px)"),position:"absolute",zIndex:50},s)},l)}))),Object(F.compose)(Object(F.defaultProps)({toolsOptions:{showPin:"user.role===ADMIN",seeHidden:"user.role===ADMIN",showHide:!1,showCollapse:!0,showMaximize:!0}}),IP("toolsOptions",{asObject:!0}),Object(F.compose)(Object(h.connect)(Object(L.a)(kP.p,(function(e){return{tray:e}}))),Object(F.withPropsOnChange)(["toolsOptions","tray"],(function(e){var t=e.toolsOptions,n=e.tray;return{toolsOptions:t?cM(cM({},t),{},{showCollapse:t.showCollapse&&n}):t}}))),Object(F.withPropsOnChange)(["widgets","toolsOptions"],(function(e){var t=e.widgets,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r;return{widgets:n.filter((function(e){return!e.hide||o.seeHidden}))}}))))(tM),fM=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&&iM(e,t)}(i,e);var t,n,r,o=aM(i);function i(){return rM(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return this.props.enabled?d.a.createElement(pM,this.props):null}}])&&oM(t.prototype,n),r&&oM(t,r),i}(d.a.Component);dM(fM,"propTypes",{enabled:f.a.bool}),dM(fM,"defaultProps",{enabled:!0});var hM=DP(fM),mM=Object(O.d)("WidgetsPlugin",{component:hM,containers:{TOC:{doNotHide:!0,name:"Widgets"}},reducers:{widgets:n("./MapStore2/web/client/reducers/widgets.js").default},epics:n("./MapStore2/web/client/epics/widgets.js").default}),gM=n("./MapStore2/web/client/actions/featuregrid.js"),yM=n("./MapStore2/web/client/actions/draw.js"),bM=n("./MapStore2/web/client/actions/queryform.js"),vM=n("./node_modules/connected-react-router/esm/actions.js"),wM=n("./MapStore2/web/client/actions/wfsquery.js"),xM=n("./MapStore2/web/client/selectors/query.js");function _M(e){return function(e){if(Array.isArray(e))return OM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}(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 OM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.o,ue.g,ue.p).filter((function(){return Object(Q.k)(r())})).switchMap((function(){return Ut.a.Observable.of(Object(x.g)("widgetBuilder","enabled",!0),Object(x.g)("metadataexplorer","enabled",!1))}))},closeWidgetEditorOnFinish:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.m,_.b).filter((function(){return Object(Q.k)(r())})).switchMap((function(){return Ut.a.Observable.of(Object(x.g)("widgetBuilder","enabled",!1))}))},initEditorOnNew:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.o).filter((function(){return Object(Q.k)(r())})).switchMap((function(e){return Ut.a.Observable.of(Object(ue.I)(jM(jM({legend:!1,mapSync:!0,cartesian:!0,yAxis:!0},e),{},{type:void 0}),{step:0}))}))},initEditorOnNewChart:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.p).filter((function(){return Object(Q.k)(r())})).switchMap((function(e){return Ut.a.Observable.of(Object(gM.fb)(),Object(ue.I)(jM(jM({legend:!1,mapSync:!0,cartesian:!0,yAxis:!0,widgetType:"chart",filter:Object(xM.m)(r())},e),{},{type:void 0}),{step:0}),Object(ue.O)("returnToFeatureGrid",!0))}))},handleWidgetsFilterPanel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.q).filter((function(){return Object(Q.k)(r())})).switchMap((function(){return Ut.a.Observable.of(wM.u.apply(void 0,_M(CM(r()))),Object(bM.ab)(Object(kP.h)(r())),Object(x.g)("widgetBuilder","enabled",!1),Object(x.g)("queryPanel","enabled",!0)).concat(Ut.a.Observable.race(e.ofType(bM.o).take(1),e.ofType(x.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).take(1)).switchMap((function(e){return(e.filterObj?Ut.a.Observable.of(Object(ue.O)("filter",e.filterObj)):Ut.a.Observable.empty()).merge(Ut.a.Observable.of(Object(x.g)("widgetBuilder","enabled",!0)))}))).takeUntil(e.ofType(vM.b,ue.g).merge(e.ofType(x.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"widgetBuilder"===t&&!1==!n})))).concat(Ut.a.Observable.of(Object(yM.h)(),Object(x.g)("queryPanel","enabled",!1)))}))}},kM=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),AM=Object(F.compose)(Object(h.connect)((function(e){return{returnToFeatureGrid:Object(kP.r)(e)}}),{backToWidgetList:function(){return Object(ue.O)("widgetType",void 0)},closeWidgetBuilder:function(){return Object(x.g)("widgetBuilder","enabled",!1,!1)},openFeatureGridTable:function(){return Object(gM.yb)()}}),Object(F.withHandlers)({backFromWizard:function(e){var t=e.backToWidgetList,n=void 0===t?function(){}:t,r=e.closeWidgetBuilder,o=void 0===r?function(){}:r,i=e.openFeatureGridTable,a=void 0===i?function(){}:i,s=e.returnToFeatureGrid;return function(){s?(o(),a()):n()}}}),Object(F.withProps)((function(e){var t=e.returnToFeatureGrid,n=e.backFromWizard;return{exitButton:{onClick:void 0===n?function(){}:n,glyph:"arrow-left",tooltipId:t?"widgets.builder.wizard.backToFeatureGrid":"widgets.builder.wizard.backToWidgetTypeSelection"}}}))),PM=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),MM=n("./MapStore2/web/client/observables/wfs.js"),IM=n("./MapStore2/web/client/utils/ObservableUtils.js"),DM=n("./MapStore2/web/client/observables/wps/common.js"),NM=function(e,t){return qt.Observable.defer((function(){return kt.a.get(Object(DM.d)(e,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:t}),{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}})})).let(IM.b)};function RM(e){return NM(e.url,"gs:Aggregate")}var LM=n("./MapStore2/web/client/utils/ogc/WFS/base.js");function FM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||BM(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 zM(e){return function(e){if(Array.isArray(e))return qM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||BM(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 BM(e,t){if(e){if("string"==typeof e)return qM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qM(e,t):void 0}}function qM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsWPS;return Object(F.compose)(Object(F.defaultProps)({dataStreamFactory:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onEditorChange,o=void 0===r?function(){}:r,i=n.onConfigurationError,a=void 0===i?function(){}:i;return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.layer;return n.name===o.name})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.layer;return qt.Observable.forkJoin.apply(qt.Observable,[Object(MM.a)({layer:n})].concat(zM(t?[RM(n)]:[RM(n).catch((function(){return qt.Observable.of(!1)}))]))).do((function(e){var t=FM(e,1)[0],n=Object(le.get)(Object(LM.findGeometryProperty)(t.data||{}),"name");n&&o("geomProp",n)})).map((function(e){var t=FM(e,2),n=t[0];return{hasAggregateProcess:!!t[1],loading:!1,types:"ALL",featureTypeProperties:Object(le.get)(n,"data.featureTypes[0].properties")||[]}}))})).catch((function(e){return a(e),qt.Observable.of({errorObj:e,loading:!1,featureTypeProperties:[]})})).startWith({loading:!0})}}),PM.a,Object(cO.a)(),Object(dO.a)((function(e){var t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.types,o=void 0===r?[]:r;return 0===n.length||0===o.length}),(function(){return{title:d.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),description:d.a.createElement(NT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}})))},GM=Object(F.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("options",void 0),n("widgetType",void 0)}}]}})),HM=n("./MapStore2/web/client/observables/wms.js"),VM=n("./MapStore2/web/client/utils/CatalogUtils.js");function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YM(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected;return t})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected,n=e.layerValidationStream,r=void 0===n?function(e){return e}:n,o=e.setLayer,i=void 0===o?function(){}:o;return Ut.a.Observable.of(Object(VM.g)(t)).let(r).switchMap((function(){return Object(HM.a)(Object(VM.g)(t))})).do((function(e){return i(e)})).mapTo({canProceed:!0}).catch((function(e){return Ut.a.Observable.of({error:e,canProceed:!1})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=e.error,r=arguments.length>1?arguments[1]:void 0;return YM({error:n,canProceed:t},r)}))}))),ZM=Object(h.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(ue.O)("layer",e)},onResetChange:ue.O}),QM=Object(F.compose)(Object(F.setDisplayName)("ChartLayerSelector"),ZM,Object(F.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return qt.Observable.forkJoin(Object(MM.a)({layer:e}))}(e)}))}}),GM,XM),$M=function(e){return Object(F.withHandlers)({toggleConnection:function(t){var n=t.toggleConnection,r=void 0===n?function(){}:n,o=t.editorData,i=void 0===o?{}:o;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(!i.mapSync,t,{dependenciesMap:i.dependenciesMap,mappings:e,sourceWidgetType:i.widgetType})}}})},JM=function(e,t,n){return"table"===t&&0===e.filter((function(e){return Object.keys(e).filter((function(t){return e[t]&&-1!==e[t].indexOf(n.id)})).length>0})).length},eI=Object(F.compose)(Object(F.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.widgets,o=(void 0===r?[]:r).filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap}));return{canConnect:n.geomProp&&"table"!==n.widgetType||JM(o,n.widgetType,n),connected:n.mapSync}})),$M({viewport:"viewport",layers:"layers",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),tI=Object(F.compose)(Object(h.connect)(Object(L.a)(kP.q,(function(e){return{widgetSelectionActive:e}}))),Object(TS.a)((function(e){return e.widgetSelectionActive}),(function(){return d.a.createElement("div",{style:{margin:"auto"}},d.a.createElement(v.default,{msgId:"widgets.builder.wizard.selectMapToConnect"}))}),{alwaysWrap:!0}));function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rI(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return 0===e.step},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(F.withProps)((function(n){var r=n.stepButtons,o=void 0===r?[]:r,i=n.exitButton,a=sI(n,["stepButtons","exitButton"]);return{stepButtons:[rI(rI({},i),{},{visible:e(rI({stepButtons:o,exitButton:i},a))},t)].concat(iI(o))}}))};function uI(e){return function(e){if(Array.isArray(e))return cI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cI(e,t)}(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 cI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var pI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return Object(F.compose)(Object(F.withProps)((function(t){var n=t.disableMultiDependencySupport,r=t.stepButtons,o=void 0===r?[]:r,i=t.toggleConnection,a=void 0===i?function(){}:i,s=t.availableDependencies,l=void 0===s?[]:s,u=t.canConnect,c=t.connected,d=dI(t,["disableMultiDependencySupport","stepButtons","toggleConnection","availableDependencies","canConnect","connected"]);return{stepButtons:[].concat(uI(o),[{onClick:function(){return a(l)},disabled:n,visible:!!e(d)&&!!u&&l.length>0,bsStyle:c?"success":"primary",glyph:c?"plug":"unplug",tooltipId:c?"widgets.builder.wizard.clearConnection":1===l.length?"widgets.builder.wizard.connectToTheMap":"widgets.builder.wizard.connectToAMap"}])}})))},fI=n("./MapStore2/web/client/selectors/dashboard.js");function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mI(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mI(mI(mI(mI({},n),e),t),{},{step:e&&e.settings&&e.settings.step,valid:e&&e.settings&&e.settings.valid,onFinish:function(){return t.insertWidget&&t.insertWidget(mI({layer:e.layer,url:e.layer&&e.layer.url},e.editorData||{}),n.target)}})},bI=Object(L.a)(kP.o,kP.g,kP.i,kP.j,(function(e,t,n,r){return{layer:t&&t.layer||e,editorData:t,settings:n,widgets:r}}));Object(L.a)(kP.g,fI.c,kP.c,kP.a,(function(e,t,n,r){return mI({layer:e.layer,showConnections:t,dependencies:n},r)})),Object(L.a)(ee.a,Z.a,ee.c,(function(e,t,n){return{isLocalizedLayerStylesEnabled:!Object(le.isNil)(e),language:t,env:n}})),kP.o,kP.a;function vI(e){return(vI="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 wI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xI(e,t){for(var n=0;n=0?i.length:1;return e.props.hideButtons?null:(e.props.step>0&&t.push(d.a.createElement(Ne.a,{key:"prev",className:"ms-wizard-prev",onClick:function(){return e.props.onPrevPage()}},d.a.createElement(v.default,{msgId:"wizard.prev"}))),e.props.step>=a-1?t.push(d.a.createElement(Ne.a,{key:"finish",className:"ms-wizard-finish",onClick:function(){return e.props.onFinish()}},d.a.createElement(v.default,{msgId:"wizard.finish"}))):e.props.step1&&t.push(d.a.createElement(Ne.a,{key:"next",className:"ms-wizard-next",disabled:!r(e.props.step),onClick:function(){return e.props.onNextPage()}},d.a.createElement(v.default,{msgId:"wizard.next"}))),t)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.children||[],n=t.length>=0?t.length:1;return d.a.createElement("div",{key:"wizard-pages",className:"ms-wizard"},d.a.Children.map(t,(function(t,r){return r===e.props.step?d.a.cloneElement(t,{key:"wizard-component-".concat(r),onNextPage:e.props.step===n-1?e.props.onFinish:e.props.onNextPage,onPrevPage:e.props.onPrevPage}):null})),d.a.createElement(w.Row,{key:"wizard-buttons",className:"ms-wizard-buttons"},this.renderButtons()))}}])&&xI(t.prototype,n),r&&xI(t,r),i}(d.a.Component);CI(TI,"propTypes",{step:f.a.number,hideButtons:f.a.bool,onNextPage:f.a.func,onPrevPage:f.a.func,buttonType:f.a.node,onFinish:f.a.func,isStepValid:f.a.func}),CI(TI,"defaultProps",{step:0,isStepValid:function(){return!0},hideButtons:!1,onNextPage:function(){},onPrevPage:function(){},onFinish:function(){}});var kI=TI,AI=Object(F.compose)(Object(F.withPropsOnChange)(["step"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.skipButtonsOnSteps,n=void 0===t?[]:t,r=e.step,o=e.hideButtons;return n&&n.indexOf(r)>=0?{hideButtons:!0}:{hideButtons:o}})),Object(F.withHandlers)({onNextPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(t+1)}},onPrevPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(Math.max(t-1,0))}}})),PI=(Object(F.compose)(Object(F.withState)("step","setPage",0),AI),function(e){return Object(dO.a)(e,{title:d.a.createElement(v.default,{msgId:"widgets.builder.errors.noAttributesTitle"}),description:d.a.createElement(v.default,{msgId:"widgets.builder.errors.noAttributesDescription"}),glyph:"warning-sign"})}),MI=Object(F.defaultProps)({data:[{name:"A",variable:2,pv:2,amt:2},{name:"B",variable:.5,pv:.5,amt:.5},{name:"C",variable:3,pv:3,amt:3},{name:"D",variable:1,pv:1,amt:2}],series:[{dataKey:"variable",color:"#078aa3"}],xAxis:{dataKey:"name",show:!1}}),II=n("./MapStore2/web/client/components/charts/SimpleChart.jsx"),DI=function(e){var t=e.title,n=e.description;return d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:12,className:"text-center"},d.a.createElement("div",{className:"mapstore-step-title"},t),d.a.createElement("div",{className:"mapstore-step-description"},n)))};function NI(){return(NI=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onSelect,n=void 0===t?function(){}:t,r=e.onNextPage,o=void 0===r?function(){}:r,i=e.types,a=void 0===i?qI:i,s=e.type;return d.a.createElement(w.Row,null,d.a.createElement(DI,{key:"title",title:d.a.createElement(v.default,{msgId:"widgets.selectChartType.title"})}),d.a.createElement(AS.default,{key:"content",onItemClick:function(e){n(e.type),o()},items:a&&qI.map((function(e){return LI(LI({},e),{},{selected:e.type===s,preview:d.a.createElement(zI,NI({},BI,{type:e.type,autoColorOptions:e.type===s?{base:0,s:0,v:0}:void 0}))})}))}))})),GI=function(e){return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return 0!==t.indexOf("gml:")})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return{label:t,value:t}}))},HI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(le.find)(t,{name:e});return!n||"number"!==n.localType&&"int"!==n.localType?[{value:"Count",label:"widgets.operations.COUNT"}]:[{value:"Count",label:"widgets.operations.COUNT"},{value:"Sum",label:"widgets.operations.SUM"},{value:"Average",label:"widgets.operations.AVG"},{value:"StdDev",label:"widgets.operations.STDDEV"},{value:"Min",label:"widgets.operations.MIN"},{value:"Max",label:"widgets.operations.MAX"}]},VI=Object(F.compose)(Object(F.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.data,o=void 0===r?{}:r;return{options:GI(n),aggregationOptions:("counter"!==(null==o?void 0:o.widgetType)?[{value:"None",label:"widgets.operations.NONE"}]:[]).concat(HI(o.options&&o.options.aggregationAttribute,n))}})),Object(PS.a)("aggregationOptions")),WI=n("./MapStore2/web/client/components/misc/switch/SwitchButton.jsx"),YI=n("./MapStore2/web/client/components/misc/Overlay.jsx");function KI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return XI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XI(e,t)}(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 XI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nD={value:1};function rD(e){try{if(!e)return[!0];var t=Object(QI.a)(e,nD);return[!Object(le.isNil)(t)&&!Object(le.isNaN)(t)&&!Object(le.isError)(t),t]}catch(e){return[!1,e]}}function oD(e,t){return e?null:Object(le.isNil)(t)?"the expression returns no value":Object(le.isNaN)(t)?"the expression returned NaN":Object(le.isError)(t)?t.message:null}function iD(e,t){return t?e?"success":"error":null}function aD(e){var t=e.onChange,n=e.value,r=tD(e,["onChange","value"]),o=JI(rD(n),2),i=o[0],a=o[1],s=JI(Object(c.useState)(i),2),l=s[0],u=s[1],p=JI(Object(c.useState)(a),2),f=p[0],h=p[1],m=JI(Object(c.useState)(n),2),g=m[0],y=m[1];return d.a.createElement(w.FormGroup,{validationState:iD(l,g)},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"widgets.advanced.formula"})),d.a.createElement(ZI,{placement:"top",title:d.a.createElement(v.default,{msgId:"widgets.advanced.formula"}),text:d.a.createElement(US.a,{msgId:"widgets.advanced.formulaExamples"})}),d.a.createElement(w.FormControl,$I({placeholder:"e.g. value / 100",feedback:oD(l,f)},r,{type:"text",value:g,onChange:function(e){var n=JI(rD(e.target.value),2),r=n[0],o=n[1];r?(u(!0),h(void 0),t(e)):(u(!1),h(o)),y(e.target.value)}}))))}var sD=Object(PS.a)("options")(Go.default),lD=[{value:"-",label:"widgets.advanced.axisTypes.auto"},{value:"linear",label:"widgets.advanced.axisTypes.linear"},{value:"category",label:"widgets.advanced.axisTypes.category"},{value:"log",label:"widgets.advanced.axisTypes.log"},{value:"date",label:"widgets.advanced.axisTypes.date"}];function uD(e){var t=e.data;return d.a.createElement("span",null,d.a.createElement("span",{style:{cursor:"pointer"}},d.a.createElement(v.default,{msgId:"widgets.advanced.title"})),d.a.createElement("button",{className:"close"},t.panel?d.a.createElement(w.Glyphicon,{glyph:"glyphicon glyphicon-collapse-down"}):d.a.createElement(w.Glyphicon,{glyph:"glyphicon glyphicon-expand"})))}function cD(e){var t,n,r,o,i,a,s,l,u,c,p,f,h,m=e.data,g=e.onChange,y=void 0===g?function(){}:g;return d.a.createElement(cT.a,{id:"displayCartesian",header:d.a.createElement(uD,{data:m}),collapsible:!0,expanded:m.panel,onSwitch:function(e){y("panel",e)}},d.a.createElement(w.FormGroup,{controlId:"AdvancedOptions"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.displayCartesian"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(WI.a,{checked:!(!m.cartesian&&!1!==m.cartesian)&&!m.cartesian,onChange:function(e){y("cartesian",!e)}})),d.a.createElement(w.Col,{componentClass:"label",sm:12},d.a.createElement(v.default,{msgId:"widgets.advanced.yAxis"})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.xAxisType"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(sD,{value:m.yAxisOpts&&m.yAxisOpts.type||"-",options:lD,onChange:function(e){y("yAxisOpts.type",e&&e.value)}})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.hideLabels"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(WI.a,{checked:!m.yAxis&&!1!==m.yAxis||!m.yAxis,onChange:function(e){y("yAxis",!e)}})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:12},d.a.createElement(v.default,{msgId:"widgets.advanced.format"})),d.a.createElement(w.Col,{sm:4},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"widgets.advanced.prefix"}),d.a.createElement(w.FormControl,{placeholder:"e.g.: ~",disabled:!1===m.yAxis,value:null==m||null===(t=m.yAxisOpts)||void 0===t?void 0:t.tickPrefix,type:"text",onChange:function(e){return y("yAxisOpts.tickPrefix",e.target.value)}}))),d.a.createElement(w.Col,{sm:4},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"widgets.advanced.format"})),d.a.createElement(ZI,{placement:"top",title:d.a.createElement(v.default,{msgId:"widgets.advanced.examples"}),text:d.a.createElement(US.a,{msgId:"widgets.advanced.formatExamples"})}),d.a.createElement(w.FormControl,{placeholder:"e.g.: .2s",disabled:!1===m.yAxis,value:null==m||null===(n=m.yAxisOpts)||void 0===n?void 0:n.format,type:"text",onChange:function(e){return y("yAxisOpts.format",e.target.value)}})),d.a.createElement(w.Col,{sm:4},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"widgets.advanced.suffix"})),d.a.createElement(w.FormControl,{placeholder:"e.g.: W",disabled:!1===m.yAxis,value:null==m||null===(r=m.yAxisOpts)||void 0===r?void 0:r.tickSuffix,type:"text",onChange:function(e){return y("yAxisOpts.tickSuffix",e.target.value)}})),d.a.createElement(w.Col,{sm:12},d.a.createElement(aD,{disabled:!1===m.yAxis,value:m.formula,type:"text",onChange:function(e){return y("formula",e.target.value)}})),d.a.createElement(w.Col,{componentClass:"label",sm:12},d.a.createElement(v.default,{msgId:"widgets.advanced.xAxis"})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.xAxisType"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(sD,{value:null!==(o=null==m||null===(i=m.xAxisOpts)||void 0===i?void 0:i.type)&&void 0!==o?o:"-",options:lD,onChange:function(e){y("xAxisOpts.type",e&&e.value)}})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.hideLabels"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(WI.a,{checked:null!==(a=null==m||null===(s=m.xAxisOpts)||void 0===s?void 0:s.hide)&&void 0!==a&&a,onChange:function(e){y("xAxisOpts.hide",e)}})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.forceTicks"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(WI.a,{disabled:null!==(l=null==m||null===(u=m.xAxisOpts)||void 0===u?void 0:u.hide)&&void 0!==l&&l,checked:!(null==m||null===(c=m.xAxisOpts)||void 0===c||!c.nTicks),onChange:function(e){y("xAxisOpts.nTicks",e?200:void 0)}}),d.a.createElement("span",{style:{position:"relative",top:-5,margin:10}},d.a.createElement(lj.a,{bsStyle:"info",text:d.a.createElement(v.default,{msgId:"widgets.advanced.maxXAxisLabels",msgParams:{max:200}})}))),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.xAxisAngle"})),d.a.createElement(w.Col,{sm:6,style:{display:"flex"}},d.a.createElement(WI.a,{disabled:null!==(p=null==m||null===(f=m.xAxisOpts)||void 0===f?void 0:f.hide)&&void 0!==p&&p,checked:void 0!==m.xAxisAngle,onChange:function(e){y("xAxisAngle",e?0:void 0)}}),d.a.createElement("div",{style:{flexGrow:1,padding:5}},void 0!==m.xAxisAngle?d.a.createElement("div",{className:"mapstore-slider with-tooltip",onClick:function(e){e.stopPropagation()}},d.a.createElement(Pj.a,{disabled:!(null==m||null===(h=m.xAxisOpts)||void 0===h||!h.hide),key:"priority",format:{to:function(e){return"".concat(parseInt(e,10),"°")},from:function(e){return Number(e)}},onSlide:function(e){y("xAxisAngle",parseInt(e[0],10))},range:{min:-90,max:90},start:[Object(le.isNil)(m.xAxisAngle)?0:m.xAxisAngle],step:15,tooltips:[!0]})):d.a.createElement("div",{style:{textAlign:"center"}},"Auto")))),d.a.createElement(w.FormGroup,{controlId:"yAxisLabel"},d.a.createElement(w.Col,{componentClass:"label",sm:12},d.a.createElement(v.default,{msgId:"widgets.advanced.legend"})),d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.advanced.yAxisLabel"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(w.FormControl,{value:m.yAxisLabel,type:"text",onChange:function(e){return y("yAxisLabel",e.target.value)}}))))}function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pD(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return"widgets.".concat(e,".").concat(t.type||t.widgetType||"default")},yD=d.a.createElement(v.default,{msgId:gD("placeHolder")}),bD=function(e){var t=e.hasAggregateProcess,n=e.data,r=void 0===n?{options:{}}:n,o=e.onChange,i=void 0===o?function(){}:o,a=e.options,s=void 0===a?[]:a,l=e.formOptions,u=void 0===l?{showGroupBy:!0,showUom:!1,showColorRampSelector:!0,showLegend:!0,advancedOptions:!0}:l,c=e.aggregationOptions,p=void 0===c?[]:c,f=e.sampleChart;return d.a.createElement(w.Row,null,d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.chartOptionsTitle"})}),d.a.createElement(w.Col,{xs:12,style:{position:"sticky",top:0,zIndex:1,background:"linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255, 1) 30px)"}},d.a.createElement("div",{style:{marginBottom:"30px"}},f)),d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Form,{className:"chart-options-form",horizontal:!0},u.showGroupBy?d.a.createElement(w.FormGroup,{controlId:"groupByAttributes",className:"mapstore-block-width"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("groupByAttributes",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(Go.default,{value:r.options&&r.options.groupByAttributes,options:s,placeholder:yD,onChange:function(e){i("options.groupByAttributes",e&&e.value)}}))):null,d.a.createElement(w.FormGroup,{controlId:"aggregationAttribute",className:"mapstore-block-width"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("aggregationAttribute",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(Go.default,{value:r.options&&r.options.aggregationAttribute,options:s,placeholder:yD,onChange:function(e){i("options.aggregationAttribute",e&&e.value)}}))),t?d.a.createElement(w.FormGroup,{controlId:"aggregateFunction",className:"mapstore-block-width"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("aggregateFunction",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(Go.default,{value:r.options&&r.options.aggregateFunction,options:p,placeholder:yD,onChange:function(e){i("options.aggregateFunction",e&&e.value)}}))):null,u.showUom?d.a.createElement(w.FormGroup,{controlId:"uom"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("uom",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(w.FormControl,{value:Object(le.get)(r,"options.seriesOptions[0].uom"),type:"text",onChange:function(e){return i("options.seriesOptions.[0].uom",e.target.value)}}))):null,u.showColorRampSelector?d.a.createElement(w.FormGroup,{controlId:"colorRamp",className:"mapstore-block-width"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("colorRamp",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(Fj,{items:mD(r.type),value:Object(le.head)(mD(r.type).filter((function(e){return r.autoColorOptions&&e.name===r.autoColorOptions.name}))),samples:"pie"===r.type?5:1,onChange:function(e){i("autoColorOptions",pD(pD({},e.options),{},{name:e.name}))}}))):null,u.showLegend?d.a.createElement(w.FormGroup,{controlId:"displayLegend"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:gD("displayLegend",r)})),d.a.createElement(w.Col,{sm:6},d.a.createElement(WI.a,{checked:r.legend,onChange:function(e){i("legend",e)}}))):null,!u.advancedOptions||"chart"!==r.widgetType||"bar"!==r.type&&"line"!==r.type?null:d.a.createElement(cD,{data:r,onChange:i}))))},vD=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.sampleChart;return d.a.createElement(w.Row,null,d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.widgetOptionsTitle"})}),d.a.createElement(w.Col,{key:"sample",xs:12},d.a.createElement("div",{style:{marginBottom:"30px"}},i)),d.a.createElement(w.Col,{key:"form",xs:12},d.a.createElement(w.Form,{className:"widget-options-form",horizontal:!0},d.a.createElement(w.FormGroup,{controlId:"groupByAttributes"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.title"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(w.FormControl,{value:n.title,type:"text",onChange:function(e){return o("title",e.target.value)}}))),d.a.createElement(w.FormGroup,{controlId:"aggregationAttribute"},d.a.createElement(w.Col,{componentClass:w.ControlLabel,sm:6},d.a.createElement(v.default,{msgId:"widgets.description"})),d.a.createElement(w.Col,{sm:6},d.a.createElement(w.FormControl,{value:n.description,type:"text",onChange:function(e){return o("description",e.target.value)}}))))))},wD=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),xD=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),_D=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),OD=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),SD=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),jD=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js");function ED(){return(ED=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"":t;return 0!==n.indexOf("gml:")})).length}))(UI),kD=VI(bD),AD=Object(F.compose)(xD.a,_D.a,OD.a,wD.a,CD,jD.a,SD.a)(II.a),PD=MI(II.a),MD={width:430,height:200},ID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.hasAggregateProcess;return e.aggregationAttribute&&e.groupByAttributes&&(!n||n&&e.aggregateFunction)},DD=AI(kI),ND=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,o=e.dependencies,i=void 0===o?{}:o,a=e.setValid,s=void 0===a?function(){}:a,l=e.hasAggregateProcess;return ID(n.options,{hasAggregateProcess:l})?d.a.createElement(AD,ED({key:"preview-chart",onLoad:function(){return s(!0)},onLoadError:function(){return s(!1)},isAnimationActive:!1,dependencies:i,dependenciesMap:n.dependenciesMap},MD,{type:n.type,xAxisOpts:n.xAxisOpts,yAxisOpts:n.yAxisOpts,formula:n.formula,legend:n.legend,cartesian:n.cartesian,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,autoColorOptions:n.autoColorOptions,options:n.options,yAxis:n.yAxis,xAxisAngle:n.xAxisAngle,yAxisLabel:n.yAxisLabel})):d.a.createElement(PD,ED({hasAggregateProcess:l,key:"sample-chart",isAnimationActive:!1},MD,{type:n.type,autoColorOptions:n.autoColorOptions,legend:n.legend,cartesian:n.cartesian,yAxis:n.yAxis}))},RD=Object(F.compose)(Object(F.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!ID(n.options,{hasAggregateProcess:a})&&i(!1)}}),Object(F.setDisplayName)("ChartWizard"))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.setValid,l=void 0===s?function(){}:s,u=e.data,c=void 0===u?{}:u,p=e.layer,f=void 0===p?{}:p,h=e.step,m=void 0===h?0:h,g=e.types,y=e.featureTypeProperties,b=e.dependencies,v=e.hasAggregateProcess;return d.a.createElement(DD,{step:m,setPage:a,onFinish:o,isStepValid:function(e){return 0===e?c.chartType:1!==e||ID(c.options,{hasAggregateProcess:v})},hideButtons:!0},d.a.createElement(TD,{key:"type",featureTypeProperties:y,type:c.type,onSelect:function(e){n("type",e)}}),d.a.createElement(kD,{hasAggregateProcess:v,dependencies:b,key:"chart-options",featureTypeProperties:y,types:g,data:c,onChange:n,layer:c.layer||f,sampleChart:ND({hasAggregateProcess:v,data:c,layer:c.layer||f,dependencies:b,setValid:function(e){return l(e&&ID(c.options,{hasAggregateProcess:v}))}})}),d.a.createElement(vD,{key:"widget-options",data:c,onChange:n,layer:c.layer||f,sampleChart:ND({hasAggregateProcess:v,data:c,layer:c.layer||f,dependencies:b,setValid:function(e){return l(e&&ID(c.options,{hasAggregateProcess:v}))}})}))}));function LD(e){return function(e){if(Array.isArray(e))return FD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return FD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FD(e,t)}(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 FD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=e.selected,r=e.stepButtons,o=void 0===r?[]:r,i=e.onProceed,a=void 0===i?function(){}:i;return d.a.createElement(Uo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[].concat(LD(o),[{onClick:a,disabled:!t,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",visible:n,glyph:"arrow-right"}])})},BD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.children;return d.a.createElement("div",{className:"mapstore-flex-container"},d.a.createElement("div",{className:"m-header bg-body widgets-builder-header"},d.a.createElement(w.Row,null,d.a.createElement(w.Col,{md:12,className:"text-center",style:{overflow:"hidden",lineHeight:"52px"}},d.a.createElement(Ne.a,{onClick:function(){return n()},className:"pull-left on-close-btn square-button no-border "},d.a.createElement(w.Glyphicon,{glyph:"1-close"})),d.a.createElement("span",{style:{padding:"50px 0 0 0",fontSize:16}},d.a.createElement(v.default,{msgId:"widgets.builder.header.title"})),d.a.createElement("div",{style:{display:"flex"},className:"square-button pull-right no-border"},d.a.createElement(w.Glyphicon,{glyph:"stats",className:"text-primary"})))),d.a.createElement(w.Row,{className:"text-center"},d.a.createElement("div",{className:"m-padding-md"},r))))},qD=BD;function UD(e){return(UD="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 GD(e){return function(e){if(Array.isArray(e))return HD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return HD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HD(e,t)}(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 HD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function XD(e){var t=function(e,t){if("object"!==UD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==UD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===UD(t)?t:String(t)}var ZD=n("./node_modules/rxjs/Rx.js"),QD=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.dataProp,i=void 0===o?"items":o,a=r.initialStreamDebounce,s=void 0===a?0:a,l=r.throttleTime,u=void 0===l?500:l;return e.take(1).concat(e.debounceTime(s)).switchMap((function(e){return n(e,0).startWith({loading:!0}).concat(ZD.Observable.of({loading:!1})).concat(t.throttleTime(u).distinct().exhaustMap((function(t){return n(e,t).startWith({loading:!0}).concat(ZD.Observable.of({loading:!1}))}))).scan((function(e,t){var n=e[i],r=KD(e,[i].map(XD)),o=t[i],a=KD(t,[i].map(XD));return WD(WD(YD({},i,o?[].concat(GD(n||[]),GD(o)):n||[]),r),a)})).map((function(e){return WD({},e)}))})).catch((function(e){return ZD.Observable.of({loading:!1,error:e})}))},$D=n("./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js"),JD=function(e){var t=e.loadPage,n=e.scrollSpyOptions,r=e.loadStreamOptions,o=e.loadMoreStreamOptions,i=e.hasMore,a=e.isScrolled;return Object(F.compose)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return ZD.Observable.empty()},t=arguments.length>1?arguments[1]:void 0;return Object(F.mapPropsStream)((function(n){var r=Object(F.createEventHandler)(),o=r.handler,i=r.stream,a=Object(F.createEventHandler)(),s=a.handler,l=a.stream;return n.combineLatest(QD(l,i,e,t).startWith({}),(function(e,t){return WD(WD(WD({},e),t),{},{onLoadMore:o,loadFirst:s})}))}))}(t,o),Object(F.defaultProps)({hasMore:i,isScrolled:a}),Object($D.a)(n,r))},eN=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),tN=n("./MapStore2/web/client/components/misc/FitIcon.jsx"),nN=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),rN=Object(PS.a)(["placeholder","clearValueText","noResultsText"])(n("./node_modules/react-select/dist/react-select.es.js").default),oN=function(e){var t=e.isValidServiceSelected,n=e.services,r=e.selectedService,o=e.onChangeCatalogMode,i=void 0===o?function(){}:o,a=e.onChangeSelectedService,s=void 0===a?function(){}:a;return d.a.createElement(w.InputGroup,null,d.a.createElement(rN,{clearValueText:"catalog.clearValueText",noResultsText:"catalog.noResultsText",clearable:!0,options:n,value:r,onChange:function(e){return s(e&&e.value?e.value:"")},placeholder:"catalog.servicePlaceholder"}),t?d.a.createElement(w.InputGroup.Addon,{className:"btn",onClick:function(){return i("edit",!1)}},d.a.createElement(w.Glyphicon,{glyph:"pencil"})):null,d.a.createElement(w.InputGroup.Addon,{className:"btn",onClick:function(){return i("edit",!0)}},d.a.createElement(w.Glyphicon,{glyph:"plus"})))},iN=Object(PS.a)("placeholder")(w.FormControl),aN=function(e){var t=e.onSearchTextChange,n=void 0===t?function(){}:t,r=e.searchText,o=e.title,i=void 0===o?d.a.createElement(v.default,{msgId:"catalog.title"}):o,a=e.catalog,s=e.services,l=e.isValidServiceSelected,u=e.showCatalogSelector;return d.a.createElement(w.Grid,{className:"catalog-form",fluid:!0},d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:12},d.a.createElement("h4",{className:"text-center"},i),u?d.a.createElement(w.FormGroup,null,d.a.createElement(oN,{servieces:s,catalog:a,isValidServiceSelected:l})):null,d.a.createElement(w.FormGroup,{controlId:"catalog-form"},d.a.createElement(iN,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function sN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lN(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{title:e.title&&Object(le.isObject)(e.title)&&e.title.default||e.title,caption:e.identifier,description:e.description,preview:e.thumbnail?d.a.createElement("img",{src:"thumbnail"}):dN,record:e}})),total:r&&r.numberOfRecordsMatched}},hN={querySelector:".ms2-border-layout-body",pageSize:10},mN=Object(F.compose)(Object(eN.a)("searchText","setSearchText",""),JD({loadPage:function(e){var t=e.text,n=e.catalog,r=void 0===n?{}:n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ut.a.Observable.fromPromise(cN[r.type].textSearch(r.url,10*o+("csw"===r.type?1:0),10,t)).map((function(e){return{result:e,records:Object(VM.e)(r.type,e||[],{url:r&&r.url,service:r})}})).map(fN)},scrollSpyOptions:hN}),Object(F.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.catalog,r=t.loadFirst,o=void 0===r?function(){}:r;return e.debounceTime(500).startWith({searchText:"",catalog:n}).distinctUntilKeyChanged("searchText").do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.catalog;return o({text:t,catalog:n})})).ignoreElements()})))})))((function(e){var t=e.setSearchText,n=void 0===t?function(){}:t,r=e.selected,o=e.onRecordSelected,i=e.loading,a=e.searchText,s=e.items,l=void 0===s?[]:s,u=e.total,c=e.catalog,p=e.services,f=e.title,h=e.showCatalogSelector,m=e.error;return d.a.createElement(qo.a,{className:"compat-catalog",header:d.a.createElement(aN,{services:p||[c],showCatalogSelector:h,title:f,searchText:a,onSearchTextChange:n}),footer:d.a.createElement("div",{className:"catalog-footer"},d.a.createElement("span",null,i?d.a.createElement(nN.a,null):null),Object(le.isNil)(u)?null:d.a.createElement("span",{className:"res-info"},d.a.createElement(v.default,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:l.length,total:u}})))},d.a.createElement(pN,{items:l.map((function(e){return e===r||r&&e&&e.record&&r.identifier===e.record.identifier?lN(lN({},e),{},{selected:!0}):e})),loading:i,error:m,onItemClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.record;return o(t,c)}}))})),gN=Object(F.defaultProps)({title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.selectALayer"})})(mN),yN=Object(F.compose)(Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.catalog;return!t}),Object(h.connect)(Object(L.a)(de.q,(function(e){return{catalog:e}})))))(gN),bN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onLayerChoice,a=void 0===i?function(){}:i,s=e.stepButtons,l=e.selected,u=e.error,c=e.canProceed,p=e.layer,f=e.catalog,h=e.catalogServices;return d.a.createElement(qo.a,{className:"bg-body layer-selector",header:d.a.createElement(qD,{onClose:n},d.a.createElement(zD,{stepButtons:s,canProceed:c,onProceed:function(){return a(p)}}),l&&!c&&u?d.a.createElement(lj.a,{trigger:!1,glyph:"warning-sign",bsStyle:"warning",title:d.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:d.a.createElement(NT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},d.a.createElement(yN,{services:h,selected:l,catalog:f,onRecordSelected:function(e){return o(e)}}))};function vN(e){return function(e){if(Array.isArray(e))return wN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wN(e,t)}(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 wN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function SN(){return(SN=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EN=Object(h.connect)(bI,{setPage:ue.Q,setValid:function(e){return Object(ue.C)("valid",e)},onEditorChange:ue.O,insertWidget:ue.M},yI)(Object(F.compose)(UM({needWPS:!1}),Object(F.renameProps)({editorData:"data",onEditorChange:"onChange"}))(RD)),CN=Object(F.compose)(Object(h.connect)(bI,{openFilterEditor:ue.P,setPage:ue.Q,onChange:ue.O,insertWidget:ue.M},yI),eI,lI(),pI((function(e){return 1===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.valid,a=e.setPage,s=void 0===a?function(){}:a,l=e.onFinish,u=void 0===l?function(){}:l,c=e.stepButtons,p=void 0===c?[]:c,f=e.openFilterEditor,h=void 0===f?function(){}:f;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return s(Math.max(0,n-1))},visible:n>0,glyph:"arrow-left",tooltipId:xN(n)}].concat(vN(p),[{visible:n>0,onClick:h,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return s(Math.min(n+1,2))},visible:!(1!==n),disabled:1===n&&!i,glyph:"arrow-right",tooltipId:_N(n)},{onClick:function(){return u(Math.min(n+1,1))},visible:2===n,glyph:"floppy-disk",tooltipId:ON(n,o)}])})})),TN=Object(F.compose)(Object(h.connect)(bI),tI,Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(F.renderComponent)(QM(bN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.exitButton,i=e.editorData,a=e.toggleConnection,s=e.availableDependencies,l=void 0===s?[]:s,u=e.dependencies,c=jN(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return d.a.createElement("div",{className:"mapstore-chart-advance-options"},d.a.createElement(qo.a,{header:d.a.createElement(qD,{onClose:r},d.a.createElement(CN,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?d.a.createElement(EN,SN({dependencies:u},c)):null))}));function kN(e){return function(e){if(Array.isArray(e))return AN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return AN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AN(e,t)}(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 AN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},MN=Object(PS.a)("placeholder")(w.FormControl),IN=Object(PS.a)("placeholder")(x_.a),DN=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,o=void 0===r?function(){}:r;return d.a.createElement("div",null,d.a.createElement(w.Col,{key:"form",xs:12},d.a.createElement(w.Form,null,d.a.createElement(w.FormGroup,{controlId:"title"},d.a.createElement(w.Col,{sm:12},d.a.createElement(MN,{style:{marginBottom:10},placeholder:"widgets.builder.wizard.titlePlaceholder",value:n.title,type:"text",onChange:function(e){return o("title",e.target.value)}}))))),d.a.createElement(IN,{modules:{toolbar:[[{size:["small",!1,"large","huge"]},"bold","italic","underline","blockquote"],[{list:"bullet"},{align:[]}],[{color:[]},{background:[]},"clean"],["image","link"]]},placeholder:"widgets.builder.wizard.textPlaceholder",value:n&&n.text||"",onChange:function(e){return o("text",e)}}))},NN=AI(kI),RN=Object(F.compose)(Object(h.connect)(bI,{setPage:ue.Q,insertWidget:ue.M,onResetChange:ue.O},yI),Object(F.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),lI())((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.onFinish,l=void 0===s?function(){}:s;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat(kN(a),[{onClick:function(){return l(Math.min(n+1,1))},visible:0===n,glyph:"floppy-disk",tooltipId:PN(n,o)}])})})),LN=Object(h.connect)(bI,{onChange:ue.O},yI)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.editorData,c=void 0===u?{}:u;return d.a.createElement(NN,{step:l,setPage:a,onFinish:o,hideButtons:!0},d.a.createElement(DN,{key:"widget-options",data:c,onChange:n}))})),FN=n("./node_modules/react-data-grid/index.js"),zN=n.n(FN);function BN(e){return function(e){if(Array.isArray(e))return qN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}(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 qN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes,n=void 0===t?[]:t,r=e.options,o=void 0===r?{}:r;return{attributes:n.filter((function(e){return!Object(LM.isGeometryType)(e)})).map((function(e){return GN(GN({},e),{},{label:e.name,attribute:e.name,hide:o.propertyName&&o.propertyName.indexOf(e.name)<0})}))}})),PI((function(e){var t=e.attributes;return 0===(void 0===t?[]:t).length})),Object(F.withHandlers)({onChange:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.options,o=void 0===r?{}:r;return function(e,t){return n("options.propertyName",function(e,t,n){var r=Object(le.castArray)(t);return n?e.filter((function(e){return!Object(le.includes)(r,e)})):Object(le.uniq)([].concat(VN(e),VN(r)))}(o&&o.propertyName||[],e,t))}}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,o=void 0===r?"featuregrid.columns":r,i=e.onChange,a=void 0===i?function(){}:i,s=e.attributes,l=void 0===s?[]:s;return d.a.createElement("div",{className:"bg-body data-attribute-selector",style:n},d.a.createElement("h4",{className:"text-center"},d.a.createElement("strong",null,d.a.createElement(v.default,{msgId:o}))),d.a.createElement(zN.a,{rowKey:"id",columns:[{name:"",key:"attribute"}],rowGetter:function(e){return l[e]},rowsCount:l.length,rowSelection:{showCheckbox:!0,enableShiftSelect:!0,onRowsSelected:function(e){return a(e.map((function(e){return l[e.rowIdx].name})),!1)},onRowsDeselected:function(e){return a(e.map((function(e){return l[e.rowIdx].name})),!0)},selectBy:{indexes:l.reduce((function(e,t,n){return[].concat(BN(e),BN(t.hide?[]:[n]))}),[])}}}))})),KN=function(e){var t=e.data,n=void 0===t?{options:{}}:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.featureTypeProperties,a=e.sampleChart;return d.a.createElement(w.Row,null,d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.configureTableOptions"})}),d.a.createElement(w.Col,{xs:12},d.a.createElement("div",null,a)),d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Form,{className:"chart-options-form",horizontal:!0},d.a.createElement(YN,{options:n.options,onChange:o,attributes:i}),n.options&&n.options.columnSettings?d.a.createElement(Ne.a,{style:{float:"right"},onClick:function(){return o("options.columnSettings",void 0)}},d.a.createElement(v.default,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))},XN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.aggregateFunction&&e.aggregationAttribute&&e.groupByAttributes},ZN=AI(kI),QN=Object(F.compose)(Object(F.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o;r&&!XN(n.options)&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.data,l=void 0===s?{}:s,u=e.layer,c=void 0===u?{}:u,p=e.step,f=void 0===p?0:p,h=e.types,m=e.featureTypeProperties,g=e.dependencies;return d.a.createElement(ZN,{step:f,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||XN(l.options)},hideButtons:!0},d.a.createElement(KN,{dependencies:g,key:"chart-options",featureTypeProperties:m,types:h,data:l,onChange:n,layer:l.layer||c}),d.a.createElement(vD,{key:"widget-options",data:l,onChange:n,layer:l.layer||c}))}));function $N(e){return function(e){if(Array.isArray(e))return JN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return JN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JN(e,t)}(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 JN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function oR(){return(oR=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var aR=Object(h.connect)(bI,{setPage:ue.Q,setValid:function(e){return Object(ue.C)("valid",e)},onEditorChange:ue.O,insertWidget:ue.M},yI)(Object(F.compose)(UM(),Object(F.renameProps)({editorData:"data",onEditorChange:"onChange"}),Object(F.mapPropsStream)((function(e){return e.merge(e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.featureTypeProperties;return t===r})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.data,a=void 0===i?{}:i;o&&n.length>0&&!Object(le.get)(a,"options.propertyName")&&o("options.propertyName",n.filter((function(e){return!Object(LM.isGeometryType)(e)})).map((function(e){return e.name})))})).ignoreElements())})))(QN)),sR=Object(F.compose)(Object(h.connect)(bI,{openFilterEditor:ue.P,setPage:ue.Q,onChange:ue.O,insertWidget:ue.M},yI),eI,lI(),pI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openFilterEditor,n=void 0===t?function(){}:t,r=e.step,o=void 0===r?0:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.editorData,l=void 0===s?{}:s,u=e.setPage,c=void 0===u?function(){}:u,p=e.onFinish,f=void 0===p?function(){}:p;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return c(Math.max(0,o-1))},visible:o>0,glyph:"arrow-left",tooltipId:tR(o)}].concat($N(a),[{visible:o>=0,onClick:n,disabled:!eR(l),glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return c(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!eR(l),glyph:"arrow-right",tooltipId:nR(0,eR(l))},{onClick:function(){return f(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:rR(o,l)}])})})),lR=Object(F.compose)(Object(h.connect)(bI),tI,Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(F.renderComponent)(QM(bN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.editorData,i=void 0===o?{}:o,a=e.exitButton,s=e.toggleConnection,l=e.availableDependencies,u=void 0===l?[]:l,c=e.dependencies,p=iR(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return d.a.createElement(qo.a,{header:d.a.createElement(qD,{onClose:r},d.a.createElement(sR,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(le.get)(i,"options.propertyName.length")?d.a.createElement(lj.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:d.a.createElement(v.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?d.a.createElement(aR,oR({editorData:i,dependencies:c},p)):null)})),uR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js");function cR(e){return function(e){if(Array.isArray(e))return dR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(e,t)}(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 dR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},fR=n("./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js"),hR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js"),mR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx"),gR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx"),yR=Object(dO.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t;return!n.layers||0===(n.layers||[]).filter((function(e){return"background"!==e.group})).length}),(function(){return{glyph:"1-layer",title:d.a.createElement(v.default,{msgId:"widgets.selectMap.TOC.noLayerTitle"}),description:d.a.createElement(v.default,{msgId:"widgets.selectMap.TOC.noLayerDescription"})}}))(gR.a),bR=Object(hR.a)(mR.a),vR=Object(F.compose)(hR.a,Object(F.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),Object(fR.a)("title"))(DI),wR=function(e){var t=e.preview,n=e.map,r=void 0===n?{}:n,o=e.onChange,i=void 0===o?function(){}:o,a=e.selectedNodes,s=void 0===a?[]:a,l=e.onNodeSelect,u=void 0===l?function(){}:l,c=e.editNode,p=e.closeNodeEditor,f=void 0===p?function(){}:p,h=e.isLocalizedLayerStylesEnabled;return d.a.createElement("div",null,d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.configureMapOptions"})}),d.a.createElement("div",{key:"sample",style:{marginTop:10}},d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.preview"})}),d.a.createElement("div",{style:{width:"100%",height:"200px"}},t)),c?[d.a.createElement(vR,{map:r,editNode:c}),d.a.createElement(bR,{closeNodeEditor:f,editNode:c,map:r,onChange:i,isLocalizedLayerStylesEnabled:h})]:[d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"layers"})}),d.a.createElement(yR,{selectedNodes:s,onSelect:u,onChange:i,map:r})])},xR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx"),_R=AI(kI),OR=Object(F.compose)(Object(h.connect)(Object(L.a)(kP.q,(function(e){return{widgetSelectionActive:e}}))),Object(TS.a)((function(e){return e.widgetSelectionActive}),(function(){return d.a.createElement("div",{style:{margin:"auto"}},d.a.createElement(v.default,{msgId:"widgets.builder.wizard.selectMapToConnect"}))}),{alwaysWrap:!0})),SR=Object(h.connect)(Object(L.a)(kP.i,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editNode;return{editNode:t}})),{setEditNode:function(e){return Object(ue.C)("editNode",e)},closeNodeEditor:function(){return Object(ue.C)("editNode",void 0)}});function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ER(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return o(n.filter((function(t){return!Object(le.find)(Object(le.castArray)(e),(function(e){return e===t.id}))})))}}})),PR=Object(F.withHandlers)({onRemoveSelected:function(e){var t=e.selectedLayers,n=void 0===t?[]:t,r=e.removeLayersById,o=void 0===r?function(){}:r,i=e.onNodeSelect,a=void 0===i?function(){}:i;return function(){o(n),n.forEach((function(e){return a(e,"layer",!1)}))}}});function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IR(e){for(var t=1;t0?t.reduce((function(e,t){return e.crs===t.crs?e:{crs:"differentCRS"}})):{crs:"differentCRS"},i=!!Object(le.head)(t)&&"differentCRS"!==r.crs&&r.crs;return i&&Ce.a.defs(i)}},zoomTo:function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.setMap,o=void 0===r?function(){}:r;return function(e){var t=n.map,r=n.map.layers,i=e.map((function(e){return r.find((function(t){return t.id===e}))})).filter((function(e){return e})).filter((function(e){return e.bbox})).map((function(e){return e.bbox})),a=i.length>1?i.reduce((function(e,t){return{bounds:{maxx:e.bounds.maxx>t.bounds.maxx?e.bounds.maxx:t.bounds.maxx,maxy:e.bounds.maxy>t.bounds.maxy?e.bounds.maxy:t.bounds.maxy,minx:e.bounds.minx=180&&l[3]>=90)s=1;else{var d=Yo.default.reprojectBbox(l,a.crs,t.projection||"EPSG:4326");s=ne.default.getZoomForExtent(d,t.size,0,21,null)}var p={minx:u[0],miny:u[1],maxx:u[2],maxy:u[3]},f=IR(IR({},t.bbox),{},{bounds:p});o(IR(IR({},n.map),{},{center:c,zoom:s,bbox:f,mapStateSource:"tool"}))}}}}),Object(F.withProps)((function(e){var t=e.isEpsgSupported;return{epsgSupported:(void 0===t?function(){}:t)()}}))),RR=Object(F.compose)(Object(F.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),Object(F.withProps)((function(e){var t=e.editorData;return{canConnect:!0,connected:!!(void 0===t?{}:t).mapSync}})),$M({center:"center",zoom:"zoom",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),LR=Object(F.compose)(Object(h.connect)(bI,{setPage:ue.Q,onChange:ue.O,insertWidget:ue.M},yI),AR,SR,PR,NR,Object(F.branch)((function(e){return!!e.editNode}),Object(F.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.setEditNode,o=void 0===r?function(){}:r;return{buttons:[{visible:1===n.length,tooltipId:"close",glyph:"1-close",onClick:function(){return o(!1)}}]}})),Object(F.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.epsgSupported,o=void 0!==r&&r,i=e.onRemoveSelected,a=void 0===i?function(){}:i,s=e.setEditNode,l=void 0===s?function(){}:s,u=e.zoomTo,c=void 0===u?function(){}:u;return{tocButtons:[{visible:n.length>0,glyph:"zoom-to",tooltipId:1===n.length?"toc.toolZoomToLayerTooltip":"toc.toolZoomToLayersTooltip",disabled:!o,onClick:o?function(){return c(n)}:function(){}},{visible:1===n.length,glyph:"wrench",tooltipId:"toc.toolLayerSettingsTooltip",onClick:function(){return l(n[0])}},{onClick:function(){return a()},visible:n.length>0,glyph:"trash",tooltipId:"toc.toolTrashLayerTooltip"}]}}))),RR,lI(void 0,{tooltipId:"widgets.builder.wizard.backToMapSelection"}),pI((function(e){return 0===e.step}))),FR=Object(F.compose)(Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.catalog;return!t}),Object(h.connect)(Object(L.a)(de.q,(function(e){return{catalog:e}})))))(gN),zR=n("./MapStore2/web/client/api/persistence/index.js");function BR(e){return function(e){if(Array.isArray(e))return qR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qR(e,t)}(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 qR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HR(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id,title:e.name,description:e.description,preview:e.thumbnail?d.a.createElement("img",{src:decodeURIComponent(e.thumbnail)}):XR,map:e}})),total:n}},QR=function(e){var t=e.text,n=void 0===t?"*":t,r=e.options,o=void 0===r?{}:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(zR.e)({category:"MAP",query:n,options:HR({params:{start:10*i,limit:10}},o)}).map(ZR).catch((function(e){return Ut.a.Observable.of({error:e,items:[],total:0})}))},$R={querySelector:".ms2-border-layout-body",pageSize:10},JR=function(e){return function(t,n){return 0===n&&t&&!t.text?e(t,n).map((function(e){var t=e.items,n=e.total;return HR(HR({},UR(e,["items","total"])),{},{total:n,items:[{id:"EMPTY_MAP",title:d.a.createElement(v.default,{msgId:"widgets.selectMap.emptyMap.title"}),description:d.a.createElement(v.default,{msgId:"widgets.selectMap.emptyMap.description"}),preview:XR,map:{id:"new.json"}}].concat(BR(t))})})):e(t,n)}},eL=Object(F.compose)(JD((YR=(WR={loadPage:QR,scrollSpyOptions:$R,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items,r=void 0===n?[]:n;return t>r.length}}).loadPage,KR=WR.scrollSpyOptions,HR(HR({},UR(WR,["loadPage","scrollSpyOptions"])),{},{scrollSpyOptions:HR({skip:1},KR),loadPage:JR(YR),hasMore:function(e){var t=e.total,n=e.items;return n&&n.length>=1&&"EMPTY_MAP"===n[0].id?t>n.length+1:t>n.length}}))),Object(F.withProps)((function(e){var t=e.items;return{skip:t&&t[0]&&"EMPTY_MAP"===t[0].id?1:0}}))),tL=Object(eN.a)("searchText","setSearchText",""),nL=(JD({loadPage:QR,scrollSpyOptions:$R,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items,r=void 0===n?[]:n;return t>r.length}}),Object(F.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.loadFirst,r=void 0===n?function(){}:n;return e.debounceTime(500).startWith({searchText:""}).distinctUntilKeyChanged("searchText",(function(e,t){return e===t})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.options;return r({text:t,options:n})})).ignoreElements()})))}))),rL=Object(F.compose)(tL,eL,nL),oL=Object(PS.a)("placeholder")(w.FormControl),iL=function(e){var t=e.onSearchTextChange,n=void 0===t?function(){}:t,r=e.searchText,o=e.title;return d.a.createElement(w.Grid,{className:"catalog-form",fluid:!0},d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:12},o&&d.a.createElement("h4",{className:"text-center"},o),d.a.createElement(w.FormGroup,{controlId:"catalog-form"},d.a.createElement(oL,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function aL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sL(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapSelected,n=void 0===t?function(){}:t,r=e.selectedSource,o=void 0===r?{}:r,i=e.includeMapId,a=void 0!==i&&i;return function(e){return("string"==typeof e.id?kt.a.get(e.id).then((function(e){return e.data})):cL.a.getData(e.id,{baseURL:o.baseURL})).then((function(t){var n=t.version||"string"==typeof e.id?jt.default.normalizeConfig(t.map):jt.default.convertFromLegacy(t);return pL(pL(pL({},n&&n.map||{}),a?{id:e.id}:{}),{},{groups:n&&n.groups||[],layers:Object(te.excludeGoogleBackground)(n.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e})))})})).then((function(e){return e.layers=e.sources?e.layers.map((function(t){var n=Object(te.extractTileMatrixFromSources)(e.sources,t);return pL(pL({},t),n)})):e.layers,n({map:e})}))}}}),Object(F.mapPropsStream)((function(e){return e.distinctUntilKeyChanged("selected").filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected;return t})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed,n=arguments.length>1?arguments[1]:void 0;return pL({canProceed:t},n)}))})));function mL(e){return function(e){if(Array.isArray(e))return gL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gL(e,t)}(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 gL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?d.a.createElement(nN.a,null):null),Object(le.isNil)(h)?null:d.a.createElement("span",{className:"res-info"},d.a.createElement(v.default,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:c.length-i,total:h}})))},d.a.createElement(uL,{loaderProps:f,items:c.map((function(e){return e===r||r&&e&&e.map&&r.id===e.map.id?sL(sL({},e),{},{selected:!0}):e})),loading:s,onItemClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map;return a(t)}}))})),bL=hL((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onMapChoice,a=void 0===i?function(){}:i,s=e.stepButtons,l=void 0===s?[]:s,u=e.selected;return d.a.createElement(qo.a,{className:"bg-body layer-selector",header:d.a.createElement(BD,{onClose:n},d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat(mL(l),[{tooltipId:"widgets.builder.wizard.useThisMap",onClick:function(){return a(u)},visible:!0,disabled:!u,glyph:"arrow-right"}])}))},d.a.createElement(yL,{title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.selectAMap"}),selected:u,onSelected:function(e){return o(e)}}))})),vL=Object(F.compose)(Object(h.connect)((function(){return{}}),{onMapSelected:function(e){var t=e.map;return Object(ue.O)("map",Object(te.normalizeMap)(t))},onResetChange:ue.O}),Object(F.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("map",void 0),n("widgetType",void 0)}}]}})))(bL),wL=LR((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.buttons,o=e.tocButtons,i=void 0===o?[]:o,a=e.stepButtons,s=void 0===a?[]:a,l=e.editorData,u=void 0===l?{}:l,c=e.setPage,p=void 0===c?function(){}:c,f=e.onFinish,h=void 0===f?function(){}:f,m=e.toggleLayerSelector,g=void 0===m?function(){}:m;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:r||[].concat(cR(0===n?i:[]),[{onClick:function(){return p(Math.max(n-1,0))},visible:1===n,glyph:"arrow-left",tooltipId:"widgets.builder.wizard.configureMapOptions"}],cR(s),[{onClick:function(){return g(!0)},visible:0===n,glyph:"plus",tooltipId:"widgets.builder.wizard.addLayer"},{onClick:function(){return p(Math.min(n+1,2))},visible:0===n,glyph:"arrow-right",tooltipId:"widgets.builder.wizard.configureWidgetOptions"},{onClick:function(){return h(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:pR(n,u)}])})})),xL=Object(F.compose)(Object(h.connect)(bI,{onResetChange:ue.O}),Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorData,n=void 0===t?{}:t;return!n.map}),Object(F.renderComponent)(vL)),Object(F.withState)("layerSelectorOpen","toggleLayerSelector",!1),Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerSelectorOpen,n=void 0!==t&&t;return n}),Object(F.renderComponent)(Object(F.compose)(AR,Object(F.withHandlers)({onLayerChoice:function(e){var t=e.toggleLayerSelector,n=void 0===t?function(){}:t,r=e.addLayer,o=void 0===r?function(){}:r;return function(e){o(e),n(!1)}}}),XM)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,o=void 0===r?function(){}:r,i=e.onLayerChoice,a=void 0===i?function(){}:i,s=e.toggleLayerSelector,l=void 0===s?function(){}:s,u=e.selected,c=e.canProceed,p=e.layer,f=e.catalog,h=e.catalogServices;return d.a.createElement(qo.a,{className:"bg-body layer-selector",header:d.a.createElement(qD,{onClose:n},d.a.createElement(Uo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return l(!1)},tooltipId:"close",glyph:"1-close"},{onClick:function(){return a(p)},disabled:!u||!c,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",glyph:"plus"}]}),u&&!c?d.a.createElement(lj.a,{glyph:"exclamation-mark",bsStyle:"warning",title:d.a.createElement(DT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:d.a.createElement(NT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},d.a.createElement(FR,{services:h,selected:u,catalog:f,onRecordSelected:function(e){return o(e)}}))})))),Object(F.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",onClick:function(){n("map",void 0)}}}}))),_L=Object(h.connect)(bI,{onChange:ue.O},yI)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.selectedNodes,c=void 0===u?[]:u,p=e.onNodeSelect,f=void 0===p?function(){}:p,h=e.editorData,m=void 0===h?{}:h,g=e.editNode,y=e.setEditNode,b=void 0===y?function(){}:y,v=e.closeNodeEditor,w=void 0===v?function(){}:v,x=e.isLocalizedLayerStylesEnabled,_=e.env;return d.a.createElement(_R,{step:l,setPage:a,onFinish:o,hideButtons:!0},d.a.createElement(wR,{editNode:g,setEditNode:b,closeNodeEditor:w,onNodeSelect:f,selectedNodes:c,onChange:n,isLocalizedLayerStylesEnabled:x,preview:d.a.createElement(xR.a,{onChange:n,layers:m.map&&m.map.layers,map:m.map,env:_,options:{style:{margin:10,height:"calc(100% - 20px)"}}}),map:m.map}),d.a.createElement(vD,{key:"widget-options",data:m,onChange:n}))})),OL=Object(F.compose)(xL,Object(F.withProps)((function(e){var t=e.editorData;return{map:(void 0===t?{}:t).map}})),OR,uR.a,SR)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.toggleLayerSelector,i=void 0===o?function(){}:o,a=e.editorData,s=void 0===a?{}:a,l=e.editNode,u=e.setEditNode,c=e.closeNodeEditor,p=e.isLocalizedLayerStylesEnabled,f=e.env,h=e.selectedGroups,m=void 0===h?[]:h,g=e.exitButton,y=e.selectedLayers,b=void 0===y?[]:y,v=e.selectedNodes,w=e.onNodeSelect,x=void 0===w?function(){}:w,_=e.availableDependencies,O=void 0===_?[]:_,S=e.toggleConnection,j=void 0===S?function(){}:S;return d.a.createElement(qo.a,{className:"map-selector",header:d.a.createElement(qD,{onClose:r},d.a.createElement(wL,{exitButton:g,editorData:s,availableDependencies:O,toggleConnection:j,selectedNodes:v,selectedLayers:b,selectedGroups:m,onNodeSelect:x,toggleLayerSelector:i}))},t?d.a.createElement(_L,{setEditNode:u,editNode:l,closeNodeEditor:c,onNodeSelect:x,isLocalizedLayerStylesEnabled:p,env:f,selectedNodes:v}):null)})),SL=Object(F.compose)(Object(F.setDisplayName)("CounterLayerSelector"),ZM,Object(F.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return qt.Observable.forkJoin(Object(MM.a)({layer:e}),RM(e))}(e)}))}}),GM,XM),jL=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),EL=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function CL(){return(CL=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.hasAggregateProcess;return e.aggregateFunction&&e.aggregationAttribute&&n},PL=Object(F.compose)(Object(F.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.valid,n=e.data,r=void 0===n?[]:n,o=e.options,i=void 0===o?{}:o,a=e.setValid,s=void 0===a?function(){}:a,l=e.error,u=e.hasAggregateProcess,c=!Object(le.isNil)(r[0])&&!l;!!t!=!!c&&AL(i,{hasAggregateProcess:u})&&s(c)}})),ML=Object(F.compose)(xD.a,_D.a,OD.a,jL.a,PL,TL,jD.a,SD.a),IL={style:{width:450,height:100}},DL=AI(kI),NL=ML(EL.a),RL=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,o=e.dependencies,i=void 0===o?{}:o,a=e.valid,s=e.setValid,l=void 0===s?function(){}:s,u=e.hasAggregateProcess;return AL(n.options,{hasAggregateProcess:u})?d.a.createElement(NL,CL({hasAggregateProcess:u},IL,{valid:a,dependenciesMap:n.dependenciesMap,dependencies:i,setValid:l,type:n.type,legend:n.legend,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,options:n.options})):d.a.createElement(EL.a,CL({},IL,{data:[{data:42}],options:n.options,series:[{dataKey:"data"}]}))},LL=Object(F.compose)(Object(F.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!AL(n.options,{hasAggregateProcess:a})&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.setValid,l=void 0===s?function(){}:s,u=e.valid,c=e.formOptions,p=e.data,f=void 0===p?{}:p,h=e.layer,m=void 0===h?{}:h,g=e.step,y=void 0===g?0:g,b=e.types,v=e.featureTypeProperties,w=e.dependencies,x=e.hasAggregateProcess;return d.a.createElement(DL,{step:y,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||AL(f.options,{hasAggregateProcess:x})},hideButtons:!0},d.a.createElement(kL,{hasAggregateProcess:x,dependencies:w,key:"chart-options",formOptions:c,featureTypeProperties:v,types:b,data:f,onChange:n,layer:f.layer||m,sampleChart:d.a.createElement(RL,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&AL(f.options,{hasAggregateProcess:x}))}})}),d.a.createElement(vD,{key:"widget-options",data:f,onChange:n,layer:f.layer||m,sampleChart:d.a.createElement(RL,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&AL(f.options,{hasAggregateProcess:x}))}})}))}));function FL(e){return function(e){if(Array.isArray(e))return zL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zL(e,t)}(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 zL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function GL(){return(GL=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var VL=Object(h.connect)(bI,{setPage:ue.Q,setValid:function(e){return Object(ue.C)("valid",e)},onEditorChange:ue.O,insertWidget:ue.M},yI)(Object(F.compose)(UM({needsWPS:!0}),Object(F.renameProps)({editorData:"data",onEditorChange:"onChange"}))(LL)),WL=Object(F.compose)(Object(h.connect)(bI,{openFilterEditor:ue.P,setPage:ue.Q,onChange:ue.O,insertWidget:ue.M},yI),eI,lI(),pI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openFilterEditor,n=void 0===t?function(){}:t,r=e.step,o=void 0===r?0:r,i=e.stepButtons,a=void 0===i?[]:i,s=e.editorData,l=void 0===s?{}:s,u=e.valid,c=e.setPage,p=void 0===c?function(){}:c,f=e.onFinish,h=void 0===f?function(){}:f;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return p(Math.max(0,o-1))},visible:o>0,glyph:"arrow-left",tooltipId:BL(o)}].concat(FL(a),[{visible:0===o,onClick:n,disabled:!u,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return p(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!u,glyph:"arrow-right",tooltipId:qL(o)},{onClick:function(){return h(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:UL(o,l)}])})})),YL=Object(F.compose)(Object(h.connect)(bI),tI,Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(F.renderComponent)(SL(bN))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.exitButton,i=e.editorData,a=e.toggleConnection,s=e.availableDependencies,l=void 0===s?[]:s,u=e.dependencies,c=HL(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return d.a.createElement(qo.a,{header:d.a.createElement(qD,{onClose:r},d.a.createElement(WL,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?d.a.createElement(VL,GL({formOptions:{showColorRamp:!1,showUom:!0,showGroupBy:!1,showLegend:!1},dependencies:u},c)):null)}));function KL(e){return function(e){if(Array.isArray(e))return XL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return XL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XL(e,t)}(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 XL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},eF=n("./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js"),tF=n("./MapStore2/web/client/components/widgets/enhancers/legendWidget.js"),nF=n("./MapStore2/web/client/components/widgets/widget/LegendView.jsx"),rF=AI(kI),oF=Object(F.compose)(tF.a,Object(dO.a)((function(e){return!e.valid}),{title:d.a.createElement(v.default,{msgId:"widgets.builder.errors.noMapAvailableForLegend"}),description:d.a.createElement(v.default,{msgId:"widgets.builder.errors.noMapAvailableForLegendDescription"})}),Object(eF.a)(!1))(nF.a),iF=Object(F.compose)(Object(F.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),Object(F.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.availableDependencies;return{canConnect:(void 0===r?[]:r).length>0,connected:!!n.mapSync}})));function aF(){return(aF=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lF=Object(F.withProps)((function(e){var t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData;return{valid:n.length>0&&r.mapSync}})),uF=Object(L.a)(Z.b,(function(e){return{currentLocale:e}})),cF=Object(F.compose)(Object(h.connect)(bI,{setPage:ue.Q,onEditorChange:ue.O,insertWidget:ue.M},yI),Object(h.connect)(uF),lF,Object(F.renameProps)({editorData:"data",onEditorChange:"onChange"}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,o=void 0===r?function(){}:r,i=e.setPage,a=void 0===i?function(){}:i,s=e.step,l=void 0===s?0:s,u=e.dependencies,c=e.valid,p=e.data,f=void 0===p?{}:p,h=e.currentLocale,m=e.language;return d.a.createElement(rF,{step:l,setPage:a,onFinish:o,hideButtons:!0},d.a.createElement(w.Row,null,d.a.createElement(DI,{title:d.a.createElement(v.default,{msgId:"widgets.builder.wizard.preview"})}),d.a.createElement(w.Col,{xs:12},d.a.createElement("div",{style:{marginBottom:"30px"}},d.a.createElement(oF,{valid:c,dependencies:u,dependenciesMap:f.dependenciesMap,key:"widget-options",onChange:n,currentLocale:h,language:m})))),d.a.createElement(vD,{key:"widget-options",onChange:n}))})),dF=Object(F.compose)(Object(h.connect)(bI,{openFilterEditor:ue.P,setPage:ue.Q,onChange:ue.O,insertWidget:ue.M},yI),iF,lF,Object(h.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(ue.O)("layer",e)},onResetChange:ue.O}),Object(F.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),lI((function(e){return 0===e.step})),pI((function(e){return 0===e.step})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.editorData,o=void 0===r?{}:r,i=e.valid,a=e.stepButtons,s=void 0===a?[]:a,l=e.onFinish,u=void 0===l?function(){}:l,c=e.setPage,p=void 0===c?function(){}:c;return d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return p(Math.max(0,n-1))},visible:n>0,glyph:"arrow-left",tooltipId:ZL(n)}].concat(KL(s),[{onClick:function(){return p(Math.min(n+1,1))},visible:0===n,disabled:0===n&&!$L(o)||!i,glyph:"arrow-right",tooltipId:QL(0,i)},{onClick:function(){return u(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:JL(n,o)}])})})),pF=Object(F.compose)(Object(h.connect)(bI),tI,iF,$M({layers:"layers",zoom:"zoom",viewport:"viewport"}),Object(F.mapPropsStream)((function(e){return e.merge(e.filter((function(e){var t=e.editorData;return!(void 0===t?{}:t).mapSync})).take(1).distinctUntilChanged().do((function(e){var t=e.toggleConnection;return(void 0===t?function(){}:t)(e.availableDependencies)})).ignoreElements())})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.editorData,i=void 0===o?{}:o,a=e.exitButton,s=e.toggleConnection,l=e.availableDependencies,u=void 0===l?[]:l,c=e.dependencies,p=sF(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return d.a.createElement(qo.a,{header:d.a.createElement(qD,{onClose:r},d.a.createElement(dF,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(le.get)(i,"options.propertyName.length")?d.a.createElement(lj.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:d.a.createElement(v.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?d.a.createElement(cF,aF({availableDependencies:u,editorData:i,dependencies:c},p)):null)}));function fF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hF(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wF=Object(L.a)(kP.g,(function(e){return{widgetType:e&&e.widgetType}})),xF={chart:TN,text:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n;return d.a.createElement(qo.a,{header:d.a.createElement(qD,{onClose:r},d.a.createElement(RN,null))},t?d.a.createElement(LN,null):null)},table:lR,map:OL,counter:YL,legend:pF},_F=Object(F.compose)(Object(h.connect)(wF),Object(F.withProps)((function(e){var t=e.typeFilter,n=void 0===t?function(){return!0}:t,r=e.availableDependencies,o=void 0===r?[]:r;return{typeFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(e)&&!("legend"===e.type&&0===o.length)}}})),Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return!t}),Object(F.renderComponent)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,o=e.typeFilter;return d.a.createElement(qo.a,{className:"bg-body",header:d.a.createElement(qD,{onClose:r},d.a.createElement(v.default,{msgId:"widgets.selectWidgetType"}))},t?d.a.createElement(yF,{typeFilter:o}):null)})),(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType,n=e.onClose,r=void 0===n?function(){}:n,o=vF(e,["widgetType","onClose"]),i=xF[t];return d.a.createElement(i,bF({},o,{onClose:r,widgetType:t}))}})))();function OF(e){return(OF="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 SF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jF(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"map"!==t&&"legend"!==t}}))}}])&&jF(t.prototype,n),r&&jF(t,r),i}(d.a.Component);MF(DF,"propTypes",{id:f.a.string,enabled:f.a.bool,limitDockHeight:f.a.bool,fluid:f.a.bool,zIndex:f.a.number,dockSize:f.a.number,position:f.a.string,onMount:f.a.func,onUnmount:f.a.func,onClose:f.a.func,dimMode:f.a.string,src:f.a.string,style:f.a.object,layout:f.a.object}),MF(DF,"defaultProps",{id:"widgets-builder-plugin",enabled:!1,dockSize:500,limitDockHeight:!0,zIndex:1e4,fluid:!1,dimMode:"none",position:"left",onMount:function(){},onUnmount:function(){},onClose:function(){},layout:{}});var NF=Object(h.connect)(Object(L.a)(Q.l,(function(e){return Object(Wn.c)(e,{height:!0})}),(function(e,t){return{enabled:e,layout:t}})),{onMount:function(){return Object(x.g)("widgetBuilder","available",!0)},onUnmount:function(){return Object(x.g)("widgetBuilder","available",!1)},onClose:x.g.bind(null,"widgetBuilder","enabled",!1,!1)})(DF),RF=Object(O.d)("WidgetsBuilder",{component:NF,epics:TM,containers:{TOC:{doNotHide:!0,name:"WidgetBuilder"}}});function LF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FF(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(le.sortBy)(e.filter(BF).map((function(e){return Object(le.findIndex)(t,(function(t){return t===e.id}))>=0?FF(FF({},e),{},{collapsed:!0}):e})),(function(e){var t=r[e.id]&&r[e.id].layout,o=Object(le.find)(n,{i:e.id})||t||{},i=o.x,a=void 0===i?0:i,s=o.y;return 100*(void 0===s?0:s)+a}))})),UF=Object(F.compose)(Object(F.defaultProps)({toolsOptions:{seeHidden:"user.role===ADMIN"}}),IP("toolsOptions",{asObject:!0}),Object(F.withProps)((function(e){var t=e.widgets,n=e.toolsOptions;return{widgets:(void 0===n?{seeHidden:!1}:n).seeHidden?t:t.filter((function(e){return!e.hide}))}})));function GF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HF(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType,n=e.type,r=t&&"chart"!==t?t:n;switch(r){case"text":return"sheet";case"table":return"features-grid";case"pie":return"pie-chart";case"line":return"1-line";case"map":return"1-map";case"counter":return"counter";default:return"stats"}},YF=Object(F.compose)(Object(F.withPropsOnChange)(["btnGroupProps"],(function(e){var t=e.btnGroupProps;return{btnGroupProps:HF(HF({},t),{},{className:"widgets-bar"+(t&&t.className?" ".concat(t.className):"")})}})),Object(F.withPropsOnChange)(["widgets","onClick"],(function(e){var t=e.widgets,n=void 0===t?[]:t,r=e.onClick,o=void 0===r?function(){}:r;return{buttons:n.map((function(e){return{glyph:WF(e),tooltip:e.title,className:e.collapsed?"btn-tray":"btn-tray active",onClick:function(){return o(e)}}}))}})))(Uo.a);function KF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XF(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.expanded,n=e.onClick,r=void 0===n?function(){}:n;return d.a.createElement(lz,{tooltipId:t?"widgets.tray.collapseTray":"widgets.tray.expandTray",bsSize:"xsmall",bsStyle:"default",style:{borderColor:"transparent"},onClick:r},d.a.createElement(w.Glyphicon,{glyph:t?"chevron-right":"chevron-left"}))},cz=Object(F.compose)(Object(h.connect)(Object(L.a)(kP.n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{onClick:function(){return Object(ue.S)()}}),UF,Object(F.withProps)((function(e){var t=e.widgets;return{shouldExpand:0===(void 0===t?[]:t).length}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=void 0===t?function(){}:t,r=e.shouldExpand,o=void 0!==r&&r;return d.a.createElement(lz,{tooltipId:o?"widgets.tray.expandAll":"widgets.tray.collapseAll",bsStyle:o?"primary":"success active",bsSize:"xsmall",onClick:n},d.a.createElement(w.Glyphicon,{glyph:"list"}))})),dz=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&&rz(e,t)}(i,e);var t,n,r,o=oz(i);function i(){return tz(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this;return this.props.enabled?d.a.createElement("div",{className:"widgets-tray",style:{marginBottom:32,marginRight:80,bottom:0,right:0,position:"absolute"}},d.a.createElement(qo.a,{columns:[d.a.createElement(uz,{key:"collapse-tray",toolsOptions:this.props.toolsOptions,expanded:this.props.expanded,onClick:function(){return e.props.setExpanded(!e.props.expanded)}}),d.a.createElement(cz,{key:"collapse-all",toolsOptions:this.props.toolsOptions})].concat(JF(this.props.items.map((function(e){return e.tool}))||[]))},this.props.expanded?d.a.createElement(QF,{toolsOptions:this.props.toolsOptions}):null)):null}}])&&nz(t.prototype,n),r&&nz(t,r),i}(d.a.Component);sz(dz,"propTypes",{enabled:f.a.bool,toolsOptions:f.a.object,items:f.a.array,expanded:f.a.bool,setExpanded:f.a.func}),sz(dz,"defaultProps",{enabled:!0,items:[],expanded:!1,setExpanded:function(){}});var pz=Object(F.compose)(Object(F.withState)("expanded","setExpanded",!1),Object(h.connect)(Object(L.a)(qF,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{toggleTray:ue.W}),UF,Object(F.withProps)((function(e){var t=e.widgets,n=void 0===t?[]:t;return{hasCollapsedWidgets:n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collapsed;return t})).length>0,hasTrayWidgets:n.length>0}})),Object(F.lifecycle)({componentDidMount:function(){this.props.toggleTray&&this.props.toggleTray(!0)},componentWillUnmount:function(){this.props.toggleTray&&this.props.toggleTray(!1)}}),Object(F.mapPropsStream)((function(e){return e.merge(e.distinctUntilKeyChanged("hasCollapsedWidgets").do((function(e){var t=e.setExpanded;return(void 0===t?function(){}:t)(e.hasCollapsedWidgets)})).ignoreElements())})),Object(F.withProps)((function(e){var t=e.enabled,n=e.hasTrayWidgets;return{enabled:t&&n}})))(dz),fz=n("./MapStore2/web/client/actions/timeline.js"),hz=n("./MapStore2/web/client/actions/config.js"),mz=n("./MapStore2/web/client/selectors/timeline.js");function gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yz(e){for(var t=1;t0},wz=function(e){return function(t){return t.take(1).switchMap((function(){return Ut.a.Observable.of(Object(H.h)(yz(yz({},e),{},{autoDismiss:8,position:"tr",uid:"timeline-collapsed"})))})).merge(t)}},xz={collapseTimelineOnWidgetsEvents:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return Ut.a.Observable.merge(e.ofType(ue.t,ue.u,hz.d,ue.z,ue.m).filter((function(){return vz(r())&&Object(mz.f)(r())}))).switchMap((function(){return Ut.a.Observable.of(Object(fz.p)(!0))})).let(wz({title:"widgets.tray.notifications.collapsed.timelineTitle",message:"widgets.tray.notifications.collapsed.message"}))},collapseWidgetsOnTimelineEvents:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return Ut.a.Observable.merge(e.ofType(fz.h).filter((function(e){return!e.collapsed})),e.ofType(_.f).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.newProperties,n=void 0===t?{}:t;return n.dimensions}))).filter((function(){return vz(r())&&Object(mz.b)(r())&&Object(mz.f)(r())})).switchMap((function(){return Ut.a.Observable.of(Object(ue.S)())})).let(wz({title:"widgets.tray.notifications.collapsed.widgetsTitle",message:"widgets.tray.notifications.collapsed.message"}))},expandTimelineIfCollapsedOnTrayUnmount:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(ue.e,ue.z,hz.d).filter((function(){return!Object(mz.f)(r())&&Object(mz.b)(r())})).filter((function(){return!vz(r())})).switchMap((function(){return Ut.a.Observable.of(Object(fz.p)(!1))}))}},_z={WidgetsTrayPlugin:DP(pz),epics:xz},Oz=n("./MapStore2/web/client/plugins/Notifications.jsx"),Sz=n("./node_modules/redux/es/index.js"),jz=n("./node_modules/react-dock/lib/index.js"),Ez=n.n(jz),Cz=n("./node_modules/@turf/bbox/index.js"),Tz=n.n(Cz),kz=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),Az=n("./MapStore2/web/client/utils/FeatureGridUtils.js"),Pz=n("./MapStore2/web/client/utils/ogc/WFST/RequestBuilder.js"),Mz=n.n(Pz),Iz=n("./MapStore2/web/client/actions/mapInfo.js"),Dz=n("./MapStore2/web/client/actions/box.js"),Nz=n("./MapStore2/web/client/actions/highlight.js"),Rz=n("./MapStore2/web/client/selectors/featuregrid.js"),Lz=n("./MapStore2/web/client/selectors/queryform.js");function Fz(e){return function(e){if(Array.isArray(e))return zz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zz(e,t)}(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 zz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.page,r=t.size,o=Object(Rz.v)(e),i=void 0!==r?r:o.size;return{startIndex:void 0!==n?n*i:o.page*i,maxFeatures:i}},Hz=function(e,t){return qz(qz({},e),{},{pagination:t})},Vz=function(e,t,n){var r=n.insert,o=n.update,i=n.propertyChange,a=n.getPropertyName;return(0,n.transaction)(t.map((function(e){return r(e)})),Object.keys(e).map((function(t){return Object.keys(e[t]).map((function(n){return o([i(a(n),e[t][n]),Object(kz.fidFilter)("ogc",t)])}))})))},Wz=function(e,t){return Ut.a.Observable.defer((function(){return kt.a.post(e,t,{headers:{"Content-Type":"application/xml"}})})).let(IM.b)},Yz=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featuregrid;return Object(_.I)(t.selectedLayer,{filterObj:void 0})},Kz=function(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.update,o=void 0===r?{}:r,i=n.append,a=Object(Rz.C)(e.getState()),s=a.id,l=qz({},Object(le.get)(e.getState(),'featuregrid.advancedFilters["'.concat(s,'"]')));if(l){var u=Object(Rz.e)(e.getState())||{},c=Object(le.reduce)(u,(function(e,t,n){return Object(Az.m)(qz({attribute:n},t),e)}),{}),d="AND";c.spatialField&&(l.spatialField=void 0,d=c.spatialFieldOperator);var p=Object(zC.composeAttributeFilters)([l,c],"AND",d),f=qz(qz({},l),p);return Object(wM.B)(f,o.type)}var h=o;return i&&null!=o&&o.attribute&&(h=Object(Rz.e)(e.getState())[null==o?void 0:o.attribute]),Object(wM.B)(Object(Az.m)(h,Object(xM.m)(e.getState())),null===(t=h)||void 0===t?void 0:t.type)}},Xz=function(e,t){return e.ofType(_.c).switchMap((function(n){var r,o=n.layer,i=Object(le.get)(t.getState(),"query.typeName");return(r=Ut.a.Observable).of.apply(r,Fz(i!==o.name?[Object(bM.gb)()]:[]).concat([Object(x.g)("drawer","enabled",!1),Object(gM.Db)(o.id),Object(gM.yb)()])).merge(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.url,o=n.name,i=n.id,a=Object(le.get)(t.getState(),'featuregrid.advancedFilters["'.concat(i,'"]')),s=function(){return Object(wM.q)(r,a||{featureTypeName:o,filterType:"OGC",ogcVersion:"1.1.0"})};return Object(xM.f)(t.getState(),o)?Ut.a.Observable.of(s(),Object(wM.u)(r,o)):Ut.a.Observable.of(Object(wM.u)(r,o)).merge(e.ofType(wM.e).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName;return t===o})).map(s))}(e,t,o))}))},Zz=function(e){return e.ofType(wM.h).switchMap((function(e){return Ut.a.Observable.of(Object(gM.Db)(e.id))}))},Qz=function(e,t){return e.ofType(wM.j).switchMap((function(){return Ut.a.Observable.of(Object(gM.bb)(0)).concat(Object(Rz.s)(t.getState())===gM.x.VIEW?Ut.a.Observable.of(Object(gM.Sb)()):Ut.a.Observable.empty())}))},$z=function(e,t){return e.ofType(gM.N).switchMap((function(n){var r=n.sortBy,o=n.sortOrder;return Ut.a.Observable.of(Object(wM.w)(Object(xM.n)(t.getState()),Hz(qz(qz({},Object(xM.m)(t.getState())),{},{sortOptions:{sortBy:r,sortOrder:o}}),Gz(t.getState())),Object(Rz.w)(t.getState()))).merge(e.ofType(wM.l).map((function(e){return Object(gM.qb)(Object(le.get)(e,"result.features",[]),[Object(le.get)(e,"filterObj.pagination.startIndex")])})).takeUntil(e.ofType(wM.k)).take(1))}))},Jz=function(e,t){return e.ofType(gM.z).switchMap((function(){var n,r=null===(n=Object(Rz.v)(t.getState()))||void 0===n?void 0:n.size;return e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled&&!n.value})).switchMap((function(){var n=!1;return e.ofType(gM.Y).filter((function(e){var t=e.update;return"geometry"===(void 0===t?{}:t).type})).switchMap((function(e,r){return 0===r?(n=!0,Ut.a.Observable.from([Object(gM.Eb)(1e5),Object(gM.Cb)([]),Kz(t)(e)])):Ut.a.Observable.of(Kz(t)(e))})).takeUntil(Ut.a.Observable.merge(e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(gM.f,vM.b))).merge(e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})).take(1).switchMap((function(e){return n?Ut.a.Observable.of(Object(gM.Eb)(r),Kz(t)(e)):Ut.a.Observable.of(Kz(t)(e))})).takeUntil(e.ofType(gM.f,vM.b))).merge(e.ofType(gM.f,vM.b).take(1).switchMap((function(){var e,o=Object(gM.Tb)({attribute:null===(e=Object(LM.findGeometryProperty)(Object(xM.b)(t.getState())))||void 0===e?void 0:e.name,enabled:!1,type:"geometry"});return n?Ut.a.Observable.of(Object(gM.Eb)(r),o,Kz(t)(o)):Ut.a.Observable.of(o,Kz(t)(o))})))}))}))},eB=function(e,t){return e.ofType(wM.j).switchMap((function(){return e.ofType(gM.Y).filter((function(e){var t=e.update;return"geometry"!==(void 0===t?{}:t).type})).map(Kz(t))}))},tB=function(e,t){return e.ofType(gM.U).filter((function(){return Object(Rz.s)(t.getState())===gM.x.EDIT})).switchMap((function(){return(Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).value?Ut.a.Observable.empty():Ut.a.Observable.of(Object(gM.Tb)({attribute:Object(LM.findGeometryProperty)(Object(xM.b)(t.getState())).name,enabled:!0,type:"geometry"}))}))},nB=function(e){return e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})).switchMap((function(){return Ut.a.Observable.of(Object(gM.Gb)())}))},rB=function(e,t){return e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return e.ofType(G.i).switchMap((function(e){var n=e.point,r=n.latlng,o=n.pixel,i=n.modifiers,a=i.ctrl,s=i.metaKey,l=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},u=Object(X.o)(t.getState()),c=Yo.default.reproject([r.lng,r.lat],"EPSG:4326",u),d=ne.default.getHook(ne.default.GET_COORDINATES_FROM_PIXEL_HOOK),p=Yo.default.calculateCircleRadiusFromPixel(d,o,c,4);return l.deactivated?Ut.a.Observable.empty():Ut.a.Observable.of(Object(gM.Gb)({multiselect:a||s}),Object(gM.Tb)(qz(qz({},l),{},{value:{attribute:l.attribute||Object(le.get)(Object(Lz.k)(t.getState()),"attribute"),geometry:{center:[c.x,c.y],coordinates:Yo.default.calculateCircleCoordinates(c,p,12),extent:[c.x-p,c.y-p,c.x+p,c.y+p],projection:u,radius:p,type:"Polygon"},method:"Circle",operation:"INTERSECTS"}}),a||s))})).takeUntil(Ut.a.Observable.merge(e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(vM.b)))}))},oB=function(e,t){return e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return e.ofType(Dz.a).switchMap((function(e){var n=e.boxEndInfo,r=n.boxExtent,o=n.modifiers,i=o.ctrl,a=o.metaKey,s=Yo.default.getPolygonFromExtent(r),l=Object(X.o)(t.getState()),u=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return u.deactivated?Ut.a.Observable.empty():Ut.a.Observable.of(Object(gM.Gb)({multiselect:i||a}),Object(gM.Tb)(qz(qz({},u),{},{value:{geometry:qz(qz({},s.geometry),{},{projection:l}),attribute:u.attribute||Object(le.get)(Object(Lz.k)(t.getState()),"attribute"),method:"Rectangle",operation:"INTERSECTS"}}),i||a))})).takeUntil(Ut.a.Observable.merge(e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled}))))}))},iB=function(e){return e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return Ut.a.Observable.of(Object(Dz.d)("start"))}))},aB=function(e){return Ut.a.Observable.merge(e.ofType(gM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(gM.f)).switchMap((function(){return Ut.a.Observable.of(Object(Dz.d)("end"))}))},sB=function(e,t){return e.ofType(wM.l).filter((function(e){return"geometry"===e.reason})).switchMap((function(e){var n=e.result,r=Object(le.get)(n,"features"),o=Object(Rz.t)(t.getState()),i=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}));return Ut.a.Observable.of(Object(gM.Cb)(r.length>0&&i&&i.value?Fz(r):[],o))}))},lB=function(e){return e.ofType(gM.a).flatMap((function(e){var t=e.activated;return Ut.a.Observable.of(Object(gM.pb)(t),Object(gM.kb)(t))}))},uB=function(e,t){return e.ofType(gM.O).flatMap((function(){var e=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Rz.i)(t.getState()),r=Object(Rz.k)(t.getState());return Ut.a.Observable.of(Object(gM.Tb)(qz(qz({},e),{},{type:"geometry",attribute:e.attribute||Object(le.get)(Object(Lz.k)(t.getState()),"attribute"),deactivated:!(!n&&!r)||!e.deactivated})))}))},cB=function(e,t){return Ut.a.Observable.merge(e.ofType(gM.h,yM.d,gM.k,gM.q),e.ofType(gM.j).filter((function(e){return!!e.deactivated}))).flatMap((function(){var e=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return e.deactivated?Ut.a.Observable.empty():Ut.a.Observable.of(Object(gM.Tb)(qz(qz({},e),{},{type:"geometry",attribute:e.attribute||Object(le.get)(Object(Lz.k)(t.getState()),"attribute"),deactivated:!0})))}))},dB=function(e,t){return Ut.a.Observable.merge(e.ofType(gM.C,gM.c),e.ofType(gM.j).filter((function(e){return!e.deactivated}))).flatMap((function(){var e=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Rz.i)(t.getState()),r=Object(Rz.k)(t.getState());return!e.deactivated||n||r?Ut.a.Observable.empty():Ut.a.Observable.of(Object(gM.Tb)(qz(qz({},e),{},{type:"geometry",attribute:e.attribute||Object(le.get)(Object(Lz.k)(t.getState()),"attribute"),deactivated:!1})))}))},pB=function(e,t){return e.ofType(gM.b).merge(e.ofType(wM.p).debounceTime(500).map((function(e){return qz(qz({},e),{},{page:0})}))).switchMap((function(n){return function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.page,r=t.size,o=t.reason,i=e.getState();return Ut.a.Observable.of(Object(wM.w)(Object(xM.n)(i),Hz(qz({},Object(xM.m)(i)),Gz(i,{page:n,size:r})),Object(Rz.w)(i),o))}}(t)(n).merge(e.ofType(wM.l).map((function(e){var n=Object(le.get)(e,"result.features",[]),r=Object(Rz.t)(t.getState()),o=Object(le.find)(Object(Rz.e)(t.getState()),(function(e){return"geometry"===e.type}));return r&&o.enabled&&(n=Object(Rz.z)(t.getState())),Object(gM.qb)(n,[Object(le.get)(e,"filterObj.pagination.startIndex")])})).take(1).takeUntil(e.ofType(wM.k)))}))},fB=function(e,t){return e.ofType(gM.C).switchMap((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.page,o=n.size;return Ut.a.Observable.of(Object(wM.w)(Object(xM.n)(t.getState()),Hz(qz({},Object(xM.m)(t.getState())),Gz(t.getState(),{page:r,size:o})),Object(Rz.w)(t.getState())),Object(_.V)(Object(Rz.A)(t.getState()))).merge(e.ofType(wM.l).map((function(e){return Ut.a.Observable.of(Object(gM.db)(),Object(gM.qb)(Object(le.get)(e,"result.features",[]),[Object(le.get)(e,"filterObj.pagination.startIndex")]))})).mergeAll().takeUntil(e.ofType(wM.k)).take(2))}))},hB=function(e){return e.ofType(gM.C,gM.f).switchMap((function(){return Ut.a.Observable.of(Object(gM.Cb)([]))}))},mB=function(e,t){return e.ofType(gM.A).switchMap((function(){return Ut.a.Observable.of(Object(gM.sb)()).concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return Wz(r,Vz(e,t,Mz()(n)))}(Object(Rz.a)(t.getState()),Object(Rz.u)(t.getState()),Object(xM.b)(t.getState()),Object(xM.n)(t.getState())).map((function(){return Object(gM.Bb)()})).catch((function(e){return Ut.a.Observable.of(Object(gM.Ab)(),Object(H.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError",autoDismiss:5}))})))}))},gB=function(e,t){return e.ofType(gM.m).switchMap((function(){return Ut.a.Observable.of(Object(gM.sb)()).concat((e=Object(Rz.z)(t.getState()),n=Object(xM.b)(t.getState()),r=Object(xM.n)(t.getState()),Wz(r,function(e,t){var n=t.transaction,r=t.deleteFeature;return n(e.map(r))}(e,Mz()(n)))).map((function(){return Object(gM.Bb)()})).catch((function(e){return Ut.a.Observable.of(Object(gM.Ab)(),Object(H.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError"}))})).concat(Ut.a.Observable.of(Object(gM.Rb)("deleteConfirm"),Object(gM.eb)())));var e,n,r}))},yB=function(e,t){return e.ofType(gM.P).switchMap((function(){var e=t.getState(),n=Object(xM.b)(e),r=Object(Az.f)(),o=Object(LM.findGeometryProperty)(n).localType,i={featureProjection:r,stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},a=ie()({},Object(Rz.x)(e),{type:"Feature"}),s=Object(Rz.a)(e);return s[a.id]&&s[a.id]&&s[a.id].geometry&&(a.geometry=s[a.id].geometry),Ut.a.Observable.of(Object(yM.f)("drawOrEdit",o,"featureGrid",[a],i))}))},bB=function(e,t){return e.ofType(gM.O).switchMap((function(){var e=t.getState(),n=Object(xM.b)(e),r=Object(Az.f)(),o=Object(LM.findGeometryProperty)(n).localType,i=ie()({},Object(Rz.x)(e),{type:"Feature"}),a=Object(Rz.a)(e);a[i.id]&&(a[i.id].geometry||null===a[i.id].geometry)&&(i.geometry=a[i.id].geometry),i._new&&(i.geometry=Object(le.head)(Object(Rz.u)(e)).geometry);var s={featureProjection:r,stopAfterDrawing:!0,editEnabled:!Object(Rz.m)(e),drawEnabled:Object(Rz.m)(e)};return Ut.a.Observable.of(Object(yM.f)("drawOrEdit",o,"featureGrid",[i],s))}))},vB=function(e,t){return e.ofType(gM.z).switchMap((function(){return e.ofType(gM.U).filter((function(){return Object(Rz.s)(t.getState())===gM.x.EDIT})).take(1).switchMap((function(){return e.ofType(vM.b,gM.f).take(1).switchMap((function(){return Ut.a.Observable.of(Object(yM.h)())}))}))}))},wB=function(e,t){return e.ofType(gM.z).switchMap((function(){var e=[Object(x.g)("metadataexplorer","enabled",!1),Object(x.g)("annotations","enabled",!1),Object(x.g)("details","enabled",!1)];return Object(Q.h)(t.getState())&&e.push(Object(x.g)("measure","enabled",!1)),Ut.a.Observable.from(e)}))},xB=function(e,t){return e.ofType(yM.d).filter((function(e){return"featureGrid"===e.owner})).switchMap((function(e){var n=t.getState(),r={featureProjection:Object(Az.f)(),stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},o=e.features.map((function(e,t){return ie()({},e,{id:Object(Rz.z)(n)[t].id,_new:Object(Rz.z)(n)[t]._new,type:"Feature"})})),i=ie()({},Object(le.head)(e.features),{id:Object(Rz.x)(n).id,_new:Object(Rz.x)(n)._new,type:"Feature"}),a="enterEditMode"===e.enableEdit?Ut.a.Observable.of(Object(yM.f)("drawOrEdit",i.geometry.type,"featureGrid",o,r)):Ut.a.Observable.empty();return Ut.a.Observable.of(Object(gM.tb)(o)).concat(a)}))},_B=function(e,t){return e.ofType(gM.k).switchMap((function(){var e=t.getState();return Ut.a.Observable.from([Object(gM.nb)(Object(Rz.z)(e)),Object(yM.h)()])}))},OB=function(e,t){return e.ofType(gM.E,gM.n,gM.c,gM.U).filter((function(){return Object(Rz.s)(t.getState())===gM.x.EDIT&&Object(Rz.l)(t.getState())})).switchMap((function(e){return function(e,t){var n=Object(Az.f)(),r=Object(LM.findGeometryProperty)(Object(xM.b)(e)).localType,o={featureProjection:n,stopAfterDrawing:ne.default.isSimpleGeomType(r),editEnabled:!0,drawEnabled:!1},i=Object(Rz.z)(e).map((function(n){var r=ie()({},n,{type:"Feature"});if(!Object(le.isEmpty)(r)){var o=Object(Rz.a)(e);if(o[r.id]&&(o[r.id].geometry||null===o[r.id].geometry)&&(r.geometry=o[r.id].geometry),r._new&&!r.geometry){var i=Object(le.find)(Object(Rz.u)(e),{id:r.id});i&&i.geometry&&(r.geometry=i.geometry)}t&&(r.geometry=Object(xM.e)(e,r.id)?Object(xM.e)(e,r.id).geometry:null)}return r})).filter((function(e){return null!==e.geometry||"empty_row"!==e.id}));return i.length>0?Ut.a.Observable.from([Object(yM.f)("drawOrEdit",r,"featureGrid",i,o)]):Ut.a.Observable.from([Object(yM.f)("clean","","featureGrid",[],{})])}(t.getState(),e.type===gM.c)}))},SB=function(e){return e.ofType(gM.h).switchMap((function(){return Ut.a.Observable.of(Object(yM.h)())}))},jB=function(e,t){return e.ofType(gM.U).switchMap((function(e){return e.mode===gM.x.VIEW?Ut.a.Observable.of(Object(yM.h)(),Object(Nz.d)("featuregrid.select")):e.mode!==gM.x.EDIT||Object(Rz.l)(t.getState())?Ut.a.Observable.of(Object(Nz.d)()):Ut.a.Observable.of(Object(yM.h)(),Object(Nz.d)("featuregrid.select"),Object(H.k)({title:"featuregrid.notSupportedGeometryTitle",message:"featuregrid.notSupportedGeometry",uid:"notSupportedGeometryWarning",autoDismiss:5}))}))},EB=function(e){return e.ofType(gM.z).switchMap((function(){return e.ofType(vM.b).take(1).switchMap((function(){return Ut.a.Observable.of(Object(gM.Sb)(),Object(gM.fb)())})).takeUntil(e.ofType(gM.f))}))},CB=function(e,t){return e.ofType(vM.b).switchMap((function(){return Object(Q.g)(t.getState())?Ut.a.Observable.of(Object(x.g)("queryPanel","enabled",!1)):Ut.a.Observable.empty()}))},TB=function(e,t){return e.ofType(gM.z).switchMap((function(){return e.ofType(x.d).filter((function(e){return e.control&&"drawer"===e.control&&Object(Rz.o)(t.getState())})).switchMap((function(){return Ut.a.Observable.of(Object(gM.fb)(),Object(gM.Cb)([]))})).takeUntil(e.ofType(vM.b))}))},kB=function(e,t){return e.ofType(gM.g).switchMap((function(){var e=t.getState();return Object(Rz.i)(e)||Object(Rz.k)(e)?Ut.a.Observable.of(Object(gM.Rb)("featureCloseConfirm",!0)):Ut.a.Observable.of(Object(gM.fb)())}))},AB=function(e){return e.ofType(gM.d).switchMap((function(){return Ut.a.Observable.of(Object(gM.db)(),Object(gM.Rb)("clearConfirm",!1))}))},PB=function(e){return e.ofType(gM.r).switchMap((function(){return Ut.a.Observable.of(Object(x.g)("drawer","enabled",!1),Object(gM.Rb)("featureCloseConfirm",!1))}))},MB=function(e,t){return e.ofType(gM.z).exhaustMap((function(){return e.ofType(gM.f).delay(50).filter((function(){return Object(xM.h)(t.getState())})).switchMap((function(){return Ut.a.Observable.of(Yz(t.getState()))})).takeUntil(e.ofType(vM.b,Iz.j,gM.y))}))},IB=function(e){return e.ofType(gM.z).switchMap((function(){return Ut.a.Observable.race(e.ofType(Iz.j).take(1),e.ofType(gM.f).take(1)).exhaustMap((function(t){return t.type===gM.f?Ut.a.Observable.empty():e.ofType(Iz.l).switchMap((function(){return Ut.a.Observable.of(Object(gM.yb)())}))})).takeUntil(e.ofType(vM.b,x.d).filter((function(e){return e.type===vM.b||e.control&&"drawer"===e.control})).merge(e.ofType(gM.f).withLatestFrom(e.ofType(Iz.j,Iz.l).scan((function(e,t){switch(t.type){case Iz.j:return!1;case Iz.l:return!0;default:return!1}}),!0).startWith(!0),(function(e,t){return t})).filter((function(e){return e}))))}))},DB=function(e,t){return e.ofType(gM.y).switchMap((function(){var n=Object(Rz.z)(t.getState());return Ut.a.Observable.of(Object(gM.Cb)([]),Object(bM.ab)(Object(le.get)(t.getState(),'featuregrid.advancedFilters["'.concat(Object(Rz.A)(t.getState()),'"]'))),Object(gM.fb)(),Object(x.g)("queryPanel","enabled",!0)).merge(Ut.a.Observable.race(e.ofType(bM.o).mergeMap((function(e){return Ut.a.Observable.of(Object(wM.q)(e.searchUrl,e.filterObj),Object(gM.Ob)(ie()({},Object(Lz.e)(t.getState()),e.filterObj)),Object(x.g)("queryPanel","enabled",!1),Object(gM.yb)())})),e.ofType(x.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).mergeMap((function(){var e="clean"!==(t.getState().draw||{}).drawStatus&&0===n.length?[Object(yM.f)("clean","","featureGrid",[],{})]:[];return Ut.a.Observable.from(e.concat(Object(gM.Cb)(n,!0),Object(gM.yb)()))}))).takeUntil(e.ofType(gM.z,vM.b)))}))},NB=function(e,t){return e.ofType(gM.Z).filter((function(){return!Object(le.get)(t.getState(),"featuregird.virtualScroll",!1)})).switchMap((function(){return Ut.a.Observable.of(Object(G.I)(Tz()(Object(xM.c)(t.getState())),"EPSG:4326"))}))},RB=function(e){return e.ofType(gM.U).filter((function(e){return e.mode===gM.x.EDIT})).map((function(){return Object(x.e)(["query"])}))},LB=function(e){return e.ofType(gM.z).switchMap((function(){return Ut.a.Observable.of(Object(Iz.F)())}))},FB=function(e,t){return e.ofType(wM.o).filter((function(){return Object(xM.h)(t.getState())})).mapTo(Object(gM.Nb)())},zB=function(e,t){return e.ofType(wM.o).filter((function(){return!Object(xM.h)(t.getState())})).switchMap((function(){return Ut.a.Observable.from([Yz(t.getState()),{type:gM.R}])}))},BB=function(e,t){return e.ofType(gM.f).filter((function(){return Object(xM.h)(t.getState())})).switchMap((function(){return Ut.a.Observable.of(Object(wM.A)())}))},qB=function(e,t){return e.ofType(wM.j,wM.p).filter((function(e){var n=t.getState().featuregrid.disableQuickFilterSync;return e.type===wM.j||!n})).switchMap((function(){var n=t.getState(),r=n.query,o=(n.featuregrid||{}).selectedLayer,i=(r||{}).filterObj;return Ut.a.Observable.merge(Ut.a.Observable.of(Object(xM.h)(t.getState())).filter((function(e){return e})),e.ofType(gM.Q)).mergeMap((function(){return Ut.a.Observable.of(function(e,t){return Object(_.I)(e,{filterObj:t})}(o,i))}))}))},UB=function(e,t){var n=t.getState;return e.ofType(gM.w).filter((function(){return!Object(xM.d)(n())})).switchMap((function(t){var r=n(),o=t.pages,i=o.startPage,a=o.endPage,s=r.featuregrid,l=s.pages,u=s.pagination,c=Object(le.get)(u,"size"),d=Object(Az.h)(i,a,l,c),p=d[1]-d[0]+1;return Ut.a.Observable.of(Object(wM.w)(Object(xM.n)(r),Hz(qz({},Object(xM.m)(r)),{startIndex:d[0]*c,maxFeatures:p*c}),Object(Rz.w)(r))).filter((function(){return d.length>0})).merge(e.ofType(wM.l).filter((function(){return d.length>0})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result,r=void 0===t?{}:t,o=e.filterObj,s=n().featuregrid,u=s.features,d=s.maxStoredPages,p=Object(le.get)(o,"pagination.startIndex"),f=Object(Az.r)(r,{endPage:a,startPage:i},{pages:l,features:u||[]},{size:c,startIndex:p,maxStoredPages:d}),h=f.pages,m=f.features;return Object(gM.qb)(m,h)})).take(1).takeUntil(e.ofType(wM.k))).merge(e.ofType(wM.c).filter((function(){return d.length>0})).filter((function(e){return!e.isLoading})).withLatestFrom(e.ofType(gM.w)).map((function(e){return e[1]})).take(1).takeUntil(e.ofType(wM.k)))}))},GB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(_.e).filter((function(e){var t=e.layer,n=void 0===t?[]:t,o=e.params,i=void 0===o?{}:o;return Object(le.includes)(Object(le.castArray)(n),Object(Rz.A)(r()))&&Object(le.includes)(Object.keys(i),"time")&&Object(Rz.G)(r())})).merge(e.ofType(gM.K)).filter((function(){return Object(Rz.o)(r())})).withLatestFrom(e.ofType(wM.i),(function(e,t){return t})).switchMap((function(e){return Ut.a.Observable.of(Object(wM.q)(e.searchUrl,e.filterObj))}))},HB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(x.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control;return"drawer"===t&&n().browser&&n().browser.mobile&&Object(Q.c)(n())})).switchMap((function(){return Ut.a.Observable.of(Object(Iz.L)(),Object(gM.yb)())}))},VB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(Iz.j).filter((function(){return n().browser&&n().browser.mobile&&Object(Q.c)(n())})).mapTo(Object(x.h)("drawer","enabled"))},WB=n("./node_modules/uuid/index.js"),YB=n.n(WB);function KB(e){return function(e){if(Array.isArray(e))return XB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return XB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XB(e,t)}(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 XB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return eq(e,t)})).length>0},nq=function(e,t,n,r){return e.map((function(e){return tq(e,t)?function(e,t,n){return QB(QB({},e),{},n?{properties:QB(QB({},e.properties),t),geometry:n.geometry}:{properties:QB(QB({},e.properties),t)})}(e,n,r):e}))};var rq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JB,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case gM.v:return ie()({},e,{showPopoverSync:!localStorage||null===localStorage.getItem("showPopoverSync")||"true"===localStorage.getItem("showPopoverSync"),editingAllowedRoles:t.options.editingAllowedRoles||e.editingAllowedRoles||["ADMIN"],virtualScroll:!!t.options.virtualScroll,maxStoredPages:t.options.maxStoredPages||5});case gM.w:case gM.b:return ie()({},e,{pagination:{page:void 0!==t.page?t.page:e.pagination.page,size:void 0!==t.size?t.size:e.pagination.size}});case gM.H:var n;return QB(QB({},e),{},{pagination:QB(QB({},null!==(n=e.pagination)&&void 0!==n?n:{}),{},{size:t.size})});case gM.E:var r=t.features.filter((function(e){return"empty_row"!==e.id}));return e.multiselect&&t.append?ie()({},e,{select:t.append?Object(le.uniqBy)([].concat(KB(e.select),KB(r)),"id"):r}):r&&e.select&&e.select[0]&&r[0]&&1===e.select.length&&eq(r[0],e.select[0])?e:ie()({},e,{select:r||[]});case gM.T:var o=e.select.filter((function(e){return!tq(e,t.features)})),i=t.features.filter((function(t){return!tq(t,e.select)})),a=o.concat(i||[]);return ie()({},e,{select:a});case gM.n:return ie()({},e,{select:e.select.filter((function(e){return!tq(e,t.features)}))});case gM.J:return ie()({},e,{multiselect:t.multiselect});case gM.X:return ie()({},e,{customEditorsOptions:t.payload});case gM.L:return ie()({},e,t.options||{});case gM.e:return ie()({},e,{select:[],changes:[]});case gM.F:return ie()({},e,{features:t.features});case gM.p:return ie()({},e,{dockSize:t.dockSize});case gM.G:return ie()({},e,{selectedLayer:t.id});case gM.W:return ie()({},e,{tools:QB(QB({},e.tools),{},$B({},t.tool,void 0===t.value?!(e.tools&&e.tools[t.tool]):t.value))});case gM.i:return ie()({},e,{attributes:QB(QB({},e.attributes),{},$B({},t.name,QB(QB({},e.attributes&&e.attributes[t.name]||{}),{},$B({},t.key,t.value||e.attributes&&e.attributes[t.name]&&!e.attributes[t.name][t.key]))))});case gM.U:return ie()({},e,{showPopoverSync:localStorage&&null!==localStorage.getItem("showPopoverSync")?"true"===localStorage.getItem("showPopoverSync"):t.mode!==gM.x.EDIT,tools:t.mode===gM.x.EDIT?{}:e.tools,mode:t.mode,multiselect:t.mode===gM.x.EDIT,drawing:!1});case gM.q:var s=t.features.filter((function(e){return e._new}))||[];return ie()({},e,{newFeatures:s.length>0?nq(e.newFeatures,s,t.updated,null):e.newFeatures,changes:[].concat(KB(e&&e.changes||[]),KB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:t.updated}}))))});case gM.D:return ie()({},e,{saving:!0,loading:!0});case gM.C:return ie()({},e,{deleteConfirm:!1,saved:!0,saving:!1,drawing:!1,loading:!1});case gM.c:return ie()({},e,{saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case gM.h:var l=YB.a.v1();return ie()({},e,{newFeatures:t.features.map((function(e){return QB(QB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})})),select:t.features.map((function(e){return QB(QB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})}))});case gM.B:return ie()({},e,{deleteConfirm:!1,saving:!1,loading:!1,drawing:!1});case gM.s:var u=t.features.filter((function(e){return e._new}))||[];return ie()({},e,{newFeatures:u.length>0?nq(e.newFeatures,u,null,{geometry:QB({},Object(le.head)(u).geometry)}):e.newFeatures,changes:t.features.filter((function(e){return!e._new})).map((function(e,n){return{id:e.id,updated:{geometry:t.features[n].geometry}}})),drawing:!1});case gM.l:var c=t.features.filter((function(e){return e._new}))||[];return ie()({},e,{newFeatures:c.length>0?nq(e.newFeatures,c,null,{geometry:null}):e.newFeatures,changes:[].concat(KB(e&&e.changes||[]),KB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:{geometry:null}}}))))});case wM.e:return ie()({},e,{localType:Object(le.get)(t,"featureType.original.featureTypes[0].properties[1].localType")});case gM.O:return ie()({},e,{drawing:!e.drawing});case gM.z:return ie()({},e,{open:!0});case gM.f:return ie()({},e,{open:!1,pagination:{page:0,size:e.pagination.size},mode:gM.x.VIEW,tools:{},saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case gM.o:return ie()({},e,{disableToolbar:t.disabled});case gM.I:return ie()({},e,{canEdit:t.permission.canEdit});case yM.a:return"clean"===t.status?ie()({},e,{drawing:!1}):e;case gM.Y:var d=t.update||{},p=d.attribute;if(p&&t.append){var f=e.filters[p].value,h=[];null!=f&&f.attribute&&(h=[f]),Object(le.isArray)(f)&&(h=f);var m=[].concat(KB(h),[t.update.value]);return ie()({},e,{filters:$B({},p,{attribute:p,enabled:!0,type:"geometry",operator:"OR",value:m})})}return p?ie()({},e,{filters:QB(QB({},e.filters),{},$B({},p,t.update))}):e;case wM.j:return ie()({},e,{filters:{}});case gM.M:var g=t.dockProps&&t.dockProps.maxDockSize,y=t.dockProps&&t.dockProps.minDockSize,b=g&&y&&y<=t.size&&g>=t.size&&t.size||g&&gt.size&&y||t.size;return ie()({},e,{dockSize:b});case gM.S:return ie()({},e,{advancedFilters:ie()({},e.advancedFilters,$B({},e.selectedLayer,t.filterObj))});case gM.t:return ie()({},e,{features:t.features||[],pages:t.pages||[]});case gM.u:return ie()({},e,{showPopoverSync:!1});case gM.V:return ie()({},e,{showAgain:!e.showAgain});case gM.K:return ie()({},e,{timeSync:t.value});default:return e}},oq=n("./MapStore2/web/client/components/data/featuregrid/FeatureGrid.jsx"),iq=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),aq=n("./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx"),sq=n("./MapStore2/web/client/components/data/featuregrid/filterRenderers/index.js"),lq=n("./node_modules/react-spinkit/dist/index.js"),uq=n.n(lq),cq=(n("./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css"),n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"));function dq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mq=Object(F.compose)(Object(F.withProps)((function(e){var t=e.renderPopover,n=e.popoverOptions,r=hq(e,["renderPopover","popoverOptions"]);return pq(t?{renderPopover:t,popoverOptions:n}:{},r)})),Object(F.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.renderPopover,n=e.popoverOptions;return t&&!!n}),cq.a,Vn.a));function gq(){return(gq=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bq={width:0,padding:0,borderWidth:0},vq={},wq=function(e){return e?vq:bq},xq=mq(Object(c.forwardRef)((function(e,t){var n=e.disabled,r=e.id,o=e.visible,i=e.onClick,a=e.glyph,s=e.active,l=e.className,u=void 0===l?"square-button":l,c=yq(e,["disabled","id","visible","onClick","glyph","active","className"]);return d.a.createElement(Ne.a,gq({ref:t},c,{bsStyle:s?"success":"primary",disabled:n,id:"fg-".concat(r),style:wq(o),className:u,onClick:function(){return!n&&i()}}),d.a.createElement(w.Glyphicon,{glyph:a}))}))),_q=function(e,t){return e?"featuregrid.toolbar.stopDrawGeom":t?"featuregrid.toolbar.drawGeom":"featuregrid.toolbar.addGeom"},Oq=function(e){var t=e.saving,n=e.saved;return t||n?"featuregrid.toolbar.saving":"featuregrid.toolbar.saveChanges"},Sq={onGridSort:function(e,t){return Object(gM.Kb)(e,t)},onAddFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(gM.Tb)(e)},onTemporaryChanges:function(e){return Object(gM.ab)(e)},onGridRowsUpdated:function(e,t){var n,r,o=e.fromRow,i=e.toRow,a=e.updated,s=(n=o,r=i,Array.from({length:r+1-n},(function(e,t){return t+n}))).map((function(e){return t(e)})).filter((function(e){return Object.keys(a||{}).filter((function(t){return e.properties[t]!==a[t]})).length>0}));return Object(gM.rb)(s,a)},onRowsToggled:function(e,t){return Object(gM.Cb)(e.map((function(e){return t(e.rowIdx)})),!1)},onRowsSelected:function(e,t){return Object(gM.Cb)(e.map((function(e){return t(e.rowIdx)})),!0)},onRowsDeselected:function(e,t){return Object(gM.ob)(e.map((function(e){return t(e.rowIdx)})))}},jq=[{name:"",key:"geometry",width:35,frozen:!0,events:{onClick:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.crs;return e.geometry?Object(G.I)(Tz()(e),o||"EPSG:4326"):{type:"NONE"}}},formatter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return t?d.a.createElement(w.Glyphicon,{glyph:"zoom-to"}):d.a.createElement(Te.a,{placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"fe-save-features"},d.a.createElement(v.default,{msgId:"featuregrid.missingGeometry"}))},d.a.createElement(w.Glyphicon,{glyph:"exclamation-mark"}))}}],Eq={onPageChange:function(e,t){return Object(gM.bb)(e,t)},moreFeatures:gM.wb},Cq={createFeature:function(){return Object(gM.ib)([{}])},saveChanges:function(){return Object(gM.zb)()},clearFeatureEditing:function(){return Object(gM.Rb)("clearConfirm",!0)},deleteGeometry:function(){return Object(gM.mb)()},deleteFeatures:function(){return Object(gM.Rb)("deleteConfirm",!0)},download:function(){return Object(x.h)("layerdownload")},settings:function(){return Object(gM.Rb)("settings")},switchEditMode:function(){return Object(gM.Pb)()},startEditingFeature:function(){return Object(gM.Mb)()},startDrawingFeature:function(){return Object(gM.Lb)()},switchViewMode:function(){return Object(gM.Sb)()},onClose:function(){return Object(gM.gb)()},showQueryPanel:function(){return Object(gM.xb)()},zoomAll:function(){return Object(gM.Ub)()},sync:function(){return Object(wM.A)()},setTimeSync:gM.Hb,hideSyncPopover:function(){return Object(gM.ub)()},toggleShowAgain:function(){return Object(gM.Qb)()},chart:function(){return Object(ue.F)()}},Tq=Sq,kq=jq,Aq=Eq,Pq=Cq,Mq=Object(h.connect)((function(e){return{attributes:Object(Rz.f)(e)}}),{onChange:function(e,t){return Object(gM.jb)(e,"hide",t)}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,o=void 0===r?"featuregrid.columns":r,i=e.onChange,a=void 0===i?function(){}:i,s=e.attributes,l=void 0===s?[]:s;return d.a.createElement("div",{className:"bg-body data-attribute-selector",style:n},d.a.createElement("h4",{className:"text-center"},d.a.createElement("strong",null,d.a.createElement(v.default,{msgId:o}))),d.a.createElement("div",null,l.map((function(e){return d.a.createElement(w.Checkbox,{key:e.attribute||e.name,checked:!e.hide,onChange:function(){return a(e.attribute,!e.hide)}},e.label||e.attribute)}))))}));function Iq(){return(Iq=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableToolbar,n=e.disableDownload,r=e.disableZoomAll,o=void 0!==r&&r,i=e.displayDownload,a=e.events,s=void 0===a?{}:a,l=e.hasChanges,u=e.hasGeometry,c=e.hasNewFeatures,p=e.hasSupportedGeometry,f=void 0===p||p,h=e.isColumnsOpen,m=e.isDrawing,g=void 0!==m&&m,y=e.isEditingAllowed,b=e.isFilterActive,x=void 0!==b&&b,_=e.isDownloadOpen,O=e.isSearchAllowed,S=e.isSimpleGeom,j=e.isSyncActive,E=void 0!==j&&j,C=e.saved,T=void 0!==C&&C,k=e.saving,A=void 0!==k&&k,P=e.selectedCount,M=e.showAdvancedFilterButton,I=void 0===M||M,D=e.showChartButton,N=void 0===D||D,R=e.showSyncOnMapButton,L=void 0===R||R,F=e.showTimeSyncButton,z=void 0!==F&&F,B=e.syncPopover,q=void 0===B?{showPopoverSync:!0,dockSize:"32.2%"}:B,U=e.mode,G=void 0===U?"VIEW":U,H=e.timeSync,V=void 0!==H&&H;return d.a.createElement(w.ButtonGroup,{id:"featuregrid-toolbar",className:"featuregrid-toolbar featuregrid-toolbar-margin"},d.a.createElement(xq,{id:"edit-mode",keyProp:"edit-mode",tooltipId:"featuregrid.toolbar.editMode",disabled:t,visible:"VIEW"===G&&y,onClick:s.switchEditMode,glyph:"pencil"}),d.a.createElement(xq,{id:"search",keyProp:"search",tooltipId:"featuregrid.toolbar.advancedFilter",active:x,disabled:t||!O,visible:"VIEW"===G&&I,onClick:s.showQueryPanel,glyph:"filter"}),d.a.createElement(xq,{id:"zoom-all",keyProp:"zoom-all",tooltipId:"featuregrid.toolbar.zoomAll",disabled:t||o,visible:"VIEW"===G,onClick:s.zoomAll,glyph:"zoom-to"}),d.a.createElement(xq,{id:"back-view",keyProp:"back-view",tooltipId:"featuregrid.toolbar.quitEditMode",disabled:t,visible:"EDIT"===G&&!l&&!c,onClick:s.switchViewMode,glyph:"arrow-left"}),d.a.createElement(xq,{id:"add-feature",keyProp:"add-feature",tooltipId:"featuregrid.toolbar.addNewFeatures",disabled:t,visible:"EDIT"===G&&!c&&!l&&f,onClick:s.createFeature,glyph:"row-add"}),d.a.createElement(xq,{id:"draw-feature",keyProp:"draw-feature",tooltipId:_q(g,S),disabled:t,visible:"EDIT"===G&&1===P&&(!u||u&&!S)&&f,onClick:s.startDrawingFeature,active:g,glyph:"pencil-add"}),d.a.createElement(xq,{id:"remove-features",keyProp:"remove-features",tooltipId:"featuregrid.toolbar.deleteSelectedFeatures",disabled:t,visible:"EDIT"===G&&P>0&&!l&&!c,onClick:s.deleteFeatures,glyph:"trash-square"}),d.a.createElement(xq,{id:"save-feature",keyProp:"save-feature",tooltipId:Oq({saving:A,saved:T}),disabled:A||T||t,visible:"EDIT"===G&&l||c,active:T,onClick:s.saveChanges,glyph:"floppy-disk"}),d.a.createElement(xq,{id:"cancel-editing",keyProp:"cancel-editing",tooltipId:"featuregrid.toolbar.cancelChanges",disabled:t,visible:"EDIT"===G&&l||c,onClick:s.clearFeatureEditing,glyph:"remove-square"}),d.a.createElement(xq,{id:"delete-geometry",keyProp:"delete-geometry",tooltipId:"featuregrid.toolbar.deleteGeometry",disabled:t,visible:"EDIT"===G&&u&&1===P&&f,onClick:s.deleteGeometry,glyph:"polygon-trash"}),d.a.createElement(xq,{id:"download-grid",keyProp:"download-grid",tooltipId:"featuregrid.toolbar.downloadGridData",disabled:t||n,active:_,visible:i&&"VIEW"===G,onClick:s.download,glyph:"download"}),d.a.createElement(xq,{id:"grid-settings",keyProp:"grid-settings",tooltipId:"featuregrid.toolbar.hideShowColumns",disabled:t,active:h,visible:P<=1&&"VIEW"===G,onClick:s.settings,glyph:"features-grid-set"}),d.a.createElement(xq,{id:"grid-map-chart",keyProp:"grid-map-chart",tooltipId:"featuregrid.toolbar.createNewChart",disabled:t,visible:"VIEW"===G&&N,onClick:s.chart,glyph:"stats"}),d.a.createElement(xq,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:E,visible:L,onClick:s.sync,glyph:"map-filter",renderPopover:q.showPopoverSync,popoverOptions:!t&&{placement:"top",content:d.a.createElement("span",null,d.a.createElement("p",null,d.a.createElement(v.default,{msgId:"featuregrid.toolbar.synchPopoverText"})),d.a.createElement("p",null,d.a.createElement(w.Checkbox,{checked:q.showAgain,onClick:s.toggleShowAgain},d.a.createElement(v.default,{msgId:"featuregrid.toolbar.notShowAgain"})))),props:{id:"sync-popover",title:d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"featuregrid.toolbar.synchPopoverTitle"}),d.a.createElement("button",{onClick:function(){q.showAgain&&localStorage.setItem("showPopoverSync",!1),s.hideSyncPopover()},className:"close"},d.a.createElement(w.Glyphicon,{className:"pull-right",glyph:"1-close"}))),style:{bottom:q.dockSize}}}}),d.a.createElement(xq,{id:"timeSync-button",keyProp:"fg-timeSync-button",tooltipId:V?"featuregrid.toolbar.disableTimeSync":"featuregrid.toolbar.enableTimeSync",visible:z,active:V,onClick:function(){return s.setTimeSync&&s.setTimeSync(!V)},glyph:"time"}))})),zq=Object(h.connect)(Object(L.a)(Rz.h,(function(e){return{title:e}})),{onClose:Pq.onClose})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onDownloadToggle:function(){}};return d.a.createElement(w.Grid,{className:"bg-body data-grid-top-toolbar",fluid:!0,style:{width:"100%"}},d.a.createElement(w.Row,{className:"flex-center"},d.a.createElement(w.Col,{xs:4},e.children),d.a.createElement(w.Col,{xs:4},d.a.createElement("div",{className:"text-center text-primary"},d.a.createElement("strong",null,e.title))),d.a.createElement(w.Col,{xs:4},d.a.createElement(Ne.a,{onClick:e.onClose,style:{float:"right"},className:"square-button no-border featuregrid-top-toolbar-margin"},d.a.createElement(w.Glyphicon,{glyph:"1-close"})))))})),Bq=Object(h.connect)(Object(L.a)(Object(L.c)(xM.j),xM.d,(function(e){return e&&e.featuregrid&&!!e.featuregrid.virtualScroll}),Rz.y,(function(e,t,n,r){return Nq(Nq({},e),{},{selected:r,loading:t,virtualScroll:n})})),Aq)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!1,onPageChange:function(){}},r=Object(Az.q)(n),o=r.page,i=void 0===o?0:o,a=r.size,s=void 0===a?0:a,l=r.resultSize,u=void 0===l?0:l,c=r.maxPages,p=void 0===c?0:c,f=r.total,h=void 0===f?0:f;return d.a.createElement(w.Grid,{className:"bg-body data-grid-bottom-toolbar",fluid:!0,style:{width:"100%"}},d.a.createElement(w.Row,{className:"featuregrid-toolbar-margin"},d.a.createElement(w.Col,{md:3},d.a.createElement("span",null,d.a.createElement(v.default,{msgId:n.virtualScroll?"featuregrid.resultInfoVirtual":"featuregrid.resultInfo",msgParams:{start:i*s+1,end:i*s+u,total:h,selected:null!==(e=n.selected)&&void 0!==e?e:0}}))," ",n.selected>0?d.a.createElement("span",null,d.a.createElement(v.default,{msgId:"featuregrid.selectedInfo",msgParams:{selected:null!==(t=n.selected)&&void 0!==t?t:0}})):null),n.virtualScroll?null:d.a.createElement(w.Col,{className:"text-center",md:6},d.a.createElement(Ne.a,{key:"first-page",onClick:function(){return n.onPageChange(0)},disabled:0===i,className:"no-border first-page"},d.a.createElement(w.Glyphicon,{glyph:"step-backward"})),d.a.createElement(Ne.a,{key:"prev-page",onClick:function(){return n.onPageChange(i-1)},disabled:0===i,className:"no-border prev-page"},d.a.createElement(w.Glyphicon,{glyph:"chevron-left"})),d.a.createElement("span",{key:"page-info"},d.a.createElement(v.default,{msgId:"featuregrid.pageInfo",msgParams:{page:i+1,totalPages:p+1}})),d.a.createElement(Ne.a,{key:"next-page",onClick:function(){return n.onPageChange(i+1)},className:"no-border next-page",disabled:i>=p},d.a.createElement(w.Glyphicon,{glyph:"chevron-right"})),d.a.createElement(Ne.a,{key:"last-page",onClick:function(){return n.onPageChange(p)},className:"no-border last-page",disabled:i>=p},d.a.createElement(w.Glyphicon,{glyph:"step-forward"})))," ",d.a.createElement(w.Col,{md:3},n.loading?d.a.createElement("span",{style:{float:"right"}},d.a.createElement(v.default,{msgId:"loading"}),d.a.createElement(uq.a,{spinnerName:"circle",style:{float:"right"},noFadeIn:!0})):null)))})),qq=Object(h.connect)(Object(L.a)(Rz.y,(function(e){return{count:e}})),{onClose:function(){return Object(gM.Rb)("deleteConfirm",!1)},onConfirm:function(){return Object(gM.lb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.count,a=e.onConfirm,s=void 0===a?function(){}:a;return d.a.createElement(y.a,null,d.a.createElement(iq.a,{show:!0,onClose:n,onConfirm:s,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:d.a.createElement(v.default,{msgId:"featuregrid.deleteButton"}),confirmButtonDisabled:o},d.a.createElement(v.default,{msgId:"featuregrid.delete",msgParams:{count:i}})))})),Uq=Object(h.connect)(Object(L.a)(Rz.y,(function(e){return{count:e}})),{onClose:function(){return Object(gM.Rb)("clearConfirm",!1)},onConfirm:function(){return Object(gM.cb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.onConfirm,a=void 0===i?function(){}:i;return d.a.createElement(y.a,null,d.a.createElement(iq.a,{draggable:!1,show:!0,onClose:n,onConfirm:a,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:d.a.createElement(v.default,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:o,closeText:d.a.createElement(v.default,{msgId:"featuregrid.noButton"})},d.a.createElement(v.default,{msgId:"featuregrid.clear"})))})),Gq=Object(h.connect)((function(){}),{onClose:function(){return Object(gM.hb)()},onConfirm:function(){return Object(gM.fb)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,o=void 0!==r&&r,i=e.onConfirm,a=void 0===i?function(){}:i;return d.a.createElement(y.a,null,d.a.createElement(iq.a,{show:!0,onClose:n,onConfirm:a,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:d.a.createElement(v.default,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:o,closeText:d.a.createElement(v.default,{msgId:"featuregrid.noButton"})},d.a.createElement(v.default,{msgId:"featuregrid.featureClose"})))})),Hq={settings:Mq},Vq={deleteConfirm:qq,featureCloseConfirm:Gq,clearConfirm:Uq},Wq={settings:{style:{padding:"0 12px",overflow:"auto",flex:"0 0 14em",boxShadow:"inset 0px 0px 10px rgba(0, 0, 0, 0.4)",height:"100%",minWidth:195}}},Yq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Hq[t]})).map((function(e){var t=Hq[e];return d.a.createElement(t,Iq({key:e},Wq[e]||{}))}))},Kq=function(){return d.a.createElement(zq,null,d.a.createElement(Fq,null))},Xq=function(e){return e.focusOnEdit&&e.hasChanges||e.newFeatures.length>0?null:d.a.createElement(Bq,null)},Zq=function(){return Lq},Qq=Object(L.a)((function(e){return e}),(function(e){return e?(Object(LM.getFeatureTypeProperties)(e)||[]).reduce((function(e,t){return Nq(Nq({},e),{},Rq({},t.name,Object(h.connect)(Object(L.a)((function(e){return Object(Rz.d)(e,t.name)}),Rz.s,(function(e,n){var r=Nq({value:e&&(e.rawValue||e.value)},Object(LM.isGeometryType)(t)?{filterEnabled:null==e?void 0:e.enabled,filterDeactivated:null==e?void 0:e.deactivated}:{}),o=Object(LM.isGeometryType)(t)?{}:{disabled:!0,tooltipMsgId:"featuregrid.filter.tooltips.editMode"};return"EDIT"===n?Nq(Nq({},r),o):r})))(Object(sq.a)(Object(LM.isGeometryType)(t)?"geometry":t.localType,{name:t.name}))))}),{}):{}})),$q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Vq[t]})).map((function(e){var t=Vq[e];return d.a.createElement(t,{key:e})}))};function Jq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eU(e){for(var t=1;t5&&void 0!==arguments[5]?arguments[5]:rU,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0,p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:rU,f=arguments.length>13?arguments[13]:void 0,h=arguments.length>14?arguments[14]:void 0,m=arguments.length>15?arguments[15]:void 0,g=arguments.length>16?arguments[16]:void 0,y=arguments.length>17?arguments[17]:void 0,b=arguments.length>18?arguments[18]:void 0;return{open:e,customEditorsOptions:t,autocompleteEnabled:n,url:r,typeName:o,hasChanges:f,newFeatures:p,features:i,describe:a,attributes:s,tools:l,select:u,mode:c,focusOnEdit:h,enableColumnFilters:m,changes:Object(Az.p)(d),pagination:g,pages:y,size:b}})),sU=Object(F.compose)(Object(h.connect)(aU,(function(e){return{onMount:Object(Sz.b)(gM.Ib,e),gridEvents:Object(Sz.b)(Tq,e),pageEvents:Object(Sz.b)(Aq,e),initPlugin:Object(Sz.b)((function(e){return Object(gM.vb)(e)}),e),toolbarEvents:Object(Sz.b)(Pq,e),gridTools:kq.map((function(t){return eU(eU({},t),{},{events:Object(Sz.b)(t.events,e)})})),onSizeChange:function(){return e(gM.Jb.apply(void 0,arguments))}}})),Object(F.lifecycle)({componentDidMount:function(){this.props.onMount(Object(le.pick)(this.props,["showFilteredObject","showTimeSync","timeSync"]))}}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tools:oU,dialogs:oU,select:rU},t={dimMode:"none",defaultSize:.35,fluid:!0,isVisible:e.open,maxDockSize:.7,minDockSize:.1,position:"bottom",setDockSize:function(){},zIndex:1030};return d.a.createElement(iU,nU({},t,{onSizeChange:function(n){e.onSizeChange(n,t)}}),e.open&&d.a.createElement(RP.a,null,(function(t){var n=t.height;return d.a.createElement(qo.a,{className:"feature-grid-container",key:"feature-grid-container",height:n-94,header:Kq(),columns:Yq(e.tools),footer:Xq(e)},$q(e.tools),d.a.createElement(oq.a,{editingAllowedRoles:e.editingAllowedRoles,initPlugin:e.initPlugin,customEditorsOptions:e.customEditorsOptions,autocompleteEnabled:e.autocompleteEnabled,url:e.url,typeName:e.typeName,filterRenderers:Qq(e.describe),enableColumnFilters:e.enableColumnFilters,emptyRowsView:Zq(),focusOnEdit:e.focusOnEdit,newFeatures:e.newFeatures,changes:e.changes,mode:e.mode,select:e.select,key:"feature-grid-container",columnSettings:e.attributes,gridEvents:e.gridEvents,pageEvents:e.pageEvents,describeFeatureType:e.describe,features:e.features,minHeight:600,tools:e.gridTools,pagination:e.pagination,pages:e.pages,virtualScroll:e.virtualScroll,maxStoredPages:e.maxStoredPages,vsOverScan:e.vsOverScan,scrollDebounce:e.scrollDebounce,size:e.size}))})))})),lU=Object(O.d)("FeatureEditor",{component:sU,epics:a,reducers:{featuregrid:rq},containers:{TOC:{doNotHide:!0,name:"FeatureEditor"}}}),uU=(n("./MapStore2/web/client/components/data/query/queryform.css"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.item;return d.a.createElement("span",null,t&&t.name?d.a.createElement(v.default,{msgId:t.name}):null)}),cU=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.spatialOperations,n=void 0===t?[]:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.value;return d.a.createElement(Do.DropdownList,{valueField:"id",className:"geometry-operation-selector",onChange:o,data:n,valueComponent:uU,value:i,itemComponent:uU})};function dU(e){return function(e){if(Array.isArray(e))return pU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pU(e,t)}(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 pU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.search,r=t.url;return Object(De.b)(e,r)||Object(De.b)(e,n&&n.url)},hU=function(e){return(e||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return"BBOX"!==t}))},mU={"xsd:normalizedString":"string","xsd:string":"string","xsd:date":"date","xsd:dateTime":"date","xsd:date-time":"date-time","xsd:time":"time","xsd:decimal":"number","xsd:int":"number","xsd:integer":"number","xsd:long":"number","xsd:negativeInteger":"number","xsd:nonNegativeInteger":"number","xsd:nonPositiveInteger":"number","xsd:positiveInteger":"number","xsd:short":"number","xsd:unsignedLong":"number","xsd:unsignedInt":"number","xsd:unsignedShort":"number","xsd:number":"number","xsd:boolean":"boolean","xsd:double":"number","xsd:float":"number"},gU=function(e){return Object(le.get)(e,"featureTypes[0].properties").filter((function(e){return 0!==e.type.indexOf("gml:")&&mU[e.type]})).map((function(e){return{label:e.name,attribute:e.name,type:mU[e.type],valueId:"id",valueLabel:"name",values:[]}}))};function yU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bU(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchUrl,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.searchUrl;return t===r})).switchMap((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.crossLayerExpanded?qt.Observable.of(t):e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerExpanded;return t})).take(1)})).switchMap((function(e){var t=e.featureTypeName,n=e.searchUrl;return Object(MM.c)({layer:{name:t,url:n,search:{type:"wfs",url:n}}}).do((function(e){if(t=e,n=Object(le.get)(t,"WFS_Capabilities.Filter_Capabilities.Scalar_Capabilities.ArithmeticOperators.Functions.FunctionNames.FunctionName"),!Object(le.find)(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e._;return"queryCollection"===t})))throw new Error("nocrosslayerfunctionalities");var t,n})).map((function(){return{loadingCapabilities:!1}})).catch((function(e){return qt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({loadingCapabilities:!0})})).startWith({})},xU=function(e,t){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.layer;return o&&n.name===(o&&o.name)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!!t})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.layer;return qt.Observable.defer((function(){return Object(MM.a)({layer:n})})).do((function(e){var n=Object(le.get)(Object(LM.findGeometryProperty)(e.data||{}),"name");n&&t("geometryName",n)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t;return gU(n)})).map((function(e){return{attributes:e,loadingAttributes:!1}})).startWith({loadingAttributes:!0}).catch((function(e){return qt.Observable.of({errorObj:e,loadingAttributes:!1,featureTypeProperties:[]})}))})).catch((function(e){return qt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({})},_U=Object(F.compose)(Object(F.withPropsOnChange)(["crossLayerFilter"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerFilter,n=void 0===t?{}:t;return{queryCollection:Object(le.get)(n,"collectGeometries.queryCollection"),operation:Object(le.get)(n,"operation"),distance:Object(le.get)(n,"distance")}})),Object(F.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=void 0===t?[]:t,r=e.queryCollection,o=void 0===r?{}:r;return{layer:Object(le.find)(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return t===o.typeName}))}})),Object(F.withHandlers)({setQueryCollectionParameter:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e,t){n("collectGeometries.queryCollection[".concat(e,"]"),t),"typeName"===e&&n("collectGeometries.queryCollection.filterFields",[])}},updateLogicCombo:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e,t){return n("collectGeometries.queryCollection.groupFields",[{id:e,logic:t,index:0}])}},setOperation:function(e){var t=e.setCrossLayerFilterParameter,n=void 0===t?function(){}:t;return function(e){return n("operation",e)}}}),Object(F.defaultProps)({dataStreamFactory:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.setQueryCollectionParameter,r=void 0===n?function(){}:n;return wU(e).combineLatest(xU(e,r),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bU(bU({},t),e)})).startWith({})}}),PM.a);function OU(e){return(OU="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 SU(e,t){for(var n=0;n0,n=this.props.allowEmptyFilter&&!this.props.advancedToolbar,r=this.props.filterFields.filter((function(e){return e.value||0===e.value})).length>0,o=Object(zC.isFilterEmpty)(this.props),i=Object(zC.isFilterEmpty)(this.props.appliedFilter),a=this.isCurrentFilterChanged(),s=r||this.props.spatialField.geometry||Object(zC.isCrossLayerFilterValid)(this.props.crossLayerFilter),l=!Object(le.isEqual)(this.props.appliedFilter,this.props.storedFilter),u=n||o&&this.props.appliedFilter&&!i,c=t||!this.props.toolbarEnabled||o&&!u||!o&&(!s||!a),p=this.props.emptyFilterWarning&&o&&a,f=this.props.advancedToolbar?"queryform.apply":this.props.queryBtnMsgId,h=[{tooltipId:p?"queryform.emptyfilter":f,disabled:c,noTooltipWhenDisabled:!0,glyph:this.props.advancedToolbar?"ok":this.props.queryBtnGlyph,className:p?"square-button-md showWarning":"square-button-md",id:"query-toolbar-query",onClick:this.search}];if(this.props.advancedToolbar){var m=!l||this.props.loadingError||a,g=!l||!this.props.storedFilter||!this.props.toolbarEnabled,y=!this.props.appliedFilter||this.props.appliedFilter&&i||!this.props.toolbarEnabled;h=h.concat([{tooltipId:"queryform.save",disabled:m,noTooltipWhenDisabled:!0,glyph:"floppy-disk",id:"query-toolbar-save",onClick:this.props.actions.onSaveFilter},{tooltipId:"queryform.discard",disabled:g,noTooltipWhenDisabled:!0,glyph:"undo",id:"query-toolbar-discard",onClick:this.restorePersistedFilter},{tooltipId:"queryform.reset",glyph:"clear-filter",noTooltipWhenDisabled:!0,id:"reset",disabled:y,onClick:this.reset}])}else h=[{tooltipId:"queryform.reset",glyph:"clear-filter",noTooltipWhenDisabled:!0,id:"reset",disabled:!this.props.toolbarEnabled,onClick:this.reset}].concat(h);return d.a.createElement("div",{className:"container-fluid query-toolbar"},d.a.createElement(Uo.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md",tooltipPosition:"bottom"},className:"queryFormToolbar row-fluid pull-right",buttons:h}),d.a.createElement(dr.a,{show:!!this.props.showGeneratedFilter,bsSize:"large"},d.a.createElement(dr.a.Header,null,d.a.createElement(dr.a.Title,null,this.props.resultTitle)),d.a.createElement(dr.a.Body,null,d.a.createElement("textarea",{style:{width:"862px",maxWidth:"862px",height:"236px",maxHeight:"236px"}},this.props.showGeneratedFilter)),d.a.createElement(dr.a.Footer,null,d.a.createElement(Ne.a,{style:{float:"right"},onClick:function(){return e.props.actions.onQuery(null,null)}},"Close"))))}}])&&SU(t.prototype,n),r&&SU(t,r),i}(d.a.Component);AU(PU,"propTypes",{filterType:f.a.string,params:f.a.object,filterFields:f.a.array,groupFields:f.a.array,spatialField:f.a.object,sendFilters:f.a.object,crossLayerFilter:f.a.object,toolbarEnabled:f.a.bool,searchUrl:f.a.string,showGeneratedFilter:f.a.oneOfType([f.a.bool,f.a.string]),featureTypeName:f.a.string,actions:f.a.object,ogcVersion:f.a.string,titleMsgId:f.a.string,queryBtnMsgId:f.a.string,resultTitle:f.a.string,queryBtnGlyph:f.a.string,pagination:f.a.object,sortOptions:f.a.object,hits:f.a.bool,allowEmptyFilter:f.a.bool,emptyFilterWarning:f.a.bool,appliedFilter:f.a.object,storedFilter:f.a.object,advancedToolbar:f.a.bool,loadingError:f.a.bool}),AU(PU,"defaultProps",{sendFilters:{attributeFilter:!0,spatialFilter:!0,crossLayerFilter:!0},filterType:"OGC",params:{},groupFields:[],filterFields:[],spatialField:{},toolbarEnabled:!0,searchUrl:null,showGeneratedFilter:!1,featureTypeName:null,titleMsgId:"queryform.title",queryBtnMsgId:"queryform.query",resultTitle:"Generated Filter",queryBtnGlyph:"search",pagination:null,sortOptions:null,hits:!1,allowEmptyFilter:!1,emptyFilterWarning:!1,advancedToolbar:!1,loadingError:!1,actions:{onQuery:function(){},onReset:function(){},onChangeDrawingStatus:function(){},onSaveFilter:function(){},onRestoreFilter:function(){},storeAppliedFilter:function(){}}});var MU=PU,IU=n("./MapStore2/web/client/observables/autocomplete.js"),DU=n("./MapStore2/web/client/utils/TemplateUtils.js");function NU(e){return(NU="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 RU(){return(RU=Object.assign||function(e){for(var t=1;t0&&(r=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&r.length>0)&&r.push((HU(t={},e.props.textField,""),HU(t,e.props.valueField,""),HU(t,"disabled",!0),HU(t,"pagination",e.renderPagination()),t));var o=!1,i=e.props.loading?[]:r,a=e.props.itemComponent,s=d.a.createElement(Do.Combobox,{dropUp:e.props.dropUp,busy:e.props.busy,data:i,disabled:e.props.disabled,itemComponent:function(t){return d.a.createElement(a,RU({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||n,open:e.props.open,filter:!1,onChange:function(t){e.props.onChange(t,e.props.valueField),o=!0},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){var n=Object(le.head)(e.props.features.filter((function(n){return n.properties[e.props.valueField].toLowerCase()===t[e.props.valueField].toLowerCase()})));e.props.onSelect(t,n,e.props.srsName,e.props.style)},onToggle:function(t){var n=Object(le.head)(e.props.features.filter((function(t){return t.properties[e.props.valueField].toLowerCase()===e.props.selectedValue.toLowerCase()})));!t||e.props.selectedValue||e.props.selectedValue||o||e.props.onChange("",e.props.valueField),e.props.onToggle(t,n,e.props.pagination.currentPage),n&&!t&&e.props.onSelect(e.props.selectedValue,n,e.props.srsName,e.props.style),o=!1},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(s):s})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props.label?d.a.createElement("label",null,this.props.label):d.a.createElement("span",null);return d.a.createElement("div",{className:"autocompleteField"},e,this.renderField())}}])&&FU(t.prototype,n),r&&FU(t,r),i}(d.a.Component);HU(VU,"propTypes",{busy:f.a.bool,data:f.a.array,disabled:f.a.bool,dropUp:f.a.bool,features:f.a.array,filter:f.a.string,itemComponent:f.a.oneOfType([f.a.object,f.a.func]),label:f.a.string,loading:f.a.bool,messages:f.a.object,onChange:f.a.func,onFocus:f.a.func,onSelect:f.a.func,onToggle:f.a.func,onChangeDrawingStatus:f.a.func,style:f.a.style,open:f.a.bool,pagination:f.a.object,nextPageIcon:f.a.string,prevPageIcon:f.a.string,selectedValue:f.a.string,srsName:f.a.string,textField:f.a.string,tooltip:f.a.object,valueField:f.a.string}),HU(VU,"contextTypes",{messages:f.a.object}),HU(VU,"defaultProps",{dropUp:!1,features:[],filter:"",itemComponent:QC.a,loading:!1,label:null,pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onChangeDrawingStatus:function(){},onSelect:function(){},srsName:"EPSG:4326",textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value"});var WU=VU;function YU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KU(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=e.onChangeSpatialFilterValue,r=void 0===n?function(){}:n,o=e.select,i=void 0===o?function(){}:o;return function(e,n,o,a){n&&r({geometry:n.geometry,value:e,feature:n,srsName:o,style:a,options:t,collectGeometries:t&&t.crossLayer?{queryCollection:{typeName:t.crossLayer.typeName,geometryName:t.crossLayer.geometryName,cqlFilter:Object(DU.generateTemplateString)(t.crossLayer.cqlTemplate||"",zC.escapeCQLStrings)(n)}}:void 0}),i(!0)}}}))(ZU);function $U(e){return($U="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 JU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eG(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"replace";"replace"===r&&(e.tempExtent[n]=!isNaN(parseFloat(t))&&parseFloat(t)||0);var o=[];for(var i in e.tempExtent)i&&o.push(e.tempExtent[i]);var a=Object(Yo.reprojectBbox)(o,"EPSG:4326",e.props.projection),s={type:e.props.geometry.type,coordinates:[[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]],[a[0],a[1]]]],projection:e.props.geometry.projection};e.props.onChangeDrawingStatus(r,void 0,"queryform",[s])})),mG(fG(e),"onUpdateCircle",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"replace";"replace"===r&&(e.tempCircle[n]=parseFloat(t));var o=isNaN(parseFloat(e.tempCircle.x))||isNaN(parseFloat(e.tempCircle.y))?[e.tempCircle.x,e.tempCircle.y]:Object(Yo.reproject)([e.tempCircle.x,e.tempCircle.y],"EPSG:4326",e.props.projection);o=void 0===o.x?{x:o[0],y:o[1]}:o;var i={x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y},a={type:e.props.geometry.type,center:i,coordinates:[i.x,i.y],radius:isNaN(e.tempCircle.radius)?0:e.tempCircle.radius,projection:e.props.geometry.projection};e.props.onChangeDrawingStatus(r,void 0,"queryform",[a],{geodesic:e.props.enableGeodesic})})),mG(fG(e),"onModifyGeometry",(function(){"BBOX"===e.props.type?e.onUpdateBBOX(null,null,"endDrawing"):"Circle"===e.props.type&&e.onUpdateCircle(null,null,"endDrawing"),e.props.onShowPanel(!1)})),mG(fG(e),"onClosePanel",(function(){e.resetGeom(),e.props.onShowPanel(!1)})),mG(fG(e),"getStep",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Math.min(1/Math.pow(10,Math.ceil(Math.min(e,21)/3)-2),1)})),mG(fG(e),"getStepCircle",(function(t,n){var r=e.getStep(t);return"radius"===n&&!e.isWGS84()&&1e4*r||r})),mG(fG(e),"getBBOXDimensions",(function(e){var t=Object(Yo.reprojectBbox)(e.extent,e.projection,"EPSG:4326");return{west:t[0],sud:t[1],est:t[2],north:t[3]}})),mG(fG(e),"getCircleDimensions",(function(t){var n=Object(Yo.reproject)(t.center,t.projection,"EPSG:4326"),r=Object(Yo.reproject)(t.center,t.projection,e.props.projection),o=Object(Yo.reproject)([t.center[0]+t.radius,t.center[1]],t.projection,e.props.projection),i=Math.sqrt((o.x-r.x)*(o.x-r.x)+(o.y-r.y)*(o.y-r.y));return{x:n.x,y:n.y,radius:i}})),mG(fG(e),"renderCoordinateField",(function(t,n){return d.a.createElement("div",null,d.a.createElement("div",{className:"detail-field-title"},n),d.a.createElement(Ko.a,{style:{minWidth:"105px",margin:"auto"},type:"number",id:"queryform_bbox_"+n,step:e.getStep(e.props.zoom),defaultValue:e.roundValue(t,1e6),onChange:function(t){return e.onUpdateBBOX(t,n)}}))})),mG(fG(e),"renderCircleField",(function(t,n){return d.a.createElement(Ko.a,{type:"number",id:"queryform_circle_"+n,defaultValue:e.roundValue(t,"radius"!==n||e.isWGS84()?1e6:100),step:e.getStepCircle(e.props.zoom,n),onChange:function(t){return e.onUpdateCircle(t,n)}})})),mG(fG(e),"renderDetailsContent",(function(){var t,n=e.props.geometry;if("BBOX"===e.props.type){var r=e.getBBOXDimensions(n);t=d.a.createElement("div",null,d.a.createElement("div",{className:"container-fluid"},d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:4},e.renderCoordinateField(r.north,"north")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null))),d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:4},e.renderCoordinateField(r.west,"west")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:4},e.renderCoordinateField(r.est,"est"))),d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:4},e.renderCoordinateField(r.sud,"sud")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null)))),d.a.createElement("span",null,d.a.createElement("hr",{width:"90%"}),d.a.createElement("div",null,d.a.createElement("h5",null,d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.details.details_bbox_label"})))))}else if("Circle"===e.props.type){var o=e.getCircleDimensions(n),i=Object(Yo.getUnits)(e.props.projection);t=d.a.createElement("div",null,d.a.createElement("div",{className:"container-fluid"},d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:2},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:2},d.a.createElement("span",{className:"details-circle-attribute-name"},"x:")),d.a.createElement(w.Col,{xs:4},e.renderCircleField(o.x,"x")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null))),d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:2},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:2},d.a.createElement("span",{className:"details-circle-attribute-name"},"y:")),d.a.createElement(w.Col,{xs:4},e.renderCircleField(o.y,"y")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null))),d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:2},d.a.createElement("span",null)),d.a.createElement(w.Col,{xs:2},d.a.createElement("span",{className:"details-circle-attribute-name"},d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.details.radius",msgParams:{unit:"degrees"===i?"°":i}}),":")),d.a.createElement(w.Col,{xs:4},e.renderCircleField(o.radius,"radius")),d.a.createElement(w.Col,{xs:4},d.a.createElement("span",null)))),d.a.createElement("span",null,d.a.createElement("hr",{width:"90%"}),d.a.createElement("div",null,d.a.createElement("h5",null,d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.details.details_circle_label"})))))}return t})),mG(fG(e),"isWGS84",(function(){return"EPSG:4326"===e.props.projection})),mG(fG(e),"roundValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e6;return Math.round(e*t)/t})),mG(fG(e),"resetGeom",(function(){"BBOX"===e.props.type?e.resetBBOX():"Circle"===e.props.type&&e.resetCircle()})),mG(fG(e),"resetBBOX",(function(){for(var t in e.extent){if(t)document.getElementById("queryform_bbox_"+t).value=e.roundValue(e.extent[t],1e6),e.onUpdateBBOX(e.extent[t],t)}})),mG(fG(e),"resetCircle",(function(){document.getElementById("queryform_circle_radius").value=e.roundValue(e.circle.radius,100),e.onUpdateCircle(e.circle.radius,"radius"),document.getElementById("queryform_circle_x").value=e.roundValue(e.circle.x,e.isWGS84()?1e6:100),e.onUpdateCircle(e.circle.x,"x"),document.getElementById("queryform_circle_y").value=e.roundValue(e.circle.y,e.isWGS84()?1e6:100),e.onUpdateCircle(e.circle.y,"y")})),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props.geometry;"BBOX"===this.props.type?(this.extent=this.getBBOXDimensions(e),this.tempExtent=ie()({},this.extent)):"Circle"===this.props.type&&(this.circle=this.getCircleDimensions(e),this.tempCircle=ie()({},this.circle))}},{key:"render",value:function(){var e=this;return d.a.createElement(cT.a,{buttons:[{key:"confirm",glyph:"ok",tooltipId:"confirm",onClick:function(){return e.onModifyGeometry()}},{key:"reset",tooltipId:"queryform.reset",glyph:"clear-filter",onClick:function(){return e.resetGeom()}},{key:"close",glyph:"1-close",onClick:function(){return e.onClosePanel(!1)}}],title:d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.details.details_header"}),locked:!0,expanded:!0,className:"details-panel",bsStyle:"primary"},this.renderDetailsContent())}}])&&uG(t.prototype,n),r&&uG(t,r),i}(d.a.Component);mG(gG,"propTypes",{useMapProjection:f.a.bool,geometry:f.a.object,type:f.a.string,onShowPanel:f.a.func,onChangeDrawingStatus:f.a.func,zoom:f.a.number,projection:f.a.string,enableGeodesic:f.a.bool}),mG(gG,"defaultProps",{useMapProjection:!0,geometry:null,type:null,onShowPanel:function(){},onChangeDrawingStatus:function(){}});var yG=gG;function bG(e){return(bG="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 vG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wG(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"*",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=",r={filterFields:[{attribute:e.props.searchAttribute,operator:n,value:t,type:"list"}]};e.props.dependsOn&&(r.groupFields=[{id:1,logic:"AND",index:0}],r.filterFields[0].groupId=1,e.props.multivalue?(r.groupFields.push({id:2,logic:"OR",groupId:1,index:1}),e.props.dependsOn.value instanceof Array?e.props.dependsOn.value.forEach((function(t){r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:t,groupId:2,type:"list"})})):r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:e.props.dependsOn.value,groupId:2,type:"list"})):r.filterFields.push({attribute:e.props.dependsOn.field,operator:e.props.dependsOn.operator||"=",value:e.props.dependsOn.value,groupId:1,type:"list"}));var o=Object(zC.toOGCFilter)(e.props.typeName,r,e.props.wfs,e.props.sort||{sortBy:e.props.searchAttribute,sortOrder:"ASC"});return o})),EG(SG(e),"changeZoneValue",(function(t,n,r){var o;e.setState({open:!1}),o=e.props.multivalue?{value:r.map((function(e){return e.id})),feature:r.map((function(e){return e.feature}))}:{value:[r],feature:[e.values.filter((function(e){return e.id===r}))[0].feature]},e.props.onChange(e.props.zoneId,o)})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.values&&!Object(le.isEqual)(this.props.values,e.values)&&e.values.length>0&&this.setState({open:!0})}},{key:"render",value:function(){var e=this;this.values=[],this.props.values&&this.props.values.length>0&&(this.values=this.props.values.map((function(t){var n=t;e.props.valueField.split(".").forEach((function(e){n=n?n[e]:null}));var r=t;return e.props.textField.split(".").forEach((function(e){r=r?r[e]:null})),{id:n,name:r,feature:t}})));var t=this.props.label?d.a.createElement("label",null,this.props.label):d.a.createElement("span",null),n=this.props.error;return n&&(n="object"!==bG(n)?n:n.status+" "+n.statusText+": "+n.data),d.a.createElement("div",{className:"zone-combo"},t,d.a.createElement(XE,{key:(new Date).getTime(),busy:this.props.busy,disabled:this.props.disabled,fieldRowId:this.props.zoneId,valueField:"id",textField:"name",fieldOptions:this.values,fieldValue:this.props.value,fieldName:"zone",fieldException:n,options:{defaultOpen:this.state.open},groupBy:this.props.groupBy?function(t){return t.feature.properties[e.props.groupBy]}:function(){},multivalue:this.props.multivalue,comboFilter:this.props.comboFilter,onSelect:this.props.onSelect,onUpdateField:this.changeZoneValue,onToggle:function(t){if(t&&(!e.props.values||e.props.values.length<1)){var n=e.getFilter(e.props.searchText,e.props.searchMethod);e.props.onSearch(!0,e.props.zoneId),e.props.onFilter(e.props.url,n,e.props.zoneId)}}}))}}])&&wG(t.prototype,n),r&&wG(t,r),i}(d.a.Component);EG(CG,"propTypes",{zoneId:f.a.number,url:f.a.string,typeName:f.a.string,wfs:f.a.string,busy:f.a.bool,values:f.a.array,value:f.a.oneOfType([f.a.object,f.a.number,f.a.string,f.a.array]),label:f.a.string,searchText:f.a.string,searchMethod:f.a.string,searchAttribute:f.a.string,sort:f.a.object,error:f.a.oneOfType([f.a.object,f.a.string]),comboFilter:f.a.oneOfType([f.a.bool,f.a.string,f.a.func]),groupBy:f.a.oneOfType([f.a.string,f.a.func]),multivalue:f.a.bool,open:f.a.bool,disabled:f.a.bool,dependsOn:f.a.object,valueField:f.a.string,textField:f.a.string,onSearch:f.a.func,onFilter:f.a.func,onChange:f.a.func,onSelect:f.a.func}),EG(CG,"contextTypes",{messages:f.a.object}),EG(CG,"defaultProps",{open:!1,zoneId:null,url:null,typeName:null,wfs:"1.1.0",busy:!1,values:[],value:null,valueField:null,textField:null,label:null,disabled:!1,error:null,searchText:"*",searchMethod:"ilike",searchAttribute:null,comboFilter:"contains",multivalue:!0,groupBy:null,onSearch:function(){},onFilter:function(){},onChange:function(){},onSelect:function(){}});var TG=CG;function kG(e){return(kG="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 AG(){return(AG=Object.assign||function(e){for(var t=1;t0?e.props.spatialField.zoneFields.map((function(t){return d.a.createElement(TG,{key:t.id,open:t.open,zoneId:t.id,url:t.url,typeName:t.typeName,wfs:t.wfs,busy:t.busy,label:t.label,values:t.values,value:t.value,valueField:t.valueField,textField:t.textField,searchText:t.searchText,searchMethod:t.searchMethod,searchAttribute:t.searchAttribute,sort:t.sort,error:t.error,disabled:t.disabled,dependsOn:t.dependson,groupBy:t.groupBy,multivalue:t.multivalue,onSearch:e.props.actions.zoneSearch,onFilter:e.props.actions.zoneFilter,onChange:e.props.actions.zoneChange})})):null})),FG(RG(e),"renderRoiPanel",(function(){var t=e.getMethodFromId(e.props.spatialField.method),n=t&&t.filterProps&&t.filterProps.valueField&&e.props.spatialField&&e.props.spatialField.value&&e.props.spatialField.value[t.filterProps.valueField];return d.a.createElement(w.Panel,null,d.a.createElement("div",{className:"container-fluid"},d.a.createElement(w.Row,{className:"filter-field-row filter-field-fixed-row"},d.a.createElement(w.Col,{xs:6},d.a.createElement("span",null,t&&t.name||t.id)),d.a.createElement(w.Col,{xs:6},d.a.createElement(QU,{originalValue:n,key:e.props.spatialField.method,options:t,autocompleteStreamFactory:IU.b,valueField:t&&t.filterProps&&t.filterProps.valueField,textField:t&&t.filterProps&&t.filterProps.valueField,url:t&&t.url,filter:"contains",onChangeSpatialFilterValue:e.props.actions.onChangeSpatialFilterValue,onChangeDrawingStatus:function(){var t;(t=e.props.actions).onChangeDrawingStatus.apply(t,arguments)},filterProps:t&&t.filterProps})))))})),FG(RG(e),"renderSpatialPanel",(function(t,n,r){return d.a.createElement(w.Panel,{className:"spatial-panel"},e.props.spatialMethodOptions.length>1?e.renderSpatialHeader():d.a.createElement("span",null),e.renderZoneFields(),e.props.spatialField.method&&e.getMethodFromId(e.props.spatialField.method)&&"wfsGeocoder"===e.getMethodFromId(e.props.spatialField.method).type?e.renderRoiPanel():null,e.props.spatialOperations.length>1?d.a.createElement(w.Panel,null,d.a.createElement("div",null,t),r&&"DWITHIN"===r.id?e.renderDwithin():null,d.a.createElement(w.Row,null,d.a.createElement(w.Col,{xs:12},n))):d.a.createElement("span",null))})),FG(RG(e),"renderButtons",(function(){var t=[],n=e.props.spatialField.geometry&&(e.props.spatialField.method&&"BBOX"===e.props.spatialField.method||"Circle"===e.props.spatialField.method),r=e.props.spatialField.geometry&&e.props.spatialField.geometry.coordinates;return n&&t.push({glyph:"pencil",onClick:function(){return e.props.actions.onShowSpatialSelectionDetails(!0)},tooltipId:"queryform.spatialfilter.details.detail_button_label"}),r&&t.push({glyph:"clear-filter",tooltipId:"queryform.spatialfilter.remove",onClick:function(){return e.resetSpatialFilter()}}),t})),FG(RG(e),"updateSpatialMethod",(function(t,n,r){e.props.actions.onShowSpatialSelectionDetails(!1);var o=e.props.spatialMethodOptions.filter((function(t){return r===(Object(re.f)(e.context.messages,t.name)||t.name)}))[0].id,i=e.getMethodFromId(o);if(e.props.actions.onSelectSpatialMethod(o,n),"wfsGeocoder"!==e.getMethodFromId(o).type)switch(o){case"ZONE":e.changeDrawingStatus("clean","","queryform",[]);break;case"Viewport":e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onSelectViewportSpatialMethod();break;default:e.changeDrawingStatus("start",o,"queryform",[],{geodesic:i&&i.geodesic,stopAfterDrawing:!0})}else e.changeDrawingStatus("clean","","queryform",[])})),FG(RG(e),"updateSpatialOperation",(function(t,n,r){var o=e.props.spatialOperations.filter((function(t){return r===Object(re.f)(e.context.messages,t.name)}))[0].id;e.props.actions.onSelectSpatialOperation(o,n)})),FG(RG(e),"resetSpatialFilter",(function(){e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onRemoveSpatialSelection(),e.props.actions.onShowSpatialSelectionDetails(!1)})),FG(RG(e),"changeDrawingStatus",(function(t,n,r,o,i){e.props.actions.onChangeDrawingStatus(t,void 0!==n?n:e.props.spatialField.method,r,o,i)})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.spatialOperations.filter((function(t){return e.props.spatialField.operation===t.id}))[0],n=d.a.createElement("span",null);"ZONE"!==this.props.spatialField.method&&"Viewport"!==this.props.spatialField.method&&this.getMethodFromId(this.props.spatialField.method)&&"wfsGeocoder"!==this.getMethodFromId(this.props.spatialField.method).type&&(n=this.props.spatialField.geometry?null:d.a.createElement("span",null,d.a.createElement("div",{className:"m-label m-caption text-center"},d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.draw_start_label"}))));var r=this.getMethodFromId(this.props.spatialField.method),o=this.props.showDetailsPanel?d.a.createElement(yG,{useMapProjection:this.props.useMapProjection,enableGeodesic:r&&r.geodesic,geometry:this.props.spatialField.geometry,type:this.props.spatialField.method,onShowPanel:this.props.actions.onShowSpatialSelectionDetails,onChangeDrawingStatus:this.changeDrawingStatus,zoom:this.props.zoom,projection:this.props.projection}):d.a.createElement("span",null),i=d.a.createElement(w.Row,{className:"filter-field-row inline-form filter-field-fixed-row"},d.a.createElement(w.Col,{xs:6},d.a.createElement(LT.Message,{msgId:"queryform.spatialfilter.geometric_operation"})),d.a.createElement(w.Col,{xs:6},d.a.createElement(XE,{fieldOptions:this.props.spatialOperations.map((function(t){return Object(re.f)(e.context.messages,t.name)})),fieldName:"operation",fieldRowId:(new Date).getTime(),fieldValue:Object(re.f)(this.context.messages,t?t.name:""),onUpdateField:this.updateSpatialOperation})));return d.a.createElement("div",{className:"query-filter-container"},this.props.withContainer?d.a.createElement(cT.a,{id:"spatialFilterPanel",header:this.renderHeader(),buttons:this.renderButtons(),collapsible:!0,expanded:this.props.spatialPanelExpanded,onSwitch:function(t){return e.props.actions.onExpandSpatialFilterPanel(t)}},this.renderSpatialPanel(i,n,t)):this.renderSpatialPanel(i,n,t),o)}}])&&MG(t.prototype,n),r&&MG(t,r),i}(d.a.Component);FG(zG,"propTypes",{useMapProjection:f.a.bool,spatialField:f.a.object,spatialOperations:f.a.array,spatialMethodOptions:f.a.array,spatialPanelExpanded:f.a.bool,showDetailsPanel:f.a.bool,withContainer:f.a.bool,actions:f.a.object,zoom:f.a.number,projection:f.a.string}),FG(zG,"contextTypes",{messages:f.a.object}),FG(zG,"defaultProps",{useMapProjection:!0,spatialField:{},spatialPanelExpanded:!0,showDetailsPanel:!1,withContainer:!0,spatialMethodOptions:[],spatialOperations:[],actions:{onExpandSpatialFilterPanel:function(){},onSelectSpatialMethod:function(){},onSelectSpatialOperation:function(){},onChangeSpatialFilterValue:function(){},onChangeDrawingStatus:function(){},onRemoveSpatialSelection:function(){},onShowSpatialSelectionDetails:function(){},onSelectViewportSpatialMethod:function(){},onChangeRegion:function(){},onChangeDwithinValue:function(){},zoneFilter:function(){},zoneSearch:function(){},zoneChange:function(){}}});var BG=zG;function qG(e){return(qG="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 UG(){return(UG=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerExpanded,n=void 0===t||t,r=e.spatialOperations,o=e.expandCrossLayerFilterPanel,i=void 0===o?function(){}:o,a=e.layers,s=void 0===a?[]:a,l=e.errorObj,u=e.loadingAttributes,c=e.loadingCapabilities,p=e.searchUrl,f=e.queryCollection,h=void 0===f?{}:f,m=e.attributes,g=void 0===m?[]:m,y=e.operation,b=e.updateLogicCombo,x=void 0===b?function(){}:b,_=e.resetCrossLayerFilter,O=void 0===_?function(){}:_,S=e.setOperation,j=void 0===S?function(){}:S,E=e.setQueryCollectionParameter,C=void 0===E?function(){}:E,T=e.addCrossLayerFilterField,k=void 0===T?function(){}:T,A=e.updateCrossLayerFilterField,P=void 0===A?function(){}:A,M=e.removeCrossLayerFilterField,I=void 0===M?function(){}:M,D=h.typeName,N=h.geometryName,R=h.filterFields,L=h.groupFields,F=void 0===L?[{id:1,logic:"OR",index:0}]:L;return d.a.createElement(cT.a,{loading:c,expanded:n&&!c&&!l,error:l,errorMsgId:"queryPanel",buttons:dU(D?[{glyph:"clear-filter",tooltipId:"queryform.crossLayerFilter.clear",onClick:function(){return O()}}]:[]),onSwitch:i,title:d.a.createElement(v.default,{msgId:"queryform.crossLayerFilter.title"})},d.a.createElement(w.Row,{className:"inline-form filter-field-fixed-row"},d.a.createElement(w.Col,{xs:6},d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"queryform.crossLayerFilter.targetLayer"}))),d.a.createElement(w.Col,{xs:6},d.a.createElement(Go.default,{clearable:!1,disabled:c||!!l,isLoading:u,options:s.filter((function(e){return fU(p,e)})).map((function(e){return{label:e.title||e.name,value:e.name}})),placeholder:d.a.createElement(v.default,{msgId:"queryform.crossLayerFilter.placeholder"}),filter:"contains",value:D,onChange:function(e){C("typeName",e&&e.value)}}))),D&&N?d.a.createElement(w.Row,{className:"inline-form filter-field-fixed-row"},d.a.createElement(w.Col,{xs:6},d.a.createElement("div",null,d.a.createElement(v.default,{msgId:"queryform.crossLayerFilter.operation"}))),d.a.createElement(w.Col,{xs:6},d.a.createElement(cU,{value:y,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return j(t)},spatialOperations:hU(r)}))):null,D&&N&&y?d.a.createElement(w.Row,{className:"filter-field-fixed-row"},d.a.createElement(w.Col,{xs:12},d.a.createElement(ZT,{autocompleteEnabled:!1,withContainer:!1,attributes:g,groupLevels:-1,filterFields:R,actions:{onUpdateLogicCombo:x,onAddFilterField:k,onUpdateFilterField:P,onRemoveFilterField:I},groupFields:F,filterField:!0}))):null)})),QG=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&&VG(e,t)}(i,e);var t,n,r,o=WG(i);function i(){return GG(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){if(""!==this.props.featureTypeError)return d.a.createElement("div",{style:{margin:"0 auto","text-align":"center"}},this.props.featureTypeErrorText);var e=d.a.createElement("div",{className:"m-header"},this.props.header,d.a.createElement(MU,{sendFilters:{attributeFilter:this.props.attributePanelExpanded,spatialFilter:this.props.spatialPanelExpanded,crossLayerFilter:this.props.crossLayerExpanded},params:this.props.params,filterFields:this.props.filterFields,groupFields:this.props.groupFields,spatialField:this.props.spatialField,toolbarEnabled:this.props.toolbarEnabled,searchUrl:this.props.searchUrl,showGeneratedFilter:this.props.showGeneratedFilter,featureTypeName:this.props.featureTypeName,ogcVersion:this.props.ogcVersion,filterType:this.props.filterType,actions:this.props.queryToolbarActions,resultTitle:this.props.resultTitle,pagination:this.props.pagination,sortOptions:this.props.sortOptions,crossLayerFilter:this.props.crossLayerFilterOptions.crossLayerFilter,hits:this.props.hits,allowEmptyFilter:this.props.allowEmptyFilter,emptyFilterWarning:this.props.emptyFilterWarning,appliedFilter:this.props.appliedFilter,storedFilter:this.props.storedFilter,advancedToolbar:this.props.advancedToolbar,loadingError:this.props.loadingError}));return this.props.attributes.length>0?d.a.createElement(qo.a,{header:e,className:"mapstore-query-builder",id:"query-form-panel"},d.a.createElement(ZT,{autocompleteEnabled:this.props.autocompleteEnabled,maxFeaturesWPS:this.props.maxFeaturesWPS,attributes:this.props.attributes,groupLevels:this.props.groupLevels,filterFields:this.props.filterFields,groupFields:this.props.groupFields,removeButtonIcon:this.props.removeButtonIcon,addButtonIcon:this.props.addButtonIcon,attributePanelExpanded:this.props.attributePanelExpanded,actions:this.props.attributeFilterActions}),this.props.toolsOptions.hideSpatialFilter?null:d.a.createElement(BG,{useMapProjection:this.props.useMapProjection,spatialField:this.props.spatialField,spatialOperations:this.props.spatialOperations,spatialMethodOptions:this.props.spatialMethodOptions,spatialPanelExpanded:this.props.spatialPanelExpanded,showDetailsPanel:this.props.showDetailsPanel,actions:this.props.spatialFilterActions,zoom:this.props.zoom,projection:this.props.projection}),this.props.toolsOptions.hideCrossLayer?null:d.a.createElement(ZG,UG({spatialOperations:this.props.spatialOperations,crossLayerExpanded:this.props.crossLayerExpanded,searchUrl:this.props.searchUrl,featureTypeName:this.props.featureTypeName},this.props.crossLayerFilterOptions,this.props.crossLayerFilterActions))):d.a.createElement("div",{style:{margin:"0 auto",width:"60px"}},d.a.createElement(uq.a,{spinnerName:"three-bounce",overrideSpinnerClassName:"spinner"}))}}])&&HG(t.prototype,n),r&&HG(t,r),i}(d.a.Component);XG(QG,"propTypes",{params:f.a.object,featureTypeConfigUrl:f.a.string,useMapProjection:f.a.bool,attributes:f.a.array,featureTypeError:f.a.string,featureTypeErrorText:f.a.node,groupLevels:f.a.number,maxFeaturesWPS:f.a.number,filterFields:f.a.array,groupFields:f.a.array,spatialField:f.a.object,removeButtonIcon:f.a.string,addButtonIcon:f.a.string,attributePanelExpanded:f.a.bool,spatialPanelExpanded:f.a.bool,crossLayerExpanded:f.a.bool,showDetailsPanel:f.a.bool,toolbarEnabled:f.a.bool,searchUrl:f.a.string,showGeneratedFilter:f.a.oneOfType([f.a.bool,f.a.string]),filterType:f.a.string,featureTypeName:f.a.string,ogcVersion:f.a.string,attributeFilterActions:f.a.object,spatialFilterActions:f.a.object,queryToolbarActions:f.a.object,resultTitle:f.a.string,pagination:f.a.object,sortOptions:f.a.object,spatialOperations:f.a.array,spatialMethodOptions:f.a.array,crossLayerFilterOptions:f.a.object,crossLayerFilterActions:f.a.object,hits:f.a.bool,maxHeight:f.a.number,allowEmptyFilter:f.a.bool,autocompleteEnabled:f.a.bool,emptyFilterWarning:f.a.bool,header:f.a.node,zoom:f.a.number,projection:f.a.string,toolsOptions:f.a.object,appliedFilter:f.a.object,storedFilter:f.a.object,advancedToolbar:f.a.bool,loadingError:f.a.bool}),XG(QG,"defaultProps",{params:{},featureTypeConfigUrl:null,useMapProjection:!0,groupLevels:1,groupFields:[],filterFields:[],attributes:[],spatialMethodOptions:[],spatialOperations:[],featureTypeError:"",spatialField:{},crossLayerFilter:null,removeButtonIcon:"trash",addButtonIcon:"glyphicon glyphicon-plus",attributePanelExpanded:!0,spatialPanelExpanded:!0,showDetailsPanel:!1,toolbarEnabled:!0,searchUrl:"",showGeneratedFilter:!1,featureTypeName:null,pagination:null,sortOptions:null,hits:!1,maxHeight:830,allowEmptyFilter:!1,autocompleteEnabled:!0,emptyFilterWarning:!1,advancedToolbar:!1,loadingError:!1,attributeFilterActions:{onAddGroupField:function(){},onAddFilterField:function(){},onRemoveFilterField:function(){},onUpdateFilterField:function(){},onUpdateExceptionField:function(){},onUpdateLogicCombo:function(){},onRemoveGroupField:function(){},onChangeCascadingValue:function(){},onExpandAttributeFilterPanel:function(){}},spatialFilterActions:{onExpandSpatialFilterPanel:function(){},onSelectSpatialMethod:function(){},onSelectSpatialOperation:function(){},onChangeDrawingStatus:function(){},onRemoveSpatialSelection:function(){},onShowSpatialSelectionDetails:function(){},onSelectViewportSpatialMethod:function(){},onChangeDwithinValue:function(){}},crossLayerFilterOptions:{},crossLayerFilterActions:{},queryToolbarActions:{onQuery:function(){},onReset:function(){},onChangeDrawingStatus:function(){},onSaveFilter:function(){},onRestoreFilter:function(){}},toolsOptions:{}});var $G=QG,JG=n("./MapStore2/web/client/components/misc/enhancers/popover.js");function eH(){return(eH=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.loadingError,n=e.onToggleQuery,r=void 0===n?function(){}:n;return d.a.createElement("div",{className:"mapstore-block-width"},d.a.createElement(Ne.a,{id:"toc-query-close-button",key:"menu-button",className:"square-button no-border",onClick:function(){return r()}},d.a.createElement(w.Glyphicon,{glyph:"arrow-left"})),t&&d.a.createElement(tH,{popover:{text:d.a.createElement(v.default,{msgId:"queryform.loadingError"})}})||d.a.createElement("div",{className:"square-button pull-right no-border",style:{display:"flex"}},d.a.createElement(w.Glyphicon,{glyph:"filter",className:"text-primary"})))},rH=n("./MapStore2/web/client/utils/ogc/WPS/autocomplete.js"),oH={isAutoCompleteEnabled:function(e,t){return e.ofType(wM.f).switchMap((function(e){var n=Object(jt.getParsedUrl)(e.url,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:"gs:PagedUnique"},Object(de.b)(t.getState()));return null===n?Ut.a.Observable.of(Object(bM.mb)(!1)):Ut.a.Observable.fromPromise(kt.a.post(n,null,{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return e.data}))).switchMap((function(e){return Object(le.startsWith)(e,"0&&void 0!==arguments[0]?arguments[0]:{},t=e.crossLayerFilter,n=e.spatialField,r=e.filterFields;return!!(r&&Object(le.head)(r)||n&&n.method&&n.operation&&n.geometry||t&&t.collectGeometries&&t.operation)}(e.filterObj)?aH({},Object(le.get)(n(),"queryform",{})):void 0;return t&&(t.filterFields=t.attributePanelExpanded&&t.filterFields||[],t.spatialField=t.spatialPanelExpanded&&t.spatialField||null,t.crossLayerFilter=t.crossLayerExpanded&&Object(zC.setupCrossLayerFilterDefaults)(t.crossLayerFilter)||null),Ut.a.Observable.of(function(e,t){return Object(_.I)(e,{layerFilter:t})}(r.id,t))}))).let(function(e){return function(t){return t.takeUntil(e.ofType(x.d).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.property;return"queryPanel"===t&&(!n||"enabled"===n)})).merge(e.ofType(vM.b)))}}(e)).concat(Ut.a.Observable.from([Object(wM.z)(),Object(bM.gb)(),Object(yM.f)("clean","","queryform",[],{})]))}))},restoreSavedFilter:function(e,t){var n=t.getState;return e.ofType("LAYER_FILTER:DISCARD_CURRENT_FILTER").switchMap((function(){var e={typeName:Object(le.get)(n(),"state.query.typeName")},t=Object(le.get)(n(),"state.query.url"),r=Object(le.get)(n(),"layerFilter.persisted");return Ut.a.Observable.of(Object(yM.f)("clean","","queryform",[]),Object(bM.ab)(r),Object(bM.ib)(t,r,e),Object(wM.v)())}))},onApplyFilter:function(e,t){var n=t.getState;return e.ofType("LAYER_FILTER:APPLY_FILTER").map((function(){var e=aH({},Object(le.get)(n(),"queryform",{}));return{type:"LAYER_FILTER:APPLIED_FILTER",filter:e}}))}},uH={updateSpatialFilterValue:function(e){return e.ofType(bM.h).switchMap((function(e){var t=e.feature,n=e.srsName,r=e.style,o=e.options;return qt.Observable.of(Object(yM.f)("drawOrEdit",t.geometry.type,"queryform",[t],{editEnabled:!1,stopAfterDrawing:!0,featureProjection:n},r)).concat(t&&o&&o.autoZoom?[Object(G.I)(Tz()(t),n)]:[])}))}},cH=n("./node_modules/url/url.js"),dH=n("./MapStore2/web/client/selectors/dimension.js");function pH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return"cql_filter"===e.toLowerCase()})),p=Object(zC.mergeFiltersToOGC)({ogcVersion:"1.1.0"},d,u,n.filterObj),f=function(e,t,n){var r=Object(Rz.A)(n),o=Object(dH.d)({id:r},"time")(n),i=Object(V.g)(n,r)||{},a=Object(le.get)(i,'params["time"]');if(Object(Rz.G)(n)&&o&&a){var s=Object(cH.parse)(e)||{};return{url:Object(cH.format)(fH(fH({},s),{},{query:fH(fH({},s.query),{},{time:a})})),options:t}}return{url:e,options:t}}(s,n.queryOptions||{},t.getState()),h=f.url,m=f.options,g=gH(gH({},n.filterObj.pagination),{},{totalFeatures:a,sortOptions:i},m);return Ut.a.Observable.merge(Object(MM.b)(gH(gH({},l),{},{search:gH(gH({},l.search),{},{url:h})}),p,g).map((function(e){return Object(wM.y)(e,n.searchUrl,n.filterObj,n.queryOptions,n.reason)})).catch((function(e){return Ut.a.Observable.of(Object(wM.x)(e))})).startWith(Object(wM.r)(!0)).concat(Ut.a.Observable.of(Object(wM.r)(!1)))).takeUntil(e.ofType(wM.p))}))},_H=function(e,t){return e.ofType(bM.y,G.e).switchMap((function(e){var n=e.type===G.e?e:Object(X.l)(t.getState());if((e.type===bM.y||e.type===G.e&&"Viewport"===Object(Lz.j)(t.getState()))&&n.bbox&&n.bbox.bounds&&n.bbox.crs){var r=Object.keys(n.bbox.bounds).reduce((function(e,t){return ie()({},e,yH({},t,parseFloat(n.bbox.bounds[t])))}),{});return Ut.a.Observable.of(Object(bM.ub)(Yo.default.getViewportGeometry(r,n.bbox.crs)))}return Ut.a.Observable.empty()}))},OH=function(e,t){return e.ofType(wM.g).switchMap((function(){var e=t.getState(),n=Object(Lz.k)(e),r={type:"Feature",geometry:{type:Object(Lz.i)(e),coordinates:Object(Lz.f)(e)}},o=Object(Lz.h)(e)?Object(yM.f)("drawOrEdit",n.method||"","queryform",[r],{featureProjection:Object(Lz.g)(e),drawEnabled:!1,editEnabled:!1}):Object(yM.f)("clean",n.method||"","queryform",[],{drawEnabled:!1,editEnabled:!1});return Ut.a.Observable.of(o)}))};function SH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:CH,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LAYER_FILTER:INIT_LAYER_FILTER":return jH(jH({},CH),{},{persisted:t.filter,applied:t.filter});case"LAYER_FILTER:DISCARD_CURRENT_FILTER":return jH(jH({},e),{},{applied:e.persisted});case"LAYER_FILTER:APPLIED_FILTER":return jH(jH({},e),{},{applied:t.filter});case"LAYER_FILTER:STORE_CURRENT_APPLIED_FILTER":return jH(jH({},e),{},{persisted:e.applied});case bM.n:return jH(jH({},e),{},{applied:void 0});default:return e}},kH=n("./MapStore2/web/client/reducers/query.js"),AH=n("./MapStore2/web/client/reducers/queryform.js");function PH(e){return(PH="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 MH(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cV(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xV=Object(Vn.a)(Ne.a),_V=function(e){var t=e.record,n=e.service,r=e.children,o=e.addLayer,i=void 0===o?function(){}:o,a=wV(e,["record","service","children","addLayer"]),s=bV(Object(c.useState)(!1),2),l=s[0],u=s[1];return d.a.createElement(xV,yV({disabled:l},a,{onClick:function(){var e;u(!0),(e=t.tileMapUrl,kt.a.get(e).then((function(e){return new Promise((function(t){Ct.a.parseString(e.data,{explicitArray:!1},(function(e,n){return t(n)}))}))}))).then((function(e){u(!1),i(Object(VM.i)(t,e,n))}))}}),l?d.a.createElement(nN.a,null):r)};function OV(){return(OV=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jV=Object(Vn.a)(Ne.a),EV=function(e){var t=e.record,n=e.service,r=e.children,o=e.addLayer,i=void 0===o?function(){}:o,a=SV(e,["record","service","children","addLayer"]);return d.a.createElement(jV,OV({},a,{onClick:function(){i(Object(VM.h)(t,n))}}),r)},CV=n("./MapStore2/web/client/components/catalog/img/default.jpg"),TV=n.n(CV),kV=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js");function AV(e){return(AV="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 PV(e){return function(e){if(Array.isArray(e))return MV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return MV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MV(e,t)}(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 MV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&p.push(d.a.createElement(gV,{key:"sharing-links",popoverContainer:BV(e),links:h,onCopy:e.props.onCopy,buttonSize:e.props.buttonSize,addAuthentication:e.props.addAuthentication}))}return p})),UV(BV(e),"renderDescription",(function(t){if(!t)return null;var n=Object(re.f)(e.context.messages,"catalog.notAvailable");return e.state.fullText&&t.metadataTemplate?d.a.createElement("div",{className:"catalog-metadata ql-editor"},d.a.createElement(ia.a,{html:Object(DU.parseCustomTemplate)(t.metadataTemplate,t.metadata,(function(e){return"".concat(Object(le.trim)(e.substring(2,e.length-1))," ").concat(n)}))})):t.metadataTemplate?"":Object(le.isArray)(t.description)?t.description.join(", "):t.description})),UV(BV(e),"isLinkCopied",(function(t){return e.state[t]})),UV(BV(e),"setLinkCopiedStatus",(function(t,n){e.setState(UV({},t,n))})),UV(BV(e),"getLayerFormat",(function(t){return 0===t.length||t.filter((function(t){return t===e.props.defaultFormat})).length>0?e.props.defaultFormat:t[0]})),UV(BV(e),"makeLayer",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e.props.defaultFormat],o=Object(VM.a)(n.SRS);if(n.SRS.length>0&&!Object(Yo.isAllowedSRS)(e.props.crs,o))return e.props.onError("catalog.srs_not_allowed"),null;var i=e.props.service&&e.props.service.localizedLayerStyles;return Object(VM.g)(e.props.record,t,DV({removeParams:e.props.authkeyParamNames},"wms"===t?{catalogURL:"csw"===e.props.catalogType&&e.props.catalogURL?e.props.catalogURL+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+e.props.record.identifier:null,format:e.getLayerFormat(r.filter((function(e){return 0===e.indexOf("image/")})))}:{format:e.getLayerFormat(r.filter((function(e){return 0===e.indexOf("image/")})))}),e.props.layerBaseConfig,i)})),UV(BV(e),"addLayer",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.background;if("backgroundSelector"===e.props.source)r?(e.props.onLayerAdd(DV(DV({},t),{},{group:"background"}),{source:e.props.source}),e.props.onAddBackground(t.id)):e.props.onAddBackgroundProperties({editing:!1,layer:t},!0);else{var o=e.props.zoomToLayer;e.props.onLayerAdd(t,{zoomToLayer:o})}})),UV(BV(e),"displayExpand",(function(){return(e.descriptionRuler?e.descriptionRuler.clientWidth:0)>(e.sideCardDesc?e.sideCardDesc.clientWidth:0)})),e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=Object(re.f)(this.context.messages,"catalog.notAvailable"),t=this.props.record;this.setState({visibleExpand:!this.props.hideExpand&&(this.displayExpand()||!!(this.props.showTemplate&&t&&t.metadataTemplate&&Object(DU.parseCustomTemplate)(t.metadataTemplate,t.metadata,(function(t){return"".concat(Object(le.trim)(t.substring(2,t.length-1))," ").concat(e)}))))})}},{key:"UNSAFE_componentWillMount",value:function(){document.addEventListener("click",this.handleClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClick,!1)}},{key:"render",value:function(){var e=this,t=this.props.record,n=Object(VM.d)(t),r=n.wms,o=n.wmts,i=n.tms,a=n.wfs,s=Object(VM.c)(t).esri,l=t&&"tileprovider"===t.type&&t.provider,u=t&&t.background,c=u&&Object(le.head)((this.props.layers||[]).filter((function(e){return e.id===u.name||e.type===u.type&&e.source===u.source&&e.name===u.name})));return t?d.a.createElement("div",null,d.a.createElement(VA.a,{style:{transform:"none",opacity:c?.4:1},fullText:this.state.fullText,preview:!this.props.hideThumbnail&&this.renderThumb(t&&t.thumbnail||u&&kV.a[u.source][u.name],t),title:t&&this.getTitle(t.title),description:d.a.createElement("span",null,d.a.createElement("div",{className:!0,ref:function(t){e.sideCardDesc=t}},this.renderDescription(t))),caption:d.a.createElement("div",null,!this.props.hideIdentifier&&d.a.createElement("div",{className:"identifier"},t&&t.identifier),d.a.createElement("div",null,!r&&!o&&!s&&!u&&!i&&!l&&!a&&d.a.createElement("small",{className:"text-danger"},d.a.createElement(v.default,{msgId:"catalog.missingReference"}))),!this.props.hideExpand&&d.a.createElement("div",{className:"ms-ruler",style:{visibility:"hidden",height:0,whiteSpace:"nowrap",position:"absolute"},ref:function(t){e.descriptionRuler=t}},this.renderDescription(t))),tools:d.a.createElement(Uo.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},btnGroupProps:{style:{margin:10}},buttons:[].concat(PV((t&&this.renderButtons(t,c)||[]).map((function(e){return{Element:function(){return e}}}))),[{glyph:this.state.fullText?"chevron-down":"chevron-left",visible:this.state.visibleExpand,tooltipId:this.state.fullText?"collapse":"expand",onClick:function(){return e.setState({fullText:!e.state.fullText})}}])})})):null}}])&&RV(t.prototype,n),r&&RV(t,r),i}(d.a.Component);UV(HV,"propTypes",{addAuthentication:f.a.bool,authkeyParamNames:f.a.array,buttonSize:f.a.string,catalogURL:f.a.string,catalogType:f.a.string,crs:f.a.string,currentLocale:f.a.string,hideThumbnail:f.a.bool,hideExpand:f.a.bool,hideIdentifier:f.a.bool,layerBaseConfig:f.a.object,onCopy:f.a.func,onError:f.a.func,onLayerAdd:f.a.func,record:f.a.object,showGetCapLinks:f.a.bool,zoomToLayer:f.a.bool,onPropertiesChange:f.a.func,onLayerChange:f.a.func,layers:f.a.array,onAdd:f.a.func,source:f.a.string,onAddBackgroundProperties:f.a.func,deletedId:f.a.string,clearModal:f.a.func,service:f.a.service,showTemplate:f.a.bool,defaultFormat:f.a.string,formatOptions:f.a.array}),UV(HV,"defaultProps",{buttonSize:"small",crs:"EPSG:3857",currentLocale:"en-US",onAddBackgroundProperties:function(){},hideThumbnail:!1,hideIdentifier:!1,hideExpand:!1,layerBaseConfig:{},onCopy:function(){},onError:function(){},onLayerAdd:function(){},onPropertiesChange:function(){},onLayerChange:function(){},clearModal:function(){},style:{},showGetCapLinks:!1,zoomToLayer:!0,layers:[],onAdd:function(){},source:"metadataExplorer",showTemplate:!1,changeLayerProperties:function(){},defaultFormat:"image/png"}),UV(HV,"contextTypes",{messages:f.a.object});var VV=HV;function WV(e){return(WV="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 YV(){return(YV=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.services,r=t.selectedService,o=t.start,i=void 0===o?1:o,a=t.searchText,s=void 0===a?"":a,l=n[r].url,u=n[r].type;e.props.onSearch({format:u,url:l,startPosition:i,maxRecords:e.props.pageSize,text:s||"",options:{service:e.props.services[r]}})})),mW(fW(e),"reset",(function(){e.props.onReset()})),mW(fW(e),"handlePage",(function(t){if(t){var n=(t-1)*e.props.pageSize+1;e.search({services:e.props.services,selectedService:e.props.selectedService,start:n,searchText:e.props.searchText})}})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.selectedService&&this.isValidServiceSelected()&&this.props.services[this.props.selectedService].autoload&&this.search({services:this.props.services,selectedService:this.props.selectedService,searchText:this.props.searchText})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e!==this.props&&(("view"===e.mode&&"edit"===this.props.mode||e.services!==this.props.services||e.selectedService!==this.props.selectedService)&&e.active&&this.props.active&&e.selectedService&&e.services[e.selectedService]&&e.services[e.selectedService].autoload&&this.search({services:e.services,selectedService:e.selectedService,searchText:e.searchText}),e.active&&!1===this.props.active&&e.selectedService&&e.services[e.selectedService]&&e.services[e.selectedService].autoload&&this.search({services:e.services,selectedService:e.selectedService,searchText:e.searchText}))}},{key:"render",value:function(){var e=this;return d.a.createElement(qo.a,{key:"catalog-BorderLayout",bodyClassName:"ms2-border-layout-body catalog",header:d.a.createElement(w.Form,null,d.a.createElement(w.FormGroup,{controlId:"labelService",key:"labelService"},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.service"}))),d.a.createElement(w.FormGroup,{controlId:"service",key:"service"},d.a.createElement(w.InputGroup,null,d.a.createElement(Go.default,{clearValueText:Object(re.f)(this.context.messages,"catalog.clearValueText"),noResultsText:Object(re.f)(this.context.messages,"catalog.noResultsText"),clearable:!0,options:this.getServices(),value:this.props.selectedService,onChange:function(t){return e.props.onChangeSelectedService(t&&t.value?t.value:"")},placeholder:Object(re.f)(this.context.messages,"catalog.servicePlaceholder")}),this.isValidServiceSelected()&&"default_map_backgrounds"!==this.props.selectedService?d.a.createElement(w.InputGroup.Addon,{className:"btn",onClick:function(){return e.props.onChangeCatalogMode("edit",!1)}},d.a.createElement(w.Glyphicon,{glyph:"pencil"})):null,d.a.createElement(w.InputGroup.Addon,{className:"btn",onClick:function(){return e.props.onChangeCatalogMode("edit",!0)}},d.a.createElement(w.Glyphicon,{glyph:"plus"})))),d.a.createElement(w.FormGroup,{controlId:"searchText",key:"searchText"},this.renderTextSearch()),d.a.createElement(w.FormGroup,{controlId:"buttons",key:"buttons"},this.renderButtons(),this.props.layerError?this.renderError(this.props.layerError):null)),footer:this.renderPagination()},this.props.loading?this.renderLoading():this.renderResult())}}])&&uW(t.prototype,n),r&&uW(t,r),i}(d.a.Component);mW(gW,"propTypes",{active:f.a.bool,searchText:f.a.string,addAuthentication:f.a.bool,buttonClassName:f.a.string,buttonStyle:f.a.object,currentLocale:f.a.string,loading:f.a.bool,format:f.a.string,crs:f.a.string,gridOptions:f.a.object,includeSearchButton:f.a.bool,includeResetButton:f.a.bool,loadingError:f.a.object,layerError:f.a.string,mode:f.a.string,onChangeCatalogMode:f.a.func,onChangeText:f.a.func,onChangeFormat:f.a.func,onChangeSelectedService:f.a.func,onPropertiesChange:f.a.func,onError:f.a.func,onLayerAdd:f.a.func,onReset:f.a.func,onSearch:f.a.func,onAddBackground:f.a.func,pageSize:f.a.number,records:f.a.array,authkeyParamNames:f.a.array,recordItem:f.a.element,result:f.a.object,searchOptions:f.a.object,selectedService:f.a.string,services:f.a.object,showGetCapLinks:f.a.bool,wrapOptions:f.a.bool,zoomToLayer:f.a.bool,hideThumbnail:f.a.bool,hideIdentifier:f.a.bool,hideExpand:f.a.bool,source:f.a.string,onAddBackgroundProperties:f.a.func,modalParams:f.a.object,layers:f.a.array,clearModal:f.a.func,formatOptions:f.a.array,layerBaseConfig:f.a.object}),mW(gW,"contextTypes",{messages:f.a.object}),mW(gW,"defaultProps",{buttonClassName:"search-button",buttonStyle:{marginBottom:"10px",marginRight:"5px"},currentLocale:"en-US",format:"csw",includeSearchButton:!0,includeResetButton:!1,mode:"view",onChangeCatalogMode:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeSelectedService:function(){},onPropertiesChange:function(){},onError:function(){},onLayerAdd:function(){},onReset:function(){},onSearch:function(){},changeLayerProperties:function(){},pageSize:4,records:[],loading:!1,services:{},wrapOptions:!1,zoomToLayer:!0,formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],layerBaseConfig:{},crs:"EPSG:3857"});var yW=gW,bW=function(e){var t=e.children,n=e.service,r=e.isLocalizedLayerStylesEnabled,o=e.onChangeMetadataTemplate,i=void 0===o?function(){}:o,a=e.onChangeServiceProperty,s=void 0===a?function(){}:a,l=e.onToggleTemplate,u=void 0===l?function(){}:l,c=e.onToggleThumbnail,p=void 0===c?function(){}:c;return d.a.createElement("div",null,d.a.createElement(w.FormGroup,{controlId:"autoload",key:"autoload"},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Checkbox,{value:"autoload",onChange:function(e){return s("autoload",e.target.checked)},checked:!Object(le.isNil)(n.autoload)&&n.autoload},d.a.createElement(v.default,{msgId:"catalog.autoload"})))),d.a.createElement(w.FormGroup,{controlId:"thumbnail",key:"thumbnail"},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Checkbox,{onChange:function(){return p()},checked:!!Object(le.isNil)(n.hideThumbnail)||!n.hideThumbnail},d.a.createElement(v.default,{msgId:"catalog.showPreview"})))),!(!r||Object(le.isNil)(n.type))&&"wms"===n.type&&d.a.createElement(w.FormGroup,{controlId:"localized-styles",key:"localized-styles"},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Checkbox,{"data-qa":"service-lacalized-layer-styles-option",onChange:function(e){return s("localizedLayerStyles",e.target.checked)},checked:!Object(le.isNil)(n.localizedLayerStyles)&&n.localizedLayerStyles},d.a.createElement(v.default,{msgId:"catalog.enableLocalizedLayerStyles.label"})," ",d.a.createElement(lj.a,{text:d.a.createElement(v.default,{msgId:"catalog.enableLocalizedLayerStyles.tooltip"})})))),!Object(le.isNil)(n.type)&&"csw"===n.type&&d.a.createElement(w.FormGroup,{controlId:"metadata-template",key:"metadata-template",className:"metadata-template-editor"},d.a.createElement(w.Col,{xs:12},d.a.createElement(w.Checkbox,{onChange:function(){return u()},checked:n&&n.showTemplate},d.a.createElement(v.default,{msgId:"catalog.showTemplate"})),d.a.createElement("br",null)),n&&n.showTemplate&&d.a.createElement(w.Col,{xs:12},d.a.createElement("span",null,d.a.createElement("p",null,d.a.createElement(v.default,{msgId:"layerProperties.templateFormatInfoAlert2",msgParams:{attribute:"{ }"}}),"  "),d.a.createElement("pre",null,d.a.createElement(v.default,{msgId:"catalog.templateFormatDescriptionExample"})," ${ description }"))),d.a.createElement(w.Col,{xs:12},n&&n.showTemplate&&d.a.createElement(x_.a,{modules:{toolbar:[[{size:["small",!1,"large","huge"]},"bold","italic","underline","blockquote"],[{list:"bullet"},{align:[]}],[{color:[]},{background:[]},"clean"],["link"]]},value:n.metadataTemplate||"",onChange:function(e){i(e&&"


"!==e?e:"")}}))),t)};n("./node_modules/codemirror/addon/lint/lint.js"),n("./node_modules/codemirror/addon/lint/json-lint.js"),n("./node_modules/codemirror/mode/javascript/javascript.js");function vW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wW(e,t)}(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 wW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EW=function(e){return e.map((function(e){return{label:"".concat(e,"x").concat(e),value:e}}))},CW=function(e){var t,n=e.service,r=e.formatOptions,o=e.onChangeServiceFormat,i=void 0===o?function(){}:o,a=e.onChangeServiceProperty,s=void 0===a?function(){}:a,l=e.tileSizeOptions,u=(e.currentWMSCatalogLayerSize,e.selectedService,jW(e,["service","formatOptions","onChangeServiceFormat","onChangeServiceProperty","tileSizeOptions","currentWMSCatalogLayerSize","selectedService"])),c=EW(l);return d.a.createElement(bW,SW({onChangeServiceProperty:s,service:n},u),d.a.createElement(w.FormGroup,{style:{display:"flex",alignItems:"center",paddingTop:15,borderTop:"1px solid #ddd"}},d.a.createElement(w.Col,{xs:6},d.a.createElement(w.ControlLabel,null,"Format")),d.a.createElement(w.Col,{xs:6},d.a.createElement(Go.default,{value:n&&n.format,clearable:!0,options:r,onChange:function(e){return i(e&&e.value)}}))),d.a.createElement(w.FormGroup,{style:{display:"flex",alignItems:"center",paddingTop:15,borderTop:"1px solid #ddd"}},d.a.createElement(w.Col,{xs:6},d.a.createElement(w.ControlLabel,null,"WMS Layer tile size")),d.a.createElement(w.Col,{xs:6},d.a.createElement(Go.default,{value:EW([(null===(t=n.layerOptions)||void 0===t?void 0:t.tileSize)||256])[0],options:c,onChange:function(e){return s("layerOptions",{tileSize:e&&e.value})}}))))};function TW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var kW=function(e){var t=e.onToggleAdvancedSettings,n=void 0===t?function(){}:t,r=TW(e,["onToggleAdvancedSettings"]),o=r.service,i=void 0===o?{}:o,a=function(e){switch(e){case"tms":return OW;case"wmts":case"wfs":return bW;case"wms":case"csw":return CW;default:return bW}}(i.type);return d.a.createElement(cT.a,{useToolbar:!0,title:d.a.createElement(v.default,{msgId:"catalog.advancedSettings"}),expanded:!Object(le.isNil)(i.showAdvancedSettings)&&i.showAdvancedSettings,onSwitch:n},d.a.createElement(a,r))};function AW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return PW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PW(e,t)}(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 PW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0})),g=l===LW?l:null==l||null===(t=l.provider)||void 0===t||null===(n=t.split)||void 0===n||null===(r=n.call(t,"."))||void 0===r?void 0:r[0],y=!g||g===RW,b=g===LW,x=b||y;return d.a.createElement(w.FormGroup,null,d.a.createElement(w.Col,{xs:12,sm:y?3:12,md:x?3:12},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.tms.provider"})),d.a.createElement(NW,{onChange:function(e){var t=e.target.value;a("provider","".concat(t)),t!==RW&&t!==LW?f(t):y||b||f("")},value:g,componentClass:"select"},[RW,LW].concat(IW(m)).map((function(e){return{name:e,label:zW(e)}})).map((function(e){return d.a.createElement("option",{value:e.name,key:e.name},e.label)})))),d.a.createElement(w.Col,{xs:12,sm:9,md:9},y?d.a.createElement(d.a.Fragment,null,d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.tms.urlTemplate"}),"  ",d.a.createElement(lj.a,{text:d.a.createElement(US.a,{msgId:"catalog.tms.urlTemplateHint"})})),d.a.createElement(NW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:"e.g. https://{s}.myUrl.com/{variant}/{z}/{x}/{y}",value:l&&l.url,onChange:function(e){return c(e.target.value)}})):b?d.a.createElement(d.a.Fragment,null,d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.url"})),d.a.createElement(NW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:MW(l),value:l&&l.url,onChange:function(e){return c(e.target.value)}})):null))},qW=function(e){var t=e.service,n=void 0===t?{}:t,r=e.serviceTypes,o=e.onChangeTitle,i=e.onChangeUrl,a=e.onChangeServiceProperty,s=e.onChangeType,l="tms"===n.type?BW:FW;return d.a.createElement(w.Form,{horizontal:!0},d.a.createElement(w.FormGroup,{controlId:"title",key:"type-title-row"},d.a.createElement(w.Col,{key:"type",xs:12,sm:3,md:3},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.type"})),d.a.createElement(NW,{onChange:function(e){return s(e.target.value)},value:n&&n.type,componentClass:"select"},r.map((function(e){return d.a.createElement("option",{value:e.name,key:e.name},e.label)})))),d.a.createElement(w.Col,{key:"title",xs:12,sm:9,md:9},d.a.createElement(w.ControlLabel,null,d.a.createElement(v.default,{msgId:"catalog.serviceTitle"})),d.a.createElement(NW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:"catalog.serviceTitlePlaceholder",value:n&&n.title,onChange:function(e){return o(e.target.value)}}))),d.a.createElement(l,{key:"url-row",serviceTypes:r,service:n,onChangeUrl:i,onChangeTitle:o,onChangeServiceProperty:a}))};n("./node_modules/react-select/dist/react-select.css"),n("./node_modules/react-quill/dist/quill.snow.css");function UW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return GW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GW(e,t)}(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 GW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r:e.props.width,position:"right",bsStyle:"primary",title:d.a.createElement(v.default,{msgId:"catalog.title"}),onClose:function(){return e.props.closeCatalog()},glyph:"folder-open",zIndex:1031,style:e.props.dockStyle},d.a.createElement(w.Panel,{id:e.props.id,style:e.props.panelStyle,className:e.props.panelClassName},n))})))}}])&&KW(t.prototype,n),r&&KW(t,r),i}(d.a.Component);tY(oY,"propTypes",{id:f.a.string,source:f.a.string,active:f.a.bool,searchOnStartup:f.a.bool,serviceTypes:f.a.array,wrap:f.a.bool,wrapWithPanel:f.a.bool,panelStyle:f.a.object,panelClassName:f.a.string,closeCatalog:f.a.func,closeGlyph:f.a.string,buttonStyle:f.a.object,services:f.a.object,servicesWithBackgrounds:f.a.object,selectedService:f.a.string,style:f.a.object,dockProps:f.a.object,zoomToLayer:f.a.bool,isLocalizedLayerStylesEnabled:f.a.bool,width:f.a.number,dockStyle:f.a.object,group:f.a.string}),tY(oY,"defaultProps",{id:"mapstore-metadata-explorer",serviceTypes:[{name:"csw",label:"CSW"},{name:"wms",label:"WMS"},{name:"wmts",label:"WMTS"},{name:"tms",label:"TMS",allowedProviders:["OpenStreetMap","OpenSeaMap","Stamen"]},{name:"wfs",label:"WFS"}],active:!1,wrap:!1,modal:!0,wrapWithPanel:!1,panelStyle:{zIndex:100,overflow:"hidden",height:"100%"},panelClassName:"catalog-panel",closeCatalog:function(){},closeGlyph:"1-close",zoomToLayer:!0,width:660,dockProps:{dimMode:"none",fluid:!1,position:"right",zIndex:1030},dockStyle:{},group:null,services:{},servicesWithBackgrounds:{}});var iY=Object(h.connect)(nY,{clearModal:WH.s,onSearch:ce.bb,onLayerAdd:ce.D,closeCatalog:ce.G,onChangeFormat:ce.H,onChangeServiceFormat:ce.L,onChangeUrl:ce.Q,onChangeType:ce.P,onChangeTitle:ce.O,onChangeMetadataTemplate:ce.J,onChangeText:ce.N,onChangeServiceProperty:ce.M,onChangeSelectedService:ce.K,onChangeCatalogMode:ce.I,onAddService:ce.F,onToggleAdvancedSettings:ce.cb,onToggleThumbnail:ce.eb,onToggleTemplate:ce.db,onDeleteService:ce.S,onError:ce.E,onAddBackgroundProperties:WH.o,onFocusServicesList:ce.T,onPropertiesChange:_.I,onAddBackground:WH.q,onToggle:x.h.bind(null,"backgroundSelector",null),onLayerChange:x.g.bind(null,"backgroundSelector"),onStartChange:x.g.bind(null,"backgroundSelector","start")})(oY),aY={MetadataExplorerPlugin:ie()(iY,{BurgerMenu:{name:"metadataexplorer",position:5,text:d.a.createElement(v.default,{msgId:"catalog.title"}),icon:d.a.createElement(w.Glyphicon,{glyph:"folder-open"}),action:x.g.bind(null,"metadataexplorer","enabled",!0,!0),doNotHide:!0},BackgroundSelector:{name:"MetadataExplorer",doNotHide:!0},TOC:{name:"MetadataExplorer",doNotHide:!0}}),reducers:{catalog:n("./MapStore2/web/client/reducers/catalog.js").default},epics:n("./MapStore2/web/client/epics/catalog.js").default(Sn)},sY=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function lY(e){return(lY="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 uY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cY(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.active;return!t}),(function(){return function(){return null}})),Object(h.connect)(Object(L.a)([tj.r,tj.n,tj.j,tj.f,J.d,tj.b,tj.s],(function(e,t,n,r,o,i,a){return{isEditing:"edit"===e,loading:t,layer:n,error:!(!r||!r.availableStyles),userRole:o,canEdit:i,styleService:a}})),{onInit:Ki.w,onUpdateParams:_.fb},(function(e,t,n){var r,o,i,a=(null===(r=n.styleService)||void 0===r?void 0:r.baseUrl)===(null===(o=e.styleService)||void 0===o?void 0:o.baseUrl)&&(null===(i=e.styleService)||void 0===i?void 0:i.isStatic),s=n.styleService&&!a?xY(xY({},n.styleService),{},{isStatic:!0}):xY({},e.styleService);return xY(xY(xY(xY({},n),e),t),{},{styleService:s})})),Object(dO.a)((function(e){return e.error}),{glyph:"exclamation-mark",title:d.a.createElement(US.a,{msgId:"styleeditor.missingAvailableStyles"}),description:d.a.createElement(US.a,{msgId:"styleeditor.missingAvailableStylesMessage"}),style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},mainViewStyle:{margin:"auto",width:300}}),Object(cO.a)((function(e){return"global"===e.loading}),{size:150,style:{margin:"auto"}},(function(e){return d.a.createElement("div",{style:{position:"relative",height:"100%",display:"flex"}},d.a.createElement(kS.a,e))})),Object(F.compose)(Object(h.connect)((function(){return{}}),{toggleStyleEditor:Ki.D}),Object(F.lifecycle)({componentDidMount:function(){this.props.toggleStyleEditor(null,!0)}})))(kY),PY={StyleEditorPlugin:ie()(AY,{TOC:{priority:1,container:"TOCItemSettings"},TOCItemsSettings:{name:"StyleEditor",target:"style",priority:1,ToolbarComponent:UA}}),reducers:{styleeditor:n("./MapStore2/web/client/reducers/styleeditor.js").default},epics:n("./MapStore2/web/client/epics/styleeditor.js").default},MY=n("./MapStore2/web/client/plugins/Timeline.jsx"),IY=n("./MapStore2/web/client/plugins/Playback.jsx");var DY=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),NY=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");var RY=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{enabled:!0,position:null,crs:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CHANGE_MOUSE_POSITION_STATE":return ie()({},e,{enabled:t.enabled});case"CHANGE_MOUSE_POSITION":return ie()({},e,{position:t.position});case"CHANGE_MOUSE_POSITION_CRS":return ie()({},e,{crs:t.crs});case G.l:return ie()({},e,{position:t.position,mouseOut:!1});case G.m:return ie()({},e,{mouseOut:!0});default:return e}};function LY(e){return(LY="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 FY(){return(FY=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qY(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.menuItems,n=void 0===t?[]:t,r=e.disabled,o=void 0!==r&&r;return d.a.createElement(sK,aK({disabled:o},lK,uK),n.length?n.map((function(e){return e})):null)},dK=function(e){var t=e.className,n=e.style,r=e.children;return d.a.createElement("div",{id:"map-search-bar",style:n,className:"MapSearchBar"+(t?" "+t:"")},r)};function pK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fK(e,t)}(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 fK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&k(a[a.length-1])}},onBlur:function(){h&&(N&&clearTimeout(N),R(setTimeout((function(){P()}),O)))},onFocus:function(){b&&g&&j()},onChange:function(e){var t=e.target.value;C(t),b&&(F&&clearTimeout(F),z(setTimeout((function(){U(!0)}),x)))}})};hK.contextTypes={messages:f.a.object};var mK=hK;function gK(){return(gK=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:12;e({x:parseFloat(t.lon),y:parseFloat(t.lat)},n,"EPSG:4326")},coordinateFormatChange:function(e,t,n,r){return{buttonConfig:{title:d.a.createElement(w.Glyphicon,{glyph:"cog"}),tooltipId:"search.changeSearchInputField",tooltipPosition:"bottom",className:"square-button-md no-border",pullRight:!0},menuOptions:[{active:"decimal"===e,onClick:function(){return t("decimal")},text:d.a.createElement(v.default,{msgId:"search.decimal"})},{active:"aeronautical"===e,onClick:function(){return t("aeronautical")},text:d.a.createElement(v.default,{msgId:"search.aeronautical"})}],visible:n&&"coordinatesSearch"===r,Element:MK.a}},removeIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e&&(Object(le.isNumber)(t.lon)||Object(le.isNumber)(t.lat)),onClick:function(){return IK.clearCoordinates(n,r)}}},searchIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e,onClick:function(){"coordinatesSearch"===e&&IK.areValidCoordinates(t)&&IK.zoomToPoint(n,t,r)}}},coordinatesMenuItem:function(e){var t=e.activeTool,n=e.searchText,r=e.clearSearch,o=e.onChangeActiveSearchTool,i=e.onClearBookmarkSearch;return d.a.createElement(w.MenuItem,{active:"coordinatesSearch"===t,onClick:function(){void 0!==n&&""!==n&&r(),i("selected"),o("coordinatesSearch"),document.dispatchEvent(new MouseEvent("click"))}},d.a.createElement(w.Glyphicon,{glyph:"search-coords"})," ",d.a.createElement(v.default,{msgId:"search.coordinatesSearch"}))}},DK=function(e){var t=e.coordinate,n=void 0===t?{}:t,r=e.format,o=e.onClearCoordinatesSearch,i=e.onZoomToPoint,a=e.onChangeCoord,s=e.defaultZoomLevel,l=e.aeronauticalOptions,u=void 0===l?{seconds:{decimals:4,step:1e-4}}:l,c=e.constraintsCoordEditor,p=void 0===c?{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}}:c,f=IK.zoomToPoint,h=IK.areValidCoordinates,m=function(e,t){var n=isNaN(parseFloat(t))?"":parseFloat(t);a(e,n),h()||o({owner:"search"})},g=function(){f(i,n,s)};return d.a.createElement("div",{className:"coordinateEditor",style:{flexWrap:"decimal"===r?"nowrap":"wrap"}},d.a.createElement(w.Row,{className:"entryRow ".concat(r)},d.a.createElement(w.FormGroup,null,d.a.createElement(w.InputGroup,null,d.a.createElement(w.InputGroup.Addon,{style:{minWidth:45}},d.a.createElement(v.default,{msgId:"search.latitude"})),d.a.createElement(PK.a,{format:r,aeronauticalOptions:u,coordinate:"lat",idx:1,value:n.lat,constraints:p,onChange:function(e){return m("lat",e)},onKeyDown:function(){h(n)&&g()}})))),d.a.createElement(w.Row,{className:"entryRow ".concat(r)},d.a.createElement(w.FormGroup,null,d.a.createElement(w.InputGroup,null,d.a.createElement(w.InputGroup.Addon,{style:{minWidth:45}},d.a.createElement(v.default,{msgId:"search.longitude"})),d.a.createElement(PK.a,{format:r,aeronauticalOptions:u,coordinate:"lon",idx:2,value:n.lon,constraints:p,onChange:function(e){return m("lon",e)},onKeyDown:function(){h(n)&&g()}})))))};DK.propTypes={coordinate:f.a.object,format:f.a.string,onClearCoordinatesSearch:f.a.func,onZoomToPoint:f.a.func,onChangeCoord:f.a.func,defaultZoomLevel:f.a.number};var NK=Object(h.connect)((function(e){return{coordinate:e.search.coordinate||{}}}),{onZoomToPoint:oK.L,onChangeCoord:oK.w})(DK);function RK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LK(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function UK(e){return(UK="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 GK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HK(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case oK.i:return ie()({},e,{loading:t.loading});case oK.g:return ie()({},e,{error:t.error});case oK.q:return ie()({},e,{searchText:t.searchText,error:null});case oK.l:var n=t.results;return!0===t.append&&e&&e.results&&(n=[].concat(SX(e.results),SX(t.results))),ie()({},e,{results:n,error:null});case oK.m:return ie()({},e,{results:null,error:null});case oK.e:return ie()({},e,{markerPosition:t.markerPosition,markerLabel:t.markerLabel});case oK.n:return ie()({},e,{highlightedFeature:t.highlightedFeature});case oK.k:return{style:e.style||{}};case x.a:return null;case oK.j:return ie()({},e,{selectedServices:t.services,searchText:t.searchText,selectedItems:(e.selectedItems||[]).concat(t.items)});case oK.f:return ie()({},{selectedItems:e.selectedItems&&e.selectedItems.filter((function(e){return e!==t.item})),searchText:""===e.searchText&&t.item&&t.item.text?t.item.text.substring(0,t.item.text.length):e.searchText});case oK.r:return ie()({},e,{style:t.style});case oK.c:return _X(_X({},e),{},{activeSearchTool:t.activeSearchTool});case oK.b:return _X(_X({},e),{},{format:t.format});case oK.a:return _X(_X({},e),{},{coordinate:_X(_X({},e.coordinate),{},OX({},t.coord,t.val))});default:return e}};function CX(e){return(CX="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 TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kX(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return e.reduce((function(e,n){var r;return e+((null==n||null===(r=n.options)||void 0===r?void 0:r.maxFeatures)||t)}),0)||t}(null==r?void 0:r.services,o);void 0!==e&&""!==e||n&&0!==n.length?void 0!==e&&""!==e&&a(e,r,i):l()}}({searchText:f,selectedItems:E,searchOptions:g,maxResults:m,onSearch:Y,onSearchReset:K}),ye=function(){K()},be=[];if(U&&be.push(d.a.createElement(w.MenuItem,{active:"addressSearch"===r,onClick:function(){ne({owner:"search"}),de("selected"),ee("addressSearch")}},d.a.createElement(w.Glyphicon,{glyph:s})," ",d.a.createElement(v.default,{msgId:"search.addressSearch"}))),H&&be.push(d.a.createElement(IK.coordinatesMenuItem,{activeTool:r,searchText:f,clearSearch:ye,onChangeActiveSearchTool:ee,onClearBookmarkSearch:de})),W&&!Object(le.isEmpty)(he)){var ve,we=me.bookmarkConfig||{},xe=we.allowUser,_e=we.bookmarkSearchConfig,Oe=zK(he,1)[0];if(Object(le.some)(he,"menuItem")){var Se=Oe.menuItem;be.push(d.a.createElement(Se,null))}Object(le.some)(he,"bookmarkConfig")&&(t=LK(LK({},Oe.bookmarkConfig(ae,M,r)),!xe&&{visible:!1})),xe||0!==(null==_e||null===(ve=_e.bookmarks)||void 0===ve?void 0:ve.length)||"bookmarkSearch"!==r||ee("addressSearch")}var je;return d.a.createElement(dK,null,d.a.createElement(w.FormGroup,null,d.a.createElement("div",{className:"input-group",style:{display:"flex"}},E&&E.map((function(e,t){return d.a.createElement("span",{key:"selected-item"+t,className:"input-group-addon"},d.a.createElement("div",{className:"selectedItem-text"},e.text))})),d.a.createElement(mK,{show:"addressSearch"===r,delay:b,typeAhead:_,blurResetDelay:x,placeholder:R,placeholderMsgId:F,searchText:f,selectedItems:E,onSearch:ge,onSearchTextChange:X,onCancelSelectedItem:Z,onPurgeResults:pe}),"coordinatesSearch"===r&&H&&d.a.createElement(NK,{format:N,defaultZoomLevel:T,onClearCoordinatesSearch:ne}),"bookmarkSearch"===r&&W&&d.a.createElement(AK,{mapInitial:me.mapInitial}),d.a.createElement(wK,{splitTools:!1,toolbarButtons:[LK({},function(){if("addressSearch"===r)return{onClick:function(){A||ae("searchservicesconfig")},glyph:"cog",className:"square-button-md no-border ",tooltip:d.a.createElement(v.default,{msgId:"search.searchservicesbutton"}),tooltipPosition:"bottom",bsStyle:"default",pullRight:!0,visible:B&&"addressSearch"===r};if(B){if("coordinatesSearch"===r)return IK.coordinateFormatChange(N,oe,B,r);if("bookmarkSearch"===r)return t}return{}}()),LK({glyph:i,className:"square-button-md no-border",bsStyle:"default",pullRight:!0,loading:!Object(le.isUndefined)(y)&&y,visible:"addressSearch"===r&&(""!==f||E&&E.length>0),onClick:function(){"addressSearch"===r&&ye()}},"coordinatesSearch"===r&&IK.removeIcon(r,S,ne,$)),LK(LK({glyph:s,className:"square-button-md no-border "+(u||"addressSearch"!==r?"magnifying-glass clickable":"magnifying-glass"),bsStyle:"default",pullRight:!0,tooltipPosition:"bottom",visible:!("addressSearch"!==r||(""!==f||E&&E.length>0)&&c),onClick:function(){return u&&ge()}},"coordinatesSearch"===r&&IK.searchIcon(r,S,ue,T)),"bookmarkSearch"===r&&TK.searchIcon(r,me)),{tooltip:(je=I,je?d.a.createElement(v.default,{msgId:je.msgId||"search.generic_error",msgParams:{message:je.message,serviceType:je.serviceType}}):null),tooltipPosition:"bottom",className:"square-button-md no-border",glyph:"warning-sign",bsStyle:"danger",glyphClassName:"searcherror",visible:!!I,onClick:ye},{visible:B,renderButton:d.a.createElement(cK,{disabled:B,menuItems:be})}]}))))})),JX=Object(L.a)([X.l,V.p,function(e){return e.search||null}],(function(e,t,n){return{mapConfig:e,layers:t,results:n?n.results:null}})),eZ=Object(h.connect)(JX,{onItemClick:oK.G,addMarker:oK.t,showGFI:oK.I})(uX),tZ=Object(h.connect)((function(e){return{enabled:e.controls&&e.controls.search&&e.controls.search.enabled||!1,selectedServices:e&&e.search&&e.search.selectedServices,selectedItems:e&&e.search&&e.search.selectedItems,textSearchConfig:e&&e.searchconfig&&e.searchconfig.textSearchConfig}}),{onUpdateResultsStyle:oK.K})((LX=RX=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&&VX(e,t)}(i,e);var t,n,r,o=WX(i);function i(){var e;GX(this,i);for(var t=arguments.length,n=new Array(t),r=0;r0?r.override?ie()({},n,{services:r.services}):ie()({},n,{services:n.services.concat(r.services)}):n})),ZX(KX(e),"getCurrentServices",(function(){var t=e.props.selectedServices,n=e.getSearchOptions();return t&&t.length>0?ie()({},n,{services:t}):n})),ZX(KX(e),"getSearchAndToggleButton",(function(){var t=d.a.createElement($X,UX({key:"searchBar"},e.props,{searchOptions:e.getCurrentServices(),placeholder:e.getServiceOverrides("placeholder"),placeholderMsgId:e.getServiceOverrides("placeholderMsgId")}));return!0===e.props.withToggle?[d.a.createElement(FX,null)].concat(e.props.enabled?[t]:null):Object(le.isArray)(e.props.withToggle)?d.a.createElement("span",null,d.a.createElement(rK.a,{query:"("+e.props.withToggle[0]+")"},d.a.createElement(FX,null),e.props.enabled?t:null),d.a.createElement(rK.a,{query:"("+e.props.withToggle[1]+")"},t)):t})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.onUpdateResultsStyle(qX(qX({},JK.a),this.props.resultsStyle))}},{key:"render",value:function(){return d.a.createElement("span",null,this.getSearchAndToggleButton(),d.a.createElement(eZ,{fitToMapSize:this.props.fitResultsToMapSize,searchOptions:this.props.searchOptions,onUpdateResultsStyle:this.props.onUpdateResultsStyle,key:"nominatimresults"}))}}])&&HX(t.prototype,n),r&&HX(t,r),i}(d.a.Component),ZX(RX,"propTypes",{splitTools:f.a.bool,showOptions:f.a.bool,isSearchClickable:f.a.bool,fitResultsToMapSize:f.a.bool,searchOptions:f.a.object,resultsStyle:f.a.object,selectedItems:f.a.array,selectedServices:f.a.array,userServices:f.a.array,withToggle:f.a.oneOfType([f.a.bool,f.a.array]),enabled:f.a.bool,textSearchConfig:f.a.object}),ZX(RX,"defaultProps",{searchOptions:{services:[{type:"nominatim",priority:5}]},isSearchClickable:!1,splitTools:!0,resultsStyle:{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2},fitResultsToMapSize:!0,withToggle:!1,enabled:!0}),LX)),nZ={SearchPlugin:ie()(tZ,{OmniBar:{name:"search",position:1,tool:!0,priority:1}}),epics:{searchEpic:function(e){return e.ofType(oK.p).debounceTime(250).switchMap((function(t){return qt.Observable.from((t.services||[{type:"nominatim",priority:5}]).map((function(e){var n=hX.a.Utils.getService(e.type);if(!n){var r=new Error("Service Missing");return r.msgId="search.service_missing",r.serviceType=e.type,qt.Observable.of(r).do((function(e){throw e}))}return qt.Observable.defer((function(){return n(t.searchText,e.options).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){return bX(bX({},t),{},{__SERVICE__:e,__PRIORITY__:e.priority||0})}))}))})).retryWhen((function(e){return e.delay(200).scan((function(e,t){if(e>=2)throw t;return e+1}),0)}))}))).mergeAll().scan((function(e,t){return Object(le.sortBy)([].concat(mX(e),mX(t)),["__PRIORITY__"])})).map((function(e){return Object(oK.C)(e.slice(0,t.maxResults||15),!1)})).startWith(Object(oK.E)(!0)).takeUntil(e.ofType(oK.m,oK.k,oK.h)).concat([Object(oK.E)(!1)]).catch((function(e){var t=bX(bX({msgId:"search.generic_error"},e),{},{message:e.message,stack:e.stack});return qt.Observable.from([Object(oK.B)(t),Object(oK.E)(!1)])}))}))},searchOnStartEpic:function(e,t){return e.ofType(oK.d).switchMap((function(e){var n=e.layer,r=e.cql_filter,o=t.getState();if(0===Object(V.q)(o).filter((function(e){return e.name===n})).length)return qt.Observable.of(Object(oK.y)());var i=Object(V.h)(o,n);return i&&r?qt.Observable.defer((function(){return Object(un.getFeatureSimple)(i.url,{maxFeatures:1,typeName:n,srsName:"EPSG:4326",outputFormat:"application/json",cql_filter:r}).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.features&&e.features.length&&bX(bX({},e.features[0]),{},{typeName:n})}))})).switchMap((function(e){var t=e.type,n=e.geometry,o=e.typeName,i=fX()({type:t,geometry:n}).geometry.coordinates,a={lng:i[0],lat:i[1]};return i?qt.Observable.of(Object(Iz.J)({latlng:a},o,[o],vX({},o,{cql_filter:r})),Object(Iz.T)()):qt.Observable.empty()})).catch((function(){return qt.Observable.of(Object(oK.H)())})):qt.Observable.empty()}))},searchItemSelected:function(e,t){return e.ofType(oK.h).switchMap((function(e){var n=qt.Observable.of(e.item).concatMap((function(t){if(t&&t.__SERVICE__&&t.__SERVICE__.geomService){var n=Object(DU.generateTemplateString)(t.__SERVICE__.geomService.options.staticFilter||"")(t);return qt.Observable.fromPromise(hX.a.Utils.getService(t.__SERVICE__.geomService.type)("",ie()({},t.__SERVICE__.geomService.options,{staticFilter:n})).then((function(e){return ie()({},t,{geometry:Yo.default.mergeToPolyGeom(e)})})))}return qt.Observable.of(e.item)})).concatMap((function(e){var n=e.bbox||e.properties.bbox||dX()(e),r=[Object(G.I)([n[0],n[1],n[2],n[3]],"EPSG:4326",e.__SERVICE__&&e.__SERVICE__.options&&e.__SERVICE__.options.maxZoomLevel||21),Object(oK.t)(e)];if(e.__SERVICE__&&!Object(le.isNil)(e.__SERVICE__.launchInfoPanel)&&e.__SERVICE__.options&&e.__SERVICE__.options.typeName){var o=fX()(e).geometry.coordinates,i={lng:o[0],lat:o[1]},a=e.__SERVICE__.options.typeName;if(o){var s=a&&Object(V.h)(t.getState(),a),l=null,u=[],c={},d=!1;return"single_layer"===e.__SERVICE__.launchInfoPanel&&(d=e.__SERVICE__.forceSearchLayerVisibility,u=[a],l=e.id,c=vX({},e.__SERVICE__.options.typeName,{info_format:"application/json"})),[].concat(mX(d&&s?[Object(_.I)(s.id,{visibility:!0})]:[]),mX(e.__SERVICE__.openFeatureInfoButtonEnabled?[]:[Object(Iz.J)({latlng:i},a,u,c,l)]),[Object(Iz.T)()],r)}}return r})),r=e.item,o=r&&r.__SERVICE__&&r.__SERVICE__.then,i=o?qt.Observable.of(Object(oK.F)(o.map((function(e){return bX(bX({},e),{},{options:bX({item:r},e.options)})})),{text:Object(DU.generateTemplateString)(r.__SERVICE__.displayName||"")(r),placeholder:r.__SERVICE__.nestedPlaceholder&&Object(DU.generateTemplateString)(r.__SERVICE__.nestedPlaceholder||"")(r),placeholderMsgId:r.__SERVICE__.nestedPlaceholderMsgId&&Object(DU.generateTemplateString)(r.__SERVICE__.nestedPlaceholderMsgId||"")(r)},Object(DU.generateTemplateString)(r.__SERVICE__.searchTextTemplate||"")(r))):qt.Observable.empty(),a=r.__SERVICE__&&r.__SERVICE__.searchTextTemplate,s=a?qt.Observable.of(Object(oK.D)(Object(DU.generateTemplateString)(a)(r))):qt.Observable.empty();return qt.Observable.of(Object(oK.A)()).concat(n,i,s)}))},zoomAndAddPointEpic:function(e,t){return e.ofType(oK.s).switchMap((function(e){var n={type:"Feature",geometry:{type:"Point",coordinates:[e.pos.x,e.pos.y]}},r=t.getState();return qt.Observable.from([Object(CS.g)("search","search","overlay",{features:[n],type:"vector",name:"searchPoints",id:"searchPoints",visibility:!0,style:r.search&&r.search.style||JK.a}),Object(G.J)(e.pos,e.zoom,e.crs)])}))},textSearchShowGFIEpic:function(e,t){return e.ofType(oK.o).switchMap((function(e){var n,r,o,i,a,s,l=e.item,u=t.getState(),c=null==l||null===(n=l.__SERVICE__)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.typeName,d=c&&Object(V.h)(u,c),p=l.bbox||l.properties.bbox||dX()(l),f=fX()(l).geometry.coordinates,h={lng:f[0],lat:f[1]};return f&&Object(JK.c)(null==l?void 0:l.__SERVICE__)&&Object(JK.b)(d,null==l?void 0:l.__SERVICE__)?(o=qt.Observable).of.apply(o,mX(null!=l&&null!==(i=l.__SERVICE__)&&void 0!==i&&i.forceSearchLayerVisibility&&d?[Object(_.I)(d.id,{visibility:!0})]:[]).concat([Object(Iz.J)({latlng:h},c,[c],vX({},c,{info_format:"application/json"}),l.id),Object(Iz.T)(),Object(G.I)([p[0],p[1],p[2],p[3]],"EPSG:4326",(null==l||null===(a=l.__SERVICE__)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.maxZoomLevel)||21),Object(oK.t)(l)])):qt.Observable.empty()}))}},reducers:{search:EX,mapInfo:wX.a}};function rZ(e){return(rZ="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 oZ(){return(oZ=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=e.name,o=void 0===r?"":r,i=n.url,a=void 0===i?"":i,s=n.typeName,l=void 0===s?"":s,u=n.queriableAttributes,c=void 0===u?"":u;return o.length>0&&a.length>0&&l.length>0&&c.length>0}};function FZ(e){return(FZ="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 zZ(){return(zZ=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.displayName&&e.displayName.length>0}};function $Z(e){return($Z="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 JZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eQ(e){for(var t=1;t1?e.props.onPropertyChange("page",t-1):1===t&&e.props.restServiceConfig(0)})),xQ(vQ(e),"next",(function(){var t=e.props,n=t.page;n1&&void 0!==arguments[1]?arguments[1]:"active";return{type:SQ,active:e,prop:t}}function CQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TQ(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"swipe";return{type:jQ,mode:e}}})($Q)},Map:{name:"Swipe",Tool:e$}},reducers:{swipe:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case SQ:return ie()({},e,kQ({},t.prop,t.active));case jQ:return ie()({},e,{mode:t.mode});case"SWIPE:SET_SWIPE_TOOL_DIRECTION":var n=TQ(TQ({},e.swipe),{},{direction:t.direction});return ie()({},e,{swipe:n});case"SWIPE:SET_SPY_TOOL_RADIUS":var r=TQ(TQ({},e.spy),{},{radius:t.radius});return ie()({},e,{spy:r});default:return e}}},epics:AQ}),n$=n("./MapStore2/web/client/actions/locate.js"),r$=n("./MapStore2/web/client/components/misc/spinners/InlineSpinner/img/spinner.gif"),o$=n.n(r$);function i$(e){return(i$="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 a$(){return(a$=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{state:"DISABLED"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n$.a:return ie()({},e,{state:t.state});case n$.b:return ie()({},e,{error:t.error});default:return e}},w$=(n("./MapStore2/web/client/plugins/locate/locate.css"),Object(h.connect)((function(e){return{locate:e.locate&&e.locate.state||"DISABLED",tooltip:e.locate&&"FOLLOWING"===e.locate.state?"locate.tooltipDeactivate":"locate.tooltip"}}),{onClick:n$.c})(b$)),x$=Object(O.d)("Locate",{component:w$,options:{disablePluginIf:"{state('mapType') === 'cesium'}"},containers:{Toolbar:{name:"locate",position:2,tool:!0,icon:d.a.createElement(w.Glyphicon,{glyph:"screenshot"}),help:d.a.createElement(Or.a,{msgId:"helptexts.locateBtn"}),priority:1}},reducers:{locate:v$}}),_$="LAYERDOWNLOAD:DOWNLOAD_FEATURES",O$="LAYERDOWNLOAD:SET_SERVICE",S$="LAYERDOWNLOAD:ADD_EXPORT_DATA_RESULT",j$="LAYERDOWNLOAD:REMOVE_EXPORT_DATA_RESULT",E$=function(e){return{type:"LAYERDOWNLOAD:CHECKING_WPS_AVAILABILITY",checking:e}},C$=function(e,t){return{type:"LAYERDOWNLOAD:FORMAT_SELECTED",key:e,value:t}},T$=function(e){return{type:O$,service:e}},k$=function(e){return{type:"LAYERDOWNLOAD:SET_EXPORT_DATA_RESULTS",results:e}},A$=function(e,t){return{type:"LAYERDOWNLOAD:UPDATE_EXPORT_DATA_RESULT",id:e,newProps:t}},P$=function(e){return{type:"LAYERDOWNLOAD:CHECKING_EXPORT_DATA_ENTRIES",checking:e}},M$=function(e,t,n,r){return{type:"LAYERDOWNLOAD:SHOW_INFO_BUBBLE_MESSAGE",msgId:e,msgParams:t,level:n,duration:r}},I$=function(e){return{type:"LAYERDOWNLOAD:SHOW_INFO_BUBBLE",show:e}},D$=function(e,t,n){return{type:"LAYERDOWNLOAD:SET_INFO_BUBBLE_MESSAGE",msgId:e,msgParams:t,level:n}},N$=function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.service},R$=Object(L.a)(Rz.o,xM.m,V.j,(function(e,t,n){return e?t:null!=n&&n.name?{featureTypeName:n.name,filterType:"OGC",ogcVersion:"1.1.0"}:null})),L$=function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.results},F$=n("./MapStore2/web/client/components/misc/EmptyView.jsx");function z$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B$(e,t)}(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 B$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?"".concat(parseInt(e.target.value,10)):"")}}),d.a.createElement("span",null,"px"))),d.a.createElement("div",{className:"mapstore-downloadwpsoptions-advanced-menuitem"},d.a.createElement(v.default,{msgId:"layerdownload.tileHeight"}),d.a.createElement("div",{className:"mapstore-downloadwpsoptions-advanced-menuitem-control"},d.a.createElement(w.FormControl,{placeholder:"256",type:"number",min:"0",value:g||"",onChange:function(e){return x("tileHeight",e.target.value&&e.target.value.length>0?"".concat(parseInt(e.target.value,10)):"")}}),d.a.createElement("span",null,"px")))))};function U$(e){return(U$="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 G$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H$(e,t){for(var n=0;n-1)&&("vector"===s&&(null===(n=r.props.layer.search)||void 0===n?void 0:n.url)||"raster"===s&&!(null!==(o=r.props.layer.search)&&void 0!==o&&o.url))}))},i=o("wfs"),a=o("wps"),s=i.length>0?i.filter((function(e){return r.props.wfsFormats.find((function(t){return t.name.toLowerCase()===e.name.toLowerCase()}))})):this.props.wfsFormats;return this.props.enabled?d.a.createElement(Pe.a,{id:"mapstore-export",draggable:!1,modal:!0},d.a.createElement("span",{role:"header"},d.a.createElement("span",{className:"about-panel-title"},d.a.createElement(v.default,{msgId:"layerdownload.title"})),d.a.createElement("button",{onClick:this.onClose,className:"settings-panel-close close"},this.props.closeGlyph?d.a.createElement(w.Glyphicon,{glyph:this.props.closeGlyph}):d.a.createElement("span",null,"×"))),d.a.createElement("div",{role:"body"},this.props.checkingWPSAvailability?d.a.createElement(kS.a,{size:100,style:{margin:"0 auto"}}):"wfs"!==this.props.service||null!==(e=this.props.layer.search)&&void 0!==e&&e.url?d.a.createElement($$,{downloadOptions:this.props.downloadOptions,onChange:this.props.onDownloadOptionChange,formatOptionsFetch:"wfs"===this.props.service?this.props.onFormatOptionsFetch:function(){},formatsLoading:this.props.formatsLoading,formats:"wfs"===this.props.service?s:a,srsList:this.props.srsList,defaultSrs:this.props.defaultSrs,wpsOptionsVisible:"wps"===this.props.service,wpsAdvancedOptionsVisible:!(null!==(t=this.props.layer.search)&&void 0!==t&&t.url),downloadFilteredVisible:!(null===(n=this.props.layer.search)||void 0===n||!n.url),layer:this.props.layer,virtualScroll:this.props.virtualScroll}):d.a.createElement(F$.a,{title:d.a.createElement(v.default,{msgId:"layerdownload.noSupportedServiceFound"})})),!this.props.checkingWPSAvailability&&d.a.createElement("div",{role:"footer"},d.a.createElement(Ne.a,{bsStyle:"primary",className:"download-button",disabled:!this.props.downloadOptions.selectedFormat||this.props.loading,onClick:this.handleExport},this.renderIcon()," ",d.a.createElement(v.default,{msgId:"layerdownload.export"})))):null}}])&&tJ(t.prototype,n),r&&tJ(t,r),i}(d.a.Component);sJ(lJ,"propTypes",{filterObj:f.a.object,closeGlyph:f.a.string,url:f.a.string,service:f.a.string,onMount:f.a.func,onUnmount:f.a.func,enabled:f.a.bool,loading:f.a.bool,checkingWPSAvailability:f.a.bool,onClose:f.a.func,onExport:f.a.func,onDownloadOptionChange:f.a.func,onClearDownloadOptions:f.a.func,onFormatOptionsFetch:f.a.func,downloadOptions:f.a.object,wfsFormats:f.a.array,formats:f.a.array,srsList:f.a.array,defaultSrs:f.a.string,layer:f.a.object,formatsLoading:f.a.bool,virtualScroll:f.a.bool}),sJ(lJ,"defaultProps",{onMount:function(){},onUnmount:function(){},onExport:function(){},onClose:function(){},onCheckWPSAvailability:function(){},onDownloadOptionChange:function(){},onClearDownloadOptions:function(){},onFormatOptionsFetch:function(){},checkingWPSAvailability:!1,layer:{},closeGlyph:"1-close",service:"wfs",wfsFormats:[],formats:[{name:"application/json",label:"GeoJSON",type:"vector",validServices:["wps"]},{name:"application/arcgrid",label:"ArcGrid",type:"raster",validServices:["wps"]},{name:"image/tiff",label:"TIFF",type:"raster",validServices:["wps"]},{name:"image/png",label:"PNG",type:"raster",validServices:["wps"]},{name:"image/jpeg",label:"JPEG",type:"raster",validServices:["wps"]},{name:"application/wfs-collection-1.0",label:"wfs-collection-1.0",type:"vector",validServices:["wps"]},{name:"application/wfs-collection-1.1",label:"wfs-collection-1.1",type:"vector",validServices:["wps"]},{name:"application/zip",label:"Shapefile",type:"vector",validServices:["wps"]},{name:"text/csv",label:"CSV",type:"vector",validServices:["wps"]}],formatsLoading:!1,srsList:[{name:"native",label:"Native"},{name:"EPSG:4326",label:"WGS84"}],virtualScroll:!0,downloadOptions:{}});var uJ=lJ,cJ=d.a.createElement(w.Button,{bsStyle:"primary",bsSize:"small",className:"mapstore-exportdataresults-item-failed"},d.a.createElement(w.Glyphicon,{glyph:"exclamation-sign"})),dJ=Object(dO.a)((function(e){var t=e.results;return!(void 0===t?[]:t).length}),{title:d.a.createElement(v.default,{msgId:"exportDataResults.emptyStateMessage"})})((function(e){var t=e.loading,n=void 0!==t&&t,r=e.results,o=void 0===r?[]:r,i=e.currentLocale,a=e.onRemoveResult,s=void 0===a?function(){}:a;return n?d.a.createElement(kS.a,{size:100,style:{margin:"0 auto",padding:"10px"}}):d.a.createElement("div",{className:"mapstore-exportdataresults-container"},o.map((function(e){var t=e.id,n=e.layerName,r=e.layerTitle,o=e.startTime,a=e.status,l=e.result,u=Object(te.getLayerTitle)({name:n,title:r},i),c=new Date(o),p=function(e){return e<10?"0".concat(e):"".concat(e)},f="".concat(p(c.getDate()),"/").concat(p(c.getMonth()+1),"/").concat(c.getFullYear()," ").concat(p(c.getHours()),":").concat(p(c.getMinutes()));return d.a.createElement("div",{key:t,className:"mapstore-exportdataresults-item"},d.a.createElement("div",{className:"mapstore-exportdataresults-item-name"},u),d.a.createElement("div",{className:"mapstore-exportdataresults-item-date"},f),d.a.createElement("div",{className:"mapstore-exportdataresults-item-buttons"},"pending"===a&&d.a.createElement(kS.a,{size:22,style:{marginLeft:"2px"}}),"failed"===a&&l&&l.msgId?d.a.createElement(Te.a,{placement:"top",overlay:d.a.createElement(w.Tooltip,{id:"exportresults-failure-tooltip"},d.a.createElement(v.default,{msgId:l.msgId,msgParams:l.msgParams}))},cJ):null,"failed"!==a||l&&l.msgId?null:cJ,"completed"===a&&d.a.createElement("a",{href:l},d.a.createElement(w.Button,{bsStyle:"primary",bsSize:"small"},d.a.createElement(w.Glyphicon,{glyph:"floppy-disk"}))),d.a.createElement(w.Button,{bsStyle:"primary",bsSize:"small",onClick:function(){return s(t)}},d.a.createElement(w.Glyphicon,{glyph:"trash"}))))})))}));function pJ(e){return function(e){if(Array.isArray(e))return fJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fJ(e,t)}(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 fJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?d.a.createElement("div",{id:"mapstore-export-data-results-button-container"},d.a.createElement(Te.a,{placement:"left",overlay:d.a.createElement(w.Tooltip,{id:"mapstore-export-data-results-tooltip"},d.a.createElement(v.default,{msgId:"exportDataResults.title"}))},d.a.createElement(w.Button,{bsStyle:"primary",bsSize:"small",onClick:function(){return f()}},d.a.createElement(w.Glyphicon,{glyph:"download"}))),d.a.createElement(hJ,{show:o,className:"mapstore-export"},d.a.createElement(mJ,a))):null,d.a.createElement(Pe.a,{id:"mapstore-export-data-results",style:{display:n?"block":"none"},draggable:!1,modal:!0},d.a.createElement("span",{role:"header"},d.a.createElement("span",{className:"about-panel-title"},d.a.createElement(v.default,{msgId:"exportDataResults.title"})),d.a.createElement("button",{onClick:function(){return f()},className:"settings-panel-close close"},d.a.createElement(w.Glyphicon,{glyph:"1-close"}))),d.a.createElement("div",{role:"body"},d.a.createElement(dJ,{loading:s,results:u,currentLocale:c,onRemoveResult:g}))))},yJ=n("./node_modules/axios/index.js"),bJ=n.n(yJ),vJ=n("./node_modules/file-saver/FileSaver.js"),wJ=n("./node_modules/xml2js/lib/processors.js"),xJ=n("./MapStore2/web/client/actions/security.js"),_J=n("./MapStore2/web/client/observables/wps/execute.js");function OJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SJ(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?[Object(DM.m)(Object(le.toPairs)(d).map((function(e){var t=EJ(e,2),n=t[0],r=t[1];return Object(DM.c)(n,r)})).join(""))]:[])),Object(DM.l)(l?Object(DM.k)(!0,!0,u?Object(DM.g)(c,!0,"result"):Object(DM.j)("result",c)):Object(DM.j)("result",c)))}(SJ(SJ({},Object(le.omit)(t,"notifyDownloadEstimatorSuccess")),{},{outputAsReference:!!t.asynchronous&&t.outputAsReference})),n,{headers:{"Content-Type":"application/xml",Accept:"application/xml, ".concat(t.resultOutput||"application/zip")}});return r.catch((function(){throw new Error("DownloadEstimatorException")})).mergeMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length>0&&"result"===e[0].identifier&&"true"===e[0].data)return t.notifyDownloadEstimatorSuccess?qt.Observable.of("DownloadEstimatorSuccess").concat(o):o;throw new Error("DownloadEstimatorFailed")}))}var i,a,s,l,u,c;return qt.Observable.empty()},MJ=[{outputFormat:"shape-zip",extension:"zip"},{outputFormat:"csv",extension:"csv"},{outputFormat:"excel",extension:"xls"},{outputFormat:"excel2007",extension:"xlsx"},{outputFormat:"dxf",extension:"dxf"},{outputFormat:"dxf-zip",extension:"zip"},{outputFormat:"application/vnd.google-earth.kml+xml",extension:"kml"},{outputFormat:"application/json",extension:"json"},{outputFormat:"gml3",extension:"gml"},{outputFormat:"GML2",extension:"gml"},{outputFormat:"application/vnd.googlxml",extension:"kml"},{outputFormat:"OGR-CSV",extension:"csv"},{outputFormat:"OGR-FileGDB",extension:"gdb"},{outputFormat:"OGR-GPKG",extension:"gpkg"},{outputFormat:"OGR-KML",extension:"kml"},{outputFormat:"OGR-MIF",extension:"mif"},{outputFormat:"OGR-TAB",extension:"tab"},{outputFormat:"SHAPE-ZIP",extension:"zip"},{outputFormat:"gml32",extension:"gml"},{outputFormat:"application/x-gpk",extension:"gpk"}];function IJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DJ(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.filterObj,r=void 0===n?{}:n,o=e.downloadOptions,i=void 0===o?{}:o,a=Object(zC.toOGCFilter)(r.featureTypeName,r,r.ogcVersion,r.sortOptions,!1,null,null,i.selectedSrs);return Ut.a.Observable.defer((function(){return bJ.a.post(Object(jt.cleanDuplicatedQuestionMarks)(t+"?service=WFS&outputFormat=".concat(i.selectedFormat)),a,{timeout:6e4,responseType:"arraybuffer",headers:{"Content-Type":"application/xml"}})}))},UJ=function(e){var t,n=Object(le.get)(e,"filterObj.featureTypeName"),r=(t=Object(le.get)(e,"downloadOptions.selectedFormat"),Object(le.head)(MJ.filter((function(e){return e.outputFormat===t})))||function(e){var t=e.split(/[^\w]/)[1];return t?{outputFormat:e,extension:t.toLowerCase()}:void 0}(t));return r&&r.extension?n+"."+r.extension:n},GJ=function(e){return e.query&&e.query.featureTypes&&e.query.featureTypes[e.query.typeName]&&e.query.featureTypes[e.query.typeName].attributes&&e.query.featureTypes[e.query.typeName].attributes[0]&&e.query.featureTypes[e.query.typeName].attributes[0].attribute||null},HJ=function(e){switch(e.code){case"ProcessFailed":return{msgId:"layerdownload.wpsExecuteError.processFailed",msgParams:{exceptionReport:e.message}};case"NoStatusLocation":case"NoExecutionId":case"UnexpectedProcessStatus":return{msgId:"layerdownload.wpsExecuteError.badResponse",msgParams:{eCode:e.code}};case"ExecuteProcessXHRFailed":return{msgId:"layerdownload.wpsExecuteError.executeProcessXhrFailed"};case"GetExecutionStatusXHRFailed":return{msgId:"layerdonwload.wpsExecuteError.getExecutionStatusXhrFailed"};default:return{msgId:"layerdownload.wpsExecuteError.unexpectedError"}}},VJ=function(e){var t=Object(J.e)(e);if(null!=t&&t.id){var n=document.cookie.split(";").filter((function(e){return e.indexOf("exportDataResults_".concat(t.id,"="))>-1}))[0];if(n){var r=JSON.parse(decodeURIComponent(n.split("=")[1])).results;return Ut.a.Observable.of(k$(r.filter((function(e){return"pending"!==e.status}))))}}return Ut.a.Observable.empty()},WJ=function(e){return e.ofType("LAYERDOWNLOAD:CHECK_WPS_AVAILABILITY").switchMap((function(e){var t=e.url;return NM(t,"gs:DownloadEstimator,gs:Download").switchMap((function(e){return Ut.a.Observable.defer((function(){return new Promise((function(t,n){return Object(Et.parseString)(e.data,{tagNameProcessors:[wJ.stripPrefix]},(function(e,r){return e?n(e):t(r)}))}))}))})).flatMap((function(e){var t,n,r,o,i,a,s,l,u=[null==e||null===(t=e.ProcessDescriptions)||void 0===t||null===(n=t.ProcessDescription)||void 0===n||null===(r=n[0])||void 0===r||null===(o=r.Identifier)||void 0===o?void 0:o[0],null==e||null===(i=e.ProcessDescriptions)||void 0===i||null===(a=i.ProcessDescription)||void 0===a||null===(s=a[1])||void 0===s||null===(l=s.Identifier)||void 0===l?void 0:l[0]];return Ut.a.Observable.of(T$(Object(le.findIndex)(u,(function(e){return"gs:DownloadEstimator"===e}))>-1&&Object(le.findIndex)(u,(function(e){return"gs:Download"===e}))>-1?"wps":"wfs"),E$(!1))})).catch((function(){return Ut.a.Observable.of(T$("wfs"),E$(!1))})).startWith(E$(!0))}))},YJ=function(e){return e.ofType(_.h).switchMap((function(e){var t;return Ut.a.Observable.from([Object(x.h)("layerdownload"),C$("singlePage",!1)].concat(RJ(null!==(t=e.layer.search)&&void 0!==t&&t.url?[Object(wM.q)(e.layer.url,{featureTypeName:e.layer.name})]:[])))}))},KJ=function(e){return e.ofType("LAYERDOWNLOAD:FORMAT_FETCH").switchMap((function(e){return Object(MM.c)(e).map((function(e){return{type:"LAYERDOWNLOAD:FORMAT_UPDATE",wfsFormats:function(e){var t=Object(le.get)(e,"WFS_Capabilities.OperationsMetadata.Operation"),n=Object(le.find)(t,(function(e){return"GetFeature"===e.name})),r=Object(le.get)(n,"Parameter"),o=Object(le.find)(r,(function(e){return"outputFormat"===e.name})).Value,i=Object(le.pick)(BJ,o);return Object(le.toPairs)(i).map((function(e){var t=LJ(e,2);return{name:t[0],label:t[1]}}))}(e)}}))}))},XJ=function(e,t){return e.ofType(_$).switchMap((function(n){var r,o,i,a,s=t.getState(),l=s.featuregrid.virtualScroll,u=void 0!==l&&l,c=N$(s),d=Object(V.j)(s),p=Object(X.g)(s),f=Object(Z.b)(s);return"wps"===c?(r=n.downloadOptions.cropDataSet&&!!p&&!!p.bounds,o={layerName:d.name,outputFormat:n.downloadOptions.selectedFormat,asynchronous:!0,outputAsReference:!0,targetCRS:n.downloadOptions.selectedSrs&&"native"!==n.downloadOptions.selectedSrs?n.downloadOptions.selectedSrs:void 0,cropToROI:r,dataFilter:n.downloadOptions.downloadFilteredDataSet?{type:"TEXT",data:{mimeType:"text/plain; subtype=filter/1.0",data:Object(zC.mergeFiltersToOGC)({ogcVersion:"1.0.0",addXmlnsToRoot:!0,xmlnsToAdd:['xmlns:ogc="http://www.opengis.net/ogc"','xmlns:gml="http://www.opengis.net/gml"']},d.layerFilter,n.filterObj)}}:void 0,ROI:r?{type:"TEXT",data:{mimeType:"application/json",data:JSON.stringify(Object(Yo.bboxToFeatureGeometry)(p.bounds))}}:void 0,roiCRS:r?p.crs||"EPSG:4326":void 0,writeParameters:DJ(DJ(DJ({},n.downloadOptions.tileWidth?{tilewidth:n.downloadOptions.tileWidth}:{}),n.downloadOptions.tileHeight?{tileheight:n.downloadOptions.tileHeight}:{}),n.downloadOptions.compression?DJ({compression:n.downloadOptions.compression},n.downloadOptions.quality?{quality:n.downloadOptions.quality}:{}):{}),notifyDownloadEstimatorSuccess:!0},i={id:Ro()(),layerName:d.name,layerTitle:d.title,status:"pending"},a={outputsExtractor:Object(_J.e)(_J.f)},PJ(n.url,o,a).takeUntil(e.ofType(j$).filter((function(e){return e.id===i.id})).take(1)).flatMap((function(e){var t,n;return"DownloadEstimatorSuccess"===e?Ut.a.Observable.of((n=DJ(DJ({},i),{},{startTime:(new Date).getTime()}),{type:S$,result:n}),M$("layerdownload.exportResultsMessages.newExport"),{type:"LAYERDOWNLOAD:DOWNLOAD_FINISHED"},Object(x.h)("layerdownload","enabled")):(t=Ut.a.Observable).of.apply(t,RJ(e&&e.length>0&&e[0].href?[A$(i.id,{status:"completed",result:e[0].href}),M$("layerdownload.exportResultsMessages.exportSuccess",{layerTitle:Object(te.getLayerTitle)(d,f)},"success")]:[A$(i.id,{status:"failed",result:{msgId:"layerdonwload.exportResultsMessages.invalidHref"}}),M$("layerdownload.exportResultsMessages.exportFailure",{layerTitle:Object(te.getLayerTitle)(d,f)},"danger")]))})).catch((function(e){var t;return(t=Ut.a.Observable).of.apply(t,RJ(e.message&&e.message.indexOf("DownloadEstimator")>-1?[Object(H.f)({error:e,title:"layerdownload.error.downloadEstimatorTitle",message:"layerdownload.error.downloadEstimatorFailed"}),{type:"LAYERDOWNLOAD:DOWNLOAD_FINISHED"}]:[A$(i.id,{status:"failed",result:HJ(e)}),M$("layerdownload.exportResultsMessages.exportFailure",{layerTitle:Object(te.getLayerTitle)(d,f)},"danger")]))}))):qJ({url:n.url,downloadOptions:n.downloadOptions,filterObj:DJ(DJ({},n.filterObj),{},{pagination:!u&&Object(le.get)(n,"downloadOptions.singlePage")?n.filterObj&&n.filterObj.pagination:null})}).do((function(e){var t=e.data;if("application/xml"===e.headers["content-type"]){var n=String.fromCharCode.apply(null,new Uint8Array(t));if(0===n.indexOf("0&&void 0!==arguments[0]?arguments[0]:{};return Ut.a.Observable.of(D$(e.msgId,e.msgParams,e.level),I$(!0)).delay(10).concat(Ut.a.Observable.of(I$(!1)).delay(e.duration||3e3)).concat(Ut.a.Observable.empty().delay(1e3))}))},$J=function(e,t){return e.ofType("LAYERDOWNLOAD:CHECK_EXPORT_DATA_ENTRIES").exhaustMap((function(){var e=t.getState(),n=(L$(e)||[]).filter((function(e){return"completed"===e.status}));return n.length>0?Ut.a.Observable.forkJoin(n.map((function(e){var t=e.result,n=t.indexOf("executionId="),r=t.slice(n),o=r.indexOf("&"),i=(o>-1?r.slice(0,o):r).slice(12),a=t.indexOf("?"),s=t.slice(0,a);return Object(_J.c)(s,i).let(IM.b).catch((function(){return Ut.a.Observable.of(null)})).map((function(t){return t?null:e.id}))}))).flatMap((function(e){return Ut.a.Observable.of({type:"LAYERDOWNLOAD:REMOVE_EXPORT_DATA_RESULTS",ids:e.filter((function(e){return!!e}))},{type:"LAYERDOWNLOAD:SERIALIZE_COOKIE"},P$(!1))})).startWith(P$(!0)):Ut.a.Observable.empty()}))},JJ=function(e,t){return e.ofType(S$,j$,"LAYERDOWNLOAD:UPDATE_EXPORT_DATA_RESULT","LAYERDOWNLOAD:SERIALIZE_COOKIE").filter((function(){return Object(J.b)(t.getState())})).do((function(){var e=t.getState(),n=L$(e),r=Object(J.e)(e).id,o=JSON.stringify({results:n});document.cookie="exportDataResults_".concat(r,"=").concat(encodeURIComponent(o))})).flatMap((function(){return Ut.a.Observable.empty()}))},e0=function(e){return e.ofType(hz.d).switchMap((function(){return e.ofType(xJ.e).switchMap((function(){return Ut.a.Observable.of(k$([]))})).takeUntil(e.ofType(vM.b))}))},t0=function(e,t){return e.ofType(hz.d).switchMap((function(){return VJ(t.getState()).concat(e.ofType(xJ.d).switchMap((function(){return VJ(t.getState())})).takeUntil(e.ofType(vM.b)))}))};function n0(e){return function(e){if(Array.isArray(e))return r0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r0(e,t)}(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 r0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{downloadOptions:{singlePage:!0}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _$:return i0(i0({},e),{},{loading:!0});case"LAYERDOWNLOAD:FORMAT_SELECTED":return i0(i0({},e),{},{downloadOptions:i0(i0({},e.downloadOptions),{},a0({},t.key,t.value))});case"LAYERDOWNLOAD:CLEAR_DOWNLOAD_OPTIONS":return i0(i0({},e),{},{downloadOptions:{singlePage:!0}});case"LAYERDOWNLOAD:FORMAT_FETCH":return i0(i0({},e),{},{layer:t.layer,wfsFormats:[],formatsLoading:!0});case"LAYERDOWNLOAD:DOWNLOAD_FINISHED":return i0(i0({},e),{},{loading:!1});case"LAYERDOWNLOAD:FORMAT_UPDATE":return i0(i0({},e),{},{wfsFormats:t.wfsFormats,formatsLoading:!1});case O$:return i0(i0({},e),{},{service:t.service});case"LAYERDOWNLOAD:CHECKING_WPS_AVAILABILITY":return i0(i0({},e),{},{checkingWPSAvailability:t.checking});case"LAYERDOWNLOAD:SET_EXPORT_DATA_RESULTS":return i0(i0({},e),{},{results:t.results});case S$:return i0(i0({},e),{},{results:[].concat(n0(e.results||[]),[t.result])});case"LAYERDOWNLOAD:UPDATE_EXPORT_DATA_RESULT":var n=Object(le.findIndex)(e.results||[],{id:t.id});return i0(i0({},e),{},{results:n>-1?[].concat(n0(e.results.slice(0,n)),[i0(i0({},e.results[n]),t.newProps||{})],n0(e.results.slice(n+1))):e.results});case j$:return i0(i0({},e),{},{results:(e.results||[]).filter((function(e){return e.id!==t.id}))});case"LAYERDOWNLOAD:REMOVE_EXPORT_DATA_RESULTS":return i0(i0({},e),{},{results:(e.results||[]).filter((function(e){return-1===Object(le.findIndex)(t.ids,(function(t){return t===e.id}))}))});case"LAYERDOWNLOAD:SHOW_INFO_BUBBLE":return i0(i0({},e),{},{showInfoBubble:t.show});case"LAYERDOWNLOAD:SET_INFO_BUBBLE_MESSAGE":return i0(i0({},e),{},{infoBubbleMessage:{msgId:t.msgId,msgParams:t.msgParams,level:t.level}});case"LAYERDOWNLOAD:CHECKING_EXPORT_DATA_ENTRIES":return i0(i0({},e),{},{checkingExportDataEntries:t.checking});default:return e}},l0=Object(O.d)("LayerDownload",{component:Object(h.connect)(Object(L.c)({url:xM.n,filterObj:R$,enabled:function(e){var t,n;return null==e||null===(t=e.controls)||void 0===t||null===(n=t.layerdownload)||void 0===n?void 0:n.enabled},downloadOptions:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.downloadOptions},loading:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.loading},wfsFormats:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.wfsFormats},formatsLoading:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.formatsLoading},layer:V.j,service:N$,checkingWPSAvailability:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.checkingWPSAvailability},virtualScroll:function(e){return e&&e.featuregrid&&e.featuregrid.virtualScroll}}),{onExport:function(e,t,n){return{type:_$,url:e,filterObj:t,downloadOptions:n}},onDownloadOptionChange:C$,onClearDownloadOptions:function(){return{type:"LAYERDOWNLOAD:CLEAR_DOWNLOAD_OPTIONS"}},onFormatOptionsFetch:function(e){return{type:"LAYERDOWNLOAD:FORMAT_FETCH",layer:e}},onCheckWPSAvailability:function(e){return{type:"LAYERDOWNLOAD:CHECK_WPS_AVAILABILITY",url:e}},onMount:function(){return Object(x.g)("layerdownload","available",!0)},onUnmount:function(){return Object(x.g)("layerdownload","available",!1)},onClose:function(){return Object(x.h)("layerdownload")}})(uJ),containers:{TOC:{doNotHide:!0,name:"LayerDownload"},MapFooter:{name:"LayerDownload",position:1,tool:Object(h.connect)(Object(L.c)({active:function(e){var t,n;return null==e||null===(t=e.controls)||void 0===t||null===(n=t.exportDataResults)||void 0===n?void 0:n.enabled},showInfoBubble:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.showInfoBubble},infoBubbleMessage:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.infoBubbleMessage},checkingExportDataEntries:function(e){var t;return null==e||null===(t=e.layerdownload)||void 0===t?void 0:t.checkingExportDataEntries},results:L$,currentLocale:Z.b}),{onToggle:x.h.bind(null,"exportDataResults","enabled"),onActive:function(){return{type:"LAYERDOWNLOAD:CHECK_EXPORT_DATA_ENTRIES"}},onRemoveResult:function(e){return{type:j$,id:e}}})(gJ)}},epics:s,reducers:{layerdownload:s0}}),u0=n("./js/plugins/Save.jsx"),c0=n("./js/plugins/SaveAs.jsx"),d0=n("./js/plugins/Share.jsx"),p0=n("./MapStore2/web/client/reducers/security.js"),f0=n("./MapStore2/web/client/reducers/maps.js"),h0=n("./MapStore2/web/client/reducers/maplayout.js"),m0=n("./node_modules/react-swipeable-views/lib/index.js"),g0=n.n(m0),y0=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),b0={plugins:{AddGroupPlugin:N,IdentifyPlugin:R.a,TOCPlugin:Un,MapPlugin:Gn.a,ToolbarPlugin:Hn.a,DrawerMenuPlugin:Br,ZoomAllPlugin:qr.a,MapLoadingPlugin:Ur.a,OmniBarPlugin:Gr.default,BackgroundSelectorPlugin:Hr.a,FullScreenPlugin:Vr.a,ZoomInPlugin:Wr.a,ZoomOutPlugin:Yr.a,ExpanderPlugin:Kr.a,BurgerMenuPlugin:Xr.default,UndoPlugin:Co,RedoPlugin:Co,ScaleBoxPlugin:To.a,MapFooterPlugin:ko.a,PrintPlugin:Ao.a,MeasurePlugin:Wi,FilterLayerPlugin:Yi,TOCItemsSettingsPlugin:TP,WidgetsPlugin:mM,WidgetsBuilderPlugin:RF,WidgetsTrayPlugin:_z,NotificationsPlugin:Oz.default,FeatureEditorPlugin:lU,QueryPanelPlugin:VH,SavePlugin:u0.default,SaveAsPlugin:c0.default,MetadataExplorerPlugin:aY,GridContainerPlugin:bY,StyleEditorPlugin:PY,TimelinePlugin:MY.a,PlaybackPlugin:IY.a,MousePositionPlugin:tK,SearchPlugin:nZ,SearchServicesConfigPlugin:OQ,SwipePlugin:t$,LocatePlugin:x$,SharePlugin:d0.default,LayerDownloadPlugin:l0,AddReducersAndEpics:{reducers:{security:p0.default,maps:f0.a,maplayout:h0.a},epics:l.b}},requires:{ReactSwipe:g0.a,SwipeHeader:y0.a}},v0=u.a?Object(u.a)(b0):b0;t.default=v0},"./js/plugins/Save.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-redux/es/index.js"),a=n("./node_modules/reselect/es/index.js"),s=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=n("./MapStore2/web/client/actions/controls.js"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./js/actions/gnsave.js"),f=n("./MapStore2/web/client/selectors/security.js"),h=n("./MapStore2/web/client/reducers/controls.js"),m=n("./js/reducers/gnresource.js"),g=n("./js/reducers/gnsave.js"),y=n("./js/epics/gnsave.js"),b=n("./js/plugins/save/SaveModal.jsx");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return(x=Object.assign||function(e){for(var t=1;t';return o.a.createElement("div",{className:"input-link"},o.a.createElement("div",{className:"input-link-head"},o.a.createElement("h4",null,o.a.createElement(d.default,{msgId:"share.embeddedLinkTitle"})),o.a.createElement(v,{copied:this.state.copied,shareUrl:t,onCopy:function(){return e.setState({copied:!0})},onMouseLeave:function(){return e.setState({copied:!1})}})),o.a.createElement("div",{className:"input-link-tools"},this.renderTools()),o.a.createElement("pre",null,o.a.createElement("code",null,t)))}}])&&S(t.prototype,n),r&&S(t,r),a}(o.a.Component);A(P,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),A(P,"defaultProps",{showTOCToggle:!0,shareUrl:""});var M=P;function I(e){return(I="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 D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return i(i({},e),{},{loading:!0});case r.d:return i(i({},e),{},{error:null,data:t.data,loading:!1});case r.a:return i(i({},e),{},{data:null,error:t.error,loading:!1});case r.h:return i(i({},e),{},{data:i(i({},e.data),t.properties)});case r.g:return i(i({},e),{},{type:t.resourceType});case r.c:return i(i({},e),{},{isNew:!0});case r.e:return i(i({},e),{},{id:t.id});case r.f:return i(i({},e),{},{permissions:t.permissions});default:return e}}},"./js/reducers/gnsave.js":function(e,t,n){"use strict";var r=n("./js/actions/gnsave.js");t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));n("./node_modules/url/url.js");var r={},o=function(e){return e},i=function(e,t){r[e]=t},a=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"e",(function(){return _}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/castArray.js"),a=n.n(i);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=["page"],h={},m=function(e,t){h[e]=t},g=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==h||null===(e=h[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==h?void 0:h[e+t]},b=function(){return f},v=function(){return 20},w=function(e){var t=e.location,n=e.pathname,r=e.query,i=e.replaceQuery,l=t.search,u=p(t,["search"]),f=o.a.parse(l||"",!0).query,h=r?i?c(c({},f),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=a()(e[t]).filter((function(e){return e})),i=-1===o.indexOf(n)?[].concat(s(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,i))}),f):f;return"#".concat(o.a.format(c(c(c({},u),n&&{pathname:n}),{},{query:Object.keys(h).reduce((function(e,t){return h[t]&&0!==h[t].length?c(c({},e),{},d({},t,h[t])):e}),{})})))};function x(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var _=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/@mapbox/geojsonhint/lib/object.js":function(e,t,n){var r=n("./node_modules/@mapbox/geojsonhint/lib/rhr.js");e.exports.hint=function(e,t){var n=[],o=0;function i(e){if(t&&!1===t.noDuplicateMembers||!e.__duplicateProperties__||n.push({message:"An object contained duplicate members, making parsing ambigous: "+e.__duplicateProperties__.join(", "),line:e.__line__}),!s(e,"type","string"))if(f[e.type])e&&f[e.type](e);else{var r=h[e.type.toLowerCase()];void 0!==r?n.push({message:"Expected "+r+" but got "+e.type+" (case sensitive)",line:e.__line__}):n.push({message:"The type "+e.type+" is unknown",line:e.__line__})}}function a(e,t){return e.every((function(e){return null!==e&&typeof e===t}))}function s(e,t,r){if(void 0===e[t])return n.push({message:'"'+t+'" member required',line:e.__line__});if("array"===r){if(!Array.isArray(e[t]))return n.push({message:'"'+t+'" member should be an array, but is an '+typeof e[t]+" instead",line:e.__line__})}else{if("object"===r&&e[t]&&"Object"!==e[t].constructor.name)return n.push({message:'"'+t+'" member should be '+r+", but is an "+e[t].constructor.name+" instead",line:e.__line__});if(r&&typeof e[t]!==r)return n.push({message:'"'+t+'" member should be '+r+", but is an "+typeof e[t]+" instead",line:e.__line__})}}function l(e,r){if(!Array.isArray(e))return n.push({message:"position should be an array, is a "+typeof e+" instead",line:e.__line__||r});if(e.length<2)return n.push({message:"position must have 2 or more elements",line:e.__line__||r});if(e.length>3)return n.push({message:"position should not have more than 3 elements",level:"message",line:e.__line__||r});if(!a(e,"number"))return n.push({message:"each element in a position must be a number",line:e.__line__||r});if(t&&t.precisionWarning){if(10===o)return o+=1,n.push({message:"truncated warnings: we've encountered coordinate precision warning 10 times, no more warnings will be reported",level:"message",line:e.__line__||r});o<10&&e.forEach((function(t){var i=0,a=String(t).split(".")[1];if(void 0!==a&&(i=a.length),i>6)return o+=1,n.push({message:"precision of coordinates should be reduced",level:"message",line:e.__line__||r})}))}}function u(e,t,r,o){if(void 0===o&&void 0!==e.__line__&&(o=e.__line__),0===r)return l(e,o);if(1===r&&t)if("LinearRing"===t){if(!Array.isArray(e[e.length-1]))return n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:o}),!0;if(e.length<4&&n.push({message:"a LinearRing of coordinates needs to have four or more positions",line:o}),e.length&&(e[e.length-1].length!==e[0].length||!e[e.length-1].every((function(t,n){return e[0][n]===t}))))return n.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:o}),!0}else if("Line"===t&&e.length<2)return n.push({message:"a line needs to have two or more coordinates to be valid",line:o});if(Array.isArray(e))return e.map((function(e){return u(e,t,r-1,e.__line__||o)})).some((function(e){return e}));n.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:o})}function c(e){if(e.crs){"object"==typeof e.crs&&e.crs.properties&&"urn:ogc:def:crs:OGC:1.3:CRS84"===e.crs.properties.name?n.push({message:"old-style crs member is not recommended, this object is equivalent to the default and should be removed",line:e.__line__}):n.push({message:"old-style crs member is not recommended",line:e.__line__})}}function d(e){if(e.bbox)return Array.isArray(e.bbox)?(a(e.bbox,"number")||n.push({message:"each element in a bbox member must be a number",line:e.bbox.__line__}),4!==e.bbox.length&&6!==e.bbox.length&&n.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:e.bbox.__line__}),n.length):void n.push({message:"bbox member must be an array of numbers, but is a "+typeof e.bbox,line:e.__line__})}function p(e){c(e),d(e),void 0!==e.id&&"string"!=typeof e.id&&"number"!=typeof e.id&&n.push({message:'Feature "id" member must have a string or number value',line:e.__line__}),void 0!==e.features&&n.push({message:'Feature object cannot contain a "features" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'Feature object cannot contain a "coordinates" member',line:e.__line__}),"Feature"!==e.type&&n.push({message:"GeoJSON features must have a type=feature member",line:e.__line__}),s(e,"properties","object"),s(e,"geometry","object")||e.geometry&&i(e.geometry)}var f={Point:function(e){var t;c(e),d(e),void 0!==(t=e).properties&&n.push({message:'geometry object cannot contain a "properties" member',line:t.__line__}),void 0!==t.geometry&&n.push({message:'geometry object cannot contain a "geometry" member',line:t.__line__}),void 0!==t.features&&n.push({message:'geometry object cannot contain a "features" member',line:t.__line__}),s(e,"coordinates","array")||l(e.coordinates)},Feature:p,MultiPoint:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"",1)},LineString:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"Line",1)},MultiLineString:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"Line",2)},FeatureCollection:function(e){if(c(e),d(e),void 0!==e.properties&&n.push({message:'FeatureCollection object cannot contain a "properties" member',line:e.__line__}),void 0!==e.coordinates&&n.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:e.__line__}),!s(e,"features","array")){if(!a(e.features,"object"))return n.push({message:"Every feature must be an object",line:e.__line__});e.features.forEach(p)}},GeometryCollection:function(e){c(e),d(e),s(e,"geometries","array")||(a(e.geometries,"object")||n.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:e.__line__}),1===e.geometries.length&&n.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:e.geometries.__line__}),e.geometries.forEach((function(t){t&&("GeometryCollection"===t.type&&n.push({message:"GeometryCollection should avoid nested geometry collections",line:e.geometries.__line__}),i(t))})))},Polygon:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"LinearRing",2)||r(e,n)},MultiPolygon:function(e){c(e),d(e),s(e,"coordinates","array")||u(e.coordinates,"LinearRing",3)||r(e,n)}},h=Object.keys(f).reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});return"object"!=typeof e||null==e?(n.push({message:"The root of a GeoJSON object must be an object.",line:0}),n):(i(e),n.forEach((function(e){({}).hasOwnProperty.call(e,"line")&&void 0===e.line&&delete e.line})),n)}},"./node_modules/@mapbox/geojsonhint/lib/rhr.js":function(e,t){function n(e){return e*Math.PI/180}function r(e){var t=0;if(e.length>2)for(var r,o,i=0;i=0}function o(e){if(e&&e.length>0){if(r(e[0]))return!1;if(!e.slice(1,e.length).every(r))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?o(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(o):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},"./node_modules/@mapbox/togeojson/togeojson.js":function(e,t,n){(function(t){var r=function(){"use strict";var e,r=/\s*/g,o=/^\s*|\s*$/g,i=/\s+/;function a(e){if(!e||!e.length)return 0;for(var t=0,n=0;te[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(l-a)*(e[1]-s)/(u-s)+a&&(r=!r)}return r}e.exports=function(e,t){var n=r.getCoord(e),i=t.geometry.coordinates;"Polygon"===t.geometry.type&&(i=[i]);for(var a=0,s=!1;a1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/point-on-surface/index.js":function(e,t,n){var r=n("./node_modules/@turf/point-on-surface/node_modules/@turf/helpers/index.js").featureCollection,o=n("./node_modules/@turf/point-on-surface/node_modules/@turf/center/index.js"),i=n("./node_modules/@turf/point-on-surface/node_modules/@turf/distance/index.js"),a=n("./node_modules/@turf/inside/index.js"),s=n("./node_modules/@turf/point-on-surface/node_modules/@turf/explode/index.js");function l(e,t,n,r,o,i){if(Math.sqrt((o-n)*(o-n)+(i-r)*(i-r))===Math.sqrt((e-n)*(e-n)+(t-r)*(t-r))+Math.sqrt((o-e)*(o-e)+(i-t)*(i-t)))return!0}e.exports=function(e){"FeatureCollection"!==e.type&&("Feature"!==e.type&&(e={type:"Feature",geometry:e,properties:{}}),e=r([e]));for(var t=o(e),n=!1,u=0;!n&&ue[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=0))throw new Error("distance must be a positive number");return d(p(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:h}},"./node_modules/@turf/point-on-surface/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/point-on-surface/node_modules/@turf/meta/index.js":function(e,t,n){"use strict";function r(e,t,n){if(null!==e){var o,i,a,s,l,u,c,d,p,f,h=0,m=0,g=e.type,y="FeatureCollection"===g,b="Feature"===g,v=y?e.features.length:1;for(o=0;o=0&&u>0){for(r=[],i=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((o=r.pop())=0?l:u;r.length&&(s=[i,a])}return s}e.exports=n,n.range=o},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},l.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},l.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},l.prototype._reset=function(){this._isTickUsed=!1},n.exports=l,n.exports.firstLineError=o},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var o=!1,i=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(i,i,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(i){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(i),c=new e(t);c._propagateFrom(this,1);var d=this._target();if(c._setBoundTo(u),u instanceof e){var p={promiseRejectionQueued:!1,promise:c,target:d,bindingPromise:u};d._then(t,a,void 0,c,p),u._then(s,l,void 0,c,p),c._setOnCancel(u)}else c._resolveCallback(d);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var o=e("./promise")();o.noConflict=function(){try{Promise===o&&(Promise=r)}catch(e){}return o},t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var o=r(null),i=r(null);o[" size"]=i[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function o(e){return function(e,r){var o;if(null!=e&&(o=e[r]),"function"!=typeof o){var i="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(i)}return o}(e,this.pop()).apply(e,this)}function i(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(o,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:i}else t=i;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,o){var i=e("./util"),a=i.tryCatch,s=i.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r){var o,i,a,s=n._getDomain,l=n._async,u=e("./errors").Warning,c=e("./util"),d=c.canAttachTrace,p=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,f=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,m=null,g=null,y=!1,b=!(0==c.env("BLUEBIRD_DEBUG")),v=!(0==c.env("BLUEBIRD_WARNINGS")||!b&&!c.env("BLUEBIRD_WARNINGS")),w=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(v||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout((function(){e._notifyUnhandledRejection()}),1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){G("rejectionHandled",o,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),G("unhandledRejection",i,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return z(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},n.onUnhandledRejectionHandled=function(e){var t=s();o="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var _=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!Q.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Q.longStackTraces&&V()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;Q.longStackTraces=!0,_=function(){if(l.haveItemsQueued()&&!Q.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,r.deactivateLongStackTraces(),l.enableTrampoline(),Q.longStackTraces=!1},n.prototype._captureStackTrace=L,n.prototype._attachExtraTrace=F,r.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return Q.longStackTraces&&V()};var O=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}return"function"==typeof Event?(e=new Event("CustomEvent"),c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)})}catch(e){}return function(){return!1}}(),S=c.isNode?function(){return t.emit.apply(t,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function j(e,t){return{promise:t}}var E={promiseCreated:j,promiseFulfilled:j,promiseRejected:j,promiseResolved:j,promiseCancelled:j,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:j},C=function(e){var t=!1;try{t=S.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=O(e,E[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function T(){return!1}function k(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function A(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function P(){return this._onCancelField}function M(e){this._onCancelField=e}function I(){this._cancellationParent=void 0,this._onCancelField=void 0}function D(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&_()),"warnings"in e){var t=e.warnings;Q.warnings=!!t,x=Q.warnings,c.isObject(t)&&"wForgottenReturn"in t&&(x=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!Q.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=I,n.prototype._propagateFrom=D,n.prototype._onCancel=P,n.prototype._setOnCancel=M,n.prototype._attachCancellationCallback=A,n.prototype._execute=k,N=D,Q.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!Q.monitoring?(Q.monitoring=!0,n.prototype._fireEvent=C):!e.monitoring&&Q.monitoring&&(Q.monitoring=!1,n.prototype._fireEvent=T)),n},n.prototype._fireEvent=T,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var N=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function R(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function L(){this._trace=new X(this._peekContext())}function F(e,t){if(d(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=q(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,r){if(Q.warnings){var o,i=new u(e);if(t)r._attachExtraTrace(i);else if(Q.longStackTraces&&(o=n._peekContext()))o.attachExtraTrace(i);else{var a=q(i);i.stack=a.message+"\n"+a.stack.join("\n")}C("warning",i)||U(i,"",!0)}}function B(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:B(t)}}function U(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var o=e.stack;r=t+g(o,e)}else r=t+String(e);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function G(e,t,n,r){var o=!1;try{"function"==typeof t&&(o=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?C(e,n,r)||o||U(n,"Unhandled rejection "):C(e,r)}function H(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():c.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function V(){return"function"==typeof Z}var W=function(){return!1},Y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function K(e){var t=e.match(Y);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function X(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Z(this,X),t>32&&this.uncycle()}c.inherits(X,Error),r.CapturedTrace=X,X.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,o=this;void 0!==o;++r)t.push(o),o=o._parent;for(r=(e=this._length=r)-1;r>=0;--r){var i=t[r].stack;void 0===n[i]&&(n[i]=r)}for(r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a=0;--u)t[u]._length=l,l++;return}}}},X.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=q(e),n=t.message,r=[t.stack],o=this;void 0!==o;)r.push(B(o.stack.split("\n"))),o=o._parent;!function(e){for(var t=e[0],n=1;n=0;--s)if(r[s]===i){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[o]!==l)break;t.pop(),o--}t=r}}(r),function(e){for(var t=0;t=0)return m=/@/,g=t,y=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return!("stack"in o)&&r&&"number"==typeof Error.stackTraceLimit?(m=e,g=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(g=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?H(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},c.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:c.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var Q={warnings:v,longStackTraces:!1,cancellation:!1,monitoring:!1};return w&&n.longStackTraces(),{longStackTraces:function(){return Q.longStackTraces},warnings:function(){return Q.warnings},cancellation:function(){return Q.cancellation},monitoring:function(){return Q.monitoring},propagateFromFunction:function(){return N},boundValueFunction:function(){return R},checkForgottenReturns:function(e,t,n,r,o){if(void 0===e&&null!==t&&x){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=B(s),u=l.length-1;u>=0;--u){var c=l[u];if(!f.test(c)){var d=c.match(h);d&&(i="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(l.length>0){var p=l[0];for(u=0;u0&&(a="\n"+s[u-1]);break}}}var m="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(m,!0,t)}},setBounds:function(e,t){if(V()){for(var n,r,o=e.stack.split("\n"),i=t.stack.split("\n"),a=-1,s=-1,l=0;l=s||(W=function(e){if(p.test(e))return!0;var t=K(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:X,fireDomEvent:O,fireGlobalEvent:S}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var o=function(){return r};return this.caught(n,o)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function o(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(o,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(o,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,o,i=e("./es5"),a=i.freeze,s=e("./util"),l=s.inherits,u=s.notEnumerableProp;function c(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var d=c("Warning","warning"),p=c("CancellationError","cancellation error"),f=c("TimeoutError","timeout error"),h=c("AggregateError","aggregate error");try{r=TypeError,o=RangeError}catch(e){r=c("TypeError","type error"),o=c("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function d(){return f.call(this,this.promise._target()._settledValue())}function p(e){if(!c(this,e))return a.e=e,a}function f(e){var o=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(o._boundValue()):s.call(o._boundValue(),e);if(l===r)return l;if(void 0!==l){o._setReturnedNonUndefined();var f=n(l,o);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new i("late cancellation observer");return o._attachExtraTrace(h),a.e=h,a}f.isPending()&&f._attachCancellationCallback(new u(this))}return f._then(d,p,void 0,this,void 0)}}}return o.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,f,f)},t.prototype.tap=function(e){return this._passThrough(e,1,f)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,f);var r,i=new Array(n-1),a=0;for(r=0;r0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var o=new n(r).promise();return void 0!==e?o.spread(e):o}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,d=t._async;function p(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var o=s();this._callback=null===o?t:l.domainBind(o,t),this._preservedValues=r===i?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function f(e,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==o){if("object"!=typeof o||null===o)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(o)));if("number"!=typeof o.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(o.concurrency)));a=o.concurrency}return new p(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,i).promise()}l.inherits(p,n),p.prototype._asyncInit=function(){this._init$(void 0,-2)},p.prototype._init=function(){},p.prototype._promiseFulfilled=function(e,n){var r=this._values,i=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var d=this._promise,p=this._callback,f=d._boundValue();d._pushContext();var h=u(p).call(f,e,n,i),m=d._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",d),h===c)return this._reject(h.e),!0;var g=o(h,this._promise);if(g instanceof t){var y=(g=g._target())._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=g,g._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(g._reason()),!0):(this._cancel(),!0);h=g._value()}r[n]=h}return++this._totalResolved>=i&&(null!==s?this._filter(r,s):this._resolve(r),!0)},p.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){i.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var d=l._popContext();return i.checkForgottenReturns(r,d,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),o=r.maybeWrapAsError,i=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new i(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),o=0;o1){var n,r=new Array(t-1),o=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},k.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},k.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,y,void 0)},k.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new w(this).promise()},k.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},k.getNewLibraryCopy=n.exports,k.is=function(e){return e instanceof k},k.fromNode=k.fromCallback=function(e){var t=new k(g);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=T(e)(E(t,n));return r===C&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},k.all=function(e){return new w(e).promise()},k.cast=function(e){var t=v(e);return t instanceof k||((t=new k(g))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(e){var t=new k(g);return t._captureStackTrace(),t._rejectCallback(e,!0),t},k.setScheduler=function(e){if("function"!=typeof e)throw new h("expecting a function but got "+u.classString(e));return p.setScheduler(e)},k.prototype._then=function(e,t,n,r,o){var i=void 0!==o,a=i?o:new k(g),l=this._target(),c=l._bitField;i||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var d=s();if(0!=(50397184&c)){var f,h,y=l._settlePromiseCtx;0!=(33554432&c)?(h=l._rejectionHandler0,f=e):0!=(16777216&c)?(h=l._fulfillmentHandler0,f=t,l._unsetRejectionIsUnhandled()):(y=l._settlePromiseLateCancellationObserver,h=new m("late cancellation observer"),l._attachExtraTrace(h),f=t),p.invoke(y,l,{handler:null===d?f:"function"==typeof f&&u.domainBind(d,f),promise:a,receiver:r,value:h})}else l._addCallbacks(e,t,a,r,d);return a},k.prototype._length=function(){return 65535&this._bitField},k.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},k.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},k.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},k.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},k.prototype._isFinal=function(){return(4194304&this._bitField)>0},k.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},k.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},k.prototype._setAsyncGuaranteed=function(){p.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},k.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==l)return void 0===t&&this._isBound()?this._boundValue():t},k.prototype._promiseAt=function(e){return this[4*e-4+2]},k.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},k.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,o=e._receiverAt(0);void 0===o&&(o=l),this._addCallbacks(t,n,r,o,null)},k.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),o=e._promiseAt(t),i=e._receiverAt(t);void 0===i&&(i=l),this._addCallbacks(n,r,o,i,null)},k.prototype._addCallbacks=function(e,t,n,r,o){var i=this._length();if(i>=65531&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===o?e:u.domainBind(o,e)),"function"==typeof t&&(this._rejectionHandler0=null===o?t:u.domainBind(o,t));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===o?e:u.domainBind(o,e)),"function"==typeof t&&(this[a+1]=null===o?t:u.domainBind(o,t))}return this._setLength(i+1),i},k.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},k.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=v(e,this);if(!(n instanceof k))return this._fulfill(e);t&&this._propagateFrom(n,2);var o=n._target();if(o!==this){var i=o._bitField;if(0==(50397184&i)){var a=this._length();a>0&&o._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():p.settlePromises(this))}},k.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return p.fatalError(e,u.isNode);(65535&t)>0?p.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},k.defer=k.pending=function(){return O.deprecated("Promise.defer","new Promise"),{promise:new k(g),resolve:A,reject:P}},u.notEnumerableProp(k,"_makeSelfResolutionError",r),e("./method")(k,g,v,i,O),e("./bind")(k,g,v,O),e("./cancel")(k,w,i,O),e("./direct_resolve")(k),e("./synchronous_inspection")(k),e("./join")(k,w,v,g,p,s),k.Promise=k,k.version="3.5.1",e("./map.js")(k,w,i,v,g,O),e("./call_get.js")(k),e("./using.js")(k,i,v,_,g,O),e("./timers.js")(k,g,O),e("./generators.js")(k,i,g,v,a,O),e("./nodeify.js")(k),e("./promisify.js")(k,g),e("./props.js")(k,w,v,i),e("./race.js")(k,g,v,i),e("./reduce.js")(k,w,i,v,g,O),e("./settle.js")(k,w,O),e("./some.js")(k,w,i),e("./filter.js")(k,g),e("./each.js")(k,g),e("./any.js")(k),u.toFastProperties(k),u.toFastProperties(k.prototype),M({a:1}),M({b:2}),M({c:3}),M(1),M((function(){})),M(void 0),M(!1),M(new k(g)),O.setBounds(d.firstLineError,u.lastLineError),k}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,i){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,i);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===i?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(i));else{var u=o("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var o=this._promise,i=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(e){for(var t=new i,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return d(this)},t.props=function(e){return d(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},i.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new i(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=e("./errors").RangeError,a=e("./errors").AggregateError,s=o.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),o=n.promise();return n.setHowMany(t),n.init(),o}o.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new i(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},o=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return i.call(this._target())},e.prototype.isFulfilled=function(){return o.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),o=r.errorObj,i=r.isObject,a={}.hasOwnProperty;return function(e,s){if(i(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return o.e=e,o}}(e);if(l===o){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,i,a){var s=new t(n),l=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=r.tryCatch(i).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,!1,!0),s=null)}));return s&&u===o&&(s._rejectCallback(u.e,!0,!0),s=null),l}(e,l,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,o){var i,l;return void 0!==o?(i=t.resolve(o)._then(s,null,null,e,void 0),r.cancellation()&&o instanceof t&&i._setOnCancel(o)):(i=new t(n),l=setTimeout((function(){i._fulfill()}),+e),r.cancellation()&&i._setOnCancel(new a(l)),i._captureStackTrace()),i._setAsyncGuaranteed(),i};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new i("operation timed out"):new i(t),o.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,d=s.tryCatch,p={};function f(e){setTimeout((function(){throw e}),0)}function h(e,n){var o=0,a=e.length,s=new t(i);return function i(){if(o>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[o++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return f(e)}if(l instanceof t)return l._then(i,f,null,null,null)}i()}(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function g(e,t,n){this.constructor$(e,t,n)}function y(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():p},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==p?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(g,m),g.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new g(e,this,o());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,r,o){"use strict";var i=e("./es5"),a="undefined"==typeof navigator,s={e:{}},l,u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function c(){try{var e=l;return l=null,e.apply(this,arguments)}catch(e){return s.e=e,s}}function d(e){return l=e,c}var p=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function f(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function h(e){return"function"==typeof e||"object"==typeof e&&null!==e}function m(e){return f(e)?new Error(C(e)):e}function g(e,t){var n,r=e.length,o=new Array(r+1);for(n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=x.test(e+"")&&i.names(e).length>0;if(n||r||o)return!0}return!1}catch(e){return!1}}function O(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}var S=/^[a-z$_][a-z$_0-9]*$/i;function j(e){return S.test(e)}function E(e,t,n){for(var r=new Array(e),o=0;o10||G[0]>0),U.isNode&&U.toFastProperties(t);try{throw new Error}catch(e){U.lastLineError=e}r.exports=U},{"./es5":13}]},{},[4])(4)},e.exports=o(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"),n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/canvas-to-blob/index.js":function(e,t){e.exports=function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),r=n.length,o=new window.ArrayBuffer(r),i=new window.Uint8Array(o),a=0;a]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t)},t.Property=function(e,t){this.name=e,this.value=t},t.Property.prototype.getValue=function(){return this.value},t.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},t.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);return(this.value+"").match(/%$/)&&(e/=100),e},t.Property.prototype.valueOrDefault=function(e){return this.hasValue()?this.value:e},t.Property.prototype.numValueOrDefault=function(e){return this.hasValue()?this.numValue():e},t.Property.prototype.addOpacity=function(e){var n=this.value;if(null!=e.value&&""!=e.value&&"string"==typeof this.value){var o=new r(this.value);o.ok&&(n="rgba("+o.r+", "+o.g+", "+o.b+", "+e.numValue()+")")}return new t.Property(this.name,n)},t.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=this.value),t.Definitions[e]},t.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},t.Property.prototype.getFillStyleDefinition=function(e,n){var r=this.getDefinition();if(null!=r&&r.createGradient)return r.createGradient(t.ctx,e,n);if(null!=r&&r.createPattern){if(r.getHrefAttribute().hasValue()){var o=r.attribute("patternTransform");r=r.getHrefAttribute().getDefinition(),o.hasValue()&&(r.attribute("patternTransform",!0).value=o.value)}return r.createPattern(t.ctx,e)}return null},t.Property.prototype.getDPI=function(e){return 96},t.Property.prototype.getEM=function(e){var n=12,r=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);return r.hasValue()&&(n=r.toPixels(e)),n},t.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},t.Property.prototype.toPixels=function(e,n){if(!this.hasValue())return 0;var r=this.value+"";if(r.match(/em$/))return this.numValue()*this.getEM(e);if(r.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(r.match(/px$/))return this.numValue();if(r.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(r.match(/pc$/))return 15*this.numValue();if(r.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(r.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(r.match(/in$/))return this.numValue()*this.getDPI(e);if(r.match(/%$/))return this.numValue()*t.ViewPort.ComputeSize(e);var o=this.numValue();return n&&o<1?o*t.ViewPort.ComputeSize(e):o},t.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/s$/)?1e3*this.numValue():(e.match(/ms$/),this.numValue())},t.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/deg$/)?this.numValue()*(Math.PI/180):e.match(/grad$/)?this.numValue()*(Math.PI/200):e.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return t.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},t.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(e,n,r,o,i,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",t.ctx.font);return{fontFamily:i||s.fontFamily,fontSize:o||s.fontSize,fontStyle:e||s.fontStyle,fontWeight:r||s.fontWeight,fontVariant:n||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var e=this;this.Parse=function(n){for(var r={},o=t.trim(t.compressSpaces(n||"")).split(" "),i={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;sthis.x2&&(this.x2=e)),null!=t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},this.addX=function(e){this.addPoint(e,null)},this.addY=function(e){this.addPoint(null,e)},this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1),this.addPoint(e.x2,e.y2)},this.addQuadraticCurve=function(e,t,n,r,o,i){var a=e+2/3*(n-e),s=t+2/3*(r-t),l=a+1/3*(o-e),u=s+1/3*(i-t);this.addBezierCurve(e,t,a,l,s,u,o,i)},this.addBezierCurve=function(e,t,n,r,o,i,a,s){var l=[e,t],u=[n,r],c=[o,i],d=[a,s];this.addPoint(l[0],l[1]),this.addPoint(d[0],d[1]);for(var p=0;p<=1;p++){var f=function(e){return Math.pow(1-e,3)*l[p]+3*Math.pow(1-e,2)*e*u[p]+3*(1-e)*Math.pow(e,2)*c[p]+Math.pow(e,3)*d[p]},h=6*l[p]-12*u[p]+6*c[p],m=-3*l[p]+9*u[p]-9*c[p]+3*d[p],g=3*u[p]-3*l[p];if(0!=m){var y=Math.pow(h,2)-4*g*m;if(!(y<0)){var b=(-h+Math.sqrt(y))/(2*m);0=0;t--)this.transforms[t].unapply(e)},this.applyToPoint=function(e){for(var t=0;ts&&(this.styles[a]=o[a],this.stylesSpecificity[a]=i)}}},null!=e&&1==e.nodeType){for(var r=0;r0&&e.push([this.points[this.points.length-1],e[e.length-1][1]]),e}},t.Element.polyline.prototype=new t.Element.PathElementBase,t.Element.polygon=function(e){this.base=t.Element.polyline,this.base(e),this.basePath=this.path,this.path=function(e){var t=this.basePath(e);return null!=e&&(e.lineTo(this.points[0].x,this.points[0].y),e.closePath()),t}},t.Element.polygon.prototype=new t.Element.polyline,t.Element.path=function(e){this.base=t.Element.PathElementBase,this.base(e);var n=this.attribute("d").value;n=n.replace(/,/gm," ");for(var r=0;r<2;r++)n=n.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");n=(n=n.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(r=0;r<2;r++)n=n.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");n=n.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),n=t.compressSpaces(n),n=t.trim(n),this.PathParser=new function(e){this.tokens=e.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new t.Point(0,0),this.control=new t.Point(0,0),this.current=new t.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var e=new t.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)},this.getAsControlPoint=function(){var e=this.getPoint();return this.control=e,e},this.getAsCurrentPoint=function(){var e=this.getPoint();return this.current=e,e},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new t.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(e){return this.isRelativeCommand()&&(e.x+=this.current.x,e.y+=this.current.y),e},this.addMarker=function(e,t,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(e,null==t?null:t.angleTo(e))},this.addMarkerAngle=function(e,t){this.points.push(e),this.angles.push(t)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var e=0;e1&&(d*=Math.sqrt(y),p*=Math.sqrt(y));var b=(h==m?-1:1)*Math.sqrt((Math.pow(d,2)*Math.pow(p,2)-Math.pow(d,2)*Math.pow(g.y,2)-Math.pow(p,2)*Math.pow(g.x,2))/(Math.pow(d,2)*Math.pow(g.y,2)+Math.pow(p,2)*Math.pow(g.x,2)));isNaN(b)&&(b=0);var v=new t.Point(b*d*g.y/p,b*-p*g.x/d),w=new t.Point((s.x+c.x)/2+Math.cos(f)*v.x-Math.sin(f)*v.y,(s.y+c.y)/2+Math.sin(f)*v.x+Math.cos(f)*v.y),x=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))},_=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(x(e)*x(t))},O=function(e,t){return(e[0]*t[1]=1&&(C=0);var T=1-m?1:-1,k=S+T*(C/2),A=new t.Point(w.x+d*Math.cos(k),w.y+p*Math.sin(k));if(n.addMarkerAngle(A,k-T*Math.PI/2),n.addMarkerAngle(c,k-T*Math.PI),r.addPoint(c.x,c.y),null!=e){_=d>p?d:p;var P=d>p?1:d/p,M=d>p?p/d:1;e.translate(w.x,w.y),e.rotate(f),e.scale(P,M),e.arc(0,0,_,S,S+C,1-m),e.scale(1/P,1/M),e.rotate(-f),e.translate(-w.x,-w.y)}}break;case"Z":case"z":null!=e&&e.closePath(),n.current=n.start}return r},this.getMarkers=function(){for(var e=this.PathParser.getMarkerPoints(),t=this.PathParser.getMarkerAngles(),n=[],r=0;r1&&(this.offset=1);var n=this.style("stop-color",!0);""==n.value&&(n.value="#000"),this.style("stop-opacity").hasValue()&&(n=n.addOpacity(this.style("stop-opacity"))),this.color=n.value},t.Element.stop.prototype=new t.Element.ElementBase,t.Element.AnimateBase=function(e){this.base=t.Element.ElementBase,this.base(e),t.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var e=this.attribute("attributeType").value,t=this.attribute("attributeName").value;return"CSS"==e?this.parent.style(t,!0):this.parent.attribute(t,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(e){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+e;var t=!1;if(this.beginn&&a.attribute("x").hasValue())break;o+=a.measureTextRecursive(e)}return-1*("end"==r?o:o/2)}return 0},this.renderChild=function(e,t,n,r){var o=n.children[r];o.attribute("x").hasValue()?(o.x=o.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,r),o.attribute("dx").hasValue()&&(o.x+=o.attribute("dx").toPixels("x"))):(o.attribute("dx").hasValue()&&(t.x+=o.attribute("dx").toPixels("x")),o.x=t.x),t.x=o.x+o.measureText(e),o.attribute("y").hasValue()?(o.y=o.attribute("y").toPixels("y"),o.attribute("dy").hasValue()&&(o.y+=o.attribute("dy").toPixels("y"))):(o.attribute("dy").hasValue()&&(t.y+=o.attribute("dy").toPixels("y")),o.y=t.y),t.y=o.y,o.render(e);for(r=0;r0&&" "!=t[n-1]&&n0&&" "!=t[n-1]&&(n==t.length-1||" "==t[n+1])&&(i="initial"),void 0!==e.glyphs[r]&&null==(o=e.glyphs[r][i])&&"glyph"==e.glyphs[r].type&&(o=e.glyphs[r])}else o=e.glyphs[r];return null==o&&(o=e.missingGlyph),o},this.renderChildren=function(e){var n=this.parent.style("font-family").getDefinition();if(null==n)""!=e.fillStyle&&e.fillText(t.compressSpaces(this.getText()),this.x,this.y),""!=e.strokeStyle&&e.strokeText(t.compressSpaces(this.getText()),this.x,this.y);else{var r=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),o=this.parent.style("font-style").valueOrDefault(t.Font.Parse(t.ctx.font).fontStyle),i=this.getText();n.isRTL&&(i=i.split("").reverse().join(""));for(var a=t.ToNumberArray(this.parent.attribute("dx").value),s=0;s0?"":this.text}},t.Element.tspan.prototype=new t.Element.TextElementBase,t.Element.tref=function(e){this.base=t.Element.TextElementBase,this.base(e),this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(null!=e)return e.children[0].getText()}},t.Element.tref.prototype=new t.Element.TextElementBase,t.Element.a=function(e){this.base=t.Element.TextElementBase,this.base(e),this.hasText=e.childNodes.length>0;for(var n=0;n0){var r=new t.Element.g;r.children=this.children,r.parent=this,r.render(e)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){t.ctx.canvas.style.cursor="pointer"}},t.Element.a.prototype=new t.Element.TextElementBase,t.Element.image=function(e){this.base=t.Element.RenderedElementBase,this.base(e);var n=this.getHrefAttribute().value;if(""!=n){var r=n.match(/\.svg$/);if(t.Images.push(this),this.loaded=!1,r)this.img=t.ajax(n),this.loaded=!0;else{this.img=document.createElement("img"),1==t.opts.useCORS&&(this.img.crossOrigin="Anonymous");var o=this;this.img.onload=function(){o.loaded=!0},this.img.onerror=function(){t.log('ERROR: image "'+n+'" not found'),o.loaded=!0},this.img.src=n}this.renderChildren=function(e){var n=this.attribute("x").toPixels("x"),o=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=i&&0!=a&&(e.save(),r?e.drawSvg(this.img,n,o,i,a):(e.translate(n,o),t.AspectRatio(e,this.attribute("preserveAspectRatio").value,i,this.img.width,a,this.img.height,0,0),e.drawImage(this.img,0,0)),e.restore())},this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),o=this.attribute("height").toPixels("y");return new t.BoundingBox(e,n,e+r,n+o)}}},t.Element.image.prototype=new t.Element.RenderedElementBase,t.Element.g=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getBoundingBox=function(){for(var e=new t.BoundingBox,n=0;n0)for(var v=y[b].indexOf("url"),w=y[b].indexOf(")",v),x=y[b].substr(v+5,w-v-6),_=t.parseXml(t.ajax(x)).getElementsByTagName("font"),O=0;O<_.length;O++){var S=t.CreateElement(_[O]);t.Definitions[g]=S}}}},t.Element.style.prototype=new t.Element.ElementBase,t.Element.use=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(e){this.baseSetContext(e),this.attribute("x").hasValue()&&e.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&e.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(e){null!=n&&n.path(e)},this.getBoundingBox=function(){if(null!=n)return n.getBoundingBox()},this.renderChildren=function(e){if(null!=n){var r=n;"symbol"==n.type&&((r=new t.Element.svg).type="svg",r.attributes.viewBox=new t.Property("viewBox",n.attribute("viewBox").value),r.attributes.preserveAspectRatio=new t.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),r.attributes.overflow=new t.Property("overflow",n.attribute("overflow").value),r.children=n.children),"svg"==r.type&&(this.attribute("width").hasValue()&&(r.attributes.width=new t.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(r.attributes.height=new t.Property("height",this.attribute("height").value)));var o=r.parent;r.parent=null,r.render(e),r.parent=o}}},t.Element.use.prototype=new t.Element.RenderedElementBase,t.Element.mask=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(e,n){var r=this.attribute("x").toPixels("x"),o=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==i&&0==a){for(var s=new t.BoundingBox,l=0;l~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),t.join("")}e.exports=i},"./node_modules/canvg-browser/node_modules/xmldom/dom-parser.js":function(e,t,n){function r(e){this.options=e||{locator:{}}}function o(){this.cdata=!1}function i(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,i=n.domBuilder||new o,s=n.errorHandler,l=n.locator,c=n.xmlns||{},d={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&i.setDocumentLocator(l),r.errorHandler=function(e,t,n){if(!e){if(t instanceof o)return t;e=t}var r={},i=e instanceof Function;function s(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,i,l),r.domBuilder=n.domBuilder||i,/\/x?html?$/.test(t)&&(d.nbsp=" ",d.copy="©",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,c,d):r.errorHandler.error("invalid doc source"),i.doc},o.prototype={startDocument:function(){this.doc=(new c).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var o=this.doc,a=o.createElementNS(e,n||t),s=r.length;l(this,a),this.currentElement=a,this.locator&&i(this.locator,a);for(var u=0;u=0))throw _(w,new Error(e.tagName+"@"+n));for(var o=t.length-1;r"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function I(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(I(e,t))return!0}while(e=e.nextSibling)}function D(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function R(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i}}}function L(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,R(e.ownerDocument,e),t}function F(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===m){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var a=n?n.previousSibling:e.lastChild;o.previousSibling=a,i.nextSibling=n,a?a.nextSibling=o:e.firstChild=o,null==n?e.lastChild=i:n.previousSibling=i;do{o.parentNode=e}while(o!==i&&(o=o.nextSibling));return R(e.ownerDocument||e,e),t.nodeType==m&&(t.firstChild=t.lastChild=null),t}function z(){this._nsMap={}}function B(){}function q(){}function U(){}function G(){}function H(){}function V(){}function W(){}function Y(){}function K(){}function X(){}function Z(){}function Q(){}function $(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return ee(this,n,e,t,a),n.join("")}function J(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!r&&!o)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===o||"http://www.w3.org/2000/xmlns/"==o)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix==r)return a.namespace!=o}return!0}function ee(e,t,n,r,o){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case i:o||(o=[]);o.length;var c=e.attributes,g=c.length,y=e.firstChild,b=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",b);for(var v=0;v"),n&&/^script$/i.test(b))for(;y;)y.data?t.push(y.data):ee(y,t,n,r,o),y=y.nextSibling;else for(;y;)ee(y,t,n,r,o),y=y.nextSibling;t.push("")}else t.push("/>");return;case f:case m:for(y=e.firstChild;y;)ee(y,t,n,r,o),y=y.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,M),'"');case s:return t.push(e.data.replace(/[<&]/g,M));case l:return t.push("");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var S=e.publicId,j=e.systemId;if(t.push("');else if(j&&"."!=j)t.push(' SYSTEM "',j,'">');else{var E=e.internalSubset;E&&t.push(" [",E,"]"),t.push(">")}return;case d:return t.push("");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}_.prototype=Error.prototype,n(y,_),O.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(o,P),n(o,P.prototype),D.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==m){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==i&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),L(this,e)},importNode:function(e,t){return function e(t,n,r){var o;switch(n.nodeType){case i:(o=n.cloneNode(!1)).ownerDocument=t;case m:break;case a:r=!0}o||(o=n.cloneNode(!1));if(o.ownerDocument=t,o.parentNode=null,r)for(var s=n.firstChild;s;)o.appendChild(e(t,s,r)),s=s.nextSibling;return o}(this,e,t)},getElementById:function(e){var t=null;return I(this.documentElement,(function(n){if(n.nodeType==i&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new O,(t.attributes=new E)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new O,e},createTextNode:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new G;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new z,r=t.split(":"),o=n.attributes=new E;return n.childNodes=new O,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new B,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(D,P),z.prototype={nodeType:i,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===m?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,R(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new S(this,(function(t){var n=[];return I(t,(function(r){r===t||r.nodeType!=i||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new S(this,(function(n){var r=[];return I(n,(function(o){o===n||o.nodeType!==i||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)})),r}))}},D.prototype.getElementsByTagName=z.prototype.getElementsByTagName,D.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,r(z,P),B.prototype.nodeType=a,r(B,P),q.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(b[v])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(q,P),U.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(U,q),G.prototype={nodeName:"#comment",nodeType:p},r(G,q),H.prototype={nodeName:"#cdata-section",nodeType:l},r(H,q),V.prototype.nodeType=h,r(V,P),W.prototype.nodeType=g,r(W,P),Y.prototype.nodeType=c,r(Y,P),K.prototype.nodeType=u,r(K,P),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=m,r(X,P),Z.prototype.nodeType=d,r(Z,P),Q.prototype.serializeToString=function(e,t,n){return $.call(e,t,n)},P.prototype.toString=$;try{if(Object.defineProperty){Object.defineProperty(S.prototype,"length",{get:function(){return j(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case i:case m:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case i:case m:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=A,t.XMLSerializer=Q},"./node_modules/canvg-browser/node_modules/xmldom/sax.js":function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function i(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,o,i){for(var a,s=++t,l=0;;){var u=e.charAt(s);switch(u){case"=":if(1===l)a=e.slice(t,s),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(i.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");c=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,c,t-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');c=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,c,t),i.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,l=5}break;case"/":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:l=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==l&&n.setTagName(e.slice(t,s)),s;case">":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=a),4==l?(i.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c.replace(/&#?\w+;/g,o),t)):("http://www.w3.org/1999/xhtml"===r[""]&&c.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":u=" ";default:if(u<=" ")switch(l){case 0:n.setTagName(e.slice(t,s)),l=6;break;case 1:a=e.slice(t,s),l=2;break;case 4:var c=e.slice(t,s).replace(/&#?\w+;/g,o);i.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c,t);case 5:l=6}else switch(l){case 2:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||i.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,l=1;break;case 5:i.warning('attribute space is required"'+a+'"!!');case 6:l=1,t=s;break;case 3:l=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function l(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],s=a.qName,l=a.value;if((f=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,f),c=s.slice(f+1),p="xmlns"===u&&c;else c=s,u=null,p="xmlns"===s&&"";a.localName=c,!1!==p&&(null==o&&(o={},d(n,n={})),n[p]=o[p]=l,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,l))}for(i=e.length;i--;){(u=(a=e[i]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),c=e.localName=r.slice(f+1)):(u=null,c=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,c,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(h,c,r),o)for(u in o)t.endPrefixMapping(u)}function u(e,t,n,r,o){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)?(o.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,r),o.characters(a,0,a.length),i)}return t+1}function c(e,t,n,r){var o=r[n];return null==o&&((o=e.lastIndexOf(""))t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var i=function(e,t){var n,r=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;o.lastIndex=t,o.exec(e);for(;n=o.exec(e);)if(r.push(n),n[1])return r}(e,t),a=i.length;if(a>1&&/!doctype/i.test(i[0][0])){var s=i[1][0],l=a>3&&/^public$/i.test(i[2][0])&&i[3][0],u=a>4&&i[4][0],c=i[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),c.index+c[0].length}}return-1}function f(e,t,n){var r=e.indexOf("?>",t);if(r){var o=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(o){o[0].length;return n.processingInstruction(o[1],o[2]),r+2}return-1}return-1}function h(e){}function m(e,t){return e.__proto__=t,e}i.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),d(t,t={}),function(e,t,n,r,o){function i(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function d(t){if(t>_){var n=e.substring(_,t).replace(/&#?\w+;/g,i);v&&m(_),r.characters(n,0,t-_),_=t}}function m(t,n){for(;t>=y&&(n=b.exec(e));)g=n.index,y=g+n[0].length,v.lineNumber++;v.columnNumber=t-g+1}var g=0,y=0,b=/.*(?:\r\n?|\n)|.*$/g,v=r.locator,w=[{currentNSMap:t}],x={},_=0;for(;;){try{var O=e.indexOf("<",_);if(O<0){if(!e.substr(_).match(/^\s*$/)){var S=r.doc,j=S.createTextNode(e.substr(_));S.appendChild(j),r.currentElement=j}return}switch(O>_&&d(O),e.charAt(O+1)){case"/":var E=e.indexOf(">",O+3),C=e.substring(O+2,E),T=w.pop();E<0?(C=e.substring(O+2).replace(/[\s<].*/,""),o.error("end tag name: "+C+" is not complete:"+T.tagName),E=O+1+C.length):C.match(/\s_?_=E:d(Math.max(O,_)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},h.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},m({},m.prototype)instanceof m||(m=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=i},"./node_modules/chroma-js/chroma.js":function(e,t,n){(function(e){var n; /** * @license * diff --git a/geonode_mapstore_client/static/mapstore/dist/16.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/16.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/16.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/16.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/17.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/17.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/17.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/17.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/18.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/18.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/18.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/18.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/19.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/19.16eb7e71311ee8695d11.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/19.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/19.16eb7e71311ee8695d11.chunk.js index 8f5cf2b0c8..ade97d9422 100644 --- a/geonode_mapstore_client/static/mapstore/dist/19.849ba3b532d52b2a2861.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/19.16eb7e71311ee8695d11.chunk.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19,"plugins/geostory-navigation-plugin~plugins/share-plugin"],{"./MapStore2/web/client/actions/additionallayers.js":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"g",(function(){return a})),n.d(e,"h",(function(){return u})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return c}));var r="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",i="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",o="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",s="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",i=arguments.length>3?arguments[3]:void 0;return{type:r,id:t,owner:e,actionType:n,options:i}},u=function(t,e){return{type:i,owner:t,options:e}},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.owner;return{type:o,id:e,owner:n}},c=function(){return{type:s}}},"./MapStore2/web/client/actions/annotations.js":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return a}));n("./MapStore2/node_modules/lodash/lodash.js");var r=function(t){return{type:"ANNOTATIONS:HIGHLIGHT_POINT",point:t}},i=function(){return{type:"ANNOTATIONS:NEW"}},o=function(){return{type:"ANNOTATIONS:CLEAN_HIGHLIGHT"}},s=function(){return{type:"ANNOTATIONS:CLOSE"}},a=function(t){return{type:"ANNOTATIONS:SET_EDITING_FEATURE",feature:t}}},"./MapStore2/web/client/actions/backgroundselector.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"u",(function(){return g})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return v})),n.d(e,"w",(function(){return b})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return E})),n.d(e,"x",(function(){return x})),n.d(e,"p",(function(){return O})),n.d(e,"y",(function(){return S})),n.d(e,"v",(function(){return _})),n.d(e,"s",(function(){return C})),n.d(e,"t",(function(){return j}));var r="BACKGROUND_SELECTOR:ADD_BACKGROUND",i="BACKGROUND_SELECTOR:REMOVE_BACKGROUND",o="BACKGROUND_SELECTOR:SET_CURRENT_BACKGROUND_LAYER",s="BACKGROUND_SELECTOR:BACKGROUND_ADDED",a="BACKGROUND_SELECTOR:BACKGROUND_EDITED",u="BACKGROUND_SELECTOR:ADD_BACKGROUND_PROPERTIES",l="BACKGROUND_SELECTOR:SET_BACKGROUND_MODAL_PARAMS",c="BACKGROUND_SELECTOR:UPDATE_BACKGROUND_THUMBNAIL",d="BACKGROUND_SELECTOR:BACKGROUNDS_CLEAR",p="BACKGROUND_SELECTOR:CREATE_BACKGROUNDS_LIST",h="BACKGROUND_SELECTOR:CLEAR_MODAL_PARAMETERS",f="BACKGROUND_SELECTOR:CONFIRM_DELETE_BACKGROUND_MODAL",m="BACKGROUND_SELECTOR:ALLOW_BACKGROUNDS_DELETION";function g(t){return{type:p,backgrounds:t}}function y(t){return{type:r,source:t}}function v(t){return{type:u,modalParams:t}}function b(t){return{type:l,modalParams:t}}function w(t){return{type:s,layerId:t}}function E(t){return{type:a,layerId:t}}function x(t){return{type:o,layerId:t}}function O(t){return{type:m,allow:t}}function S(t,e){return{type:c,thumbnailData:t,id:e}}function _(t){return{type:i,backgroundId:t}}function C(){return{type:h}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:f,show:t,layerTitle:e,layerId:n}}},"./MapStore2/web/client/actions/box.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var r="BOX_END",i="CHANGE_BOX_SELECTION_STATUS";function o(t){return{type:r,boxEndInfo:t}}function s(t){return{type:i,status:t}}},"./MapStore2/web/client/actions/catalog.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"y",(function(){return w})),n.d(e,"t",(function(){return E})),n.d(e,"v",(function(){return x})),n.d(e,"e",(function(){return O})),n.d(e,"u",(function(){return S})),n.d(e,"f",(function(){return _})),n.d(e,"c",(function(){return C})),n.d(e,"i",(function(){return j})),n.d(e,"g",(function(){return T})),n.d(e,"h",(function(){return I})),n.d(e,"m",(function(){return N})),n.d(e,"l",(function(){return P})),n.d(e,"n",(function(){return A})),n.d(e,"k",(function(){return M})),n.d(e,"j",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"o",(function(){return k})),n.d(e,"a",(function(){return L})),n.d(e,"p",(function(){return F})),n.d(e,"d",(function(){return G})),n.d(e,"q",(function(){return B})),n.d(e,"w",(function(){return U})),n.d(e,"s",(function(){return z})),n.d(e,"x",(function(){return V})),n.d(e,"A",(function(){return H})),n.d(e,"B",(function(){return q})),n.d(e,"z",(function(){return Y})),n.d(e,"bb",(function(){return W})),n.d(e,"W",(function(){return X})),n.d(e,"H",(function(){return K})),n.d(e,"Z",(function(){return Z})),n.d(e,"ab",(function(){return $})),n.d(e,"K",(function(){return Q})),n.d(e,"T",(function(){return J})),n.d(e,"I",(function(){return tt})),n.d(e,"O",(function(){return et})),n.d(e,"N",(function(){return nt})),n.d(e,"M",(function(){return rt})),n.d(e,"L",(function(){return it})),n.d(e,"P",(function(){return ot})),n.d(e,"Q",(function(){return st})),n.d(e,"F",(function(){return at})),n.d(e,"C",(function(){return ut})),n.d(e,"R",(function(){return lt})),n.d(e,"S",(function(){return ct})),n.d(e,"Y",(function(){return dt})),n.d(e,"V",(function(){return pt})),n.d(e,"G",(function(){return ht})),n.d(e,"D",(function(){return mt})),n.d(e,"E",(function(){return gt})),n.d(e,"U",(function(){return yt})),n.d(e,"J",(function(){return vt})),n.d(e,"cb",(function(){return bt})),n.d(e,"db",(function(){return wt})),n.d(e,"eb",(function(){return Et})),n.d(e,"X",(function(){return xt}));var r=n("./MapStore2/web/client/api/CSW.js"),i=n("./MapStore2/web/client/api/WMS.js"),o=n("./MapStore2/web/client/api/WMTS.js"),s=n("./MapStore2/web/client/api/mapBackground.js"),a=n("./MapStore2/web/client/actions/layers.js"),u=n("./MapStore2/web/client/actions/map.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/selectors/catalog.js"),h=n("./MapStore2/web/client/selectors/layers.js"),f=n("./MapStore2/web/client/actions/notifications.js");function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.format,n=t.url,r=t.startPosition,i=t.maxRecords,o=t.text,s=t.options,a=void 0===s?{}:s;return{type:w,format:e,url:n,startPosition:r,maxRecords:i,text:o,options:a}}function X(t,e){return{type:E,searchOptions:t,result:e}}function K(t){return{type:_,format:t}}function Z(t){return{type:U,status:t}}function $(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:V,loading:t}}function Q(t){return{type:j,service:t}}function J(t){return{type:R,status:t}}function tt(t,e){return{type:T,mode:t,isNew:e}}function et(t){return{type:N,title:t}}function nt(t){return{type:P,text:t}}function rt(t,e){return{type:M,property:t,value:e}}function it(t){return{type:D,format:t}}function ot(t){return{type:A,newType:t}}function st(t){return{type:k,url:t}}function at(){return{type:G}}function ut(t){return{type:L,service:t}}function lt(t){return{type:F,service:t}}function ct(){return{type:B}}function dt(){return{type:x}}function pt(t){return{type:S,error:t}}function ht(){return{type:O}}function ft(t,e){return{type:"CATALOG:DESCRIBE_ERROR",layer:t,error:e}}var mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.zoomToLayer,r=void 0!==n&&n;return function(e,n){var i=n(),o=Object(h.p)(i),s=Object(l.getLayerId)(t,o||[]);return e(Object(a.D)(g(g({},t),{},{id:s}))),r&&t.bbox&&e(Object(u.I)(t.bbox.bounds,t.bbox.crs)),"wms"===t.type?v.wms.describeLayers(Object(l.getLayerUrl)(t),t.name).then((function(n){if(n){var r=Object(d.find)(n,(function(e){return e.name===t.name}));if(r&&"WFS"===r.owsType){var o=c.filterUrlParams(c.cleanDuplicatedQuestionMarks(r.owsURL),Object(p.b)(i));e(Object(a.H)(s,{search:{url:o,type:"wfs"}}))}}})).catch((function(n){return e(ft(t,n))})):null}};function gt(t){return{type:C,error:t}}function yt(t){return{type:z,metadataOptions:t}}var vt=function(t){return{type:I,metadataTemplate:t}},bt=function(){return{type:Y}},wt=function(){return{type:H}},Et=function(){return{type:q}};function xt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.f)({title:"catalog.notification.errorTitle",message:"catalog.notification.errorSearchingRecords",values:{records:t}})}},"./MapStore2/web/client/actions/draw.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"g",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"h",(function(){return m}));var r="CHANGE_DRAWING_STATUS",i="DRAW:END_DRAWING",o="DRAW:SET_CURRENT_STYLE",s="DRAW:GEOMETRY_CHANGED",a="DRAW:DRAW_SUPPORT_STOPPED";function u(t,e,n,r,i){return{type:s,features:t,owner:e,enableEdit:n,textChanged:r,circleChanged:i}}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:FEATURES_SELECTED",features:t}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:DRAWING_FEATURES",features:t}}function d(){return{type:a}}function p(t,e,n,i,o,s){return{type:r,status:t,method:e,owner:n,features:i,options:o,style:s}}function h(t,e){return{type:i,geometry:t,owner:e}}function f(t){return{type:o,currentStyle:t}}var m=function(t){return p("clean","",t,[],{})}},"./MapStore2/web/client/actions/featuregrid.js":function(t,e,n){"use strict";n.d(e,"L",(function(){return r})),n.d(e,"E",(function(){return i})),n.d(e,"n",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"J",(function(){return a})),n.d(e,"U",(function(){return u})),n.d(e,"T",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"A",(function(){return p})),n.d(e,"D",(function(){return h})),n.d(e,"P",(function(){return f})),n.d(e,"O",(function(){return m})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"C",(function(){return v})),n.d(e,"c",(function(){return b})),n.d(e,"B",(function(){return w})),n.d(e,"m",(function(){return E})),n.d(e,"F",(function(){return x})),n.d(e,"N",(function(){return O})),n.d(e,"G",(function(){return S})),n.d(e,"Y",(function(){return _})),n.d(e,"b",(function(){return C})),n.d(e,"s",(function(){return j})),n.d(e,"p",(function(){return T})),n.d(e,"W",(function(){return I})),n.d(e,"i",(function(){return N})),n.d(e,"g",(function(){return P})),n.d(e,"z",(function(){return A})),n.d(e,"f",(function(){return M})),n.d(e,"d",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"I",(function(){return k})),n.d(e,"o",(function(){return L})),n.d(e,"a",(function(){return F})),n.d(e,"j",(function(){return G})),n.d(e,"y",(function(){return B})),n.d(e,"Z",(function(){return U})),n.d(e,"v",(function(){return z})),n.d(e,"M",(function(){return V})),n.d(e,"V",(function(){return H})),n.d(e,"u",(function(){return q})),n.d(e,"X",(function(){return Y})),n.d(e,"x",(function(){return W})),n.d(e,"Q",(function(){return X})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return Z})),n.d(e,"w",(function(){return $})),n.d(e,"t",(function(){return Q})),n.d(e,"K",(function(){return J})),n.d(e,"H",(function(){return tt})),n.d(e,"Qb",(function(){return et})),n.d(e,"ub",(function(){return nt})),n.d(e,"qb",(function(){return rt})),n.d(e,"Ob",(function(){return it})),n.d(e,"vb",(function(){return ot})),n.d(e,"cb",(function(){return st})),n.d(e,"hb",(function(){return at})),n.d(e,"Cb",(function(){return ut})),n.d(e,"Ib",(function(){return lt})),n.d(e,"tb",(function(){return ct})),n.d(e,"Mb",(function(){return dt})),n.d(e,"Lb",(function(){return pt})),n.d(e,"ob",(function(){return ht})),n.d(e,"mb",(function(){return ft})),n.d(e,"nb",(function(){return mt})),n.d(e,"eb",(function(){return gt})),n.d(e,"Gb",(function(){return yt})),n.d(e,"Kb",(function(){return vt})),n.d(e,"bb",(function(){return bt})),n.d(e,"Db",(function(){return wt})),n.d(e,"Tb",(function(){return Et})),n.d(e,"Rb",(function(){return xt})),n.d(e,"jb",(function(){return Ot})),n.d(e,"Pb",(function(){return St})),n.d(e,"Sb",(function(){return _t})),n.d(e,"rb",(function(){return Ct})),n.d(e,"ib",(function(){return jt})),n.d(e,"zb",(function(){return Tt})),n.d(e,"Bb",(function(){return It})),n.d(e,"lb",(function(){return Nt})),n.d(e,"sb",(function(){return Pt})),n.d(e,"db",(function(){return At})),n.d(e,"Ab",(function(){return Mt})),n.d(e,"gb",(function(){return Dt})),n.d(e,"fb",(function(){return Rt})),n.d(e,"yb",(function(){return kt})),n.d(e,"pb",(function(){return Lt})),n.d(e,"Fb",(function(){return Ft})),n.d(e,"xb",(function(){return Gt})),n.d(e,"Ub",(function(){return Bt})),n.d(e,"Nb",(function(){return Ut})),n.d(e,"Jb",(function(){return zt})),n.d(e,"wb",(function(){return Vt})),n.d(e,"ab",(function(){return Ht})),n.d(e,"kb",(function(){return qt})),n.d(e,"Hb",(function(){return Yt})),n.d(e,"Eb",(function(){return Wt}));var r="FEATUREGRID:SET_UP",i="FEATUREGRID:SELECT_FEATURES",o="FEATUREGRID:DESELECT_FEATURES",s="FEATUREGRID:CLEAR_SELECTION",a="FEATUREGRID:SET_SELECTION_OPTIONS",u="FEATUREGRID:TOGGLE_MODE",l="FEATUREGRID:TOGGLE_FEATURES_SELECTION",c="FEATUREGRID:FEATURES_MODIFIED",d="FEATUREGRID:NEW_FEATURE",p="FEATUREGRID:SAVE_CHANGES",h="FEATUREGRID:SAVING",f="FEATUREGRID:START_EDITING_FEATURE",m="FEATUREGRID:START_DRAWING_FEATURE",g="FEATUREGRID:DELETE_GEOMETRY",y="FEATUREGRID:DELETE_GEOMETRY_FEATURE",v="FEATUREGRID:SAVE_SUCCESS",b="FEATUREGRID:CLEAR_CHANGES",w="FEATUREGRID:SAVE_ERROR",E="FEATUREGRID:DELETE_SELECTED_FEATURES",x="SET_FEATURES",O="FEATUREGRID:SORT_BY",S="FEATUREGRID:SET_LAYER",_="QUERY:UPDATE_FILTER",C="FEATUREGRID:CHANGE_PAGE",j="FEATUREGRID:GEOMETRY_CHANGED",T="DOCK_SIZE_FEATURES",I="FEATUREGRID:TOGGLE_TOOL",N="FEATUREGRID:CUSTOMIZE_ATTRIBUTE",P="ASK_CLOSE_FEATURE_GRID_CONFIRM",A="FEATUREGRID:OPEN_GRID",M="FEATUREGRID:CLOSE_GRID",D="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",R="FEATUREGRID:FEATURE_GRID_CLOSE_CONFIRMED",k="FEATUREGRID:SET_PERMISSION",L="FEATUREGRID:DISABLE_TOOLBAR",F="FEATUREGRID:ACTIVATE_TEMPORARY_CHANGES",G="FEATUREGRID:DEACTIVATE_GEOMETRY_FILTER",B="FEATUREGRID:ADVANCED_SEARCH",U="FEATUREGRID:ZOOM_ALL",z="FEATUREGRID:INIT_PLUGIN",V="FEATUREGRID:SIZE_CHANGE",H="FEATUREGRID:TOGGLE_SHOW_AGAIN_FLAG",q="FEATUREGRID:HIDE_SYNC_POPOVER",Y="FEATUREGRID:UPDATE_EDITORS_OPTIONS",W={EDIT:"EDIT",VIEW:"VIEW"},X="FEATUREGRID:START_SYNC_WMS",K="FEATUREGRID:STOP_SYNC_WMS",Z="STORE_ADVANCED_SEARCH_FILTER",$="LOAD_MORE_FEATURES",Q="FEATUREGRID:QUERY_RESULT",J="FEATUREGRID:SET_TIME_SYNC",tt="FEATUREGRID:SET_PAGINATION";function et(){return{type:H}}function nt(){return{type:q}}function rt(t,e){return{type:Q,features:t,pages:e}}function it(t){return{type:Z,filterObj:t}}function ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:z,options:t}}function st(){return{type:D}}function at(){return{type:R}}function ut(t,e){return{type:i,features:t,append:e}}function lt(t){return{type:r,options:t}}function ct(t){return{type:j,features:t}}function dt(){return{type:f}}function pt(){return{type:m}}function ht(t){return{type:o,features:t}}function ft(){return{type:g}}function mt(t){return{type:y,features:t}}function gt(){return{type:s}}function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.multiselect,n=void 0!==e&&e;return{type:a,multiselect:n}}function vt(t,e){return{type:O,sortBy:t,sortOrder:e}}function bt(t,e){return{type:C,page:t,size:e}}function wt(t){return{type:S,id:t}}function Et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:_,update:t,append:e}}function xt(t,e){return{type:I,tool:t,value:e}}function Ot(t,e,n){return{type:N,name:t,key:e,value:n}}function St(){return{type:u,mode:W.EDIT}}function _t(){return{type:u,mode:W.VIEW}}function Ct(t,e){return{type:c,features:t,updated:e}}function jt(t){return{type:d,features:t}}function Tt(){return{type:p}}function It(){return{type:v}}function Nt(){return{type:E}}function Pt(){return{type:h}}function At(){return{type:b}}function Mt(){return{type:w}}function Dt(){return{type:P}}function Rt(){return{type:M}}function kt(){return{type:A}}function Lt(t){return{type:L,disabled:t}}function Ft(t){return{type:k,permission:t}}function Gt(){return{type:B}}function Bt(){return{type:U}}function Ut(){return{type:X}}function zt(t,e){return{type:V,size:t,dockProps:e}}var Vt=function(t){return{type:$,pages:t}},Ht=function(t){return{type:F,activated:t}},qt=function(t){return{type:G,deactivated:t}},Yt=function(t){return{type:J,value:t}},Wt=function(t){return{type:tt,size:t}}},"./MapStore2/web/client/actions/highlight.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return a}));var r="HIGHLIGHT_STATUS",i="UPDATE_HIGHLIGHTED",o="HIGHLIGHT:SET_HIGHLIGHT_FEATURES_PATH";function s(t){return{type:o,featuresPath:t}}function a(t,e){return{type:i,features:t,status:e}}},"./MapStore2/web/client/actions/locate.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var r="CHANGE_LOCATE_STATE",i="LOCATE_ERROR";function o(t){return{type:r,state:t}}function s(t){return{type:i,error:t}}},"./MapStore2/web/client/actions/mapInfo.js":function(t,e,n){"use strict";n.d(e,"n",(function(){return i})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"o",(function(){return u})),n.d(e,"q",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"t",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"u",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"p",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"A",(function(){return b})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return E})),n.d(e,"z",(function(){return x})),n.d(e,"d",(function(){return O})),n.d(e,"f",(function(){return S})),n.d(e,"a",(function(){return _})),n.d(e,"y",(function(){return C})),n.d(e,"g",(function(){return j})),n.d(e,"r",(function(){return T})),n.d(e,"s",(function(){return I})),n.d(e,"v",(function(){return N})),n.d(e,"N",(function(){return P})),n.d(e,"H",(function(){return A})),n.d(e,"I",(function(){return M})),n.d(e,"P",(function(){return D})),n.d(e,"E",(function(){return R})),n.d(e,"O",(function(){return k})),n.d(e,"K",(function(){return L})),n.d(e,"Q",(function(){return F})),n.d(e,"C",(function(){return G})),n.d(e,"T",(function(){return B})),n.d(e,"L",(function(){return U})),n.d(e,"U",(function(){return V})),n.d(e,"M",(function(){return H})),n.d(e,"W",(function(){return q})),n.d(e,"Y",(function(){return Y})),n.d(e,"J",(function(){return W})),n.d(e,"Z",(function(){return X})),n.d(e,"V",(function(){return K})),n.d(e,"D",(function(){return Z})),n.d(e,"F",(function(){return $})),n.d(e,"B",(function(){return Q})),n.d(e,"X",(function(){return J})),n.d(e,"G",(function(){return tt})),n.d(e,"R",(function(){return et})),n.d(e,"S",(function(){return nt}));var r=n("./MapStore2/web/client/api/Nominatim.js"),i="LOAD_FEATURE_INFO",o="ERROR_FEATURE_INFO",s="EXCEPTIONS_FEATURE_INFO",a="CHANGE_MAPINFO_STATE",u="NEW_MAPINFO_REQUEST",l="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",d="SHOW_MAPINFO_MARKER",p="HIDE_MAPINFO_MARKER",h="SHOW_REVERSE_GEOCODE",f="HIDE_REVERSE_GEOCODE",m="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",y="CLEAR_WARNING",v="FEATURE_INFO_CLICK",b="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",w="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",E="TOGGLE_MAPINFO_STATE",x="UPDATE_CENTER_TO_MARKER",O="IDENTIFY:CHANGE_PAGE",S="IDENTIFY:CLOSE_IDENTIFY",_="IDENTIFY:CHANGE_FORMAT",C="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",j="IDENTIFY:EDIT_LAYER_FEATURES",T="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",I="IDENTIFY:SET_MAP_TRIGGER",N="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function P(t,e,n,r,o){return{type:i,data:e,reqId:t,requestParams:n,layerMetadata:r,layer:o}}function A(t,e,n,r){return{type:o,error:e,reqId:t,requestParams:n,layerMetadata:r}}function M(t,e,n,r){return{type:s,reqId:t,exceptions:e,requestParams:n,layerMetadata:r}}function D(){return{type:g}}function R(){return{type:y}}function k(t,e){return{type:u,reqId:t,request:e}}function L(t,e,n,r){return{type:m,layer:t,request:e,metadata:n,queryableLayers:r}}function F(){return{type:l}}function G(t){return{type:c,infoFormat:t}}function B(){return{type:d}}function U(){return{type:p}}function z(t){return{type:h,reverseGeocodeData:t.data}}function V(t){return function(e){r.default.reverseGeocode(t).then((function(t){e(z(t))})).catch((function(t){e(z(t))}))}}function H(){return{type:f}}function q(){return{type:E}}function Y(t){return{type:x,status:t}}function W(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:v,point:t,layer:e,filterNameList:n,overrideParams:r,itemId:i}}function X(t){return{type:b,point:t}}function K(t){return{type:w,enabled:t}}function Z(t){return{type:O,index:t}}var $=function(){return{type:S}},Q=function(t){return{type:_,format:t}},J=function(t){return{type:C,showCoordinateEditor:t}},tt=function(t){return{type:j,layer:t}},et=function(t){return{type:T,query:t}},nt=function(t){return{type:I,trigger:t}}},"./MapStore2/web/client/actions/mapPopups.js":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e2&&void 0!==arguments[2])||arguments[2];return{type:"MAP:ADD_POPUP",id:t,popup:i({id:t},e),single:n}},u=function(t){return{type:s,id:t}},l=function(){return{type:"MAP:CLEAN_POPUPS"}}},"./MapStore2/web/client/actions/maplayout.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r="MAP_LAYOUT:UPDATE_MAP_LAYOUT";function i(t){return{type:r,layout:t}}},"./MapStore2/web/client/actions/measurement.js":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"g",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"h",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"n",(function(){return l})),n.d(e,"l",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"i",(function(){return y})),n.d(e,"m",(function(){return v})),n.d(e,"k",(function(){return b})),n.d(e,"p",(function(){return w})),n.d(e,"u",(function(){return x})),n.d(e,"w",(function(){return O})),n.d(e,"t",(function(){return S})),n.d(e,"A",(function(){return _})),n.d(e,"B",(function(){return C})),n.d(e,"z",(function(){return j})),n.d(e,"q",(function(){return T})),n.d(e,"s",(function(){return I})),n.d(e,"r",(function(){return N})),n.d(e,"y",(function(){return P})),n.d(e,"C",(function(){return A})),n.d(e,"v",(function(){return M})),n.d(e,"x",(function(){return D}));var o="CHANGE_MEASUREMENT_TOOL",s="CHANGE_MEASUREMENT_STATE",a="MEASUREMENT:CHANGE_UOM",u="MEASUREMENT:CHANGED_GEOMETRY",l="MEASUREMENT:SET_TEXT_LABELS",c="MEASUREMENT:SET_CURRENT_FEATURE",d="MEASUREMENT:ADD_AS_LAYER",p="MEASUREMENT:RESET_GEOMETRY",h="MEASUREMENT:CHANGE_FORMAT",f="MEASUREMENT:CHANGE_COORDINATES",m="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",g="MEASUREMENT:UPDATE_MEASURES",y="MEASUREMENT:INIT",v="MEASUREMENT:SET_MEASUREMENT_CONFIG",b="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function w(t,e,n,r,i){return{type:m,features:t,textLabels:e,uom:n,save:r,id:i}}function E(t){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return{type:y,defaultOptions:t}}},"./MapStore2/web/client/actions/playback.js":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"k",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"j",(function(){return m})),n.d(e,"s",(function(){return g})),n.d(e,"r",(function(){return y})),n.d(e,"w",(function(){return v})),n.d(e,"v",(function(){return b})),n.d(e,"u",(function(){return w})),n.d(e,"o",(function(){return E})),n.d(e,"q",(function(){return x})),n.d(e,"t",(function(){return O})),n.d(e,"p",(function(){return S})),n.d(e,"x",(function(){return _})),n.d(e,"n",(function(){return C})),n.d(e,"y",(function(){return j}));var r="PLAYBACK:START",i="PLAYBACK:PAUSE",o="PLAYBACK:STOP",s="PLAYBACK:SET_FRAMES",a="PLAYBACK:APPEND_FRAMES",u="PLAYBACK:FRAMES_LOADING",l="PLAYBACK:SET_CURRENT_FRAME",c="PLAYBACK:SELECT_PLAYBACK_RANGE",d="PLAYBACK:SETTINGS_CHANGE",p="PLAYBACK:TOGGLE_ANIMATION_MODE",h="PLAYBACK:ANIMATION_STEP_MOVE",f="PLAYBACK:UPDATE_METADATA",m={PLAY:"PLAY",STOP:"STOP",PAUSE:"PAUSE"},g=function(){return{type:r}},y=function(){return{type:i}},v=function(){return{type:o}},b=function(t){return{type:s,frames:t}},w=function(t){return{type:l,frame:t}},E=function(t){return{type:a,frames:t}},x=function(t){return{type:u,loading:t}},O=function(t){return{type:c,range:t}},S=function(t,e){return{type:d,name:t,value:e}},_=function(){return{type:p}},C=function(t){return{type:h,direction:t}},j=function(t){var e=t.next,n=t.previous,r=t.forTime;return{type:f,forTime:r,next:e,previous:n}}},"./MapStore2/web/client/actions/search.js":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"p",(function(){return o})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"e",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"n",(function(){return y})),n.d(e,"r",(function(){return v})),n.d(e,"c",(function(){return b})),n.d(e,"s",(function(){return w})),n.d(e,"b",(function(){return E})),n.d(e,"a",(function(){return x})),n.d(e,"x",(function(){return O})),n.d(e,"L",(function(){return S})),n.d(e,"v",(function(){return _})),n.d(e,"C",(function(){return C})),n.d(e,"D",(function(){return j})),n.d(e,"E",(function(){return T})),n.d(e,"B",(function(){return I})),n.d(e,"A",(function(){return N})),n.d(e,"z",(function(){return P})),n.d(e,"t",(function(){return A})),n.d(e,"J",(function(){return M})),n.d(e,"G",(function(){return D})),n.d(e,"I",(function(){return R})),n.d(e,"F",(function(){return k})),n.d(e,"u",(function(){return L})),n.d(e,"K",(function(){return F})),n.d(e,"w",(function(){return G})),n.d(e,"y",(function(){return B})),n.d(e,"H",(function(){return U}));var r=n("./MapStore2/web/client/actions/notifications.js"),i="SEARCH:SEARCH_WITH_FILTER",o="TEXT_SEARCH_STARTED",s="TEXT_SEARCH_RESULTS_LOADED",a="TEXT_SEARCH_RESULTS_PURGE",u="TEXT_SEARCH_RESET",l="TEXT_SEARCH_ADD_MARKER",c="TEXT_SEARCH_TEXT_CHANGE",d="TEXT_SEARCH_LOADING",p="TEXT_SEARCH_NESTED_SERVICE_SELECTED",h="TEXT_SEARCH_ERROR",f="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",g="TEXT_SEARCH_SHOW_GFI",y="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",v="UPDATE_RESULTS_STYLE",b="CHANGE_SEARCH_TOOL",w="SEARCH:ZOOM_ADD_POINT",E="SEARCH:CHANGE_FORMAT",x="SEARCH:CHANGE_COORD";function O(t){return{type:E,format:t}}function S(t,e,n){return{type:w,pos:t,zoom:e,crs:n}}function _(t){return{type:b,activeSearchTool:t}}function C(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return{type:s,results:t,append:e,services:n}}function j(t){return{type:c,searchText:t}}function T(t){return{type:d,loading:t}}function I(t){return{type:h,error:t}}function N(){return{type:a}}function P(){return{type:u}}function A(t,e){return{type:l,markerPosition:t,markerLabel:e}}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.services,r=void 0===n?null:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:o,searchText:t,services:r,maxResults:i}}function D(t,e,n){return{type:m,item:t,mapConfig:e,resultsStyle:n}}var R=function(t){return{type:g,item:t}};function k(t,e,n){return{type:p,searchText:n,services:t,items:e}}function L(t){return{type:f,item:t}}function F(t){return{type:v,style:t}}function G(t,e){return{type:x,coord:t,val:e}}function B(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function U(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},"./MapStore2/web/client/actions/styleeditor.js":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"q",(function(){return o})),n.d(e,"o",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"k",(function(){return v})),n.d(e,"n",(function(){return b})),n.d(e,"D",(function(){return w})),n.d(e,"F",(function(){return E})),n.d(e,"A",(function(){return x})),n.d(e,"H",(function(){return O})),n.d(e,"y",(function(){return S})),n.d(e,"x",(function(){return _})),n.d(e,"s",(function(){return C})),n.d(e,"z",(function(){return j})),n.d(e,"r",(function(){return T})),n.d(e,"v",(function(){return I})),n.d(e,"G",(function(){return N})),n.d(e,"u",(function(){return P})),n.d(e,"t",(function(){return A})),n.d(e,"w",(function(){return M})),n.d(e,"C",(function(){return D})),n.d(e,"B",(function(){return R})),n.d(e,"E",(function(){return k}));var r="STYLEEDITOR:TOGGLE_STYLE_EDITOR",i="STYLEEDITOR:SELECT_STYLE_TEMPLATE",o="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",s="STYLEEDITOR:UPDATE_STATUS",a="STYLEEDITOR:RESET_STYLE_EDITOR",u="STYLEEDITOR:ADD_STYLE",l="STYLEEDITOR:CREATE_STYLE",c="STYLEEDITOR:LOADING_STYLE",d="STYLEEDITOR:LOADED_STYLE",p="STYLEEDITOR:ERROR_STYLE",h="STYLEEDITOR:UPDATE_STYLE_CODE",f="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",g="STYLEEDITOR:INIT_STYLE_SERVICE",y="STYLEEDITOR:SET_EDIT_PERMISSION",v="STYLEEDITOR:SET_DEFAULT_STYLE",b="STYLEEDITOR:UPDATE_EDITOR_METADATA";function w(t,e){return{type:r,layer:t,enabled:e}}function E(t){return{type:s,status:t}}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.code,n=t.templateId,r=t.format,o=t.languageVersion,s=t.init;return{type:i,code:e,templateId:n,format:r,init:s,languageVersion:o}}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.temporaryId,n=t.templateId,r=t.code,i=t.format,s=t.languageVersion,a=t.init;return{type:o,temporaryId:e,templateId:n,code:r,format:i,init:a,languageVersion:s}}function S(t){return{type:c,status:t}}function _(){return{type:d}}function C(t){return{type:l,settings:t}}function j(){return{type:a}}function T(t){return{type:u,add:t}}function I(t,e){return{type:p,status:t,error:e}}function N(){return{type:h}}function P(t){return{type:f,code:t}}function A(t){return{type:m,styleName:t}}function M(t,e){return{type:g,service:t,canEdit:e}}function D(t){return{type:y,canEdit:t}}function R(){return{type:v}}function k(t){return{type:b,metadata:t}}},"./MapStore2/web/client/actions/wfsquery.js":function(t,e,n){"use strict";n.d(e,"h",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"j",(function(){return c})),n.d(e,"p",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"i",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"o",(function(){return y})),n.d(e,"n",(function(){return v})),n.d(e,"A",(function(){return b})),n.d(e,"z",(function(){return w})),n.d(e,"v",(function(){return E})),n.d(e,"u",(function(){return x})),n.d(e,"t",(function(){return O})),n.d(e,"s",(function(){return S})),n.d(e,"r",(function(){return _})),n.d(e,"y",(function(){return C})),n.d(e,"x",(function(){return j})),n.d(e,"B",(function(){return T})),n.d(e,"q",(function(){return I})),n.d(e,"w",(function(){return N}));n("./MapStore2/web/client/libs/ajax.js");var r="LAYER_SELECTED_FOR_SEARCH",i="FEATURE_TYPE_SELECTED",o="FEATURE_TYPE_LOADED",s="FEATURE_LOADED",a="FEATURE_LOADING",u="FEATURE_TYPE_ERROR",l="FEATURE_ERROR",c="QUERY_CREATE",d="QUERY:UPDATE_QUERY",p="QUERY_RESULT",h="QUERY_ERROR",f="RESET_QUERY",m="QUERY",g="INIT_QUERY_PANEL",y="QUERY:TOGGLE_SYNC_WMS",v="QUERY:TOGGLE_LAYER_FILTER";function b(){return{type:y}}function w(){return{type:v}}function E(){return{type:g}}function x(t,e){return{type:i,url:t,typeName:e}}function O(t,e){return{type:o,typeName:t,featureType:e}}function S(t,e){return{type:u,typeName:t,error:e}}function _(t){return{type:a,isLoading:t}}function C(t,e,n,r,i){return{type:p,searchUrl:e,filterObj:n,result:t,queryOptions:r,reason:i}}function j(t){return{type:h,error:t}}function T(t,e){return{type:d,updates:t,reason:e}}function I(t,e){return{type:c,searchUrl:t,filterObj:e}}function N(t,e,n,r){return{type:m,searchUrl:t,filterObj:e,queryOptions:n,reason:r}}},"./MapStore2/web/client/api/CSW.js":function(t,e,n){"use strict";var r=n("./node_modules/url/url.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n.n(o),a=n("./node_modules/object-assign/index.js"),u=n.n(a),l=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(l),d=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),h=function(t){var e=i.a.parse(t,!0);return i.a.format(u()({},e,{search:null},{query:u()({service:"CSW",version:"2.0.2"},e.query,{request:void 0})}))},f={parseUrl:h,getRecordById:function(t){return new Promise((function(e){Promise.all([n.e(1),n.e(27)]).then(function(){e(c.a.get(t).then((function(t){if(t){var e=n("./MapStore2/web/client/utils/ogc/CSW.js").unmarshaller.unmarshalString(t.data);if(e&&e.name&&"GetRecordByIdResponse"===e.name.localPart&&e.value&&e.value.abstractRecord){var r=e.value.abstractRecord[0].value.dcElement;if(r){for(var i={references:[]},o=0;o=e-1&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:{},c=s.attachJSON,d=s.itemId,h=void 0===d?null:d,f=function(e){return i.Observable.defer((function(){return a.a.get(t,{params:e})}))},m=function(e){return Object(o.g)(n,t,e)},g=Object(o.g)(n,t,e)?m:f;return c&&"application/json"!==e.info_format&&"application/json"!==e.outputFormat?i.Observable.forkJoin(g(e),g(p(p({},e),{},{info_format:"application/json"})).map((function(t){return t.data})).catch((function(){return i.Observable.of({})}))).map((function(t){var e=l(t,2),n=e[0],i=e[1];return p(p({},n),{},{features:i&&i.features&&i.features.filter((function(t){return!!Object(r.isNil)(h)||t.id===h})),featuresCrs:i&&i.crs&&Object(u.parseURN)(i.crs)})})):g(e).map((function(t){return t.data})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(t)?t:p(p({},t),{},{features:t.features&&t.features.filter((function(t){return!h||t.id===h}))}),features:t.features&&t.features.filter((function(t){return!h||t.id===h})),featuresCrs:t&&t.crs&&Object(u.parseURN)(t.crs)}}))}},"./MapStore2/web/client/api/mapBackground.js":function(t,e,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=function(t,e,n,o){var s=Object(r.get)(i.default.getDefaults(),"initialState.defaultState.catalog.default.staticServices.default_map_backgrounds.backgrounds").filter((function(t){return!o||t.title.indexOf(o)>-1})),a=s.filter((function(t,r){return r>=e-1&&r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;nthis.props.maxZoom||this.props.currentZoom+this.props.step=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;nMath.abs(t.startX-n.pageX))e.stopPropagation();else{var i=t.startX1&&s.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),s.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&s.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(e.prototype,n),r&&d(e,r),o}(s.a.Component);y(v,"propTypes",{title:i.a.string,index:i.a.number,size:i.a.number,container:i.a.oneOfType([i.a.object,i.a.func]),useButtons:i.a.bool,onPrevious:i.a.func,onNext:i.a.func,btnClassName:i.a.string}),y(v,"defaultProps",{useButtons:!0}),e.a=v},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),o=Object(r.withHandlers)({onNext:function(t){var e=t.index,n=void 0===e?0:e,r=t.setIndex,i=void 0===r?function(){}:r,o=t.validResponses,s=void 0===o?[]:o;return function(){i(Math.min(s.length-1,n+1))}},onPrevious:function(t){var e=t.index,n=t.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,e-1))}}}),s=Object(r.defaultProps)({format:Object(i.f)(),validator:i.i})},"./MapStore2/web/client/components/help/HelpBadge.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/prop-types/index.js"),o=n.n(i),s=n("./node_modules/react/index.js"),a=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/utils/LocaleUtils.js");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n=t.props.minZoom}))})),t}return e=s,(n=[{key:"shouldComponentUpdate",value:function(t){return!Object(r.isEqual)(t,this.props)}},{key:"render",value:function(){var t=null;return t=this.props.readOnly?a.a.createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?a.a.createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):a.a.createElement(u.Form,{inline:!0},a.a.createElement(u.FormGroup,{bsSize:"small"},a.a.createElement(u.ControlLabel,null,this.props.label),a.a.createElement(u.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),a.a.createElement("div",{id:this.props.id,style:this.props.style},t)}}])&&p(e.prototype,n),i&&p(e,i),s}(a.a.Component);v(b,"propTypes",{id:o.a.string,style:o.a.object,scales:o.a.array,currentZoomLvl:o.a.number,minZoom:o.a.number,onChange:o.a.func,readOnly:o.a.bool,label:o.a.oneOfType([o.a.func,o.a.string,o.a.object]),template:o.a.func,useRawInput:o.a.bool}),v(b,"defaultProps",{id:"mapstore-scalebox",scales:Object(l.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(t){return t<1?Math.round(1/t)+" : 1":"1 : "+Math.round(t)},useRawInput:!1}),e.a=b},"./MapStore2/web/client/components/misc/Button.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),i=n("./node_modules/react/index.js"),o=n.n(i),s=n("./node_modules/classnames/index.js"),a=n.n(s);function u(){return(u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c;e.a=(c=r.Button,o.a.forwardRef((function(t,e){var n=t.disabled,r=t.className,i=t.onClick,s=void 0===i?function(){}:i,d=l(t,["disabled","className","onClick"]);return o.a.createElement(c,u({ref:e,className:n?a()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(t,e,n){"use strict";var r=n("./node_modules/object-assign/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./node_modules/react/index.js"),u=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n0})),S(x(t),"onClickOut",(function(e){t.props.onClickOut&&t.mask===e.target&&t.props.onClickOut(e)})),t}return e=s,(n=[{key:"render",value:function(){var t=this,e=u.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},e):e,r=i()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(e){t.mask=e},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&v(e.prototype,n),r&&v(e,r),s}(u.a.Component);S(_,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),S(_,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),e.a=_},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/web/client/utils/MapInfoUtils.js"),u=n("./node_modules/react-select/dist/react-select.es.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n100?"full":t>40?"medium":"small"},d=function(t){var e=t.size,n=t.style,r=void 0===n?{}:n,i=t.className,o=t.hidden;return s.a.createElement("div",{className:i,style:u({width:e,height:e,overflow:"hidden"},r)},!o&&s.a.createElement("div",{className:"mapstore-".concat(c(e),"-size-loader")}))};d.propTypes={size:i.a.number,className:i.a.string,style:i.a.object},e.a=d},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r);e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.style,n=void 0===e?{display:"inline-block"}:e;return i.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-container-dimensions/lib/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e0?Math.min(o,u):o),p=n||(u>0?Math.min(o,u):o),h=Math.min(d,p);return i.a.createElement(a.a,{size:h,style:l({padding:h/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Overlay.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx");e.a=Object(r.a)(n("./node_modules/react-bootstrap/es/index.js").Overlay)},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),i=n("./node_modules/react-bootstrap/es/index.js");e.a=Object(r.a)(i.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),i=n("./node_modules/react-overlays/es/index.js"),o=Object(r.a)(i.a);e.a=o},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),a=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-addons-css-transition-group/index.js"),c=n.n(l),d=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),p={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},h={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(t){var e=t.initialFullscreenState;return void 0===e?"collapsed":e}))((function(t){var e=t.show,n=void 0!==e&&e,r=t.loading,u=t.loadingText,l=t.onClose,f=void 0===l?function(){}:l,m=t.title,g=void 0===m?"":m,y=t.clickOutEnabled,v=void 0===y||y,b=t.showClose,w=void 0===b||b,E=t.disabledClose,x=void 0!==E&&E,O=t.showFullscreen,S=void 0!==O&&O,_=t.fullscreenType,C=void 0===_?"full":_,j=t.buttons,T=void 0===j?[]:j,I=t.size,N=void 0===I?"":I,P=t.bodyClassName,A=void 0===P?"":P,M=t.children,D=t.draggable,R=void 0!==D&&D,k=t.fullscreenState,L=t.onFullscreen,F=t.fade,G=void 0!==F&&F,B=t.fitContent,U=t.modalClassName,z=void 0===U?"":U,V=t.dialogClassName,H=void 0===V?"":V,q=t.enableFooter,Y=void 0===q||q,W=p[N]||"",X=S&&"expanded"===k&&h.className[C]||"",K=n?i.a.createElement("div",{className:"modal-fixed ".concat(z," ")+(R?"ms-draggable":"")},i.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:v?f:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:"modal-dialog modal-content"+W+X+H+(B?" ms-fit-content":"")},i.a.createElement("span",{role:"header"},i.a.createElement("h4",{className:"modal-title"},i.a.createElement("div",{className:"ms-title"},g),S&&h.className[C]&&i.a.createElement(o.Glyphicon,{className:"ms-header-btn",onClick:function(){return L("expanded"===k?"collapsed":"expanded")},glyph:h.glyph[k][C]}),w&&f&&i.a.createElement(o.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:x}))),i.a.createElement("div",{role:"body",className:A},M),Y&&i.a.createElement("div",{style:{display:"flex"},role:"footer"},i.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?i.a.createElement(d.a,null):null),i.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),i.a.createElement(a.a,{buttons:T})))):null;return G?i.a.createElement(c.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));e.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),l=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function c(){return(c=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=_?["SIZE"]:[])),t)):null})).catch((function(t){return L.current?(B(!1),D(t)):null}))}}),y?i.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},i.a.createElement("div",{ref:e,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=T&&T.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),i.a.createElement("div",{className:"dropzone-content-image-added"},m),U):i.a.createElement("div",{className:"dropzone-content-image"},m,U,g&&i.a.createElement("div",{className:"dropzone-errors"},g))))}));e.a=m},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(t){for(var e=1;e div")||document.body}))}}},"./MapStore2/web/client/components/misc/coordinateeditors/CoordinateEntry.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;nr?"error":null})),v(g(t),"validateDecimalLat",(function(e){var n=t.props.constraints[t.props.format].lat.min,r=t.props.constraints[t.props.format].lat.max,i=parseFloat(e);return isNaN(i)||ir?"error":null})),t}return e=s,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.coordinate,r=e.value,o=e.onChange,s="validateDecimal"+Object(a.capitalize)(n);return i.a.createElement(u.FormGroup,{validationState:this[s](r)},i.a.createElement(l.a,{key:n,value:r,placeholder:n,onChange:function(e){""===e&&o(""),null===t[s](e)&&o(e)},onKeyDown:this.verifyOnKeyDownEvent,step:1,validateNameFunc:this[s],type:"number"}))}}])&&p(e.prototype,n),r&&p(e,r),s}(i.a.Component);v(b,"propTypes",{idx:s.a.number,value:s.a.number,constraints:s.a.object,format:s.a.string,coordinate:s.a.string,onChange:s.a.func,onKeyDown:s.a.func,onSubmit:s.a.func}),v(b,"defaultProps",{format:"decimal",coordinate:"lat",constraints:{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}},onKeyDown:function(){}});var w=b,E=n("./node_modules/recompose/es/Recompose.js"),x=Object(E.withProps)((function(t){var e=t.coordinate,n=void 0===e?"lat":e;return{maxDegrees:"lat"===n?90:180,directions:"lat"===n?["N","S"]:["E","W"]}})),O=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),S=Object(E.compose)(Object(E.withProps)((function(t){return{isValid:""!==t.value}})),Object(E.withState)("initial","setInitial",{}),Object(E.withProps)((function(t){var e=t.isValid,n=t.initial,r=t.degrees,i=t.minutes,o=t.seconds;return e||""===r&&""===i&&""===o?{}:n})),Object(E.withHandlers)({onChange:function(t){return function(e){var n=e.degrees,r=e.minutes,i=e.seconds,o=e.direction;isNaN(n)?t.setInitial({degrees:"",minutes:r,seconds:i,direction:o}):isNaN(r)?t.setInitial({degrees:n,minutes:"",seconds:i,direction:o}):isNaN(i)&&t.setInitial({degrees:n,minutes:r,seconds:"",direction:o}),t.onChange({degrees:n,minutes:r,seconds:i,direction:o})}}}));function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e=0?s=r.degrees:r.minutes<0&&r.degrees<=0?(s=0,o=r.minutes):(s=0,o=0,i=1e-4)),{degrees:s,minutes:o,seconds:i,direction:a}}catch(t){return null}})),R(M(t),"getSexagesimalStep",(function(t){return t>=60?1:t<0?-1:0})),R(M(t),"getInputStyle",(function(t){return isNaN(t)||""===t?{borderColor:"#a94442"}:{}})),R(M(t),"verifyOnKeyDownEvent",(function(e){69===e.keyCode&&e.preventDefault(),13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),t.props.onKeyDown())})),R(M(t),"roundToNextSexagesimalStep",(function(t){return t<0?60+t:t>=60?t-60:t})),R(M(t),"isValid",(function(e){var n=e.minutes,r=e.seconds,i=e.degrees,o=e.direction;return!Object(a.isNil)(n)&&n>0&&n<60&&!Object(a.isNil)(r)&&r>0&&r<60&&!Object(a.isNil)(i)&&i>0&&ii&&"lat"===o?Math.sign(t)*i:t)}}}));function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){return(B=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{seconds:{decimals:4}},i=n.seconds,o=t>=0?Math.floor(t):Math.ceil(t),s=Math.abs(60*(t-o)),a=Math.floor(s),u=60*(s-a),l=Object(r.round)(u,i.decimals);if(o=Math.abs(o),60===l&&(a++,l=0),60===a&&(o++,a=0),Object(r.isNaN)(o)||""===t)return{degrees:"",minutes:"",seconds:"",direction:e?"E":"N"};var c={degrees:o,minutes:a,seconds:l,direction:t<0?e?"W":"S":e?"E":"N"};return c}(t.value,"lon"===t.coordinate,t.aeronauticalOptions))})),Object(i.withHandlers)({onChange:function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.degrees,i=e.minutes,o=e.seconds,s=e.direction,a=0,u=0,l=0;void 0===n&&void 0===i&&void 0===o&&t.onChange(void 0),Object(r.isNaN)(n)||(a=n),Object(r.isNaN)(i)||(u=i),Object(r.isNaN)(o)||(l=o);var c=a+u/60+l/3600;(c>0&&("S"===s||"W"===s)||c<0&&("N"===s||"E"===s))&&(c*=-1),t.onChange(c.toPrecision(12))}}}))},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");e.a=Object(o.branch)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.disabled,n=t.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&e)}),a.a,(function(t){return function(e){return i.a.createElement(t,Object(s.omit)(e,["tooltipId","tooltip","noTooltipWhenDisabled"]),e.children)}}))},"./MapStore2/web/client/components/misc/enhancers/draggableComponent.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dnd/lib/index.js"),s=n("./node_modules/recompose/es/Recompose.js");function a(){return(a=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={beginDrag:function(t){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.isDraggable;return e}),Object(s.compose)(Object(o.DragSource)("row",d,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging(),draggingItem:e.getItem()||null}})),Object(o.DropTarget)("row",{drop:function(t,e){var n=e.getItem();n.sortId!==t.sortId&&t.onSort(t.sortId,n.sortId,{id:t.id,containerId:t.containerId},{id:n.id,containerId:n.containerId})}},(function(t,e){return{connectDropTarget:t.dropTarget(),isOver:e.isOver()}})),(function(t){return function(e){var n=e.connectDragSource,r=e.connectDragPreview,o=e.connectDropTarget,s=e.isDragging,l=e.isOver,c=u(e,["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"]),d=c.draggingItem&&c.draggingItem.sortId0&&void 0!==arguments[0]?arguments[0]:u,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;return Object(o.branch)(t,(function(){return function(t){var r=t.loaderProps;return i.a.createElement(n,a({},e,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=n("./node_modules/prop-types/index.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js");function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(e))return e.map((function(i){var o=Object(r.f)(t,i[n]||Object(s.isString)(i)&&i||"");return c(c({},i),{},d({},n,Object(s.isNil)(o)?e:o))}));var i=Object(r.f)(t,e);return Object(s.isNil)(i)?e:i},h=function(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},i,t[i]&&p(e,t[i],n)))}};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(a.compose)(Object(a.getContext)({messages:o.a.object}),Object(a.mapProps)((function(n){var r=n.messages,i=u(n,["messages"]);return c(c({},i),Object(s.castArray)(t).reduce(h(i,r,e),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=Object(o.branch)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tooltip,n=t.tooltipId;return e||n}),(function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.tooltip,r=e.tooltipId,o=e.tooltipPosition,l=void 0===o?"top":o,d=e.tooltipTrigger,p=e.keyProp,h=e.idDropDown,f=e.args,m=c(e,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return i.a.createElement(a.a,{trigger:d,id:h,key:p,placement:l,overlay:i.a.createElement(s.Tooltip,{id:"tooltip-"+p},r?i.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},i.a.createElement(t,m))}}),(function(t){return function(e){return i.a.createElement(t,Object(l.omit)(e,["tooltipId","tooltip"]),e.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withMask.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=function(t,e,n){var r=n.maskContainerStyle,s=n.maskStyle,a=n.className,u=n.white;return function(n){return Object(o.nest)((function(n){return i.a.createElement("div",{className:"ms2-mask-container ".concat(a||""," ").concat(t(n)?"":"ms2-mask-empty"),style:r},n.children,t(n)?i.a.createElement("div",{className:"ms2-mask"+(u?" white-mask":""),style:s},e(n)):null)}),n)}};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.alwaysWrap,i=void 0===r||r,a=n.white,u=void 0!==a&&a,l=n.maskContainerStyle,c=void 0===l?{}:l,d=n.maskStyle,p=void 0===d?{}:d,h=n.className;return i?s(t,e,{maskContainerStyle:c,maskStyle:p,className:h,white:u}):Object(o.branch)(t,s((function(){return!0}),e,{maskContainerStyle:c,maskStyle:p,white:u}))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/react-dom/index.js"),l=n.n(u),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.debounceTime,n=t.querySelector,r=t.closest,s=void 0!==r&&r;return function(t){var r,u;return u=r=function(r){m(u,r);var a=y(u);function u(t){var r;return p(this,u),E(b(r=a.call(this,t)),"findDomNode",(function(){if(!r.isMounded)return null;var t=l.a.findDOMNode(b(r));return t&&s&&n?t.closest(n||"*"):t&&(n?t.querySelector(n):t)})),r.width=void 0,r.height=void 0,r.skipOnMount=t.skipOnMount,r.onResize=Object(o.debounce)((function(){var t;return(t=r.props).onResize.apply(t,arguments)}),void 0!==e?e:t.debounceTime||1e3),r.ro=new c.a((function(t){t.forEach((function(t){var e=t.contentRect,n=e.width,i=e.height,o=r.props.handleWidth&&r.width!==n,s=r.props.handleHeight&&r.height!==i;r.skipOnMount||!o&&!s||r.onResize({width:n,height:i}),r.width=n,r.height=i,r.skipOnMount=!1}))})),r}return f(u,[{key:"componentDidMount",value:function(){this.isMounded=!0;var t=this.findDomNode();t&&this.ro.observe(t)}},{key:"componentWillUnmount",value:function(){var t=this.findDomNode();t&&this.ro&&this.ro.unobserve&&this.ro.unobserve(t)}},{key:"render",value:function(){return i.a.createElement(t,this.props)}}]),u}(i.a.Component),E(r,"propTypes",{handleWidth:a.a.bool,handleHeight:a.a.bool,onResize:a.a.func}),E(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),u}}},"./MapStore2/web/client/components/misc/panels/DockPanel.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dock/lib/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}},p=function(t){var e=t.position,n=void 0===e?"right":e,r=t.onClose,o=t.bsStyle,s=void 0===o?"default":o,a=t.title,u=void 0===a?"":a,p=t.fullscreen,h=void 0!==p&&p,f=t.showFullscreen,m=void 0!==f&&f,g=t.glyph,y=void 0===g?"info-sign":g,v=t.additionalRows,b=t.onFullscreen,w=void 0===b?function(){}:b,E=r?i.a.createElement(c.a,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:s},i.a.createElement(l.Glyphicon,{glyph:"1-close"})):null,x=m?i.a.createElement(c.a,{key:"ms-header-glyph",className:"square-button",bsStyle:s,onClick:function(){return w(!h)}},i.a.createElement(l.Glyphicon,{glyph:d[n]&&d[n][h]||"resize-full"})):i.a.createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+s),style:{display:"flex"}},i.a.createElement(l.Glyphicon,{glyph:y,className:"".concat("default"===s?"text-primary":"")})),O="left"===n?[E,x]:[x,E];return i.a.createElement(l.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+s},i.a.createElement(l.Row,null,i.a.createElement(l.Col,{xs:2},O[0]),i.a.createElement(l.Col,{xs:8},i.a.createElement("h4",null,u)),i.a.createElement(l.Col,{xs:2},O[1])),v)};e.a=Object(u.withState)("fullscreen","onFullscreen",!1)((function(t){var e=t.fluid,n=t.className,r=void 0===n?"":n,o=t.fullscreen,u=void 0!==o&&o,l=t.position,c=t.open,d=t.size,h=void 0===d?550:d,f=t.style,m=void 0===f?{}:f,g=t.zIndex,y=void 0===g?1030:g,v=t.onClose,b=t.bsStyle,w=t.title,E=t.showFullscreen,x=void 0!==E&&E,O=t.glyph,S=t.header,_=t.footer,C=t.children,j=t.onFullscreen,T=void 0===j?function(){}:j,I=t.fixed,N=void 0!==I&&I,P=t.resizable,A=void 0!==P&&P,M=t.hideHeader;return i.a.createElement("div",{className:"ms-side-panel "+(N?"":"ms-absolute-dock ")+(A?"":"react-dock-no-resize ")+r},i.a.createElement(s.a,{fluid:e||u,position:l,dimMode:"none",isVisible:c,size:u?1:h,dockStyle:m,zIndex:y},i.a.createElement(a.a,{header:!M&&c&&i.a.createElement(p,{position:l,onClose:v,bsStyle:b,title:w,fullscreen:u,showFullscreen:x,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&_},c&&C)))}))},"./MapStore2/web/client/components/misc/panels/DockablePanel.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),a=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),u=n("./MapStore2/web/client/components/misc/ResizableModal.jsx");function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c=Object(o.renameProps)({open:"show"})((function(t){var e=t.children,n=t.header,r=l(t,["children","header"]);return i.a.createElement(u.a,r,i.a.createElement(s.a,{header:i.a.createElement("div",{className:"ms-header"},n)},e))}));e.a=Object(o.branch)((function(t){return!t.dock}),(function(){return function(t){return i.a.createElement(c,t)}}))(a.a)},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n0&&this.props.expanded&&i.a.createElement(l.a,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return i.a.createElement(a.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&_(e.prototype,n),r&&_(e,r),s}(i.a.Component);P(D,"propTypes",{header:s.a.node,title:s.a.oneOfType([s.a.string,s.a.node]),defaultExpanded:s.a.string,expanded:s.a.bool,onSwitch:s.a.func,locked:s.a.bool,buttons:s.a.array,loading:s.a.bool,error:s.a.any,errorMsgId:s.a.string,transitionProps:s.a.object,useToolbar:s.a.bool}),P(D,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});e.a=D},"./MapStore2/web/client/components/misc/toolbar/DropdownToolbarOptions.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./node_modules/uuid/v1.js"),u=n.n(a);function l(){return(l=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.menuOptions,n=void 0===e?[]:e,i=t.buttonConfig,o=void 0===i?{}:i;return s.a.createElement(c,l({},d,o),n.length?n.map((function(t,e){var n=t.glyph,i=t.text,o=t.onClick,a=t.active,u=void 0!==a&&a;return s.a.createElement(r.MenuItem,{active:u,eventKey:e,onClick:o,key:e},n&&s.a.createElement(r.Glyphicon,{glyph:n})," ",i)})):null)}},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function l(){return(l=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buttons,n=void 0===e?[]:e,r=t.btnGroupProps,o=void 0===r?{}:r,d=t.btnDefaultProps,p=void 0===d?{}:d,h=t.transitionProps,f=void 0===h?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:h,m=function(){return n.map((function(t,e){var n=t.visible,r=void 0===n||n,o=t.Element,s=t.renderButton,a=c(t,["visible","Element","renderButton"]);return r?s||(o&&i.a.createElement(o,l({key:a.key||e},a))||i.a.createElement(u.a,l({key:a.key||e},p,a))):null}))};return i.a.createElement(a.ButtonGroup,o,f?i.a.createElement(s.a,f,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function h(){return(h=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=Object(o.compose)(c.a,d.a)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.glyph,n=t.loading,r=t.text,o=void 0===r?"":r,c=t.textId,d=t.glyphClassName,m=void 0===d?"":d,g=t.loaderProps,y=void 0===g?{}:g,v=t.children,b=f(t,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return i.a.createElement(p.a,Object(a.omit)(b,["pullRight","confirmNo","confirmYes"]),e&&!n?i.a.createElement(u.Glyphicon,{glyph:e,className:m}):null,c?i.a.createElement(s.default,{msgId:c}):o,n?i.a.createElement(l.a,h({className:"ms-loader".concat(b.bsStyle&&" ms-loader-"+b.bsStyle||"").concat(b.bsSize&&" ms-loader-"+b.bsSize||"")},y)):null,v)}))},"./MapStore2/web/client/components/time/InlineDateTimeSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/moment/moment.js"),l=n.n(u),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(t){return t};if(""!==n){var i=l()(t.props.date).utc(),o=i["day"===e?"date":e]&&l()(i)["day"===e?"date":e](r(n));o.isValid()&&!isNaN(o.toDate().getTime())&&t.props.onUpdate(o.toISOString())}})),E(b(t),"getForm",(function(){var e=t.props.date&&l()(t.props.date).utc();return[{name:"icon",value:"calendar",type:"icon"},{name:"day",placeholder:"DD",value:e&&e.date()},{name:"month",placeholder:"MM",readOnly:!0,value:e&&e.month(),format:function(t){return!Object(o.isNil)(t)&&""!==t&&l.a.monthsShort(t)},parseValue:function(t){return t-1}},{name:"year",placeholder:"YYYY",value:e&&e.year()},{name:"icon",value:"time",type:"icon"},{name:"hours",placeholder:"hh",value:e&&e.hours()},{name:"separator",value:":",type:"separator"},{name:"minutes",placeholder:"mm",value:e&&e.minutes()},{name:"separator",value:":",type:"separator"},{name:"seconds",placeholder:"ss",value:e&&e.seconds()},{name:"separator",value:e&&e.utcOffset(),type:"separator",format:function(t){return"UTC "+(t>=0?"+":"-")+Object(o.padStart)(t/60,2,0)}}]})),t}return e=a,(n=[{key:"render",value:function(){var t=this,e=this.getForm();return i.a.createElement(c.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},i.a.createElement(c.FormGroup,{controlId:"inlineDateTime"},this.props.glyph&&i.a.createElement("div",{style:this.props.clickable?{cursor:"pointer"}:{},onClick:function(){return t.props.clickable&&t.props.onIconClick(t.props.date,t.props.glyph)}},i.a.createElement(x,{tooltip:this.props.clickable?this.props.tooltip:void 0,tooltipId:this.props.clickable?this.props.tooltipId:void 0,className:"ms-inline-datetime-icon",glyph:this.props.glyph})),e.map((function(e){return"icon"===e.type&&i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},i.a.createElement(x,{glyph:e.value}))||"separator"===e.type&&i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},e.format&&e.format(e.value)||e.value)||i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},t.props.showButtons&&i.a.createElement(p.a,{bsSize:"xs",disabled:!t.props.date,onClick:function(){return t.onUpdate(e.name,!0)}},i.a.createElement(x,{glyph:"chevron-up"})),i.a.createElement(c.FormControl,{type:"text",readOnly:e.readOnly,placeholder:e.placeholder||e.name,disabled:!t.props.date,value:e.format&&e.format(e.value)||e.value,onChange:function(n){return t.onChange(e.name,n.target.value,e.parseValue)}}),t.props.showButtons&&i.a.createElement(p.a,{bsSize:"xs",disabled:!t.props.date,onClick:function(){return t.onUpdate(e.name)}},i.a.createElement(x,{glyph:"chevron-down"})))}))))}}])&&m(e.prototype,n),r&&m(e,r),a}(i.a.Component);E(O,"propTypes",{date:a.a.string,clickable:a.a.bool,onUpdate:a.a.func,onIconClick:a.a.func,glyph:a.a.string,style:a.a.object,className:a.a.string,tooltip:a.a.string,tooltipId:a.a.string,showButtons:a.a.bool}),E(O,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),e.a=O},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dom/index.js"),s=n.n(o),a=n("./node_modules/prop-types/index.js"),u=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.n)(t),r=Object(m.m)(t),i=Object(m.p)(t),o=Object(m.i)(n)(t);return[i,r,"time",S({limit:1},e),o]},j=function(t,e,n){if(Object(m.m)(t))return i.a.Observable.forkJoin(v.b.apply(void 0,w(C(t,{sort:"asc",fromValue:n}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return b(t,1)[0]})).catch((function(t){return t&&i.a.Observable.of(null)})),v.b.apply(void 0,w(C(t,{sort:"desc",fromValue:n}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return b(t,1)[0]})).catch((function(t){return t&&i.a.Observable.of(null)}))).map((function(t){return Object(y.d)(t.filter((function(t){return!!t})),n)||n}));var r=Object(g.e)(Object(f.g)(t,e))(t);return i.a.Observable.of(Object(y.d)(r,n)||n)},T=function(t){return Object(o.isString)(t)?t:t.toISOString()},I=function(t,e,n){var r=e.domain.split("--"),s=Object(m.j)(n())||{start:new Date(r[0]),end:new Date(r[1])},a=Object(y.j)(s,20),u=a.range,l=a.resolution,c=Object(f.g)(n(),t).name,d=_({},"time","".concat(T(u.start),"/").concat(T(u.end)));return Object(v.c)(e.source.url,c,"time",_({},"time","".concat(T(u.start),"/").concat(T(u.end))),l,Object(m.i)(t)(n())).merge(Object(v.a)(e.source.url,c,d,S(S({},Object(m.i)(t)(n())),{},{expandLimit:20}))).scan((function(t,e){return S(S({},t),e)}),{}).switchMap((function(t){var e,n=t.Histogram,r=t.Domains,s=Object(o.get)(Object(o.head)(Object(o.castArray)(Object(o.get)(r,"DimensionDomain")||[]).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.Identifier;return"time"===e}))),"Domain");try{e=n&&n.Values&&n.Values.split(",").map((function(t){return parseInt(t,10)}))||[]}catch(t){e=[]}var a=s&&s.indexOf("--")<0&&s.split(",");return i.a.Observable.of({range:u,histogram:n&&n.Domain?{values:e,domain:n.Domain}:void 0,domain:s?{values:a}:void 0})}))},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.g).throttleTime(100).switchMap((function(t){var e=t.time,n=t.group,o=r();return n?j(o,n,e).switchMap((function(t){var e=Object(m.j)(o)||{},n=e.start,r=e.end,s=[];if(n&&r&&(a()(t).isBefore(n)||a()(t).isAfter(r))){var u=a()(r).diff(n);s=[Object(c.l)({start:a()(t).subtract(u/2),end:a()(t).add(u/2)})]}return i.a.Observable.from([].concat(w(s),[Object(d.g)(t)]))})).let(Object(u.a)(Object(c.r)(!1,!0),Object(c.r)(!1,!1))):i.a.Observable.of(Object(d.g)(e))}))},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(p.s,c.a).exhaustMap((function(){return Object(m.c)(r())&&Object(o.get)(Object(m.q)(r()),"[0].id")&&!Object(m.n)(r())?i.a.Observable.of(Object(c.n)(Object(o.get)(Object(m.q)(r()),"[0].id"))).concat(i.a.Observable.of(1).switchMap((function(){return j(r(),Object(o.get)(Object(m.q)(r()),"[0].id"),Object(g.a)(r)||(new Date).toISOString()).filter((function(t){return t})).map((function(t){return Object(d.g)(t)}))}))):i.a.Observable.empty()}))},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.b).switchMap((function(t){var e=r(),n=Object(g.a)(e),o=Object(m.j)(e);if(t.enabled){var s=o||{},u=s.start,l=void 0===u?0:u,p=s.end,h=void 0===p?432e6:p,f=Object(g.h)(e),y=a()(h).diff(l),v=o?a()(l).add(y/2).toISOString():a()(new Date).toISOString(),b=a()(n||v).add(y/5),w=t.enabled&&!n?i.a.Observable.of(Object(d.g)(v)):i.a.Observable.empty(),E=t.enabled&&!f||t.enabled&&a()(f).diff(n)<0?i.a.Observable.of(Object(d.f)(b.toISOString())):i.a.Observable.empty(),x=o?i.a.Observable.empty():i.a.Observable.of(Object(c.l)({start:a()(v).add(-1*y/2),end:a()(v).add(y/2)}));return w.concat(E).concat(x)}return i.a.Observable.of(Object(d.f)())}))},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.d).merge(t.ofType(l.e).filter((function(){return Object(m.e)(r())})),t.ofType(c.i)).debounceTime(400).merge(t.ofType(d.d).debounceTime(50)).switchMap((function(){var t,e=Object(g.i)(r())||{},n=Object.keys(e).filter((function(t){return e[t]&&e[t].domain&&Object(y.i)(e[t].domain)||Object(m.e)(r())}));return(t=i.a.Observable).merge.apply(t,w(n.map((function(t){return I(t,e[t],r).map((function(e){var n=e.range,r=e.histogram,i=e.domain;return Object(c.m)(t,n,r,i)})).startWith(Object(c.r)(t,!0)).catch((function(){return i.a.Observable.of(Object(h.f)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"}))})).concat(i.a.Observable.of(Object(c.r)(t,!1)))}))))}))};e.default={setTimelineCurrentTime:N,setupTimelineExistingSettings:P,settingInitialOffsetValue:A,updateRangeDataOnRangeChange:M}},"./MapStore2/web/client/observables/epics.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/rxjs/Rx.js"),o=n.n(i);function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[];return t.startWith.apply(t,s(e))},l=function(t,e,n){return function(i){return(n?u(i,Object(r.castArray)(t)).catch(n):u(i,Object(r.castArray)(t))).concat(o.a.Observable.from(Object(r.castArray)(e)))}}},"./MapStore2/web/client/observables/wms.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return b}));var r=n("./node_modules/url/url.js"),i=n.n(r),o=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),s=n.n(o),a=n("./node_modules/rxjs/Rx.js"),u=n("./MapStore2/web/client/api/WMS.js"),l=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(l),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),h=n("./MapStore2/web/client/utils/SecurityUtils.js");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.search,r=void 0===n?{}:n,o=t.url,s=i.a.parse(r.url||o,!0);return i.a.format(m(m({},s),{},{search:void 0,query:m(m({},s.query),{},{service:"WMS",version:"1.1.1",layers:e,outputFormat:"application/json",request:"DescribeLayer"})}))}(t))})).let(p.b)},v=function(t){return a.Observable.defer((function(){return u.a.getCapabilities(Object(d.getCapabilitiesUrl)(t))})).let(p.b).map((function(e){return u.a.parseLayerCapabilities(e,t)}))},b=function(t){return y(t).map((function(t){var e=t.data,n=void 0===e?{}:e;return n&&n.layerDescriptions[0]})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.owsURL;return m(m({},t),{},{params:{},search:n?{type:"wfs",url:Object(h.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/plugins/BackgroundSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),i=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/actions/controls.js"),a=n("./MapStore2/web/client/actions/layers.js"),u=n("./MapStore2/web/client/actions/backgroundselector.js"),l=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./MapStore2/web/client/selectors/backgroundselector.js"),h=n("./MapStore2/web/client/selectors/maplayout.js"),f=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js"),m=n("./MapStore2/web/client/utils/PluginsUtils.js"),g=n("./MapStore2/web/client/reducers/controls.js"),y=n("./MapStore2/web/client/actions/catalog.js"),v=n("./node_modules/object-assign/index.js"),b=n.n(v);var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case u.a:return b()({},t,{source:e.source});case y.v:return b()({},t,{source:"metadataExplorer"});case u.k:return b()({},t,{modalParams:e.modalParams});case u.d:return b()({},t,{backgrounds:[],removedBackgroundsThumbIds:[],modalParams:{},lastRemovedId:void 0});case u.m:if(e.id){var n=t.backgrounds||[],r=-1===n.findIndex((function(t){return t.id===e.id})),i=r?n.concat({id:e.id}):n,o=i.map((function(t){return t.id===e.id?b()({},t,{id:e.id,thumbnail:e.thumbnailData}):b()({},t)}));return b()({},t,{backgrounds:o})}return t;case u.g:return b()({},t,{modalParams:void 0});case u.j:var s=t.backgrounds||[],a=t.removedBackgroundsThumbIds||[],l=s.filter((function(t){return t.id!==e.backgroundId})),c=s.filter((function(t){return t.id===e.backgroundId&&!!t.thumbId})).map((function(t){return t.thumbId}));return b()({},t,{backgrounds:l,removedBackgroundsThumbIds:a.concat(c),lastRemovedId:e.backgroundId});case u.i:return b()({},t,{backgrounds:e.backgrounds});case u.h:return b()({},t,{confirmDeleteBackgroundModal:{show:e.show,layerTitle:e.layerTitle,layerId:e.layerId}});case u.c:return b()({},t,{allowDeletion:e.allow||!1});default:return t}},E=n("./node_modules/rxjs/Rx.js"),x=n.n(E),O=n("./MapStore2/web/client/actions/config.js"),S=n("./MapStore2/web/client/observables/wms.js"),_=n("./MapStore2/web/client/utils/LayersUtils.js");function C(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(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.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?M.a.createElement(L.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:this.props.showAdd?[{glyph:"plus",tooltipId:"backgroundSelector.addTooltip",onClick:function(){return t.props.onAdd()}}]:[]}):null)}}])&&B(e.prototype,n),r&&B(e,r),o}(M.a.Component);q(Y,"propTypes",{src:k.a.string,side:k.a.number,frame:k.a.number,margin:k.a.number,labelHeight:k.a.number,label:k.a.string,showLabel:k.a.bool,onToggle:k.a.func,onAdd:k.a.func,showAdd:k.a.bool}),q(Y,"defaultProps",{src:"./images/mapthumbs/none.jpg",side:50,frame:4,margin:5,labelHeight:29,label:"",showLabel:!0,onToggle:function(){},onAdd:function(){}});var W=Y,X=n("./node_modules/react-bootstrap/es/index.js");function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n-1,n="wmts"===this.props.layer.type&&Object(o.has)(this.props.layer.allowedSRS,this.props.projection),r=this.props.vertical?"background-preview-icon-container-vertical":"background-preview-icon-container-horizontal",i=this.props.layer.visibility?" bg-primary":" bg-body",s=(e||n||Object(o.includes)(["wms","empty","osm"],this.props.layer.type))&&!this.props.layer.invalid,a=s?function(){t.props.onToggle(),t.props.onPropertiesChange(t.props.layer.id,{visibility:!0}),t.props.setCurrentBackgroundLayer(t.props.layer.id)}:function(){};return M.a.createElement("div",{className:r+i+(s?"":" disabled-icon"),style:{padding:this.props.frame/2,marginLeft:this.props.vertical?this.props.margin:0,marginRight:this.props.vertical?0:this.props.margin,marginBottom:this.props.margin,width:this.props.side+this.props.frame,height:this.props.side+this.props.frame}},M.a.createElement("div",{className:"background-preview-icon-frame",style:{width:this.props.side,height:this.props.side}},M.a.createElement("img",{onMouseOver:function(){t.props.onLayerChange("tempLayer",t.props.layer)},onMouseOut:function(){t.props.onLayerChange("tempLayer",t.props.currentLayer)},onClick:a,src:this.props.src})))}}])&&yt(e.prototype,n),r&&yt(e,r),s}(M.a.Component);xt(Ot,"propTypes",{side:k.a.number,frame:k.a.number,margin:k.a.number,src:k.a.string,vertical:k.a.bool,layer:k.a.object,currentLayer:k.a.object,onPropertiesChange:k.a.func,onToggle:k.a.func,onLayerChange:k.a.func,setCurrentBackgroundLayer:k.a.func,projection:k.a.string}),xt(Ot,"defaultProps",{side:50,frame:4,margin:5,src:"",vertical:!1,layer:{},currentLayer:{},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){}});var St=Ot,_t=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),Ct=n("./node_modules/react-select/dist/react-select.es.js"),jt=n("./node_modules/uuid/v1.js"),Tt=n.n(jt),It=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),Nt=n("./MapStore2/web/client/components/misc/Button.jsx"),Pt=n("./MapStore2/web/client/utils/ResourceUtils.js"),At=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(t,e){for(var n=0;n0){var r=n[0],i=new FileReader;return i.onload=function(t){return e(t.target.result,r.size)},i.readAsDataURL(r)}return e(null)})),Ut(Gt(t),"getThumbnailDataUri",(function(e){t.getDataUri(t.files,e)})),Ut(Gt(t),"generateUUID",(function(){var t=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))})),Ut(Gt(t),"processUpdateThumbnail",(function(e,n,r){var i=t.generateUUID();!t.props.map||r||!t.props.map.thumbnail||t.refs.imgThumbnail||n||t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!0),t.props.map&&!r&&t.props.map.newThumbnail&&!t.refs.imgThumbnail&&n&&(t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id)),t.props.map.newThumbnail&&r&&t.refs.imgThumbnail&&(t.deleteThumbnail(t.props.map.thumbnail,null,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id)),t.props.map.newThumbnail&&!r&&t.refs.imgThumbnail&&t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id),t.props.map.newThumbnail||r||t.refs.imgThumbnail||(t.props.map.thumbnail&&n&&t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id))})),Ut(Gt(t),"updateThumbnail",(function(e,n){t.props.map.errors&&t.props.map.errors.length||t.getDataUri(t.files,(function(r){return t.processUpdateThumbnail(e,n,r),r}))})),Ut(Gt(t),"deleteThumbnail",(function(e,n){if(e&&-1!==e.indexOf("geostore")){var r=Object(Pt.a)(e);r&&t.props.onDeleteThumbnail(r,n)}})),t}return e=o,(n=[{key:"renderThumbnailErrors",value:function(){return this.props.thumbnailErrors&&this.props.thumbnailErrors.length>0?M.a.createElement("div",{className:"dropzone-errorBox alert-danger"},M.a.createElement("p",null,M.a.createElement(D.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(t){return M.a.createElement("div",{id:"error"+t,key:"error"+t,className:"error"+t},zt[t])}))):null}},{key:"render",value:function(){var t=this;return M.a.createElement(At.a,{ref:"imgThumbnail",thumbnail:this.getThumbnailUrl(),className:null,dropZoneProps:{className:"dropzone alert alert-info",rejectClassName:"alert-danger"},loading:this.props.loading,maxFileSize:this.props.maxFileSize,style:{pointerEvents:this.props.map.saving?"none":"auto"},label:this.props.withLabel&&M.a.createElement("label",{className:"control-label"},M.a.createElement(D.default,{msgId:"map.thumbnail"})),"ù":!0,message:M.a.createElement(M.a.Fragment,null,this.props.message,M.a.createElement("br",null),this.props.suggestion),error:this.renderThumbnailErrors(),onUpdate:function(e,n){var r;t.props.onError([],t.props.map.id),t.files=n,t.props.onUpdate(e,null==n||null===(r=n[0])||void 0===r?void 0:r.preview)},onError:function(e,n){t.props.onError(e,t.props.map.id),t.files=n,t.props.onUpdate(null,null)},onRemove:function(){t.files=null,t.props.onUpdate(null,null),t.props.onRemoveThumbnail(),t.props.onError([],t.props.map.id)}})}}])&&Rt(e.prototype,n),r&&Rt(e,r),o}(M.a.Component);Ut(Vt,"propTypes",{glyphiconRemove:k.a.string,style:k.a.object,thumbnailErrors:k.a.array,loading:k.a.bool,withLabel:k.a.bool,map:k.a.object,maxFileSize:k.a.number,onDrop:k.a.func,onError:k.a.func,onUpdate:k.a.func,onSaveAll:k.a.func,onCreateThumbnail:k.a.func,onDeleteThumbnail:k.a.func,onRemoveThumbnail:k.a.func,message:k.a.oneOfType([k.a.string,k.a.element]),suggestion:k.a.oneOfType([k.a.string,k.a.element])}),Ut(Vt,"contextTypes",{messages:k.a.object}),Ut(Vt,"defaultProps",{loading:!1,withLabel:!0,glyphiconRemove:"remove-circle",maxFileSize:5e5,onDrop:function(){},onError:function(){},onUpdate:function(){},onSaveAll:function(){},onRemoveThumbnail:function(){},onCreateThumbnail:function(){},onDeleteThumbnail:function(){},message:M.a.createElement(D.default,{msgId:"map.message"}),suggestion:M.a.createElement(D.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var Ht=Vt,qt=n("./MapStore2/web/client/utils/LocaleUtils.js"),Yt=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kt(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $t(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(t,e)}(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.")}()}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?M.a.createElement("div",{className:"dropzone-errorBox alert-danger"},M.a.createElement("p",null,M.a.createElement(D.default,{msgId:"map.error"})),this.state.thumbnailErrors.map((function(e){return M.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},t[e])}))):null}},{key:"renderSpecificTypeForm",value:function(){var t=this;return"wms"===this.props.layer.type?M.a.createElement(M.a.Fragment,null,M.a.createElement(X.FormGroup,{controlId:"formControlsSelect"},M.a.createElement(X.ControlLabel,null,M.a.createElement(D.default,{msgId:"layerProperties.format"})),M.a.createElement(Ct.default,{onChange:function(e){return t.setState({format:e&&e.value})},value:this.state.format||this.props.defaultFormat,clearable:!0,options:this.props.formatOptions})),this.renderStyleSelector(),M.a.createElement(se,null,M.a.createElement("div",{style:{display:"flex",alignItems:"center"}},M.a.createElement(X.ControlLabel,{style:{flex:1}},M.a.createElement(D.default,{msgId:"backgroundDialog.additionalParameters"})),M.a.createElement(se,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var e=Math.max.apply(Math,$t(t.state.additionalParameters.length>0?t.state.additionalParameters.map((function(t){return t.id})):[-1]))+1;t.setState({additionalParameters:[].concat($t(t.state.additionalParameters),[{id:e,type:"string",param:"",val:""}])})}},M.a.createElement(X.Glyphicon,{glyph:"plus"}))),this.state.additionalParameters.map((function(e){return M.a.createElement("div",{key:"val:"+e.id,style:{display:"flex",marginTop:8}},M.a.createElement("div",{style:{display:"flex",flex:1,marginRight:8}},M.a.createElement(X.FormControl,{style:{width:"50%",marginRight:8,minWidth:0},placeholder:Object(qt.f)(t.context.messages,"backgroundDialog.parameter"),value:e.param,onChange:function(n){return t.addAdditionalParameter(n.target.value,"param",e.id,e.type)}}),"boolean"===e.type?M.a.createElement("div",{style:{width:"50%"}},M.a.createElement(Ct.default,{onChange:function(n){return t.addAdditionalParameter(n.value,"val",e.id,e.type)},clearable:!1,value:e.val,options:t.props.booleanOptions})):M.a.createElement(X.FormControl,{style:{width:"50%",minWidth:0},placeholder:Object(qt.f)(t.context.messages,"backgroundDialog.value"),value:e.val.toString(),onChange:function(n){return t.addAdditionalParameter(n.target.value,"val",e.id,e.type)}})),M.a.createElement(Ct.default,{style:{flex:1,width:90},onChange:function(n){return t.addAdditionalParameter(e.val,"val",e.id,n.value)},clearable:!1,value:e.type,options:t.props.parameterTypeOptions.map((function(e){var n=e.label;return Kt(Kt({},Zt(e,["label"])),{},{label:Object(qt.f)(t.context.messages,n)})}))}),M.a.createElement(se,{onClick:function(){return t.setState({additionalParameters:t.state.additionalParameters.filter((function(t){return e.id!==t.id}))})},tooltipId:"backgroundDialog.removeAdditionalParameterTooltip",className:"square-button-md",style:{borderColor:"transparent"}},M.a.createElement(X.Glyphicon,{glyph:"trash"})))})))):null}},{key:"render",value:function(){var t=this;return M.a.createElement(It.a,{fitContent:!0,title:M.a.createElement(D.default,{msgId:this.props.editing?"backgroundDialog.editTitle":"backgroundDialog.addTitle"}),show:!0,fade:!0,clickOutEnabled:!1,bodyClassName:"ms-flex modal-properties-container background-dialog",loading:this.props.loading,onClose:function(){t.props.onClose(),t.resetParameters()},buttons:this.props.loading?[]:[{text:M.a.createElement(D.default,{msgId:this.props.editing?"save":"backgroundDialog.add"}),bsStyle:"primary",onClick:function(){var e=t.props.editing?t.props.layer.id:Tt()(),n=t.props.layer.thumbURL||"",r=t.state.format||t.props.defaultFormat;t.props.updateThumbnail(t.state.thumbnail.data,e),t.props.onSave(b()({},t.props.layer,Object(o.omit)(t.state,"thumbnail"),t.props.editing?{}:{id:e},{params:Object(o.omit)(t.state.additionalParameters.reduce((function(t,e){return b()(t,oe({},e.param,e.val))}),{}),["source","title"]),format:r,group:"background"},n||t.state.thumbnail.data?{thumbURL:t.state.thumbnail.url}:{})),t.resetParameters()}}]},M.a.createElement(X.Form,{style:{width:"100%"}},this.renderThumbnailErrors(),M.a.createElement(Ht,{onUpdate:function(e,n){return t.setState({thumbnail:{data:e,url:n}})},onError:function(e){return t.setState({thumbnailErrors:e})},message:M.a.createElement(D.default,{msgId:"backgroundDialog.thumbnailMessage"}),suggestion:"",map:{newThumbnail:Object(o.get)(this.state.thumbnail,"url")||"NODATA"}}),M.a.createElement(X.FormGroup,null,M.a.createElement(X.ControlLabel,null,M.a.createElement(D.default,{msgId:"layerProperties.title"})),M.a.createElement(X.FormControl,{value:this.state.title,placeholder:Object(qt.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(e){return t.setState({title:e.target.value})}})),this.renderSpecificTypeForm()))}}])&&Jt(e.prototype,n),r&&Jt(e,r),s}(M.a.Component);oe(ae,"propTypes",{loading:k.a.bool,editing:k.a.bool,layer:k.a.object,capabilities:k.a.object,onAdd:k.a.func,onClose:k.a.func,source:k.a.string,onSave:k.a.func,addParameters:k.a.func,updateThumbnail:k.a.func,thumbURL:k.a.string,title:k.a.string,format:k.a.string,style:k.a.string,thumbnail:k.a.object,additionalParameters:k.a.object,addParameter:k.a.func,defaultFormat:k.a.string,formatOptions:k.a.array,parameterTypeOptions:k.a.array,booleanOptions:k.a.array}),oe(ae,"contextTypes",{messages:k.a.object}),oe(ae,"defaultProps",{updateThumbnail:function(){},onClose:function(){},onSave:function(){},addParameters:function(){},addParameter:function(){},loading:!1,editing:!1,layer:{},capabilities:{},title:"",thumbnail:{},additionalParameters:{},formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],parameterTypeOptions:[{label:"backgroundDialog.string",value:"string"},{label:"backgroundDialog.number",value:"number"},{label:"backgroundDialog.boolean",value:"boolean"}],booleanOptions:[{label:"True",value:!0},{label:"False",value:!1}]});var ue=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function le(t){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(){return(ce=Object.assign||function(t){for(var e=1;e1&&M.a.createElement(_t.a,{glyph:"trash",className:"square-button-md background-tool-button delete-button",bsStyle:"primary",onClick:function(){t.props.onRemoveBackground(!0,o.title||o.name||"",o.id)}}),t.props.mapIsEditable&&!t.props.enabledCatalog&&!("wms"!==o.type&&"wmts"!==o.type&&"tms"!==o.type&&"tileprovider"!==o.type)&&M.a.createElement(_t.a,{glyph:"wrench",className:"square-button-md background-tool-button edit-button",bsStyle:"primary",onClick:function(){t.props.addBackgroundProperties({layer:o,editing:!0})}})),M.a.createElement(St,{projection:t.props.projection,vertical:i,key:s,src:a,currentLayer:t.props.currentLayer,margin:r,side:e,frame:n,layer:o,onToggle:t.props.onToggle,onPropertiesChange:t.props.onPropertiesChange,onLayerChange:t.props.onLayerChange,setCurrentBackgroundLayer:t.props.setCurrentBackgroundLayer}))})):[]})),ve(ge(t),"getDimensions",(function(e,n,r,i,o,s){var a=o/2-(e+2*n+2*r)-i,u=e+2*n+2*r+(e+2*n+r)*s+i>o/2,l=Math.floor(a/(e+2*n+r));return l=l>s?s:l,{pagination:u,listSize:t.props.enabled?(e+n+r)*l+52:0,visibleIconsLength:l}})),ve(ge(t),"renderBackgroundSelector",(function(){var e=b()({side:78,sidePreview:104,frame:3,margin:5,label:!0,vertical:!1},t.props.dimensions),n=2*e.frame,r=e.side-n,i=t.props.enabled?e.sidePreview-n:r,o=e.margin,s=t.props.enabled?i-2*n:0,a=t.props.enabled?t.props.tempLayer:t.props.currentLayer,u=t.getIcons(r,n,o,e.vertical),l=t.getDimensions(r,n,o,0,e.vertical?t.props.size.height:t.props.size.width,u.length),c=l.pagination,d=l.listSize,p=l.visibleIconsLength,h=r+n+o,f=r+n+2*o,m=e.vertical?{bottom:f,left:0,width:f,height:d}:{left:i+2*o+n,width:d,height:h},g=e.vertical?{height:h*p,width:h}:{height:h,width:h*p},y=t.props.modalParams&&t.props.modalParams.layer||{},v=(t.props.backgroundList||[]).find((function(t){return t.id===y.id})),w={title:y.title,format:y.format,style:y.style,additionalParameters:y.params,thumbnail:{data:v&&v.thumbnail,url:t.getThumb(y)}},E=t.props.confirmDeleteBackgroundModal||{show:!1},x=E.show,O=E.layerId,S=E.layerTitle;return p<=0&&!t.props.alwaysVisible&&t.props.enabled?null:M.a.createElement("span",null,M.a.createElement(ue.a,{draggable:!1,modal:!0,show:x,onClose:function(){return t.props.onRemoveBackground(!1)},onConfirm:function(){t.props.removeBackground(O),t.props.onRemoveBackground(!1)},confirmButtonBSStyle:"default",confirmButtonContent:M.a.createElement(D.default,{msgId:"confirm"}),closeText:M.a.createElement(D.default,{msgId:"cancel"}),closeGlyph:"1-close"},M.a.createElement(D.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),t.props.modalParams&&M.a.createElement(ae,ce({onClose:t.props.clearModal,onSave:function(e){t.props.modalParams.editing?(t.props.updateNode(e.id,"layers",e),t.props.onBackgroundEdit(e.id)):(t.props.addLayer(e),t.props.backgroundAdded(e.id))},updateThumbnail:t.props.onUpdateThumbnail},w,t.props.modalParams)),M.a.createElement("div",{className:"background-plugin-position",style:t.props.style},M.a.createElement(W,{layers:t.props.layers,showAdd:"mobile"!==t.props.mode&&t.props.mapIsEditable&&t.props.hasCatalog&&!t.props.enabledCatalog,onAdd:function(){return t.props.onAdd(t.props.source||"backgroundSelector")},showLabel:e.label,src:t.getThumb(a),side:i,frame:n,margin:o,labelHeight:s,label:a.title,onToggle:t.props.onToggle}),M.a.createElement("div",{className:"background-list-container",style:m},M.a.createElement(ft,{vertical:e.vertical,start:t.props.start,bottom:0,height:g.height,width:g.width,icons:u,pagination:c,length:p,onStartChange:t.props.onStartChange}))))})),t}return e=o,(n=[{key:"componentWillUnmount",value:function(){this.props.onLayerChange("currentLayer",{}),this.props.onLayerChange("tempLayer",{}),this.props.onStartChange(0)}},{key:"render",value:function(){return this.props.layers.length>0?this.renderBackgroundSelector():null}}])&&pe(e.prototype,n),r&&pe(e,r),o}(M.a.Component);ve(be,"propTypes",{mode:k.a.string,backgroundList:k.a.array,backgrounds:k.a.array,start:k.a.number,style:k.a.object,enabled:k.a.bool,layers:k.a.array,currentLayer:k.a.object,tempLayer:k.a.object,size:k.a.object,dimensions:k.a.object,thumbs:k.a.object,mapIsEditable:k.a.bool,onPropertiesChange:k.a.func,onToggle:k.a.func,onLayerChange:k.a.func,onStartChange:k.a.func,onAdd:k.a.func,hasCatalog:k.a.bool,alwaysVisible:k.a.bool,enabledCatalog:k.a.bool,onRemove:k.a.func,onBackgroundEdit:k.a.func,source:k.a.string,addBackgroundProperties:k.a.func,onUpdateThumbnail:k.a.func,removeBackground:k.a.func,onRemoveBackground:k.a.func,setCurrentBackgroundLayer:k.a.func,confirmDeleteBackgroundModal:k.a.object,deletedId:k.a.string,modalParams:k.a.object,updateNode:k.a.func,clearModal:k.a.func,allowDeletion:k.a.bool,projection:k.a.string}),ve(be,"defaultProps",{mode:"desktop",addBackgroundProperties:function(){},onBackgroundEdit:function(){},setCurrentBackgroundLayer:function(){},source:"backgroundSelector",start:0,style:{},enabled:!1,layers:[],currentLayer:{},tempLayer:{},size:{width:0,height:0},dimensions:{},allowDeletion:!0,thumbs:{unknown:n("./MapStore2/web/client/components/background/img/default.jpg")},mapIsEditable:!0,onRemoveBackground:function(){},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){},onStartChange:function(){},onAdd:function(){},onRemove:function(){},clearModal:function(){}});var we=be;function Ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xe(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var T=Object(a.connect)((function(){return{noCaret:!0,pullRight:!0,bsStyle:"primary",title:i.a.createElement(c.Glyphicon,{glyph:"menu-hamburger"})}}))(c.DropdownButton),I=function(t){var e=t.children,n=j(t,["children"]);return i.a.createElement("div",n,e)},N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(s,t);var e,n,r,o=x(s);function s(){var t;b(this,s);for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(t){return v(v({},t),e(t.children))})).sort((function(t,e){return t.position-e.position})),i={container:I,containerWrapperStyle:{position:"static"},className:"burger-menu-submenu",toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,panelStyle:t.props.panelStyle,panelClassName:t.props.panelClassName};return n.length>0?{containerWrapperStyle:{position:"static"},style:{position:"relative"},childTools:r,childPanels:t.getPanels(n),innerProps:i}:{}}(e.children))})).sort((function(t,e){return t.position-e.position}))))})),t}return e=s,(n=[{key:"render",value:function(){return i.a.createElement(d.a,{id:this.props.id,className:"square-button",container:T,mapType:this.props.mapType,toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,tools:this.getTools(),panels:this.getPanels(this.props.items),panelStyle:this.props.panelStyle,panelClassName:this.props.panelClassName})}}])&&w(e.prototype,n),r&&w(e,r),s}(i.a.Component);C(N,"propTypes",{id:s.a.string,dispatch:s.a.func,items:s.a.array,title:s.a.node,onItemClick:s.a.func,controls:s.a.object,mapType:s.a.string,panelStyle:s.a.object,panelClassName:s.a.string}),C(N,"contextTypes",{messages:s.a.object,router:s.a.object}),C(N,"defaultProps",{id:"mapstore-burger-menu",items:[],onItemClick:function(){},title:i.a.createElement(c.MenuItem,{header:!0},i.a.createElement(p.a,{msgId:"options"})),controls:[],mapType:"leaflet",panelStyle:{minWidth:"300px",right:"52px",zIndex:100,position:"absolute",overflow:"auto"},panelClassName:"toolbar-panel"}),e.default=Object(h.d)("BurgerMenu",{component:Object(a.connect)((function(t){return{controls:t.controls}}))(N),containers:{OmniBar:{name:"burgermenu",position:2,tool:!0,priority:1}}})},"./MapStore2/web/client/plugins/Expander.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-bootstrap/es/index.js"),s=n("./node_modules/object-assign/index.js"),a=n.n(s),u=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx");e.a={ExpanderPlugin:a()(u.a,{Toolbar:{name:"expand",position:1e4,alwaysVisible:!0,tooltip:"expandtoolbar.tooltip",showWhen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.items,n=void 0===e?[]:e;return n.filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"expand"!==!t.name&&!t.alwaysVisible})).length>1},icon:i.a.createElement(o.Glyphicon,{glyph:"option-horizontal"}),toggle:!0,toggleControl:"toolbar",toggleProperty:"expanded",priority:1}}),reducers:{}}},"./MapStore2/web/client/plugins/FullScreen.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js");var i=n("./node_modules/screenfull/dist/screenfull.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/controls.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),l=n("./node_modules/rxjs/Rx.js"),c=n.n(l),d=function(t){return t.ofType("TOGGLE_FULLSCREEN").switchMap((function(t){var e=document.querySelector(t&&t.querySelector||"."+(u.default.getConfigProp("themePrefix")||"ms2")+" > div");return e&&t.enable&&o.a.enabled?o.a.request(e):e&&!t.enable&&o.a.exit(),c.a.Observable.merge(c.a.Observable.fromEvent(document,Object(s.last)(Object(s.head)([["exitFullscreen","fullscreenchange"],["webkitExitFullscreen","webkitfullscreenchange"],["webkitCancelFullScreen","webkitfullscreenchange"],["mozCancelFullScreen","mozfullscreenchange"],["msExitFullscreen","MSFullscreenChange"]].filter((function(t){return document[t[0]]}))))).filter((function(){return o.a.element!==e})).map((function(){return Object(a.g)("fullscreen","enabled",!1)})),c.a.Observable.of(Object(a.g)("fullscreen","enabled",t.enable)),c.a.Observable.fromEvent(window,"hashchange").do((function(){return o.a.exit()})).map((function(){return Object(a.g)("fullscreen","enabled",!1)})))}))},p=n("./node_modules/object-assign/index.js"),h=n.n(p),f=n("./node_modules/prop-types/index.js"),m=n.n(f),g=n("./node_modules/react/index.js"),y=n.n(g),v=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),b=n("./node_modules/react-bootstrap/es/index.js"),w=n("./MapStore2/web/client/components/I18N/Message.jsx");function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(){return(x=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.controls,n=void 0===e?{}:e;return{active:n.fullscreen&&n.fullscreen.enabled}}),{onClick:function(t,e){return n=t,r=e.querySelector,{type:"TOGGLE_FULLSCREEN",enable:n,elementSelector:r};var n,r}})(A);e.a={FullScreenPlugin:h()(M,{disablePluginIf:"{state('browser') && state('browser').safari}",Toolbar:{name:"fullscreen",position:5,alwaysVisible:!0,tool:!0,priority:1}}),reducers:{},epics:{toggleFullscreenEpic:d}}},"./MapStore2/web/client/plugins/Identify.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/identify/identify.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./node_modules/react/index.js"),a=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./MapStore2/web/client/actions/map.js"),h=n("./MapStore2/web/client/actions/mapInfo.js"),f=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),g=n("./MapStore2/web/client/utils/ImmutableUtils.js"),y=Object(c.withHandlers)({needsRefresh:function(){return function(t,e){if(e.enabled&&e.point&&e.point.pixel){if(!t.point||!t.point.pixel||t.point.pixel.x!==e.point.pixel.x||t.point.latlng!==e.point.latlng||t.point.pixel.y!==e.point.pixel.y)return!0;if(!t.point||!t.point.pixel||e.point.pixel&&t.format!==e.format)return!0}return!1}},onClose:function(t){var e=t.purgeResults,n=void 0===e?function(){}:e,r=t.closeIdentify,i=void 0===r?function(){}:r;return function(){n(),i()}},onSubmitClickPoint:function(t){var e=t.onSubmitClickPoint,n=void 0===e?function(){}:e,i=t.point;return function(t){var e=Object(r.isNil)(t.lat)||Object(r.isNaN)(t.lat)?0:parseFloat(t.lat),o=Object(r.isNil)(t.lon)||Object(r.isNaN)(t.lon)?0:parseFloat(t.lon),s=Object(g.e)("latlng.lng",o,Object(g.e)("latlng.lat",e,i));n(s)}},onChangeFormat:function(t){var e=t.onChangeFormat,n=void 0===e?function(){}:e;return function(t){n(t)}}}),v=Object(c.compose)(y,Object(c.lifecycle)({componentDidMount:function(){var t=this.props,e=t.enabled,n=t.changeMousePointer,r=void 0===n?function(){}:n,i=t.disableCenterToMarker,o=t.onEnableCenterToMarker,s=void 0===o?function(){}:o;e&&r("pointer"),i||s()},componentWillUnmount:function(){var t=this.props,e=t.hideMarker,n=void 0===e?function(){}:e,r=t.purgeResults,i=void 0===r?function(){}:r,o=t.changeMousePointer;(void 0===o?function(){}:o)("auto"),n(),i()},componentWillReceiveProps:function(t){var e=this.props,n=e.hideMarker,r=void 0===n?function(){}:n,i=e.purgeResults,o=void 0===i?function(){}:i,s=e.changeMousePointer,a=void 0===s?function(){}:s,u=e.enabled;t.enabled&&!u?a("pointer"):!t.enabled&&u&&(a("auto"),r(),o())}})),b=n("./node_modules/@turf/bbox/index.js"),w=n.n(b),E=Object(c.withHandlers)({zoomToFeature:function(t){var e=t.zoomToExtent,n=void 0===e?function(){}:e,r=t.currentFeature,i=void 0===r?[]:r,o=t.currentFeatureCrs;return function(){var t=i.filter((function(t){return!!t.geometry}));if(t.length>0){var e=w()({type:"FeatureCollection",features:t});e&&n(e,o)}}}}),x=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),O=n("./MapStore2/web/client/components/I18N/Message.jsx"),S=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx"),_=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),C=n("./MapStore2/web/client/components/misc/Portal.jsx"),j=function(t){var e=t.latlng,n=t.enableRevGeocode,r=t.hideRevGeocode,i=void 0===r?function(){}:r,o=t.showModalReverse,s=t.revGeocodeDisplayName;return n&&e?a.a.createElement(C.a,null,a.a.createElement(_.a,{fade:!0,title:a.a.createElement("span",null,a.a.createElement(u.Glyphicon,{glyph:"map-marker"})," ",a.a.createElement(O.default,{msgId:"identifyRevGeocodeModalTitle"})),size:"xs",show:o,onClose:i,buttons:[{text:a.a.createElement(O.default,{msgId:"close"}),onClick:i,bsStyle:"primary"}]},a.a.createElement("div",{className:"ms-alert",style:{padding:15}},a.a.createElement("div",{className:"ms-alert-center text-center"},a.a.createElement("div",null,s))))):null},T=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),I=function(t){return a.a.createElement(T.a,{format:t.formatCoord||"decimal",aeronauticalOptions:{seconds:{decimals:4,step:1e-4}},idx:1,onSubmit:function(e,n){t.onSubmit(Object(r.isEmpty)(n)?void 0:n)},onChangeFormat:function(e){t.onChangeFormat(e)},key:"GFI row coord editor",component:t.coordinate||{},customClassName:"coord-editor",isDraggable:!1,showDraggable:!1,formatVisible:!0,showLabels:!0,removeVisible:!1})},N=n("./MapStore2/web/client/components/I18N/Number.jsx"),P=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),A=Object(P.a)((function(t){var e=t.degrees,n=void 0===e?0:e,r=t.minutes,i=void 0===r?0:r,o=t.seconds,s=void 0===o?0:o,u=t.direction,l=t.integerFormat,c=t.decimalFormat;return a.a.createElement("span",{className:"coordinate-dms"},a.a.createElement(N.a,{key:"latD",numberParams:l,value:n}),a.a.createElement("span",null,"° "),a.a.createElement(N.a,{key:"latM",numberParams:l,value:i}),a.a.createElement("span",null,"' "),a.a.createElement(N.a,{key:"latS",numberParams:c,value:s}),a.a.createElement("span",null,"'' ")," ",a.a.createElement("span",null,u))})),M=function(t){var e=t.integerFormat,n=void 0===e?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:0}:e,i=t.decimalFormat,o=void 0===i?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:4,minimumFractionDigits:4}:i,s=t.coordinate,l=void 0===s?{}:s,c=t.formatCoord,d=void 0===c?"decimal":c,p=t.className;return a.a.createElement(u.Row,{className:p},a.a.createElement(u.Col,{xs:12},Object(r.isNil)(l.lat)||Object(r.isNil)(l.lon)?null:"decimal"===d?a.a.createElement("div",{className:"ms-coordinates-decimal"},"Lat: ",a.a.createElement(N.a,{value:Math.round(1e5*l.lat)/1e5})," - Long: ",a.a.createElement(N.a,{value:l.lon})):a.a.createElement("div",{className:"ms-coordinates-aeronautical"},a.a.createElement("span",null,"Lat: ",a.a.createElement(A,{integerFormat:n,decimalFormat:o,value:l.lat})),a.a.createElement("span",null," - "),a.a.createElement("span",null," Long: ",a.a.createElement(A,{coordinate:"lon",integerFormat:n,decimalFormat:o,value:l.lon})))))},D=function(t){var e=t.coordinate,n=void 0===e?{}:e,r=t.formatCoord,i=t.edit,o=t.onSubmit,s=void 0===o?function(){}:o,u=t.onChangeFormat,l=void 0===u?function(){}:u;return i?a.a.createElement(I,{removeVisible:!1,formatCoord:r,coordinate:n||{lat:"",lon:""},onSubmit:s,onChangeFormat:l}):a.a.createElement(M,{className:"coordinates-text",formatCoord:r,coordinate:n||{lat:"",lon:""}})},R=n("./MapStore2/web/client/utils/IdentifyUtils.js"),k=n("./node_modules/prop-types/index.js"),L=n.n(k),F=n("./node_modules/react-select/dist/react-select.es.js"),G=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function B(){return(B=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0}))).mergeMap((function(t){var e=Object(At.c)(i()),n=Object(Dt.a)(t,Ft(Ft({},Object(Ot.i)(i())),{},{env:e})),r=n.url,o=n.request,s=n.metadata;if(Object(Ot.o)(i())&&Object(Ot.r)(i())&&(o=Ft(Ft({},o),Object(Ot.r)(i())[t.name])),a[t.name]&&(o=Ft(Ft({},o),a[t.name])),r){var l=r,c=o,f=s,m=Object(Dt.c)(t,p,d),g=Object(Ot.k)(i()),y=Object(Ot.o)(i()),v=ht.a.v1(),b=Ft(Ft({},m),c);return Object(kt.a)(l,b,t,{attachJSON:g,itemId:y}).map((function(e){return e.data.exceptions?Object(h.I)(v,e.data.exceptions,c,f):Object(h.N)(v,e.data,c,Ft(Ft({},f),{},{features:e.features,featuresCrs:e.featuresCrs}),t)})).catch((function(t){return dt.a.Observable.of(Object(h.H)(v,t.data||t.statusText||t.status,c,f))})).startWith(Object(h.O)(v,b))}return dt.a.Observable.of(Object(h.K)(t,o,s,u))}));return e&&e.modifiers&&!0===e.modifiers.ctrl&&e.multiSelection?f:f.startWith(Object(h.Q)())}))},handleMapInfoMarker:function(t,e){var n=e.getState;return t.ofType(h.j).filter((function(){return!Object(Ot.n)(n())})).map((function(t){return t.layer?Object(h.L)():Object(h.T)()}))},closeFeatureGridFromIdentifyEpic:function(t){return t.ofType(h.n,h.k).switchMap((function(){return dt.a.Observable.of(Object(gt.fb)())}))},closeFeatureAndAnnotationEditing:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,i=void 0===n?function(){}:n;return t.ofType(h.f).switchMap((function(){return Object(r.get)(i(),"annotations.editing")?dt.a.Observable.of(Object(bt.b)()):dt.a.Observable.of(Object(h.Q)())}))},hideMarkerOnIdentifyCloseOrClearWarning:function(t){return t.ofType(h.f,h.e).flatMap((function(){return dt.a.Observable.of(Object(h.L)())}))},changeMapPointer:function(t,e){return t.ofType(p.f).filter((function(){return!e.getState().map})).switchMap((function(e){return t.ofType(wt.d).mapTo(e)}))},onMapClick:function(t,e){return t.ofType(p.i).filter((function(){var t=e.getState().mapInfo.disableAlwaysOn,n=void 0!==t&&t;return!Object(jt.f)(e.getState())&&(n||!zt(e.getState()||{}))})).switchMap((function(t){var n=t.point,r=t.layer,i=Object(jt.n)(e.getState());return dt.a.Observable.of(Object(h.J)(Vt(n,i),r),Object(xt.u)()).merge(dt.a.Observable.of(Object(Et.b)(ht()(),{component:Rt.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:n?n.rawPos:[]}})).filter((function(){return Object(Ot.n)(e.getState())})))}))},onUpdateFeatureInfoClickPoint:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(h.A).map((function(t){var e=t.point,n=Object(jt.n)(r());return{point:Vt(e,n)}})).withLatestFrom(t.ofType(h.j),(function(t,e){var n=t.point;return Ft(Ft({},e),{},{point:n})}))},featureInfoClickOnHighligh:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(h.w).filter((function(t){return t.enabled&&Object(Ot.b)(r())})).switchMap((function(){return dt.a.Observable.from([Object(h.J)(Object(Ot.b)(r()),Object(Ot.a)(r()),Object(Ot.g)(r()),Object(Ot.r)(r()),Object(Ot.o)(r())),Object(h.T)()])}))},zoomToVisibleAreaEpic:function(t,e){return t.ofType(h.j).filter((function(){return Object(St.c)(e.getState())})).switchMap((function(n){return t.ofType(h.n,h.h).switchMap((function(){var i=e.getState(),o=Object(jt.k)(i),s=Object(jt.n)(i),a=Object(jt.m)(i),u=Object(r.find)(a,{code:s}),l=u&&u.extent,c=l&&Object(It.reprojectBbox)(l,s,"EPSG:4326"),d=Object(Tt.b)(i),f=n.point&&n.point&&n.point.latlng,m=Object(Mt.getCurrentResolution)(Math.round(o.zoom),0,21,96),g=d&&o&&o.size&&{left:Object(Mt.parseLayoutValue)(d.left,o.size.width),bottom:Object(Mt.parseLayoutValue)(d.bottom,o.size.height),right:Object(Mt.parseLayoutValue)(d.right,o.size.width),top:Object(Mt.parseLayoutValue)(d.top,o.size.height)};if(!o||!g||!f||n.point.cartographic||Object(It.isInsideVisibleArea)(f,o,g,m)||Object(jt.f)(i))return dt.a.Observable.of(Object(h.Y)("disabled"));if(c&&!Object(It.isPointInsideExtent)(f,c))return dt.a.Observable.empty();var y=Object(It.centerToVisibleArea)(f,o,g,m);return dt.a.Observable.of(Object(h.Y)("enabled"),Object(p.J)(y.pos,y.zoom,y.crs)).concat(t.ofType(h.f).switchMap((function(){var t=o&&Object(Mt.getBbox)(o.center,o.zoom);return dt.a.Observable.of(Object(p.x)(o.center,o.zoom,t,o.size,null,o.projection))})).takeUntil(t.ofType(p.e).skip(1)))}))}))},closeFeatureInfoOnCatalogOpenEpic:function(t,e){return t.ofType(mt.b).filter((function(t){return"metadataexplorer"===t.control&&t.properties&&t.properties.enabled})).switchMap((function(){return dt.a.Observable.of(Object(h.Q)(),Object(h.L)()).merge(dt.a.Observable.of(Object(Et.c)()).filter((function(){return Object(Ot.n)(e.getState())})))}))},closeFeatureInfoOnAnnotationOpenEpic:function(t,e){var n=e.getState;return t.ofType(mt.d).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.control;return"annotations"===e&&Object(r.get)(n(),"controls.annotations.enabled",!1)})).mapTo(Object(h.Q)())},closeFeatureInfoOnMeasureOpenEpic:function(t){return t.ofType(mt.c).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.control,n=t.value;return"measure"===e&&n})).mapTo(Object(h.Q)())},cleanPopupsEpicOnPurge:function(t,e){var n=e.getState;return t.ofType(h.q).filter((function(){return Object(Ot.n)(n())})).mapTo(Object(Et.c)())},identifyEditLayerFeaturesEpic:function(t,e){return t.ofType(h.g).exhaustMap((function(t){var n,r=t.layer;return dt.a.Observable.of(Object(h.R)(null===(n=Object(Ot.b)(e.getState()))||void 0===n?void 0:n.geometricFilter),Object(vt.E)(r))}))},switchFeatureGridToEdit:function(t,e){return t.ofType(yt.j).switchMap((function(){var t=Object(Ot.d)(e.getState()),n=(Object(r.find)(Object(_t.e)(e.getState()),(function(t){return"geometry"===t.type}))||{}).attribute||Object(r.get)(Object(Ct.k)(e.getState()),"attribute");return t?dt.a.Observable.of(Object(h.R)(),Object(gt.Pb)(),Object(gt.Tb)(Ft(Ft({},t),{},{attribute:n,value:Ft(Ft({},t.value),{},{attribute:n})}))):dt.a.Observable.empty()}))},resetCurrentEditFeatureQuery:function(t){return t.ofType(gt.f,ft.b).mapTo(Object(h.R)())},mouseMoveMapEventEpic:function(t,e){var n=e.getState;return t.ofType(p.l).debounceTime(Object(Nt.a)(n())).switchMap((function(t){var e=t.position,r=t.layer,i=Object(Pt.b)("annotations")(n()),o=Object(Pt.e)(n()),s=n().mousePosition.mouseOut;return!Object(jt.f)(n())||i||o||s?dt.a.Observable.empty():dt.a.Observable.of(Object(h.J)(e,r)).merge(dt.a.Observable.of(Object(Et.b)(ht()(),{component:Rt.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:e?e.rawPos:[]},autoPanMargin:70,autoPan:!0})))}))},removePopupOnUnregister:function(t,e){var n=e.getState;return t.ofType(p.r).switchMap((function(){var t,e,r=dt.a.Observable.empty(),i=(null===(t=n())||void 0===t||null===(e=t.mapPopups)||void 0===e?void 0:e.popups)||[];if(i.length&&!Object(jt.f)(n())){var o=i[0].id;r=dt.a.Observable.of(Object(Et.d)(o))}return r}))},removePopupOnLocationChangeEpic:function(t,e){var n=e.getState;return t.ofType(ft.b,h.q,h.e).switchMap((function(){var t,e,r=dt.a.Observable.empty(),i=(null===(t=n())||void 0===t||null===(e=t.mapPopups)||void 0===e?void 0:e.popups)||[];if(i.length){var o=i[0].id;r=dt.a.Observable.of(Object(Et.d)(o))}return r}))},removeMapInfoMarkerOnRemoveMapPopupEpic:function(t,e){var n=e.getState;return t.ofType(Et.a).switchMap((function(){return Object(jt.f)(n())?dt.a.Observable.of(Object(h.L)()):dt.a.Observable.empty()}))},setMapTriggerEpic:function(t,e){return t.ofType(h.s,wt.d).switchMap((function(){return dt.a.Observable.of("hover"===Object(Ot.q)(e.getState())?Object(p.F)("mousemove","identifyFloatingTool"):Object(p.H)("mousemove","identifyFloatingTool"))}))}},qt=n("./MapStore2/web/client/reducers/mapInfo.js"),Yt=n("./MapStore2/web/client/selectors/locale.js"),Wt=n("./MapStore2/web/client/selectors/maptype.js"),Xt=n("./MapStore2/web/client/utils/ConfigUtils.js");function Kt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Zt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qt(t){for(var e=1;e0&&n.reduce((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.geometry;return t||!!n}),!1)||!1,tooltipId:"identifyZoomToFeature",onClick:a}]},showFullscreen:!1,validResponses:[],validator:Dt.i,zIndex:1050}),ie=Object(c.compose)(Object(l.connect)(te,{purgeResults:h.Q,closeIdentify:h.F,onSubmitClickPoint:h.Z,onToggleShowCoordinateEditor:h.X,onChangeFormat:h.B,changeMousePointer:p.y,clearWarning:h.E,hideMarker:h.L,showRevGeocode:h.U,hideRevGeocode:h.M,onEnableCenterToMarker:h.Y.bind(null,"enabled"),onEdit:h.G},(function(t,e,n){return Qt(Qt(Qt(Qt({},n),t),e),{},{enabled:t.enabled&&(t.isCesium||!n.showInMapPopup)&&!t.floatingIdentifyEnabled})})),Object(c.compose)(Object(l.connect)(Object(d.c)({highlight:Ot.k,currentFeature:Ot.f,currentFeatureCrs:Ot.e}),{toggleHighlightFeature:h.V,zoomToExtent:p.I}),E),Object(l.connect)(Object(d.a)(Wt.c,(function(t){return{mapType:t}})),{},(function(t,e,n){var r=t.mapType,i=n.showHighlightFeatureButton;return Qt(Qt({},Zt(n,["showHighlightFeatureButton"])),{},{showHighlightFeatureButton:"openlayers"===r&&i})})),re,ee,m.b,v)((function(t){var e,n,i=t.enabled,o=t.requests,s=void 0===o?[]:o,l=t.onClose,c=t.responses,d=void 0===c?[]:c,p=t.index,h=t.viewerOptions,f=void 0===h?{}:h,m=t.format,g=t.dock,y=void 0===g||g,v=t.position,b=t.size,w=t.fluid,E=t.validResponses,T=void 0===E?[]:E,I=t.viewer,N=void 0===I?function(){return null}:I,P=t.getToolButtons,A=void 0===P?function(){return[]}:P,M=t.getFeatureButtons,k=void 0===M?function(){return[]}:M,L=t.showFullscreen,F=t.reverseGeocodeData,G=void 0===F?{}:F,B=t.point,U=t.dockStyle,z=void 0===U?{}:U,V=t.draggable,H=t.setIndex,W=t.warning,K=t.clearWarning,Z=t.zIndex,$=t.showEmptyMessageGFI,Q=t.showEdit,J=t.isEditingAllowed,tt=t.onEdit,et=void 0===tt?function(){}:tt,nt=t.enabledCoordEditorButton,rt=t.showCoordinateEditor,it=t.onSubmitClickPoint,ot=t.onChangeFormat,st=t.formatCoord,at=t.loaded,ut=t.validator,lt=void 0===ut?function(){return null}:ut,ct=B&&B.latlng||null,dt=T[p],pt=(dt||{}).layer,ht=null;ct&&(ht=ct&&Math.round(1e17*ct.lng)/1e17,ht-=360*Math.floor(ht/360+.5));var ft=N,mt=A(X(X({},t),{},{lngCorrected:ht,validResponses:T,latlng:ct,showEdit:Q&&J&&!!dt&&Object(R.b)(dt),onEdit:et.bind(null,pt&&{id:pt.id,name:pt.name,url:Object(r.get)(pt,"search.url")})})),gt=s.length===(null===(e=lt(m))||void 0===e||null===(n=e.getNoValidResponses(d))||void 0===n?void 0:n.length)||0,yt=s.length-d.length,vt=G.error?a.a.createElement(O.default,{msgId:"identifyRevGeocodeError"}):G.display_name;return a.a.createElement("div",{id:"identify-container",className:i&&0!==s.length?"identify-active":""},a.a.createElement(S.a,{bsStyle:"primary",glyph:"map-marker",open:i&&0!==s.length,size:b,fluid:w,position:v,draggable:V,onClose:l,dock:y,style:z,showFullscreen:L,zIndex:Z,header:[a.a.createElement(u.Row,{className:"layer-select-row"},a.a.createElement("div",{className:"layer-col"},a.a.createElement("span",{className:"identify-icon glyphicon glyphicon-1-layer"}),a.a.createElement(q,{responses:d,index:p,loaded:at,setIndex:H,missingResponses:yt,emptyResponses:gt}),a.a.createElement(x.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:k(t),transitionProps:null}))),a.a.createElement(u.Row,{className:"coordinates-edit-row"},a.a.createElement("span",{className:"identify-icon glyphicon glyphicon-point"}),a.a.createElement("div",{className:"coordinate-editor"},a.a.createElement(D,{key:"coordinate-editor",formatCoord:st,enabledCoordEditorButton:nt,onSubmit:it,onChangeFormat:ot,edit:rt,coordinate:{lat:ct&&ct.lat,lon:ht}})),a.a.createElement(j,Y({latlng:ct,revGeocodeDisplayName:vt},t)),a.a.createElement(x.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:mt,transitionProps:null}))].filter((function(t){return t}))},a.a.createElement(ft,Y({index:p,setIndex:H,format:m,missingResponses:yt,responses:d,requests:s,showEmptyMessageGFI:$},f))),a.a.createElement(C.a,null,a.a.createElement(_.a,{fade:!0,title:a.a.createElement(O.default,{msgId:"warning"}),size:"xs",show:W,onClose:K,buttons:[{text:a.a.createElement(O.default,{msgId:"close"}),onClick:K,bsStyle:"primary"}]},a.a.createElement("div",{className:"ms-alert",style:{padding:15}},a.a.createElement("div",{className:"ms-alert-center text-center"},a.a.createElement(O.default,{msgId:"identifyNoQueryableLayers"}))))))})),oe=Object(l.connect)((function(t){return{infoFormat:Object(Ot.h)(t)}}),{onInfoFormatChange:h.C})($.a),se=Object(l.connect)((function(t){return{trigger:Object(jt.f)(t)?"hover":"click"}}),{onSetMapTrigger:h.S})(lt);e.a={IdentifyPlugin:o()(ie,{Toolbar:{name:"info",position:6,tooltip:"info.tooltip",icon:a.a.createElement(u.Glyphicon,{glyph:"map-marker"}),help:a.a.createElement(Q.a,{msgId:"helptexts.infoButton"}),action:h.W,selector:function(t){return{bsStyle:t.mapInfo&&t.mapInfo.enabled?"success":"primary",active:!(!t.mapInfo||!t.mapInfo.enabled)}}},Settings:{tool:[a.a.createElement(oe,{key:"featureinfoformat",label:a.a.createElement(Q.a,{msgId:"infoFormatLbl"})}),a.a.createElement(se,{key:"featureinfotrigger"})],position:3}}),reducers:{mapInfo:qt.a},epics:Ht}},"./MapStore2/web/client/plugins/Map.jsx":function(t,e,n){"use strict";var r=n("./node_modules/prop-types/index.js"),i=n.n(r),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=t,s=r,a=i,u=o;if(Object({NODE_ENV:"production"}).isTest){var l={},c=function(t){return l[t]=l[t]||{rootCount:0,iframesCreated:!1,timedOut:!1,fontLoaded:!1,requiredExtraTimeout:!1},l[t]};window.reporter=window.reporter||{modifyRootCount:function(t,e){c(t).rootCount+=e},iframesCreated:function(t){c(t).iframesCreated=!0},timedOut:function(t){c(t).timedOut=!0},fontLoaded:function(t){c(t).fontLoaded=!0},requiredExtraTimeout:function(t){c(t).requiredExtraTimeout=!0},getTests:function(){return l}}}n.timeoutAfter&&setTimeout((function(){s&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,-1),document.body.removeChild(s),s=0,n.onTimeout&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.timedOut(u),n.onTimeout()))}),n.timeoutAfter),a=function(){s&&s.firstChild.clientWidth===s.lastChild.clientWidth&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,-1),document.body.removeChild(s),s=0,Object({NODE_ENV:"production"}).isTest&&window.reporter.fontLoaded(u),e())},Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,1),Object({NODE_ENV:"production"}).isLegacy||a(document.body.appendChild(s=document.createElement("div")).innerHTML='
'+(n.sampleText||" ")+'
'+(n.sampleText||" ")+"
"),Object({NODE_ENV:"production"}).isLegacy&&a(document.body.appendChild(s=document.createElement("div")).innerHTML='
.'+(n.sampleText||" ")+'.
.'+(n.sampleText||" ")+".
"),s&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.iframesCreated(u),Object({NODE_ENV:"production"}).isLegacy||(s.firstChild.appendChild(o=document.createElement("iframe")).style.width="999%",o.contentWindow.onresize=a,s.lastChild.appendChild(o=document.createElement("iframe")).style.width="999%",o.contentWindow.onresize=a),Object({NODE_ENV:"production"}).isLegacy&&(s.firstChild.firstChild.firstChild.firstChild.appendChild(o=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",o.attachEvent?o.contentWindow.attachEvent("onresize",a):o.contentWindow.onresize=a,s.lastChild.firstChild.firstChild.firstChild.appendChild(o=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",o.attachEvent?o.contentWindow.attachEvent("onresize",a):o.contentWindow.onresize=a),Object({NODE_ENV:"production"}).isTest||(o=setTimeout(a)),Object({NODE_ENV:"production"}).isTest&&(o=setTimeout((function(){s&&(window.reporter.requiredExtraTimeout(u),a())}))))},l=n("./node_modules/object-assign/index.js"),c=n.n(l),d=n("./node_modules/react-spinkit/dist/index.js"),p=n.n(d),h=(n("./MapStore2/web/client/plugins/map/css/map.css"),n("./MapStore2/web/client/components/I18N/Message.jsx")),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),m=n("./MapStore2/web/client/actions/map.js"),g=n("./MapStore2/node_modules/lodash/lodash.js"),y=n("./node_modules/reselect/es/index.js"),v=n("./MapStore2/web/client/selectors/map.js"),b=n("./MapStore2/web/client/selectors/maptype.js"),w=n("./MapStore2/web/client/selectors/layers.js"),E=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function x(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(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.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&e?Object(E.reprojectGeoJson)(i,r,"EPSG:4326").features:[]})),j=Object(y.a)([C,function(t){return Object(g.get)(t,t&&t.highlight&&t.highlight.featuresPath||"highlight.emptyFeatures")||[]}],(function(t,e){return[].concat(x(e),x(t))})),T=n("./MapStore2/web/client/selectors/security.js"),I=n("./MapStore2/web/client/selectors/locale.js"),N=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),P=Object(y.c)({projectionDefs:v.m,map:v.k,mapType:b.c,layers:w.n,features:j,loadingError:function(t){return t.mapInitialConfig&&t.mapInitialConfig.loadingError&&t.mapInitialConfig.loadingError.data},securityToken:T.c,elevationEnabled:v.e,shouldLoadFont:b.b,isLocalizedLayerStylesEnabled:N.b,localizedLayerStylesName:N.d,currentLocaleLanguage:I.a}),A=n("./MapStore2/web/client/reducers/map.js"),M=n("./MapStore2/web/client/reducers/layers.js"),D=n("./MapStore2/web/client/actions/draw.js"),R={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case D.a:return c()({},t,{drawStatus:e.status,drawOwner:e.owner,drawMethod:e.method,options:e.options,features:e.features,style:e.style});case D.e:return c()({},t,{currentStyle:e.currentStyle});case D.d:return c()({},t,{tempFeatures:e.features});case D.b:return c()({},t,{tempFeatures:[]});default:return t}},L=n("./MapStore2/web/client/actions/box.js"),F={status:null};var G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case L.b:return c()({},t,{status:e.status});default:return t}},B=n("./MapStore2/web/client/actions/highlight.js");function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:H,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case B.b:return c()({},t,{featuresPath:e.featuresPath||"highlight.emptyFeatures"});case B.a:return z(z({},t),{},{status:e.status});case B.c:return z(z({},t),{},{highlighted:e.features.length,features:e.features,status:e.status||t.status});default:return t}},Y=n("./MapStore2/web/client/reducers/maptype.js"),W=n("./MapStore2/web/client/actions/additionallayers.js");function X(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(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.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case W.c:var n=Object(g.pickBy)({id:e.id,owner:e.owner,actionType:e.actionType,options:e.options},g.identity),r=Object(g.head)(t.filter((function(t){return t.id===n.id})));return r?t.map((function(t){return t.id===n.id?$($({},r),n):$({},t)})):[].concat(X(t),[n]);case W.d:var i=e.options,o=e.owner;return t.map((function(t,e){return t.owner===o?$($({},t),{},{options:Object(g.isObject)(i)&&i[t.id]||Object(g.isArray)(i)&&i[e]||{}}):$({},t)}));case W.a:var s=e.id,a=e.owner;return a?t.filter((function(t){return t.owner!==a})):t.filter((function(t){return t.id!==s}));case W.b:return[];default:return t}},tt=n("./node_modules/rxjs/Rx.js"),et=n.n(tt),nt=n("./MapStore2/web/client/actions/layers.js"),rt=n("./MapStore2/web/client/actions/config.js"),it=n("./MapStore2/web/client/actions/security.js"),ot=n("./MapStore2/web/client/selectors/maplayout.js"),st=n("./MapStore2/web/client/actions/controls.js"),at=n("./MapStore2/web/client/utils/LayersUtils.js"),ut=n("./MapStore2/web/client/utils/MapUtils.js"),lt=n("./MapStore2/web/client/actions/notifications.js"),ct=n("./MapStore2/web/client/actions/mapInfo.js");function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e=180&&i[3]>=90)n=1;else{var a=E.default.reprojectBbox(i,t.crs,e.projection||"EPSG:4326");n=ut.default.getZoomForExtent(a,e.size,0,21,null)}t.maxZoom&&n>t.maxZoom&&(n=t.maxZoom);var u={minx:o[0],miny:o[1],maxx:o[2],maxy:o[3]},l=pt(pt({},e.bbox),{},{bounds:u});return et.a.Observable.of(Object(m.x)(s,n,l,e.size,t.mapStateSource,e.projection,e.viewerOptions))}return et.a.Observable.empty()}(pt(pt({},t),{},{extent:e}),Object(v.k)(r()))}))}},mt=n("./MapStore2/web/client/actions/mapPopups.js"),gt=n("./MapStore2/web/client/actions/measurement.js"),yt=n("./MapStore2/web/client/selectors/measurement.js");function vt(t){return{type:"CHANGE_SELECTION_STATE",geomType:t.geomType,point:t.point,line:t.line,polygon:t.polygon}}var bt=n("./MapStore2/web/client/actions/locate.js"),wt=n("./node_modules/react-redux/es/index.js");function Et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(t,e)}(t,e)||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 xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){u(t,n,{timeoutAfter:e.timeoutAfter,onTimeout:r,sampleText:e.sampleText,generic:e.generic})}))}(e,{timeoutAfter:5e3}).catch((function(){t.props.onFontError({family:e})}))}))).then((function(){t.setState({canRender:!0})}))),this.updatePlugins(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.mapType===this.props.mapType&&t.actions===this.props.actions||this.updatePlugins(t)}},{key:"render",value:function(){if(this.props.map&&this.state.canRender&&this.state.plugins){var t=this.props.map.mapOptions,e=void 0===t?{}:t;return s.a.createElement(this.state.plugins.Map,Ct({id:"map"},this.props.options,{projectionDefs:this.props.projectionDefs},this.props.map,{mapOptions:c()({},e,this.getMapOptions()),zoomControl:this.props.zoomControl,onResolutionsChange:this.props.onResolutionsChange}),this.renderLayers(),this.renderSupportTools())}return this.props.loadingError?s.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapErrorMessage"},s.a.createElement(h.default,{msgId:"map.loadingerror"}),":",this.props.loadingError):s.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapLoadingMessage"},this.props.loadingSpinner?s.a.createElement(p.a,{spinnerName:"circle",overrideSpinnerClassName:"spinner"}):null,s.a.createElement(h.default,{msgId:this.props.mapLoadingMessage}))}}])&&Nt(e.prototype,n),r&&Nt(e,r),o}(s.a.Component);kt(Lt,"propTypes",{mapType:i.a.string,map:i.a.object,layers:i.a.array,additionalLayers:i.a.array,zoomControl:i.a.bool,mapLoadingMessage:i.a.string,loadingSpinner:i.a.bool,loadingError:i.a.string,tools:i.a.array,fonts:i.a.array,options:i.a.object,mapOptions:i.a.object,projectionDefs:i.a.array,toolsOptions:i.a.object,onFontError:i.a.func,onResolutionsChange:i.a.func,actions:i.a.object,features:i.a.array,securityToken:i.a.string,shouldLoadFont:i.a.bool,elevationEnabled:i.a.bool,isLocalizedLayerStylesEnabled:i.a.bool,localizedLayerStylesName:i.a.string,currentLocaleLanguage:i.a.string,items:i.a.array,onLoadingMapPlugins:i.a.func}),kt(Lt,"defaultProps",{mapType:"leaflet",actions:{},zoomControl:!1,mapLoadingMessage:"map.loading",loadingSpinner:!0,tools:["measurement","locate","scalebar","draw","highlight","popup","box"],options:{},mapOptions:{},fonts:["FontAwesome"],toolsOptions:{measurement:{},locate:{},scalebar:{leaflet:{position:"bottomright"}},overview:{overviewOpt:{position:"bottomright",collapsedWidth:25,collapsedHeight:25,zoomLevelOffset:-5,toggleDisplay:!0},layers:[{type:"osm"}]}},securityToken:"",additionalLayers:[],shouldLoadFont:!1,elevationEnabled:!1,onFontError:function(){},onResolutionsChange:function(){},items:[],onLoadingMapPlugins:function(){}});e.a=Object(a.d)("Map",{component:Object(a.c)(P,{onFontError:m.B,onResolutionsChange:m.G})(Lt),reducers:{map:A.a,layers:M.a,draw:k,box:G,highlight:q,maptype:Y.a,additionallayers:J},epics:ft})},"./MapStore2/web/client/plugins/MapFooter.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx"),u=n("./node_modules/recompose/es/Recompose.js");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t};return function(r){return r.withLatestFrom(t.startWith(e)).filter((function(t){var e=x(t,2)[1];return n(e)})).map((function(t){return x(t,1)[0]}))}},_=n("./MapStore2/web/client/observables/epics.js"),C=n("./MapStore2/web/client/api/MultiDim.js"),j=n("./node_modules/rxjs/Rx.js"),T=n.n(j);function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||P(t,e)||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 N(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||P(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.")}()}function P(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(E.n)(t()),r=Object(E.m)(t()),i=Object(E.p)(t()),o=Object(w.h)(t())||{},s=o.startPlaybackTime,a=o.endPlaybackTime,u=Object(w.j)(t())===c.j.PLAY||Object(w.j)(t())===c.j.PAUSE;return[i,r,"time",D({limit:20,time:s&&a&&u?k(s,a):void 0},e),Object(E.i)(n)(t())]},F=function(t,e){if(Object(E.m)(t())){var n=Object(v.e)(Object(E.k)(t()))(t()),r=Object(E.o)(t());return"multidim-extension"!==Object(h.get)(r,"source.type")&&n&&n.length>0?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fromValue,i=n.limit,o=void 0===i?20:i,s=Object(w.h)(e())||{},a=s.startPlaybackTime,u=s.endPlaybackTime;return T.a.Observable.of(t.filter((function(t){return!a||!u||p()(t).isSameOrAfter(a)&&p()(t).isSameOrBefore(u)})).filter((function(t){return!r||p()(t).isAfter(r)})).slice(0,o))}(n,t,e):C.b.apply(void 0,N(L(t,e))).map((function(t){return t.DomainValues.Domain.split(",")}))}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fromValue,r=e.limit,i=void 0===r?20:r,o=e.sort,s=void 0===o?"asc":o,a=Object(w.i)(t()),u=a.timeStep,l=a.stepUnit,c=p.a.duration(u,l),d=Object(w.h)(t())||{},h=d.startPlaybackTime,f=d.endPlaybackTime,m=void 0!==n?n:h||Object(v.a)(t())||(new Date).toString(),g=[];m!==n&&g.push(p()(m).toISOString());for(var y=0;y0&&void 0!==arguments[0]?arguments[0]:function(){return{}};return function(e){var n=Object(v.f)(t());return T.a.Observable.from(n.map((function(t){return Object(g.H)(t.id,{singleTile:!0})}))).concat(e).concat(T.a.Observable.from(n.map((function(t){return Object(g.H)(t.id,{singleTile:t.singleTile})}))))}},B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.start,r=e.end;return n&&r&&(p()(t).isBefore(n)||p()(t).isAfter(r))},U={retrieveFramesForPlayback:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.f).exhaustMap((function(){return F(r,{fromValue:Object(w.h)(r())&&Object(w.h)(r()).startPlaybackTime&&Object(w.h)(r()).endPlaybackTime?void 0:Object(v.a)(r())}).map((function(t){return Object(c.v)(t)})).let(Object(_.a)(Object(c.q)(!0),Object(c.q)(!1)),(function(){return T.a.Observable.of(Object(y.f)({title:"There was an error retrieving animation",message:"Please contact the administrator"}),Object(c.w)())})).let(Object(_.a)(Object(m.r)(!1,!0),Object(m.r)(!1,!1))).concat(t.ofType(c.h).filter((function(t){return t.frame%20==10})).switchMap((function(){return F(r,{fromValue:Object(w.e)(r())}).map(c.o).let(Object(_.a)(Object(c.q)(!0),Object(c.q)(!1)))}))).takeUntil(t.ofType(c.k,b.b)).concat(T.a.Observable.of(Object(m.r)(!1,!1))).let(G(r))}))},updateCurrentTimeFromAnimation:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.h).map((function(){return Object(w.b)(r())})).map((function(t){return t?Object(f.e)(t):Object(c.w)()}))},timeDimensionPlayback:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.i).exhaustMap((function(){return T.a.Observable.interval(1e3*Object(w.c)(r())).startWith(0).let(S(t.ofType(c.f,c.e).map((function(t){return t.type===c.f})))).map((function(){return Object(c.u)(Object(w.a)(r())+1)})).merge(t.ofType(c.a).map((function(t){var e=t.direction;return Object(c.u)(Math.max(0,Object(w.a)(r())+e))}))).concat(T.a.Observable.of(Object(c.w)())).takeUntil(t.ofType(c.k,b.b))}))},playbackToggleGuideLayerToFixedStep:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.l).exhaustMap((function(){return Object(E.m)(r())?T.a.Observable.of(Object(m.n)(void 0)):T.a.Observable.of(Object(m.n)(Object(h.get)(Object(E.q)(r()),"[0].id")))}))},playbackMoveStep:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.a).filter((function(){return Object(w.j)(r())!==c.j.PLAY})).switchMap((function(t){var e=t.direction,n=void 0===e?1:e,i=Object(w.g)(r())||{},o=Object(v.a)(r());return o&&i.forTime===o?T.a.Observable.of(n>0?i.next:i.previous):F(r,{limit:1,sort:n>0?"asc":"desc",fromValue:Object(v.a)(r())}).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=I(t,1),n=e[0];return n}))})).filter((function(t){return!!t})).map((function(t){return Object(f.e)(t)}))},playbackCacheNextPreviousTimes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(f.b,f.a,m.f,c.k,m.i).filter((function(){return Object(w.j)(r())!==c.j.PLAY&&Object(w.j)(r())!==c.j.PAUSE})).filter((function(){return Object(E.n)(r())})).filter((function(t){return!!t})).switchMap((function(t){var e=t.time||Object(v.a)(r());return T.a.Observable.forkJoin(C.b.apply(void 0,N(L(r,{sort:"asc",limit:1,fromValue:e}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return I(t,1)[0]})).catch((function(t){return t&&T.a.Observable.of(null)})),C.b.apply(void 0,N(L(r,{sort:"desc",limit:1,fromValue:e}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return I(t,1)[0]})).catch((function(t){return t&&T.a.Observable.of(null)}))).map((function(t){var n=I(t,2),r=n[0],i=n[1];return Object(c.y)({forTime:e,next:r,previous:i})}))}))},playbackFollowCursor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(f.a).filter((function(t){return(t.type===f.a||Object(w.j)(r())===c.j.PLAY)&&B(Object(v.a)(r()),Object(E.j)(r()))})).filter((function(){return Object(h.get)(Object(w.i)(r()),"following")})).switchMap((function(){return T.a.Observable.of(Object(m.l)((t=Object(v.a)(r()),e=Object(E.j)(r()),n=e.start,i=e.end,o=p()(i).diff(p()(n)),{start:t,end:p()(t).add(o).toISOString()})));var t,e,n,i,o}))},playbackStopWhenDeleteLayer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(g.s).filter((function(){return!Object(E.n)(r())&&"PLAY"===Object(w.j)(r())})).switchMap((function(){return T.a.Observable.of(Object(c.w)())}))}},z=n("./MapStore2/web/client/reducers/dimension.js"),V=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/utils/ImmutableUtils.js");function q(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(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.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:function(){};try{if(!Object(h.isNaN)(parseInt(t,10))){var r=parseInt(t,10);return e(r<1?1:r)}return n()}catch(t){return n(t)}},st=function(t){var e=t.startPlaybackTime,n=t.endPlaybackTime,r=p()(e).diff(n);return{startPlaybackTime:r>=0?n:e,endPlaybackTime:r>=0?e:n}};function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lt=Object(u.compose)(Object(a.connect)(Object(l.a)(w.i,E.n,w.h,(function(t,e,n){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return ot(t,(function(t){a("frameDuration",t)}))}}),s.a.createElement(Z.InputGroup.Addon,null,"s"))),s.a.createElement(Z.ControlLabel,null,s.a.createElement(X.default,{msgId:"playback.settings.step.label"})," ",s.a.createElement($.a,{text:s.a.createElement(X.default,{msgId:"playback.settings.step.tooltip"})})),s.a.createElement(Z.FormGroup,{controlId:"formPlaybackStep"},s.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},s.a.createElement(et.a,{disabled:!h,componentClass:"input",type:"number",style:{input:{maxWidth:120}},value:r,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ot(t,(function(t){a("timeStep",t)}))}}),s.a.createElement(Z.FormControl,{disabled:!h,componentClass:"select",value:i,onChange:function(t){var e=t.target;return a("stepUnit",(void 0===e?{}:e).value)}},s.a.createElement(X.default,{msgId:"playback.settings.step.year",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"years"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.week",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"weeks"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.day",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"days"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.hour",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"hour"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.minute",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"minutes"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.second",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"seconds"},t)}))))),s.a.createElement(tt.a,{onSwitch:function(t){return d(t)},expanded:m.startPlaybackTime&&m.endPlaybackTime,title:s.a.createElement(X.default,{msgId:"playback.settings.range.title"}),buttons:v},s.a.createElement(Z.FormGroup,{controlId:"formPlaybackMode",style:{margin:10}},s.a.createElement(Q.a,{tooltipId:"playback.settings.range.animationStart",glyph:"play",date:m.startPlaybackTime,onUpdate:function(t){return y(st(rt(rt({},m),{},{startPlaybackTime:t})))},style:w,showButtons:!0}),s.a.createElement(Q.a,{glyph:"stop",tooltipId:"playback.settings.range.animationEnd",date:m.endPlaybackTime,onUpdate:function(t){return y(st(rt(rt({},m),{},{endPlaybackTime:t})))},style:w,showButtons:!0}))),s.a.createElement(Z.FormGroup,{controlId:"formPlaybackFollowingMode"},s.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},s.a.createElement(Z.ControlLabel,null,s.a.createElement(X.default,{msgId:"playback.settings.mode.following"})," ",s.a.createElement($.a,{text:s.a.createElement(X.default,{msgId:"playback.settings.mode.followingDescription"})})),s.a.createElement("span",null,s.a.createElement(J.a,{checked:e,onChange:function(t){return a("following",t)}})))))})),ct=Object(u.compose)(Object(u.withState)("showSettings","onShowSettings",!1),Object(u.withState)("collapsed","setCollapsed",!0),Object(u.withProps)((function(t){var e=t.setCollapsed;return{buttons:[{glyph:"minus",onClick:function(){return e(!0)}}]}}))),dt=Object(l.a)(w.j,E.n,w.g,w.d,(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return e?t===c.j.PLAY||t===c.j.PAUSE?r:{hasNext:!!n.next,hasPrevious:!!n.previous}:{hasNext:!0,hasPrevious:!0}})),pt=Object(u.compose)(Object(a.connect)(dt,{stepMove:c.n}),Object(u.withHandlers)({forward:function(t){var e=t.stepMove,n=void 0===e?function(){}:e;return function(){return n(1)}},backward:function(t){var e=t.stepMove,n=void 0===e?function(){}:e;return function(){return n(-1)}}})),ht=Object(u.compose)(ct,pt)((function(t){var e=t.status,n=t.statusMap,r=t.play,i=void 0===r?function(){}:r,o=t.forward,a=void 0===o?function(){}:o,u=t.backward,l=void 0===u?function(){}:u,c=t.pause,d=void 0===c?function(){}:c,p=t.stop,h=void 0===p?function(){}:p,f=t.hasPrevious,m=t.hasNext,g=t.showSettings,y=t.onShowSettings,v=void 0===y?function(){}:y,b=t.settingsStyle,w=void 0===b?{}:b;return s.a.createElement("div",{style:{display:"flex"}},e!==n.PLAY&&e!==n.PAUSE&&g&&s.a.createElement(lt,{style:w}),s.a.createElement(K.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"step-backward",key:"back",onClick:l,disabled:!f,tooltip:s.a.createElement(X.default,{msgId:"playback.backwardStep"})},{glyph:e===n.PLAY?"pause":"play",key:"play",active:e===n.PLAY||e===n.PAUSE,disabled:!m,bsStyle:e===n.PLAY||e===n.PAUSE?"success":"primary",onClick:function(){return e===n.PLAY?d():i()},tooltipId:m&&(e===n.PLAY?"playback.pause":e===n.PAUSE?"playback.paused":"playback.play")},{glyph:"stop",key:"stop",disabled:e!==n.PLAY&&e!==n.PAUSE,onClick:h,tooltip:!(e!==n.PLAY&&e!==n.PAUSE)&&s.a.createElement(X.default,{msgId:"playback.stop"})},{glyph:"step-forward",key:"forward",onClick:a,disabled:!m,tooltip:m&&s.a.createElement(X.default,{msgId:"playback.forwardStep"})},{glyph:"cog",key:"settings",bsStyle:e!==n.PLAY&&e!==n.PAUSE&&g?"success":"primary",active:(e!==n.PLAY||e!==n.PAUSE)&&!!g,disabled:e===n.PLAY||e===n.PAUSE,onClick:function(){return e!==n.PLAY&&v(!g)},tooltip:!(e===n.PLAY||e===n.PAUSE)&&s.a.createElement(X.default,{msgId:"playback.settings.tooltip"})}]}))}));function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{status:c.j.STOP,currentFrame:-1,settings:W},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c.f:return Object(H.e)("status",c.j.PLAY,t);case c.e:return Object(H.e)("status",c.j.PAUSE,t);case c.k:return Object(H.e)("status",c.j.STOP,Object(H.e)("currentFrame",-1,t));case c.i:return Object(H.e)("frames",e.frames,Object(H.e)("currentFrame",-1,t));case c.d:return Object(H.e)("framesLoading",e.loading,t);case c.b:return Object(H.e)("frames",[].concat(q(t.frames||[]),q(e.frames)),t);case c.h:return Object(H.e)("currentFrame",e.frame,t);case c.g:return Object(H.e)("playbackRange",e.range,t);case c.c:return Object(H.e)("settings[".concat(e.name,"]"),e.value,t);case c.m:return Object(H.e)("metadata",{next:e.next,previous:e.previous,forTime:e.forTime},t);case V.a:return Object(H.e)("metadata",void 0,Object(H.e)("framesLoading",void 0,Object(H.e)("playbackRange",void 0,Object(H.e)("frames",void 0,Object(H.e)("currentFrame",-1,Object(H.e)("status","STOP",Object(H.e)("settings",W,t)))))));default:return t}},dimension:z.default}}},"./MapStore2/web/client/plugins/Print.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/print/print.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/react/index.js"),l=n.n(u),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-redux/es/index.js"),p=n("./node_modules/reselect/es/index.js"),h=n("./MapStore2/web/client/actions/controls.js"),f=n("./MapStore2/web/client/actions/print.js"),m=n("./MapStore2/web/client/components/I18N/Message.jsx"),g=n("./MapStore2/web/client/components/misc/Dialog.jsx");function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v={antiAliasing:!0,iconSize:24,legendDpi:96,fontFamily:"Verdana",fontSize:8,bold:!1,italic:!1,resolution:96,name:"",description:""},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split("_")[0]};var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{spec:v,capabilities:null,map:null,isLoading:!1,pdfUrl:null},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case h.d:return"print"===e.control?o()({},t,{pdfUrl:null,isLoading:!1,error:null}):t;case f.f:var n=Object(r.get)(e,"capabilities.layouts",[{name:"A4"}]),i=n.filter((function(e){return b(e.name)===t.spec.sheet})).length?t.spec.sheet:b(n[0].name);return o()({},t,{capabilities:e.capabilities,spec:o()({},t.spec||{},{sheet:i,resolution:e.capabilities&&e.capabilities.dpis&&e.capabilities.dpis.length&&e.capabilities.dpis[0].value})});case f.j:return o()({},t,{spec:o()({},t.spec,y({},e.name,e.value))});case f.c:var s=e.layers.map((function(t){return t.title?o()({},t,{title:Object(r.isObject)(t.title)&&e.currentLocale&&t.title[e.currentLocale]||Object(r.isObject)(t.title)&&t.title.default||t.title}):t}));return o()({},t,{map:{center:e.center,zoom:e.zoom,scaleZoom:e.scaleZoom,scale:e.scale,layers:s,projection:e.projection},error:null});case f.b:var a=e.zoom-t.map.scaleZoom;return o()({},t,{map:o()({},t.map,{scaleZoom:e.zoom,zoom:t.map.zoom+a,scale:e.scale})});case f.a:return o()({},t,{map:o()({},t.map,{size:e.size})});case f.i:return o()({},t,{isLoading:!0,pdfUrl:null,error:null});case f.g:return o()({},t,{isLoading:!1,pdfUrl:e.url,error:null});case f.h:case f.e:return o()({},t,{isLoading:!1,pdfUrl:null,error:e.error});case f.d:return o()({},t,{isLoading:!1,pdfUrl:null,error:null});default:return t}},E=n("./MapStore2/web/client/selectors/layers.js"),x=n("./MapStore2/web/client/selectors/locale.js"),O=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),S=n("./MapStore2/web/client/selectors/map.js"),_=n("./MapStore2/web/client/selectors/maptype.js"),C=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),j=n("./MapStore2/web/client/utils/LocaleUtils.js"),T=n("./MapStore2/web/client/utils/MapUtils.js");function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0})),z(B(t),"filterLayers",(function(e){var n=t.props.layers.filter((function(e){return e.visibility&&t.isAllowed(e)}));if(t.isBackgroundIgnored()&&t.props.defaultBackground&&e.defaultBackground){var r=t.props.layers.filter((function(e){return e.type===t.props.defaultBackground}))[0];return[o()({},r,{visibility:!0})].concat(A(n))}return n})),z(B(t),"configurePrintMap",(function(e,n){var r=e||t.props.map,i=n||t.props.printSpec;if(r&&r.bbox&&t.props.capabilities){var o=Object(C.reprojectBbox)([r.bbox.bounds.minx,r.bbox.bounds.miny,r.bbox.bounds.maxx,r.bbox.bounds.maxy],r.bbox.crs,r.projection),s=t.getMapSize();if(t.props.useFixedScales){var a=t.props.getZoomForExtent(o,s,t.props.minZoom,t.props.maxZoom),u=$(t.props.capabilities),l=Q(r.zoom,u);t.props.configurePrintMap(r.center,a,l,u[l],t.filterLayers(i),r.projection,t.props.currentLocale)}else t.props.configurePrintMap(r.center,r.zoom,r.zoom,t.props.scales[r.zoom],t.filterLayers(i),r.projection,t.props.currentLocale)}})),z(B(t),"print",(function(){var e=t.props.printSpec;t.props.isLocalizedLayerStylesEnabled&&(e=P(P({},e),{},{env:t.props.localizedLayerStylesEnv,language:t.props.currentLocaleLanguage})),t.props.setPage(0),t.props.onBeforePrint(),t.props.preloadData(e).then((function(e){var n=t.props.getPrintSpecification(e);t.props.onPrint(t.props.capabilities.createURL,P(P({},n),t.props.overrideOptions))})).catch((function(e){t.props.printError("Error pre-loading data:"+e.message)}))})),t}return e=p,(n=[{key:"UNSAFE_componentWillMount",value:function(){if(this.props.usePreview&&!window.PDFJS){var t=document.createElement("script");t.type="text/javascript",t.src="https://unpkg.com/pdfjs-dist@1.4.79/build/pdf.combined.js",document.head.appendChild(t)}this.configurePrintMap()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.open&&!this.props.open,n=this.props.open&&this.props.syncMapPreview&&Object(T.mapUpdated)(this.props.map,t.map),r=t.printSpec.defaultBackground!==this.props.printSpec.defaultBackground;(e||n||r)&&this.configurePrintMap(t.map,t.printSpec)}},{key:"render",value:function(){return(this.props.capabilities||this.props.error)&&this.props.open?this.props.withContainer?this.props.withPanelAsContainer?l.a.createElement(c.Panel,{className:"mapstore-print-panel",header:l.a.createElement("span",null,l.a.createElement("span",{className:"print-panel-title"},l.a.createElement(m.default,{msgId:"print.paneltitle"})),l.a.createElement("span",{className:"print-panel-close panel-close",onClick:this.props.toggleControl})),style:this.props.style},this.renderBody()):l.a.createElement(g.a,{id:"mapstore-print-panel",style:P({left:"17%",top:"50px",zIndex:1990},this.props.style)},l.a.createElement("span",{role:"header"},l.a.createElement("span",{className:"print-panel-title"},l.a.createElement(m.default,{msgId:"print.paneltitle"})),l.a.createElement("button",{onClick:this.props.toggleControl,className:"print-panel-close close"},this.props.closeGlyph?l.a.createElement(c.Glyphicon,{glyph:this.props.closeGlyph}):l.a.createElement("span",null,"×"))),this.renderBody()):this.renderBody():null}}])&&k(e.prototype,n),a&&k(e,a),p}(l.a.Component);z(J,"propTypes",{map:a.a.object,layers:a.a.array,capabilities:a.a.object,printSpec:a.a.object,printSpecTemplate:a.a.object,withContainer:a.a.bool,withPanelAsContainer:a.a.bool,open:a.a.bool,pdfUrl:a.a.string,title:a.a.string,style:a.a.object,mapWidth:a.a.number,mapType:a.a.string,alternatives:a.a.array,toggleControl:a.a.func,onBeforePrint:a.a.func,setPage:a.a.func,onPrint:a.a.func,printError:a.a.func,configurePrintMap:a.a.func,preloadData:a.a.func,getPrintSpecification:a.a.func,getLayoutName:a.a.func,error:a.a.string,getZoomForExtent:a.a.func,minZoom:a.a.number,maxZoom:a.a.number,usePreview:a.a.bool,mapPreviewOptions:a.a.object,syncMapPreview:a.a.bool,useFixedScales:a.a.bool,scales:a.a.array,ignoreLayers:a.a.array,defaultBackground:a.a.string,closeGlyph:a.a.string,submitConfig:a.a.object,previewOptions:a.a.object,currentLocale:a.a.string,currentLocaleLanguage:a.a.string,overrideOptions:a.a.object,isLocalizedLayerStylesEnabled:a.a.bool,localizedLayerStylesEnv:a.a.object}),z(J,"contextTypes",{messages:a.a.object}),z(J,"defaultProps",{withContainer:!0,withPanelAsContainer:!1,title:"print.paneltitle",toggleControl:function(){},onBeforePrint:function(){},setPage:function(){},onPrint:function(){},configurePrintMap:function(){},printSpecTemplate:{},preloadData:X,getPrintSpecification:K,getLayoutName:Z,getZoomForExtent:T.defaultGetZoomForExtent,pdfUrl:null,mapWidth:370,mapType:"leaflet",minZoom:1,maxZoom:23,alternatives:[{name:"legend",component:b,regex:/legend/},{name:"2pages",component:w,regex:/2_pages/},{name:"landscape",component:I,regex:/landscape/}],usePreview:!0,mapPreviewOptions:{enableScalebox:!1,enableRefresh:!1},syncMapPreview:!0,useFixedScales:!1,scales:[],ignoreLayers:["google","bing"],defaultBackground:"osm",closeGlyph:"1-close",submitConfig:{buttonConfig:{bsSize:"small",bsStyle:"primary"},glyph:""},previewOptions:{buttonStyle:"primary"},style:{},currentLocale:"en-US",overrideOptions:{}});var tt=Object(p.a)([function(t){return t.controls.print&&t.controls.print.enabled||t.controls.toolbar&&"print"===t.controls.toolbar.active},function(t){return t.print&&t.print.capabilities},function(t){return t.print&&t.print.spec&&o()({},t.print.spec,t.print.map||{})},function(t){return t.print&&t.print.pdfUrl},function(t){return t.print&&t.print.error},S.k,E.p,S.o,function(t){return t.browser&&(!t.browser.ie||t.browser.ie11)},x.b,x.a,_.c,O.b,O.c],(function(t,e,n,r,i,o,s,a,u,l,c,d,p,h){return{open:t,capabilities:e,printSpec:n,pdfUrl:r,error:i,map:o,layers:s.filter((function(t){return!t.loadingError})),scales:a,usePreview:u,currentLocale:l,currentLocaleLanguage:c,mapType:d,isLocalizedLayerStylesEnabled:p,localizedLayerStylesEnv:h}})),et=Object(d.connect)(tt,{toggleControl:h.h.bind(null,"print",null),onPrint:f.q,printError:f.p,onBeforePrint:f.r,setPage:h.g.bind(null,"print","currentPage"),configurePrintMap:f.m})(J);t(et)}.bind(null,n)).catch(n.oe)},enabler:function(t){return t.print&&t.print.enabled||t.toolbar&&"print"===t.toolbar.active}},{disablePluginIf:"{state('mapType') === 'cesium' || !state('printEnabled')}",Toolbar:{name:"print",position:7,help:l.a.createElement(m.default,{msgId:"helptexts.print"}),tooltip:"printbutton",icon:l.a.createElement(c.Glyphicon,{glyph:"print"}),exclusive:!0,panel:!0,priority:1},BurgerMenu:{name:"print",position:2,text:l.a.createElement(m.default,{msgId:"printbutton"}),icon:l.a.createElement(c.Glyphicon,{glyph:"print"}),action:h.h.bind(null,"print",null),priority:2,doNotHide:!0}}),reducers:{print:w}}},"./MapStore2/web/client/plugins/ScaleBox.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/web/client/utils/PluginsUtils.js"),s=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),u=n("./MapStore2/web/client/actions/map.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/actions/help.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),h=n("./MapStore2/web/client/components/help/HelpBadge.jsx");n("./MapStore2/web/client/components/help/help.css");function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n0},D=Object(p.withHandlers)({clickHandler:function(t){var e=t.selectedLayer,n=t.offsetEnabled,i=t.status,o=t.setCurrentTime,s=void 0===o?function(){}:o,a=t.selectGroup,u=void 0===a?function(){}:a;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.time,a=t.group,l=t.what,c=t.event;if("PLAY"!==i)switch(l){case"group-label":a&&"PLAY"!==i&&u(a);break;default:var d=c&&c.target&&c.target.closest(".vis-custom-time"),p=d&&d.getAttribute("class"),h=p&&Object(r.trim)(p.replace("vis-custom-time",""));o&&!n&&"startPlaybackTime"!==h&&"endPlaybackTime"!==h&&s(o.toISOString(),e)}}},timechangedHandler:function(t){var e=t.currentTime,n=t.setOffset,r=void 0===n?function(){}:n,i=t.setCurrentTime,o=void 0===i?function(){}:i,s=t.currentTimeRange,a=void 0===s?{}:s,u=t.playbackRange,l=t.setPlaybackRange,c=void 0===l?function(){}:l,d=t.selectedLayer;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.time,i=t.id;if("startPlaybackTime"!==i&&"endPlaybackTime"!==i)"currentTime"===i&&(a.end?M(n,a.end)?o(n.toISOString(),null):(o(a.end),r(n.toISOString())):o(n.toISOString(),d)),"offsetTime"===i&&(M(e,n)?r(n.toISOString()):(o(n.toISOString()),r(e)));else{var s=P(P({},u),{},A({},i,n.toISOString())),l=Object(I.e)(s.startPlaybackTime,s.endPlaybackTime),p=l.start,h=l.end;M(p,h)&&c({startPlaybackTime:p,endPlaybackTime:h})}}}});function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;i(t),e(t)}})}})),Object(p.withPropsOnChange)(["rangeItems","currentTime","offsetEnabled","selectedLayer","currentTimeRange","readOnly"],(function(t){var e=t.currentTimeRange,n=t.rangeItems,r=void 0===n?[]:n,i=t.readOnly;return{rangeItems:t.offsetEnabled&&void 0!==e.start&&void 0!==e.end?[].concat(F(r),[k(k({id:"current-range",editable:{updateTime:!i,updateGroup:!1,remove:!1}},Object(I.e)(e.start,e.end)),{},{type:"background",className:"ms-current-range"})]).filter((function(t){return t})):r}}))),Object(p.withPropsOnChange)(["currentTime","playbackRange","playbackEnabled","offsetEnabled","currentTimeRange"],(function(t){var e=t.currentTime,n=t.playbackRange,r=t.playbackEnabled,i=t.offsetEnabled,o=t.currentTimeRange;return{customTimes:[e?{currentTime:e}:{},r&&n&&n.startPlaybackTime&&n.endPlaybackTime?n:{},i&&o?{offsetTime:o.end}:{}].reduce((function(t,e){return e?k(k({},t),e):k({},t)}),{})}}))),U=n("./node_modules/prop-types/index.js"),z=n.n(U),V=n("./node_modules/vis/dist/vis-timeline-graph2d.min.js"),H=n.n(V);n("./node_modules/vis/dist/vis-timeline-graph2d.min.css");function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(t,e)}(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.")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?e.$el.initialFitDone?e.setAllItems(t):(e.setAllItems(t),e.$el.emit("changed")):e.$el.initialRangeChangeDone&&e.setAllItems(t)})),e.state={customTimes:[]},e}return e=a,(n=[{key:"componentDidMount",value:function(){var t=this,e=this.refs.container;this.$el=new H.a.Timeline(e,void 0,this.props.options),nt.forEach((function(e){return t.$el.on(e,t.props["".concat(e,"Handler")])})),this.init()}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.items,r=e.groups,i=e.options,o=e.selection,s=e.customTimes,a=e.readOnly,u=e.rangeItems,l=n!==t.items,c=r!==t.groups,d=i!==t.options,p=s!==t.customTimes,h=o!==t.selection,f=a!==t.readOnly,m=u!==t.rangeItems;return l||c||d||p||h||f||m}},{key:"componentDidUpdate",value:function(t){this.init(t)}},{key:"componentWillUnmount",value:function(){this.$el.destroy()}},{key:"render",value:function(){return l.a.createElement("div",{ref:"container",className:this.props.readOnly?"read-only-timeline":"",onMouseOut:this.props.onMouseOutHandler})}},{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,i=n.items,s=n.rangeItems,a=n.groups,u=n.options,l=n.selection,c=n.selectionOptions,d=void 0===c?{}:c,p=n.customTimes,h=n.animate,f=void 0===h||h,m=n.currentTime,g=u;if(f&&(g=Object(r.omit)(u,"start","end"),u.start&&u.end?this.$el.setWindow(u.start,u.end,{animation:f}):this.$el.setWindow(o()().subtract(1,"month"),o()().add(1,"month"),{animation:f})),this.$el.setOptions(g),a.length>0){var y=new H.a.DataSet;y.add(a),this.$el.setGroups(y)}if(i&&i!==e.items)this.setItems(i);else if(s!==e.rangeItems){var v=this.$el&&this.$el.itemsData&&this.$el.itemsData.getDataSet();if(v){var b=Object(r.intersectionBy)(s||[],e.rangeItems||[],"id"),w=Object(r.differenceBy)(s||[],e.rangeItems||[],"id"),E=Object(r.differenceBy)(e.rangeItems||[],s||[],"id");b.map((function(t){return v.update(t)})),w.map((function(t){return v.add(t)})),E.map((function(t){var e=t.id;return v.remove(e)}))}else this.setItems(i)}this.$el.setSelection(l,d),m&&this.$el.setCurrentTime(m);var x=Object(r.keys)(this.state.customTimes),O=Object(r.keys)(p),S=Object(r.difference)(O,x),_=Object(r.difference)(x,O),C=Object(r.intersection)(x,O);Object(r.each)(_,(function(e){return t.$el.removeCustomTime(e)})),Object(r.each)(S,(function(e){var n=p[e];t.$el.addCustomTime(n,e)})),Object(r.each)(C,(function(e){var n=p[e];t.$el.setCustomTime(n,e)})),this.setState({customTimes:p}),(this.props.readOnly!==e.readOnly||this.props.readOnly&&S.length>0)&&Object(r.each)(this.$el.customTimes,(function(n){t.props.readOnly?n.hammer.off("panstart panmove panend"):!0===e.readOnly&&(n.hammer.on("panstart",n._onDragStart.bind(n)),n.hammer.on("panmove",n._onDrag.bind(n)),n.hammer.on("panend",n._onDragEnd.bind(n)))}))}}])&&X(e.prototype,n),i&&X(e,i),a}(l.a.Component);tt(st,"propTypes",Object(r.assign)(ot,rt)),tt(st,"defaultProps",Object(r.assign)({items:[],groups:[],options:{},selection:[],customTimes:{}},it));var at=st;function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.title,r=t.name;return e+n+r})).length>0}),(function(t){var e=t.layers,n=void 0===e?[]:e,i=t.loading,o=void 0===i?{}:i,s=t.selectedLayer;return{groups:n.map((function(t){return{id:t.id,className:(o[t.id]?"loading":"")+(t.id&&t.id===s?" selected":""),content:'
'+(o[t.id]?'
':'
'.concat(t.id&&t.id===s?'':"","
"))+'
'.concat(Object(r.isString)(t.title)?t.title:t.name,"
")+"
"}}))}}))),ht=Object(p.compose)(Object(d.connect)(Object(h.a)(x.a,_.a,(function(t,e){return{currentTime:t,currentTimeRange:e}})),{setCurrentTime:g.o,moveCurrentRange:f.e,setOffset:f.f})),ft=Object(p.compose)(Object(d.connect)(Object(h.c)({playbackRange:S.h,status:S.j}),{setPlaybackRange:m.t})),mt=Object(p.compose)(Object(d.connect)(Object(h.a)(_.n,(function(t){return{selectedLayer:t}})),{selectGroup:g.n})),gt=Object(p.compose)(Object(d.connect)((function(){return{}}),{rangechangedHandler:g.l})),yt=Object(p.compose)(ht,ft,mt,D,gt,pt,Object(p.defaultProps)({key:"timeline",options:{maxHeight:"90%",verticalScroll:!0,stack:!1,showMajorLabels:!0,showCurrentTime:!1,zoomMin:10,zoomable:!0,type:"background",margin:{item:0,axis:0},format:{minorLabels:{minute:"h:mma",hour:"ha"}},itemsAlwaysDraggable:!0,moment:function(t){return o()(t).utc()}}}),Object(p.withPropsOnChange)(["viewRange","options"],(function(t){var e=t.viewRange,n=void 0===e?{}:e;return{options:lt(lt({},t.options),n)}})),Object(p.withPropsOnChange)(["status"],(function(t){return{readOnly:"PLAY"===t.status}})),B,Object(j.a)((function(t){var e=t.loading;return e&&e.timeline}),(function(){return l.a.createElement("div",{style:{margin:"auto",fontWeight:"bold"}},l.a.createElement(T.a,{style:{display:"inline-block",verticalAlign:"middle"}}),l.a.createElement(y.default,{msgId:"loading"}))}),{white:!0}))(at),vt=n("./node_modules/rxjs/Rx.js"),bt=n.n(vt),wt=n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"),Et=n("./MapStore2/web/client/components/misc/Button.jsx");function xt(){return(xt=Object.assign||function(t){for(var e=1;e0},kt=Object(p.compose)(Object(d.connect)(Object(h.a)(_.f,_.q,x.a,_.a,x.g,S.h,S.j,_.j,(function(t,e,n,r,i,o,s,a){return{visible:t,layers:e,currentTime:n,currentTimeRange:r,offsetEnabled:i,playbackRange:o,status:s,viewRange:a}})),{setCurrentTime:g.o,onOffsetEnabled:g.k,setOffset:f.f,setPlaybackRange:m.t,moveRangeTo:g.l}),Object(p.branch)((function(t){var e=t.visible,n=void 0===e||e,r=t.layers,i=void 0===r?[]:r;return!n||0===Object.keys(i).length}),p.renderNothing),Object(p.withState)("options","setOptions",{collapsed:!0}),Object(d.connect)(Object(h.a)(_.e,(function(t){return{mapSync:t}})),{toggleMapSync:g.q}),Object(p.compose)(Object(p.compose)(Object(p.withStateHandlers)((function(){return{}}),{onResize:function(){return function(t){return{containerWidth:t.width}}}}),Object(b.a)({querySelector:".ms2",closest:!0,debounceTime:100})),Object(p.defaultProps)({style:{marginBottom:35,marginLeft:100,marginRight:80}}),Object(d.connect)(Object(h.a)((function(t){return Object(O.c)(t,{right:!0,bottom:!0,left:!0})}),(function(t){return{mapLayoutStyle:t}}))),Object(p.withProps)((function(t){var e=t.containerWidth,n=t.style,r=t.mapLayoutStyle,i=n||{},o=i.marginLeft,s=i.marginRight,a=r.left,u=void 0===a?0:a,l=r.right,c=void 0===l?0:l;c=Mt(c)&&Dt(c)*e||c,u=Mt(u)&&Dt(u)*e||u;if(e){var d=e-c-u-o-s;return{hide:d<410,compactToolbar:d<880,style:Nt(Nt(Nt({},n),r),{},{minWidth:410})}}return{style:Nt(Nt(Nt({},n),r),{},{minWidth:410})}})),Object(p.branch)((function(t){return t.hide}),p.renderNothing),Object(p.setDisplayName)("TimelinePlugin")))((function(t){var e=t.items,n=t.options,i=t.setOptions,s=t.mapSync,a=t.toggleMapSync,u=void 0===a?function(){}:a,d=t.currentTime,p=t.setCurrentTime,h=t.offsetEnabled,f=t.onOffsetEnabled,m=t.currentTimeRange,g=t.setOffset,v=t.style,b=t.status,x=t.viewRange,O=t.moveRangeTo,S=t.compactToolbar,_=n.hideLayersName,C=n.collapsed,j=Object(r.head)(e&&e.filter((function(t){return"playback"===t.name}))),T=j&&j.plugin,I=function(t,e,n,r){var i=o()(n.end).diff(n.start)/2;if("time-current"===e&&n&&n.start.toString()!==o()(t).add(-1*i).toString()&&n.end.toString()!==o()(t).add(i).toString()&&O({start:o()(t).add(-1*i),end:o()(t).add(i)}),"range-start"===e||"range-end"===e){var s=o()(r.end).diff(r.start),a=o()(r.start).add(s/2);O(s/2<=i?{start:o()(a).add(-1*i),end:o()(a).add(i)}:{start:o()(a).add(-1*s*5/2),end:o()(a).add(5*s/2)})}};return l.a.createElement("div",{style:Nt(Nt({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},v),{},{right:C?"auto":v.right||0}),className:"timeline-plugin".concat(_?" hide-layers-name":"").concat(h?" with-time-offset":"")},h&&l.a.createElement(E.a,{clickable:!C,glyph:"range-start",onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x,m)},tooltip:l.a.createElement(y.default,{msgId:"timeline.rangeStart"}),showButtons:!0,date:d||m&&m.start,onUpdate:function(t){return(m&&Rt(t,m.end)||!m)&&"PLAY"!==b&&p(t)},className:"shadow-soft",style:{position:"absolute",top:-5,left:2,transform:"translateY(-100%)"}}),l.a.createElement("div",{className:"timeline-plugin-toolbar".concat(S?" ms-collapsed":"")},h&&m?l.a.createElement(E.a,{clickable:!C,glyph:"range-end",onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x,m)},tooltip:l.a.createElement(y.default,{msgId:"timeline.rangeEnd"}),date:m.end,showButtons:!0,onUpdate:function(t){return"PLAY"!==b&&Rt(d,t)&&g(t)}}):l.a.createElement(E.a,{clickable:!C,glyph:"time-current",showButtons:!0,onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x)},tooltip:l.a.createElement(y.default,{msgId:"timeline.currentTime"}),date:d||m&&m.start,onUpdate:function(t){return(m&&Rt(t,m.end)||!m)&&"PLAY"!==b&&p(t)}}),l.a.createElement("div",{className:"timeline-plugin-btn-group"},l.a.createElement(w.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"list",tooltip:l.a.createElement(y.default,{msgId:_?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:_?"primary":"success",visible:!C,active:!_,onClick:function(){return i(Nt(Nt({},n),{},{hideLayersName:!_}))}},{glyph:"time-offset",bsStyle:h?"success":"primary",active:h,disabled:"PLAY"===b,tooltip:l.a.createElement(y.default,{msgId:h?"timeline.disableRange":"timeline.enableRange"}),onClick:function(){"PLAY"!==b&&f(!h)}},{glyph:"map-synch",tooltip:l.a.createElement(y.default,{msgId:s?"timeline.mapSyncOn":"timeline.mapSyncOff"}),bsStyle:s?"success":"primary",active:s,onClick:function(){return u(!s)}}]}),T&&l.a.createElement(T,Tt({},j,{settingsStyle:{right:C||S?40:"unset"}}))),l.a.createElement(At,{onClick:function(){return i(Nt(Nt({},n),{},{collapsed:!C}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:l.a.createElement(y.default,{msgId:C?"timeline.expand":"timeline.collapse"})},l.a.createElement(c.Glyphicon,{glyph:C?"chevron-up":"chevron-down"}))),!C&&l.a.createElement(yt,{offsetEnabled:h,playbackEnabled:!0,hideLayersName:_}))}));e.a={TimelinePlugin:a()(kt,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:l.a.createElement(jt,null),position:0}}),reducers:{dimension:n("./MapStore2/web/client/reducers/dimension.js").default,timeline:n("./MapStore2/web/client/reducers/timeline.js").default},epics:n("./MapStore2/web/client/epics/timeline.js").default}},"./MapStore2/web/client/plugins/Toolbar.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./node_modules/react-redux/es/index.js"),u=(n("./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css"),n("./node_modules/react-transition-group/index.js")),l=n("./MapStore2/web/client/selectors/featuregrid.js"),c=n("./MapStore2/web/client/selectors/maplayout.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./node_modules/object-assign/index.js"),h=n.n(p),f=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(){return(y=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"toolbar";return Object(a.connect)(P(t))(N)},reducers:{controls:n("./MapStore2/web/client/reducers/controls.js").default}}},"./MapStore2/web/client/plugins/ZoomAll.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/zoomall/zoomall.css");var r=n("./node_modules/object-assign/index.js"),i=n.n(r),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),u=n("./node_modules/react-redux/es/index.js"),l=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/actions/map.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),h=n("./MapStore2/web/client/components/misc/Button.jsx"),f=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),m=n("./MapStore2/web/client/utils/MapUtils.js"),g=n("./MapStore2/web/client/utils/ConfigUtils.js");function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n0&&l.a.createElement(a,w({},e.innerProps,{mapType:t.props.mapType,tools:u,panels:e.childPanels}))),e)})),N(T(t),"renderTools",(function(){return t.props.tools.map(t.renderTool)})),N(T(t),"renderPanels",(function(){return t.props.panels.filter((function(t){return!t.panel.loadPlugin})).map((function(e){var n=e.panel,r=l.a.createElement(n,w({key:e.name,mapType:t.props.mapType},e.cfg,e.props||{},{items:e.items||[]})),i=e.title?l.a.createElement(g.default,{msgId:e.title}):null;return e.wrap?l.a.createElement(c.Collapse,{key:"mapToolBar-item-collapse-"+e.name,in:t.props.activePanel===e.name},l.a.createElement(c.Panel,{header:i,style:t.props.panelStyle,className:t.props.panelClassName},r)):r}))})),N(T(t),"mergeHandlers",(function(t,e){return Object.keys(e).reduce((function(n,r){return o()(n,N({},r,t[r]?Object(p.d)(t[r],e[r]):e[r]))}),t)})),N(T(t),"addTooltip",(function(e,n){if(n.tooltip){var r=l.a.createElement(c.Tooltip,{id:t.props.id+"-"+n.name+"-tooltip"},l.a.createElement(g.default,{msgId:n.tooltip}));return l.a.createElement(y.a,{key:t.props.id+"-"+n.name+"-overlay",rootClose:!0,placement:"left",overlay:r},e)}return e})),t}return e=a,(n=[{key:"render",value:function(){var t=this.props.container;return l.a.createElement("span",{id:this.props.id,style:this.props.containerWrapperStyle},l.a.createElement(t,{id:this.props.id+"-container",style:this.props.style,className:this.props.className},this.renderTools()),this.renderPanels())}}])&&S(e.prototype,n),i&&S(e,i),a}(l.a.Component);N(A,"propTypes",{id:a.a.string.isRequired,container:a.a.func,containerWrapperStyle:a.a.object,tool:a.a.func,className:a.a.string,style:a.a.object,tools:a.a.array,panels:a.a.array,mapType:a.a.string,toolStyle:a.a.string,activeStyle:a.a.string,toolSize:a.a.string,stateSelector:a.a.string.isRequired,eventSelector:a.a.string,panelStyle:a.a.object,panelClassName:a.a.string,activePanel:a.a.string,toolCfg:a.a.object}),N(A,"contextTypes",{messages:a.a.object,router:a.a.object}),N(A,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:v.a,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),e.a=A},"./MapStore2/web/client/plugins/identify/identify.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/locale/Message.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),i=n("./MapStore2/web/client/components/I18N/Message.jsx");e.a=Object(r.connect)((function(t){return{locale:t.locale&&t.locale.currentLocale,messages:t.locale&&t.locale.messages||[]}}))(i.default)},"./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$":function(t,e,n){var r={"./cesium/index":["./MapStore2/web/client/plugins/map/cesium/index.js",24],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",2,7,12,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",2,3,5,7,17]};function i(t){if(!n.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],i=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id="./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$",t.exports=i},"./MapStore2/web/client/plugins/map/css/map.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/maploading/maploading.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/omnibar/omnibar.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/print/print.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/scalebox/scalebox.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/zoom/zoom.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/zoomall/zoomall.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/reducers/dimension.js":function(t,e,n){"use strict";n.r(e);var r=n("./MapStore2/web/client/actions/dimension.js"),i=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./node_modules/moment/moment.js"),u=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js");e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.d:return Object(s.e)("data[".concat(e.dimension,"][").concat(e.layerId,"]"),e.data,t);case r.b:return Object(s.e)("currentTime",e.time,t);case r.c:return Object(s.e)("offsetTime",e.offsetTime,t);case r.a:if(t.offsetTime&&t.currentTime){var n=u()(t.offsetTime).diff(t.currentTime),a=u()(e.time).add(n);return Object(s.e)("currentTime",e.time,Object(s.e)("offsetTime",a.toISOString(),t))}return Object(s.e)("currentTime",e.time,t);case i.s:var c=Object(l.mapValues)(t.data,(function(t){return Object(l.pickBy)(t,(function(t,n){return n!==e.node}))}));return Object(s.e)("data",c,t);case o.a:return Object(s.e)("data",void 0,Object(s.e)("currentTime",void 0,Object(s.e)("offsetTime",void 0,t)));default:return t}}},"./MapStore2/web/client/reducers/mapInfo.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/mapInfo.js"),i=n("./MapStore2/web/client/actions/config.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=n("./node_modules/object-assign/index.js"),a=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/MapInfoUtils.js");function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(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.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:y,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.p:return a()({},t,{warning:"NO_QUERYABLE_LAYERS"});case r.e:return a()({},t,{warning:null});case r.c:return a()({},t,{enabled:e.enabled});case r.x:return a()({},t,{enabled:!t.enabled});case r.d:return a()({},t,{index:e.index});case r.w:return a()({},t,{highlight:e.enabled});case r.o:var s=e.reqId,u=e.request,l=t.requests||[];return a()({},t,{requests:[].concat(d(l),[{request:u,reqId:s}])});case r.q:t.index,t.loaded;var p=c(t,["index","loaded"]);return f(f({},p),{},{queryableLayers:[],responses:[],requests:[]});case r.n:return g(t,e,"data");case r.i:return g(t,e,"exceptions");case r.h:return g(t,e,"error");case r.j:return a()({},t,{clickPoint:e.point,clickLayer:e.layer||null,itemId:e.itemId||null,overrideParams:e.overrideParams||null,filterNameList:e.filterNameList||null});case r.b:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{infoFormat:e.infoFormat})});case r.t:return a()({},t,{showMarker:!0});case r.l:return a()({},t,{showMarker:!1});case r.u:return a()({},t,{showModalReverse:!0,reverseGeocodeData:e.reverseGeocodeData});case r.m:return a()({},t,{showModalReverse:!1,reverseGeocodeData:void 0});case o.a:return a()({},t,{showMarker:!1,responses:[],requests:[]});case r.k:var h,m=n("./node_modules/turf-buffer/index.js"),v=n("./node_modules/turf-intersect/index.js"),b={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[e.request.lng,e.request.lat]}},w=e.metadata&&e.metadata.units;switch(w){case"m":w="meters";break;case"deg":w="degrees";break;case"mi":w="miles";break;default:w="meters"}var E,x=e.metadata&&e.metadata.resolution||1,O=m(b,(e.metadata.buffer||1)*x,w),S=(e.layer.features||[]).filter((function(t){try{return"FeatureCollection"===t.type&&t.features&&t.features.length?t.features.reduce((function(t,n){var r=n.properties.useGeodesicLines&&n.properties.geometryGeodesic?f(f({},n),{},{geometry:n.properties.geometryGeodesic}):n;return t||v(O,x&&e.metadata.buffer&&w?m(r,1,"meters"):r)}),!1):v(O,x&&e.metadata.buffer&&w?m(t,1,"meters"):t)}catch(t){return!1}})),_=t.responses||[],C="hover"===(null==t||null===(h=t.configuration)||void 0===h?void 0:h.trigger)||!1,j={response:{crs:null,features:S,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:e.request,layerMetadata:e.metadata,format:"JSON"};C?(_=[].concat(d(_),[j]),E={reqId:0}):(_[t.requests.length]=j,E={reqId:t.requests.length});var T=[].concat(d(t.requests),[{}]);return g(a()({},t,{requests:T,queryableLayers:e.queryableLayers,responses:d(_)}),E,"vector");case r.z:return a()({},t,{centerToMarker:e.status});case r.v:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{showEmptyMessageGFI:!t.configuration.showEmptyMessageGFI})});case i.d:return f(f({},t),{},{configuration:e.config.mapInfoConfiguration||t.configuration||{}});case r.a:return f(f({},t),{},{formatCoord:e.format});case r.y:return f(f({},t),{},{showCoordinateEditor:!e.showCoordinateEditor});case r.r:return f(f({},t),{},{currentEditFeatureQuery:e.query});case r.s:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{trigger:e.trigger})});default:return t}}},"./MapStore2/web/client/reducers/maplayout.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/maplayout.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout:{},boundingMapRect:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.a:var n=e.layout,i=n.boundingMapRect,s=void 0===i?{}:i,u=l(n,["boundingMapRect"]);return o()({},t,{layout:o()({},u,u),boundingMapRect:a({},s)});default:return t}}},"./MapStore2/web/client/reducers/maps.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/maps.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js");function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{enabled:!1,showMapDetails:!0,errors:[],searchFilter:{},searchText:"",results:""},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.j:return o()({},t,{searchText:e.text});case r.u:return o()({},t,{searchFilter:c(c({},t.searchFilter),{},d({},e.filter,e.filterData))});case r.x:return o()({},t,{searchFilter:e.searchFilter});case r.w:return o()({},t,{contexts:e.contexts});case r.c:return o()({},t,{loading:e.value,loadFlags:c(c({},t.loadFlags||{}),"loading"!==e.name?d({},e.name,e.value):{})});case r.p:return o()({},t,{metadata:o()({},t.metadata,d({},e.prop,e.value))});case r.g:return o()({},t,{loading:!0,start:e.params&&e.params.start,limit:e.params&&e.params.limit,searchText:e.searchText});case r.f:if(e.maps&&e.maps.results&&Array.isArray(e.maps.results))return o()({},t,e.maps,{loading:!1,start:e.params&&e.params.start,limit:e.params&&e.params.limit,searchText:e.searchText});var n=""!==e.maps.results?[e.maps.results]:[];return o()({},t,e.maps,{results:n,loading:!1});case r.h:return{loadingError:e.error};case r.o:for(var i=""===t.results||Object(s.isNil)(t.results)?[]:a(t.results),u=0;u0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"MAP_TYPE_CHANGED":return{mapType:e.mapType};default:return t}}},"./MapStore2/web/client/reducers/timeline.js":function(t,e,n){"use strict";n.r(e);var r=n("./MapStore2/web/client/actions/layers.js"),i=n("./MapStore2/web/client/actions/controls.js"),o=n("./MapStore2/web/client/actions/timeline.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:{autoSelect:!0,collapsed:!1}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.h:return Object(s.e)("settings.collapsed",e.collapsed,t);case o.i:return Object(s.e)("settings.mapSync",e.mapSync,t);case o.d:return Object(s.e)("range",{start:e.start,end:e.end},t);case o.e:return Object(s.e)("rangeData[".concat(e.layerId,"]"),{range:e.range,histogram:e.histogram,domain:e.domain},t);case o.c:return e.layerId?Object(s.e)("loading[".concat(e.layerId,"]"),e.loading,t):Object(s.e)("loading.timeline",e.loading,t);case o.f:return Object(s.e)("selectedLayer",e.layerId,t);case r.s:var n=t;return Object(a.assign)({},t,{rangeData:Object(a.has)(n.rangeData,e.node)?Object(a.pickBy)(n.rangeData,(function(t,n){return n!==e.node})):n.rangeData,loading:Object(a.has)(n.rangeData,e.node)?Object(a.pickBy)(n.loading,(function(t,n){return n!==e.node})):n.loading,selectedLayer:t.selectedLayer===e.node?void 0:t.selectedLayer});case i.a:return Object(a.assign)({},t,{range:void 0,rangeData:void 0,selectedLayer:void 0,loading:void 0,MouseEvent:void 0});default:return t}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return h}));var r=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/layers.js"),o=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),a=function(t){return t.backgroundSelector&&t.backgroundSelector.source},u=function(t){return t.backgroundSelector&&t.backgroundSelector.modalParams},l=function(t){return t.backgroundSelector&&t.backgroundSelector.backgrounds||[]},c=function(t){return t.backgroundSelector&&t.backgroundSelector.lastRemovedId},d=function(t){return t.backgroundSelector&&t.backgroundSelector.confirmDeleteBackgroundModal},p=function(t){return t.backgroundSelector&&t.backgroundSelector.allowDeletion},h=Object(r.a)(i.p,o.c,(function(t,e){return t.filter((function(t){return t&&"background"===t.group})).map((function(t){return Object(s.invalidateUnsupportedLayer)(t,e)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(t,e,n){"use strict";n.d(e,"v",(function(){return l})),n.d(e,"w",(function(){return c})),n.d(e,"x",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"u",(function(){return m})),n.d(e,"j",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"q",(function(){return v})),n.d(e,"t",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"o",(function(){return E})),n.d(e,"g",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"s",(function(){return S})),n.d(e,"i",(function(){return _})),n.d(e,"f",(function(){return C})),n.d(e,"p",(function(){return j})),n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return I})),n.d(e,"l",(function(){return N})),n.d(e,"d",(function(){return P})),n.d(e,"c",(function(){return A}));var r=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/map.js");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e0},j=function(t){return E(t)&&E(t).length>0},T=function(t){return t&&t.featuregrid&&t.featuregrid.filters},I=function(t){return g(t,y(t))},N=function(t){return t&&t.featuregrid&&t.featuregrid.open},P=function(t,e){return Object(r.get)(T(t),e)},A=function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.title||t.name}(g(t,y(t)));return Object(r.isObject)(e)?e[Object(s.b)(t)]||e.default||"":e},M=function(t){return(Object(p.a)(t)||[]).map((function(e){var n=function(t,e){return Object(r.get)(t,"featuregrid.attributes[".concat(e.name||e.attribute,"]"))}(t,e);return n?f(f({},e),n):e}))},D=function(t){return t&&t.featuregrid&&t.featuregrid.mode},R=function(t){return(b(t)||[]).length},k=function(t){return Object(u.p)(w(t))},L=function(t){return function(t){var e=x(t);if(e){var n=Object(u.p)(w(t));return!(!n[e.id]||null===n[e.id].geometry)||(!n[e.id]||null!==n[e.id].geometry)&&((!e._new||!Object(r.head)(E(t))||null!==Object(r.head)(E(t)).geometry)&&(!(!e._new||!Object(r.head)(E(t))||null===Object(r.head)(E(t)).geometry)||null!==e.geometry))}return!1}(t)},F=function(t){return Object(r.get)(t,"featuregrid.showAgain",!1)},G=function(t){if(Object(r.get)(t,"featuregrid.showTimeSync",!1)){var e=y(t);return Object(l.d)({id:e},"time")(t)}return null},B=function(t){return Object(r.get)(t,"featuregrid.timeSync",!1)},U=function(t){return Object(r.get)(t,"featuregrid.showPopoverSync",!0)},z=function(t){return t&&t.featuregrid&&t.featuregrid.saving},V=function(t){return t&&t.featuregrid&&t.featuregrid.saved},H=function(t){return t&&t.featuregrid&&t.featuregrid.drawing},q=function(t){return Object(r.get)(t,"featuregrid.multiselect",!1)},Y=function(t){return Object(a.isSimpleGeomType)(O(t))},W=function(t){return t.featuregrid&&t.featuregrid.dockSize},X=function(t){var e=g(t,y(t));return e&&e.name||""},K=function(t){var e=function(t){return Object(r.get)(g(t,y(t)),"params")}(t);return{viewParams:e&&(e.VIEWPARAMS||e.viewParams||e.viewparams),cqlFilter:e&&(e.CQL_FILTER||e.cqlFilter||e.cql_filter)}},Z=function(t){var e=Object(c.d)(t),n=function(t){return Object(r.get)(t,"featuregrid.editingAllowedRoles",["ADMIN"])}(t)||["ADMIN"],i=function(t){return t&&t.featuregrid&&t.featuregrid.canEdit}(t);return(-1!==n.indexOf(e)||i)&&!Object(d.a)(t)},$=function(t){return Object(r.get)(t,"featuregrid.pagination")}},"./MapStore2/web/client/selectors/localizedLayerStyles.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/locale.js"),s=function(t){return Object(r.has)(t,"localConfig.localizedLayerStyles")},a=function(t){var e=Object(r.get)(t,"localConfig.plugins.dashboard",[]),n=Object(r.find)(e,(function(t){return"DashboardEditor"===t.name}))||{};return Object(r.get)(n,"cfg.catalog.localizedLayerStyles",!1)},u=function(t){return Object(r.get)(t,"localConfig.localizedLayerStyles.name","mapstore_language")},l=Object(i.a)(s,u,o.a,(function(t,e,n){var r=[];return t&&r.push({name:e,value:n}),r}))},"./MapStore2/web/client/selectors/maplayout.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"d",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/selectors/map.js"),o=n("./MapStore2/web/client/utils/MapUtils.js");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=l(t);return n&&Object.keys(n).filter((function(t){return e[t]})).reduce((function(t,e){return a(a({},t),{},u({},e,n[e]))}),{})||{}},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=l(t),i=!!Object(r.head)(e.filter((function(t){return n[t.key]})).map((function(t){return"not"===t.type?n[t.key]!==t.value&&n[t.key]:n[t.key]===t.value})));return i},h=function(t){return p(t,[{key:"right",value:658}])},f=function(t){return p(t,[{key:"bottom",value:30,type:"not"}])},m=function(t){var e=Object(i.k)(t),n=c(t);return n&&e&&e.size&&{left:Object(o.parseLayoutValue)(n.left,e.size.width),bottom:Object(o.parseLayoutValue)(n.bottom,e.size.height),right:Object(o.parseLayoutValue)(n.right,e.size.width),top:Object(o.parseLayoutValue)(n.top,e.size.height)}}},"./MapStore2/web/client/selectors/measurement.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return m}));var r=n("./MapStore2/web/client/selectors/maptype.js"),i=n("./MapStore2/web/client/selectors/controls.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./MapStore2/web/client/utils/MeasureUtils.js");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return{hasNext:t[e+1],hasPrevious:t[e-1]}}))},"./MapStore2/web/client/selectors/query.js":function(t,e,n){"use strict";n.d(e,"i",(function(){return l})),n.d(e,"n",(function(){return c})),n.d(e,"o",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"l",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return E})),n.d(e,"h",(function(){return x})),n.d(e,"g",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e-1)||e&&e.collectGeometries&&e.operation)}},"./MapStore2/web/client/selectors/queryform.js":function(t,e,n){"use strict";n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"a",(function(){return v})),n.d(e,"j",(function(){return b})),n.d(e,"d",(function(){return w})),n.d(e,"i",(function(){return E})),n.d(e,"g",(function(){return x})),n.d(e,"f",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/locale.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var p=function(t){return Object(r.get)(t,"queryform.crossLayerFilter")},h=function(t){return(Object(o.p)(t)||[]).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.group;return"wms"===e&&"background"!==n})).map((function(e){var n=e.title;return l(l({},d(e,["title"])),{},{title:Object(a.e)(Object(s.b)(t),n)})}))},f=function(t){return Object(r.get)(t,"queryform.spatialField.geometry")},m=function(t){return Object(r.get)(t,"queryform.spatialField")},g=Object(i.a)((function(t){return Object(r.get)(t,"queryform.attributePanelExpanded")}),(function(t){return Object(r.get)(t,"queryform.spatialPanelExpanded")}),(function(t){return Object(r.get)(t,"queryform.crossLayerExpanded")}),(function(t,e,n){return{attributePanelExpanded:t,spatialPanelExpanded:e,crossLayerExpanded:n}})),y=function(t){return Object(r.get)(t,"layerFilter.persisted")},v=function(t){return Object(r.get)(t,"layerFilter.applied")},b=function(t){return Object(r.get)(t,"queryform.spatialField.method")},w=function(t){return Object(r.get)(t,"queryform.maxFeaturesWPS")},E=function(t){return f(t)&&f(t).type||"Polygon"},x=function(t){return f(t)&&f(t).projection||"EPSG =4326"},O=function(t){return f(t)&&f(t).coordinates||[]}},"./MapStore2/web/client/selectors/timeline.js":function(t,e,n){"use strict";n.d(e,"j",(function(){return v})),n.d(e,"d",(function(){return b})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return E})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return C})),n.d(e,"n",(function(){return j})),n.d(e,"k",(function(){return T})),n.d(e,"m",(function(){return I})),n.d(e,"o",(function(){return N})),n.d(e,"p",(function(){return P})),n.d(e,"a",(function(){return A})),n.d(e,"l",(function(){return M})),n.d(e,"q",(function(){return D})),n.d(e,"b",(function(){return R})),n.d(e,"f",(function(){return k})),n.d(e,"i",(function(){return L}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),l=n("./MapStore2/web/client/selectors/map.js"),c=n("./MapStore2/web/client/selectors/layers.js");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n50?[{start:r,end:i,duration:o,type:"range",content:"".concat(u," items")}]:Object(a.l)({start:l,end:c,duration:o}).map((function(t){return{start:new Date(t),end:new Date(t),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(i||r),type:i?"range":"point"}]}(n,e)))}),[]).filter((function(t){return t&&t.start}))},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(t.domain&&t.domain.values)return x(t.domain.values,e);if(t.histogram&&t.histogram.domain&&t.histogram.values){var n=t.histogram.domain.split("/"),r=m(n,3),i=r[0],o=r[1],s=r[2],u=Math.max.apply(Math,f(t.histogram.values)),l=Object(a.k)({start:i,end:o,duration:s});return t.histogram.values.map((function(t,e){return p(p({},l[e]),{},{type:"range",itemType:"histogram",count:t,className:"histogram-item",content:'
').concat(t,"
")})}))}return[]},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t&&t.values||t&&t.domain&&!Object(a.i)(t.domain)?x(t.values||t.domain.split(","),e):n&&n.histogram?O(n,e):[]},_=Object(o.a)(u.i,v,(function(t){return Object(r.get)(t,"timeline.rangeData")}),(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(t).map((function(r){return S(t[r],e,n[r]).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(p({content:" "},t),{},{group:r})}))})).reduce((function(t,e){return[].concat(f(t),f(e))}),[]))})),C=function(t){return Object(r.get)(t,"timeline.loading")},j=function(t){return Object(r.get)(t,"timeline.selectedLayer")},T=function(t){return Object(c.g)(t,j(t))},I=function(t){return T(t)&&T(t).name},N=function(t){return T(t)&&T(t).dimensions&&Object(r.head)(T(t).dimensions.filter((function(t){return"time"===t.name})))},P=function(t){return Object(r.get)(N(t),"source.url")},A=Object(i.a)(u.a,u.h,(function(t,e){return{start:t,end:e}})),M=function(t){return Object(u.c)(t,j(t))},D=u.f,R=Object(i.a)(D,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.length>0})),k=function(t){return!b(t)&&R(t)},L=function(t){return function(e){var n=(Object(l.k)(e)||{}).bbox;if(!n)return{};var i=Object(u.b)(t,"time")(e),o=Object(r.get)(i,"source.version"),a=Object.keys(n.bounds).reduce((function(t,e){return p(p({},t),{},h({},e,parseFloat(n.bounds[e])))}),{});if(!a||!E(e))return{};if("1.1"!==o){var c=Object(u.b)(t,"space")(e),d=Object(r.get)(c,"domain.CRS");if(!d||!a||!E(e))return{};var f=m(Object(s.reprojectBbox)(a,Object(l.n)(e),d),4),g=f[0],y=f[1],v=f[2],b=f[3];return vt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return Object(r.findIndex)(t,(function(t){return t<=n&&n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return e[d(t,n,r)]||u({},p)},f=function(t,e){return e[t]},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.isArray)(t)?t.reduce((function(t,e){return u(u({},t),{},l({},e.id,u(u({},t[e.id]),e.updated)))}),{}):{}},g=function(t,e){var n=Object.keys(e).filter((function(t){return"geometry"!==t})).reduce((function(t,n){return u(u({},t),{},l({},n,e[n]))}),{}),r=Object.keys(e).filter((function(t){return"geometry"===t})).reduce((function(t,n){return u(u({},t),{},l({},n,e[n]))}),{});return u(u(u({},t),r),{},{properties:u(u({},t&&t.properties||{}),n)})},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=Object(r.findIndex)(t,e);return i>=0?t.map((function(t,e){return e===i?n:t})):[].concat(o(t),[n])},v=function(t){return(Object(i.getFeatureTypeProperties)(t)||[]).filter((function(t){return!Object(i.isGeometryType)(t)}))},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){return n<=e&&e<=r?0:Math.abs(e-t)})).reduce((function(t,e,n,r){return e>r[t]&&n||t}),0)},w=function(t,e){return e.filter((function(e,n){return n!==t}))},E=function(t,e,n){return t.filter((function(t,r){return r=e+n}))},x=function(t,e,n,r){for(var i,o,s=t;s<=e&&void 0===i;s++)-1===d(s*r,n,r)&&(i=s);for(var a=e;a>=t&&void 0===o;a--)-1===d(a*r,n,r)&&(o=a);return[i,o].filter((function(t){return void 0!==t}))},O=function(t,e,n){var r=t.startPage,i=t.endPage,o=x(r,i,e,n),s=o[1]-o[0]+1;return{startIndex:o[0]*n,maxFeatures:s*n}},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.editable,i=void 0!==r&&r,o=n.sortable,s=void 0===o||o,a=n.resizable,u=void 0===a||a,l=n.filterable,c=void 0===l||l,d=n.defaultSize,p=void 0===d?200:d,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=h.getEditor,m=void 0===f?function(){}:f,g=h.getFilterRenderer,y=void 0===g?function(){}:g,b=h.getFormatter,w=void 0===b?function(){}:b;return v(t).filter((function(t){return!(e[t.name]&&e[t.name].hide)})).map((function(t){return{sortable:s,key:t.name,width:e[t.name]&&e[t.name].width||p||void 0,name:e[t.name]&&e[t.name].label||t.name,resizable:u,editable:i,filterable:c,editor:m(t),formatter:w(t),filterRenderer:y(t,t.name)}}))},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=Object(i.findGeometryProperty)(n);return t.map((function(t){return u(u({},t),{},{events:t.events&&Object.keys(t.events).reduce((function(i,o){return u(u({},i),{},l({},o,(function(i,s){return t.events[o](e(s.rowIdx),s,n,r)})))}),{})},"geometry"===t.key&&s?{filterRenderer:o(u(u({},s),{},{localType:"geometry"}),s.name),filterable:!0,geometryPropName:s.name}:{})}))},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Object.keys(t).reduce((function(o,s){return u(u({},o),{},l({},s,(function(){for(var o=arguments.length,a=new Array(o),u=0;u0?r._new:!t||t&&!!n[r.id]}},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g(t,e[t.id]||{})},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.attribute,n=t.operator,i=t.value,o=t.type,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},s),{},{groupFields:[{id:1,logic:"AND",index:0}],filterFields:"geometry"===o?s.filterFields:Object(r.isNil)(i)?(s.filterFields||[]).filter((function(t){return t.attribute!==e})):y(s.filterFields||[],{attribute:e},{attribute:e,rowId:Date.now(),type:o,groupId:1,operator:n,value:i}),spatialField:"geometry"===o?i:s.spatialField,spatialFieldOperator:Object(r.isArray)(i)?"OR":""})},M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.startIndex,n=void 0===e?0:e,r=t.maxFeatures,i=void 0===r?1:r,o=t.totalFeatures,s=void 0===o?0:o,a=t.resultSize;return{page:Math.ceil(n/i),resultSize:a,size:i,total:s,maxPages:Math.ceil(s/i)-1}},D=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.endPage,i=e.startPage,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o.pages,a=o.features,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=u.size,c=u.maxStoredPages,d=u.startIndex,p=x(i,n,s,l),h=p[1]-p[0]+1,f=Object(r.get)(t,"features",[]);f.length!==h*l&&(f=f.concat(Object(r.fill)(Array(h*l-f.length>0?h*l-f.length:f.length),!1)));var m=s,g=a,y=m.length+h-Math.max(c,n-i+1);if(y>0)for(var v=i*l,O=n*l,S=v+(O-v)/2,_=0;_0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.measureTrueBearing,r=void 0!==n&&n,o=e.fractionDigits,s=void 0===o?0:o,a="";if(r){var u="";t>=0&&t<10?u="00":t>10&&t<100&&(u="0");var l=s>0?t.toFixed(s):Math.floor(t);a=u+l+"° T"}else t>=0&&t<90?a="N "+i(t)+"E":t>90&&t<=180?a="S "+i(180-t)+"E":t>180&&t<270?a="S "+i(t-180)+"W":t>=270&&t<=360&&(a="N "+i(360-t)+"W");return a}var s={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s[e]&&s[e][n]?t*s[e][n]:t}var u=function(t){return!Object(r.isNaN)(parseFloat(t[0]))&&!Object(r.isNaN)(parseFloat(t[1]))},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.coordinates,n=t.type,i=e;if("LineString"===n){if((i=e.filter(u)).length<2)return[]}else if("Polygon"===n){if((i=Object(r.head)(e).filter(u)).length<3)return[[]];i=[i.concat([Object(r.head)(i)])]}return i},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.coordinates,n=t.type;if(!n||!e||e&&Object(r.isArray)(e)&&0===e.length)return!1;var i=l({coordinates:e,type:n});return(i="Polygon"===n?Object(r.head)(i):i).length>0}},"./MapStore2/web/client/utils/ReselectUtils.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=function(t,e){return t===e},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return function(e,n){return Array.isArray(e)&&Array.isArray(n)?e===n||e.length===n.length&&e.reduce((function(e,r,i){return e&&t(r,n[i])}),!0):Object(r.isObject)(e)&&Object(r.isObject)(n)?e===n||Object.keys(e).length===Object.keys(n).length&&Object.keys(e).reduce((function(r,i){return r&&t(e[i],n[i])}),!0):e===n}},a=Object(i.b)(i.d,(function(t,e){return Object(r.isEqualWith)(t,e,s())})),u=function(t){return Object(i.b)(i.d,(function(e,n){return Object(r.isEqualWith)(e,n,s(t))}))}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(t,e){return new Promise((function(n,r){var i=e||{},o=i.width,s=void 0===o?64:o,a=i.height,u=void 0===a?64:a,l=i.contain,c=i.type,d=void 0===c?"image/jpeg":c,p=i.quality,h=void 0===p?.5:p,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var t=f.naturalWidth/f.naturalHeight,e=s,r=u,i=s/u,o=document.createElement("canvas");o.setAttribute("width",s),o.setAttribute("height",u),o.style.width=s+"px",o.style.height=u+"px";var a=o.getContext("2d"),c=!l&&ti?[e,e/t]:[r*t,r];a.save(),a.translate(e/2,r/2),a.drawImage(f,-c[0]/2,-c[1]/2,c[0],c[1]),a.restore();var p=o.toDataURL(d,h);n(p)},f.onerror=function(t){r(t)},f.src=t}))},i=function(t,e){return new Promise((function(n,r){var i=e||{},o=i.type,s=void 0===o?"image/jpeg":o,a=i.quality,u=void 0===a?.5:a,l=document.createElement("video");l.crossOrigin="anonymous";var c=document.createElement("source"),d=document.createElement("canvas");l.addEventListener("loadedmetadata",(function(){var t=l.videoWidth,e=l.videoHeight;d.setAttribute("width",t),d.setAttribute("height",e),d.style.width=t+"px",d.style.height=e+"px"}),!0),l.addEventListener("loadeddata",(function(){l.currentTime=1}),!0),l.addEventListener("seeked",(function(){d.getContext("2d").drawImage(l,0,0);try{var t=d.toDataURL(s,u);n(t)}catch(t){r(t)}}),!0),l.addEventListener("error",(function(t){r(t)}),!0),l.appendChild(c),l.setAttribute("src",t)}))},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,o=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(t=e.match(o))||void 0===t?void 0:t[1];return s?new Promise((function(t){return t("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):e.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?i(e).then((function(t){return r(t,n)})):new Promise((function(t,e){return e("Cannot create a thumbnail from the provided source")}))}},"./js/epics/index.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),i=n.n(r),o=n("./MapStore2/web/client/actions/styleeditor.js"),s=n("./js/api/geonode.js"),a=n("./MapStore2/web/client/selectors/layers.js"),u=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/actions/maplayout.js"),d=n("./MapStore2/web/client/actions/controls.js"),p=n("./MapStore2/web/client/actions/config.js"),h=n("./MapStore2/web/client/actions/featuregrid.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),m=n("./MapStore2/web/client/actions/layers.js"),g=n("./MapStore2/web/client/selectors/mapInfo.js"),y=n("./MapStore2/web/client/selectors/featuregrid.js"),v=n("./MapStore2/node_modules/lodash/head.js"),b=n.n(v),w=n("./MapStore2/node_modules/lodash/get.js"),E=n.n(w),x=n("./node_modules/object-assign/index.js"),O=n.n(x),S=n("./node_modules/connected-react-router/esm/actions.js"),_=n("./MapStore2/web/client/utils/NotificationUtils.js"),C=(n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/node_modules/lodash/lodash.js")),j=n("./MapStore2/web/client/actions/maps.js"),T=n("./MapStore2/web/client/selectors/maptype.js"),I=(n("./MapStore2/web/client/selectors/security.js"),n("./MapStore2/web/client/actions/security.js"),n("./MapStore2/web/client/utils/ObservableUtils.js"),n("./MapStore2/web/client/utils/MapUtils.js"),n("./MapStore2/web/client/utils/LocaleUtils.js")),N=n("./MapStore2/web/client/api/persistence/index.js");n("./MapStore2/web/client/observables/epics.js");function P(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||M(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.")}()}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||M(t,e)||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 M(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var G=function(t,e){return t.ofType(j.s).exhaustMap((function(t){var n,r=t.resource,o=Object(C.mapValues)(r.attributes,(function(t){if(Object(C.isObject)(t)){var e=null;try{e=JSON.stringify(t)}catch(t){e=null}return e}return t})),s=Object(C.keys)(o).filter((function(t){return"thumbnail"!==t&&"details"!==t&&!Object(C.isNil)(o[t])}));return i.a.Observable.forkJoin((n=Object(C.get)(r,"attributes.context"),n?Object(N.d)(n,{withData:!1}):i.a.Observable.of(null)),r.id?Object(N.h)(r):Object(N.b)(r)).switchMap((function(t){var n=A(t,2),a=n[0],u=n[1];return(s.length>0?i.a.Observable.forkJoin(s.map((function(t){return Object(N.i)({id:u,name:t,value:o[t]})}))):i.a.Observable.of([])).switchMap((function(){return i.a.Observable.from([].concat(P(r.id?[Object(p.o)(u)]:[]),P(r.id?[Object(p.m)(r.data,u)]:[]),[r.id?Object(d.h)("mapSave"):Object(d.h)("mapSaveAs"),Object(p.t)(r.id)],P(r.id?[]:[Object(j.F)(u,O()({id:u,canDelete:!0,canEdit:!0,canCopy:!0},r.metadata),r.data),Object(S.d)(a?"/context/".concat(a.name,"/").concat(u):"/viewer/".concat(Object(T.c)(e.getState()),"/").concat(u))]))).merge(i.a.Observable.of(Object(_.b)({title:"map.savedMapTitle",message:"map.savedMapMessage",autoDismiss:6,position:"tc"})))}))})).catch((function(t){var e=t.status,n=t.statusText,r=t.data,o=t.message,s=F(t,["status","statusText","data","message"]);return i.a.Observable.of(Object(p.s)(e?{status:e,statusText:n,data:r}:o||s),Object(_.a)(k(k({},Object(I.c)(t,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(j.I)(r.metadata):Object(j.L)(r.metadata))}))},B=n("./MapStore2/web/client/selectors/controls.js");function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType("GEONODE:CREATE_MAP_THUMBNAIL","GEONODE:CREATE_LAYER_THUMBNAIL").do((function(){try{$("#_thumbnail_processing").modal("show")}catch(t){console.log(t)}})).exhaustMap((function(t){var e=t.type,r=n(),o=Object(a.p)(r),l=Object(u.k)(r),c="GEONODE:CREATE_MAP_THUMBNAIL"===e,d=c?E()(l,"info.id"):o[o.length-1].name,p=c?"maps":"layers",h=l.size,f=h.width,m=h.height,g=l.bbox.bounds,y=g.maxx,v=g.minx,b=g.maxy,w={bbox:[v,y,g.miny,b],srid:l.bbox.crs,center:l.center,zoom:l.zoom,width:f,height:m,layers:o.filter((function(t){return"background"!==t.group&&t.visibility})).map((function(t){return t.name})).join(",")};return Object(s.d)(p,d,w).do((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.status;try{$("#_thumbnail_feedbacks").find(".modal-title").text(n),$("#_thumbnail_feedbacks").find(".modal-body").text(e),$("#_thumbnail_feedbacks").modal("show")}catch(t){console.log(t)}})).mapTo({type:"THUMBNAIL_UPDATE"}).catch((function(t){var e=t.code,n=t.message;try{"ECONNABORTED"===e?($("#_thumbnail_feedbacks").find(".modal-title").text("Timeout"),$("#_thumbnail_feedbacks").find(".modal-body").text("Failed from timeout: Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show")):($("#_thumbnail_feedbacks").find(".modal-title").text("Error: "+n),$("#_thumbnail_feedbacks").find(".modal-body").text("Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show"))}catch(t){console.log(t)}finally{return i.a.Observable.of({type:"THUMBNAIL_UPDATE_ERROR"})}})).do((function(){try{$("#_thumbnail_processing").modal("hide")}catch(t){console.log(t)}}))}))},q=function(t,e){return t.ofType(p.d,h.M,d.b,h.f,h.z,f.f,f.x,f.n,f.i,d.d,d.c,m.v,m.j,f.h,f.q).switchMap((function(){var t=e.getState();if(E()(t,"browser.mobile")){var n=z({},Object(g.m)(t)?{bottom:"50%"}:{bottom:void 0});return i.a.Observable.of(Object(c.b)({boundingMapRect:n}))}var r=Object(l.getConfigProp)("mapLayout")||{left:{sm:300,md:500,lg:600},right:{md:658},bottom:{sm:30}};if("embedded"===E()(t,"mode")){var o={height:"calc(100% - "+r.bottom.sm+"px)"},s=z({},Object(g.m)(t)?{bottom:"50%"}:{bottom:void 0});return i.a.Observable.of(Object(c.b)(z(z({},o),{},{boundingMapRect:s})))}var a=E()(t,"controls.drawer.resizedWidth"),u=b()([E()(t,"controls.queryPanel.enabled")&&{left:r.left.lg}||null,E()(t,"controls.widgetBuilder.enabled")&&{left:r.left.md}||null,E()(t,"layers.settings.expanded")&&{left:r.left.md}||null,E()(t,"controls.drawer.enabled")&&{left:a||r.left.sm}||null].filter((function(t){return t})))||{left:0},d=b()([E()(t,"controls.details.enabled")&&{right:r.right.md}||null,E()(t,"controls.annotations.enabled")&&{right:r.right.md}||null,E()(t,"controls.metadataexplorer.enabled")&&{right:r.right.md}||null,E()(t,"controls.measure.enabled")&&Object(B.h)(t)&&{right:r.right.md}||null,E()(t,"mapInfo.enabled")&&Object(g.m)(t)&&{right:r.right.md}||null].filter((function(t){return t})))||{right:0},p=100*Object(y.g)(t),h=Object(y.o)(t)&&{bottom:p+"%",dockSize:p}||{bottom:r.bottom.sm},f=Object(y.o)(t)&&{transform:"translate(0, -"+r.bottom.sm+"px)"}||{transform:"none"},m={height:"calc(100% - "+r.bottom.sm+"px)"},v=z(z(z({},h),u),d);return i.a.Observable.of(Object(c.b)(z(z(z(z(z(z({},u),d),h),f),m),{},{boundingMapRect:v})))}))};e.b={mapSaveMapResourceEpic:G,_setFeatureEditPermission:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType(m.t).filter((function(t){return"layer"===t.nodeType&&!Object(l.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(){var t=Object(a.j)(n()||{});return t?Object(s.b)(t).map((function(t){return Object(h.Fb)(t)})).startWith(Object(h.Fb)({canEdit:!1})).catch((function(){return i.a.Observable.empty()})):i.a.Observable.of(Object(h.Fb)({canEdit:!1}))}))},_setThumbnail:H,_setStyleEditorPermission:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType(o.f,m.t).filter((function(t){var e=t.nodeType;return e&&"layer"===e&&!Object(l.getConfigProp)("disableCheckEditPermissions")||!e&&!Object(l.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(t){var e=Object(a.j)(n()||{});return e?Object(s.c)(e).map((function(t){var e=t.canEdit;return Object(o.C)(e)})).startWith(Object(o.C)(t.canEdit)).catch((function(){return i.a.Observable.empty()})):i.a.Observable.of(Object(o.C)(!1))}))},updateMapLayoutEpic:q}},"./js/extend.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=!1},"./js/previewPlugins.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/rxjs/Rx.js"),i=n.n(r),o=n("./js/epics/index.js"),s=n("./js/extend.js"),a=n("./MapStore2/web/client/plugins/Map.jsx"),u=n("./MapStore2/web/client/plugins/Identify.jsx"),l=n("./MapStore2/web/client/plugins/Toolbar.jsx"),c=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),d=n("./MapStore2/web/client/plugins/MapLoading.jsx"),p=n("./MapStore2/web/client/plugins/OmniBar.jsx"),h=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),f=n("./MapStore2/web/client/plugins/FullScreen.jsx"),m=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),g=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),y=n("./MapStore2/web/client/plugins/Expander.jsx"),v=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),b=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),w=n("./MapStore2/web/client/plugins/MapFooter.jsx"),E=n("./MapStore2/web/client/plugins/Print.jsx"),x=n("./MapStore2/web/client/plugins/Timeline.jsx"),O=n("./MapStore2/web/client/plugins/Playback.jsx"),S=n("./MapStore2/web/client/reducers/security.js"),_=n("./MapStore2/web/client/reducers/maps.js"),C=n("./MapStore2/web/client/reducers/maplayout.js"),j=n("./node_modules/react-swipeable-views/lib/index.js"),T=n.n(j),I=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),N={plugins:{MapPlugin:a.a,IdentifyPlugin:u.a,ToolbarPlugin:l.a,ZoomAllPlugin:c.a,MapLoadingPlugin:d.a,OmniBarPlugin:p.default,BackgroundSelectorPlugin:h.a,FullScreenPlugin:f.a,ZoomInPlugin:m.a,ZoomOutPlugin:g.a,ExpanderPlugin:y.a,BurgerMenuPlugin:v.default,ScaleBoxPlugin:b.a,MapFooterPlugin:w.a,PrintPlugin:E.a,TimelinePlugin:x.a,PlaybackPlugin:O.a,AddReducersAndEpics:{reducers:{security:S.default,maps:_.a,maplayout:C.a},epics:{_setThumbnail:o.a,updateMapLayoutEpic:o.c,zoomToVisibleAreaEpic:function(){return i.a.Observable.empty()}}}},requires:{ReactSwipe:T.a,SwipeHeader:I.a}},P=s.a?Object(s.a)(N):N;e.default=P},"./node_modules/@babel/runtime/helpers/extends.js":function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;et[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]2&&void 0!==arguments[2]?arguments[2]:"override",i=arguments.length>3?arguments[3]:void 0;return{type:r,id:t,owner:e,actionType:n,options:i}},u=function(t,e){return{type:i,owner:t,options:e}},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.owner;return{type:o,id:e,owner:n}},c=function(){return{type:s}}},"./MapStore2/web/client/actions/annotations.js":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return a}));n("./MapStore2/node_modules/lodash/lodash.js");var r=function(t){return{type:"ANNOTATIONS:HIGHLIGHT_POINT",point:t}},i=function(){return{type:"ANNOTATIONS:NEW"}},o=function(){return{type:"ANNOTATIONS:CLEAN_HIGHLIGHT"}},s=function(){return{type:"ANNOTATIONS:CLOSE"}},a=function(t){return{type:"ANNOTATIONS:SET_EDITING_FEATURE",feature:t}}},"./MapStore2/web/client/actions/backgroundselector.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"u",(function(){return g})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return v})),n.d(e,"w",(function(){return b})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return E})),n.d(e,"x",(function(){return x})),n.d(e,"p",(function(){return O})),n.d(e,"y",(function(){return S})),n.d(e,"v",(function(){return _})),n.d(e,"s",(function(){return C})),n.d(e,"t",(function(){return j}));var r="BACKGROUND_SELECTOR:ADD_BACKGROUND",i="BACKGROUND_SELECTOR:REMOVE_BACKGROUND",o="BACKGROUND_SELECTOR:SET_CURRENT_BACKGROUND_LAYER",s="BACKGROUND_SELECTOR:BACKGROUND_ADDED",a="BACKGROUND_SELECTOR:BACKGROUND_EDITED",u="BACKGROUND_SELECTOR:ADD_BACKGROUND_PROPERTIES",l="BACKGROUND_SELECTOR:SET_BACKGROUND_MODAL_PARAMS",c="BACKGROUND_SELECTOR:UPDATE_BACKGROUND_THUMBNAIL",d="BACKGROUND_SELECTOR:BACKGROUNDS_CLEAR",p="BACKGROUND_SELECTOR:CREATE_BACKGROUNDS_LIST",h="BACKGROUND_SELECTOR:CLEAR_MODAL_PARAMETERS",f="BACKGROUND_SELECTOR:CONFIRM_DELETE_BACKGROUND_MODAL",m="BACKGROUND_SELECTOR:ALLOW_BACKGROUNDS_DELETION";function g(t){return{type:p,backgrounds:t}}function y(t){return{type:r,source:t}}function v(t){return{type:u,modalParams:t}}function b(t){return{type:l,modalParams:t}}function w(t){return{type:s,layerId:t}}function E(t){return{type:a,layerId:t}}function x(t){return{type:o,layerId:t}}function O(t){return{type:m,allow:t}}function S(t,e){return{type:c,thumbnailData:t,id:e}}function _(t){return{type:i,backgroundId:t}}function C(){return{type:h}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:f,show:t,layerTitle:e,layerId:n}}},"./MapStore2/web/client/actions/box.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var r="BOX_END",i="CHANGE_BOX_SELECTION_STATUS";function o(t){return{type:r,boxEndInfo:t}}function s(t){return{type:i,status:t}}},"./MapStore2/web/client/actions/catalog.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"y",(function(){return w})),n.d(e,"t",(function(){return E})),n.d(e,"v",(function(){return x})),n.d(e,"e",(function(){return O})),n.d(e,"u",(function(){return S})),n.d(e,"f",(function(){return _})),n.d(e,"c",(function(){return C})),n.d(e,"i",(function(){return j})),n.d(e,"g",(function(){return T})),n.d(e,"h",(function(){return I})),n.d(e,"m",(function(){return N})),n.d(e,"l",(function(){return P})),n.d(e,"n",(function(){return A})),n.d(e,"k",(function(){return M})),n.d(e,"j",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"o",(function(){return k})),n.d(e,"a",(function(){return L})),n.d(e,"p",(function(){return F})),n.d(e,"d",(function(){return G})),n.d(e,"q",(function(){return B})),n.d(e,"w",(function(){return U})),n.d(e,"s",(function(){return z})),n.d(e,"x",(function(){return V})),n.d(e,"A",(function(){return H})),n.d(e,"B",(function(){return q})),n.d(e,"z",(function(){return Y})),n.d(e,"bb",(function(){return W})),n.d(e,"W",(function(){return X})),n.d(e,"H",(function(){return K})),n.d(e,"Z",(function(){return Z})),n.d(e,"ab",(function(){return $})),n.d(e,"K",(function(){return Q})),n.d(e,"T",(function(){return J})),n.d(e,"I",(function(){return tt})),n.d(e,"O",(function(){return et})),n.d(e,"N",(function(){return nt})),n.d(e,"M",(function(){return rt})),n.d(e,"L",(function(){return it})),n.d(e,"P",(function(){return ot})),n.d(e,"Q",(function(){return st})),n.d(e,"F",(function(){return at})),n.d(e,"C",(function(){return ut})),n.d(e,"R",(function(){return lt})),n.d(e,"S",(function(){return ct})),n.d(e,"Y",(function(){return dt})),n.d(e,"V",(function(){return pt})),n.d(e,"G",(function(){return ht})),n.d(e,"D",(function(){return mt})),n.d(e,"E",(function(){return gt})),n.d(e,"U",(function(){return yt})),n.d(e,"J",(function(){return vt})),n.d(e,"cb",(function(){return bt})),n.d(e,"db",(function(){return wt})),n.d(e,"eb",(function(){return Et})),n.d(e,"X",(function(){return xt}));var r=n("./MapStore2/web/client/api/CSW.js"),i=n("./MapStore2/web/client/api/WMS.js"),o=n("./MapStore2/web/client/api/WMTS.js"),s=n("./MapStore2/web/client/api/mapBackground.js"),a=n("./MapStore2/web/client/actions/layers.js"),u=n("./MapStore2/web/client/actions/map.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./MapStore2/web/client/selectors/catalog.js"),h=n("./MapStore2/web/client/selectors/layers.js"),f=n("./MapStore2/web/client/actions/notifications.js");function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.format,n=t.url,r=t.startPosition,i=t.maxRecords,o=t.text,s=t.options,a=void 0===s?{}:s;return{type:w,format:e,url:n,startPosition:r,maxRecords:i,text:o,options:a}}function X(t,e){return{type:E,searchOptions:t,result:e}}function K(t){return{type:_,format:t}}function Z(t){return{type:U,status:t}}function $(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:V,loading:t}}function Q(t){return{type:j,service:t}}function J(t){return{type:R,status:t}}function tt(t,e){return{type:T,mode:t,isNew:e}}function et(t){return{type:N,title:t}}function nt(t){return{type:P,text:t}}function rt(t,e){return{type:M,property:t,value:e}}function it(t){return{type:D,format:t}}function ot(t){return{type:A,newType:t}}function st(t){return{type:k,url:t}}function at(){return{type:G}}function ut(t){return{type:L,service:t}}function lt(t){return{type:F,service:t}}function ct(){return{type:B}}function dt(){return{type:x}}function pt(t){return{type:S,error:t}}function ht(){return{type:O}}function ft(t,e){return{type:"CATALOG:DESCRIBE_ERROR",layer:t,error:e}}var mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.zoomToLayer,r=void 0!==n&&n;return function(e,n){var i=n(),o=Object(h.p)(i),s=Object(l.getLayerId)(t,o||[]);return e(Object(a.E)(g(g({},t),{},{id:s}))),r&&t.bbox&&e(Object(u.I)(t.bbox.bounds,t.bbox.crs)),"wms"===t.type?v.wms.describeLayers(Object(l.getLayerUrl)(t),t.name).then((function(n){if(n){var r=Object(d.find)(n,(function(e){return e.name===t.name}));if(r&&"WFS"===r.owsType){var o=c.filterUrlParams(c.cleanDuplicatedQuestionMarks(r.owsURL),Object(p.b)(i));e(Object(a.I)(s,{search:{url:o,type:"wfs"}}))}}})).catch((function(n){return e(ft(t,n))})):null}};function gt(t){return{type:C,error:t}}function yt(t){return{type:z,metadataOptions:t}}var vt=function(t){return{type:I,metadataTemplate:t}},bt=function(){return{type:Y}},wt=function(){return{type:H}},Et=function(){return{type:q}};function xt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.f)({title:"catalog.notification.errorTitle",message:"catalog.notification.errorSearchingRecords",values:{records:t}})}},"./MapStore2/web/client/actions/draw.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"g",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"h",(function(){return m}));var r="CHANGE_DRAWING_STATUS",i="DRAW:END_DRAWING",o="DRAW:SET_CURRENT_STYLE",s="DRAW:GEOMETRY_CHANGED",a="DRAW:DRAW_SUPPORT_STOPPED";function u(t,e,n,r,i){return{type:s,features:t,owner:e,enableEdit:n,textChanged:r,circleChanged:i}}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:FEATURES_SELECTED",features:t}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"DRAW:DRAWING_FEATURES",features:t}}function d(){return{type:a}}function p(t,e,n,i,o,s){return{type:r,status:t,method:e,owner:n,features:i,options:o,style:s}}function h(t,e){return{type:i,geometry:t,owner:e}}function f(t){return{type:o,currentStyle:t}}var m=function(t){return p("clean","",t,[],{})}},"./MapStore2/web/client/actions/featuregrid.js":function(t,e,n){"use strict";n.d(e,"L",(function(){return r})),n.d(e,"E",(function(){return i})),n.d(e,"n",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"J",(function(){return a})),n.d(e,"U",(function(){return u})),n.d(e,"T",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"A",(function(){return p})),n.d(e,"D",(function(){return h})),n.d(e,"P",(function(){return f})),n.d(e,"O",(function(){return m})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"C",(function(){return v})),n.d(e,"c",(function(){return b})),n.d(e,"B",(function(){return w})),n.d(e,"m",(function(){return E})),n.d(e,"F",(function(){return x})),n.d(e,"N",(function(){return O})),n.d(e,"G",(function(){return S})),n.d(e,"Y",(function(){return _})),n.d(e,"b",(function(){return C})),n.d(e,"s",(function(){return j})),n.d(e,"p",(function(){return T})),n.d(e,"W",(function(){return I})),n.d(e,"i",(function(){return N})),n.d(e,"g",(function(){return P})),n.d(e,"z",(function(){return A})),n.d(e,"f",(function(){return M})),n.d(e,"d",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"I",(function(){return k})),n.d(e,"o",(function(){return L})),n.d(e,"a",(function(){return F})),n.d(e,"j",(function(){return G})),n.d(e,"y",(function(){return B})),n.d(e,"Z",(function(){return U})),n.d(e,"v",(function(){return z})),n.d(e,"M",(function(){return V})),n.d(e,"V",(function(){return H})),n.d(e,"u",(function(){return q})),n.d(e,"X",(function(){return Y})),n.d(e,"x",(function(){return W})),n.d(e,"Q",(function(){return X})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return Z})),n.d(e,"w",(function(){return $})),n.d(e,"t",(function(){return Q})),n.d(e,"K",(function(){return J})),n.d(e,"H",(function(){return tt})),n.d(e,"Qb",(function(){return et})),n.d(e,"ub",(function(){return nt})),n.d(e,"qb",(function(){return rt})),n.d(e,"Ob",(function(){return it})),n.d(e,"vb",(function(){return ot})),n.d(e,"cb",(function(){return st})),n.d(e,"hb",(function(){return at})),n.d(e,"Cb",(function(){return ut})),n.d(e,"Ib",(function(){return lt})),n.d(e,"tb",(function(){return ct})),n.d(e,"Mb",(function(){return dt})),n.d(e,"Lb",(function(){return pt})),n.d(e,"ob",(function(){return ht})),n.d(e,"mb",(function(){return ft})),n.d(e,"nb",(function(){return mt})),n.d(e,"eb",(function(){return gt})),n.d(e,"Gb",(function(){return yt})),n.d(e,"Kb",(function(){return vt})),n.d(e,"bb",(function(){return bt})),n.d(e,"Db",(function(){return wt})),n.d(e,"Tb",(function(){return Et})),n.d(e,"Rb",(function(){return xt})),n.d(e,"jb",(function(){return Ot})),n.d(e,"Pb",(function(){return St})),n.d(e,"Sb",(function(){return _t})),n.d(e,"rb",(function(){return Ct})),n.d(e,"ib",(function(){return jt})),n.d(e,"zb",(function(){return Tt})),n.d(e,"Bb",(function(){return It})),n.d(e,"lb",(function(){return Nt})),n.d(e,"sb",(function(){return Pt})),n.d(e,"db",(function(){return At})),n.d(e,"Ab",(function(){return Mt})),n.d(e,"gb",(function(){return Dt})),n.d(e,"fb",(function(){return Rt})),n.d(e,"yb",(function(){return kt})),n.d(e,"pb",(function(){return Lt})),n.d(e,"Fb",(function(){return Ft})),n.d(e,"xb",(function(){return Gt})),n.d(e,"Ub",(function(){return Bt})),n.d(e,"Nb",(function(){return Ut})),n.d(e,"Jb",(function(){return zt})),n.d(e,"wb",(function(){return Vt})),n.d(e,"ab",(function(){return Ht})),n.d(e,"kb",(function(){return qt})),n.d(e,"Hb",(function(){return Yt})),n.d(e,"Eb",(function(){return Wt}));var r="FEATUREGRID:SET_UP",i="FEATUREGRID:SELECT_FEATURES",o="FEATUREGRID:DESELECT_FEATURES",s="FEATUREGRID:CLEAR_SELECTION",a="FEATUREGRID:SET_SELECTION_OPTIONS",u="FEATUREGRID:TOGGLE_MODE",l="FEATUREGRID:TOGGLE_FEATURES_SELECTION",c="FEATUREGRID:FEATURES_MODIFIED",d="FEATUREGRID:NEW_FEATURE",p="FEATUREGRID:SAVE_CHANGES",h="FEATUREGRID:SAVING",f="FEATUREGRID:START_EDITING_FEATURE",m="FEATUREGRID:START_DRAWING_FEATURE",g="FEATUREGRID:DELETE_GEOMETRY",y="FEATUREGRID:DELETE_GEOMETRY_FEATURE",v="FEATUREGRID:SAVE_SUCCESS",b="FEATUREGRID:CLEAR_CHANGES",w="FEATUREGRID:SAVE_ERROR",E="FEATUREGRID:DELETE_SELECTED_FEATURES",x="SET_FEATURES",O="FEATUREGRID:SORT_BY",S="FEATUREGRID:SET_LAYER",_="QUERY:UPDATE_FILTER",C="FEATUREGRID:CHANGE_PAGE",j="FEATUREGRID:GEOMETRY_CHANGED",T="DOCK_SIZE_FEATURES",I="FEATUREGRID:TOGGLE_TOOL",N="FEATUREGRID:CUSTOMIZE_ATTRIBUTE",P="ASK_CLOSE_FEATURE_GRID_CONFIRM",A="FEATUREGRID:OPEN_GRID",M="FEATUREGRID:CLOSE_GRID",D="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",R="FEATUREGRID:FEATURE_GRID_CLOSE_CONFIRMED",k="FEATUREGRID:SET_PERMISSION",L="FEATUREGRID:DISABLE_TOOLBAR",F="FEATUREGRID:ACTIVATE_TEMPORARY_CHANGES",G="FEATUREGRID:DEACTIVATE_GEOMETRY_FILTER",B="FEATUREGRID:ADVANCED_SEARCH",U="FEATUREGRID:ZOOM_ALL",z="FEATUREGRID:INIT_PLUGIN",V="FEATUREGRID:SIZE_CHANGE",H="FEATUREGRID:TOGGLE_SHOW_AGAIN_FLAG",q="FEATUREGRID:HIDE_SYNC_POPOVER",Y="FEATUREGRID:UPDATE_EDITORS_OPTIONS",W={EDIT:"EDIT",VIEW:"VIEW"},X="FEATUREGRID:START_SYNC_WMS",K="FEATUREGRID:STOP_SYNC_WMS",Z="STORE_ADVANCED_SEARCH_FILTER",$="LOAD_MORE_FEATURES",Q="FEATUREGRID:QUERY_RESULT",J="FEATUREGRID:SET_TIME_SYNC",tt="FEATUREGRID:SET_PAGINATION";function et(){return{type:H}}function nt(){return{type:q}}function rt(t,e){return{type:Q,features:t,pages:e}}function it(t){return{type:Z,filterObj:t}}function ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:z,options:t}}function st(){return{type:D}}function at(){return{type:R}}function ut(t,e){return{type:i,features:t,append:e}}function lt(t){return{type:r,options:t}}function ct(t){return{type:j,features:t}}function dt(){return{type:f}}function pt(){return{type:m}}function ht(t){return{type:o,features:t}}function ft(){return{type:g}}function mt(t){return{type:y,features:t}}function gt(){return{type:s}}function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.multiselect,n=void 0!==e&&e;return{type:a,multiselect:n}}function vt(t,e){return{type:O,sortBy:t,sortOrder:e}}function bt(t,e){return{type:C,page:t,size:e}}function wt(t){return{type:S,id:t}}function Et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:_,update:t,append:e}}function xt(t,e){return{type:I,tool:t,value:e}}function Ot(t,e,n){return{type:N,name:t,key:e,value:n}}function St(){return{type:u,mode:W.EDIT}}function _t(){return{type:u,mode:W.VIEW}}function Ct(t,e){return{type:c,features:t,updated:e}}function jt(t){return{type:d,features:t}}function Tt(){return{type:p}}function It(){return{type:v}}function Nt(){return{type:E}}function Pt(){return{type:h}}function At(){return{type:b}}function Mt(){return{type:w}}function Dt(){return{type:P}}function Rt(){return{type:M}}function kt(){return{type:A}}function Lt(t){return{type:L,disabled:t}}function Ft(t){return{type:k,permission:t}}function Gt(){return{type:B}}function Bt(){return{type:U}}function Ut(){return{type:X}}function zt(t,e){return{type:V,size:t,dockProps:e}}var Vt=function(t){return{type:$,pages:t}},Ht=function(t){return{type:F,activated:t}},qt=function(t){return{type:G,deactivated:t}},Yt=function(t){return{type:J,value:t}},Wt=function(t){return{type:tt,size:t}}},"./MapStore2/web/client/actions/highlight.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return a}));var r="HIGHLIGHT_STATUS",i="UPDATE_HIGHLIGHTED",o="HIGHLIGHT:SET_HIGHLIGHT_FEATURES_PATH";function s(t){return{type:o,featuresPath:t}}function a(t,e){return{type:i,features:t,status:e}}},"./MapStore2/web/client/actions/locate.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var r="CHANGE_LOCATE_STATE",i="LOCATE_ERROR";function o(t){return{type:r,state:t}}function s(t){return{type:i,error:t}}},"./MapStore2/web/client/actions/mapInfo.js":function(t,e,n){"use strict";n.d(e,"n",(function(){return i})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"o",(function(){return u})),n.d(e,"q",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"t",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"u",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"p",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"A",(function(){return b})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return E})),n.d(e,"z",(function(){return x})),n.d(e,"d",(function(){return O})),n.d(e,"f",(function(){return S})),n.d(e,"a",(function(){return _})),n.d(e,"y",(function(){return C})),n.d(e,"g",(function(){return j})),n.d(e,"r",(function(){return T})),n.d(e,"s",(function(){return I})),n.d(e,"v",(function(){return N})),n.d(e,"N",(function(){return P})),n.d(e,"H",(function(){return A})),n.d(e,"I",(function(){return M})),n.d(e,"P",(function(){return D})),n.d(e,"E",(function(){return R})),n.d(e,"O",(function(){return k})),n.d(e,"K",(function(){return L})),n.d(e,"Q",(function(){return F})),n.d(e,"C",(function(){return G})),n.d(e,"T",(function(){return B})),n.d(e,"L",(function(){return U})),n.d(e,"U",(function(){return V})),n.d(e,"M",(function(){return H})),n.d(e,"W",(function(){return q})),n.d(e,"Y",(function(){return Y})),n.d(e,"J",(function(){return W})),n.d(e,"Z",(function(){return X})),n.d(e,"V",(function(){return K})),n.d(e,"D",(function(){return Z})),n.d(e,"F",(function(){return $})),n.d(e,"B",(function(){return Q})),n.d(e,"X",(function(){return J})),n.d(e,"G",(function(){return tt})),n.d(e,"R",(function(){return et})),n.d(e,"S",(function(){return nt}));var r=n("./MapStore2/web/client/api/Nominatim.js"),i="LOAD_FEATURE_INFO",o="ERROR_FEATURE_INFO",s="EXCEPTIONS_FEATURE_INFO",a="CHANGE_MAPINFO_STATE",u="NEW_MAPINFO_REQUEST",l="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",d="SHOW_MAPINFO_MARKER",p="HIDE_MAPINFO_MARKER",h="SHOW_REVERSE_GEOCODE",f="HIDE_REVERSE_GEOCODE",m="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",y="CLEAR_WARNING",v="FEATURE_INFO_CLICK",b="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",w="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",E="TOGGLE_MAPINFO_STATE",x="UPDATE_CENTER_TO_MARKER",O="IDENTIFY:CHANGE_PAGE",S="IDENTIFY:CLOSE_IDENTIFY",_="IDENTIFY:CHANGE_FORMAT",C="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",j="IDENTIFY:EDIT_LAYER_FEATURES",T="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",I="IDENTIFY:SET_MAP_TRIGGER",N="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function P(t,e,n,r,o){return{type:i,data:e,reqId:t,requestParams:n,layerMetadata:r,layer:o}}function A(t,e,n,r){return{type:o,error:e,reqId:t,requestParams:n,layerMetadata:r}}function M(t,e,n,r){return{type:s,reqId:t,exceptions:e,requestParams:n,layerMetadata:r}}function D(){return{type:g}}function R(){return{type:y}}function k(t,e){return{type:u,reqId:t,request:e}}function L(t,e,n,r){return{type:m,layer:t,request:e,metadata:n,queryableLayers:r}}function F(){return{type:l}}function G(t){return{type:c,infoFormat:t}}function B(){return{type:d}}function U(){return{type:p}}function z(t){return{type:h,reverseGeocodeData:t.data}}function V(t){return function(e){r.default.reverseGeocode(t).then((function(t){e(z(t))})).catch((function(t){e(z(t))}))}}function H(){return{type:f}}function q(){return{type:E}}function Y(t){return{type:x,status:t}}function W(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:v,point:t,layer:e,filterNameList:n,overrideParams:r,itemId:i}}function X(t){return{type:b,point:t}}function K(t){return{type:w,enabled:t}}function Z(t){return{type:O,index:t}}var $=function(){return{type:S}},Q=function(t){return{type:_,format:t}},J=function(t){return{type:C,showCoordinateEditor:t}},tt=function(t){return{type:j,layer:t}},et=function(t){return{type:T,query:t}},nt=function(t){return{type:I,trigger:t}}},"./MapStore2/web/client/actions/mapPopups.js":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e2&&void 0!==arguments[2])||arguments[2];return{type:"MAP:ADD_POPUP",id:t,popup:i({id:t},e),single:n}},u=function(t){return{type:s,id:t}},l=function(){return{type:"MAP:CLEAN_POPUPS"}}},"./MapStore2/web/client/actions/maplayout.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r="MAP_LAYOUT:UPDATE_MAP_LAYOUT";function i(t){return{type:r,layout:t}}},"./MapStore2/web/client/actions/measurement.js":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"g",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"h",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"n",(function(){return l})),n.d(e,"l",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"i",(function(){return y})),n.d(e,"m",(function(){return v})),n.d(e,"k",(function(){return b})),n.d(e,"p",(function(){return w})),n.d(e,"u",(function(){return x})),n.d(e,"w",(function(){return O})),n.d(e,"t",(function(){return S})),n.d(e,"A",(function(){return _})),n.d(e,"B",(function(){return C})),n.d(e,"z",(function(){return j})),n.d(e,"q",(function(){return T})),n.d(e,"s",(function(){return I})),n.d(e,"r",(function(){return N})),n.d(e,"y",(function(){return P})),n.d(e,"C",(function(){return A})),n.d(e,"v",(function(){return M})),n.d(e,"x",(function(){return D}));var o="CHANGE_MEASUREMENT_TOOL",s="CHANGE_MEASUREMENT_STATE",a="MEASUREMENT:CHANGE_UOM",u="MEASUREMENT:CHANGED_GEOMETRY",l="MEASUREMENT:SET_TEXT_LABELS",c="MEASUREMENT:SET_CURRENT_FEATURE",d="MEASUREMENT:ADD_AS_LAYER",p="MEASUREMENT:RESET_GEOMETRY",h="MEASUREMENT:CHANGE_FORMAT",f="MEASUREMENT:CHANGE_COORDINATES",m="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",g="MEASUREMENT:UPDATE_MEASURES",y="MEASUREMENT:INIT",v="MEASUREMENT:SET_MEASUREMENT_CONFIG",b="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function w(t,e,n,r,i){return{type:m,features:t,textLabels:e,uom:n,save:r,id:i}}function E(t){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return{type:y,defaultOptions:t}}},"./MapStore2/web/client/actions/playback.js":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"k",(function(){return o})),n.d(e,"i",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"j",(function(){return m})),n.d(e,"s",(function(){return g})),n.d(e,"r",(function(){return y})),n.d(e,"w",(function(){return v})),n.d(e,"v",(function(){return b})),n.d(e,"u",(function(){return w})),n.d(e,"o",(function(){return E})),n.d(e,"q",(function(){return x})),n.d(e,"t",(function(){return O})),n.d(e,"p",(function(){return S})),n.d(e,"x",(function(){return _})),n.d(e,"n",(function(){return C})),n.d(e,"y",(function(){return j}));var r="PLAYBACK:START",i="PLAYBACK:PAUSE",o="PLAYBACK:STOP",s="PLAYBACK:SET_FRAMES",a="PLAYBACK:APPEND_FRAMES",u="PLAYBACK:FRAMES_LOADING",l="PLAYBACK:SET_CURRENT_FRAME",c="PLAYBACK:SELECT_PLAYBACK_RANGE",d="PLAYBACK:SETTINGS_CHANGE",p="PLAYBACK:TOGGLE_ANIMATION_MODE",h="PLAYBACK:ANIMATION_STEP_MOVE",f="PLAYBACK:UPDATE_METADATA",m={PLAY:"PLAY",STOP:"STOP",PAUSE:"PAUSE"},g=function(){return{type:r}},y=function(){return{type:i}},v=function(){return{type:o}},b=function(t){return{type:s,frames:t}},w=function(t){return{type:l,frame:t}},E=function(t){return{type:a,frames:t}},x=function(t){return{type:u,loading:t}},O=function(t){return{type:c,range:t}},S=function(t,e){return{type:d,name:t,value:e}},_=function(){return{type:p}},C=function(t){return{type:h,direction:t}},j=function(t){var e=t.next,n=t.previous,r=t.forTime;return{type:f,forTime:r,next:e,previous:n}}},"./MapStore2/web/client/actions/search.js":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"p",(function(){return o})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"e",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"n",(function(){return y})),n.d(e,"r",(function(){return v})),n.d(e,"c",(function(){return b})),n.d(e,"s",(function(){return w})),n.d(e,"b",(function(){return E})),n.d(e,"a",(function(){return x})),n.d(e,"x",(function(){return O})),n.d(e,"L",(function(){return S})),n.d(e,"v",(function(){return _})),n.d(e,"C",(function(){return C})),n.d(e,"D",(function(){return j})),n.d(e,"E",(function(){return T})),n.d(e,"B",(function(){return I})),n.d(e,"A",(function(){return N})),n.d(e,"z",(function(){return P})),n.d(e,"t",(function(){return A})),n.d(e,"J",(function(){return M})),n.d(e,"G",(function(){return D})),n.d(e,"I",(function(){return R})),n.d(e,"F",(function(){return k})),n.d(e,"u",(function(){return L})),n.d(e,"K",(function(){return F})),n.d(e,"w",(function(){return G})),n.d(e,"y",(function(){return B})),n.d(e,"H",(function(){return U}));var r=n("./MapStore2/web/client/actions/notifications.js"),i="SEARCH:SEARCH_WITH_FILTER",o="TEXT_SEARCH_STARTED",s="TEXT_SEARCH_RESULTS_LOADED",a="TEXT_SEARCH_RESULTS_PURGE",u="TEXT_SEARCH_RESET",l="TEXT_SEARCH_ADD_MARKER",c="TEXT_SEARCH_TEXT_CHANGE",d="TEXT_SEARCH_LOADING",p="TEXT_SEARCH_NESTED_SERVICE_SELECTED",h="TEXT_SEARCH_ERROR",f="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",g="TEXT_SEARCH_SHOW_GFI",y="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",v="UPDATE_RESULTS_STYLE",b="CHANGE_SEARCH_TOOL",w="SEARCH:ZOOM_ADD_POINT",E="SEARCH:CHANGE_FORMAT",x="SEARCH:CHANGE_COORD";function O(t){return{type:E,format:t}}function S(t,e,n){return{type:w,pos:t,zoom:e,crs:n}}function _(t){return{type:b,activeSearchTool:t}}function C(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return{type:s,results:t,append:e,services:n}}function j(t){return{type:c,searchText:t}}function T(t){return{type:d,loading:t}}function I(t){return{type:h,error:t}}function N(){return{type:a}}function P(){return{type:u}}function A(t,e){return{type:l,markerPosition:t,markerLabel:e}}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.services,r=void 0===n?null:n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:o,searchText:t,services:r,maxResults:i}}function D(t,e,n){return{type:m,item:t,mapConfig:e,resultsStyle:n}}var R=function(t){return{type:g,item:t}};function k(t,e,n){return{type:p,searchText:n,services:t,items:e}}function L(t){return{type:f,item:t}}function F(t){return{type:v,style:t}}function G(t,e){return{type:x,coord:t,val:e}}function B(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function U(){return Object(r.f)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},"./MapStore2/web/client/actions/styleeditor.js":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"j",(function(){return i})),n.d(e,"q",(function(){return o})),n.d(e,"o",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"k",(function(){return v})),n.d(e,"n",(function(){return b})),n.d(e,"D",(function(){return w})),n.d(e,"F",(function(){return E})),n.d(e,"A",(function(){return x})),n.d(e,"H",(function(){return O})),n.d(e,"y",(function(){return S})),n.d(e,"x",(function(){return _})),n.d(e,"s",(function(){return C})),n.d(e,"z",(function(){return j})),n.d(e,"r",(function(){return T})),n.d(e,"v",(function(){return I})),n.d(e,"G",(function(){return N})),n.d(e,"u",(function(){return P})),n.d(e,"t",(function(){return A})),n.d(e,"w",(function(){return M})),n.d(e,"C",(function(){return D})),n.d(e,"B",(function(){return R})),n.d(e,"E",(function(){return k}));var r="STYLEEDITOR:TOGGLE_STYLE_EDITOR",i="STYLEEDITOR:SELECT_STYLE_TEMPLATE",o="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",s="STYLEEDITOR:UPDATE_STATUS",a="STYLEEDITOR:RESET_STYLE_EDITOR",u="STYLEEDITOR:ADD_STYLE",l="STYLEEDITOR:CREATE_STYLE",c="STYLEEDITOR:LOADING_STYLE",d="STYLEEDITOR:LOADED_STYLE",p="STYLEEDITOR:ERROR_STYLE",h="STYLEEDITOR:UPDATE_STYLE_CODE",f="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",g="STYLEEDITOR:INIT_STYLE_SERVICE",y="STYLEEDITOR:SET_EDIT_PERMISSION",v="STYLEEDITOR:SET_DEFAULT_STYLE",b="STYLEEDITOR:UPDATE_EDITOR_METADATA";function w(t,e){return{type:r,layer:t,enabled:e}}function E(t){return{type:s,status:t}}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.code,n=t.templateId,r=t.format,o=t.languageVersion,s=t.init;return{type:i,code:e,templateId:n,format:r,init:s,languageVersion:o}}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.temporaryId,n=t.templateId,r=t.code,i=t.format,s=t.languageVersion,a=t.init;return{type:o,temporaryId:e,templateId:n,code:r,format:i,init:a,languageVersion:s}}function S(t){return{type:c,status:t}}function _(){return{type:d}}function C(t){return{type:l,settings:t}}function j(){return{type:a}}function T(t){return{type:u,add:t}}function I(t,e){return{type:p,status:t,error:e}}function N(){return{type:h}}function P(t){return{type:f,code:t}}function A(t){return{type:m,styleName:t}}function M(t,e){return{type:g,service:t,canEdit:e}}function D(t){return{type:y,canEdit:t}}function R(){return{type:v}}function k(t){return{type:b,metadata:t}}},"./MapStore2/web/client/actions/wfsquery.js":function(t,e,n){"use strict";n.d(e,"h",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"j",(function(){return c})),n.d(e,"p",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"i",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"o",(function(){return y})),n.d(e,"n",(function(){return v})),n.d(e,"A",(function(){return b})),n.d(e,"z",(function(){return w})),n.d(e,"v",(function(){return E})),n.d(e,"u",(function(){return x})),n.d(e,"t",(function(){return O})),n.d(e,"s",(function(){return S})),n.d(e,"r",(function(){return _})),n.d(e,"y",(function(){return C})),n.d(e,"x",(function(){return j})),n.d(e,"B",(function(){return T})),n.d(e,"q",(function(){return I})),n.d(e,"w",(function(){return N}));n("./MapStore2/web/client/libs/ajax.js");var r="LAYER_SELECTED_FOR_SEARCH",i="FEATURE_TYPE_SELECTED",o="FEATURE_TYPE_LOADED",s="FEATURE_LOADED",a="FEATURE_LOADING",u="FEATURE_TYPE_ERROR",l="FEATURE_ERROR",c="QUERY_CREATE",d="QUERY:UPDATE_QUERY",p="QUERY_RESULT",h="QUERY_ERROR",f="RESET_QUERY",m="QUERY",g="INIT_QUERY_PANEL",y="QUERY:TOGGLE_SYNC_WMS",v="QUERY:TOGGLE_LAYER_FILTER";function b(){return{type:y}}function w(){return{type:v}}function E(){return{type:g}}function x(t,e){return{type:i,url:t,typeName:e}}function O(t,e){return{type:o,typeName:t,featureType:e}}function S(t,e){return{type:u,typeName:t,error:e}}function _(t){return{type:a,isLoading:t}}function C(t,e,n,r,i){return{type:p,searchUrl:e,filterObj:n,result:t,queryOptions:r,reason:i}}function j(t){return{type:h,error:t}}function T(t,e){return{type:d,updates:t,reason:e}}function I(t,e){return{type:c,searchUrl:t,filterObj:e}}function N(t,e,n,r){return{type:m,searchUrl:t,filterObj:e,queryOptions:n,reason:r}}},"./MapStore2/web/client/api/CSW.js":function(t,e,n){"use strict";var r=n("./node_modules/url/url.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n.n(o),a=n("./node_modules/object-assign/index.js"),u=n.n(a),l=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(l),d=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),h=function(t){var e=i.a.parse(t,!0);return i.a.format(u()({},e,{search:null},{query:u()({service:"CSW",version:"2.0.2"},e.query,{request:void 0})}))},f={parseUrl:h,getRecordById:function(t){return new Promise((function(e){Promise.all([n.e(1),n.e(27)]).then(function(){e(c.a.get(t).then((function(t){if(t){var e=n("./MapStore2/web/client/utils/ogc/CSW.js").unmarshaller.unmarshalString(t.data);if(e&&e.name&&"GetRecordByIdResponse"===e.name.localPart&&e.value&&e.value.abstractRecord){var r=e.value.abstractRecord[0].value.dcElement;if(r){for(var i={references:[]},o=0;o=e-1&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:{},c=s.attachJSON,d=s.itemId,h=void 0===d?null:d,f=function(e){return i.Observable.defer((function(){return a.a.get(t,{params:e})}))},m=function(e){return Object(o.g)(n,t,e)},g=Object(o.g)(n,t,e)?m:f;return c&&"application/json"!==e.info_format&&"application/json"!==e.outputFormat?i.Observable.forkJoin(g(e),g(p(p({},e),{},{info_format:"application/json"})).map((function(t){return t.data})).catch((function(){return i.Observable.of({})}))).map((function(t){var e=l(t,2),n=e[0],i=e[1];return p(p({},n),{},{features:i&&i.features&&i.features.filter((function(t){return!!Object(r.isNil)(h)||t.id===h})),featuresCrs:i&&i.crs&&Object(u.parseURN)(i.crs)})})):g(e).map((function(t){return t.data})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(t)?t:p(p({},t),{},{features:t.features&&t.features.filter((function(t){return!h||t.id===h}))}),features:t.features&&t.features.filter((function(t){return!h||t.id===h})),featuresCrs:t&&t.crs&&Object(u.parseURN)(t.crs)}}))}},"./MapStore2/web/client/api/mapBackground.js":function(t,e,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=function(t,e,n,o){var s=Object(r.get)(i.default.getDefaults(),"initialState.defaultState.catalog.default.staticServices.default_map_backgrounds.backgrounds").filter((function(t){return!o||t.title.indexOf(o)>-1})),a=s.filter((function(t,r){return r>=e-1&&r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;nthis.props.maxZoom||this.props.currentZoom+this.props.step=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;nMath.abs(t.startX-n.pageX))e.stopPropagation();else{var i=t.startX1&&s.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),s.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&s.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(e.prototype,n),r&&d(e,r),o}(s.a.Component);y(v,"propTypes",{title:i.a.string,index:i.a.number,size:i.a.number,container:i.a.oneOfType([i.a.object,i.a.func]),useButtons:i.a.bool,onPrevious:i.a.func,onNext:i.a.func,btnClassName:i.a.string}),y(v,"defaultProps",{useButtons:!0}),e.a=v},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),o=Object(r.withHandlers)({onNext:function(t){var e=t.index,n=void 0===e?0:e,r=t.setIndex,i=void 0===r?function(){}:r,o=t.validResponses,s=void 0===o?[]:o;return function(){i(Math.min(s.length-1,n+1))}},onPrevious:function(t){var e=t.index,n=t.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,e-1))}}}),s=Object(r.defaultProps)({format:Object(i.f)(),validator:i.i})},"./MapStore2/web/client/components/help/HelpBadge.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/prop-types/index.js"),o=n.n(i),s=n("./node_modules/react/index.js"),a=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/utils/LocaleUtils.js");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n=t.props.minZoom}))})),t}return e=s,(n=[{key:"shouldComponentUpdate",value:function(t){return!Object(r.isEqual)(t,this.props)}},{key:"render",value:function(){var t=null;return t=this.props.readOnly?a.a.createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?a.a.createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):a.a.createElement(u.Form,{inline:!0},a.a.createElement(u.FormGroup,{bsSize:"small"},a.a.createElement(u.ControlLabel,null,this.props.label),a.a.createElement(u.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),a.a.createElement("div",{id:this.props.id,style:this.props.style},t)}}])&&p(e.prototype,n),i&&p(e,i),s}(a.a.Component);v(b,"propTypes",{id:o.a.string,style:o.a.object,scales:o.a.array,currentZoomLvl:o.a.number,minZoom:o.a.number,onChange:o.a.func,readOnly:o.a.bool,label:o.a.oneOfType([o.a.func,o.a.string,o.a.object]),template:o.a.func,useRawInput:o.a.bool}),v(b,"defaultProps",{id:"mapstore-scalebox",scales:Object(l.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(t){return t<1?Math.round(1/t)+" : 1":"1 : "+Math.round(t)},useRawInput:!1}),e.a=b},"./MapStore2/web/client/components/misc/Button.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),i=n("./node_modules/react/index.js"),o=n.n(i),s=n("./node_modules/classnames/index.js"),a=n.n(s);function u(){return(u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c;e.a=(c=r.Button,o.a.forwardRef((function(t,e){var n=t.disabled,r=t.className,i=t.onClick,s=void 0===i?function(){}:i,d=l(t,["disabled","className","onClick"]);return o.a.createElement(c,u({ref:e,className:n?a()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(t,e,n){"use strict";var r=n("./node_modules/object-assign/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./node_modules/react/index.js"),u=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n0})),S(x(t),"onClickOut",(function(e){t.props.onClickOut&&t.mask===e.target&&t.props.onClickOut(e)})),t}return e=s,(n=[{key:"render",value:function(){var t=this,e=u.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},e):e,r=i()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(e){t.mask=e},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&v(e.prototype,n),r&&v(e,r),s}(u.a.Component);S(_,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),S(_,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),e.a=_},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/web/client/utils/MapInfoUtils.js"),u=n("./node_modules/react-select/dist/react-select.es.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n100?"full":t>40?"medium":"small"},d=function(t){var e=t.size,n=t.style,r=void 0===n?{}:n,i=t.className,o=t.hidden;return s.a.createElement("div",{className:i,style:u({width:e,height:e,overflow:"hidden"},r)},!o&&s.a.createElement("div",{className:"mapstore-".concat(c(e),"-size-loader")}))};d.propTypes={size:i.a.number,className:i.a.string,style:i.a.object},e.a=d},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r);e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.style,n=void 0===e?{display:"inline-block"}:e;return i.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-container-dimensions/lib/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e0?Math.min(o,u):o),p=n||(u>0?Math.min(o,u):o),h=Math.min(d,p);return i.a.createElement(a.a,{size:h,style:l({padding:h/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Overlay.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx");e.a=Object(r.a)(n("./node_modules/react-bootstrap/es/index.js").Overlay)},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),i=n("./node_modules/react-bootstrap/es/index.js");e.a=Object(r.a)(i.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),i=n("./node_modules/react-overlays/es/index.js"),o=Object(r.a)(i.a);e.a=o},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),a=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-addons-css-transition-group/index.js"),c=n.n(l),d=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),p={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},h={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(t){var e=t.initialFullscreenState;return void 0===e?"collapsed":e}))((function(t){var e=t.show,n=void 0!==e&&e,r=t.loading,u=t.loadingText,l=t.onClose,f=void 0===l?function(){}:l,m=t.title,g=void 0===m?"":m,y=t.clickOutEnabled,v=void 0===y||y,b=t.showClose,w=void 0===b||b,E=t.disabledClose,x=void 0!==E&&E,O=t.showFullscreen,S=void 0!==O&&O,_=t.fullscreenType,C=void 0===_?"full":_,j=t.buttons,T=void 0===j?[]:j,I=t.size,N=void 0===I?"":I,P=t.bodyClassName,A=void 0===P?"":P,M=t.children,D=t.draggable,R=void 0!==D&&D,k=t.fullscreenState,L=t.onFullscreen,F=t.fade,G=void 0!==F&&F,B=t.fitContent,U=t.modalClassName,z=void 0===U?"":U,V=t.dialogClassName,H=void 0===V?"":V,q=t.enableFooter,Y=void 0===q||q,W=p[N]||"",X=S&&"expanded"===k&&h.className[C]||"",K=n?i.a.createElement("div",{className:"modal-fixed ".concat(z," ")+(R?"ms-draggable":"")},i.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:v?f:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:"modal-dialog modal-content"+W+X+H+(B?" ms-fit-content":"")},i.a.createElement("span",{role:"header"},i.a.createElement("h4",{className:"modal-title"},i.a.createElement("div",{className:"ms-title"},g),S&&h.className[C]&&i.a.createElement(o.Glyphicon,{className:"ms-header-btn",onClick:function(){return L("expanded"===k?"collapsed":"expanded")},glyph:h.glyph[k][C]}),w&&f&&i.a.createElement(o.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:x}))),i.a.createElement("div",{role:"body",className:A},M),Y&&i.a.createElement("div",{style:{display:"flex"},role:"footer"},i.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?i.a.createElement(d.a,null):null),i.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),i.a.createElement(a.a,{buttons:T})))):null;return G?i.a.createElement(c.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));e.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),l=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function c(){return(c=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=_?["SIZE"]:[])),t)):null})).catch((function(t){return L.current?(B(!1),D(t)):null}))}}),y?i.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},i.a.createElement("div",{ref:e,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=T&&T.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),i.a.createElement("div",{className:"dropzone-content-image-added"},m),U):i.a.createElement("div",{className:"dropzone-content-image"},m,U,g&&i.a.createElement("div",{className:"dropzone-errors"},g))))}));e.a=m},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(t){for(var e=1;e div")||document.body}))}}},"./MapStore2/web/client/components/misc/coordinateeditors/CoordinateEntry.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/I18N/IntlNumberFormControl.jsx");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;nr?"error":null})),v(g(t),"validateDecimalLat",(function(e){var n=t.props.constraints[t.props.format].lat.min,r=t.props.constraints[t.props.format].lat.max,i=parseFloat(e);return isNaN(i)||ir?"error":null})),t}return e=s,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.coordinate,r=e.value,o=e.onChange,s="validateDecimal"+Object(a.capitalize)(n);return i.a.createElement(u.FormGroup,{validationState:this[s](r)},i.a.createElement(l.a,{key:n,value:r,placeholder:n,onChange:function(e){""===e&&o(""),null===t[s](e)&&o(e)},onKeyDown:this.verifyOnKeyDownEvent,step:1,validateNameFunc:this[s],type:"number"}))}}])&&p(e.prototype,n),r&&p(e,r),s}(i.a.Component);v(b,"propTypes",{idx:s.a.number,value:s.a.number,constraints:s.a.object,format:s.a.string,coordinate:s.a.string,onChange:s.a.func,onKeyDown:s.a.func,onSubmit:s.a.func}),v(b,"defaultProps",{format:"decimal",coordinate:"lat",constraints:{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}},onKeyDown:function(){}});var w=b,E=n("./node_modules/recompose/es/Recompose.js"),x=Object(E.withProps)((function(t){var e=t.coordinate,n=void 0===e?"lat":e;return{maxDegrees:"lat"===n?90:180,directions:"lat"===n?["N","S"]:["E","W"]}})),O=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),S=Object(E.compose)(Object(E.withProps)((function(t){return{isValid:""!==t.value}})),Object(E.withState)("initial","setInitial",{}),Object(E.withProps)((function(t){var e=t.isValid,n=t.initial,r=t.degrees,i=t.minutes,o=t.seconds;return e||""===r&&""===i&&""===o?{}:n})),Object(E.withHandlers)({onChange:function(t){return function(e){var n=e.degrees,r=e.minutes,i=e.seconds,o=e.direction;isNaN(n)?t.setInitial({degrees:"",minutes:r,seconds:i,direction:o}):isNaN(r)?t.setInitial({degrees:n,minutes:"",seconds:i,direction:o}):isNaN(i)&&t.setInitial({degrees:n,minutes:r,seconds:"",direction:o}),t.onChange({degrees:n,minutes:r,seconds:i,direction:o})}}}));function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e=0?s=r.degrees:r.minutes<0&&r.degrees<=0?(s=0,o=r.minutes):(s=0,o=0,i=1e-4)),{degrees:s,minutes:o,seconds:i,direction:a}}catch(t){return null}})),R(M(t),"getSexagesimalStep",(function(t){return t>=60?1:t<0?-1:0})),R(M(t),"getInputStyle",(function(t){return isNaN(t)||""===t?{borderColor:"#a94442"}:{}})),R(M(t),"verifyOnKeyDownEvent",(function(e){69===e.keyCode&&e.preventDefault(),13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),t.props.onKeyDown())})),R(M(t),"roundToNextSexagesimalStep",(function(t){return t<0?60+t:t>=60?t-60:t})),R(M(t),"isValid",(function(e){var n=e.minutes,r=e.seconds,i=e.degrees,o=e.direction;return!Object(a.isNil)(n)&&n>0&&n<60&&!Object(a.isNil)(r)&&r>0&&r<60&&!Object(a.isNil)(i)&&i>0&&ii&&"lat"===o?Math.sign(t)*i:t)}}}));function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){return(B=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{seconds:{decimals:4}},i=n.seconds,o=t>=0?Math.floor(t):Math.ceil(t),s=Math.abs(60*(t-o)),a=Math.floor(s),u=60*(s-a),l=Object(r.round)(u,i.decimals);if(o=Math.abs(o),60===l&&(a++,l=0),60===a&&(o++,a=0),Object(r.isNaN)(o)||""===t)return{degrees:"",minutes:"",seconds:"",direction:e?"E":"N"};var c={degrees:o,minutes:a,seconds:l,direction:t<0?e?"W":"S":e?"E":"N"};return c}(t.value,"lon"===t.coordinate,t.aeronauticalOptions))})),Object(i.withHandlers)({onChange:function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.degrees,i=e.minutes,o=e.seconds,s=e.direction,a=0,u=0,l=0;void 0===n&&void 0===i&&void 0===o&&t.onChange(void 0),Object(r.isNaN)(n)||(a=n),Object(r.isNaN)(i)||(u=i),Object(r.isNaN)(o)||(l=o);var c=a+u/60+l/3600;(c>0&&("S"===s||"W"===s)||c<0&&("N"===s||"E"===s))&&(c*=-1),t.onChange(c.toPrecision(12))}}}))},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");e.a=Object(o.branch)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.disabled,n=t.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&e)}),a.a,(function(t){return function(e){return i.a.createElement(t,Object(s.omit)(e,["tooltipId","tooltip","noTooltipWhenDisabled"]),e.children)}}))},"./MapStore2/web/client/components/misc/enhancers/draggableComponent.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dnd/lib/index.js"),s=n("./node_modules/recompose/es/Recompose.js");function a(){return(a=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={beginDrag:function(t){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.isDraggable;return e}),Object(s.compose)(Object(o.DragSource)("row",d,(function(t,e){return{connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview(),isDragging:e.isDragging(),draggingItem:e.getItem()||null}})),Object(o.DropTarget)("row",{drop:function(t,e){var n=e.getItem();n.sortId!==t.sortId&&t.onSort(t.sortId,n.sortId,{id:t.id,containerId:t.containerId},{id:n.id,containerId:n.containerId})}},(function(t,e){return{connectDropTarget:t.dropTarget(),isOver:e.isOver()}})),(function(t){return function(e){var n=e.connectDragSource,r=e.connectDragPreview,o=e.connectDropTarget,s=e.isDragging,l=e.isOver,c=u(e,["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"]),d=c.draggingItem&&c.draggingItem.sortId0&&void 0!==arguments[0]?arguments[0]:u,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;return Object(o.branch)(t,(function(){return function(t){var r=t.loaderProps;return i.a.createElement(n,a({},e,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=n("./node_modules/prop-types/index.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js");function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(e))return e.map((function(i){var o=Object(r.f)(t,i[n]||Object(s.isString)(i)&&i||"");return c(c({},i),{},d({},n,Object(s.isNil)(o)?e:o))}));var i=Object(r.f)(t,e);return Object(s.isNil)(i)?e:i},h=function(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},i,t[i]&&p(e,t[i],n)))}};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(a.compose)(Object(a.getContext)({messages:o.a.object}),Object(a.mapProps)((function(n){var r=n.messages,i=u(n,["messages"]);return c(c({},i),Object(s.castArray)(t).reduce(h(i,r,e),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=Object(o.branch)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tooltip,n=t.tooltipId;return e||n}),(function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.tooltip,r=e.tooltipId,o=e.tooltipPosition,l=void 0===o?"top":o,d=e.tooltipTrigger,p=e.keyProp,h=e.idDropDown,f=e.args,m=c(e,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return i.a.createElement(a.a,{trigger:d,id:h,key:p,placement:l,overlay:i.a.createElement(s.Tooltip,{id:"tooltip-"+p},r?i.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},i.a.createElement(t,m))}}),(function(t){return function(e){return i.a.createElement(t,Object(l.omit)(e,["tooltipId","tooltip"]),e.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withMask.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=function(t,e,n){var r=n.maskContainerStyle,s=n.maskStyle,a=n.className,u=n.white;return function(n){return Object(o.nest)((function(n){return i.a.createElement("div",{className:"ms2-mask-container ".concat(a||""," ").concat(t(n)?"":"ms2-mask-empty"),style:r},n.children,t(n)?i.a.createElement("div",{className:"ms2-mask"+(u?" white-mask":""),style:s},e(n)):null)}),n)}};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.alwaysWrap,i=void 0===r||r,a=n.white,u=void 0!==a&&a,l=n.maskContainerStyle,c=void 0===l?{}:l,d=n.maskStyle,p=void 0===d?{}:d,h=n.className;return i?s(t,e,{maskContainerStyle:c,maskStyle:p,className:h,white:u}):Object(o.branch)(t,s((function(){return!0}),e,{maskContainerStyle:c,maskStyle:p,white:u}))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/react-dom/index.js"),l=n.n(u),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.debounceTime,n=t.querySelector,r=t.closest,s=void 0!==r&&r;return function(t){var r,u;return u=r=function(r){m(u,r);var a=y(u);function u(t){var r;return p(this,u),E(b(r=a.call(this,t)),"findDomNode",(function(){if(!r.isMounded)return null;var t=l.a.findDOMNode(b(r));return t&&s&&n?t.closest(n||"*"):t&&(n?t.querySelector(n):t)})),r.width=void 0,r.height=void 0,r.skipOnMount=t.skipOnMount,r.onResize=Object(o.debounce)((function(){var t;return(t=r.props).onResize.apply(t,arguments)}),void 0!==e?e:t.debounceTime||1e3),r.ro=new c.a((function(t){t.forEach((function(t){var e=t.contentRect,n=e.width,i=e.height,o=r.props.handleWidth&&r.width!==n,s=r.props.handleHeight&&r.height!==i;r.skipOnMount||!o&&!s||r.onResize({width:n,height:i}),r.width=n,r.height=i,r.skipOnMount=!1}))})),r}return f(u,[{key:"componentDidMount",value:function(){this.isMounded=!0;var t=this.findDomNode();t&&this.ro.observe(t)}},{key:"componentWillUnmount",value:function(){var t=this.findDomNode();t&&this.ro&&this.ro.unobserve&&this.ro.unobserve(t)}},{key:"render",value:function(){return i.a.createElement(t,this.props)}}]),u}(i.a.Component),E(r,"propTypes",{handleWidth:a.a.bool,handleHeight:a.a.bool,onResize:a.a.func}),E(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),u}}},"./MapStore2/web/client/components/misc/panels/DockPanel.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dock/lib/index.js"),s=n.n(o),a=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}},p=function(t){var e=t.position,n=void 0===e?"right":e,r=t.onClose,o=t.bsStyle,s=void 0===o?"default":o,a=t.title,u=void 0===a?"":a,p=t.fullscreen,h=void 0!==p&&p,f=t.showFullscreen,m=void 0!==f&&f,g=t.glyph,y=void 0===g?"info-sign":g,v=t.additionalRows,b=t.onFullscreen,w=void 0===b?function(){}:b,E=r?i.a.createElement(c.a,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:s},i.a.createElement(l.Glyphicon,{glyph:"1-close"})):null,x=m?i.a.createElement(c.a,{key:"ms-header-glyph",className:"square-button",bsStyle:s,onClick:function(){return w(!h)}},i.a.createElement(l.Glyphicon,{glyph:d[n]&&d[n][h]||"resize-full"})):i.a.createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+s),style:{display:"flex"}},i.a.createElement(l.Glyphicon,{glyph:y,className:"".concat("default"===s?"text-primary":"")})),O="left"===n?[E,x]:[x,E];return i.a.createElement(l.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+s},i.a.createElement(l.Row,null,i.a.createElement(l.Col,{xs:2},O[0]),i.a.createElement(l.Col,{xs:8},i.a.createElement("h4",null,u)),i.a.createElement(l.Col,{xs:2},O[1])),v)};e.a=Object(u.withState)("fullscreen","onFullscreen",!1)((function(t){var e=t.fluid,n=t.className,r=void 0===n?"":n,o=t.fullscreen,u=void 0!==o&&o,l=t.position,c=t.open,d=t.size,h=void 0===d?550:d,f=t.style,m=void 0===f?{}:f,g=t.zIndex,y=void 0===g?1030:g,v=t.onClose,b=t.bsStyle,w=t.title,E=t.showFullscreen,x=void 0!==E&&E,O=t.glyph,S=t.header,_=t.footer,C=t.children,j=t.onFullscreen,T=void 0===j?function(){}:j,I=t.fixed,N=void 0!==I&&I,P=t.resizable,A=void 0!==P&&P,M=t.hideHeader;return i.a.createElement("div",{className:"ms-side-panel "+(N?"":"ms-absolute-dock ")+(A?"":"react-dock-no-resize ")+r},i.a.createElement(s.a,{fluid:e||u,position:l,dimMode:"none",isVisible:c,size:u?1:h,dockStyle:m,zIndex:y},i.a.createElement(a.a,{header:!M&&c&&i.a.createElement(p,{position:l,onClose:v,bsStyle:b,title:w,fullscreen:u,showFullscreen:x,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&_},c&&C)))}))},"./MapStore2/web/client/components/misc/panels/DockablePanel.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),a=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),u=n("./MapStore2/web/client/components/misc/ResizableModal.jsx");function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c=Object(o.renameProps)({open:"show"})((function(t){var e=t.children,n=t.header,r=l(t,["children","header"]);return i.a.createElement(u.a,r,i.a.createElement(s.a,{header:i.a.createElement("div",{className:"ms-header"},n)},e))}));e.a=Object(o.branch)((function(t){return!t.dock}),(function(){return function(t){return i.a.createElement(c,t)}}))(a.a)},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n0&&this.props.expanded&&i.a.createElement(l.a,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return i.a.createElement(a.Panel,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&_(e.prototype,n),r&&_(e,r),s}(i.a.Component);P(D,"propTypes",{header:s.a.node,title:s.a.oneOfType([s.a.string,s.a.node]),defaultExpanded:s.a.string,expanded:s.a.bool,onSwitch:s.a.func,locked:s.a.bool,buttons:s.a.array,loading:s.a.bool,error:s.a.any,errorMsgId:s.a.string,transitionProps:s.a.object,useToolbar:s.a.bool}),P(D,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});e.a=D},"./MapStore2/web/client/components/misc/toolbar/DropdownToolbarOptions.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./node_modules/uuid/v1.js"),u=n.n(a);function l(){return(l=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.menuOptions,n=void 0===e?[]:e,i=t.buttonConfig,o=void 0===i?{}:i;return s.a.createElement(c,l({},d,o),n.length?n.map((function(t,e){var n=t.glyph,i=t.text,o=t.onClick,a=t.active,u=void 0!==a&&a;return s.a.createElement(r.MenuItem,{active:u,eventKey:e,onClick:o,key:e},n&&s.a.createElement(r.Glyphicon,{glyph:n})," ",i)})):null)}},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function l(){return(l=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.buttons,n=void 0===e?[]:e,r=t.btnGroupProps,o=void 0===r?{}:r,d=t.btnDefaultProps,p=void 0===d?{}:d,h=t.transitionProps,f=void 0===h?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:h,m=function(){return n.map((function(t,e){var n=t.visible,r=void 0===n||n,o=t.Element,s=t.renderButton,a=c(t,["visible","Element","renderButton"]);return r?s||(o&&i.a.createElement(o,l({key:a.key||e},a))||i.a.createElement(u.a,l({key:a.key||e},p,a))):null}))};return i.a.createElement(a.ButtonGroup,o,f?i.a.createElement(s.a,f,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function h(){return(h=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=Object(o.compose)(c.a,d.a)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.glyph,n=t.loading,r=t.text,o=void 0===r?"":r,c=t.textId,d=t.glyphClassName,m=void 0===d?"":d,g=t.loaderProps,y=void 0===g?{}:g,v=t.children,b=f(t,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return i.a.createElement(p.a,Object(a.omit)(b,["pullRight","confirmNo","confirmYes"]),e&&!n?i.a.createElement(u.Glyphicon,{glyph:e,className:m}):null,c?i.a.createElement(s.default,{msgId:c}):o,n?i.a.createElement(l.a,h({className:"ms-loader".concat(b.bsStyle&&" ms-loader-"+b.bsStyle||"").concat(b.bsSize&&" ms-loader-"+b.bsSize||"")},y)):null,v)}))},"./MapStore2/web/client/components/time/InlineDateTimeSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/moment/moment.js"),l=n.n(u),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(t){return t};if(""!==n){var i=l()(t.props.date).utc(),o=i["day"===e?"date":e]&&l()(i)["day"===e?"date":e](r(n));o.isValid()&&!isNaN(o.toDate().getTime())&&t.props.onUpdate(o.toISOString())}})),E(b(t),"getForm",(function(){var e=t.props.date&&l()(t.props.date).utc();return[{name:"icon",value:"calendar",type:"icon"},{name:"day",placeholder:"DD",value:e&&e.date()},{name:"month",placeholder:"MM",readOnly:!0,value:e&&e.month(),format:function(t){return!Object(o.isNil)(t)&&""!==t&&l.a.monthsShort(t)},parseValue:function(t){return t-1}},{name:"year",placeholder:"YYYY",value:e&&e.year()},{name:"icon",value:"time",type:"icon"},{name:"hours",placeholder:"hh",value:e&&e.hours()},{name:"separator",value:":",type:"separator"},{name:"minutes",placeholder:"mm",value:e&&e.minutes()},{name:"separator",value:":",type:"separator"},{name:"seconds",placeholder:"ss",value:e&&e.seconds()},{name:"separator",value:e&&e.utcOffset(),type:"separator",format:function(t){return"UTC "+(t>=0?"+":"-")+Object(o.padStart)(t/60,2,0)}}]})),t}return e=a,(n=[{key:"render",value:function(){var t=this,e=this.getForm();return i.a.createElement(c.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},i.a.createElement(c.FormGroup,{controlId:"inlineDateTime"},this.props.glyph&&i.a.createElement("div",{style:this.props.clickable?{cursor:"pointer"}:{},onClick:function(){return t.props.clickable&&t.props.onIconClick(t.props.date,t.props.glyph)}},i.a.createElement(x,{tooltip:this.props.clickable?this.props.tooltip:void 0,tooltipId:this.props.clickable?this.props.tooltipId:void 0,className:"ms-inline-datetime-icon",glyph:this.props.glyph})),e.map((function(e){return"icon"===e.type&&i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},i.a.createElement(x,{glyph:e.value}))||"separator"===e.type&&i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},e.format&&e.format(e.value)||e.value)||i.a.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(e.name)},t.props.showButtons&&i.a.createElement(p.a,{bsSize:"xs",disabled:!t.props.date,onClick:function(){return t.onUpdate(e.name,!0)}},i.a.createElement(x,{glyph:"chevron-up"})),i.a.createElement(c.FormControl,{type:"text",readOnly:e.readOnly,placeholder:e.placeholder||e.name,disabled:!t.props.date,value:e.format&&e.format(e.value)||e.value,onChange:function(n){return t.onChange(e.name,n.target.value,e.parseValue)}}),t.props.showButtons&&i.a.createElement(p.a,{bsSize:"xs",disabled:!t.props.date,onClick:function(){return t.onUpdate(e.name)}},i.a.createElement(x,{glyph:"chevron-down"})))}))))}}])&&m(e.prototype,n),r&&m(e,r),a}(i.a.Component);E(O,"propTypes",{date:a.a.string,clickable:a.a.bool,onUpdate:a.a.func,onIconClick:a.a.func,glyph:a.a.string,style:a.a.object,className:a.a.string,tooltip:a.a.string,tooltipId:a.a.string,showButtons:a.a.bool}),E(O,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),e.a=O},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-dom/index.js"),s=n.n(o),a=n("./node_modules/prop-types/index.js"),u=n.n(a),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.n)(t),r=Object(m.m)(t),i=Object(m.p)(t),o=Object(m.i)(n)(t);return[i,r,"time",S({limit:1},e),o]},j=function(t,e,n){if(Object(m.m)(t))return i.a.Observable.forkJoin(v.b.apply(void 0,w(C(t,{sort:"asc",fromValue:n}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return b(t,1)[0]})).catch((function(t){return t&&i.a.Observable.of(null)})),v.b.apply(void 0,w(C(t,{sort:"desc",fromValue:n}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return b(t,1)[0]})).catch((function(t){return t&&i.a.Observable.of(null)}))).map((function(t){return Object(y.d)(t.filter((function(t){return!!t})),n)||n}));var r=Object(g.e)(Object(f.g)(t,e))(t);return i.a.Observable.of(Object(y.d)(r,n)||n)},T=function(t){return Object(o.isString)(t)?t:t.toISOString()},I=function(t,e,n){var r=e.domain.split("--"),s=Object(m.j)(n())||{start:new Date(r[0]),end:new Date(r[1])},a=Object(y.j)(s,20),u=a.range,l=a.resolution,c=Object(f.g)(n(),t).name,d=_({},"time","".concat(T(u.start),"/").concat(T(u.end)));return Object(v.c)(e.source.url,c,"time",_({},"time","".concat(T(u.start),"/").concat(T(u.end))),l,Object(m.i)(t)(n())).merge(Object(v.a)(e.source.url,c,d,S(S({},Object(m.i)(t)(n())),{},{expandLimit:20}))).scan((function(t,e){return S(S({},t),e)}),{}).switchMap((function(t){var e,n=t.Histogram,r=t.Domains,s=Object(o.get)(Object(o.head)(Object(o.castArray)(Object(o.get)(r,"DimensionDomain")||[]).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.Identifier;return"time"===e}))),"Domain");try{e=n&&n.Values&&n.Values.split(",").map((function(t){return parseInt(t,10)}))||[]}catch(t){e=[]}var a=s&&s.indexOf("--")<0&&s.split(",");return i.a.Observable.of({range:u,histogram:n&&n.Domain?{values:e,domain:n.Domain}:void 0,domain:s?{values:a}:void 0})}))},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.g).throttleTime(100).switchMap((function(t){var e=t.time,n=t.group,o=r();return n?j(o,n,e).switchMap((function(t){var e=Object(m.j)(o)||{},n=e.start,r=e.end,s=[];if(n&&r&&(a()(t).isBefore(n)||a()(t).isAfter(r))){var u=a()(r).diff(n);s=[Object(c.l)({start:a()(t).subtract(u/2),end:a()(t).add(u/2)})]}return i.a.Observable.from([].concat(w(s),[Object(d.g)(t)]))})).let(Object(u.a)(Object(c.r)(!1,!0),Object(c.r)(!1,!1))):i.a.Observable.of(Object(d.g)(e))}))},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(p.t,c.a).exhaustMap((function(){return Object(m.c)(r())&&Object(o.get)(Object(m.q)(r()),"[0].id")&&!Object(m.n)(r())?i.a.Observable.of(Object(c.n)(Object(o.get)(Object(m.q)(r()),"[0].id"))).concat(i.a.Observable.of(1).switchMap((function(){return j(r(),Object(o.get)(Object(m.q)(r()),"[0].id"),Object(g.a)(r)||(new Date).toISOString()).filter((function(t){return t})).map((function(t){return Object(d.g)(t)}))}))):i.a.Observable.empty()}))},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.b).switchMap((function(t){var e=r(),n=Object(g.a)(e),o=Object(m.j)(e);if(t.enabled){var s=o||{},u=s.start,l=void 0===u?0:u,p=s.end,h=void 0===p?432e6:p,f=Object(g.h)(e),y=a()(h).diff(l),v=o?a()(l).add(y/2).toISOString():a()(new Date).toISOString(),b=a()(n||v).add(y/5),w=t.enabled&&!n?i.a.Observable.of(Object(d.g)(v)):i.a.Observable.empty(),E=t.enabled&&!f||t.enabled&&a()(f).diff(n)<0?i.a.Observable.of(Object(d.f)(b.toISOString())):i.a.Observable.empty(),x=o?i.a.Observable.empty():i.a.Observable.of(Object(c.l)({start:a()(v).add(-1*y/2),end:a()(v).add(y/2)}));return w.concat(E).concat(x)}return i.a.Observable.of(Object(d.f)())}))},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.d).merge(t.ofType(l.e).filter((function(){return Object(m.e)(r())})),t.ofType(c.i)).debounceTime(400).merge(t.ofType(d.d).debounceTime(50)).switchMap((function(){var t,e=Object(g.i)(r())||{},n=Object.keys(e).filter((function(t){return e[t]&&e[t].domain&&Object(y.i)(e[t].domain)||Object(m.e)(r())}));return(t=i.a.Observable).merge.apply(t,w(n.map((function(t){return I(t,e[t],r).map((function(e){var n=e.range,r=e.histogram,i=e.domain;return Object(c.m)(t,n,r,i)})).startWith(Object(c.r)(t,!0)).catch((function(){return i.a.Observable.of(Object(h.f)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"}))})).concat(i.a.Observable.of(Object(c.r)(t,!1)))}))))}))};e.default={setTimelineCurrentTime:N,setupTimelineExistingSettings:P,settingInitialOffsetValue:A,updateRangeDataOnRangeChange:M}},"./MapStore2/web/client/observables/epics.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/rxjs/Rx.js"),o=n.n(i);function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[];return t.startWith.apply(t,s(e))},l=function(t,e,n){return function(i){return(n?u(i,Object(r.castArray)(t)).catch(n):u(i,Object(r.castArray)(t))).concat(o.a.Observable.from(Object(r.castArray)(e)))}}},"./MapStore2/web/client/observables/wms.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return b}));var r=n("./node_modules/url/url.js"),i=n.n(r),o=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),s=n.n(o),a=n("./node_modules/rxjs/Rx.js"),u=n("./MapStore2/web/client/api/WMS.js"),l=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(l),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),h=n("./MapStore2/web/client/utils/SecurityUtils.js");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.search,r=void 0===n?{}:n,o=t.url,s=i.a.parse(r.url||o,!0);return i.a.format(m(m({},s),{},{search:void 0,query:m(m({},s.query),{},{service:"WMS",version:"1.1.1",layers:e,outputFormat:"application/json",request:"DescribeLayer"})}))}(t))})).let(p.b)},v=function(t){return a.Observable.defer((function(){return u.a.getCapabilities(Object(d.getCapabilitiesUrl)(t))})).let(p.b).map((function(e){return u.a.parseLayerCapabilities(e,t)}))},b=function(t){return y(t).map((function(t){var e=t.data,n=void 0===e?{}:e;return n&&n.layerDescriptions[0]})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.owsURL;return m(m({},t),{},{params:{},search:n?{type:"wfs",url:Object(h.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/plugins/BackgroundSelector.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),i=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/actions/controls.js"),a=n("./MapStore2/web/client/actions/layers.js"),u=n("./MapStore2/web/client/actions/backgroundselector.js"),l=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/selectors/layers.js"),d=n("./MapStore2/web/client/selectors/map.js"),p=n("./MapStore2/web/client/selectors/backgroundselector.js"),h=n("./MapStore2/web/client/selectors/maplayout.js"),f=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js"),m=n("./MapStore2/web/client/utils/PluginsUtils.js"),g=n("./MapStore2/web/client/reducers/controls.js"),y=n("./MapStore2/web/client/actions/catalog.js"),v=n("./node_modules/object-assign/index.js"),b=n.n(v);var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case u.a:return b()({},t,{source:e.source});case y.v:return b()({},t,{source:"metadataExplorer"});case u.k:return b()({},t,{modalParams:e.modalParams});case u.d:return b()({},t,{backgrounds:[],removedBackgroundsThumbIds:[],modalParams:{},lastRemovedId:void 0});case u.m:if(e.id){var n=t.backgrounds||[],r=-1===n.findIndex((function(t){return t.id===e.id})),i=r?n.concat({id:e.id}):n,o=i.map((function(t){return t.id===e.id?b()({},t,{id:e.id,thumbnail:e.thumbnailData}):b()({},t)}));return b()({},t,{backgrounds:o})}return t;case u.g:return b()({},t,{modalParams:void 0});case u.j:var s=t.backgrounds||[],a=t.removedBackgroundsThumbIds||[],l=s.filter((function(t){return t.id!==e.backgroundId})),c=s.filter((function(t){return t.id===e.backgroundId&&!!t.thumbId})).map((function(t){return t.thumbId}));return b()({},t,{backgrounds:l,removedBackgroundsThumbIds:a.concat(c),lastRemovedId:e.backgroundId});case u.i:return b()({},t,{backgrounds:e.backgrounds});case u.h:return b()({},t,{confirmDeleteBackgroundModal:{show:e.show,layerTitle:e.layerTitle,layerId:e.layerId}});case u.c:return b()({},t,{allowDeletion:e.allow||!1});default:return t}},E=n("./node_modules/rxjs/Rx.js"),x=n.n(E),O=n("./MapStore2/web/client/actions/config.js"),S=n("./MapStore2/web/client/observables/wms.js"),_=n("./MapStore2/web/client/utils/LayersUtils.js");function C(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(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.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?M.a.createElement(L.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:this.props.showAdd?[{glyph:"plus",tooltipId:"backgroundSelector.addTooltip",onClick:function(){return t.props.onAdd()}}]:[]}):null)}}])&&B(e.prototype,n),r&&B(e,r),o}(M.a.Component);q(Y,"propTypes",{src:k.a.string,side:k.a.number,frame:k.a.number,margin:k.a.number,labelHeight:k.a.number,label:k.a.string,showLabel:k.a.bool,onToggle:k.a.func,onAdd:k.a.func,showAdd:k.a.bool}),q(Y,"defaultProps",{src:"./images/mapthumbs/none.jpg",side:50,frame:4,margin:5,labelHeight:29,label:"",showLabel:!0,onToggle:function(){},onAdd:function(){}});var W=Y,X=n("./node_modules/react-bootstrap/es/index.js");function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n-1,n="wmts"===this.props.layer.type&&Object(o.has)(this.props.layer.allowedSRS,this.props.projection),r=this.props.vertical?"background-preview-icon-container-vertical":"background-preview-icon-container-horizontal",i=this.props.layer.visibility?" bg-primary":" bg-body",s=(e||n||Object(o.includes)(["wms","empty","osm"],this.props.layer.type))&&!this.props.layer.invalid,a=s?function(){t.props.onToggle(),t.props.onPropertiesChange(t.props.layer.id,{visibility:!0}),t.props.setCurrentBackgroundLayer(t.props.layer.id)}:function(){};return M.a.createElement("div",{className:r+i+(s?"":" disabled-icon"),style:{padding:this.props.frame/2,marginLeft:this.props.vertical?this.props.margin:0,marginRight:this.props.vertical?0:this.props.margin,marginBottom:this.props.margin,width:this.props.side+this.props.frame,height:this.props.side+this.props.frame}},M.a.createElement("div",{className:"background-preview-icon-frame",style:{width:this.props.side,height:this.props.side}},M.a.createElement("img",{onMouseOver:function(){t.props.onLayerChange("tempLayer",t.props.layer)},onMouseOut:function(){t.props.onLayerChange("tempLayer",t.props.currentLayer)},onClick:a,src:this.props.src})))}}])&&yt(e.prototype,n),r&&yt(e,r),s}(M.a.Component);xt(Ot,"propTypes",{side:k.a.number,frame:k.a.number,margin:k.a.number,src:k.a.string,vertical:k.a.bool,layer:k.a.object,currentLayer:k.a.object,onPropertiesChange:k.a.func,onToggle:k.a.func,onLayerChange:k.a.func,setCurrentBackgroundLayer:k.a.func,projection:k.a.string}),xt(Ot,"defaultProps",{side:50,frame:4,margin:5,src:"",vertical:!1,layer:{},currentLayer:{},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){}});var St=Ot,_t=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),Ct=n("./node_modules/react-select/dist/react-select.es.js"),jt=n("./node_modules/uuid/v1.js"),Tt=n.n(jt),It=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),Nt=n("./MapStore2/web/client/components/misc/Button.jsx"),Pt=n("./MapStore2/web/client/utils/ResourceUtils.js"),At=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(t,e){for(var n=0;n0){var r=n[0],i=new FileReader;return i.onload=function(t){return e(t.target.result,r.size)},i.readAsDataURL(r)}return e(null)})),Ut(Gt(t),"getThumbnailDataUri",(function(e){t.getDataUri(t.files,e)})),Ut(Gt(t),"generateUUID",(function(){var t=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))})),Ut(Gt(t),"processUpdateThumbnail",(function(e,n,r){var i=t.generateUUID();!t.props.map||r||!t.props.map.thumbnail||t.refs.imgThumbnail||n||t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!0),t.props.map&&!r&&t.props.map.newThumbnail&&!t.refs.imgThumbnail&&n&&(t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id)),t.props.map.newThumbnail&&r&&t.refs.imgThumbnail&&(t.deleteThumbnail(t.props.map.thumbnail,null,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id)),t.props.map.newThumbnail&&!r&&t.refs.imgThumbnail&&t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id),t.props.map.newThumbnail||r||t.refs.imgThumbnail||(t.props.map.thumbnail&&n&&t.deleteThumbnail(t.props.map.thumbnail,t.props.map.id,!1),t.props.onSaveAll(e,n,i,r,"THUMBNAIL",t.props.map.id))})),Ut(Gt(t),"updateThumbnail",(function(e,n){t.props.map.errors&&t.props.map.errors.length||t.getDataUri(t.files,(function(r){return t.processUpdateThumbnail(e,n,r),r}))})),Ut(Gt(t),"deleteThumbnail",(function(e,n){if(e&&-1!==e.indexOf("geostore")){var r=Object(Pt.a)(e);r&&t.props.onDeleteThumbnail(r,n)}})),t}return e=o,(n=[{key:"renderThumbnailErrors",value:function(){return this.props.thumbnailErrors&&this.props.thumbnailErrors.length>0?M.a.createElement("div",{className:"dropzone-errorBox alert-danger"},M.a.createElement("p",null,M.a.createElement(D.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(t){return M.a.createElement("div",{id:"error"+t,key:"error"+t,className:"error"+t},zt[t])}))):null}},{key:"render",value:function(){var t=this;return M.a.createElement(At.a,{ref:"imgThumbnail",thumbnail:this.getThumbnailUrl(),className:null,dropZoneProps:{className:"dropzone alert alert-info",rejectClassName:"alert-danger"},loading:this.props.loading,maxFileSize:this.props.maxFileSize,style:{pointerEvents:this.props.map.saving?"none":"auto"},label:this.props.withLabel&&M.a.createElement("label",{className:"control-label"},M.a.createElement(D.default,{msgId:"map.thumbnail"})),"ù":!0,message:M.a.createElement(M.a.Fragment,null,this.props.message,M.a.createElement("br",null),this.props.suggestion),error:this.renderThumbnailErrors(),onUpdate:function(e,n){var r;t.props.onError([],t.props.map.id),t.files=n,t.props.onUpdate(e,null==n||null===(r=n[0])||void 0===r?void 0:r.preview)},onError:function(e,n){t.props.onError(e,t.props.map.id),t.files=n,t.props.onUpdate(null,null)},onRemove:function(){t.files=null,t.props.onUpdate(null,null),t.props.onRemoveThumbnail(),t.props.onError([],t.props.map.id)}})}}])&&Rt(e.prototype,n),r&&Rt(e,r),o}(M.a.Component);Ut(Vt,"propTypes",{glyphiconRemove:k.a.string,style:k.a.object,thumbnailErrors:k.a.array,loading:k.a.bool,withLabel:k.a.bool,map:k.a.object,maxFileSize:k.a.number,onDrop:k.a.func,onError:k.a.func,onUpdate:k.a.func,onSaveAll:k.a.func,onCreateThumbnail:k.a.func,onDeleteThumbnail:k.a.func,onRemoveThumbnail:k.a.func,message:k.a.oneOfType([k.a.string,k.a.element]),suggestion:k.a.oneOfType([k.a.string,k.a.element])}),Ut(Vt,"contextTypes",{messages:k.a.object}),Ut(Vt,"defaultProps",{loading:!1,withLabel:!0,glyphiconRemove:"remove-circle",maxFileSize:5e5,onDrop:function(){},onError:function(){},onUpdate:function(){},onSaveAll:function(){},onRemoveThumbnail:function(){},onCreateThumbnail:function(){},onDeleteThumbnail:function(){},message:M.a.createElement(D.default,{msgId:"map.message"}),suggestion:M.a.createElement(D.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var Ht=Vt,qt=n("./MapStore2/web/client/utils/LocaleUtils.js"),Yt=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kt(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $t(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(t,e)}(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.")}()}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?M.a.createElement("div",{className:"dropzone-errorBox alert-danger"},M.a.createElement("p",null,M.a.createElement(D.default,{msgId:"map.error"})),this.state.thumbnailErrors.map((function(e){return M.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},t[e])}))):null}},{key:"renderSpecificTypeForm",value:function(){var t=this;return"wms"===this.props.layer.type?M.a.createElement(M.a.Fragment,null,M.a.createElement(X.FormGroup,{controlId:"formControlsSelect"},M.a.createElement(X.ControlLabel,null,M.a.createElement(D.default,{msgId:"layerProperties.format"})),M.a.createElement(Ct.default,{onChange:function(e){return t.setState({format:e&&e.value})},value:this.state.format||this.props.defaultFormat,clearable:!0,options:this.props.formatOptions})),this.renderStyleSelector(),M.a.createElement(se,null,M.a.createElement("div",{style:{display:"flex",alignItems:"center"}},M.a.createElement(X.ControlLabel,{style:{flex:1}},M.a.createElement(D.default,{msgId:"backgroundDialog.additionalParameters"})),M.a.createElement(se,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var e=Math.max.apply(Math,$t(t.state.additionalParameters.length>0?t.state.additionalParameters.map((function(t){return t.id})):[-1]))+1;t.setState({additionalParameters:[].concat($t(t.state.additionalParameters),[{id:e,type:"string",param:"",val:""}])})}},M.a.createElement(X.Glyphicon,{glyph:"plus"}))),this.state.additionalParameters.map((function(e){return M.a.createElement("div",{key:"val:"+e.id,style:{display:"flex",marginTop:8}},M.a.createElement("div",{style:{display:"flex",flex:1,marginRight:8}},M.a.createElement(X.FormControl,{style:{width:"50%",marginRight:8,minWidth:0},placeholder:Object(qt.f)(t.context.messages,"backgroundDialog.parameter"),value:e.param,onChange:function(n){return t.addAdditionalParameter(n.target.value,"param",e.id,e.type)}}),"boolean"===e.type?M.a.createElement("div",{style:{width:"50%"}},M.a.createElement(Ct.default,{onChange:function(n){return t.addAdditionalParameter(n.value,"val",e.id,e.type)},clearable:!1,value:e.val,options:t.props.booleanOptions})):M.a.createElement(X.FormControl,{style:{width:"50%",minWidth:0},placeholder:Object(qt.f)(t.context.messages,"backgroundDialog.value"),value:e.val.toString(),onChange:function(n){return t.addAdditionalParameter(n.target.value,"val",e.id,e.type)}})),M.a.createElement(Ct.default,{style:{flex:1,width:90},onChange:function(n){return t.addAdditionalParameter(e.val,"val",e.id,n.value)},clearable:!1,value:e.type,options:t.props.parameterTypeOptions.map((function(e){var n=e.label;return Kt(Kt({},Zt(e,["label"])),{},{label:Object(qt.f)(t.context.messages,n)})}))}),M.a.createElement(se,{onClick:function(){return t.setState({additionalParameters:t.state.additionalParameters.filter((function(t){return e.id!==t.id}))})},tooltipId:"backgroundDialog.removeAdditionalParameterTooltip",className:"square-button-md",style:{borderColor:"transparent"}},M.a.createElement(X.Glyphicon,{glyph:"trash"})))})))):null}},{key:"render",value:function(){var t=this;return M.a.createElement(It.a,{fitContent:!0,title:M.a.createElement(D.default,{msgId:this.props.editing?"backgroundDialog.editTitle":"backgroundDialog.addTitle"}),show:!0,fade:!0,clickOutEnabled:!1,bodyClassName:"ms-flex modal-properties-container background-dialog",loading:this.props.loading,onClose:function(){t.props.onClose(),t.resetParameters()},buttons:this.props.loading?[]:[{text:M.a.createElement(D.default,{msgId:this.props.editing?"save":"backgroundDialog.add"}),bsStyle:"primary",onClick:function(){var e=t.props.editing?t.props.layer.id:Tt()(),n=t.props.layer.thumbURL||"",r=t.state.format||t.props.defaultFormat;t.props.updateThumbnail(t.state.thumbnail.data,e),t.props.onSave(b()({},t.props.layer,Object(o.omit)(t.state,"thumbnail"),t.props.editing?{}:{id:e},{params:Object(o.omit)(t.state.additionalParameters.reduce((function(t,e){return b()(t,oe({},e.param,e.val))}),{}),["source","title"]),format:r,group:"background"},n||t.state.thumbnail.data?{thumbURL:t.state.thumbnail.url}:{})),t.resetParameters()}}]},M.a.createElement(X.Form,{style:{width:"100%"}},this.renderThumbnailErrors(),M.a.createElement(Ht,{onUpdate:function(e,n){return t.setState({thumbnail:{data:e,url:n}})},onError:function(e){return t.setState({thumbnailErrors:e})},message:M.a.createElement(D.default,{msgId:"backgroundDialog.thumbnailMessage"}),suggestion:"",map:{newThumbnail:Object(o.get)(this.state.thumbnail,"url")||"NODATA"}}),M.a.createElement(X.FormGroup,null,M.a.createElement(X.ControlLabel,null,M.a.createElement(D.default,{msgId:"layerProperties.title"})),M.a.createElement(X.FormControl,{value:this.state.title,placeholder:Object(qt.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(e){return t.setState({title:e.target.value})}})),this.renderSpecificTypeForm()))}}])&&Jt(e.prototype,n),r&&Jt(e,r),s}(M.a.Component);oe(ae,"propTypes",{loading:k.a.bool,editing:k.a.bool,layer:k.a.object,capabilities:k.a.object,onAdd:k.a.func,onClose:k.a.func,source:k.a.string,onSave:k.a.func,addParameters:k.a.func,updateThumbnail:k.a.func,thumbURL:k.a.string,title:k.a.string,format:k.a.string,style:k.a.string,thumbnail:k.a.object,additionalParameters:k.a.object,addParameter:k.a.func,defaultFormat:k.a.string,formatOptions:k.a.array,parameterTypeOptions:k.a.array,booleanOptions:k.a.array}),oe(ae,"contextTypes",{messages:k.a.object}),oe(ae,"defaultProps",{updateThumbnail:function(){},onClose:function(){},onSave:function(){},addParameters:function(){},addParameter:function(){},loading:!1,editing:!1,layer:{},capabilities:{},title:"",thumbnail:{},additionalParameters:{},formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],parameterTypeOptions:[{label:"backgroundDialog.string",value:"string"},{label:"backgroundDialog.number",value:"number"},{label:"backgroundDialog.boolean",value:"boolean"}],booleanOptions:[{label:"True",value:!0},{label:"False",value:!1}]});var ue=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function le(t){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(){return(ce=Object.assign||function(t){for(var e=1;e1&&M.a.createElement(_t.a,{glyph:"trash",className:"square-button-md background-tool-button delete-button",bsStyle:"primary",onClick:function(){t.props.onRemoveBackground(!0,o.title||o.name||"",o.id)}}),t.props.mapIsEditable&&!t.props.enabledCatalog&&!("wms"!==o.type&&"wmts"!==o.type&&"tms"!==o.type&&"tileprovider"!==o.type)&&M.a.createElement(_t.a,{glyph:"wrench",className:"square-button-md background-tool-button edit-button",bsStyle:"primary",onClick:function(){t.props.addBackgroundProperties({layer:o,editing:!0})}})),M.a.createElement(St,{projection:t.props.projection,vertical:i,key:s,src:a,currentLayer:t.props.currentLayer,margin:r,side:e,frame:n,layer:o,onToggle:t.props.onToggle,onPropertiesChange:t.props.onPropertiesChange,onLayerChange:t.props.onLayerChange,setCurrentBackgroundLayer:t.props.setCurrentBackgroundLayer}))})):[]})),ve(ge(t),"getDimensions",(function(e,n,r,i,o,s){var a=o/2-(e+2*n+2*r)-i,u=e+2*n+2*r+(e+2*n+r)*s+i>o/2,l=Math.floor(a/(e+2*n+r));return l=l>s?s:l,{pagination:u,listSize:t.props.enabled?(e+n+r)*l+52:0,visibleIconsLength:l}})),ve(ge(t),"renderBackgroundSelector",(function(){var e=b()({side:78,sidePreview:104,frame:3,margin:5,label:!0,vertical:!1},t.props.dimensions),n=2*e.frame,r=e.side-n,i=t.props.enabled?e.sidePreview-n:r,o=e.margin,s=t.props.enabled?i-2*n:0,a=t.props.enabled?t.props.tempLayer:t.props.currentLayer,u=t.getIcons(r,n,o,e.vertical),l=t.getDimensions(r,n,o,0,e.vertical?t.props.size.height:t.props.size.width,u.length),c=l.pagination,d=l.listSize,p=l.visibleIconsLength,h=r+n+o,f=r+n+2*o,m=e.vertical?{bottom:f,left:0,width:f,height:d}:{left:i+2*o+n,width:d,height:h},g=e.vertical?{height:h*p,width:h}:{height:h,width:h*p},y=t.props.modalParams&&t.props.modalParams.layer||{},v=(t.props.backgroundList||[]).find((function(t){return t.id===y.id})),w={title:y.title,format:y.format,style:y.style,additionalParameters:y.params,thumbnail:{data:v&&v.thumbnail,url:t.getThumb(y)}},E=t.props.confirmDeleteBackgroundModal||{show:!1},x=E.show,O=E.layerId,S=E.layerTitle;return p<=0&&!t.props.alwaysVisible&&t.props.enabled?null:M.a.createElement("span",null,M.a.createElement(ue.a,{draggable:!1,modal:!0,show:x,onClose:function(){return t.props.onRemoveBackground(!1)},onConfirm:function(){t.props.removeBackground(O),t.props.onRemoveBackground(!1)},confirmButtonBSStyle:"default",confirmButtonContent:M.a.createElement(D.default,{msgId:"confirm"}),closeText:M.a.createElement(D.default,{msgId:"cancel"}),closeGlyph:"1-close"},M.a.createElement(D.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),t.props.modalParams&&M.a.createElement(ae,ce({onClose:t.props.clearModal,onSave:function(e){t.props.modalParams.editing?(t.props.updateNode(e.id,"layers",e),t.props.onBackgroundEdit(e.id)):(t.props.addLayer(e),t.props.backgroundAdded(e.id))},updateThumbnail:t.props.onUpdateThumbnail},w,t.props.modalParams)),M.a.createElement("div",{className:"background-plugin-position",style:t.props.style},M.a.createElement(W,{layers:t.props.layers,showAdd:"mobile"!==t.props.mode&&t.props.mapIsEditable&&t.props.hasCatalog&&!t.props.enabledCatalog,onAdd:function(){return t.props.onAdd(t.props.source||"backgroundSelector")},showLabel:e.label,src:t.getThumb(a),side:i,frame:n,margin:o,labelHeight:s,label:a.title,onToggle:t.props.onToggle}),M.a.createElement("div",{className:"background-list-container",style:m},M.a.createElement(ft,{vertical:e.vertical,start:t.props.start,bottom:0,height:g.height,width:g.width,icons:u,pagination:c,length:p,onStartChange:t.props.onStartChange}))))})),t}return e=o,(n=[{key:"componentWillUnmount",value:function(){this.props.onLayerChange("currentLayer",{}),this.props.onLayerChange("tempLayer",{}),this.props.onStartChange(0)}},{key:"render",value:function(){return this.props.layers.length>0?this.renderBackgroundSelector():null}}])&&pe(e.prototype,n),r&&pe(e,r),o}(M.a.Component);ve(be,"propTypes",{mode:k.a.string,backgroundList:k.a.array,backgrounds:k.a.array,start:k.a.number,style:k.a.object,enabled:k.a.bool,layers:k.a.array,currentLayer:k.a.object,tempLayer:k.a.object,size:k.a.object,dimensions:k.a.object,thumbs:k.a.object,mapIsEditable:k.a.bool,onPropertiesChange:k.a.func,onToggle:k.a.func,onLayerChange:k.a.func,onStartChange:k.a.func,onAdd:k.a.func,hasCatalog:k.a.bool,alwaysVisible:k.a.bool,enabledCatalog:k.a.bool,onRemove:k.a.func,onBackgroundEdit:k.a.func,source:k.a.string,addBackgroundProperties:k.a.func,onUpdateThumbnail:k.a.func,removeBackground:k.a.func,onRemoveBackground:k.a.func,setCurrentBackgroundLayer:k.a.func,confirmDeleteBackgroundModal:k.a.object,deletedId:k.a.string,modalParams:k.a.object,updateNode:k.a.func,clearModal:k.a.func,allowDeletion:k.a.bool,projection:k.a.string}),ve(be,"defaultProps",{mode:"desktop",addBackgroundProperties:function(){},onBackgroundEdit:function(){},setCurrentBackgroundLayer:function(){},source:"backgroundSelector",start:0,style:{},enabled:!1,layers:[],currentLayer:{},tempLayer:{},size:{width:0,height:0},dimensions:{},allowDeletion:!0,thumbs:{unknown:n("./MapStore2/web/client/components/background/img/default.jpg")},mapIsEditable:!0,onRemoveBackground:function(){},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){},onStartChange:function(){},onAdd:function(){},onRemove:function(){},clearModal:function(){}});var we=be;function Ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xe(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var T=Object(a.connect)((function(){return{noCaret:!0,pullRight:!0,bsStyle:"primary",title:i.a.createElement(c.Glyphicon,{glyph:"menu-hamburger"})}}))(c.DropdownButton),I=function(t){var e=t.children,n=j(t,["children"]);return i.a.createElement("div",n,e)},N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(s,t);var e,n,r,o=x(s);function s(){var t;b(this,s);for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(t){return v(v({},t),e(t.children))})).sort((function(t,e){return t.position-e.position})),i={container:I,containerWrapperStyle:{position:"static"},className:"burger-menu-submenu",toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,panelStyle:t.props.panelStyle,panelClassName:t.props.panelClassName};return n.length>0?{containerWrapperStyle:{position:"static"},style:{position:"relative"},childTools:r,childPanels:t.getPanels(n),innerProps:i}:{}}(e.children))})).sort((function(t,e){return t.position-e.position}))))})),t}return e=s,(n=[{key:"render",value:function(){return i.a.createElement(d.a,{id:this.props.id,className:"square-button",container:T,mapType:this.props.mapType,toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:c.MenuItem,tools:this.getTools(),panels:this.getPanels(this.props.items),panelStyle:this.props.panelStyle,panelClassName:this.props.panelClassName})}}])&&w(e.prototype,n),r&&w(e,r),s}(i.a.Component);C(N,"propTypes",{id:s.a.string,dispatch:s.a.func,items:s.a.array,title:s.a.node,onItemClick:s.a.func,controls:s.a.object,mapType:s.a.string,panelStyle:s.a.object,panelClassName:s.a.string}),C(N,"contextTypes",{messages:s.a.object,router:s.a.object}),C(N,"defaultProps",{id:"mapstore-burger-menu",items:[],onItemClick:function(){},title:i.a.createElement(c.MenuItem,{header:!0},i.a.createElement(p.a,{msgId:"options"})),controls:[],mapType:"leaflet",panelStyle:{minWidth:"300px",right:"52px",zIndex:100,position:"absolute",overflow:"auto"},panelClassName:"toolbar-panel"}),e.default=Object(h.d)("BurgerMenu",{component:Object(a.connect)((function(t){return{controls:t.controls}}))(N),containers:{OmniBar:{name:"burgermenu",position:2,tool:!0,priority:1}}})},"./MapStore2/web/client/plugins/Expander.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/react-bootstrap/es/index.js"),s=n("./node_modules/object-assign/index.js"),a=n.n(s),u=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx");e.a={ExpanderPlugin:a()(u.a,{Toolbar:{name:"expand",position:1e4,alwaysVisible:!0,tooltip:"expandtoolbar.tooltip",showWhen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.items,n=void 0===e?[]:e;return n.filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"expand"!==!t.name&&!t.alwaysVisible})).length>1},icon:i.a.createElement(o.Glyphicon,{glyph:"option-horizontal"}),toggle:!0,toggleControl:"toolbar",toggleProperty:"expanded",priority:1}}),reducers:{}}},"./MapStore2/web/client/plugins/FullScreen.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js");var i=n("./node_modules/screenfull/dist/screenfull.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/controls.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),l=n("./node_modules/rxjs/Rx.js"),c=n.n(l),d=function(t){return t.ofType("TOGGLE_FULLSCREEN").switchMap((function(t){var e=document.querySelector(t&&t.querySelector||"."+(u.default.getConfigProp("themePrefix")||"ms2")+" > div");return e&&t.enable&&o.a.enabled?o.a.request(e):e&&!t.enable&&o.a.exit(),c.a.Observable.merge(c.a.Observable.fromEvent(document,Object(s.last)(Object(s.head)([["exitFullscreen","fullscreenchange"],["webkitExitFullscreen","webkitfullscreenchange"],["webkitCancelFullScreen","webkitfullscreenchange"],["mozCancelFullScreen","mozfullscreenchange"],["msExitFullscreen","MSFullscreenChange"]].filter((function(t){return document[t[0]]}))))).filter((function(){return o.a.element!==e})).map((function(){return Object(a.g)("fullscreen","enabled",!1)})),c.a.Observable.of(Object(a.g)("fullscreen","enabled",t.enable)),c.a.Observable.fromEvent(window,"hashchange").do((function(){return o.a.exit()})).map((function(){return Object(a.g)("fullscreen","enabled",!1)})))}))},p=n("./node_modules/object-assign/index.js"),h=n.n(p),f=n("./node_modules/prop-types/index.js"),m=n.n(f),g=n("./node_modules/react/index.js"),y=n.n(g),v=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),b=n("./node_modules/react-bootstrap/es/index.js"),w=n("./MapStore2/web/client/components/I18N/Message.jsx");function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(){return(x=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.controls,n=void 0===e?{}:e;return{active:n.fullscreen&&n.fullscreen.enabled}}),{onClick:function(t,e){return n=t,r=e.querySelector,{type:"TOGGLE_FULLSCREEN",enable:n,elementSelector:r};var n,r}})(A);e.a={FullScreenPlugin:h()(M,{disablePluginIf:"{state('browser') && state('browser').safari}",Toolbar:{name:"fullscreen",position:5,alwaysVisible:!0,tool:!0,priority:1}}),reducers:{},epics:{toggleFullscreenEpic:d}}},"./MapStore2/web/client/plugins/Identify.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/identify/identify.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./node_modules/react/index.js"),a=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./MapStore2/web/client/actions/map.js"),h=n("./MapStore2/web/client/actions/mapInfo.js"),f=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),g=n("./MapStore2/web/client/utils/ImmutableUtils.js"),y=Object(c.withHandlers)({needsRefresh:function(){return function(t,e){if(e.enabled&&e.point&&e.point.pixel){if(!t.point||!t.point.pixel||t.point.pixel.x!==e.point.pixel.x||t.point.latlng!==e.point.latlng||t.point.pixel.y!==e.point.pixel.y)return!0;if(!t.point||!t.point.pixel||e.point.pixel&&t.format!==e.format)return!0}return!1}},onClose:function(t){var e=t.purgeResults,n=void 0===e?function(){}:e,r=t.closeIdentify,i=void 0===r?function(){}:r;return function(){n(),i()}},onSubmitClickPoint:function(t){var e=t.onSubmitClickPoint,n=void 0===e?function(){}:e,i=t.point;return function(t){var e=Object(r.isNil)(t.lat)||Object(r.isNaN)(t.lat)?0:parseFloat(t.lat),o=Object(r.isNil)(t.lon)||Object(r.isNaN)(t.lon)?0:parseFloat(t.lon),s=Object(g.e)("latlng.lng",o,Object(g.e)("latlng.lat",e,i));n(s)}},onChangeFormat:function(t){var e=t.onChangeFormat,n=void 0===e?function(){}:e;return function(t){n(t)}}}),v=Object(c.compose)(y,Object(c.lifecycle)({componentDidMount:function(){var t=this.props,e=t.enabled,n=t.changeMousePointer,r=void 0===n?function(){}:n,i=t.disableCenterToMarker,o=t.onEnableCenterToMarker,s=void 0===o?function(){}:o;e&&r("pointer"),i||s()},componentWillUnmount:function(){var t=this.props,e=t.hideMarker,n=void 0===e?function(){}:e,r=t.purgeResults,i=void 0===r?function(){}:r,o=t.changeMousePointer;(void 0===o?function(){}:o)("auto"),n(),i()},componentWillReceiveProps:function(t){var e=this.props,n=e.hideMarker,r=void 0===n?function(){}:n,i=e.purgeResults,o=void 0===i?function(){}:i,s=e.changeMousePointer,a=void 0===s?function(){}:s,u=e.enabled;t.enabled&&!u?a("pointer"):!t.enabled&&u&&(a("auto"),r(),o())}})),b=n("./node_modules/@turf/bbox/index.js"),w=n.n(b),E=Object(c.withHandlers)({zoomToFeature:function(t){var e=t.zoomToExtent,n=void 0===e?function(){}:e,r=t.currentFeature,i=void 0===r?[]:r,o=t.currentFeatureCrs;return function(){var t=i.filter((function(t){return!!t.geometry}));if(t.length>0){var e=w()({type:"FeatureCollection",features:t});e&&n(e,o)}}}}),x=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),O=n("./MapStore2/web/client/components/I18N/Message.jsx"),S=n("./MapStore2/web/client/components/misc/panels/DockablePanel.jsx"),_=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),C=n("./MapStore2/web/client/components/misc/Portal.jsx"),j=function(t){var e=t.latlng,n=t.enableRevGeocode,r=t.hideRevGeocode,i=void 0===r?function(){}:r,o=t.showModalReverse,s=t.revGeocodeDisplayName;return n&&e?a.a.createElement(C.a,null,a.a.createElement(_.a,{fade:!0,title:a.a.createElement("span",null,a.a.createElement(u.Glyphicon,{glyph:"map-marker"})," ",a.a.createElement(O.default,{msgId:"identifyRevGeocodeModalTitle"})),size:"xs",show:o,onClose:i,buttons:[{text:a.a.createElement(O.default,{msgId:"close"}),onClick:i,bsStyle:"primary"}]},a.a.createElement("div",{className:"ms-alert",style:{padding:15}},a.a.createElement("div",{className:"ms-alert-center text-center"},a.a.createElement("div",null,s))))):null},T=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),I=function(t){return a.a.createElement(T.a,{format:t.formatCoord||"decimal",aeronauticalOptions:{seconds:{decimals:4,step:1e-4}},idx:1,onSubmit:function(e,n){t.onSubmit(Object(r.isEmpty)(n)?void 0:n)},onChangeFormat:function(e){t.onChangeFormat(e)},key:"GFI row coord editor",component:t.coordinate||{},customClassName:"coord-editor",isDraggable:!1,showDraggable:!1,formatVisible:!0,showLabels:!0,removeVisible:!1})},N=n("./MapStore2/web/client/components/I18N/Number.jsx"),P=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js"),A=Object(P.a)((function(t){var e=t.degrees,n=void 0===e?0:e,r=t.minutes,i=void 0===r?0:r,o=t.seconds,s=void 0===o?0:o,u=t.direction,l=t.integerFormat,c=t.decimalFormat;return a.a.createElement("span",{className:"coordinate-dms"},a.a.createElement(N.a,{key:"latD",numberParams:l,value:n}),a.a.createElement("span",null,"° "),a.a.createElement(N.a,{key:"latM",numberParams:l,value:i}),a.a.createElement("span",null,"' "),a.a.createElement(N.a,{key:"latS",numberParams:c,value:s}),a.a.createElement("span",null,"'' ")," ",a.a.createElement("span",null,u))})),M=function(t){var e=t.integerFormat,n=void 0===e?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:0}:e,i=t.decimalFormat,o=void 0===i?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:4,minimumFractionDigits:4}:i,s=t.coordinate,l=void 0===s?{}:s,c=t.formatCoord,d=void 0===c?"decimal":c,p=t.className;return a.a.createElement(u.Row,{className:p},a.a.createElement(u.Col,{xs:12},Object(r.isNil)(l.lat)||Object(r.isNil)(l.lon)?null:"decimal"===d?a.a.createElement("div",{className:"ms-coordinates-decimal"},"Lat: ",a.a.createElement(N.a,{value:Math.round(1e5*l.lat)/1e5})," - Long: ",a.a.createElement(N.a,{value:l.lon})):a.a.createElement("div",{className:"ms-coordinates-aeronautical"},a.a.createElement("span",null,"Lat: ",a.a.createElement(A,{integerFormat:n,decimalFormat:o,value:l.lat})),a.a.createElement("span",null," - "),a.a.createElement("span",null," Long: ",a.a.createElement(A,{coordinate:"lon",integerFormat:n,decimalFormat:o,value:l.lon})))))},D=function(t){var e=t.coordinate,n=void 0===e?{}:e,r=t.formatCoord,i=t.edit,o=t.onSubmit,s=void 0===o?function(){}:o,u=t.onChangeFormat,l=void 0===u?function(){}:u;return i?a.a.createElement(I,{removeVisible:!1,formatCoord:r,coordinate:n||{lat:"",lon:""},onSubmit:s,onChangeFormat:l}):a.a.createElement(M,{className:"coordinates-text",formatCoord:r,coordinate:n||{lat:"",lon:""}})},R=n("./MapStore2/web/client/utils/IdentifyUtils.js"),k=n("./node_modules/prop-types/index.js"),L=n.n(k),F=n("./node_modules/react-select/dist/react-select.es.js"),G=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function B(){return(B=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0}))).mergeMap((function(t){var e=Object(At.c)(i()),n=Object(Dt.a)(t,Ft(Ft({},Object(Ot.i)(i())),{},{env:e})),r=n.url,o=n.request,s=n.metadata;if(Object(Ot.o)(i())&&Object(Ot.r)(i())&&(o=Ft(Ft({},o),Object(Ot.r)(i())[t.name])),a[t.name]&&(o=Ft(Ft({},o),a[t.name])),r){var l=r,c=o,f=s,m=Object(Dt.c)(t,p,d),g=Object(Ot.k)(i()),y=Object(Ot.o)(i()),v=ht.a.v1(),b=Ft(Ft({},m),c);return Object(kt.a)(l,b,t,{attachJSON:g,itemId:y}).map((function(e){return e.data.exceptions?Object(h.I)(v,e.data.exceptions,c,f):Object(h.N)(v,e.data,c,Ft(Ft({},f),{},{features:e.features,featuresCrs:e.featuresCrs}),t)})).catch((function(t){return dt.a.Observable.of(Object(h.H)(v,t.data||t.statusText||t.status,c,f))})).startWith(Object(h.O)(v,b))}return dt.a.Observable.of(Object(h.K)(t,o,s,u))}));return e&&e.modifiers&&!0===e.modifiers.ctrl&&e.multiSelection?f:f.startWith(Object(h.Q)())}))},handleMapInfoMarker:function(t,e){var n=e.getState;return t.ofType(h.j).filter((function(){return!Object(Ot.n)(n())})).map((function(t){return t.layer?Object(h.L)():Object(h.T)()}))},closeFeatureGridFromIdentifyEpic:function(t){return t.ofType(h.n,h.k).switchMap((function(){return dt.a.Observable.of(Object(gt.fb)())}))},closeFeatureAndAnnotationEditing:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,i=void 0===n?function(){}:n;return t.ofType(h.f).switchMap((function(){return Object(r.get)(i(),"annotations.editing")?dt.a.Observable.of(Object(bt.b)()):dt.a.Observable.of(Object(h.Q)())}))},hideMarkerOnIdentifyCloseOrClearWarning:function(t){return t.ofType(h.f,h.e).flatMap((function(){return dt.a.Observable.of(Object(h.L)())}))},changeMapPointer:function(t,e){return t.ofType(p.f).filter((function(){return!e.getState().map})).switchMap((function(e){return t.ofType(wt.d).mapTo(e)}))},onMapClick:function(t,e){return t.ofType(p.i).filter((function(){var t=e.getState().mapInfo.disableAlwaysOn,n=void 0!==t&&t;return!Object(jt.f)(e.getState())&&(n||!zt(e.getState()||{}))})).switchMap((function(t){var n=t.point,r=t.layer,i=Object(jt.o)(e.getState());return dt.a.Observable.of(Object(h.J)(Vt(n,i),r),Object(xt.u)()).merge(dt.a.Observable.of(Object(Et.b)(ht()(),{component:Rt.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:n?n.rawPos:[]}})).filter((function(){return Object(Ot.n)(e.getState())})))}))},onUpdateFeatureInfoClickPoint:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(h.A).map((function(t){var e=t.point,n=Object(jt.o)(r());return{point:Vt(e,n)}})).withLatestFrom(t.ofType(h.j),(function(t,e){var n=t.point;return Ft(Ft({},e),{},{point:n})}))},featureInfoClickOnHighligh:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(h.w).filter((function(t){return t.enabled&&Object(Ot.b)(r())})).switchMap((function(){return dt.a.Observable.from([Object(h.J)(Object(Ot.b)(r()),Object(Ot.a)(r()),Object(Ot.g)(r()),Object(Ot.r)(r()),Object(Ot.o)(r())),Object(h.T)()])}))},zoomToVisibleAreaEpic:function(t,e){return t.ofType(h.j).filter((function(){return Object(St.c)(e.getState())})).switchMap((function(n){return t.ofType(h.n,h.h).switchMap((function(){var i=e.getState(),o=Object(jt.l)(i),s=Object(jt.o)(i),a=Object(jt.n)(i),u=Object(r.find)(a,{code:s}),l=u&&u.extent,c=l&&Object(It.reprojectBbox)(l,s,"EPSG:4326"),d=Object(Tt.b)(i),f=n.point&&n.point&&n.point.latlng,m=Object(Mt.getCurrentResolution)(Math.round(o.zoom),0,21,96),g=d&&o&&o.size&&{left:Object(Mt.parseLayoutValue)(d.left,o.size.width),bottom:Object(Mt.parseLayoutValue)(d.bottom,o.size.height),right:Object(Mt.parseLayoutValue)(d.right,o.size.width),top:Object(Mt.parseLayoutValue)(d.top,o.size.height)};if(!o||!g||!f||n.point.cartographic||Object(It.isInsideVisibleArea)(f,o,g,m)||Object(jt.f)(i))return dt.a.Observable.of(Object(h.Y)("disabled"));if(c&&!Object(It.isPointInsideExtent)(f,c))return dt.a.Observable.empty();var y=Object(It.centerToVisibleArea)(f,o,g,m);return dt.a.Observable.of(Object(h.Y)("enabled"),Object(p.J)(y.pos,y.zoom,y.crs)).concat(t.ofType(h.f).switchMap((function(){var t=o&&Object(Mt.getBbox)(o.center,o.zoom);return dt.a.Observable.of(Object(p.x)(o.center,o.zoom,t,o.size,null,o.projection))})).takeUntil(t.ofType(p.e).skip(1)))}))}))},closeFeatureInfoOnCatalogOpenEpic:function(t,e){return t.ofType(mt.b).filter((function(t){return"metadataexplorer"===t.control&&t.properties&&t.properties.enabled})).switchMap((function(){return dt.a.Observable.of(Object(h.Q)(),Object(h.L)()).merge(dt.a.Observable.of(Object(Et.c)()).filter((function(){return Object(Ot.n)(e.getState())})))}))},closeFeatureInfoOnAnnotationOpenEpic:function(t,e){var n=e.getState;return t.ofType(mt.d).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.control;return"annotations"===e&&Object(r.get)(n(),"controls.annotations.enabled",!1)})).mapTo(Object(h.Q)())},closeFeatureInfoOnMeasureOpenEpic:function(t){return t.ofType(mt.c).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.control,n=t.value;return"measure"===e&&n})).mapTo(Object(h.Q)())},cleanPopupsEpicOnPurge:function(t,e){var n=e.getState;return t.ofType(h.q).filter((function(){return Object(Ot.n)(n())})).mapTo(Object(Et.c)())},identifyEditLayerFeaturesEpic:function(t,e){return t.ofType(h.g).exhaustMap((function(t){var n,r=t.layer;return dt.a.Observable.of(Object(h.R)(null===(n=Object(Ot.b)(e.getState()))||void 0===n?void 0:n.geometricFilter),Object(vt.F)(r))}))},switchFeatureGridToEdit:function(t,e){return t.ofType(yt.j).switchMap((function(){var t=Object(Ot.d)(e.getState()),n=(Object(r.find)(Object(_t.e)(e.getState()),(function(t){return"geometry"===t.type}))||{}).attribute||Object(r.get)(Object(Ct.k)(e.getState()),"attribute");return t?dt.a.Observable.of(Object(h.R)(),Object(gt.Pb)(),Object(gt.Tb)(Ft(Ft({},t),{},{attribute:n,value:Ft(Ft({},t.value),{},{attribute:n})}))):dt.a.Observable.empty()}))},resetCurrentEditFeatureQuery:function(t){return t.ofType(gt.f,ft.b).mapTo(Object(h.R)())},mouseMoveMapEventEpic:function(t,e){var n=e.getState;return t.ofType(p.l).debounceTime(Object(Nt.a)(n())).switchMap((function(t){var e=t.position,r=t.layer,i=Object(Pt.b)("annotations")(n()),o=Object(Pt.e)(n()),s=n().mousePosition.mouseOut;return!Object(jt.f)(n())||i||o||s?dt.a.Observable.empty():dt.a.Observable.of(Object(h.J)(e,r)).merge(dt.a.Observable.of(Object(Et.b)(ht()(),{component:Rt.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:e?e.rawPos:[]},autoPanMargin:70,autoPan:!0})))}))},removePopupOnUnregister:function(t,e){var n=e.getState;return t.ofType(p.r).switchMap((function(){var t,e,r=dt.a.Observable.empty(),i=(null===(t=n())||void 0===t||null===(e=t.mapPopups)||void 0===e?void 0:e.popups)||[];if(i.length&&!Object(jt.f)(n())){var o=i[0].id;r=dt.a.Observable.of(Object(Et.d)(o))}return r}))},removePopupOnLocationChangeEpic:function(t,e){var n=e.getState;return t.ofType(ft.b,h.q,h.e).switchMap((function(){var t,e,r=dt.a.Observable.empty(),i=(null===(t=n())||void 0===t||null===(e=t.mapPopups)||void 0===e?void 0:e.popups)||[];if(i.length){var o=i[0].id;r=dt.a.Observable.of(Object(Et.d)(o))}return r}))},removeMapInfoMarkerOnRemoveMapPopupEpic:function(t,e){var n=e.getState;return t.ofType(Et.a).switchMap((function(){return Object(jt.f)(n())?dt.a.Observable.of(Object(h.L)()):dt.a.Observable.empty()}))},setMapTriggerEpic:function(t,e){return t.ofType(h.s,wt.d).switchMap((function(){return dt.a.Observable.of("hover"===Object(Ot.q)(e.getState())?Object(p.F)("mousemove","identifyFloatingTool"):Object(p.H)("mousemove","identifyFloatingTool"))}))}},qt=n("./MapStore2/web/client/reducers/mapInfo.js"),Yt=n("./MapStore2/web/client/selectors/locale.js"),Wt=n("./MapStore2/web/client/selectors/maptype.js"),Xt=n("./MapStore2/web/client/utils/ConfigUtils.js");function Kt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Zt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qt(t){for(var e=1;e0&&n.reduce((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.geometry;return t||!!n}),!1)||!1,tooltipId:"identifyZoomToFeature",onClick:a}]},showFullscreen:!1,validResponses:[],validator:Dt.i,zIndex:1050}),ie=Object(c.compose)(Object(l.connect)(te,{purgeResults:h.Q,closeIdentify:h.F,onSubmitClickPoint:h.Z,onToggleShowCoordinateEditor:h.X,onChangeFormat:h.B,changeMousePointer:p.y,clearWarning:h.E,hideMarker:h.L,showRevGeocode:h.U,hideRevGeocode:h.M,onEnableCenterToMarker:h.Y.bind(null,"enabled"),onEdit:h.G},(function(t,e,n){return Qt(Qt(Qt(Qt({},n),t),e),{},{enabled:t.enabled&&(t.isCesium||!n.showInMapPopup)&&!t.floatingIdentifyEnabled})})),Object(c.compose)(Object(l.connect)(Object(d.c)({highlight:Ot.k,currentFeature:Ot.f,currentFeatureCrs:Ot.e}),{toggleHighlightFeature:h.V,zoomToExtent:p.I}),E),Object(l.connect)(Object(d.a)(Wt.c,(function(t){return{mapType:t}})),{},(function(t,e,n){var r=t.mapType,i=n.showHighlightFeatureButton;return Qt(Qt({},Zt(n,["showHighlightFeatureButton"])),{},{showHighlightFeatureButton:"openlayers"===r&&i})})),re,ee,m.b,v)((function(t){var e,n,i=t.enabled,o=t.requests,s=void 0===o?[]:o,l=t.onClose,c=t.responses,d=void 0===c?[]:c,p=t.index,h=t.viewerOptions,f=void 0===h?{}:h,m=t.format,g=t.dock,y=void 0===g||g,v=t.position,b=t.size,w=t.fluid,E=t.validResponses,T=void 0===E?[]:E,I=t.viewer,N=void 0===I?function(){return null}:I,P=t.getToolButtons,A=void 0===P?function(){return[]}:P,M=t.getFeatureButtons,k=void 0===M?function(){return[]}:M,L=t.showFullscreen,F=t.reverseGeocodeData,G=void 0===F?{}:F,B=t.point,U=t.dockStyle,z=void 0===U?{}:U,V=t.draggable,H=t.setIndex,W=t.warning,K=t.clearWarning,Z=t.zIndex,$=t.showEmptyMessageGFI,Q=t.showEdit,J=t.isEditingAllowed,tt=t.onEdit,et=void 0===tt?function(){}:tt,nt=t.enabledCoordEditorButton,rt=t.showCoordinateEditor,it=t.onSubmitClickPoint,ot=t.onChangeFormat,st=t.formatCoord,at=t.loaded,ut=t.validator,lt=void 0===ut?function(){return null}:ut,ct=B&&B.latlng||null,dt=T[p],pt=(dt||{}).layer,ht=null;ct&&(ht=ct&&Math.round(1e17*ct.lng)/1e17,ht-=360*Math.floor(ht/360+.5));var ft=N,mt=A(X(X({},t),{},{lngCorrected:ht,validResponses:T,latlng:ct,showEdit:Q&&J&&!!dt&&Object(R.b)(dt),onEdit:et.bind(null,pt&&{id:pt.id,name:pt.name,url:Object(r.get)(pt,"search.url")})})),gt=s.length===(null===(e=lt(m))||void 0===e||null===(n=e.getNoValidResponses(d))||void 0===n?void 0:n.length)||0,yt=s.length-d.length,vt=G.error?a.a.createElement(O.default,{msgId:"identifyRevGeocodeError"}):G.display_name;return a.a.createElement("div",{id:"identify-container",className:i&&0!==s.length?"identify-active":""},a.a.createElement(S.a,{bsStyle:"primary",glyph:"map-marker",open:i&&0!==s.length,size:b,fluid:w,position:v,draggable:V,onClose:l,dock:y,style:z,showFullscreen:L,zIndex:Z,header:[a.a.createElement(u.Row,{className:"layer-select-row"},a.a.createElement("div",{className:"layer-col"},a.a.createElement("span",{className:"identify-icon glyphicon glyphicon-1-layer"}),a.a.createElement(q,{responses:d,index:p,loaded:at,setIndex:H,missingResponses:yt,emptyResponses:gt}),a.a.createElement(x.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:k(t),transitionProps:null}))),a.a.createElement(u.Row,{className:"coordinates-edit-row"},a.a.createElement("span",{className:"identify-icon glyphicon glyphicon-point"}),a.a.createElement("div",{className:"coordinate-editor"},a.a.createElement(D,{key:"coordinate-editor",formatCoord:st,enabledCoordEditorButton:nt,onSubmit:it,onChangeFormat:ot,edit:rt,coordinate:{lat:ct&&ct.lat,lon:ht}})),a.a.createElement(j,Y({latlng:ct,revGeocodeDisplayName:vt},t)),a.a.createElement(x.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:mt,transitionProps:null}))].filter((function(t){return t}))},a.a.createElement(ft,Y({index:p,setIndex:H,format:m,missingResponses:yt,responses:d,requests:s,showEmptyMessageGFI:$},f))),a.a.createElement(C.a,null,a.a.createElement(_.a,{fade:!0,title:a.a.createElement(O.default,{msgId:"warning"}),size:"xs",show:W,onClose:K,buttons:[{text:a.a.createElement(O.default,{msgId:"close"}),onClick:K,bsStyle:"primary"}]},a.a.createElement("div",{className:"ms-alert",style:{padding:15}},a.a.createElement("div",{className:"ms-alert-center text-center"},a.a.createElement(O.default,{msgId:"identifyNoQueryableLayers"}))))))})),oe=Object(l.connect)((function(t){return{infoFormat:Object(Ot.h)(t)}}),{onInfoFormatChange:h.C})($.a),se=Object(l.connect)((function(t){return{trigger:Object(jt.f)(t)?"hover":"click"}}),{onSetMapTrigger:h.S})(lt);e.a={IdentifyPlugin:o()(ie,{Toolbar:{name:"info",position:6,tooltip:"info.tooltip",icon:a.a.createElement(u.Glyphicon,{glyph:"map-marker"}),help:a.a.createElement(Q.a,{msgId:"helptexts.infoButton"}),action:h.W,selector:function(t){return{bsStyle:t.mapInfo&&t.mapInfo.enabled?"success":"primary",active:!(!t.mapInfo||!t.mapInfo.enabled)}}},Settings:{tool:[a.a.createElement(oe,{key:"featureinfoformat",label:a.a.createElement(Q.a,{msgId:"infoFormatLbl"})}),a.a.createElement(se,{key:"featureinfotrigger"})],position:3}}),reducers:{mapInfo:qt.a},epics:Ht}},"./MapStore2/web/client/plugins/Map.jsx":function(t,e,n){"use strict";var r=n("./node_modules/prop-types/index.js"),i=n.n(r),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=t,s=r,a=i,u=o;if(Object({NODE_ENV:"production"}).isTest){var l={},c=function(t){return l[t]=l[t]||{rootCount:0,iframesCreated:!1,timedOut:!1,fontLoaded:!1,requiredExtraTimeout:!1},l[t]};window.reporter=window.reporter||{modifyRootCount:function(t,e){c(t).rootCount+=e},iframesCreated:function(t){c(t).iframesCreated=!0},timedOut:function(t){c(t).timedOut=!0},fontLoaded:function(t){c(t).fontLoaded=!0},requiredExtraTimeout:function(t){c(t).requiredExtraTimeout=!0},getTests:function(){return l}}}n.timeoutAfter&&setTimeout((function(){s&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,-1),document.body.removeChild(s),s=0,n.onTimeout&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.timedOut(u),n.onTimeout()))}),n.timeoutAfter),a=function(){s&&s.firstChild.clientWidth===s.lastChild.clientWidth&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,-1),document.body.removeChild(s),s=0,Object({NODE_ENV:"production"}).isTest&&window.reporter.fontLoaded(u),e())},Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(u,1),Object({NODE_ENV:"production"}).isLegacy||a(document.body.appendChild(s=document.createElement("div")).innerHTML='
'+(n.sampleText||" ")+'
'+(n.sampleText||" ")+"
"),Object({NODE_ENV:"production"}).isLegacy&&a(document.body.appendChild(s=document.createElement("div")).innerHTML='
.'+(n.sampleText||" ")+'.
.'+(n.sampleText||" ")+".
"),s&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.iframesCreated(u),Object({NODE_ENV:"production"}).isLegacy||(s.firstChild.appendChild(o=document.createElement("iframe")).style.width="999%",o.contentWindow.onresize=a,s.lastChild.appendChild(o=document.createElement("iframe")).style.width="999%",o.contentWindow.onresize=a),Object({NODE_ENV:"production"}).isLegacy&&(s.firstChild.firstChild.firstChild.firstChild.appendChild(o=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",o.attachEvent?o.contentWindow.attachEvent("onresize",a):o.contentWindow.onresize=a,s.lastChild.firstChild.firstChild.firstChild.appendChild(o=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",o.attachEvent?o.contentWindow.attachEvent("onresize",a):o.contentWindow.onresize=a),Object({NODE_ENV:"production"}).isTest||(o=setTimeout(a)),Object({NODE_ENV:"production"}).isTest&&(o=setTimeout((function(){s&&(window.reporter.requiredExtraTimeout(u),a())}))))},l=n("./node_modules/object-assign/index.js"),c=n.n(l),d=n("./node_modules/react-spinkit/dist/index.js"),p=n.n(d),h=(n("./MapStore2/web/client/plugins/map/css/map.css"),n("./MapStore2/web/client/components/I18N/Message.jsx")),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),m=n("./MapStore2/web/client/actions/map.js"),g=n("./MapStore2/node_modules/lodash/lodash.js"),y=n("./node_modules/reselect/es/index.js"),v=n("./MapStore2/web/client/selectors/map.js"),b=n("./MapStore2/web/client/selectors/maptype.js"),w=n("./MapStore2/web/client/selectors/layers.js"),E=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function x(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(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.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&e?Object(E.reprojectGeoJson)(i,r,"EPSG:4326").features:[]})),j=Object(y.a)([C,function(t){return Object(g.get)(t,t&&t.highlight&&t.highlight.featuresPath||"highlight.emptyFeatures")||[]}],(function(t,e){return[].concat(x(e),x(t))})),T=n("./MapStore2/web/client/selectors/security.js"),I=n("./MapStore2/web/client/selectors/locale.js"),N=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),P=Object(y.c)({projectionDefs:v.n,map:v.l,mapType:b.c,layers:w.n,features:j,loadingError:function(t){return t.mapInitialConfig&&t.mapInitialConfig.loadingError&&t.mapInitialConfig.loadingError.data},securityToken:T.c,elevationEnabled:v.e,shouldLoadFont:b.b,isLocalizedLayerStylesEnabled:N.b,localizedLayerStylesName:N.d,currentLocaleLanguage:I.a}),A=n("./MapStore2/web/client/reducers/map.js"),M=n("./MapStore2/web/client/reducers/layers.js"),D=n("./MapStore2/web/client/actions/draw.js"),R={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case D.a:return c()({},t,{drawStatus:e.status,drawOwner:e.owner,drawMethod:e.method,options:e.options,features:e.features,style:e.style});case D.e:return c()({},t,{currentStyle:e.currentStyle});case D.d:return c()({},t,{tempFeatures:e.features});case D.b:return c()({},t,{tempFeatures:[]});default:return t}},L=n("./MapStore2/web/client/actions/box.js"),F={status:null};var G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case L.b:return c()({},t,{status:e.status});default:return t}},B=n("./MapStore2/web/client/actions/highlight.js");function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:H,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case B.b:return c()({},t,{featuresPath:e.featuresPath||"highlight.emptyFeatures"});case B.a:return z(z({},t),{},{status:e.status});case B.c:return z(z({},t),{},{highlighted:e.features.length,features:e.features,status:e.status||t.status});default:return t}},Y=n("./MapStore2/web/client/reducers/maptype.js"),W=n("./MapStore2/web/client/actions/additionallayers.js");function X(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(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.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case W.c:var n=Object(g.pickBy)({id:e.id,owner:e.owner,actionType:e.actionType,options:e.options},g.identity),r=Object(g.head)(t.filter((function(t){return t.id===n.id})));return r?t.map((function(t){return t.id===n.id?$($({},r),n):$({},t)})):[].concat(X(t),[n]);case W.d:var i=e.options,o=e.owner;return t.map((function(t,e){return t.owner===o?$($({},t),{},{options:Object(g.isObject)(i)&&i[t.id]||Object(g.isArray)(i)&&i[e]||{}}):$({},t)}));case W.a:var s=e.id,a=e.owner;return a?t.filter((function(t){return t.owner!==a})):t.filter((function(t){return t.id!==s}));case W.b:return[];default:return t}},tt=n("./node_modules/rxjs/Rx.js"),et=n.n(tt),nt=n("./MapStore2/web/client/actions/layers.js"),rt=n("./MapStore2/web/client/actions/config.js"),it=n("./MapStore2/web/client/actions/security.js"),ot=n("./MapStore2/web/client/selectors/maplayout.js"),st=n("./MapStore2/web/client/actions/controls.js"),at=n("./MapStore2/web/client/utils/LayersUtils.js"),ut=n("./MapStore2/web/client/utils/MapUtils.js"),lt=n("./MapStore2/web/client/actions/notifications.js"),ct=n("./MapStore2/web/client/actions/mapInfo.js");function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e=180&&i[3]>=90)n=1;else{var a=E.default.reprojectBbox(i,t.crs,e.projection||"EPSG:4326");n=ut.default.getZoomForExtent(a,e.size,0,21,null)}t.maxZoom&&n>t.maxZoom&&(n=t.maxZoom);var u={minx:o[0],miny:o[1],maxx:o[2],maxy:o[3]},l=pt(pt({},e.bbox),{},{bounds:u});return et.a.Observable.of(Object(m.x)(s,n,l,e.size,t.mapStateSource,e.projection,e.viewerOptions))}return et.a.Observable.empty()}(pt(pt({},t),{},{extent:e}),Object(v.l)(r()))}))}},mt=n("./MapStore2/web/client/actions/mapPopups.js"),gt=n("./MapStore2/web/client/actions/measurement.js"),yt=n("./MapStore2/web/client/selectors/measurement.js");function vt(t){return{type:"CHANGE_SELECTION_STATE",geomType:t.geomType,point:t.point,line:t.line,polygon:t.polygon}}var bt=n("./MapStore2/web/client/actions/locate.js"),wt=n("./node_modules/react-redux/es/index.js");function Et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(t,e)}(t,e)||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 xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){u(t,n,{timeoutAfter:e.timeoutAfter,onTimeout:r,sampleText:e.sampleText,generic:e.generic})}))}(e,{timeoutAfter:5e3}).catch((function(){t.props.onFontError({family:e})}))}))).then((function(){t.setState({canRender:!0})}))),this.updatePlugins(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.mapType===this.props.mapType&&t.actions===this.props.actions||this.updatePlugins(t)}},{key:"render",value:function(){if(this.props.map&&this.state.canRender&&this.state.plugins){var t=this.props.map.mapOptions,e=void 0===t?{}:t;return s.a.createElement(this.state.plugins.Map,Ct({id:"map"},this.props.options,{projectionDefs:this.props.projectionDefs},this.props.map,{mapOptions:c()({},e,this.getMapOptions()),zoomControl:this.props.zoomControl,onResolutionsChange:this.props.onResolutionsChange}),this.renderLayers(),this.renderSupportTools())}return this.props.loadingError?s.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapErrorMessage"},s.a.createElement(h.default,{msgId:"map.loadingerror"}),":",this.props.loadingError):s.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:"mapLoadingMessage"},this.props.loadingSpinner?s.a.createElement(p.a,{spinnerName:"circle",overrideSpinnerClassName:"spinner"}):null,s.a.createElement(h.default,{msgId:this.props.mapLoadingMessage}))}}])&&Nt(e.prototype,n),r&&Nt(e,r),o}(s.a.Component);kt(Lt,"propTypes",{mapType:i.a.string,map:i.a.object,layers:i.a.array,additionalLayers:i.a.array,zoomControl:i.a.bool,mapLoadingMessage:i.a.string,loadingSpinner:i.a.bool,loadingError:i.a.string,tools:i.a.array,fonts:i.a.array,options:i.a.object,mapOptions:i.a.object,projectionDefs:i.a.array,toolsOptions:i.a.object,onFontError:i.a.func,onResolutionsChange:i.a.func,actions:i.a.object,features:i.a.array,securityToken:i.a.string,shouldLoadFont:i.a.bool,elevationEnabled:i.a.bool,isLocalizedLayerStylesEnabled:i.a.bool,localizedLayerStylesName:i.a.string,currentLocaleLanguage:i.a.string,items:i.a.array,onLoadingMapPlugins:i.a.func}),kt(Lt,"defaultProps",{mapType:"leaflet",actions:{},zoomControl:!1,mapLoadingMessage:"map.loading",loadingSpinner:!0,tools:["measurement","locate","scalebar","draw","highlight","popup","box"],options:{},mapOptions:{},fonts:["FontAwesome"],toolsOptions:{measurement:{},locate:{},scalebar:{leaflet:{position:"bottomright"}},overview:{overviewOpt:{position:"bottomright",collapsedWidth:25,collapsedHeight:25,zoomLevelOffset:-5,toggleDisplay:!0},layers:[{type:"osm"}]}},securityToken:"",additionalLayers:[],shouldLoadFont:!1,elevationEnabled:!1,onFontError:function(){},onResolutionsChange:function(){},items:[],onLoadingMapPlugins:function(){}});e.a=Object(a.d)("Map",{component:Object(a.c)(P,{onFontError:m.B,onResolutionsChange:m.G})(Lt),reducers:{map:A.a,layers:M.a,draw:k,box:G,highlight:q,maptype:Y.a,additionallayers:J},epics:ft})},"./MapStore2/web/client/plugins/MapFooter.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx"),u=n("./node_modules/recompose/es/Recompose.js");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t};return function(r){return r.withLatestFrom(t.startWith(e)).filter((function(t){var e=x(t,2)[1];return n(e)})).map((function(t){return x(t,1)[0]}))}},_=n("./MapStore2/web/client/observables/epics.js"),C=n("./MapStore2/web/client/api/MultiDim.js"),j=n("./node_modules/rxjs/Rx.js"),T=n.n(j);function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||P(t,e)||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 N(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||P(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.")}()}function P(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(E.n)(t()),r=Object(E.m)(t()),i=Object(E.p)(t()),o=Object(w.h)(t())||{},s=o.startPlaybackTime,a=o.endPlaybackTime,u=Object(w.j)(t())===c.j.PLAY||Object(w.j)(t())===c.j.PAUSE;return[i,r,"time",D({limit:20,time:s&&a&&u?k(s,a):void 0},e),Object(E.i)(n)(t())]},F=function(t,e){if(Object(E.m)(t())){var n=Object(v.e)(Object(E.k)(t()))(t()),r=Object(E.o)(t());return"multidim-extension"!==Object(h.get)(r,"source.type")&&n&&n.length>0?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fromValue,i=n.limit,o=void 0===i?20:i,s=Object(w.h)(e())||{},a=s.startPlaybackTime,u=s.endPlaybackTime;return T.a.Observable.of(t.filter((function(t){return!a||!u||p()(t).isSameOrAfter(a)&&p()(t).isSameOrBefore(u)})).filter((function(t){return!r||p()(t).isAfter(r)})).slice(0,o))}(n,t,e):C.b.apply(void 0,N(L(t,e))).map((function(t){return t.DomainValues.Domain.split(",")}))}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fromValue,r=e.limit,i=void 0===r?20:r,o=e.sort,s=void 0===o?"asc":o,a=Object(w.i)(t()),u=a.timeStep,l=a.stepUnit,c=p.a.duration(u,l),d=Object(w.h)(t())||{},h=d.startPlaybackTime,f=d.endPlaybackTime,m=void 0!==n?n:h||Object(v.a)(t())||(new Date).toString(),g=[];m!==n&&g.push(p()(m).toISOString());for(var y=0;y0&&void 0!==arguments[0]?arguments[0]:function(){return{}};return function(e){var n=Object(v.f)(t());return T.a.Observable.from(n.map((function(t){return Object(g.I)(t.id,{singleTile:!0})}))).concat(e).concat(T.a.Observable.from(n.map((function(t){return Object(g.I)(t.id,{singleTile:t.singleTile})}))))}},B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.start,r=e.end;return n&&r&&(p()(t).isBefore(n)||p()(t).isAfter(r))},U={retrieveFramesForPlayback:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.f).exhaustMap((function(){return F(r,{fromValue:Object(w.h)(r())&&Object(w.h)(r()).startPlaybackTime&&Object(w.h)(r()).endPlaybackTime?void 0:Object(v.a)(r())}).map((function(t){return Object(c.v)(t)})).let(Object(_.a)(Object(c.q)(!0),Object(c.q)(!1)),(function(){return T.a.Observable.of(Object(y.f)({title:"There was an error retrieving animation",message:"Please contact the administrator"}),Object(c.w)())})).let(Object(_.a)(Object(m.r)(!1,!0),Object(m.r)(!1,!1))).concat(t.ofType(c.h).filter((function(t){return t.frame%20==10})).switchMap((function(){return F(r,{fromValue:Object(w.e)(r())}).map(c.o).let(Object(_.a)(Object(c.q)(!0),Object(c.q)(!1)))}))).takeUntil(t.ofType(c.k,b.b)).concat(T.a.Observable.of(Object(m.r)(!1,!1))).let(G(r))}))},updateCurrentTimeFromAnimation:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.h).map((function(){return Object(w.b)(r())})).map((function(t){return t?Object(f.e)(t):Object(c.w)()}))},timeDimensionPlayback:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.i).exhaustMap((function(){return T.a.Observable.interval(1e3*Object(w.c)(r())).startWith(0).let(S(t.ofType(c.f,c.e).map((function(t){return t.type===c.f})))).map((function(){return Object(c.u)(Object(w.a)(r())+1)})).merge(t.ofType(c.a).map((function(t){var e=t.direction;return Object(c.u)(Math.max(0,Object(w.a)(r())+e))}))).concat(T.a.Observable.of(Object(c.w)())).takeUntil(t.ofType(c.k,b.b))}))},playbackToggleGuideLayerToFixedStep:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.l).exhaustMap((function(){return Object(E.m)(r())?T.a.Observable.of(Object(m.n)(void 0)):T.a.Observable.of(Object(m.n)(Object(h.get)(Object(E.q)(r()),"[0].id")))}))},playbackMoveStep:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(c.a).filter((function(){return Object(w.j)(r())!==c.j.PLAY})).switchMap((function(t){var e=t.direction,n=void 0===e?1:e,i=Object(w.g)(r())||{},o=Object(v.a)(r());return o&&i.forTime===o?T.a.Observable.of(n>0?i.next:i.previous):F(r,{limit:1,sort:n>0?"asc":"desc",fromValue:Object(v.a)(r())}).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=I(t,1),n=e[0];return n}))})).filter((function(t){return!!t})).map((function(t){return Object(f.e)(t)}))},playbackCacheNextPreviousTimes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(f.b,f.a,m.f,c.k,m.i).filter((function(){return Object(w.j)(r())!==c.j.PLAY&&Object(w.j)(r())!==c.j.PAUSE})).filter((function(){return Object(E.n)(r())})).filter((function(t){return!!t})).switchMap((function(t){var e=t.time||Object(v.a)(r());return T.a.Observable.forkJoin(C.b.apply(void 0,N(L(r,{sort:"asc",limit:1,fromValue:e}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return I(t,1)[0]})).catch((function(t){return t&&T.a.Observable.of(null)})),C.b.apply(void 0,N(L(r,{sort:"desc",limit:1,fromValue:e}))).map((function(t){return t.DomainValues.Domain.split(",")})).map((function(t){return I(t,1)[0]})).catch((function(t){return t&&T.a.Observable.of(null)}))).map((function(t){var n=I(t,2),r=n[0],i=n[1];return Object(c.y)({forTime:e,next:r,previous:i})}))}))},playbackFollowCursor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(f.a).filter((function(t){return(t.type===f.a||Object(w.j)(r())===c.j.PLAY)&&B(Object(v.a)(r()),Object(E.j)(r()))})).filter((function(){return Object(h.get)(Object(w.i)(r()),"following")})).switchMap((function(){return T.a.Observable.of(Object(m.l)((t=Object(v.a)(r()),e=Object(E.j)(r()),n=e.start,i=e.end,o=p()(i).diff(p()(n)),{start:t,end:p()(t).add(o).toISOString()})));var t,e,n,i,o}))},playbackStopWhenDeleteLayer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState,r=void 0===n?function(){}:n;return t.ofType(g.t).filter((function(){return!Object(E.n)(r())&&"PLAY"===Object(w.j)(r())})).switchMap((function(){return T.a.Observable.of(Object(c.w)())}))}},z=n("./MapStore2/web/client/reducers/dimension.js"),V=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/utils/ImmutableUtils.js");function q(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(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.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:function(){};try{if(!Object(h.isNaN)(parseInt(t,10))){var r=parseInt(t,10);return e(r<1?1:r)}return n()}catch(t){return n(t)}},st=function(t){var e=t.startPlaybackTime,n=t.endPlaybackTime,r=p()(e).diff(n);return{startPlaybackTime:r>=0?n:e,endPlaybackTime:r>=0?e:n}};function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lt=Object(u.compose)(Object(a.connect)(Object(l.a)(w.i,E.n,w.h,(function(t,e,n){return function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return ot(t,(function(t){a("frameDuration",t)}))}}),s.a.createElement(Z.InputGroup.Addon,null,"s"))),s.a.createElement(Z.ControlLabel,null,s.a.createElement(X.default,{msgId:"playback.settings.step.label"})," ",s.a.createElement($.a,{text:s.a.createElement(X.default,{msgId:"playback.settings.step.tooltip"})})),s.a.createElement(Z.FormGroup,{controlId:"formPlaybackStep"},s.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},s.a.createElement(et.a,{disabled:!h,componentClass:"input",type:"number",style:{input:{maxWidth:120}},value:r,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ot(t,(function(t){a("timeStep",t)}))}}),s.a.createElement(Z.FormControl,{disabled:!h,componentClass:"select",value:i,onChange:function(t){var e=t.target;return a("stepUnit",(void 0===e?{}:e).value)}},s.a.createElement(X.default,{msgId:"playback.settings.step.year",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"years"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.week",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"weeks"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.day",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"days"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.hour",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"hour"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.minute",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"minutes"},t)})),s.a.createElement(X.default,{msgId:"playback.settings.step.second",msgParams:{number:r||1}},(function(t){return s.a.createElement("option",{value:"seconds"},t)}))))),s.a.createElement(tt.a,{onSwitch:function(t){return d(t)},expanded:m.startPlaybackTime&&m.endPlaybackTime,title:s.a.createElement(X.default,{msgId:"playback.settings.range.title"}),buttons:v},s.a.createElement(Z.FormGroup,{controlId:"formPlaybackMode",style:{margin:10}},s.a.createElement(Q.a,{tooltipId:"playback.settings.range.animationStart",glyph:"play",date:m.startPlaybackTime,onUpdate:function(t){return y(st(rt(rt({},m),{},{startPlaybackTime:t})))},style:w,showButtons:!0}),s.a.createElement(Q.a,{glyph:"stop",tooltipId:"playback.settings.range.animationEnd",date:m.endPlaybackTime,onUpdate:function(t){return y(st(rt(rt({},m),{},{endPlaybackTime:t})))},style:w,showButtons:!0}))),s.a.createElement(Z.FormGroup,{controlId:"formPlaybackFollowingMode"},s.a.createElement(Z.Form,{componentClass:"fieldset",inline:!0},s.a.createElement(Z.ControlLabel,null,s.a.createElement(X.default,{msgId:"playback.settings.mode.following"})," ",s.a.createElement($.a,{text:s.a.createElement(X.default,{msgId:"playback.settings.mode.followingDescription"})})),s.a.createElement("span",null,s.a.createElement(J.a,{checked:e,onChange:function(t){return a("following",t)}})))))})),ct=Object(u.compose)(Object(u.withState)("showSettings","onShowSettings",!1),Object(u.withState)("collapsed","setCollapsed",!0),Object(u.withProps)((function(t){var e=t.setCollapsed;return{buttons:[{glyph:"minus",onClick:function(){return e(!0)}}]}}))),dt=Object(l.a)(w.j,E.n,w.g,w.d,(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return e?t===c.j.PLAY||t===c.j.PAUSE?r:{hasNext:!!n.next,hasPrevious:!!n.previous}:{hasNext:!0,hasPrevious:!0}})),pt=Object(u.compose)(Object(a.connect)(dt,{stepMove:c.n}),Object(u.withHandlers)({forward:function(t){var e=t.stepMove,n=void 0===e?function(){}:e;return function(){return n(1)}},backward:function(t){var e=t.stepMove,n=void 0===e?function(){}:e;return function(){return n(-1)}}})),ht=Object(u.compose)(ct,pt)((function(t){var e=t.status,n=t.statusMap,r=t.play,i=void 0===r?function(){}:r,o=t.forward,a=void 0===o?function(){}:o,u=t.backward,l=void 0===u?function(){}:u,c=t.pause,d=void 0===c?function(){}:c,p=t.stop,h=void 0===p?function(){}:p,f=t.hasPrevious,m=t.hasNext,g=t.showSettings,y=t.onShowSettings,v=void 0===y?function(){}:y,b=t.settingsStyle,w=void 0===b?{}:b;return s.a.createElement("div",{style:{display:"flex"}},e!==n.PLAY&&e!==n.PAUSE&&g&&s.a.createElement(lt,{style:w}),s.a.createElement(K.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"step-backward",key:"back",onClick:l,disabled:!f,tooltip:s.a.createElement(X.default,{msgId:"playback.backwardStep"})},{glyph:e===n.PLAY?"pause":"play",key:"play",active:e===n.PLAY||e===n.PAUSE,disabled:!m,bsStyle:e===n.PLAY||e===n.PAUSE?"success":"primary",onClick:function(){return e===n.PLAY?d():i()},tooltipId:m&&(e===n.PLAY?"playback.pause":e===n.PAUSE?"playback.paused":"playback.play")},{glyph:"stop",key:"stop",disabled:e!==n.PLAY&&e!==n.PAUSE,onClick:h,tooltip:!(e!==n.PLAY&&e!==n.PAUSE)&&s.a.createElement(X.default,{msgId:"playback.stop"})},{glyph:"step-forward",key:"forward",onClick:a,disabled:!m,tooltip:m&&s.a.createElement(X.default,{msgId:"playback.forwardStep"})},{glyph:"cog",key:"settings",bsStyle:e!==n.PLAY&&e!==n.PAUSE&&g?"success":"primary",active:(e!==n.PLAY||e!==n.PAUSE)&&!!g,disabled:e===n.PLAY||e===n.PAUSE,onClick:function(){return e!==n.PLAY&&v(!g)},tooltip:!(e===n.PLAY||e===n.PAUSE)&&s.a.createElement(X.default,{msgId:"playback.settings.tooltip"})}]}))}));function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{status:c.j.STOP,currentFrame:-1,settings:W},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c.f:return Object(H.e)("status",c.j.PLAY,t);case c.e:return Object(H.e)("status",c.j.PAUSE,t);case c.k:return Object(H.e)("status",c.j.STOP,Object(H.e)("currentFrame",-1,t));case c.i:return Object(H.e)("frames",e.frames,Object(H.e)("currentFrame",-1,t));case c.d:return Object(H.e)("framesLoading",e.loading,t);case c.b:return Object(H.e)("frames",[].concat(q(t.frames||[]),q(e.frames)),t);case c.h:return Object(H.e)("currentFrame",e.frame,t);case c.g:return Object(H.e)("playbackRange",e.range,t);case c.c:return Object(H.e)("settings[".concat(e.name,"]"),e.value,t);case c.m:return Object(H.e)("metadata",{next:e.next,previous:e.previous,forTime:e.forTime},t);case V.a:return Object(H.e)("metadata",void 0,Object(H.e)("framesLoading",void 0,Object(H.e)("playbackRange",void 0,Object(H.e)("frames",void 0,Object(H.e)("currentFrame",-1,Object(H.e)("status","STOP",Object(H.e)("settings",W,t)))))));default:return t}},dimension:z.default}}},"./MapStore2/web/client/plugins/Print.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/print/print.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./node_modules/prop-types/index.js"),a=n.n(s),u=n("./node_modules/react/index.js"),l=n.n(u),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-redux/es/index.js"),p=n("./node_modules/reselect/es/index.js"),h=n("./MapStore2/web/client/actions/controls.js"),f=n("./MapStore2/web/client/actions/print.js"),m=n("./MapStore2/web/client/components/I18N/Message.jsx"),g=n("./MapStore2/web/client/components/misc/Dialog.jsx");function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v={antiAliasing:!0,iconSize:24,legendDpi:96,fontFamily:"Verdana",fontSize:8,bold:!1,italic:!1,resolution:96,name:"",description:""},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split("_")[0]};var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{spec:v,capabilities:null,map:null,isLoading:!1,pdfUrl:null},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case h.d:return"print"===e.control?o()({},t,{pdfUrl:null,isLoading:!1,error:null}):t;case f.f:var n=Object(r.get)(e,"capabilities.layouts",[{name:"A4"}]),i=n.filter((function(e){return b(e.name)===t.spec.sheet})).length?t.spec.sheet:b(n[0].name);return o()({},t,{capabilities:e.capabilities,spec:o()({},t.spec||{},{sheet:i,resolution:e.capabilities&&e.capabilities.dpis&&e.capabilities.dpis.length&&e.capabilities.dpis[0].value})});case f.j:return o()({},t,{spec:o()({},t.spec,y({},e.name,e.value))});case f.c:var s=e.layers.map((function(t){return t.title?o()({},t,{title:Object(r.isObject)(t.title)&&e.currentLocale&&t.title[e.currentLocale]||Object(r.isObject)(t.title)&&t.title.default||t.title}):t}));return o()({},t,{map:{center:e.center,zoom:e.zoom,scaleZoom:e.scaleZoom,scale:e.scale,layers:s,projection:e.projection},error:null});case f.b:var a=e.zoom-t.map.scaleZoom;return o()({},t,{map:o()({},t.map,{scaleZoom:e.zoom,zoom:t.map.zoom+a,scale:e.scale})});case f.a:return o()({},t,{map:o()({},t.map,{size:e.size})});case f.i:return o()({},t,{isLoading:!0,pdfUrl:null,error:null});case f.g:return o()({},t,{isLoading:!1,pdfUrl:e.url,error:null});case f.h:case f.e:return o()({},t,{isLoading:!1,pdfUrl:null,error:e.error});case f.d:return o()({},t,{isLoading:!1,pdfUrl:null,error:null});default:return t}},E=n("./MapStore2/web/client/selectors/layers.js"),x=n("./MapStore2/web/client/selectors/locale.js"),O=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),S=n("./MapStore2/web/client/selectors/map.js"),_=n("./MapStore2/web/client/selectors/maptype.js"),C=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),j=n("./MapStore2/web/client/utils/LocaleUtils.js"),T=n("./MapStore2/web/client/utils/MapUtils.js");function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0})),z(B(t),"filterLayers",(function(e){var n=t.props.layers.filter((function(e){return e.visibility&&t.isAllowed(e)}));if(t.isBackgroundIgnored()&&t.props.defaultBackground&&e.defaultBackground){var r=t.props.layers.filter((function(e){return e.type===t.props.defaultBackground}))[0];return[o()({},r,{visibility:!0})].concat(A(n))}return n})),z(B(t),"configurePrintMap",(function(e,n){var r=e||t.props.map,i=n||t.props.printSpec;if(r&&r.bbox&&t.props.capabilities){var o=Object(C.reprojectBbox)([r.bbox.bounds.minx,r.bbox.bounds.miny,r.bbox.bounds.maxx,r.bbox.bounds.maxy],r.bbox.crs,r.projection),s=t.getMapSize();if(t.props.useFixedScales){var a=t.props.getZoomForExtent(o,s,t.props.minZoom,t.props.maxZoom),u=$(t.props.capabilities),l=Q(r.zoom,u);t.props.configurePrintMap(r.center,a,l,u[l],t.filterLayers(i),r.projection,t.props.currentLocale)}else t.props.configurePrintMap(r.center,r.zoom,r.zoom,t.props.scales[r.zoom],t.filterLayers(i),r.projection,t.props.currentLocale)}})),z(B(t),"print",(function(){var e=t.props.printSpec;t.props.isLocalizedLayerStylesEnabled&&(e=P(P({},e),{},{env:t.props.localizedLayerStylesEnv,language:t.props.currentLocaleLanguage})),t.props.setPage(0),t.props.onBeforePrint(),t.props.preloadData(e).then((function(e){var n=t.props.getPrintSpecification(e);t.props.onPrint(t.props.capabilities.createURL,P(P({},n),t.props.overrideOptions))})).catch((function(e){t.props.printError("Error pre-loading data:"+e.message)}))})),t}return e=p,(n=[{key:"UNSAFE_componentWillMount",value:function(){if(this.props.usePreview&&!window.PDFJS){var t=document.createElement("script");t.type="text/javascript",t.src="https://unpkg.com/pdfjs-dist@1.4.79/build/pdf.combined.js",document.head.appendChild(t)}this.configurePrintMap()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.open&&!this.props.open,n=this.props.open&&this.props.syncMapPreview&&Object(T.mapUpdated)(this.props.map,t.map),r=t.printSpec.defaultBackground!==this.props.printSpec.defaultBackground;(e||n||r)&&this.configurePrintMap(t.map,t.printSpec)}},{key:"render",value:function(){return(this.props.capabilities||this.props.error)&&this.props.open?this.props.withContainer?this.props.withPanelAsContainer?l.a.createElement(c.Panel,{className:"mapstore-print-panel",header:l.a.createElement("span",null,l.a.createElement("span",{className:"print-panel-title"},l.a.createElement(m.default,{msgId:"print.paneltitle"})),l.a.createElement("span",{className:"print-panel-close panel-close",onClick:this.props.toggleControl})),style:this.props.style},this.renderBody()):l.a.createElement(g.a,{id:"mapstore-print-panel",style:P({left:"17%",top:"50px",zIndex:1990},this.props.style)},l.a.createElement("span",{role:"header"},l.a.createElement("span",{className:"print-panel-title"},l.a.createElement(m.default,{msgId:"print.paneltitle"})),l.a.createElement("button",{onClick:this.props.toggleControl,className:"print-panel-close close"},this.props.closeGlyph?l.a.createElement(c.Glyphicon,{glyph:this.props.closeGlyph}):l.a.createElement("span",null,"×"))),this.renderBody()):this.renderBody():null}}])&&k(e.prototype,n),a&&k(e,a),p}(l.a.Component);z(J,"propTypes",{map:a.a.object,layers:a.a.array,capabilities:a.a.object,printSpec:a.a.object,printSpecTemplate:a.a.object,withContainer:a.a.bool,withPanelAsContainer:a.a.bool,open:a.a.bool,pdfUrl:a.a.string,title:a.a.string,style:a.a.object,mapWidth:a.a.number,mapType:a.a.string,alternatives:a.a.array,toggleControl:a.a.func,onBeforePrint:a.a.func,setPage:a.a.func,onPrint:a.a.func,printError:a.a.func,configurePrintMap:a.a.func,preloadData:a.a.func,getPrintSpecification:a.a.func,getLayoutName:a.a.func,error:a.a.string,getZoomForExtent:a.a.func,minZoom:a.a.number,maxZoom:a.a.number,usePreview:a.a.bool,mapPreviewOptions:a.a.object,syncMapPreview:a.a.bool,useFixedScales:a.a.bool,scales:a.a.array,ignoreLayers:a.a.array,defaultBackground:a.a.string,closeGlyph:a.a.string,submitConfig:a.a.object,previewOptions:a.a.object,currentLocale:a.a.string,currentLocaleLanguage:a.a.string,overrideOptions:a.a.object,isLocalizedLayerStylesEnabled:a.a.bool,localizedLayerStylesEnv:a.a.object}),z(J,"contextTypes",{messages:a.a.object}),z(J,"defaultProps",{withContainer:!0,withPanelAsContainer:!1,title:"print.paneltitle",toggleControl:function(){},onBeforePrint:function(){},setPage:function(){},onPrint:function(){},configurePrintMap:function(){},printSpecTemplate:{},preloadData:X,getPrintSpecification:K,getLayoutName:Z,getZoomForExtent:T.defaultGetZoomForExtent,pdfUrl:null,mapWidth:370,mapType:"leaflet",minZoom:1,maxZoom:23,alternatives:[{name:"legend",component:b,regex:/legend/},{name:"2pages",component:w,regex:/2_pages/},{name:"landscape",component:I,regex:/landscape/}],usePreview:!0,mapPreviewOptions:{enableScalebox:!1,enableRefresh:!1},syncMapPreview:!0,useFixedScales:!1,scales:[],ignoreLayers:["google","bing"],defaultBackground:"osm",closeGlyph:"1-close",submitConfig:{buttonConfig:{bsSize:"small",bsStyle:"primary"},glyph:""},previewOptions:{buttonStyle:"primary"},style:{},currentLocale:"en-US",overrideOptions:{}});var tt=Object(p.a)([function(t){return t.controls.print&&t.controls.print.enabled||t.controls.toolbar&&"print"===t.controls.toolbar.active},function(t){return t.print&&t.print.capabilities},function(t){return t.print&&t.print.spec&&o()({},t.print.spec,t.print.map||{})},function(t){return t.print&&t.print.pdfUrl},function(t){return t.print&&t.print.error},S.l,E.p,S.p,function(t){return t.browser&&(!t.browser.ie||t.browser.ie11)},x.b,x.a,_.c,O.b,O.c],(function(t,e,n,r,i,o,s,a,u,l,c,d,p,h){return{open:t,capabilities:e,printSpec:n,pdfUrl:r,error:i,map:o,layers:s.filter((function(t){return!t.loadingError})),scales:a,usePreview:u,currentLocale:l,currentLocaleLanguage:c,mapType:d,isLocalizedLayerStylesEnabled:p,localizedLayerStylesEnv:h}})),et=Object(d.connect)(tt,{toggleControl:h.h.bind(null,"print",null),onPrint:f.q,printError:f.p,onBeforePrint:f.r,setPage:h.g.bind(null,"print","currentPage"),configurePrintMap:f.m})(J);t(et)}.bind(null,n)).catch(n.oe)},enabler:function(t){return t.print&&t.print.enabled||t.toolbar&&"print"===t.toolbar.active}},{disablePluginIf:"{state('mapType') === 'cesium' || !state('printEnabled')}",Toolbar:{name:"print",position:7,help:l.a.createElement(m.default,{msgId:"helptexts.print"}),tooltip:"printbutton",icon:l.a.createElement(c.Glyphicon,{glyph:"print"}),exclusive:!0,panel:!0,priority:1},BurgerMenu:{name:"print",position:2,text:l.a.createElement(m.default,{msgId:"printbutton"}),icon:l.a.createElement(c.Glyphicon,{glyph:"print"}),action:h.h.bind(null,"print",null),priority:2,doNotHide:!0}}),reducers:{print:w}}},"./MapStore2/web/client/plugins/ScaleBox.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./MapStore2/web/client/utils/PluginsUtils.js"),s=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),u=n("./MapStore2/web/client/actions/map.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/actions/help.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),h=n("./MapStore2/web/client/components/help/HelpBadge.jsx");n("./MapStore2/web/client/components/help/help.css");function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n0},D=Object(p.withHandlers)({clickHandler:function(t){var e=t.selectedLayer,n=t.offsetEnabled,i=t.status,o=t.setCurrentTime,s=void 0===o?function(){}:o,a=t.selectGroup,u=void 0===a?function(){}:a;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.time,a=t.group,l=t.what,c=t.event;if("PLAY"!==i)switch(l){case"group-label":a&&"PLAY"!==i&&u(a);break;default:var d=c&&c.target&&c.target.closest(".vis-custom-time"),p=d&&d.getAttribute("class"),h=p&&Object(r.trim)(p.replace("vis-custom-time",""));o&&!n&&"startPlaybackTime"!==h&&"endPlaybackTime"!==h&&s(o.toISOString(),e)}}},timechangedHandler:function(t){var e=t.currentTime,n=t.setOffset,r=void 0===n?function(){}:n,i=t.setCurrentTime,o=void 0===i?function(){}:i,s=t.currentTimeRange,a=void 0===s?{}:s,u=t.playbackRange,l=t.setPlaybackRange,c=void 0===l?function(){}:l,d=t.selectedLayer;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.time,i=t.id;if("startPlaybackTime"!==i&&"endPlaybackTime"!==i)"currentTime"===i&&(a.end?M(n,a.end)?o(n.toISOString(),null):(o(a.end),r(n.toISOString())):o(n.toISOString(),d)),"offsetTime"===i&&(M(e,n)?r(n.toISOString()):(o(n.toISOString()),r(e)));else{var s=P(P({},u),{},A({},i,n.toISOString())),l=Object(I.e)(s.startPlaybackTime,s.endPlaybackTime),p=l.start,h=l.end;M(p,h)&&c({startPlaybackTime:p,endPlaybackTime:h})}}}});function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;i(t),e(t)}})}})),Object(p.withPropsOnChange)(["rangeItems","currentTime","offsetEnabled","selectedLayer","currentTimeRange","readOnly"],(function(t){var e=t.currentTimeRange,n=t.rangeItems,r=void 0===n?[]:n,i=t.readOnly;return{rangeItems:t.offsetEnabled&&void 0!==e.start&&void 0!==e.end?[].concat(F(r),[k(k({id:"current-range",editable:{updateTime:!i,updateGroup:!1,remove:!1}},Object(I.e)(e.start,e.end)),{},{type:"background",className:"ms-current-range"})]).filter((function(t){return t})):r}}))),Object(p.withPropsOnChange)(["currentTime","playbackRange","playbackEnabled","offsetEnabled","currentTimeRange"],(function(t){var e=t.currentTime,n=t.playbackRange,r=t.playbackEnabled,i=t.offsetEnabled,o=t.currentTimeRange;return{customTimes:[e?{currentTime:e}:{},r&&n&&n.startPlaybackTime&&n.endPlaybackTime?n:{},i&&o?{offsetTime:o.end}:{}].reduce((function(t,e){return e?k(k({},t),e):k({},t)}),{})}}))),U=n("./node_modules/prop-types/index.js"),z=n.n(U),V=n("./node_modules/vis/dist/vis-timeline-graph2d.min.js"),H=n.n(V);n("./node_modules/vis/dist/vis-timeline-graph2d.min.css");function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(t,e)}(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.")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?e.$el.initialFitDone?e.setAllItems(t):(e.setAllItems(t),e.$el.emit("changed")):e.$el.initialRangeChangeDone&&e.setAllItems(t)})),e.state={customTimes:[]},e}return e=a,(n=[{key:"componentDidMount",value:function(){var t=this,e=this.refs.container;this.$el=new H.a.Timeline(e,void 0,this.props.options),nt.forEach((function(e){return t.$el.on(e,t.props["".concat(e,"Handler")])})),this.init()}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.items,r=e.groups,i=e.options,o=e.selection,s=e.customTimes,a=e.readOnly,u=e.rangeItems,l=n!==t.items,c=r!==t.groups,d=i!==t.options,p=s!==t.customTimes,h=o!==t.selection,f=a!==t.readOnly,m=u!==t.rangeItems;return l||c||d||p||h||f||m}},{key:"componentDidUpdate",value:function(t){this.init(t)}},{key:"componentWillUnmount",value:function(){this.$el.destroy()}},{key:"render",value:function(){return l.a.createElement("div",{ref:"container",className:this.props.readOnly?"read-only-timeline":"",onMouseOut:this.props.onMouseOutHandler})}},{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,i=n.items,s=n.rangeItems,a=n.groups,u=n.options,l=n.selection,c=n.selectionOptions,d=void 0===c?{}:c,p=n.customTimes,h=n.animate,f=void 0===h||h,m=n.currentTime,g=u;if(f&&(g=Object(r.omit)(u,"start","end"),u.start&&u.end?this.$el.setWindow(u.start,u.end,{animation:f}):this.$el.setWindow(o()().subtract(1,"month"),o()().add(1,"month"),{animation:f})),this.$el.setOptions(g),a.length>0){var y=new H.a.DataSet;y.add(a),this.$el.setGroups(y)}if(i&&i!==e.items)this.setItems(i);else if(s!==e.rangeItems){var v=this.$el&&this.$el.itemsData&&this.$el.itemsData.getDataSet();if(v){var b=Object(r.intersectionBy)(s||[],e.rangeItems||[],"id"),w=Object(r.differenceBy)(s||[],e.rangeItems||[],"id"),E=Object(r.differenceBy)(e.rangeItems||[],s||[],"id");b.map((function(t){return v.update(t)})),w.map((function(t){return v.add(t)})),E.map((function(t){var e=t.id;return v.remove(e)}))}else this.setItems(i)}this.$el.setSelection(l,d),m&&this.$el.setCurrentTime(m);var x=Object(r.keys)(this.state.customTimes),O=Object(r.keys)(p),S=Object(r.difference)(O,x),_=Object(r.difference)(x,O),C=Object(r.intersection)(x,O);Object(r.each)(_,(function(e){return t.$el.removeCustomTime(e)})),Object(r.each)(S,(function(e){var n=p[e];t.$el.addCustomTime(n,e)})),Object(r.each)(C,(function(e){var n=p[e];t.$el.setCustomTime(n,e)})),this.setState({customTimes:p}),(this.props.readOnly!==e.readOnly||this.props.readOnly&&S.length>0)&&Object(r.each)(this.$el.customTimes,(function(n){t.props.readOnly?n.hammer.off("panstart panmove panend"):!0===e.readOnly&&(n.hammer.on("panstart",n._onDragStart.bind(n)),n.hammer.on("panmove",n._onDrag.bind(n)),n.hammer.on("panend",n._onDragEnd.bind(n)))}))}}])&&X(e.prototype,n),i&&X(e,i),a}(l.a.Component);tt(st,"propTypes",Object(r.assign)(ot,rt)),tt(st,"defaultProps",Object(r.assign)({items:[],groups:[],options:{},selection:[],customTimes:{}},it));var at=st;function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.title,r=t.name;return e+n+r})).length>0}),(function(t){var e=t.layers,n=void 0===e?[]:e,i=t.loading,o=void 0===i?{}:i,s=t.selectedLayer;return{groups:n.map((function(t){return{id:t.id,className:(o[t.id]?"loading":"")+(t.id&&t.id===s?" selected":""),content:'
'+(o[t.id]?'
':'
'.concat(t.id&&t.id===s?'':"","
"))+'
'.concat(Object(r.isString)(t.title)?t.title:t.name,"
")+"
"}}))}}))),ht=Object(p.compose)(Object(d.connect)(Object(h.a)(x.a,_.a,(function(t,e){return{currentTime:t,currentTimeRange:e}})),{setCurrentTime:g.o,moveCurrentRange:f.e,setOffset:f.f})),ft=Object(p.compose)(Object(d.connect)(Object(h.c)({playbackRange:S.h,status:S.j}),{setPlaybackRange:m.t})),mt=Object(p.compose)(Object(d.connect)(Object(h.a)(_.n,(function(t){return{selectedLayer:t}})),{selectGroup:g.n})),gt=Object(p.compose)(Object(d.connect)((function(){return{}}),{rangechangedHandler:g.l})),yt=Object(p.compose)(ht,ft,mt,D,gt,pt,Object(p.defaultProps)({key:"timeline",options:{maxHeight:"90%",verticalScroll:!0,stack:!1,showMajorLabels:!0,showCurrentTime:!1,zoomMin:10,zoomable:!0,type:"background",margin:{item:0,axis:0},format:{minorLabels:{minute:"h:mma",hour:"ha"}},itemsAlwaysDraggable:!0,moment:function(t){return o()(t).utc()}}}),Object(p.withPropsOnChange)(["viewRange","options"],(function(t){var e=t.viewRange,n=void 0===e?{}:e;return{options:lt(lt({},t.options),n)}})),Object(p.withPropsOnChange)(["status"],(function(t){return{readOnly:"PLAY"===t.status}})),B,Object(j.a)((function(t){var e=t.loading;return e&&e.timeline}),(function(){return l.a.createElement("div",{style:{margin:"auto",fontWeight:"bold"}},l.a.createElement(T.a,{style:{display:"inline-block",verticalAlign:"middle"}}),l.a.createElement(y.default,{msgId:"loading"}))}),{white:!0}))(at),vt=n("./node_modules/rxjs/Rx.js"),bt=n.n(vt),wt=n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"),Et=n("./MapStore2/web/client/components/misc/Button.jsx");function xt(){return(xt=Object.assign||function(t){for(var e=1;e0},kt=Object(p.compose)(Object(d.connect)(Object(h.a)(_.f,_.q,x.a,_.a,x.g,S.h,S.j,_.j,(function(t,e,n,r,i,o,s,a){return{visible:t,layers:e,currentTime:n,currentTimeRange:r,offsetEnabled:i,playbackRange:o,status:s,viewRange:a}})),{setCurrentTime:g.o,onOffsetEnabled:g.k,setOffset:f.f,setPlaybackRange:m.t,moveRangeTo:g.l}),Object(p.branch)((function(t){var e=t.visible,n=void 0===e||e,r=t.layers,i=void 0===r?[]:r;return!n||0===Object.keys(i).length}),p.renderNothing),Object(p.withState)("options","setOptions",{collapsed:!0}),Object(d.connect)(Object(h.a)(_.e,(function(t){return{mapSync:t}})),{toggleMapSync:g.q}),Object(p.compose)(Object(p.compose)(Object(p.withStateHandlers)((function(){return{}}),{onResize:function(){return function(t){return{containerWidth:t.width}}}}),Object(b.a)({querySelector:".ms2",closest:!0,debounceTime:100})),Object(p.defaultProps)({style:{marginBottom:35,marginLeft:100,marginRight:80}}),Object(d.connect)(Object(h.a)((function(t){return Object(O.c)(t,{right:!0,bottom:!0,left:!0})}),(function(t){return{mapLayoutStyle:t}}))),Object(p.withProps)((function(t){var e=t.containerWidth,n=t.style,r=t.mapLayoutStyle,i=n||{},o=i.marginLeft,s=i.marginRight,a=r.left,u=void 0===a?0:a,l=r.right,c=void 0===l?0:l;c=Mt(c)&&Dt(c)*e||c,u=Mt(u)&&Dt(u)*e||u;if(e){var d=e-c-u-o-s;return{hide:d<410,compactToolbar:d<880,style:Nt(Nt(Nt({},n),r),{},{minWidth:410})}}return{style:Nt(Nt(Nt({},n),r),{},{minWidth:410})}})),Object(p.branch)((function(t){return t.hide}),p.renderNothing),Object(p.setDisplayName)("TimelinePlugin")))((function(t){var e=t.items,n=t.options,i=t.setOptions,s=t.mapSync,a=t.toggleMapSync,u=void 0===a?function(){}:a,d=t.currentTime,p=t.setCurrentTime,h=t.offsetEnabled,f=t.onOffsetEnabled,m=t.currentTimeRange,g=t.setOffset,v=t.style,b=t.status,x=t.viewRange,O=t.moveRangeTo,S=t.compactToolbar,_=n.hideLayersName,C=n.collapsed,j=Object(r.head)(e&&e.filter((function(t){return"playback"===t.name}))),T=j&&j.plugin,I=function(t,e,n,r){var i=o()(n.end).diff(n.start)/2;if("time-current"===e&&n&&n.start.toString()!==o()(t).add(-1*i).toString()&&n.end.toString()!==o()(t).add(i).toString()&&O({start:o()(t).add(-1*i),end:o()(t).add(i)}),"range-start"===e||"range-end"===e){var s=o()(r.end).diff(r.start),a=o()(r.start).add(s/2);O(s/2<=i?{start:o()(a).add(-1*i),end:o()(a).add(i)}:{start:o()(a).add(-1*s*5/2),end:o()(a).add(5*s/2)})}};return l.a.createElement("div",{style:Nt(Nt({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},v),{},{right:C?"auto":v.right||0}),className:"timeline-plugin".concat(_?" hide-layers-name":"").concat(h?" with-time-offset":"")},h&&l.a.createElement(E.a,{clickable:!C,glyph:"range-start",onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x,m)},tooltip:l.a.createElement(y.default,{msgId:"timeline.rangeStart"}),showButtons:!0,date:d||m&&m.start,onUpdate:function(t){return(m&&Rt(t,m.end)||!m)&&"PLAY"!==b&&p(t)},className:"shadow-soft",style:{position:"absolute",top:-5,left:2,transform:"translateY(-100%)"}}),l.a.createElement("div",{className:"timeline-plugin-toolbar".concat(S?" ms-collapsed":"")},h&&m?l.a.createElement(E.a,{clickable:!C,glyph:"range-end",onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x,m)},tooltip:l.a.createElement(y.default,{msgId:"timeline.rangeEnd"}),date:m.end,showButtons:!0,onUpdate:function(t){return"PLAY"!==b&&Rt(d,t)&&g(t)}}):l.a.createElement(E.a,{clickable:!C,glyph:"time-current",showButtons:!0,onIconClick:function(t,e){return"PLAY"!==b&&I(t,e,x)},tooltip:l.a.createElement(y.default,{msgId:"timeline.currentTime"}),date:d||m&&m.start,onUpdate:function(t){return(m&&Rt(t,m.end)||!m)&&"PLAY"!==b&&p(t)}}),l.a.createElement("div",{className:"timeline-plugin-btn-group"},l.a.createElement(w.a,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"list",tooltip:l.a.createElement(y.default,{msgId:_?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:_?"primary":"success",visible:!C,active:!_,onClick:function(){return i(Nt(Nt({},n),{},{hideLayersName:!_}))}},{glyph:"time-offset",bsStyle:h?"success":"primary",active:h,disabled:"PLAY"===b,tooltip:l.a.createElement(y.default,{msgId:h?"timeline.disableRange":"timeline.enableRange"}),onClick:function(){"PLAY"!==b&&f(!h)}},{glyph:"map-synch",tooltip:l.a.createElement(y.default,{msgId:s?"timeline.mapSyncOn":"timeline.mapSyncOff"}),bsStyle:s?"success":"primary",active:s,onClick:function(){return u(!s)}}]}),T&&l.a.createElement(T,Tt({},j,{settingsStyle:{right:C||S?40:"unset"}}))),l.a.createElement(At,{onClick:function(){return i(Nt(Nt({},n),{},{collapsed:!C}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:l.a.createElement(y.default,{msgId:C?"timeline.expand":"timeline.collapse"})},l.a.createElement(c.Glyphicon,{glyph:C?"chevron-up":"chevron-down"}))),!C&&l.a.createElement(yt,{offsetEnabled:h,playbackEnabled:!0,hideLayersName:_}))}));e.a={TimelinePlugin:a()(kt,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:l.a.createElement(jt,null),position:0}}),reducers:{dimension:n("./MapStore2/web/client/reducers/dimension.js").default,timeline:n("./MapStore2/web/client/reducers/timeline.js").default},epics:n("./MapStore2/web/client/epics/timeline.js").default}},"./MapStore2/web/client/plugins/Toolbar.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react/index.js"),i=n.n(r),o=n("./node_modules/prop-types/index.js"),s=n.n(o),a=n("./node_modules/react-redux/es/index.js"),u=(n("./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css"),n("./node_modules/react-transition-group/index.js")),l=n("./MapStore2/web/client/selectors/featuregrid.js"),c=n("./MapStore2/web/client/selectors/maplayout.js"),d=n("./node_modules/reselect/es/index.js"),p=n("./node_modules/object-assign/index.js"),h=n.n(p),f=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(){return(y=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"toolbar";return Object(a.connect)(P(t))(N)},reducers:{controls:n("./MapStore2/web/client/reducers/controls.js").default}}},"./MapStore2/web/client/plugins/ZoomAll.jsx":function(t,e,n){"use strict";n("./MapStore2/web/client/plugins/zoomall/zoomall.css");var r=n("./node_modules/object-assign/index.js"),i=n.n(r),o=n("./node_modules/react/index.js"),s=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),u=n("./node_modules/react-redux/es/index.js"),l=n("./node_modules/reselect/es/index.js"),c=n("./MapStore2/web/client/actions/map.js"),d=n("./node_modules/prop-types/index.js"),p=n.n(d),h=n("./MapStore2/web/client/components/misc/Button.jsx"),f=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),m=n("./MapStore2/web/client/utils/MapUtils.js"),g=n("./MapStore2/web/client/utils/ConfigUtils.js");function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n0&&l.a.createElement(a,w({},e.innerProps,{mapType:t.props.mapType,tools:u,panels:e.childPanels}))),e)})),N(T(t),"renderTools",(function(){return t.props.tools.map(t.renderTool)})),N(T(t),"renderPanels",(function(){return t.props.panels.filter((function(t){return!t.panel.loadPlugin})).map((function(e){var n=e.panel,r=l.a.createElement(n,w({key:e.name,mapType:t.props.mapType},e.cfg,e.props||{},{items:e.items||[]})),i=e.title?l.a.createElement(g.default,{msgId:e.title}):null;return e.wrap?l.a.createElement(c.Collapse,{key:"mapToolBar-item-collapse-"+e.name,in:t.props.activePanel===e.name},l.a.createElement(c.Panel,{header:i,style:t.props.panelStyle,className:t.props.panelClassName},r)):r}))})),N(T(t),"mergeHandlers",(function(t,e){return Object.keys(e).reduce((function(n,r){return o()(n,N({},r,t[r]?Object(p.d)(t[r],e[r]):e[r]))}),t)})),N(T(t),"addTooltip",(function(e,n){if(n.tooltip){var r=l.a.createElement(c.Tooltip,{id:t.props.id+"-"+n.name+"-tooltip"},l.a.createElement(g.default,{msgId:n.tooltip}));return l.a.createElement(y.a,{key:t.props.id+"-"+n.name+"-overlay",rootClose:!0,placement:"left",overlay:r},e)}return e})),t}return e=a,(n=[{key:"render",value:function(){var t=this.props.container;return l.a.createElement("span",{id:this.props.id,style:this.props.containerWrapperStyle},l.a.createElement(t,{id:this.props.id+"-container",style:this.props.style,className:this.props.className},this.renderTools()),this.renderPanels())}}])&&S(e.prototype,n),i&&S(e,i),a}(l.a.Component);N(A,"propTypes",{id:a.a.string.isRequired,container:a.a.func,containerWrapperStyle:a.a.object,tool:a.a.func,className:a.a.string,style:a.a.object,tools:a.a.array,panels:a.a.array,mapType:a.a.string,toolStyle:a.a.string,activeStyle:a.a.string,toolSize:a.a.string,stateSelector:a.a.string.isRequired,eventSelector:a.a.string,panelStyle:a.a.object,panelClassName:a.a.string,activePanel:a.a.string,toolCfg:a.a.object}),N(A,"contextTypes",{messages:a.a.object,router:a.a.object}),N(A,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:v.a,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),e.a=A},"./MapStore2/web/client/plugins/identify/identify.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/locale/Message.jsx":function(t,e,n){"use strict";var r=n("./node_modules/react-redux/es/index.js"),i=n("./MapStore2/web/client/components/I18N/Message.jsx");e.a=Object(r.connect)((function(t){return{locale:t.locale&&t.locale.currentLocale,messages:t.locale&&t.locale.messages||[]}}))(i.default)},"./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$":function(t,e,n){var r={"./cesium/index":["./MapStore2/web/client/plugins/map/cesium/index.js",24],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",2,7,12,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",2,3,5,7,17]};function i(t){if(!n.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],i=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id="./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$",t.exports=i},"./MapStore2/web/client/plugins/map/css/map.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/maploading/maploading.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/omnibar/omnibar.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/print/print.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/scalebox/scalebox.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/zoom/zoom.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/plugins/zoomall/zoomall.css":function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css");"string"==typeof r&&(r=[[t.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(t.exports=r.locals)},"./MapStore2/web/client/reducers/dimension.js":function(t,e,n){"use strict";n.r(e);var r=n("./MapStore2/web/client/actions/dimension.js"),i=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./node_modules/moment/moment.js"),u=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js");e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.d:return Object(s.e)("data[".concat(e.dimension,"][").concat(e.layerId,"]"),e.data,t);case r.b:return Object(s.e)("currentTime",e.time,t);case r.c:return Object(s.e)("offsetTime",e.offsetTime,t);case r.a:if(t.offsetTime&&t.currentTime){var n=u()(t.offsetTime).diff(t.currentTime),a=u()(e.time).add(n);return Object(s.e)("currentTime",e.time,Object(s.e)("offsetTime",a.toISOString(),t))}return Object(s.e)("currentTime",e.time,t);case i.t:var c=Object(l.mapValues)(t.data,(function(t){return Object(l.pickBy)(t,(function(t,n){return n!==e.node}))}));return Object(s.e)("data",c,t);case o.a:return Object(s.e)("data",void 0,Object(s.e)("currentTime",void 0,Object(s.e)("offsetTime",void 0,t)));default:return t}}},"./MapStore2/web/client/reducers/mapInfo.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/mapInfo.js"),i=n("./MapStore2/web/client/actions/config.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=n("./node_modules/object-assign/index.js"),a=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/MapInfoUtils.js");function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(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.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:y,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.p:return a()({},t,{warning:"NO_QUERYABLE_LAYERS"});case r.e:return a()({},t,{warning:null});case r.c:return a()({},t,{enabled:e.enabled});case r.x:return a()({},t,{enabled:!t.enabled});case r.d:return a()({},t,{index:e.index});case r.w:return a()({},t,{highlight:e.enabled});case r.o:var s=e.reqId,u=e.request,l=t.requests||[];return a()({},t,{requests:[].concat(d(l),[{request:u,reqId:s}])});case r.q:t.index,t.loaded;var p=c(t,["index","loaded"]);return f(f({},p),{},{queryableLayers:[],responses:[],requests:[]});case r.n:return g(t,e,"data");case r.i:return g(t,e,"exceptions");case r.h:return g(t,e,"error");case r.j:return a()({},t,{clickPoint:e.point,clickLayer:e.layer||null,itemId:e.itemId||null,overrideParams:e.overrideParams||null,filterNameList:e.filterNameList||null});case r.b:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{infoFormat:e.infoFormat})});case r.t:return a()({},t,{showMarker:!0});case r.l:return a()({},t,{showMarker:!1});case r.u:return a()({},t,{showModalReverse:!0,reverseGeocodeData:e.reverseGeocodeData});case r.m:return a()({},t,{showModalReverse:!1,reverseGeocodeData:void 0});case o.a:return a()({},t,{showMarker:!1,responses:[],requests:[]});case r.k:var h,m=n("./node_modules/turf-buffer/index.js"),v=n("./node_modules/turf-intersect/index.js"),b={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[e.request.lng,e.request.lat]}},w=e.metadata&&e.metadata.units;switch(w){case"m":w="meters";break;case"deg":w="degrees";break;case"mi":w="miles";break;default:w="meters"}var E,x=e.metadata&&e.metadata.resolution||1,O=m(b,(e.metadata.buffer||1)*x,w),S=(e.layer.features||[]).filter((function(t){try{return"FeatureCollection"===t.type&&t.features&&t.features.length?t.features.reduce((function(t,n){var r=n.properties.useGeodesicLines&&n.properties.geometryGeodesic?f(f({},n),{},{geometry:n.properties.geometryGeodesic}):n;return t||v(O,x&&e.metadata.buffer&&w?m(r,1,"meters"):r)}),!1):v(O,x&&e.metadata.buffer&&w?m(t,1,"meters"):t)}catch(t){return!1}})),_=t.responses||[],C="hover"===(null==t||null===(h=t.configuration)||void 0===h?void 0:h.trigger)||!1,j={response:{crs:null,features:S,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:e.request,layerMetadata:e.metadata,format:"JSON"};C?(_=[].concat(d(_),[j]),E={reqId:0}):(_[t.requests.length]=j,E={reqId:t.requests.length});var T=[].concat(d(t.requests),[{}]);return g(a()({},t,{requests:T,queryableLayers:e.queryableLayers,responses:d(_)}),E,"vector");case r.z:return a()({},t,{centerToMarker:e.status});case r.v:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{showEmptyMessageGFI:!t.configuration.showEmptyMessageGFI})});case i.d:return f(f({},t),{},{configuration:e.config.mapInfoConfiguration||t.configuration||{}});case r.a:return f(f({},t),{},{formatCoord:e.format});case r.y:return f(f({},t),{},{showCoordinateEditor:!e.showCoordinateEditor});case r.r:return f(f({},t),{},{currentEditFeatureQuery:e.query});case r.s:return f(f({},t),{},{configuration:f(f({},t.configuration),{},{trigger:e.trigger})});default:return t}}},"./MapStore2/web/client/reducers/maplayout.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/maplayout.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout:{},boundingMapRect:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.a:var n=e.layout,i=n.boundingMapRect,s=void 0===i?{}:i,u=l(n,["boundingMapRect"]);return o()({},t,{layout:o()({},u,u),boundingMapRect:a({},s)});default:return t}}},"./MapStore2/web/client/reducers/maps.js":function(t,e,n){"use strict";var r=n("./MapStore2/web/client/actions/maps.js"),i=n("./node_modules/object-assign/index.js"),o=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js");function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{enabled:!1,showMapDetails:!0,errors:[],searchFilter:{},searchText:"",results:""},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.j:return o()({},t,{searchText:e.text});case r.u:return o()({},t,{searchFilter:c(c({},t.searchFilter),{},d({},e.filter,e.filterData))});case r.x:return o()({},t,{searchFilter:e.searchFilter});case r.w:return o()({},t,{contexts:e.contexts});case r.c:return o()({},t,{loading:e.value,loadFlags:c(c({},t.loadFlags||{}),"loading"!==e.name?d({},e.name,e.value):{})});case r.p:return o()({},t,{metadata:o()({},t.metadata,d({},e.prop,e.value))});case r.g:return o()({},t,{loading:!0,start:e.params&&e.params.start,limit:e.params&&e.params.limit,searchText:e.searchText});case r.f:if(e.maps&&e.maps.results&&Array.isArray(e.maps.results))return o()({},t,e.maps,{loading:!1,start:e.params&&e.params.start,limit:e.params&&e.params.limit,searchText:e.searchText});var n=""!==e.maps.results?[e.maps.results]:[];return o()({},t,e.maps,{results:n,loading:!1});case r.h:return{loadingError:e.error};case r.o:for(var i=""===t.results||Object(s.isNil)(t.results)?[]:a(t.results),u=0;u0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"MAP_TYPE_CHANGED":return{mapType:e.mapType};default:return t}}},"./MapStore2/web/client/reducers/timeline.js":function(t,e,n){"use strict";n.r(e);var r=n("./MapStore2/web/client/actions/layers.js"),i=n("./MapStore2/web/client/actions/controls.js"),o=n("./MapStore2/web/client/actions/timeline.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:{autoSelect:!0,collapsed:!1}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.h:return Object(s.e)("settings.collapsed",e.collapsed,t);case o.i:return Object(s.e)("settings.mapSync",e.mapSync,t);case o.d:return Object(s.e)("range",{start:e.start,end:e.end},t);case o.e:return Object(s.e)("rangeData[".concat(e.layerId,"]"),{range:e.range,histogram:e.histogram,domain:e.domain},t);case o.c:return e.layerId?Object(s.e)("loading[".concat(e.layerId,"]"),e.loading,t):Object(s.e)("loading.timeline",e.loading,t);case o.f:return Object(s.e)("selectedLayer",e.layerId,t);case r.t:var n=t;return Object(a.assign)({},t,{rangeData:Object(a.has)(n.rangeData,e.node)?Object(a.pickBy)(n.rangeData,(function(t,n){return n!==e.node})):n.rangeData,loading:Object(a.has)(n.rangeData,e.node)?Object(a.pickBy)(n.loading,(function(t,n){return n!==e.node})):n.loading,selectedLayer:t.selectedLayer===e.node?void 0:t.selectedLayer});case i.a:return Object(a.assign)({},t,{range:void 0,rangeData:void 0,selectedLayer:void 0,loading:void 0,MouseEvent:void 0});default:return t}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return h}));var r=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/layers.js"),o=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),a=function(t){return t.backgroundSelector&&t.backgroundSelector.source},u=function(t){return t.backgroundSelector&&t.backgroundSelector.modalParams},l=function(t){return t.backgroundSelector&&t.backgroundSelector.backgrounds||[]},c=function(t){return t.backgroundSelector&&t.backgroundSelector.lastRemovedId},d=function(t){return t.backgroundSelector&&t.backgroundSelector.confirmDeleteBackgroundModal},p=function(t){return t.backgroundSelector&&t.backgroundSelector.allowDeletion},h=Object(r.a)(i.p,o.c,(function(t,e){return t.filter((function(t){return t&&"background"===t.group})).map((function(t){return Object(s.invalidateUnsupportedLayer)(t,e)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(t,e,n){"use strict";n.d(e,"v",(function(){return l})),n.d(e,"w",(function(){return c})),n.d(e,"x",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"m",(function(){return f})),n.d(e,"u",(function(){return m})),n.d(e,"j",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"q",(function(){return v})),n.d(e,"t",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"o",(function(){return E})),n.d(e,"g",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"s",(function(){return S})),n.d(e,"i",(function(){return _})),n.d(e,"f",(function(){return C})),n.d(e,"p",(function(){return j})),n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return I})),n.d(e,"l",(function(){return N})),n.d(e,"d",(function(){return P})),n.d(e,"c",(function(){return A}));var r=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/map.js");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e0},j=function(t){return E(t)&&E(t).length>0},T=function(t){return t&&t.featuregrid&&t.featuregrid.filters},I=function(t){return g(t,y(t))},N=function(t){return t&&t.featuregrid&&t.featuregrid.open},P=function(t,e){return Object(r.get)(T(t),e)},A=function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.title||t.name}(g(t,y(t)));return Object(r.isObject)(e)?e[Object(s.b)(t)]||e.default||"":e},M=function(t){return(Object(p.a)(t)||[]).map((function(e){var n=function(t,e){return Object(r.get)(t,"featuregrid.attributes[".concat(e.name||e.attribute,"]"))}(t,e);return n?f(f({},e),n):e}))},D=function(t){return t&&t.featuregrid&&t.featuregrid.mode},R=function(t){return(b(t)||[]).length},k=function(t){return Object(u.p)(w(t))},L=function(t){return function(t){var e=x(t);if(e){var n=Object(u.p)(w(t));return!(!n[e.id]||null===n[e.id].geometry)||(!n[e.id]||null!==n[e.id].geometry)&&((!e._new||!Object(r.head)(E(t))||null!==Object(r.head)(E(t)).geometry)&&(!(!e._new||!Object(r.head)(E(t))||null===Object(r.head)(E(t)).geometry)||null!==e.geometry))}return!1}(t)},F=function(t){return Object(r.get)(t,"featuregrid.showAgain",!1)},G=function(t){if(Object(r.get)(t,"featuregrid.showTimeSync",!1)){var e=y(t);return Object(l.d)({id:e},"time")(t)}return null},B=function(t){return Object(r.get)(t,"featuregrid.timeSync",!1)},U=function(t){return Object(r.get)(t,"featuregrid.showPopoverSync",!0)},z=function(t){return t&&t.featuregrid&&t.featuregrid.saving},V=function(t){return t&&t.featuregrid&&t.featuregrid.saved},H=function(t){return t&&t.featuregrid&&t.featuregrid.drawing},q=function(t){return Object(r.get)(t,"featuregrid.multiselect",!1)},Y=function(t){return Object(a.isSimpleGeomType)(O(t))},W=function(t){return t.featuregrid&&t.featuregrid.dockSize},X=function(t){var e=g(t,y(t));return e&&e.name||""},K=function(t){var e=function(t){return Object(r.get)(g(t,y(t)),"params")}(t);return{viewParams:e&&(e.VIEWPARAMS||e.viewParams||e.viewparams),cqlFilter:e&&(e.CQL_FILTER||e.cqlFilter||e.cql_filter)}},Z=function(t){var e=Object(c.d)(t),n=function(t){return Object(r.get)(t,"featuregrid.editingAllowedRoles",["ADMIN"])}(t)||["ADMIN"],i=function(t){return t&&t.featuregrid&&t.featuregrid.canEdit}(t);return(-1!==n.indexOf(e)||i)&&!Object(d.a)(t)},$=function(t){return Object(r.get)(t,"featuregrid.pagination")}},"./MapStore2/web/client/selectors/localizedLayerStyles.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/locale.js"),s=function(t){return Object(r.has)(t,"localConfig.localizedLayerStyles")},a=function(t){var e=Object(r.get)(t,"localConfig.plugins.dashboard",[]),n=Object(r.find)(e,(function(t){return"DashboardEditor"===t.name}))||{};return Object(r.get)(n,"cfg.catalog.localizedLayerStyles",!1)},u=function(t){return Object(r.get)(t,"localConfig.localizedLayerStyles.name","mapstore_language")},l=Object(i.a)(s,u,o.a,(function(t,e,n){var r=[];return t&&r.push({name:e,value:n}),r}))},"./MapStore2/web/client/selectors/maplayout.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"d",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/selectors/map.js"),o=n("./MapStore2/web/client/utils/MapUtils.js");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=l(t);return n&&Object.keys(n).filter((function(t){return e[t]})).reduce((function(t,e){return a(a({},t),{},u({},e,n[e]))}),{})||{}},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=l(t),i=!!Object(r.head)(e.filter((function(t){return n[t.key]})).map((function(t){return"not"===t.type?n[t.key]!==t.value&&n[t.key]:n[t.key]===t.value})));return i},h=function(t){return p(t,[{key:"right",value:658}])},f=function(t){return p(t,[{key:"bottom",value:30,type:"not"}])},m=function(t){var e=Object(i.l)(t),n=c(t);return n&&e&&e.size&&{left:Object(o.parseLayoutValue)(n.left,e.size.width),bottom:Object(o.parseLayoutValue)(n.bottom,e.size.height),right:Object(o.parseLayoutValue)(n.right,e.size.width),top:Object(o.parseLayoutValue)(n.top,e.size.height)}}},"./MapStore2/web/client/selectors/measurement.js":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return m}));var r=n("./MapStore2/web/client/selectors/maptype.js"),i=n("./MapStore2/web/client/selectors/controls.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),s=n("./MapStore2/web/client/utils/MeasureUtils.js");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return{hasNext:t[e+1],hasPrevious:t[e-1]}}))},"./MapStore2/web/client/selectors/query.js":function(t,e,n){"use strict";n.d(e,"i",(function(){return l})),n.d(e,"n",(function(){return c})),n.d(e,"o",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"l",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return E})),n.d(e,"h",(function(){return x})),n.d(e,"g",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e-1)||e&&e.collectGeometries&&e.operation)}},"./MapStore2/web/client/selectors/queryform.js":function(t,e,n){"use strict";n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"a",(function(){return v})),n.d(e,"j",(function(){return b})),n.d(e,"d",(function(){return w})),n.d(e,"i",(function(){return E})),n.d(e,"g",(function(){return x})),n.d(e,"f",(function(){return O}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/locale.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var p=function(t){return Object(r.get)(t,"queryform.crossLayerFilter")},h=function(t){return(Object(o.p)(t)||[]).filter((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.group;return"wms"===e&&"background"!==n})).map((function(e){var n=e.title;return l(l({},d(e,["title"])),{},{title:Object(a.e)(Object(s.b)(t),n)})}))},f=function(t){return Object(r.get)(t,"queryform.spatialField.geometry")},m=function(t){return Object(r.get)(t,"queryform.spatialField")},g=Object(i.a)((function(t){return Object(r.get)(t,"queryform.attributePanelExpanded")}),(function(t){return Object(r.get)(t,"queryform.spatialPanelExpanded")}),(function(t){return Object(r.get)(t,"queryform.crossLayerExpanded")}),(function(t,e,n){return{attributePanelExpanded:t,spatialPanelExpanded:e,crossLayerExpanded:n}})),y=function(t){return Object(r.get)(t,"layerFilter.persisted")},v=function(t){return Object(r.get)(t,"layerFilter.applied")},b=function(t){return Object(r.get)(t,"queryform.spatialField.method")},w=function(t){return Object(r.get)(t,"queryform.maxFeaturesWPS")},E=function(t){return f(t)&&f(t).type||"Polygon"},x=function(t){return f(t)&&f(t).projection||"EPSG =4326"},O=function(t){return f(t)&&f(t).coordinates||[]}},"./MapStore2/web/client/selectors/timeline.js":function(t,e,n){"use strict";n.d(e,"j",(function(){return v})),n.d(e,"d",(function(){return b})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return E})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return C})),n.d(e,"n",(function(){return j})),n.d(e,"k",(function(){return T})),n.d(e,"m",(function(){return I})),n.d(e,"o",(function(){return N})),n.d(e,"p",(function(){return P})),n.d(e,"a",(function(){return A})),n.d(e,"l",(function(){return M})),n.d(e,"q",(function(){return D})),n.d(e,"b",(function(){return R})),n.d(e,"f",(function(){return k})),n.d(e,"i",(function(){return L}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),l=n("./MapStore2/web/client/selectors/map.js"),c=n("./MapStore2/web/client/selectors/layers.js");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n50?[{start:r,end:i,duration:o,type:"range",content:"".concat(u," items")}]:Object(a.l)({start:l,end:c,duration:o}).map((function(t){return{start:new Date(t),end:new Date(t),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(i||r),type:i?"range":"point"}]}(n,e)))}),[]).filter((function(t){return t&&t.start}))},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(t.domain&&t.domain.values)return x(t.domain.values,e);if(t.histogram&&t.histogram.domain&&t.histogram.values){var n=t.histogram.domain.split("/"),r=m(n,3),i=r[0],o=r[1],s=r[2],u=Math.max.apply(Math,f(t.histogram.values)),l=Object(a.k)({start:i,end:o,duration:s});return t.histogram.values.map((function(t,e){return p(p({},l[e]),{},{type:"range",itemType:"histogram",count:t,className:"histogram-item",content:'
').concat(t,"
")})}))}return[]},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t&&t.values||t&&t.domain&&!Object(a.i)(t.domain)?x(t.values||t.domain.split(","),e):n&&n.histogram?O(n,e):[]},_=Object(o.a)(u.i,v,(function(t){return Object(r.get)(t,"timeline.rangeData")}),(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(t).map((function(r){return S(t[r],e,n[r]).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(p({content:" "},t),{},{group:r})}))})).reduce((function(t,e){return[].concat(f(t),f(e))}),[]))})),C=function(t){return Object(r.get)(t,"timeline.loading")},j=function(t){return Object(r.get)(t,"timeline.selectedLayer")},T=function(t){return Object(c.g)(t,j(t))},I=function(t){return T(t)&&T(t).name},N=function(t){return T(t)&&T(t).dimensions&&Object(r.head)(T(t).dimensions.filter((function(t){return"time"===t.name})))},P=function(t){return Object(r.get)(N(t),"source.url")},A=Object(i.a)(u.a,u.h,(function(t,e){return{start:t,end:e}})),M=function(t){return Object(u.c)(t,j(t))},D=u.f,R=Object(i.a)(D,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.length>0})),k=function(t){return!b(t)&&R(t)},L=function(t){return function(e){var n=(Object(l.l)(e)||{}).bbox;if(!n)return{};var i=Object(u.b)(t,"time")(e),o=Object(r.get)(i,"source.version"),a=Object.keys(n.bounds).reduce((function(t,e){return p(p({},t),{},h({},e,parseFloat(n.bounds[e])))}),{});if(!a||!E(e))return{};if("1.1"!==o){var c=Object(u.b)(t,"space")(e),d=Object(r.get)(c,"domain.CRS");if(!d||!a||!E(e))return{};var f=m(Object(s.reprojectBbox)(a,Object(l.o)(e),d),4),g=f[0],y=f[1],v=f[2],b=f[3];return vt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return Object(r.findIndex)(t,(function(t){return t<=n&&n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return e[d(t,n,r)]||u({},p)},f=function(t,e){return e[t]},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(r.isArray)(t)?t.reduce((function(t,e){return u(u({},t),{},l({},e.id,u(u({},t[e.id]),e.updated)))}),{}):{}},g=function(t,e){var n=Object.keys(e).filter((function(t){return"geometry"!==t})).reduce((function(t,n){return u(u({},t),{},l({},n,e[n]))}),{}),r=Object.keys(e).filter((function(t){return"geometry"===t})).reduce((function(t,n){return u(u({},t),{},l({},n,e[n]))}),{});return u(u(u({},t),r),{},{properties:u(u({},t&&t.properties||{}),n)})},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=Object(r.findIndex)(t,e);return i>=0?t.map((function(t,e){return e===i?n:t})):[].concat(o(t),[n])},v=function(t){return(Object(i.getFeatureTypeProperties)(t)||[]).filter((function(t){return!Object(i.isGeometryType)(t)}))},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){return n<=e&&e<=r?0:Math.abs(e-t)})).reduce((function(t,e,n,r){return e>r[t]&&n||t}),0)},w=function(t,e){return e.filter((function(e,n){return n!==t}))},E=function(t,e,n){return t.filter((function(t,r){return r=e+n}))},x=function(t,e,n,r){for(var i,o,s=t;s<=e&&void 0===i;s++)-1===d(s*r,n,r)&&(i=s);for(var a=e;a>=t&&void 0===o;a--)-1===d(a*r,n,r)&&(o=a);return[i,o].filter((function(t){return void 0!==t}))},O=function(t,e,n){var r=t.startPage,i=t.endPage,o=x(r,i,e,n),s=o[1]-o[0]+1;return{startIndex:o[0]*n,maxFeatures:s*n}},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.editable,i=void 0!==r&&r,o=n.sortable,s=void 0===o||o,a=n.resizable,u=void 0===a||a,l=n.filterable,c=void 0===l||l,d=n.defaultSize,p=void 0===d?200:d,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=h.getEditor,m=void 0===f?function(){}:f,g=h.getFilterRenderer,y=void 0===g?function(){}:g,b=h.getFormatter,w=void 0===b?function(){}:b;return v(t).filter((function(t){return!(e[t.name]&&e[t.name].hide)})).map((function(t){return{sortable:s,key:t.name,width:e[t.name]&&e[t.name].width||p||void 0,name:e[t.name]&&e[t.name].label||t.name,resizable:u,editable:i,filterable:c,editor:m(t),formatter:w(t),filterRenderer:y(t,t.name)}}))},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=Object(i.findGeometryProperty)(n);return t.map((function(t){return u(u({},t),{},{events:t.events&&Object.keys(t.events).reduce((function(i,o){return u(u({},i),{},l({},o,(function(i,s){return t.events[o](e(s.rowIdx),s,n,r)})))}),{})},"geometry"===t.key&&s?{filterRenderer:o(u(u({},s),{},{localType:"geometry"}),s.name),filterable:!0,geometryPropName:s.name}:{})}))},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Object.keys(t).reduce((function(o,s){return u(u({},o),{},l({},s,(function(){for(var o=arguments.length,a=new Array(o),u=0;u0?r._new:!t||t&&!!n[r.id]}},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g(t,e[t.id]||{})},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.attribute,n=t.operator,i=t.value,o=t.type,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},s),{},{groupFields:[{id:1,logic:"AND",index:0}],filterFields:"geometry"===o?s.filterFields:Object(r.isNil)(i)?(s.filterFields||[]).filter((function(t){return t.attribute!==e})):y(s.filterFields||[],{attribute:e},{attribute:e,rowId:Date.now(),type:o,groupId:1,operator:n,value:i}),spatialField:"geometry"===o?i:s.spatialField,spatialFieldOperator:Object(r.isArray)(i)?"OR":""})},M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.startIndex,n=void 0===e?0:e,r=t.maxFeatures,i=void 0===r?1:r,o=t.totalFeatures,s=void 0===o?0:o,a=t.resultSize;return{page:Math.ceil(n/i),resultSize:a,size:i,total:s,maxPages:Math.ceil(s/i)-1}},D=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.endPage,i=e.startPage,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o.pages,a=o.features,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=u.size,c=u.maxStoredPages,d=u.startIndex,p=x(i,n,s,l),h=p[1]-p[0]+1,f=Object(r.get)(t,"features",[]);f.length!==h*l&&(f=f.concat(Object(r.fill)(Array(h*l-f.length>0?h*l-f.length:f.length),!1)));var m=s,g=a,y=m.length+h-Math.max(c,n-i+1);if(y>0)for(var v=i*l,O=n*l,S=v+(O-v)/2,_=0;_0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.measureTrueBearing,r=void 0!==n&&n,o=e.fractionDigits,s=void 0===o?0:o,a="";if(r){var u="";t>=0&&t<10?u="00":t>10&&t<100&&(u="0");var l=s>0?t.toFixed(s):Math.floor(t);a=u+l+"° T"}else t>=0&&t<90?a="N "+i(t)+"E":t>90&&t<=180?a="S "+i(180-t)+"E":t>180&&t<270?a="S "+i(t-180)+"W":t>=270&&t<=360&&(a="N "+i(360-t)+"W");return a}var s={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s[e]&&s[e][n]?t*s[e][n]:t}var u=function(t){return!Object(r.isNaN)(parseFloat(t[0]))&&!Object(r.isNaN)(parseFloat(t[1]))},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.coordinates,n=t.type,i=e;if("LineString"===n){if((i=e.filter(u)).length<2)return[]}else if("Polygon"===n){if((i=Object(r.head)(e).filter(u)).length<3)return[[]];i=[i.concat([Object(r.head)(i)])]}return i},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.coordinates,n=t.type;if(!n||!e||e&&Object(r.isArray)(e)&&0===e.length)return!1;var i=l({coordinates:e,type:n});return(i="Polygon"===n?Object(r.head)(i):i).length>0}},"./MapStore2/web/client/utils/ReselectUtils.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/reselect/es/index.js"),o=function(t,e){return t===e},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return function(e,n){return Array.isArray(e)&&Array.isArray(n)?e===n||e.length===n.length&&e.reduce((function(e,r,i){return e&&t(r,n[i])}),!0):Object(r.isObject)(e)&&Object(r.isObject)(n)?e===n||Object.keys(e).length===Object.keys(n).length&&Object.keys(e).reduce((function(r,i){return r&&t(e[i],n[i])}),!0):e===n}},a=Object(i.b)(i.d,(function(t,e){return Object(r.isEqualWith)(t,e,s())})),u=function(t){return Object(i.b)(i.d,(function(e,n){return Object(r.isEqualWith)(e,n,s(t))}))}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(t,e){return new Promise((function(n,r){var i=e||{},o=i.width,s=void 0===o?64:o,a=i.height,u=void 0===a?64:a,l=i.contain,c=i.type,d=void 0===c?"image/jpeg":c,p=i.quality,h=void 0===p?.5:p,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var t=f.naturalWidth/f.naturalHeight,e=s,r=u,i=s/u,o=document.createElement("canvas");o.setAttribute("width",s),o.setAttribute("height",u),o.style.width=s+"px",o.style.height=u+"px";var a=o.getContext("2d"),c=!l&&ti?[e,e/t]:[r*t,r];a.save(),a.translate(e/2,r/2),a.drawImage(f,-c[0]/2,-c[1]/2,c[0],c[1]),a.restore();var p=o.toDataURL(d,h);n(p)},f.onerror=function(t){r(t)},f.src=t}))},i=function(t,e){return new Promise((function(n,r){var i=e||{},o=i.type,s=void 0===o?"image/jpeg":o,a=i.quality,u=void 0===a?.5:a,l=document.createElement("video");l.crossOrigin="anonymous";var c=document.createElement("source"),d=document.createElement("canvas");l.addEventListener("loadedmetadata",(function(){var t=l.videoWidth,e=l.videoHeight;d.setAttribute("width",t),d.setAttribute("height",e),d.style.width=t+"px",d.style.height=e+"px"}),!0),l.addEventListener("loadeddata",(function(){l.currentTime=1}),!0),l.addEventListener("seeked",(function(){d.getContext("2d").drawImage(l,0,0);try{var t=d.toDataURL(s,u);n(t)}catch(t){r(t)}}),!0),l.addEventListener("error",(function(t){r(t)}),!0),l.appendChild(c),l.setAttribute("src",t)}))},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,o=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(t=e.match(o))||void 0===t?void 0:t[1];return s?new Promise((function(t){return t("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):e.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?i(e).then((function(t){return r(t,n)})):new Promise((function(t,e){return e("Cannot create a thumbnail from the provided source")}))}},"./js/epics/index.js":function(t,e,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),i=n.n(r),o=n("./MapStore2/web/client/actions/styleeditor.js"),s=n("./js/api/geonode.js"),a=n("./MapStore2/web/client/selectors/layers.js"),u=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/actions/maplayout.js"),d=n("./MapStore2/web/client/actions/controls.js"),p=n("./MapStore2/web/client/actions/config.js"),h=n("./MapStore2/web/client/actions/featuregrid.js"),f=n("./MapStore2/web/client/actions/mapInfo.js"),m=n("./MapStore2/web/client/actions/layers.js"),g=n("./MapStore2/web/client/selectors/mapInfo.js"),y=n("./MapStore2/web/client/selectors/featuregrid.js"),v=n("./MapStore2/node_modules/lodash/head.js"),b=n.n(v),w=n("./MapStore2/node_modules/lodash/get.js"),E=n.n(w),x=n("./node_modules/object-assign/index.js"),O=n.n(x),S=n("./node_modules/connected-react-router/esm/actions.js"),_=n("./MapStore2/web/client/utils/NotificationUtils.js"),C=(n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/node_modules/lodash/lodash.js")),j=n("./MapStore2/web/client/actions/maps.js"),T=n("./MapStore2/web/client/selectors/maptype.js"),I=(n("./MapStore2/web/client/selectors/security.js"),n("./MapStore2/web/client/actions/security.js"),n("./MapStore2/web/client/utils/ObservableUtils.js"),n("./MapStore2/web/client/utils/MapUtils.js"),n("./MapStore2/web/client/utils/LocaleUtils.js")),N=n("./MapStore2/web/client/api/persistence/index.js");n("./MapStore2/web/client/observables/epics.js");function P(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||M(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.")}()}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||M(t,e)||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 M(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var G=function(t,e){return t.ofType(j.s).exhaustMap((function(t){var n,r=t.resource,o=Object(C.mapValues)(r.attributes,(function(t){if(Object(C.isObject)(t)){var e=null;try{e=JSON.stringify(t)}catch(t){e=null}return e}return t})),s=Object(C.keys)(o).filter((function(t){return"thumbnail"!==t&&"details"!==t&&!Object(C.isNil)(o[t])}));return i.a.Observable.forkJoin((n=Object(C.get)(r,"attributes.context"),n?Object(N.d)(n,{withData:!1}):i.a.Observable.of(null)),r.id?Object(N.h)(r):Object(N.b)(r)).switchMap((function(t){var n=A(t,2),a=n[0],u=n[1];return(s.length>0?i.a.Observable.forkJoin(s.map((function(t){return Object(N.i)({id:u,name:t,value:o[t]})}))):i.a.Observable.of([])).switchMap((function(){return i.a.Observable.from([].concat(P(r.id?[Object(p.o)(u)]:[]),P(r.id?[Object(p.m)(r.data,u)]:[]),[r.id?Object(d.h)("mapSave"):Object(d.h)("mapSaveAs"),Object(p.t)(r.id)],P(r.id?[]:[Object(j.F)(u,O()({id:u,canDelete:!0,canEdit:!0,canCopy:!0},r.metadata),r.data),Object(S.d)(a?"/context/".concat(a.name,"/").concat(u):"/viewer/".concat(Object(T.c)(e.getState()),"/").concat(u))]))).merge(i.a.Observable.of(Object(_.b)({title:"map.savedMapTitle",message:"map.savedMapMessage",autoDismiss:6,position:"tc"})))}))})).catch((function(t){var e=t.status,n=t.statusText,r=t.data,o=t.message,s=F(t,["status","statusText","data","message"]);return i.a.Observable.of(Object(p.s)(e?{status:e,statusText:n,data:r}:o||s),Object(_.a)(k(k({},Object(I.c)(t,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(j.I)(r.metadata):Object(j.L)(r.metadata))}))},B=n("./MapStore2/web/client/selectors/controls.js");function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType("GEONODE:CREATE_MAP_THUMBNAIL","GEONODE:CREATE_LAYER_THUMBNAIL").do((function(){try{$("#_thumbnail_processing").modal("show")}catch(t){console.log(t)}})).exhaustMap((function(t){var e=t.type,r=n(),o=Object(a.p)(r),l=Object(u.l)(r),c="GEONODE:CREATE_MAP_THUMBNAIL"===e,d=c?E()(l,"info.id"):o[o.length-1].name,p=c?"maps":"layers",h=l.size,f=h.width,m=h.height,g=l.bbox.bounds,y=g.maxx,v=g.minx,b=g.maxy,w={bbox:[v,y,g.miny,b],srid:l.bbox.crs,center:l.center,zoom:l.zoom,width:f,height:m,layers:o.filter((function(t){return"background"!==t.group&&t.visibility})).map((function(t){return t.name})).join(",")};return Object(s.d)(p,d,w).do((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.status;try{$("#_thumbnail_feedbacks").find(".modal-title").text(n),$("#_thumbnail_feedbacks").find(".modal-body").text(e),$("#_thumbnail_feedbacks").modal("show")}catch(t){console.log(t)}})).mapTo({type:"THUMBNAIL_UPDATE"}).catch((function(t){var e=t.code,n=t.message;try{"ECONNABORTED"===e?($("#_thumbnail_feedbacks").find(".modal-title").text("Timeout"),$("#_thumbnail_feedbacks").find(".modal-body").text("Failed from timeout: Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show")):($("#_thumbnail_feedbacks").find(".modal-title").text("Error: "+n),$("#_thumbnail_feedbacks").find(".modal-body").text("Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show"))}catch(t){console.log(t)}finally{return i.a.Observable.of({type:"THUMBNAIL_UPDATE_ERROR"})}})).do((function(){try{$("#_thumbnail_processing").modal("hide")}catch(t){console.log(t)}}))}))},q=function(t,e){return t.ofType(p.d,h.M,d.b,h.f,h.z,f.f,f.x,f.n,f.i,d.d,d.c,m.w,m.k,f.h,f.q).switchMap((function(){var t=e.getState();if(E()(t,"browser.mobile")){var n=z({},Object(g.m)(t)?{bottom:"50%"}:{bottom:void 0});return i.a.Observable.of(Object(c.b)({boundingMapRect:n}))}var r=Object(l.getConfigProp)("mapLayout")||{left:{sm:300,md:500,lg:600},right:{md:658},bottom:{sm:30}};if("embedded"===E()(t,"mode")){var o={height:"calc(100% - "+r.bottom.sm+"px)"},s=z({},Object(g.m)(t)?{bottom:"50%"}:{bottom:void 0});return i.a.Observable.of(Object(c.b)(z(z({},o),{},{boundingMapRect:s})))}var a=E()(t,"controls.drawer.resizedWidth"),u=b()([E()(t,"controls.queryPanel.enabled")&&{left:r.left.lg}||null,E()(t,"controls.widgetBuilder.enabled")&&{left:r.left.md}||null,E()(t,"layers.settings.expanded")&&{left:r.left.md}||null,E()(t,"controls.drawer.enabled")&&{left:a||r.left.sm}||null].filter((function(t){return t})))||{left:0},d=b()([E()(t,"controls.details.enabled")&&{right:r.right.md}||null,E()(t,"controls.annotations.enabled")&&{right:r.right.md}||null,E()(t,"controls.metadataexplorer.enabled")&&{right:r.right.md}||null,E()(t,"controls.measure.enabled")&&Object(B.h)(t)&&{right:r.right.md}||null,E()(t,"mapInfo.enabled")&&Object(g.m)(t)&&{right:r.right.md}||null].filter((function(t){return t})))||{right:0},p=100*Object(y.g)(t),h=Object(y.o)(t)&&{bottom:p+"%",dockSize:p}||{bottom:r.bottom.sm},f=Object(y.o)(t)&&{transform:"translate(0, -"+r.bottom.sm+"px)"}||{transform:"none"},m={height:"calc(100% - "+r.bottom.sm+"px)"},v=z(z(z({},h),u),d);return i.a.Observable.of(Object(c.b)(z(z(z(z(z(z({},u),d),h),f),m),{},{boundingMapRect:v})))}))};e.b={mapSaveMapResourceEpic:G,_setFeatureEditPermission:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType(m.u).filter((function(t){return"layer"===t.nodeType&&!Object(l.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(){var t=Object(a.j)(n()||{});return t?Object(s.b)(t).map((function(t){return Object(h.Fb)(t)})).startWith(Object(h.Fb)({canEdit:!1})).catch((function(){return i.a.Observable.empty()})):i.a.Observable.of(Object(h.Fb)({canEdit:!1}))}))},_setThumbnail:H,_setStyleEditorPermission:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getState;return t.ofType(o.f,m.u).filter((function(t){var e=t.nodeType;return e&&"layer"===e&&!Object(l.getConfigProp)("disableCheckEditPermissions")||!e&&!Object(l.getConfigProp)("disableCheckEditPermissions")})).switchMap((function(t){var e=Object(a.j)(n()||{});return e?Object(s.c)(e).map((function(t){var e=t.canEdit;return Object(o.C)(e)})).startWith(Object(o.C)(t.canEdit)).catch((function(){return i.a.Observable.empty()})):i.a.Observable.of(Object(o.C)(!1))}))},updateMapLayoutEpic:q}},"./js/extend.js":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=!1},"./js/previewPlugins.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/rxjs/Rx.js"),i=n.n(r),o=n("./js/epics/index.js"),s=n("./js/extend.js"),a=n("./MapStore2/web/client/plugins/Map.jsx"),u=n("./MapStore2/web/client/plugins/Identify.jsx"),l=n("./MapStore2/web/client/plugins/Toolbar.jsx"),c=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),d=n("./MapStore2/web/client/plugins/MapLoading.jsx"),p=n("./MapStore2/web/client/plugins/OmniBar.jsx"),h=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),f=n("./MapStore2/web/client/plugins/FullScreen.jsx"),m=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),g=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),y=n("./MapStore2/web/client/plugins/Expander.jsx"),v=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),b=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),w=n("./MapStore2/web/client/plugins/MapFooter.jsx"),E=n("./MapStore2/web/client/plugins/Print.jsx"),x=n("./MapStore2/web/client/plugins/Timeline.jsx"),O=n("./MapStore2/web/client/plugins/Playback.jsx"),S=n("./MapStore2/web/client/reducers/security.js"),_=n("./MapStore2/web/client/reducers/maps.js"),C=n("./MapStore2/web/client/reducers/maplayout.js"),j=n("./node_modules/react-swipeable-views/lib/index.js"),T=n.n(j),I=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),N={plugins:{MapPlugin:a.a,IdentifyPlugin:u.a,ToolbarPlugin:l.a,ZoomAllPlugin:c.a,MapLoadingPlugin:d.a,OmniBarPlugin:p.default,BackgroundSelectorPlugin:h.a,FullScreenPlugin:f.a,ZoomInPlugin:m.a,ZoomOutPlugin:g.a,ExpanderPlugin:y.a,BurgerMenuPlugin:v.default,ScaleBoxPlugin:b.a,MapFooterPlugin:w.a,PrintPlugin:E.a,TimelinePlugin:x.a,PlaybackPlugin:O.a,AddReducersAndEpics:{reducers:{security:S.default,maps:_.a,maplayout:C.a},epics:{_setThumbnail:o.a,updateMapLayoutEpic:o.c,zoomToVisibleAreaEpic:function(){return i.a.Observable.empty()}}}},requires:{ReactSwipe:T.a,SwipeHeader:I.a}},P=s.a?Object(s.a)(N):N;e.default=P},"./node_modules/@babel/runtime/helpers/extends.js":function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;et[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]-1}},"./MapStore2/node_modules/lodash/_arrayIncludesWith.js":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200&&(d=u,f=!1,t=new r(t));e:for(;++c0&&s(c)?n>1?e(c,n-1,s,i,a):r(a,c):i||(a[a.length]=c)}return a}},"./MapStore2/node_modules/lodash/_baseFor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createBaseFor.js")();e.exports=r},"./MapStore2/node_modules/lodash/_baseForOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFor.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(e,t,o)}},"./MapStore2/node_modules/lodash/_baseGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_castPath.js"),o=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var v=-1,_=h[0];e:for(;++vo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(o);++r=200){var m=t?null:a(e);if(m)return u(m);f=!1,c=i,h=new r}else h=t?[]:p;e:for(;++l1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(s--,i):void 0,a&&o(n[0],n[1],a)&&(i=s<3?void 0:i,s=1),t=Object(t);++r1&&T.reverse(),j&&vc))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var p=-1,h=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},"./MapStore2/node_modules/lodash/_isFlattenable.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Symbol.js"),o=n("./MapStore2/node_modules/lodash/isArguments.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||o(e)||!!(i&&e&&e[i])}},"./MapStore2/node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e-1}},"./MapStore2/node_modules/lodash/_listCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},"./MapStore2/node_modules/lodash/_mapCacheClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Hash.js"),o=n("./MapStore2/node_modules/lodash/_ListCache.js"),s=n("./MapStore2/node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},"./MapStore2/node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"./MapStore2/node_modules/lodash/_mapCacheGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"./MapStore2/node_modules/lodash/_mapCacheHas.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"./MapStore2/node_modules/lodash/_mapCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"./MapStore2/node_modules/lodash/_mapToArray.js":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"./MapStore2/node_modules/lodash/_matchesStrictComparable.js":function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},"./MapStore2/node_modules/lodash/_memoizeCapped.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"./MapStore2/node_modules/lodash/_mergeData.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_composeArgs.js"),o=n("./MapStore2/node_modules/lodash/_composeArgsRight.js"),s=n("./MapStore2/node_modules/lodash/_replaceHolders.js"),i=Math.min;e.exports=function(e,t){var n=e[1],a=t[1],u=n|a,l=u<131,c=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&a&&(e[2]=t[2],u|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?s(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?o(f,d,t[6]):d,e[6]=f?s(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&a&&(e[8]=null==e[8]?t[8]:i(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},"./MapStore2/node_modules/lodash/_metaMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_WeakMap.js"),o=r&&new r;e.exports=o},"./MapStore2/node_modules/lodash/_nativeCreate.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getNative.js")(Object,"create");e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeysIn.js":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"./MapStore2/node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_freeGlobal.js"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./MapStore2/node_modules/lodash/_overArg.js":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"./MapStore2/node_modules/lodash/_overRest.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_apply.js"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,i=-1,a=o(s.length-t,0),u=Array(a);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"./MapStore2/node_modules/lodash/_stackClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new r,this.size=0}},"./MapStore2/node_modules/lodash/_stackDelete.js":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"./MapStore2/node_modules/lodash/_stackGet.js":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"./MapStore2/node_modules/lodash/_stackHas.js":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"./MapStore2/node_modules/lodash/_stackSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js"),o=n("./MapStore2/node_modules/lodash/_Map.js"),s=n("./MapStore2/node_modules/lodash/_MapCache.js");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},"./MapStore2/node_modules/lodash/_strictIndexOf.js":function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r2?t[2]:void 0;for(l&&s(t[0],t[1],l)&&(r=1);++n2?n-2:1,o&&o<=n?r:i(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!k(n))return e(n,Object(t));var r=[];return T(N(t),(function(e){k(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),T(r,(function(e){var t=e[1];k(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return M(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return M(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function U(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return G(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(I(i(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return G(e,(function(e){return"function"==typeof e?i(e,t):e}))}(t,o)}return t}function B(e,t,n){if(m&&(j||!r.skipFixed[e])){var o=r.methodSpread[e],i=o&&o.start;return void 0===i?S(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var i=o[t],a=o.slice(0,t);return i&&s.apply(a,i),t!=r&&s.apply(a,o.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function z(e,t,n){return y&&n>1&&(g||!r.skipRearg[e])?I(t,r.methodRearg[e]||r.aryRearg[n]):t}function q(e,t){for(var n=-1,r=(t=D(t)).length,o=r-1,s=E(Object(e)),i=s;null!=i&&++n1?M(t,n):t}(0,o=U(s,o),e),!1}})),!o})),o||(o=i),o==t&&(o=_?M(o,1):function(){return t.apply(this,arguments)}),o.convert=W(s,t),o.placeholder=t.placeholder=n,o}if(!f)return V(n,l,v);var H=l,K=[];return T(L,(function(e){T(r.aryMethod[e],(function(e){var t=H[r.remap[e]||e];t&&K.push([e,V(e,t,H)])}))})),T(N(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=K.length;n--;)if(K[n][0]==e)return;t.convert=W(e,t),K.push([e,t])}})),T(K,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,T(N(H),(function(e){T(r.realToAlias[e]||[],(function(t){H[t]=H[e]}))})),H}},"./MapStore2/node_modules/lodash/fp/_mapping.js":function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var s=n[o];e.call(r,s)?r[s].push(o):r[s]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./MapStore2/node_modules/lodash/fp/_util.js":function(e,t,n){e.exports={ary:n("./MapStore2/node_modules/lodash/ary.js"),assign:n("./MapStore2/node_modules/lodash/_baseAssign.js"),clone:n("./MapStore2/node_modules/lodash/clone.js"),curry:n("./MapStore2/node_modules/lodash/curry.js"),forEach:n("./MapStore2/node_modules/lodash/_arrayEach.js"),isArray:n("./MapStore2/node_modules/lodash/isArray.js"),isError:n("./MapStore2/node_modules/lodash/isError.js"),isFunction:n("./MapStore2/node_modules/lodash/isFunction.js"),isWeakMap:n("./MapStore2/node_modules/lodash/isWeakMap.js"),iteratee:n("./MapStore2/node_modules/lodash/iteratee.js"),keys:n("./MapStore2/node_modules/lodash/_baseKeys.js"),rearg:n("./MapStore2/node_modules/lodash/rearg.js"),toInteger:n("./MapStore2/node_modules/lodash/toInteger.js"),toPath:n("./MapStore2/node_modules/lodash/toPath.js")}},"./MapStore2/node_modules/lodash/fp/compose.js":function(e,t,n){e.exports=n("./MapStore2/node_modules/lodash/fp/flowRight.js")},"./MapStore2/node_modules/lodash/fp/convert.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/_baseConvert.js"),o=n("./MapStore2/node_modules/lodash/fp/_util.js");e.exports=function(e,t,n){return r(o,e,t,n)}},"./MapStore2/node_modules/lodash/fp/flowRight.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("flowRight",n("./MapStore2/node_modules/lodash/flowRight.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/placeholder.js":function(e,t){e.exports={}},"./MapStore2/node_modules/lodash/fp/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("set",n("./MapStore2/node_modules/lodash/set.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("unset",n("./MapStore2/node_modules/lodash/unset.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/get.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGet.js");e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},"./MapStore2/node_modules/lodash/hasIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseHasIn.js"),o=n("./MapStore2/node_modules/lodash/_hasPath.js");e.exports=function(e,t){return null!=e&&o(e,t,r)}},"./MapStore2/node_modules/lodash/head.js":function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},"./MapStore2/node_modules/lodash/identity.js":function(e,t){e.exports=function(e){return e}},"./MapStore2/node_modules/lodash/includes.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js"),o=n("./MapStore2/node_modules/lodash/isArrayLike.js"),s=n("./MapStore2/node_modules/lodash/isString.js"),i=n("./MapStore2/node_modules/lodash/toInteger.js"),a=n("./MapStore2/node_modules/lodash/values.js"),u=Math.max;e.exports=function(e,t,n,l){e=o(e)?e:a(e),n=n&&!l?i(n):0;var c=e.length;return n<0&&(n=u(c+n,0)),s(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},"./MapStore2/node_modules/lodash/intersection.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIntersection.js"),s=n("./MapStore2/node_modules/lodash/_baseRest.js"),i=n("./MapStore2/node_modules/lodash/_castArrayLikeObject.js"),a=s((function(e){var t=r(e,i);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=a},"./MapStore2/node_modules/lodash/isArguments.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsArguments.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},"./MapStore2/node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;e.exports=n},"./MapStore2/node_modules/lodash/isArrayLike.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isFunction.js"),o=n("./MapStore2/node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},"./MapStore2/node_modules/lodash/isArrayLikeObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isArrayLike.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&r(e)}},"./MapStore2/node_modules/lodash/isBuffer.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_root.js"),o=n("./MapStore2/node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,i=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===s?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/isEmpty.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseKeys.js"),o=n("./MapStore2/node_modules/lodash/_getTag.js"),s=n("./MapStore2/node_modules/lodash/isArguments.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isArrayLike.js"),u=n("./MapStore2/node_modules/lodash/isBuffer.js"),l=n("./MapStore2/node_modules/lodash/_isPrototype.js"),c=n("./MapStore2/node_modules/lodash/isTypedArray.js"),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||s(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},"./MapStore2/node_modules/lodash/isEqual.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsEqual.js");e.exports=function(e,t){return r(e,t)}},"./MapStore2/node_modules/lodash/isError.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js"),s=n("./MapStore2/node_modules/lodash/isPlainObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!s(e)}},"./MapStore2/node_modules/lodash/isFunction.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./MapStore2/node_modules/lodash/isLength.js":function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./MapStore2/node_modules/lodash/isMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsMap.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isMap,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isNil.js":function(e,t){e.exports=function(e){return null==e}},"./MapStore2/node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./MapStore2/node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./MapStore2/node_modules/lodash/isPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/_getPrototype.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js"),i=Function.prototype,a=Object.prototype,u=i.toString,l=a.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},"./MapStore2/node_modules/lodash/isSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsSet.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isSet,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!o(e)&&s(e)&&"[object String]"==r(e)}},"./MapStore2/node_modules/lodash/isSymbol.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"./MapStore2/node_modules/lodash/isTypedArray.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsTypedArray.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isWeakMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},"./MapStore2/node_modules/lodash/iteratee.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseClone.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},"./MapStore2/node_modules/lodash/join.js":function(e,t){var n=Array.prototype.join;e.exports=function(e,t){return null==e?"":n.call(e,t)}},"./MapStore2/node_modules/lodash/keys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeys.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e):o(e)}},"./MapStore2/node_modules/lodash/keysIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeysIn.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e,!0):o(e)}},"./MapStore2/node_modules/lodash/last.js":function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"./MapStore2/node_modules/lodash/lodash.js":function(e,t,n){(function(e,r){var o; +!function(e){function t(t){for(var n,o,s=t[0],i=t[1],a=0,l=[];a-1}},"./MapStore2/node_modules/lodash/_arrayIncludesWith.js":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200&&(d=u,f=!1,t=new r(t));e:for(;++c0&&s(c)?n>1?e(c,n-1,s,i,a):r(a,c):i||(a[a.length]=c)}return a}},"./MapStore2/node_modules/lodash/_baseFor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createBaseFor.js")();e.exports=r},"./MapStore2/node_modules/lodash/_baseForOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFor.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(e,t,o)}},"./MapStore2/node_modules/lodash/_baseGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_castPath.js"),o=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var v=-1,_=h[0];e:for(;++vo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(o);++r=200){var m=t?null:a(e);if(m)return u(m);f=!1,c=i,h=new r}else h=t?[]:p;e:for(;++l1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(s--,i):void 0,a&&o(n[0],n[1],a)&&(i=s<3?void 0:i,s=1),t=Object(t);++r1&&T.reverse(),j&&vc))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var p=-1,h=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},"./MapStore2/node_modules/lodash/_isFlattenable.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Symbol.js"),o=n("./MapStore2/node_modules/lodash/isArguments.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||o(e)||!!(i&&e&&e[i])}},"./MapStore2/node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e-1}},"./MapStore2/node_modules/lodash/_listCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},"./MapStore2/node_modules/lodash/_mapCacheClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Hash.js"),o=n("./MapStore2/node_modules/lodash/_ListCache.js"),s=n("./MapStore2/node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},"./MapStore2/node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"./MapStore2/node_modules/lodash/_mapCacheGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"./MapStore2/node_modules/lodash/_mapCacheHas.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"./MapStore2/node_modules/lodash/_mapCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"./MapStore2/node_modules/lodash/_mapToArray.js":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"./MapStore2/node_modules/lodash/_matchesStrictComparable.js":function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},"./MapStore2/node_modules/lodash/_memoizeCapped.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"./MapStore2/node_modules/lodash/_mergeData.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_composeArgs.js"),o=n("./MapStore2/node_modules/lodash/_composeArgsRight.js"),s=n("./MapStore2/node_modules/lodash/_replaceHolders.js"),i=Math.min;e.exports=function(e,t){var n=e[1],a=t[1],u=n|a,l=u<131,c=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&a&&(e[2]=t[2],u|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?s(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?o(f,d,t[6]):d,e[6]=f?s(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&a&&(e[8]=null==e[8]?t[8]:i(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},"./MapStore2/node_modules/lodash/_metaMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_WeakMap.js"),o=r&&new r;e.exports=o},"./MapStore2/node_modules/lodash/_nativeCreate.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getNative.js")(Object,"create");e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeysIn.js":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"./MapStore2/node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_freeGlobal.js"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./MapStore2/node_modules/lodash/_overArg.js":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"./MapStore2/node_modules/lodash/_overRest.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_apply.js"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,i=-1,a=o(s.length-t,0),u=Array(a);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"./MapStore2/node_modules/lodash/_stackClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new r,this.size=0}},"./MapStore2/node_modules/lodash/_stackDelete.js":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"./MapStore2/node_modules/lodash/_stackGet.js":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"./MapStore2/node_modules/lodash/_stackHas.js":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"./MapStore2/node_modules/lodash/_stackSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js"),o=n("./MapStore2/node_modules/lodash/_Map.js"),s=n("./MapStore2/node_modules/lodash/_MapCache.js");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},"./MapStore2/node_modules/lodash/_strictIndexOf.js":function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r2?t[2]:void 0;for(l&&s(t[0],t[1],l)&&(r=1);++n2?n-2:1,o&&o<=n?r:i(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!k(n))return e(n,Object(t));var r=[];return T(N(t),(function(e){k(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),T(r,(function(e){var t=e[1];k(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return M(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return M(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function U(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return G(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(I(i(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return G(e,(function(e){return"function"==typeof e?i(e,t):e}))}(t,o)}return t}function B(e,t,n){if(m&&(j||!r.skipFixed[e])){var o=r.methodSpread[e],i=o&&o.start;return void 0===i?S(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var i=o[t],a=o.slice(0,t);return i&&s.apply(a,i),t!=r&&s.apply(a,o.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function z(e,t,n){return y&&n>1&&(g||!r.skipRearg[e])?I(t,r.methodRearg[e]||r.aryRearg[n]):t}function q(e,t){for(var n=-1,r=(t=D(t)).length,o=r-1,s=E(Object(e)),i=s;null!=i&&++n1?M(t,n):t}(0,o=U(s,o),e),!1}})),!o})),o||(o=i),o==t&&(o=_?M(o,1):function(){return t.apply(this,arguments)}),o.convert=W(s,t),o.placeholder=t.placeholder=n,o}if(!f)return V(n,l,v);var H=l,K=[];return T(L,(function(e){T(r.aryMethod[e],(function(e){var t=H[r.remap[e]||e];t&&K.push([e,V(e,t,H)])}))})),T(N(H),(function(e){var t=H[e];if("function"==typeof t){for(var n=K.length;n--;)if(K[n][0]==e)return;t.convert=W(e,t),K.push([e,t])}})),T(K,(function(e){H[e[0]]=e[1]})),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,T(N(H),(function(e){T(r.realToAlias[e]||[],(function(t){H[t]=H[e]}))})),H}},"./MapStore2/node_modules/lodash/fp/_mapping.js":function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var s=n[o];e.call(r,s)?r[s].push(o):r[s]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./MapStore2/node_modules/lodash/fp/_util.js":function(e,t,n){e.exports={ary:n("./MapStore2/node_modules/lodash/ary.js"),assign:n("./MapStore2/node_modules/lodash/_baseAssign.js"),clone:n("./MapStore2/node_modules/lodash/clone.js"),curry:n("./MapStore2/node_modules/lodash/curry.js"),forEach:n("./MapStore2/node_modules/lodash/_arrayEach.js"),isArray:n("./MapStore2/node_modules/lodash/isArray.js"),isError:n("./MapStore2/node_modules/lodash/isError.js"),isFunction:n("./MapStore2/node_modules/lodash/isFunction.js"),isWeakMap:n("./MapStore2/node_modules/lodash/isWeakMap.js"),iteratee:n("./MapStore2/node_modules/lodash/iteratee.js"),keys:n("./MapStore2/node_modules/lodash/_baseKeys.js"),rearg:n("./MapStore2/node_modules/lodash/rearg.js"),toInteger:n("./MapStore2/node_modules/lodash/toInteger.js"),toPath:n("./MapStore2/node_modules/lodash/toPath.js")}},"./MapStore2/node_modules/lodash/fp/compose.js":function(e,t,n){e.exports=n("./MapStore2/node_modules/lodash/fp/flowRight.js")},"./MapStore2/node_modules/lodash/fp/convert.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/_baseConvert.js"),o=n("./MapStore2/node_modules/lodash/fp/_util.js");e.exports=function(e,t,n){return r(o,e,t,n)}},"./MapStore2/node_modules/lodash/fp/flowRight.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("flowRight",n("./MapStore2/node_modules/lodash/flowRight.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/placeholder.js":function(e,t){e.exports={}},"./MapStore2/node_modules/lodash/fp/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("set",n("./MapStore2/node_modules/lodash/set.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("unset",n("./MapStore2/node_modules/lodash/unset.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/get.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGet.js");e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},"./MapStore2/node_modules/lodash/hasIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseHasIn.js"),o=n("./MapStore2/node_modules/lodash/_hasPath.js");e.exports=function(e,t){return null!=e&&o(e,t,r)}},"./MapStore2/node_modules/lodash/head.js":function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},"./MapStore2/node_modules/lodash/identity.js":function(e,t){e.exports=function(e){return e}},"./MapStore2/node_modules/lodash/includes.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js"),o=n("./MapStore2/node_modules/lodash/isArrayLike.js"),s=n("./MapStore2/node_modules/lodash/isString.js"),i=n("./MapStore2/node_modules/lodash/toInteger.js"),a=n("./MapStore2/node_modules/lodash/values.js"),u=Math.max;e.exports=function(e,t,n,l){e=o(e)?e:a(e),n=n&&!l?i(n):0;var c=e.length;return n<0&&(n=u(c+n,0)),s(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},"./MapStore2/node_modules/lodash/intersection.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseIntersection.js"),s=n("./MapStore2/node_modules/lodash/_baseRest.js"),i=n("./MapStore2/node_modules/lodash/_castArrayLikeObject.js"),a=s((function(e){var t=r(e,i);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=a},"./MapStore2/node_modules/lodash/isArguments.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsArguments.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},"./MapStore2/node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;e.exports=n},"./MapStore2/node_modules/lodash/isArrayLike.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isFunction.js"),o=n("./MapStore2/node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},"./MapStore2/node_modules/lodash/isArrayLikeObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isArrayLike.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&r(e)}},"./MapStore2/node_modules/lodash/isBuffer.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_root.js"),o=n("./MapStore2/node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,i=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===s?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/isEmpty.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseKeys.js"),o=n("./MapStore2/node_modules/lodash/_getTag.js"),s=n("./MapStore2/node_modules/lodash/isArguments.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isArrayLike.js"),u=n("./MapStore2/node_modules/lodash/isBuffer.js"),l=n("./MapStore2/node_modules/lodash/_isPrototype.js"),c=n("./MapStore2/node_modules/lodash/isTypedArray.js"),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||s(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},"./MapStore2/node_modules/lodash/isEqual.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsEqual.js");e.exports=function(e,t){return r(e,t)}},"./MapStore2/node_modules/lodash/isError.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js"),s=n("./MapStore2/node_modules/lodash/isPlainObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!s(e)}},"./MapStore2/node_modules/lodash/isFunction.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./MapStore2/node_modules/lodash/isLength.js":function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./MapStore2/node_modules/lodash/isMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsMap.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isMap,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isNil.js":function(e,t){e.exports=function(e){return null==e}},"./MapStore2/node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./MapStore2/node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./MapStore2/node_modules/lodash/isPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/_getPrototype.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js"),i=Function.prototype,a=Object.prototype,u=i.toString,l=a.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},"./MapStore2/node_modules/lodash/isSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsSet.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isSet,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!o(e)&&s(e)&&"[object String]"==r(e)}},"./MapStore2/node_modules/lodash/isSymbol.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"./MapStore2/node_modules/lodash/isTypedArray.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsTypedArray.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/isWeakMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},"./MapStore2/node_modules/lodash/iteratee.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseClone.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},"./MapStore2/node_modules/lodash/join.js":function(e,t){var n=Array.prototype.join;e.exports=function(e,t){return null==e?"":n.call(e,t)}},"./MapStore2/node_modules/lodash/keys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeys.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e):o(e)}},"./MapStore2/node_modules/lodash/keysIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeysIn.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e,!0):o(e)}},"./MapStore2/node_modules/lodash/last.js":function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"./MapStore2/node_modules/lodash/lodash.js":function(e,t,n){(function(e,r){var o; /** * @license * Lodash @@ -6,7 +6,7 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",i="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",b="[object Number]",y="[object Object]",v="[object RegExp]",_="[object Set]",j="[object String]",g="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",O="[object Float32Array]",E="[object Float64Array]",M="[object Int8Array]",T="[object Int16Array]",C="[object Int32Array]",P="[object Uint8Array]",k="[object Uint16Array]",A="[object Uint32Array]",N=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,R=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,F=RegExp(D.source),U=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,K=RegExp(H.source),$=/^\s+|\s+$/g,Y=/^\s+/,X=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",me="["+pe+"]",be="["+fe+"]",ye="\\d+",ve="[\\u2700-\\u27bf]",_e="[a-z\\xdf-\\xf6\\xf8-\\xff]",je="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ge="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="(?:"+_e+"|"+je+")",Me="(?:"+Oe+"|"+je+")",Te="(?:"+be+"|"+ge+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[xe,we,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Pe="(?:"+[ve,we,Se].join("|")+")"+Ce,ke="(?:"+[xe+be+"?",be,we,Se,he].join("|")+")",Ae=RegExp("['’]","g"),Ne=RegExp(be,"g"),Ie=RegExp(ge+"(?="+ge+")|"+ke+Ce,"g"),Re=RegExp([Oe+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Oe,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Oe+Ee,"$"].join("|")+")",Oe+"?"+Ee+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Pe].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,Be={};Be[O]=Be[E]=Be[M]=Be[T]=Be[C]=Be[P]=Be["[object Uint8ClampedArray]"]=Be[k]=Be[A]=!0,Be[u]=Be[l]=Be[w]=Be[c]=Be[S]=Be[d]=Be[f]=Be[p]=Be[m]=Be[b]=Be[y]=Be[v]=Be[_]=Be[j]=Be[x]=!1;var ze={};ze[u]=ze[l]=ze[w]=ze[S]=ze[c]=ze[d]=ze[O]=ze[E]=ze[M]=ze[T]=ze[C]=ze[m]=ze[b]=ze[y]=ze[v]=ze[_]=ze[j]=ze[g]=ze[P]=ze["[object Uint8ClampedArray]"]=ze[k]=ze[A]=!0,ze[f]=ze[p]=ze[x]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,Ge=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,He="object"==typeof self&&self&&self.Object===Object&&self,Ke=Ve||He||Function("return this")(),$e=t&&!t.nodeType&&t,Ye=$e&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=Ye&&Ye.exports===$e,Je=Xe&&Ve.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var o=-1,s=null==e?0:e.length;++o-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&>(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Dt=Et({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=Et({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+qe[e]}function Ut(e){return De.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function zt(e,t){return function(n){return e(t(n))}}function qt(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var $t=function e(t){var n,r=(t=null==t?Ke:$t.defaults(Ke.Object(),t,$t.pick(Ke,Fe))).Array,o=t.Date,fe=t.Error,pe=t.Function,he=t.Math,me=t.Object,be=t.RegExp,ye=t.String,ve=t.TypeError,_e=r.prototype,je=pe.prototype,ge=me.prototype,xe=t["__core-js_shared__"],we=je.toString,Se=ge.hasOwnProperty,Oe=0,Ee=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=ge.toString,Te=we.call(me),Ce=Ke._,Pe=be("^"+we.call(Se).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Xe?t.Buffer:void 0,Ie=t.Symbol,De=t.Uint8Array,qe=ke?ke.allocUnsafe:void 0,Ve=zt(me.getPrototypeOf,me),He=me.create,$e=ge.propertyIsEnumerable,Ye=_e.splice,Je=Ie?Ie.isConcatSpreadable:void 0,Qe=Ie?Ie.iterator:void 0,vt=Ie?Ie.toStringTag:void 0,Et=function(){try{var e=es(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ke.Date.now&&o.now,Jt=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Qt=he.ceil,Zt=he.floor,en=me.getOwnPropertySymbols,tn=ke?ke.isBuffer:void 0,nn=t.isFinite,rn=_e.join,on=zt(me.keys,me),sn=he.max,an=he.min,un=o.now,ln=t.parseInt,cn=he.random,dn=_e.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),hn=es(t,"Promise"),mn=es(t,"Set"),bn=es(t,"WeakMap"),yn=es(me,"create"),vn=bn&&new bn,_n={},jn=Ms(fn),gn=Ms(pn),xn=Ms(hn),wn=Ms(mn),Sn=Ms(bn),On=Ie?Ie.prototype:void 0,En=On?On.valueOf:void 0,Mn=On?On.toString:void 0;function Tn(e){if(Gi(e)&&!Ni(e)&&!(e instanceof An)){if(e instanceof kn)return e;if(Se.call(e,"__wrapped__"))return Ts(e)}return new kn(e)}var Cn=function(){function e(){}return function(t){if(!Wi(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Pn(){}function kn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Xn(e,t,n,r,o,s){var i,a=1&t,l=2&t,f=4&t;if(n&&(i=o?n(e,r,o,s):n(e)),void 0!==i)return i;if(!Wi(e))return e;var x=Ni(e);if(x){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return vo(e,i)}else{var N=rs(e),I=N==p||N==h;if(Li(e))return fo(e,a);if(N==y||N==u||I&&!o){if(i=l||I?{}:ss(e),!a)return l?function(e,t){return _o(e,ns(e),t)}(e,function(e,t){return e&&_o(t,ga(t),e)}(i,e)):function(e,t){return _o(e,ts(e),t)}(e,Hn(i,e))}else{if(!ze[N])return o?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case w:return po(e);case c:case d:return new r(+e);case S:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case E:case M:case T:case C:case P:case"[object Uint8ClampedArray]":case k:case A:return ho(e,n);case m:return new r;case b:case j:return new r(e);case v:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new r;case g:return o=e,En?me(En.call(o)):{}}var o}(e,N,a)}}s||(s=new Ln);var R=s.get(e);if(R)return R;s.set(e,i),Yi(e)?e.forEach((function(r){i.add(Xn(r,t,n,r,e,s))})):Vi(e)&&e.forEach((function(r,o){i.set(o,Xn(r,t,n,o,e,s))}));var D=x?void 0:(f?l?Ko:Ho:l?ga:ja)(e);return at(D||e,(function(r,o){D&&(r=e[o=r]),Wn(i,o,Xn(r,t,n,o,e,s))})),i}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var o=n[r],s=t[o],i=e[o];if(void 0===i&&!(o in e)||!s(i))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ve(s);return js((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var o=-1,s=dt,i=!0,a=e.length,u=[],l=t.length;if(!a)return u;n&&(t=pt(t,Pt(n))),r?(s=ft,i=!1):t.length>=200&&(s=At,i=!1,t=new Dn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=Gn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||In),string:new Nn}},Rn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Rn.prototype.get=function(e){return Qo(this,e).get(e)},Rn.prototype.has=function(e){return Qo(this,e).has(e)},Rn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dn.prototype.add=Dn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Dn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new In,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(e,t),this.size=n.size,this};var er=xo(ur),tr=xo(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(a)?t>1?sr(a,t-1,n,r,o):ht(o,a):r||(o[o.length]=a)}return o}var ir=wo(),ar=wo(!0);function ur(e,t){return e&&ir(e,t,ja)}function lr(e,t){return e&&ar(e,t,ja)}function cr(e,t){return ct(t,(function(t){return Bi(e[t])}))}function dr(e,t){for(var n=0,r=(t=ao(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Se.call(e,t)}function br(e,t){return null!=e&&t in me(e)}function yr(e,t,n){for(var o=n?ft:dt,s=e[0].length,i=e.length,a=i,u=r(i),l=1/0,c=[];a--;){var d=e[a];a&&t&&(d=pt(d,Pt(t))),l=an(d.length,l),u[a]=!n&&(t||s>=120&&d.length>=120)?new Dn(a&&d):void 0}d=e[0];var f=-1,p=u[0];e:for(;++f=a)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,o=t.length,s={};++r-1;)a!==e&&Ye.call(a,u,1),Ye.call(e,u,1);return e}function Rr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==s){var s=o;as(o)?Ye.call(e,o,1):Zr(e,o)}}return e}function Dr(e,t){return e+Zt(cn()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return gs(ms(e,t,Ha),e+"")}function Ur(e){return Un(Ca(e))}function Br(e,t){var n=Ca(e);return Ss(n,Yn(t,0,n.length))}function zr(e,t,n,r){if(!Wi(e))return e;for(var o=-1,s=(t=ao(t,e)).length,i=s-1,a=e;null!=a&&++os?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=r(s);++o>>1,i=e[s];null!==i&&!Ji(i)&&(n?i<=t:i=200){var l=t?null:Fo(e);if(l)return Wt(l);i=!1,o=At,u=new Dn}else u=t?[]:a;e:for(;++r=r?e:Vr(e,t,n)}var co=Yt||function(e){return Ke.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new De(t).set(new De(e)),t}function ho(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,s=Ji(e),i=void 0!==t,a=null===t,u=t==t,l=Ji(t);if(!a&&!l&&!s&&e>t||s&&i&&u&&!a&&!l||r&&i&&u||!n&&u||!o)return 1;if(!r&&!s&&!l&&e1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,i&&us(n[0],n[1],i)&&(s=o<3?void 0:s,o=1),t=me(t);++r-1?o[s?t[i]:i]:void 0}}function To(e){return Vo((function(t){var n=t.length,r=n,o=kn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ve(s);if(o&&!a&&"wrapper"==Yo(i))var a=new kn([],!0)}for(r=a?r:n;++r1&&_.reverse(),d&&la))return!1;var l=s.get(e),c=s.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new Dn:void 0;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(Z):[]}(r),n)))}function ws(e){var t=0,n=0;return function(){var r=un(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ss(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$s(e,n)}));function ti(e){var t=Tn(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Vo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new kn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=jo((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var si=Mo(As),ii=Mo(Ns);function ai(e,t){return(Ni(e)?at:er)(e,Jo(t,3))}function ui(e,t){return(Ni(e)?ut:tr)(e,Jo(t,3))}var li=jo((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ci=Fr((function(e,t,n){var o=-1,s="function"==typeof t,i=Ri(e)?r(e.length):[];return er(e,(function(e){i[++o]=s?st(t,e,n):vr(e,t,n)})),i})),di=jo((function(e,t,n){Kn(e,n,t)}));function fi(e,t){return(Ni(e)?pt:Mr)(e,Jo(t,3))}var pi=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var hi=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&us(e,t[0],t[1])?t=[]:n>2&&us(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,sr(t,1),[])})),mi=Xt||function(){return Ke.Date.now()};function bi(e,t,n){return t=n?void 0:t,Bo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var n;if("function"!=typeof t)throw new ve(s);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var vi=Fr((function(e,t,n){var r=1;if(n.length){var o=qt(n,Xo(vi));r|=32}return Bo(e,r,t,n,o)})),_i=Fr((function(e,t,n){var r=3;if(n.length){var o=qt(n,Xo(_i));r|=32}return Bo(t,r,e,n,o)}));function ji(e,t,n){var r,o,i,a,u,l,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ve(s);function h(t){var n=r,s=o;return r=o=void 0,c=t,a=e.apply(s,n)}function m(e){return c=e,u=js(y,t),d?h(e):a}function b(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-c>=i}function y(){var e=mi();if(b(e))return v(e);u=js(y,function(e){var n=t-(e-l);return f?an(n,i-(e-c)):n}(e))}function v(e){return u=void 0,p&&r?h(e):(r=o=void 0,a)}function _(){var e=mi(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return m(l);if(f)return co(u),u=js(y,t),h(l)}return void 0===u&&(u=js(y,t)),a}return t=sa(t)||0,Wi(n)&&(d=!!n.leading,i=(f="maxWait"in n)?sn(sa(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==u&&co(u),c=0,r=l=o=u=void 0},_.flush=function(){return void 0===u?a:v(mi())},_}var gi=Fr((function(e,t){return Qn(e,1,t)})),xi=Fr((function(e,t,n){return Qn(e,sa(t)||0,n)}));function wi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(s);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(wi.Cache||Rn),n}function Si(e){if("function"!=typeof e)throw new ve(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wi.Cache=Rn;var Oi=uo((function(e,t){var n=(t=1==t.length&&Ni(t[0])?pt(t[0],Pt(Jo())):pt(sr(t,1),Pt(Jo()))).length;return Fr((function(r){for(var o=-1,s=an(r.length,n);++o=t})),Ai=_r(function(){return arguments}())?_r:function(e){return Gi(e)&&Se.call(e,"callee")&&!$e.call(e,"callee")},Ni=r.isArray,Ii=Ze?Pt(Ze):function(e){return Gi(e)&&pr(e)==w};function Ri(e){return null!=e&&qi(e.length)&&!Bi(e)}function Di(e){return Gi(e)&&Ri(e)}var Li=tn||su,Fi=et?Pt(et):function(e){return Gi(e)&&pr(e)==d};function Ui(e){if(!Gi(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ki(e)}function Bi(e){if(!Wi(e))return!1;var t=pr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function zi(e){return"number"==typeof e&&e==ra(e)}function qi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Gi(e){return null!=e&&"object"==typeof e}var Vi=tt?Pt(tt):function(e){return Gi(e)&&rs(e)==m};function Hi(e){return"number"==typeof e||Gi(e)&&pr(e)==b}function Ki(e){if(!Gi(e)||pr(e)!=y)return!1;var t=Ve(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==Te}var $i=nt?Pt(nt):function(e){return Gi(e)&&pr(e)==v};var Yi=rt?Pt(rt):function(e){return Gi(e)&&rs(e)==_};function Xi(e){return"string"==typeof e||!Ni(e)&&Gi(e)&&pr(e)==j}function Ji(e){return"symbol"==typeof e||Gi(e)&&pr(e)==g}var Qi=ot?Pt(ot):function(e){return Gi(e)&&qi(e.length)&&!!Be[pr(e)]};var Zi=Ro(Er),ea=Ro((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Ri(e))return Xi(e)?Ht(e):vo(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=rs(e);return(t==m?Bt:t==_?Wt:Ca)(e)}function na(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function oa(e){return e?Yn(ra(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Ji(e))return NaN;if(Wi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var n=se.test(e);return n||ae.test(e)?Ge(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ia(e){return _o(e,ga(e))}function aa(e){return null==e?"":Jr(e)}var ua=go((function(e,t){if(fs(t)||Ri(t))_o(t,ja(t),e);else for(var n in t)Se.call(t,n)&&Wn(e,n,t[n])})),la=go((function(e,t){_o(t,ga(t),e)})),ca=go((function(e,t,n,r){_o(t,ga(t),e,r)})),da=go((function(e,t,n,r){_o(t,ja(t),e,r)})),fa=Vo($n);var pa=Fr((function(e,t){e=me(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&us(t[0],t[1],o)&&(r=1);++n1),t})),_o(e,Ko(e),n),r&&(n=Xn(n,7,Wo));for(var o=t.length;o--;)Zr(n,t[o]);return n}));var Oa=Vo((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return ba(e,n)}))}(e,t)}));function Ea(e,t){if(null==e)return{};var n=pt(Ko(e),(function(e){return[e]}));return t=Jo(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Ma=Uo(ja),Ta=Uo(ga);function Ca(e){return null==e?[]:kt(e,ja(e))}var Pa=Oo((function(e,t,n){return t=t.toLowerCase(),e+(n?ka(t):t)}));function ka(e){return Ua(aa(e).toLowerCase())}function Aa(e){return(e=aa(e))&&e.replace(le,Dt).replace(Ne,"")}var Na=Oo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ia=Oo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ra=So("toLowerCase");var Da=Oo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var La=Oo((function(e,t,n){return e+(n?" ":"")+Ua(t)}));var Fa=Oo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ua=So("toUpperCase");function Ba(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Re)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var za=Fr((function(e,t){try{return st(e,void 0,t)}catch(e){return Ui(e)?e:new fe(e)}})),qa=Vo((function(e,t){return at(t,(function(t){t=Es(t),Kn(e,t,vi(e[t],e))})),e}));function Wa(e){return function(){return e}}var Ga=To(),Va=To(!0);function Ha(e){return e}function Ka(e){return wr("function"==typeof e?e:Xn(e,1))}var $a=Fr((function(e,t){return function(n){return vr(n,e,t)}})),Ya=Fr((function(e,t){return function(n){return vr(e,n,t)}}));function Xa(e,t,n){var r=ja(t),o=cr(t,r);null!=n||Wi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,ja(t)));var s=!(Wi(n)&&"chain"in n&&!n.chain),i=Bi(e);return at(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),o=n.__actions__=vo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Ja(){}var Qa=Ao(pt),Za=Ao(lt),eu=Ao(yt);function tu(e){return ls(e)?Ot(Es(e)):function(e){return function(t){return dr(t,e)}}(e)}var nu=Io(),ru=Io(!0);function ou(){return[]}function su(){return!1}var iu=ko((function(e,t){return e+t}),0),au=Lo("ceil"),uu=ko((function(e,t){return e/t}),1),lu=Lo("floor");var cu,du=ko((function(e,t){return e*t}),1),fu=Lo("round"),pu=ko((function(e,t){return e-t}),0);return Tn.after=function(e,t){if("function"!=typeof t)throw new ve(s);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},Tn.ary=bi,Tn.assign=ua,Tn.assignIn=la,Tn.assignInWith=ca,Tn.assignWith=da,Tn.at=fa,Tn.before=yi,Tn.bind=vi,Tn.bindAll=qa,Tn.bindKey=_i,Tn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ni(e)?e:[e]},Tn.chain=ti,Tn.chunk=function(e,t,n){t=(n?us(e,t,n):void 0===t)?1:sn(ra(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,i=0,a=r(Qt(o/t));so?0:o+n),(r=void 0===r||r>o?o:ra(r))<0&&(r+=o),r=n>r?0:oa(r);n>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!$i(t))&&!(t=Jr(t))&&Ut(e)?lo(Ht(e),0,n):e.split(t,n):[]},Tn.spread=function(e,t){if("function"!=typeof e)throw new ve(s);return t=null==t?0:sn(ra(t),0),Fr((function(n){var r=n[t],o=lo(n,0,t);return r&&ht(o,r),st(e,this,o)}))},Tn.tail=function(e){var t=null==e?0:e.length;return t?Vr(e,1,t):[]},Tn.take=function(e,t,n){return e&&e.length?Vr(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},Tn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=r-(t=n||void 0===t?1:ra(t)))<0?0:t,r):[]},Tn.takeRightWhile=function(e,t){return e&&e.length?to(e,Jo(t,3),!1,!0):[]},Tn.takeWhile=function(e,t){return e&&e.length?to(e,Jo(t,3)):[]},Tn.tap=function(e,t){return t(e),e},Tn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ve(s);return Wi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ji(e,t,{leading:r,maxWait:t,trailing:o})},Tn.thru=ni,Tn.toArray=ta,Tn.toPairs=Ma,Tn.toPairsIn=Ta,Tn.toPath=function(e){return Ni(e)?pt(e,Es):Ji(e)?[e]:vo(Os(aa(e)))},Tn.toPlainObject=ia,Tn.transform=function(e,t,n){var r=Ni(e),o=r||Li(e)||Qi(e);if(t=Jo(t,4),null==n){var s=e&&e.constructor;n=o?r?new s:[]:Wi(e)&&Bi(s)?Cn(Ve(e)):{}}return(o?at:ur)(e,(function(e,r,o){return t(n,e,r,o)})),n},Tn.unary=function(e){return bi(e,1)},Tn.union=Gs,Tn.unionBy=Vs,Tn.unionWith=Hs,Tn.uniq=function(e){return e&&e.length?Qr(e):[]},Tn.uniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},Tn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Tn.unset=function(e,t){return null==e||Zr(e,t)},Tn.unzip=Ks,Tn.unzipWith=$s,Tn.update=function(e,t,n){return null==e?e:eo(e,t,io(n))},Tn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,io(n),r)},Tn.values=Ca,Tn.valuesIn=function(e){return null==e?[]:kt(e,ga(e))},Tn.without=Ys,Tn.words=Ba,Tn.wrap=function(e,t){return Ei(io(t),e)},Tn.xor=Xs,Tn.xorBy=Js,Tn.xorWith=Qs,Tn.zip=Zs,Tn.zipObject=function(e,t){return oo(e||[],t||[],Wn)},Tn.zipObjectDeep=function(e,t){return oo(e||[],t||[],zr)},Tn.zipWith=ei,Tn.entries=Ma,Tn.entriesIn=Ta,Tn.extend=la,Tn.extendWith=ca,Xa(Tn,Tn),Tn.add=iu,Tn.attempt=za,Tn.camelCase=Pa,Tn.capitalize=ka,Tn.ceil=au,Tn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sa(n))==n?n:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Yn(sa(e),t,n)},Tn.clone=function(e){return Xn(e,4)},Tn.cloneDeep=function(e){return Xn(e,5)},Tn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Tn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Tn.conformsTo=function(e,t){return null==t||Jn(e,t,ja(t))},Tn.deburr=Aa,Tn.defaultTo=function(e,t){return null==e||e!=e?t:e},Tn.divide=uu,Tn.endsWith=function(e,t,n){e=aa(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Yn(ra(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Tn.eq=Ci,Tn.escape=function(e){return(e=aa(e))&&U.test(e)?e.replace(L,Lt):e},Tn.escapeRegExp=function(e){return(e=aa(e))&&K.test(e)?e.replace(H,"\\$&"):e},Tn.every=function(e,t,n){var r=Ni(e)?lt:nr;return n&&us(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Tn.find=si,Tn.findIndex=As,Tn.findKey=function(e,t){return _t(e,Jo(t,3),ur)},Tn.findLast=ii,Tn.findLastIndex=Ns,Tn.findLastKey=function(e,t){return _t(e,Jo(t,3),lr)},Tn.floor=lu,Tn.forEach=ai,Tn.forEachRight=ui,Tn.forIn=function(e,t){return null==e?e:ir(e,Jo(t,3),ga)},Tn.forInRight=function(e,t){return null==e?e:ar(e,Jo(t,3),ga)},Tn.forOwn=function(e,t){return e&&ur(e,Jo(t,3))},Tn.forOwnRight=function(e,t){return e&&lr(e,Jo(t,3))},Tn.get=ma,Tn.gt=Pi,Tn.gte=ki,Tn.has=function(e,t){return null!=e&&os(e,t,mr)},Tn.hasIn=ba,Tn.head=Rs,Tn.identity=Ha,Tn.includes=function(e,t,n,r){e=Ri(e)?e:Ca(e),n=n&&!r?ra(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Xi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&>(e,t,n)>-1},Tn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ra(n);return o<0&&(o=sn(r+o,0)),gt(e,t,o)},Tn.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e=-9007199254740991&&e<=9007199254740991},Tn.isSet=Yi,Tn.isString=Xi,Tn.isSymbol=Ji,Tn.isTypedArray=Qi,Tn.isUndefined=function(e){return void 0===e},Tn.isWeakMap=function(e){return Gi(e)&&rs(e)==x},Tn.isWeakSet=function(e){return Gi(e)&&"[object WeakSet]"==pr(e)},Tn.join=function(e,t){return null==e?"":rn.call(e,t)},Tn.kebabCase=Na,Tn.last=Us,Tn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ra(n))<0?sn(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,wt,o,!0)},Tn.lowerCase=Ia,Tn.lowerFirst=Ra,Tn.lt=Zi,Tn.lte=ea,Tn.max=function(e){return e&&e.length?rr(e,Ha,hr):void 0},Tn.maxBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),hr):void 0},Tn.mean=function(e){return St(e,Ha)},Tn.meanBy=function(e,t){return St(e,Jo(t,2))},Tn.min=function(e){return e&&e.length?rr(e,Ha,Er):void 0},Tn.minBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),Er):void 0},Tn.stubArray=ou,Tn.stubFalse=su,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=du,Tn.nth=function(e,t){return e&&e.length?kr(e,ra(t)):void 0},Tn.noConflict=function(){return Ke._===this&&(Ke._=Ce),this},Tn.noop=Ja,Tn.now=mi,Tn.pad=function(e,t,n){e=aa(e);var r=(t=ra(t))?Vt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return No(Zt(o),n)+e+No(Qt(o),n)},Tn.padEnd=function(e,t,n){e=aa(e);var r=(t=ra(t))?Vt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return an(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Dr(e,t)},Tn.reduce=function(e,t,n){var r=Ni(e)?mt:Mt,o=arguments.length<3;return r(e,Jo(t,4),n,o,er)},Tn.reduceRight=function(e,t,n){var r=Ni(e)?bt:Mt,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},Tn.repeat=function(e,t,n){return t=(n?us(e,t,n):void 0===t)?1:ra(t),Lr(aa(e),t)},Tn.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Tn.result=function(e,t,n){var r=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Ct(r,t=Jo(t));++n=s)return e;var a=n-Vt(r);if(a<1)return r;var u=i?lo(i,0,a).join(""):e.slice(0,a);if(void 0===o)return u+r;if(i&&(a+=u.length-a),$i(o)){if(e.slice(a).search(o)){var l,c=u;for(o.global||(o=be(o.source,aa(re.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;u=u.slice(0,void 0===d?a:d)}}else if(e.indexOf(Jr(o),a)!=a){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},Tn.unescape=function(e){return(e=aa(e))&&F.test(e)?e.replace(D,Kt):e},Tn.uniqueId=function(e){var t=++Oe;return aa(e)+t},Tn.upperCase=Fa,Tn.upperFirst=Ua,Tn.each=ai,Tn.eachRight=ui,Tn.first=Rs,Xa(Tn,(cu={},ur(Tn,(function(e,t){Se.call(Tn.prototype,t)||(cu[t]=e)})),cu),{chain:!1}),Tn.VERSION="4.17.19",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Tn[e].placeholder=Tn})),at(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Ha)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return vr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Si(Jo(e)))},An.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},ur(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Tn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Tn.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,a=t instanceof An,u=i[0],l=a||Ni(t),c=function(e){var t=o.apply(Tn,ht([e],i));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(a=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,h=a&&!f;if(!s&&l){t=h?t:new An(this);var m=e.apply(t,i);return m.__actions__.push({func:ni,args:[c],thisArg:void 0}),new kn(m,d)}return p&&h?e.apply(this,i):(m=this.thru(c),p?r?m.value()[0]:m.value():m)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=_e[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Tn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ni(o)?o:[],e)}return this[n]((function(n){return t.apply(Ni(n)?n:[],e)}))}})),ur(An.prototype,(function(e,t){var n=Tn[t];if(n){var r=n.name+"";Se.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[Co(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=vo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vo(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ni(e),r=t<0,o=n?e.length:0,s=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(e){for(var t,n=this;n instanceof Pn;){var r=Ts(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Tn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Ws],thisArg:void 0}),new kn(t,this.__chain__)}return this.thru(Ws)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Qe&&(Tn.prototype[Qe]=function(){return this}),Tn}();Ke._=$t,void 0===(o=function(){return $t}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/mapValues.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),s=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var n={};return t=s(t,3),o(e,(function(e,o,s){r(n,o,t(e,o,s))})),n}},"./MapStore2/node_modules/lodash/memoize.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},"./MapStore2/node_modules/lodash/merge.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n){r(e,t,n)}));e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/noop.js":function(e,t){e.exports=function(){}},"./MapStore2/node_modules/lodash/pick.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_basePick.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js")((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},"./MapStore2/node_modules/lodash/property.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseProperty.js"),o=n("./MapStore2/node_modules/lodash/_basePropertyDeep.js"),s=n("./MapStore2/node_modules/lodash/_isKey.js"),i=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e){return s(e)?r(i(e)):o(e)}},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createWrap.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js"),s=o((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=s},"./MapStore2/node_modules/lodash/replace.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(){var e=arguments,t=r(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},"./MapStore2/node_modules/lodash/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},"./MapStore2/node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./MapStore2/node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./MapStore2/node_modules/lodash/toFinite.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./MapStore2/node_modules/lodash/toInteger.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},"./MapStore2/node_modules/lodash/toNumber.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isObject.js"),o=n("./MapStore2/node_modules/lodash/isSymbol.js"),s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_copyArray.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=n("./MapStore2/node_modules/lodash/isSymbol.js"),a=n("./MapStore2/node_modules/lodash/_stringToPath.js"),u=n("./MapStore2/node_modules/lodash/_toKey.js"),l=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return s(e)?r(e,u):i(e)?[e]:o(a(l(e)))}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/node_modules/lodash/toString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"./MapStore2/node_modules/lodash/union.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseUniq.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,1,i,!0))}));e.exports=a},"./MapStore2/node_modules/lodash/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||r(e,t)}},"./MapStore2/node_modules/lodash/values.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseValues.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e){return null==e?[]:r(e,o(e))}},"./MapStore2/node_modules/lodash/without.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseDifference.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),i=o((function(e,t){return s(e)?r(e,t):[]}));e.exports=i},"./MapStore2/node_modules/lodash/wrapperLodash.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_LazyWrapper.js"),o=n("./MapStore2/node_modules/lodash/_LodashWrapper.js"),s=n("./MapStore2/node_modules/lodash/_baseLodash.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isObjectLike.js"),u=n("./MapStore2/node_modules/lodash/_wrapperClone.js"),l=Object.prototype.hasOwnProperty;function c(e){if(a(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return u(e)}return new o(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},"./MapStore2/node_modules/lodash/xor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseXor.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,i))}));e.exports=a},"./MapStore2/web/client/actions/browser.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="CHANGE_BROWSER_PROPERTIES",o=function(e){return{type:r,newProperties:e}}},"./MapStore2/web/client/actions/controls.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o="TOGGLE_CONTROL",s="SET_CONTROL_PROPERTY",i="SET_CONTROL_PROPERTIES",a="RESET_CONTROLS";function u(e,t){return{type:o,control:e,property:t}}function l(e,t,n,r){return{type:s,control:e,property:t,value:n,toggle:r}}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[];return{type:a,skip:e}}},"./MapStore2/web/client/actions/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return j})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return x})),n.d(t,"s",(function(){return w})),n.d(t,"q",(function(){return S})),n.d(t,"u",(function(){return O})),n.d(t,"v",(function(){return E})),n.d(t,"y",(function(){return M})),n.d(t,"x",(function(){return T})),n.d(t,"w",(function(){return C})),n.d(t,"z",(function(){return P})),n.d(t,"C",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"k",(function(){return N})),n.d(t,"r",(function(){return I})),n.d(t,"t",(function(){return R})),n.d(t,"B",(function(){return D})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return F})),n.d(t,"S",(function(){return U})),n.d(t,"F",(function(){return B})),n.d(t,"I",(function(){return z})),n.d(t,"H",(function(){return q})),n.d(t,"K",(function(){return W})),n.d(t,"J",(function(){return G})),n.d(t,"M",(function(){return V})),n.d(t,"O",(function(){return H})),n.d(t,"Q",(function(){return K})),n.d(t,"P",(function(){return $})),n.d(t,"V",(function(){return Y})),n.d(t,"X",(function(){return X})),n.d(t,"R",(function(){return J})),n.d(t,"Y",(function(){return Q})),n.d(t,"Z",(function(){return Z})),n.d(t,"ab",(function(){return ee})),n.d(t,"bb",(function(){return te})),n.d(t,"cb",(function(){return ne})),n.d(t,"L",(function(){return re})),n.d(t,"T",(function(){return oe})),n.d(t,"eb",(function(){return se})),n.d(t,"W",(function(){return ie})),n.d(t,"G",(function(){return ae})),n.d(t,"N",(function(){return ue})),n.d(t,"U",(function(){return le})),n.d(t,"fb",(function(){return ce})),n.d(t,"db",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/isString.js"),o=n.n(r),s=n("./node_modules/uuid/index.js"),i=n.n(s),a=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),u="GEOSTORY:ADD",l="GEOSTORY:ADD_RESOURCE",c="GEOSTORY:CHANGE_MODE",d="GEOSTORY:CLEAR_SAVE_ERROR",f="GEOSTORY:EDIT_RESOURCE",p="GEOSTORY:EDIT_WEBPAGE",h="GEOSTORY:LOAD_GEOSTORY",m="GEOSTORY:LOADING_GEOSTORY",b="GEOSTORY:MOVE",y="GEOSTORY:REMOVE",v="GEOSTORY:SAVE_STORY",_="GEOSTORY:SAVE_ERROR",j="GEOSTORY:STORY_SAVED",g="GEOSTORY:SELECT_CARD",x="GEOSTORY:SET_CONTROL",w="GEOSTORY:SET_RESOURCE",S="GEOSTORY:SET_CURRENT_STORY",O="GEOSTORY:SET_WEBPAGE_URL",E="GEOSTORY:TOGGLE_CARD_PREVIEW",M="GEOSTORY:TOGGLE_SETTINGS_PANEL",T="GEOSTORY:TOGGLE_SETTING",C="GEOSTORY:TOGGLE_CONTENT_FOCUS",P="GEOSTORY:UPDATE",k="GEOSTORY:UPDATE_SETTING",A="GEOSTORY:UPDATE_CURRENT_PAGE",N="GEOSTORY:REMOVE_RESOURCE",I="GEOSTORY:SET_PENDING_CHANGES",R="GEOSTORY:SET_UPDATE_URL_SCROLL",D="GEOSTORY:UPDATE_MEDIA_EDITOR_SETTINGS",L=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e};return{type:u,id:n&&n.id||i()(),path:e,position:t,element:o()(n)&&Object(a.q)(n,r)||n}},F=function(e,t,n){return{type:l,id:e,mediaType:t,data:n}},U=function(e){return{type:c,mode:e?a.f.EDIT:a.f.VIEW}},B=function(e,t,n){return{type:f,id:e,mediaType:t,data:n}},z=function(e,t){return{type:h,id:e,options:t}},q=function(e){return{type:"GEOSTORY:GEOSTORY_LOADED",id:e}},W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:m,value:e,name:t}},G=function(e){return{type:"GEOSTORY:LOAD_GEOSTORY_ERROR",error:e}},V=function(e){return{type:y,path:e}},H=function(e){return{type:_,error:e}},K=function(e,t){return{type:x,control:e,value:t}},$=function(e){return{type:g,card:e}},Y=function(e){return{type:w,resource:e}},X=function(e){return{type:j,id:e}},J=function(e){return{type:S,story:e}},Q=function(){return{type:E}},Z=function(e){return{type:T,option:e}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:M,withSave:e}},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"replace";return{type:P,path:e,element:t,mode:n}},ne=function(e){var t=e.sectionId,n=e.columnId;return{type:A,sectionId:t,columnId:n}},re=function(e,t,n){return{type:b,source:e,target:t,position:n}},oe=function(e,t,n,r,o){return{type:C,status:e,target:t,selector:n,hideContent:r,path:o}},se=function(e,t){return{type:k,prop:e,value:t}},ie=function(e){return{type:O,src:e}},ae=function(e){var t=e.path,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GEOSTORY";return{type:p,path:t,owner:n}},ue=function(e,t){return{type:N,id:e,mediaType:t}},le=function(e){return{type:I,value:e}},ce=function(e){return{type:R,value:e}},de=function(e){return{type:D,mediaEditorSettings:e}}},"./MapStore2/web/client/actions/localConfig.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="LOCAL_CONFIG_LOADED";function o(e){return{type:r,config:e}}},"./MapStore2/web/client/actions/locale.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/es6-promise/dist/es6-promise.js"),s=n("./MapStore2/web/client/libs/ajax.js"),i=n.n(s),a=n("./MapStore2/web/client/actions/notifications.js"),u=n("./MapStore2/web/client/utils/LocaleUtils.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c="CHANGE_LOCALE",d="LOCALE_LOAD_ERROR";function f(e){return{type:c,messages:e.messages,locale:e.locale}}function p(e){return{type:d,error:e}}function h(e,t){return function(n){var s=t;s||(s=Object(u.h)());var c=Object(r.castArray)(e||l.default.getConfigProp("translationsPath"));o.Promise.all(c.map((function(e){return i.a.get(e+"/data.".concat(s,".json")).catch((function(e){return e}))}))).then((function(e){var o=e.filter((function(e){return 200===e.status}));if(e.filter((function(e){return 404!==e.status&&200!==e.status})).length>0||0===o.length){var s=e[0];n(p(s)),n(Object(a.f)({title:"notification.warning",message:0===o.length?"localeErrors.404":"Error loading locale",action:{label:"notification.warning"},position:"tc"}))}else n(f(o.reduce((function(e,o){if("string"==typeof o.data){try{JSON.parse(o.data)}catch(e){n(p("Locale file broken for ("+t+"): "+e.message))}return e}return Object(r.merge)(e,o.data)}),{})))}))}}},"./MapStore2/web/client/actions/maps.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"o",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"y",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"t",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"u",(function(){return v})),n.d(t,"x",(function(){return _})),n.d(t,"v",(function(){return j})),n.d(t,"d",(function(){return g})),n.d(t,"w",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"p",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"s",(function(){return E})),n.d(t,"r",(function(){return M})),n.d(t,"K",(function(){return T})),n.d(t,"D",(function(){return C})),n.d(t,"z",(function(){return P})),n.d(t,"N",(function(){return k})),n.d(t,"B",(function(){return A})),n.d(t,"M",(function(){return N})),n.d(t,"E",(function(){return I})),n.d(t,"J",(function(){return R})),n.d(t,"C",(function(){return D})),n.d(t,"F",(function(){return L})),n.d(t,"I",(function(){return F})),n.d(t,"G",(function(){return U})),n.d(t,"H",(function(){return B})),n.d(t,"L",(function(){return z})),n.d(t,"A",(function(){return q}));n("./MapStore2/web/client/api/GeoStoreDAO.js");var r="MAPS_LIST_LOADED",o="MAPS_LIST_LOADING",s="MAPS_LIST_LOAD_ERROR",i="MAPS_GET_MAP_RESOURCES_BY_CATEGORY",a="MAPS_LOAD_MAP",u="MAP_UPDATING",l="MAP_CREATED",c="MAP_DELETING",d="MAP_DELETED",f="ATTRIBUTE_UPDATED",p="THUMBNAIL_ERROR",h="MAP_ERROR",m="SAVING_MAP",b="PERMISSIONS_LIST_LOADING",y="MAPS_SEARCH_TEXT_CHANGED",v="MAPS:SEARCH_FILTER_CHANGED",_="MAPS:SET_SEARCH_FILTER",j="MAPS:SEARCH_FILTER_CLEAR_ALL",g="MAPS:LOAD_CONTEXTS",x="MAPS:SET_CONTEXTS",w="MAPS:LOADING",S="METADATA_CHANGED",O="MAPS:DELETE_MAP",E="SAVE_MAP_RESOURCE",M="MAPS:RELOAD_MAPS";function T(e,t){return{type:o,searchText:e,params:t}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,limit:12};return{type:a,geoStoreUrl:e,searchText:t,params:n}}function P(e,t,n,r){return{type:i,map:e,searchText:t,opts:n,searchFilter:r}}function k(e){return{type:_,searchFilter:e}}function A(e,t,n,r){return{type:g,searchText:e,options:t,delayLoad:n,force:r}}function N(e){return{type:x,contexts:e}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:w,name:t,value:e}}function R(e,t,n){return{type:r,params:t,maps:e,searchText:n}}function D(e){return{type:s,error:e}}function L(e,t,n,r){return{type:l,resourceId:e,metadata:t,content:n,error:r}}function F(e){return{type:u,resourceId:e}}function U(e,t,n){return{type:d,resourceId:e,result:t,error:n}}function B(e,t,n){return{type:c,resourceId:e,result:t,error:n}}function z(e){return{type:m,metadata:e}}var q=function(){return{type:"FEATURED_MAPS:INVALIDATE"}}},"./MapStore2/web/client/actions/notifications.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";return o(o({type:i},e),{},{uid:e.uid||Date.now(),level:t})}function c(e){return{type:a,uid:e}}function d(e){return l(e,"success")}function f(e){return l(e,"error")}function p(e){return l(e,"warning")}function h(e){return l(e,"info")}function m(){return{type:u}}function b(e){return e}},"./MapStore2/web/client/actions/print.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"j",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return j})),n.d(t,"n",(function(){return g})),n.d(t,"s",(function(){return x})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return O}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function s(e){return(s="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)}var i="PRINT_CAPABILITIES_LOADED",a="PRINT_CAPABILITIES_ERROR",u="SET_PRINT_PARAMETER",l="CONFIGURE_PRINT_MAP",c="CHANGE_PRINT_ZOOM_LEVEL",d="CHANGE_MAP_PRINT_PREVIEW",f="PRINT_SUBMITTING",p="PRINT_ERROR",h="PRINT_CREATED",m="PRINT_CANCEL";function b(){return{type:f}}function y(){return{type:m}}function v(e){return{type:a,error:e}}function _(e){return{type:p,error:e}}function j(e,t){return function(n){return o.a.post(e,t).then((function(e){if("object"===s(e.data))n(function(e){return{type:h,url:e}}(e.data&&e.data.getURL));else try{JSON.parse(e.data)}catch(e){n(_("Error on reading print result: "+e.data))}})).catch((function(e){n(_("Error on printing: "+e.data))}))}}function g(e){return function(t){return o.a.get(e).then((function(n){if("object"===s(n.data))t((r=n.data,{type:i,capabilities:r}));else try{JSON.parse(n.data)}catch(n){t(v("Print configuration broken ("+e+"): "+n.data))}var r})).catch((function(n){t(v("Print configuration not available ("+e+"): "+n.data))}))}}function x(e,t){return{type:u,name:e,value:t}}function w(e,t,n,r,o,s,i){return{type:l,center:e,zoom:t,scaleZoom:n,scale:r,layers:o,projection:s,currentLocale:i}}function S(e,t){return{type:c,zoom:e,scale:t}}function O(e,t,n,r,o,s){return{type:d,center:e,zoom:t,bbox:n,size:r,mapStateSource:o,projection:s}}},"./MapStore2/web/client/actions/security.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return c}));n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/web/client/utils/SecurityUtils.js"),n("./MapStore2/web/client/actions/maps.js"),n("./MapStore2/web/client/utils/ConfigUtils.js");var r="LOGIN_SUCCESS",o="LOGIN_FAIL",s="RESET_ERROR",i="CHANGE_PASSWORD_SUCCESS",a="CHANGE_PASSWORD_FAIL",u="LOGOUT",l="REFRESH_SUCCESS",c="SESSION_VALID"},"./MapStore2/web/client/api/GeoStoreDAO.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/uuid/v1.js"),a=n.n(i),u=n("./node_modules/xml2js/lib/xml2js.js"),l=n.n(u),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js");function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes||Object(r.omit)(e,["name","description","id"]),n=Object.keys(t).map((function(e){return""+e+""+t[e]+"STRING"})),o="";return n.length>0&&(o=""+n.join("")+""),o},w=function(e){return e?"true":"false"},S={mapsError:function(e){return 403===e.status||404===e.status||409===e.status||500===e.status?{title:"map.mapError.errorTitle",message:"map.mapError.error"+e.status}:{title:"map.mapError.errorTitle",message:"map.mapError.errorDefault"}}};Object(p.i)("geostore",v({},S));var O={createAttributeList:x,generateMetadata:g,authProviderName:"geostore",addBaseUrl:function(e){return s()({},e,{baseURL:e&&e.baseURL||f.default.getDefaults().geoStoreUrl})},getData:function(e,t){var n="data/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getResource:function(e,t){return d.a.get("resources/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourceIdByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t,this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data.Resource.id")}))},getResourceDataByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t+"/data",this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data")}))},getShortResource:function(e,t){return d.a.get("extjs/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourcesByCategory:function(e,t,n){var r="extjs/search/category/"+e+"/*"+(t||"*")+"*/thumbnail,details,featured";return d.a.get(r,this.addBaseUrl(n)).then((function(e){return e.data}))},createCategory:function(e){return d.a.post("categories","".concat(e,""),this.addBaseUrl({headers:{"Content-Type":"application/xml"}})).then((function(e){return e.data}))},getUserDetails:function(e,t,n){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({auth:{username:e,password:t},params:{includeattributes:!0}},n))).then((function(e){return e.data}))},login:function(e,t,n){var o,s=this;return d.a.post("session/login",null,this.addBaseUrl(Object(r.merge)(e&&t?{auth:{username:e,password:t}}:{},n))).then((function(e){return o=e.data,d.a.get("users/user/details",s.addBaseUrl(Object(r.merge)({headers:{Authorization:"Bearer "+e.data.access_token},params:{includeattributes:!0}},n)))})).then((function(e){return v(v({},e.data),o)}))},changePassword:function(e,t,n){return d.a.put("users/user/"+e.id,""+t+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},updateResourceAttribute:function(e,t,n,o,s){return d.a.put("resources/resource/"+e+"/attributes/",{restAttribute:{name:t,value:n}},this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/json"}},s)))},getResourceAttribute:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.a.get("resources/resource/"+e+"/attributes/"+t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},getResourceAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.a.get("resources/resource/"+e+"/attributes",this.addBaseUrl(v({headers:{Accept:"application/json"}},t))).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data;return t})).then((function(e){return Object(r.castArray)(Object(r.get)(e,"AttributeList.Attribute")||[])})).then((function(e){return e||[]}))},getResourcePermissions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return O.getPermissions(e,t).then((function(e){return Object(r.castArray)(n?Object(r.get)(e,"SecurityRuleList.SecurityRule"):e)})).then((function(e){return e&&e[0]&&""!==e[0]?e:[]}))},putResourceMetadata:function(e,t,n,o){return d.a.put("resources/resource/"+e,""+g(t,n)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},putResourceMetadataAndAttributes:function(e,t,n){return d.a.put("resources/resource/"+e,""+g(t.name,t.description)+x(t)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},putResource:function(e,t,n){return d.a.put("data/"+e,t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"string"==typeof t?"text/plain; charset=utf-8":'application/json; charset=utf-8"'}},n)))},writeSecurityRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+(Object(r.castArray)(e.SecurityRule)||[]).map((function(e){if(e.canRead||e.canWrite){if(e.user)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.user.id||"")+""+(e.user.name||"")+"";if(e.group)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.group.id||"")+""+(e.group.groupName||"")+""}return""})).join("")+""},updateResourcePermissions:function(e,t){var n=O.writeSecurityRules(t.SecurityRuleList);return d.a.post("resources/resource/"+e+"/permissions",n,this.addBaseUrl({headers:{"Content-Type":"application/xml"}}))},createResource:function(e,t,n,o){var s=e.name,i=e.description||"",a=x(e);return d.a.post("resources/",""+g(s,i)+""+(n||"")+""+a+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},deleteResource:function(e,t){return d.a.delete("resources/resource/"+e,this.addBaseUrl(Object(r.merge)({},t)))},getUserGroups:function(e){return d.a.get("usergroups/",this.addBaseUrl(e)).then((function(e){return e.data}))},getPermissions:function(e,t){var n="resources/resource/"+e+"/permissions";return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getAvailableGroups:function(e){return e&&"ADMIN"===e.role?d.a.get("usergroups/?all=true&users=false",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return function(e){if(!e||!e.UserGroupList||!e.UserGroupList.UserGroup)return[];var t=function(e){return Object(r.pick)(e,["id","groupName","description"])};return Object(r.isArray)(e.UserGroupList.UserGroup)?e.UserGroupList.UserGroup.filter((function(e){return!!e.id})).map(t):[t(e.UserGroupList.UserGroup)]}(e.data)})):d.a.get("users/user/details",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return(t=e.data)&&t.User&&t.User.groups&&t.User.groups.group&&Object(r.isArray)(t.User.groups.group)?t.User.groups.group.filter((function(e){return!!e.id})).map((function(e){return Object(r.pick)(e,["id","groupName","description"])})):Object(r.has)(t.User.groups.group,"id","groupName")?[t.User.groups.group]:[];var t}))},getUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/users"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{params:{includeattributes:!0}},n="users/user/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},updateUser:function(e,t,n){var r="users/user/"+e,o=s()({},t);return""===o.newPassword&&delete o.newPassword,d.a.put(r,{User:o},this.addBaseUrl(n)).then((function(e){return e.data}))},createUser:function(e,t){return d.a.post("users/",{User:O.utils.initUser(e)},this.addBaseUrl(t)).then((function(e){return e.data}))},deleteUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="users/user/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroups:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/groups"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){var t=e.data.UserGroup,n=t&&t.restUsers&&t.restUsers.User;return v(v({},t),{},{users:n&&(Array.isArray(n)?n:[n])||[]})}))},createGroup:function(e,t){var n;return d.a.post("usergroups/",{UserGroup:v({},e)},this.addBaseUrl(t)).then((function(r){return n=r.data,O.updateGroupMembers(v(v({},e),{},{id:n}),t)})).then((function(){return n}))},updateGroupMembers:function(e,t){var n=this;if(e.newUsers){var o=e.users||e.restUsers&&e.restUsers.User||[],s=(o=Array.isArray(o)?o:[o]).filter((function(t){return Object(r.findIndex)(e.newUsers,(function(e){return e.id===t.id}))<0})),i=e.newUsers.filter((function(e){return Object(r.findIndex)(o,(function(t){return t.id===e.id}))<0})),a=s.map((function(r){return function(){return n.removeUserFromGroup(r.id,e.id,t)}})),u=i.map((function(t){return function(){return n.addUserToGroup(t.id,e.id)}}),t),l=[].concat(h(a.map((function(e){return e.call(n)}))),h(u.map((function(e){return e()}))));return d.a.all(l).then((function(){return v(v({},e),{},{newUsers:null,restUsers:{User:e.newUsers},users:e.newUsers})}))}return new Promise((function(t){t(v({},e))}))},deleteGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},addUserToGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.post(r,null,this.addBaseUrl(n))},removeUserFromGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.delete(r,this.addBaseUrl(n))},verifySession:function(e){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({params:{includeattributes:!0}},e))).then((function(e){return e.data}))},refreshToken:function(e,t,n){var r="session/refresh/"+e+"/"+t;return d.a.post(r,null,this.addBaseUrl(n)).then((function(e){return e.data}))},searchListByAttributes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/extjs/search/list",r=j.buildObject(e);return d.a.post(n,r,O.addBaseUrl(v(v({},t),{},{headers:{"Content-Type":"application/xml",Accept:"application/json"}}))).then((function(e){return e.data}))},utils:{initUser:function(e){var t=s()({},e);t.newPassword&&(t.password=t.newPassword);var n={name:"UUID",value:a()()};return t.attribute=t.attribute&&t.attribute.length>0?[].concat(h(t.attribute),[n]):[n],t}},errorParser:S};t.a=O},"./MapStore2/web/client/api/media/index.js":function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"create",(function(){return b}));var o={};n.r(o),n.d(o,"load",(function(){return O})),n.d(o,"getData",(function(){return E}));var s=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/uuid/index.js"),u=n.n(a),l=n("./MapStore2/web/client/actions/geostory.js"),c=n("./MapStore2/web/client/selectors/geostory.js"),d=n("./MapStore2/web/client/selectors/mediaEditor.js"),f=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),p=function(e){var t=e.store;return function(e){var n=e.mediaType,r=e.source,o=e.data;return s.Observable.of(u()()).do((function(e){return t.dispatch(Object(l.E)(e,n,o))})).map((function(e){return{id:e,mediaType:n,data:o,source:r}}))}},h=function(e){var t=e.store;return function(e){var n=e.mediaType,r=e.params,o=Object(c.t)(t.getState()).length?Object(i.groupBy)(Object(c.t)(t.getState()),"type"):{},a=r.page,u=r.pageSize,l=a*u,d=r.q||"",p=Object(f.n)(o[n]||[],d);return s.Observable.of({resources:p.filter((function(e,t){return t>=0&&t0&&void 0!==arguments[0]?arguments[0]:{};return{data:w(w({},e),{},{thumbnail:decodeURIComponent(e.thumbnail||"")}),id:u()(),type:"map"}})),totalCount:n||0})})).catch((function(){return s.Observable.of(o)}))},E=function(e){var t=e.selectedItem;return t&&"map"===t.type&&t.data&&t.data.id&&!t.data.layers?Object(g.d)(t.data.id).switchMap((function(e){var t,n=e.id,r=e.data,o=e.attributes,i=e.creation,a=e.canCopy,u=e.canDelete,l=e.canEdit,c=e.name,d=e.description,f=r,p=f.version?Object(j.normalizeConfig)(f.map):Object(j.convertFromLegacy)(f),h=Object(_.excludeGoogleBackground)(p.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e}))),m=w(w({},p&&p.map||{}),{},{id:n,groups:p&&p.groups||[],layers:null!=p&&null!==(t=p.map)&&void 0!==t&&t.sources?h.map((function(e){var t=Object(_.extractTileMatrixFromSources)(p.map.sources,e);return w(w({},e),t)})):h});return s.Observable.of(w(w(w({},m),o),{},{id:n,creation:i,canCopy:a,canDelete:u,canEdit:l,name:c,description:d,thumbnail:decodeURIComponent(o.thumbnail||""),type:"map"}))})):s.Observable.of(null)};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return"rest/geostore/data/".concat(e).concat(t)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceAttributes(e)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name;return t(n)})).map((function(e){var t=e.value;return Object(l.a)(t)})).filter((function(e){return!Object(a.isNil)(e)}))}))},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.concat(t)},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return t?o.Observable.defer((function(){return n.updateResourcePermissions(e,{SecurityRuleList:{SecurityRule:t}})})):o.Observable.empty()},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return"NODATA"===n.data?o.Observable.fromPromise(i.deleteResource(r)).catch((function(){return o.Observable.of("DUMMY")})).switchMap((function(){return o.Observable.fromPromise(i.updateResourceAttribute(e,t,"NODATA"))})):o.Observable.forkJoin([i.putResource(r,n.data).switchMap((function(){return o.Observable.defer((function(){return i.updateResourceAttribute(e,t,v(r,n.tail))}))}))].concat(h(s?[g(r,s,i)]:[])))},w=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return"NODATA"!==n.data?o.Observable.defer((function(){return s.createResource({name:"".concat(e,"-").concat(t,"-").concat(i()())},n.data,n.category)})).pluck("data").switchMap((function(i){return o.Observable.forkJoin([o.Observable.defer((function(){return s.updateResourceAttribute(e,t,v(i,n.tail))}))].concat(h(r?[g(i,r,s)]:[]))).map((function(){return i}))})):o.Observable.of(-1)},S=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return o.Observable.defer((function(){return s.getResourceAttributes(e)})).switchMap((function(o){var i,u=null===(i=Object(a.find)(o,{name:t}))||void 0===i?void 0:i.value;return Object(l.a)(u)?x(e,t,n,Object(l.a)(u),r,s):w(e,t,n,r,s)})).catch((function(o){return w(e,t,n,r,s,o)}))},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.a;return _(e,(function(e){return!Object(a.includes)(Object.keys(t),e)})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?o.Observable.of([]):o.Observable.forkJoin(e.map((function(e){return g(e,n,r)})))}))},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.includeAttributes,r=void 0===n||n,s=t.withData,i=void 0===s||s,a=t.withPermissions,l=void 0!==a&&a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.forkJoin([o.Observable.defer((function(){return c.getShortResource(e)})).pluck("ShortResource")].concat(h(r?[o.Observable.defer((function(){return c.getResourceAttributes(e)}))]:[]),h(i?[o.Observable.defer((function(){return c.getData(e)}))]:[]),h(l?[o.Observable.defer((function(){return c.getResourcePermissions(e,{},!0)}))]:[]))).map((function(e){var t=p(e,4),n=t[0],r=t[1],o=t[2],s=t[3];return d(d({},n),{},{attributes:(r||[]).reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{}),data:o,permissions:s})}))},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceIdByName(e,t)}))},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceDataByName(e,t)}))},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?"*":t,r=e.category,s=e.options,i=void 0===s?{params:{start:0,limit:10},includeAttributes:!1,withData:!1,withPermission:!1}:s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return a.getResourcesByCategory(r,n,i)})).map((function(e){var t=e.results,n=void 0===t?[]:t,r=e.totalCount,o=void 0===r?0:r,s=i.includeAttributes,u=i.withData,l=i.withPermission;return s||u||l?{totalCount:o,results:n.map((function(e){var t=e.id;return E(t,i,a)}))}:{totalCount:o,results:n}}))},P=function(e){var t=e.data,n=e.category,r=e.metadata,s=e.permission,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return l.createResource(r,t,n)})).pluck("data").switchMap((function(e){return o.Observable.defer((function(){return l.getResourcePermissions(e)})).map((function(e){return j(e,s)})).switchMap((function(t){return g(e,t,l).map((function(){return{id:e,permission:t}}))}))})).switchMap((function(e){var t=e.id,n=e.permission;return Object.keys(a).length>0?o.Observable.forkJoin(Object.keys(a).filter((function(e){return a[e].data&&"NODATA"!==a[e].data})).map((function(e){return w(t,e,a[e],n,l)}))).map((function(){return t})):o.Observable.of(t)}))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return t.createCategory(e)}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.data,r=e.permission,s=e.metadata,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a,c=Object.keys(a);return o.Observable.forkJoin([o.Observable.defer((function(){return l.putResourceMetadataAndAttributes(t,s)})).switchMap((function(e){return n?o.Observable.defer((function(){return l.putResource(t,n)})):o.Observable.of(e)})).switchMap((function(e){return r?o.Observable.defer((function(){return g(t,r,l)})):o.Observable.of(e)})),(c.length>0?o.Observable.forkJoin.apply(o.Observable,h(c.map((function(e){return S(t,e,a[e],r,l)})))):o.Observable.of([])).switchMap((function(){return r?o.Observable.defer((function(){return O(t,a,r,l)})):o.Observable.of(-1)}))]).map((function(){return t}))},N=function(e){var t=e.id,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.deleteLinkedResources,s=void 0===r||r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return(s?_(t,(function(){return!0}),i):o.Observable.of([])).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return o.Observable.forkJoin([t].concat(h(e)).map((function(e){return i.deleteResource(e)})))}))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.searchListByAttributes(e,t)})).switchMap((function(e){if(!e||!Object(a.get)(e,"ExtResourceList.Resource"))return o.Observable.of({results:[],totalCount:0});var r=Object(a.get)(e,"ExtResourceList.Resource",[]),s=(Object(a.isArray)(r)?r:[r]).map((function(e){return d(d({},Object(a.omit)(e,"Attributes")),{},{attributes:(t=e,n=Object(a.get)(t,"Attributes.attribute"),r=Object(a.isArray)(n)&&n||Object(a.isObject)(n)&&[n],r&&r.reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{})||{})});var t,n,r}));return(t.withPermissions?o.Observable.forkJoin(s.map((function(e){return o.Observable.defer((function(){return n.getResourcePermissions(e.id,{},!0)})).map((function(t){return d(d({},e),{},{permissions:t})}))}))):o.Observable.of(s)).map((function(t){return{results:t,totalCount:Object(a.get)(e,"ExtResourceList.ResourceCount")}}))}))},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return s.updateResourceAttribute(t,n,r)})).switchMap((function(){return o.Observable.of(t)}))},D=n("./MapStore2/web/client/utils/ConfigUtils.js");n.d(t,"a",(function(){return F})),n.d(t,"g",(function(){return U})),n.d(t,"d",(function(){return B})),n.d(t,"b",(function(){return z})),n.d(t,"e",(function(){return q})),n.d(t,"h",(function(){return W})),n.d(t,"i",(function(){return G})),n.d(t,"f",(function(){return V}));var L={geostore:r},F=function(e,t){L[e]=t},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"geostore";y.api=e},B=function(){var e;return(e=y.getApi()).getResource.apply(e,arguments)},z=function(){var e;return(e=y.getApi()).createResource.apply(e,arguments)},q=function(){var e;return(e=y.getApi()).getResources.apply(e,arguments)},W=function(){var e;return(e=y.getApi()).updateResource.apply(e,arguments)},G=function(){var e;return(e=y.getApi()).updateResourceAttribute.apply(e,arguments)},V=function(){var e;return(e=y.getApi()).searchListByAttributes.apply(e,arguments)};y={api:"geostore",addApi:F,setApi:U,getApi:function(){return L[D.default.getConfigProp("persistenceApi")||y.api]},getResource:B,getResourceIdByName:function(){var e;return(e=y.getApi()).getResourceIdByName.apply(e,arguments)},getResourceDataByName:function(){var e;return(e=y.getApi()).getResourceDataByName.apply(e,arguments)},createResource:z,createCategory:function(){var e;return(e=y.getApi()).createCategory.apply(e,arguments)},getResources:q,updateResource:W,updateResourceAttribute:G,deleteResource:function(){var e;return(e=y.getApi()).deleteResource.apply(e,arguments)},searchListByAttributes:V};t.c=y},"./MapStore2/web/client/components/I18N/Localized.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-intl/lib/index.es.js");function u(e){return(u="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,o){return"string"==typeof t[o]?c(v({},n+o,t[o]),r):c(c({},e.flattenMessages(t[o],n+o+".")),r)}),{})})),e}return t=s,(n=[{key:"getChildContext",value:function(){return{locale:this.props.locale,messages:this.props.messages}}},{key:"render",value:function(){var e=this.props.children;return this.props.messages&&this.props.locale?("function"==typeof e&&(e=e()),i.a.createElement(a.IntlProvider,{key:this.props.locale,locale:this.props.locale,messages:this.flattenMessages(this.props.messages)},e)):this.props.loadingError?i.a.createElement("div",{className:"loading-locale-error"},this.props.loadingError):null}}])&&f(t.prototype,n),r&&f(t,r),s}(i.a.Component);v(_,"propTypes",{locale:o.a.string,messages:o.a.object,loadingError:o.a.string}),v(_,"childContextTypes",{locale:o.a.string,messages:o.a.object}),t.a=_},"./MapStore2/web/client/components/I18N/Message.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/react-intl/lib/index.es.js"),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function u(e){return(u="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 c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=function(){var e=t.targetId,r=void 0===e?"container":e,s=t.initialState,a=void 0===s?{defaultState:{},mobile:{}}:s,d=t.appReducers,f=void 0===d?{}:d,p=t.appEpics,h=void 0===p?{}:p,m=t.rootReducerFunc,b=u.default.bind(null,{initialState:a,appReducers:f,appEpics:h,rootReducerFunc:m}),y=n||l.a;i.a.render(o.a.createElement(y,c({},t,{appStore:b})),document.getElementById(r))};e.Intl?r():Object(a.a)(r)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./MapStore2/web/client/components/development/Debug.jsx":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/url/url.js"),i=n.n(s);function a(e){return(a="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0){var n=a.e.mapPluginsPosition(t),r=n.bodyPlugins,s=v(n,["bodyPlugins"]),i=Object.keys(s).reduce((function(t,n){return j(j({},t),{},C({},n,e.renderPlugins(s[n])))}),{});return o.a.createElement(P,g({id:this.props.id,className:this.props.className,style:this.props.style,component:this.props.component},i),this.renderPlugins(r))}return null}}])&&w(t.prototype,n),r&&w(t,r),i}(o.a.Component);C(k,"propTypes",{mode:i.a.string,params:i.a.object,plugins:i.a.object,pluginsConfig:i.a.oneOfType([i.a.object,i.a.array]),id:i.a.string,className:i.a.string,component:i.a.any,style:i.a.object,pluginsState:i.a.object,monitoredState:i.a.object,defaultMode:i.a.string,onPluginLoaded:i.a.func,onPluginsLoaded:i.a.func}),C(k,"contextTypes",{store:i.a.object}),C(k,"childContextTypes",{locale:i.a.string,messages:i.a.object,plugins:i.a.object,pluginsConfig:i.a.array,loadedPlugins:i.a.object}),C(k,"defaultProps",{mode:"desktop",defaultMode:"desktop",component:"div",params:{},plugins:{},pluginsConfig:{},id:"plugins-container",className:"plugins-container",style:{},pluginsState:{},monitoredState:{},onPluginLoaded:function(){},onPluginsLoaded:function(){}}),t.default=k},"./MapStore2/web/client/components/theme/Theme.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-side-effect/lib/index.js"),u=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/selectors/version.js"),d=n("./MapStore2/node_modules/lodash/lodash.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.a:var n=t.id,a=t.path,d=t.position,m=t.element,b=Object(s.r)("currentStory.".concat(a),e),y=Object(r.get)(e,b,[]),v=f(y,d),_=y.slice();return _.splice(v,0,u({id:n},m)),Object(o.e)(b,_,e);case i.b:var j=t.id,g=t.mediaType,x=t.data;return Object(o.e)("currentStory.resources",Object(r.uniqBy)([{id:j,type:g,data:x}].concat(c(e.currentStory&&e.currentStory.resources||[])),"id"),e);case i.c:return Object(o.e)("mode",t.mode,e);case i.e:var w=t.id,S=t.mediaType,O=t.data,E=Object(o.b)("currentStory.resources",{id:w,type:S,data:O},{id:w},e);return S===s.e.MAP&&e.currentStory.sections.reduce((function(e,t){return[].concat(c(e),c(p(w,"sections[",t)))}),[]).map((function(t){var n=Object(s.r)("currentStory.".concat(t,".map"),e);E=Object(o.e)(n,void 0,E)})),E;case i.k:var M=t.id,T=t.mediaType,C=Object(o.a)("currentStory.resources",{id:M},e);return e.currentStory.sections.reduce((function(e,t){return[].concat(c(e),c(p(M,"sections[",t)))}),[]).map((function(t){var n=Object(s.r)("currentStory.".concat(t,".resourceId"),e);if(C=Object(o.f)(n,C),T===s.e.MAP){var r=Object(s.r)("currentStory.".concat(t,".map"),e);C=Object(o.f)(r,C)}})),C;case i.g:return Object(o.e)("loading"===t.name?"loading":"loadFlags.".concat(t.name),t.value,Object(o.e)("loading",t.value,e));case i.j:var P=t.path,k=Object(s.r)("currentStory.".concat(P),e),A=c(k),N=A.pop(),I=Object(r.get)(e,A);return Object(r.isArray)(I)?(Object(r.isString)(N)&&(N=parseInt(N,10)),Object(o.e)(A,[].concat(c(I.slice(0,N)),c(I.slice(N+1))),e)):Object(o.f)(k,e);case i.q:var R,D,L,F,U,B=e.defaultSettings||{},z=t.story.settings||B,q=(null===(R=z)||void 0===R||null===(D=R.theme)||void 0===D?void 0:D.fontFamilies)||[],W=null===(L=e.currentStory)||void 0===L||null===(F=L.settings)||void 0===F||null===(U=F.theme)||void 0===U?void 0:U.fontFamilies;return W&&W.length>0&&(z=Object(o.e)("theme.fontFamilies",Object(r.uniqBy)([].concat(c(W),c(q)),"family"),z)),Object(o.e)("currentStory",u(u({},t.story),{},{settings:z}),e);case i.o:return Object(o.e)("selectedCard",e.selectedCard===t.card?"":t.card,e);case i.p:var G=t.control,V=t.value;return Object(o.e)("controls.".concat(G),V,e);case i.s:var H=t.resource,K=e.currentStory&&e.currentStory.settings||{};return Object(o.d)(Object(o.e)("resource",H),Object(o.e)("currentStory.settings.storyTitle",K.storyTitle||H.name))(e);case i.m:case i.d:return Object(o.f)("errors.save",e);case i.n:return Object(o.e)("errors.save",Object(r.castArray)(t.error),e);case i.v:return Object(o.e)("isCollapsed",!e.isCollapsed,e);case i.x:var $=Object(r.get)(e,"currentStory.settings.".concat(t.option));return Object(o.e)("currentStory.settings.".concat(t.option),!$,e);case i.y:var Y=!e.isSettingsEnabled,X=e.currentStory&&e.currentStory.settings||{};return Object(o.d)(Object(o.e)("isSettingsEnabled",Y),Object(o.e)("oldSettings",Y?X:{}),Object(o.e)("currentStory.settings",Y?u({},X):t.withSave?X:e.oldSettings))(e);case i.z:var J=t.path,Q=t.mode,Z=t.element,ee=Object(s.r)("currentStory.".concat(J),e),te=Object(r.get)(e,ee);return Object(r.isPlainObject)(te)&&Object(r.isPlainObject)(Z)&&"merge"===Q&&(Z=u(u({},te),Z)),Object(r.isArray)(te)&&Object(r.isArray)(Z)&&"merge"===Q&&(Z=[].concat(c(te),c(Z))),Object(o.e)(ee,Z,e);case i.C:return Object(o.e)("currentStory.settings.".concat(t.prop),t.value,e);case i.A:if(t.columnId){var ne=Object(r.find)(e.currentStory.sections,(function(e){return Object(r.find)(e.contents,{id:t.columnId})}));return ne&&Object(r.find)(ne.contents,{id:t.columnId})?Object(o.e)("currentPage",u(u({},e.currentPage),{},{columns:u(u({},e.currentPage.columns),{},l({},ne.id,t.columnId))}),e):e}return Object(o.e)("currentPage",u(u({},e.currentPage),{},{sectionId:t.sectionId}),e);case i.w:var re=t.status,oe=t.target,se=t.selector,ie=void 0===se?"":se,ae=t.hideContent,ue=void 0!==ae&&ae,le=t.path,ce=re?{target:oe,selector:ie,hideContent:ue,path:le}:void 0;return Object(o.e)("focusedContent",ce,e);case i.r:return Object(o.e)("pendingChanges",t.value,e);case i.t:return Object(o.e)("updateUrlOnScroll",t.value,e);case i.B:return Object(o.e)("mediaEditorSettings",t.mediaEditorSettings,e);default:return e}}},"./MapStore2/web/client/reducers/maptype.js":function(e,t,n){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAP_TYPE_CHANGED":return{mapType:t.mapType};default:return e}}},"./MapStore2/web/client/reducers/security.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/security.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=(n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/node_modules/lodash/lodash.js"));var i=n("./MapStore2/web/client/utils/SecurityUtils.js"),a=n("./node_modules/object-assign/index.js"),u=n.n(a);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{user:null,errorCause:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"USERMANAGER_UPDATE_USER":return e.user&&t.user&&e.user.id===t.user.id?u()({},e,{user:Object(s.cloneDeep)(t.user)}):e;case o.c:return"ResetPassword"===t.control&&"enabled"===t.property?u()({},e,{passwordChanged:!1,passwordError:null}):e;case r.d:var n=Object(i.getUserAttributes)(t.userDetails.User),a=Object(s.head)(n.filter((function(e){return"uuid"===e.name.toLowerCase()}))),l=new Date/1e3|0;return u()({},e,{user:t.userDetails.User,token:t.userDetails&&t.userDetails.access_token||a&&a.value,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?l+t.userDetails.expires:l+172800,authHeader:t.authHeader,loginError:null});case r.f:var c=new Date/1e3|0;return u()({},e,{token:t.userDetails&&t.userDetails.access_token,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?c+t.userDetails.expires:c+172800});case r.c:return u()({},e,{loginError:t.error});case r.g:return u()({},e,{loginError:null});case r.e:return u()({},e,{user:null,token:null,refresh_token:null,expires:null,authHeader:null,loginError:null});case r.b:return u()({},e,{user:u()({},e.user,u()({},t.user,{date:(new Date).getTime()})),authHeader:t.authHeader,passwordChanged:!0,passwordError:null});case r.a:return u()({},e,{passwordError:t.error,passwordChanged:!1});case r.h:return u()({},e,{user:t.userDetails.User,loginError:null});default:return e}}},"./MapStore2/web/client/selectors/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"p",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"o",(function(){return j})),n.d(t,"m",(function(){return g})),n.d(t,"x",(function(){return x})),n.d(t,"v",(function(){return S})),n.d(t,"u",(function(){return O})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return M})),n.d(t,"r",(function(){return T})),n.d(t,"q",(function(){return C})),n.d(t,"y",(function(){return P})),n.d(t,"c",(function(){return k})),n.d(t,"k",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"f",(function(){return I})),n.d(t,"w",(function(){return R})),n.d(t,"l",(function(){return D})),n.d(t,"n",(function(){return L})),n.d(t,"z",(function(){return F})),n.d(t,"d",(function(){return U})),n.d(t,"h",(function(){return B}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),s=n("./MapStore2/web/client/selectors/security.js"),i=n("./MapStore2/web/client/selectors/router.js");function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},g=function(e){return Object(r.get)(e,"geostory.isSettingsEnabled",!1)},x=function(e){var t=Object(r.get)(h(e),"settings",{}),n=_(e).filter((function(e){return e.type===o.h.IMMERSIVE})),s=t.checked||[],i=Object(r.uniq)(s.map((function(e){return Object(o.o)(n,e)})).filter((function(e){return e})));return c(c({},t),{},{expanded:i})},w=function(e){return Object(r.get)(x(e),"checked",[]).reduce((function(e,t){return c(c({},e),{},d({},t,!0))}),{})},S=function(e){return!Object(r.isEqual)(Object(r.get)(h(e),"settings",{}),function(e){return Object(r.get)(e,"geostory.oldSettings",{})}(e))},O=function(e){return Object(r.get)(e,"geostory.selectedCard","")},E=function(e){return function(t){return f("".concat(e,".resourceId"))(t)}},M=function(e){return Object(r.get)(h(e),"resources",[])},T=function(e){return function(t){return Object(r.find)(M(t),{id:e})}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withImmersiveSection,n=void 0!==t&&t,r=e.includeAlways,s=void 0===r||r;return function(e){var t=_(e),r=w(e);return t.reduce((function(e,t){if(t.type===o.h.TITLE&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.PARAGRAPH&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.BANNER&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.IMMERSIVE){var i=t.contents&&t.contents.reduce((function(e,t){return s||r[t.id]?[].concat(a(e),[c(c({},t),{},{sectionId:e.id})]):e}),[])||[];return n?[].concat(a(e),[t],a(i)):[].concat(a(e),a(i))}return e}),[])}},P=function(e){return C({includeAlways:!0})(e).length},k=function(e){return Object(r.findIndex)(C({includeAlways:!0})(e),{id:m(e).columns&&m(e).columns[m(e).sectionId]?m(e).columns[m(e).sectionId]:m(e).sectionId||""})},A=function(e){return void 0!==Object(r.get)(e,"geostory.focusedContent.target")},N=function(e){return Object(r.get)(e,"geostory.focusedContent")},I=function(e){return f(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},R=function(e){return _(e).reduce((function(e,t){if(t.type===o.h.IMMERSIVE){var n=t.contents&&t.contents.map((function(e){return{label:e.title||"",value:e.id}}))||[];return[].concat(a(e),[{label:t.title||"",value:t.id,children:n}])}return[].concat(a(e),[{label:t.title||"",value:t.id}])}),[])},D=function(e,t){return!!Object(r.find)(_(e),(function(e){return function e(t,n){var o=n.contents,s=n.background;return n.resourceId===t||(!(!s||s.resourceId!==t)||!!o&&!!Object(r.find)(o,(function(n){return e(t,n)})))}(t,e)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)(e).includes("geostory/shared")},F=function(e){return Object(r.get)(e,"geostory.updateUrlOnScroll",!1)},U=function(e){return Object(r.get)(e,"geostory.currentStory.settings.theme.fontFamilies",[])},B=function(e){return Object(r.get)(e,"geostory.mediaEditorSettings")}},"./MapStore2/web/client/selectors/mediaEditor.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"l",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"q",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"g",(function(){return v})),n.d(t,"m",(function(){return _})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return g})),n.d(t,"n",(function(){return x}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),s=function(e){return Object(r.get)(e,"mediaEditor.open")},i=function(e){return Object(r.get)(e,"mediaEditor.saveState.editing",!1)},a=function(e){return Object(r.get)(e,"mediaEditor.saveState.addingMedia",!1)},u=function(e){return Object(r.get)(e,"mediaEditor.saveState")},l=function(e){return Object(r.get)(e,"mediaEditor.settings.sourceId")},c=function(e){return Object(r.get)(e,"mediaEditor.settings.mediaType")},d=function(e){return Object(r.get)(e,"mediaEditor.settings.sources")},f=function(e){return Object(r.get)(function(e){return Object(r.get)(e,"mediaEditor.settings.mediaTypes")}(e),"".concat(c(e),".sources"),[])},p=function(e){return Object(r.get)(d(e),l(e),{})},h=function(e){return f(e).map((function(t){return{id:t,name:(n=t,function(e){return Object(r.get)(d(e),"".concat(n),{})})(e).name};var n}))},m=function(e){return Object(r.get)(e,'mediaEditor.data["'.concat(c(e),'"]["').concat(l(e),'"].resultData'))},b=function(e){return Object(r.get)(e,'mediaEditor.data["'.concat(c(e),'"]["').concat(l(e),'"].params'))},y=function(e){return Object(r.get)(m(e),"resources")},v=function(e){return Object(r.get)(m(e),"totalCount")},_=function(e){return Object(r.get)(e,"mediaEditor.selected")},j=function(e){return Object(r.get)(e,"mediaEditor.loadingSelected")},g=function(e){return Object(r.get)(e,"mediaEditor.loadingList")},x=Object(o.a)(y,_,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Object(r.find)(e,{id:t})}))},"./MapStore2/web/client/selectors/router.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return Object(r.get)(e,"router.location.pathname")||"/"},s=function(e){return Object(r.get)(e,"router.location.search")||""}},"./MapStore2/web/client/selectors/security.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));n("./node_modules/object-assign/index.js"),n("./MapStore2/node_modules/lodash/lodash.js");var r=function(e){return e&&e.security&&e.security.user},o=function(e){return r(e)&&r(e).role},s=function(e){return e&&e.security&&e.security.user},i=function(e){return e.security&&e.security.token},a=function(e){return"ADMIN"===o(e)}},"./MapStore2/web/client/selectors/version.js":function(e,t,n){"use strict";n.r(t),n.d(t,"versionSelector",(function(){return r})),n.d(t,"validateVersion",(function(){return o}));var r=function(e){return e.version&&e.version.current||""},o=function(e){return!(!e||-1!==e.indexOf("${mapstore2.version}")||-1!==e.indexOf("no-version"))}},"./MapStore2/web/client/stores/History.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/history/index.js"),o=Object(r.createHashHistory)();t.default=o},"./MapStore2/web/client/stores/StandardStore.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/StateUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o).a.parse(window.location.href,!0).query;var i={createDebugStore:function(e,t,n,o){return Object(r.b)({rootReducer:e,state:t,middlewares:n,enhancer:o,debug:s&&s.debug&&!1})},checkForMissingPlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(t){return e[t].default}));t.length>0&&console.error("plugin not correctly loaded: ",t)}},a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=n("./node_modules/redux-observable/lib/esm/index.js"),l=n("./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js"),c=n.n(l),d=n("./node_modules/connected-react-router/esm/index.js"),f=n("./node_modules/connected-react-router/esm/middleware.js"),p=n("./MapStore2/web/client/actions/localConfig.js"),h=n("./node_modules/object-assign/index.js"),m=n.n(h),b=n("./MapStore2/web/client/utils/ConfigUtils.js").default.getDefaults();var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a:return m()({},e,t.config);default:return e}},v=n("./MapStore2/web/client/actions/locale.js");function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case v.a:return{messages:t.messages,current:t.locale};case v.b:return j(j({},e),{},{loadingError:t.error});default:return e}},w=n("./MapStore2/web/client/actions/browser.js");var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.a:return m()({},e,t.newProperties);default:return e}};function O(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=g.noRouter?null:n("./MapStore2/web/client/stores/History.js").default,E=Object(a.b)(j,T(T({},h),{},{localConfig:y,locale:x,locales:function(){return null},browser:S},!g.noRouter&&{router:Object(d.b)(w)})),M=Object(r.d)(Object(a.a)(j,T(T({},P),b))),C=g.initialState||{defaultState:{},mobile:{}},k=T(T({},l.defaultState),C.defaultState),A=T(T({},l.mobile),C.mobile),N=Object(r.e)(Object(u.b)(M)),I=function(e,t){return _({state:e,action:t,allReducers:E,mobileOverride:A})};g&&!1!==g.notify&&(o=c.a),g&&g.persist&&(g.persist.whitelist.forEach((function(e){var t=localStorage.getItem("mapstore2.persist."+e);t&&(k[e]=JSON.parse(t))})),g.onPersist&&setTimeout((function(){g.onPersist()}),0));var R=[N];if(!g.noRouter){var D=Object(f.a)(w);R=[].concat(O(R),[D])}if(t=i.createDebugStore(I,k,R,o),g&&g.persist){var L={};t.subscribe((function(){g.persist.whitelist.forEach((function(e){var n=t.getState()[e];n&&L[e]!==n&&(L[e]=n,localStorage.setItem("mapstore2.persist."+e,JSON.stringify(n)))}))}))}return t}},"./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$":function(e,t,n){var r={"./cesium/Layers":"./MapStore2/web/client/utils/cesium/Layers.js","./leaflet/Layers":"./MapStore2/web/client/utils/leaflet/Layers.js","./openlayers/Layers":"./MapStore2/web/client/utils/openlayers/Layers.js"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=s,e.exports=o,o.id="./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$"},"./MapStore2/web/client/utils/ConfigUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getConfigurationOptions",(function(){return M})),n.d(t,"cleanDuplicatedQuestionMarks",(function(){return T})),n.d(t,"getUrlWithoutParameters",(function(){return C})),n.d(t,"filterUrlParams",(function(){return P})),n.d(t,"getParsedUrl",(function(){return k})),n.d(t,"getDefaults",(function(){return A})),n.d(t,"setLocalConfigurationFile",(function(){return N})),n.d(t,"loadConfiguration",(function(){return I})),n.d(t,"getCenter",(function(){return R})),n.d(t,"setApiKeys",(function(){return D})),n.d(t,"setLayerId",(function(){return L})),n.d(t,"replacePlaceholders",(function(){return F})),n.d(t,"setUrlPlaceholders",(function(){return U})),n.d(t,"normalizeConfig",(function(){return B})),n.d(t,"getUserConfiguration",(function(){return z})),n.d(t,"getConfigUrl",(function(){return q})),n.d(t,"setupSources",(function(){return W})),n.d(t,"normalizeSourceUrl",(function(){return G})),n.d(t,"copySourceOptions",(function(){return V})),n.d(t,"setupLayers",(function(){return H})),n.d(t,"convertFromLegacy",(function(){return K})),n.d(t,"mergeConfigs",(function(){return $})),n.d(t,"getProxyUrl",(function(){return Y})),n.d(t,"getProxiedUrl",(function(){return X})),n.d(t,"getBrowserProperties",(function(){return J})),n.d(t,"getConfigProp",(function(){return Q})),n.d(t,"setConfigProp",(function(){return Z})),n.d(t,"removeConfigProp",(function(){return ee}));var r=n("./MapStore2/web/client/libs/proj4.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./node_modules/url/url.js"),u=n.n(a),l=n("./node_modules/axios/index.js"),c=n.n(l),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/object-assign/index.js"),p=n.n(f),h=n("./node_modules/es6-promise/dist/es6-promise.js"),m=n("./node_modules/ismobilejs/src/isMobile.js"),b=n.n(m);function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return(v="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 _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t2){var n=t.slice(1);return t[0]+"?"+n.join("&")}return e},C=function(e,t){var n=T(e).split("?"),r="";if(n.length>=2&&n[1]){var o=n[1].split(/[&;]/g).filter((function(e){return!!e}));o.forEach((function(e,n){var s=e.split("=");if(-1===t.indexOf(s[0].toLowerCase())){var i=n===o.length-1?"":"&";r+=s.join("=")+i}}))}return r?n[0]+"?"+r:n[0]},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(d.isNil)(e)||""===e?null:C(T(e),t)},k=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e){var r=u.a.parse(P(e,n),!0),o=null;if(Object(d.endsWith)(r.pathname,"wfs")||Object(d.endsWith)(r.pathname,"wms")||Object(d.endsWith)(r.pathname,"ows"))return o=r.pathname.replace(/(wms|ows|wfs|wps)$/,"wps"),u.a.format(p()({},r,{search:null,pathname:o},{query:p()(j({service:"WPS"},t),r.query)}))}return null},A=function(){return j({},E)},N=function(e){O=e},I=function(){return O?c.a.get(O).then((function(e){return"object"===v(e.data)&&(E=p()({},E,e.data)),j({},E)})):new h.Promise((function(e){e(j({},E))}))},R=function(e,t){var n=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,r=e.crs||t||"EPSG:4326",s="EPSG:4326"!==r?o.a.transform(new o.a.Proj(r),x,n):n;return p()({},s,{crs:"EPSG:4326"})},D=function(e){return"bing"===e.type&&(e.apiKey=E.bingApiKey),"mapquest"===e.type&&(e.apiKey=E.mapquestApiKey),e},L=function(e,t){return e.id||(e.id=e.name+"__"+t),e},F=function(e){var t=e;return(t.match(/\{.*?\}/g)||[]).forEach((function(e){var n=E[e.substring(1,e.length-1)];void 0!==n&&(t=t.replace(e,n||""))})),t},U=function(e){return e.url&&(Object(d.isArray)(e.url)?e.url=e.url.map((function(e){return F(e)})):e.url=F(e.url)),e},B=function(e){var t=e.layers,n=e.groups,r=e.plugins,o=y(e,["layers","groups","plugins"]);return o.center=R(o.center),{map:o,layers:t.map(D,e).map(L).map(U),groups:n,plugins:r}},z=function(e,t,n){return M(S,e,t,n)},q=function(e){var t=e.mapId,n=t,r=e.config;try{var o=parseInt(n,10);isNaN(o)&&(r=t,n=null)}catch(e){r=t,n=null}return M({mapId:n,config:r})},W=function(e,t){var n,r=t;for(n in t||(r=E.defaultSourceType),e)e.hasOwnProperty(n)&&(e[n].ptype||(e[n].ptype=r))},G=function(e){return e&&-1!==e.indexOf("?")?e.split("?")[0]:e},V=function(e,t){if(e.baseParams=t.baseParams,t.url){var n=u.a.parse(t.url,!0);for(var r in n.query)"REQUEST"===r.toUpperCase()&&delete n.query[r];e.baseParams=p()({},e.baseParams,n.query)}e.url=G(t.url)},H=function(e,t,n){var r,o,s,i;for(o=0;o=0?s.group===E.backgroundGroup&&(s.visibility=s.visibility||!1,r&&r.visibility?s.visibility&&(r.visibility=!1,r=s):r=s):s.visibility=!1)}r&&(r.visibility=!0)},K=function(e){var t=e.map,n=e.gsSources||e.sources,r=t.layers.filter((function(e){return n[e.source]})),o=R(t.center,t.projection),s=t.zoom,i=t.maxExtent||t.extent;return W(n,e.defaultSourceType),H(r,n,["gxp_osmsource","gxp_wmssource","gxp_googlesource","gxp_bingsource","gxp_mapquestsource","gxp_olsource"]),B({center:o,zoom:s,maxExtent:i,layers:r,projection:t.projection||"EPSG:3857"})},$=function(e,t){return e.map=t.map,e.gsSources=t.gsSources||t.sources,e},Y=function(e){return e.proxyUrl?e.proxyUrl:E.proxyUrl},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(0===e.indexOf("http")),r=!n&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(r){var o=window.location;n=r[1]===o.protocol&&r[3]===o.hostname;var s=r[4],i=o.port,a=0===o.protocol.indexOf("https")?443:80;s=""===s?a+"":s+"",i=""===i?a+"":i+"",n=n&&s===i}if(!n){var u=Y(t);if(u){var l=[];Object(d.isObject)(u)&&(l=u.useCORS||[],u=u.url);var c=l.reduce((function(t,n){return t||0===e.indexOf(n)}),!1);if(!c)return u+encodeURIComponent(e)}}return e},J=function(){var e="ActiveXObject"in window,t=e&&!document.addEventListener,n=e&&window.location.hash===!!window.MSInputMethodContext&&!!document.documentMode,r=navigator.userAgent.toLowerCase(),o=-1!==r.indexOf("webkit"),s=-1!==r.indexOf("chrome"),i=-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"),a=-1!==r.indexOf("phantom"),u=-1!==r.indexOf("android"),l=-1!==r.search("android [23]"),c=-1!==r.indexOf("gecko"),d=b.a.any,f=!window.PointerEvent&&window.MSPointerEvent,p=window.PointerEvent&&window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||f,h="devicePixelRatio"in window&&window.devicePixelRatio>1||"matchMedia"in window&&window.matchMedia("(min-resolution:144dpi)")&&window.matchMedia("(min-resolution:144dpi)").matches,m=document.documentElement,y=e&&"transition"in m.style,v="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!l,_="MozPerspective"in m.style,j="OTransition"in m.style,g=!window.L_DISABLE_3D&&(y||v||_||j)&&!a,x=!window.L_NO_TOUCH&&!a&&(p||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);return{ie:e,ie11:n,ielt9:t,webkit:o,gecko:c&&!o&&!window.opera&&!e,android:u,android23:l,chrome:s,safari:i,ie3d:y,webkit3d:v,gecko3d:_,opera3d:j,any3d:g,mobile:d,mobileWebkit:d&&o,mobileWebkit3d:d&&v,mobileOpera:d&&window.opera,touch:x,msPointer:f,pointer:p,retina:h}},Q=function(e){return E[e]},Z=function(e,t){E[e]=t},ee=function(e){delete E[e]},te={PropTypes:{center:w,config:i.a.shape({center:w,zoom:i.a.number.isRequired}),mapStateSource:i.a.string},getParsedUrl:k,getDefaults:A,setLocalConfigurationFile:N,loadConfiguration:I,getCenter:R,normalizeConfig:B,getUserConfiguration:z,getConfigurationOptions:M,getConfigUrl:q,convertFromLegacy:K,setupSources:W,normalizeSourceUrl:G,copySourceOptions:V,setupLayers:H,mergeConfigs:$,getProxyUrl:Y,cleanDuplicatedQuestionMarks:T,getUrlWithoutParameters:C,filterUrlParams:P,getProxiedUrl:X,getBrowserProperties:J,setApiKeys:D,setUrlPlaceholders:U,replacePlaceholders:F,setLayerId:L,getConfigProp:Q,setConfigProp:Z,removeConfigProp:ee};t.default=te},"./MapStore2/web/client/utils/EpicsUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--unknown--";return function(){return e.apply(void 0,arguments).catch((function(e,n){return console.error('Error in epic "'.concat(t,'". Original error:'),e),setTimeout((function(){throw e}),0),n}))}},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Object.keys(e).map((function(n){return t(e[n],n)}))}},"./MapStore2/web/client/utils/GeoStoryUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return C})),n.d(t,"i",(function(){return P})),n.d(t,"h",(function(){return k})),n.d(t,"a",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"e",(function(){return I})),n.d(t,"f",(function(){return R})),n.d(t,"b",(function(){return D})),n.d(t,"x",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"t",(function(){return U})),n.d(t,"v",(function(){return B})),n.d(t,"z",(function(){return z})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return G})),n.d(t,"n",(function(){return H})),n.d(t,"q",(function(){return K})),n.d(t,"r",(function(){return $})),n.d(t,"s",(function(){return Y})),n.d(t,"o",(function(){return X})),n.d(t,"w",(function(){return J})),n.d(t,"u",(function(){return Q})),n.d(t,"y",(function(){return Z})),n.d(t,"l",(function(){return ee})),n.d(t,"m",(function(){return te})),n.d(t,"c",(function(){return ne}));var r=n("./MapStore2/node_modules/lodash/get.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/findIndex.js"),i=n.n(s),a=n("./MapStore2/node_modules/lodash/toPath.js"),u=n.n(a),l=n("./MapStore2/node_modules/lodash/isArray.js"),c=n.n(l),d=n("./MapStore2/node_modules/lodash/values.js"),f=n.n(d),p=n("./MapStore2/node_modules/lodash/filter.js"),h=n.n(p),m=n("./MapStore2/node_modules/lodash/merge.js"),b=n.n(m),y=n("./MapStore2/node_modules/lodash/isString.js"),v=n.n(y),_=n("./MapStore2/node_modules/lodash/isObject.js"),j=n.n(_),g=n("./MapStore2/node_modules/lodash/includes.js"),x=n.n(g),w=n("./MapStore2/node_modules/lodash/replace.js"),S=n.n(w),O=n("./node_modules/uuid/index.js"),E=n.n(O);function M(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return b()({},q,e)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b()({},e,t)},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return!t||n.test(e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return h()(e,(function(e){return V(e.data&&(e.data.title||e.data.name),t,n)||V(e.data&&e.data.description,t,n)}))},K=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};switch(t){case k.TITLE:return{id:E()(),type:k.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:E()(),type:A.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case k.BANNER:return{id:E()(),type:k.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:E()(),background:{fit:"cover",size:"full",align:"center"}}]};case k.PARAGRAPH:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:E()(),type:A.COLUMN,size:"full",align:"center",contents:[{id:E()(),type:A.TEXT,html:""}]}]};case k.IMMERSIVE:return{id:E()(),type:k.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(A.COLUMN,n)]};case N.MEDIA:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:E()(),type:A.COLUMN,contents:[{id:E()(),type:A.MEDIA,size:"large",align:"center"}]}]};case N.WEBPAGE:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:E()(),type:A.COLUMN,contents:[{id:E()(),type:A.WEBPAGE,size:"medium",align:"center"}]}]};case A.COLUMN:return{id:E()(),type:A.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:E()(),type:A.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case A.TEXT:return{id:E()(),type:A.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case A.IMAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case A.WEBPAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case A.MEDIA:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},$=function(e,t){return u()(e).reduce((function(e,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),s=o()(t,e),a=i()(s,r);return a>=0?[].concat(M(e),[a]):e}return[].concat(M(e),[n])}),[])},Y=function(e,t){return u()(e).reduce((function(e,n){var r=e.path,s=e.flatPath;if(n&&0===n.indexOf("{")){var a=JSON.parse(n),u=o()(t,r),l=i()(u,a);if(l>=0){var c=u[l],d=c.id,f=c.type;return{path:[].concat(M(r),[l]),flatPath:[].concat(M(s),[{id:d,type:r[r.length-1],contentType:f}])}}return{path:r,flatPath:s}}return{path:[].concat(M(r),[n]),flatPath:s}}),{path:[],flatPath:[]})},X=function(e,t){return e.reduce((function(e,n){return x()(n.contents.map((function(e){return e.id})),t)?n.id:e}),null)},J=function(e){return e.type===k.PARAGRAPH&&!1!==e.editURL&&e&&c()(e.contents)&&e.contents.length&&c()(e.contents[0].contents)&&e.contents[0].contents.length&&e.contents[0].contents[0].type===A.WEBPAGE&&!1!==e.contents[0].contents[0].editURL},Q=function(e,t){if(t)switch(e){case"small":return.4*t;case"medium":return.6*t;case"large":return.8*t;default:return t}return 0},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s="EMPTY";if(!t.includes(n))return null;var i=t.substring(t.indexOf(n)).split("/");return r&&n?i.length>1&&i[2]&&Number(i[0])===n?5===i.length?S()(e,"".concat(i[2],"/column/").concat(i[4]),"".concat(r)):S()(e,"".concat(i[2]),"".concat(r)):(t.includes("shared"),""!==i[1]?"".concat(e,"/section/").concat(r):"".concat(e,"section/").concat(r)):!r&&o&&v()(o)&&o!==s&&i.length>1?t.includes("shared")&&!i[2]?e:5===i.length?S()(e,"".concat(i[4]),"".concat(o)):"".concat(e,"/column/").concat(o):null},ee=function(e,t,n){var r={active:t,inactive:n,custom:{families:[],urls:[]}};return e.filter((function(e){return!!e.src})).forEach((function(e,t){r.custom.families[t]=e.family,r.custom.urls[t]=e.src})),r},te=function(e){return e.map((function(e){return e.family}))},ne=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"]},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/node_modules/lodash/fp/set.js"),s=n.n(o),i=n("./MapStore2/node_modules/lodash/fp/unset.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/fp/compose.js"),l=n.n(u),c=s.a,d=a.a,f=l.a,p=function(e,t,n,o){var s=e?Object(r.get)(o,e)||[]:o,i=Object(r.findIndex)(s,n);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return e?c(e,s.concat(t),o):s.concat(t)},h=function(e,t,n,o){var s=e?Object(r.get)(o,e)||[]:o,i=Object(r.findIndex)(s,n);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return o},m=function(e,t,n){var o=e?Object(r.get)(n,e)||[]:n,s=Object(r.findIndex)(o,t);if(s>=0){var i=o.slice();return i.splice(s,1),e?c(e,i,n):i()}return n}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getWpsUrl",(function(){return D})),n.d(t,"getNode",(function(){return B})),n.d(t,"getGroupNodes",(function(){return z})),n.d(t,"getNestedGroupTitle",(function(){return q})),n.d(t,"deepChange",(function(){return W})),n.d(t,"getSourceId",(function(){return G})),n.d(t,"extractTileMatrixFromSources",(function(){return V})),n.d(t,"extractTileMatrixSetFromLayers",(function(){return H})),n.d(t,"extractSourcesFromLayers",(function(){return K})),n.d(t,"extractDataFromSources",(function(){return $})),n.d(t,"getURLs",(function(){return Y})),n.d(t,"getLayerUrl",(function(){return J})),n.d(t,"getGroupByName",(function(){return Q})),n.d(t,"getDimension",(function(){return Z})),n.d(t,"getLayerId",(function(){return ee})),n.d(t,"normalizeLayer",(function(){return te})),n.d(t,"normalizeMap",(function(){return ne})),n.d(t,"belongsToGroup",(function(){return re})),n.d(t,"getLayersByGroup",(function(){return oe})),n.d(t,"removeEmptyGroups",(function(){return se})),n.d(t,"getNotEmptyGroup",(function(){return ie})),n.d(t,"reorderFunc",(function(){return ae})),n.d(t,"denormalizeGroups",(function(){return ue})),n.d(t,"sortLayers",(function(){return le})),n.d(t,"toggleByType",(function(){return ce})),n.d(t,"sortUsing",(function(){return de})),n.d(t,"splitMapAndLayers",(function(){return fe})),n.d(t,"geoJSONToLayer",(function(){return pe})),n.d(t,"saveLayer",(function(){return he})),n.d(t,"REG_GEOSERVER_RULE",(function(){return me})),n.d(t,"setRegGeoserverRule",(function(){return be})),n.d(t,"getRegGeoserverRule",(function(){return ye})),n.d(t,"findGeoServerName",(function(){return ve})),n.d(t,"getCapabilitiesUrl",(function(){return _e})),n.d(t,"getSearchUrl",(function(){return je})),n.d(t,"invalidateUnsupportedLayer",(function(){return ge})),n.d(t,"isSupportedLayer",(function(){return xe})),n.d(t,"getLayerTitleTranslations",(function(){return we})),n.d(t,"setCustomUtils",(function(){return Se})),n.d(t,"getAuthenticationParam",(function(){return Oe})),n.d(t,"excludeGoogleBackground",(function(){return Ee})),n.d(t,"creditsToAttribution",(function(){return Me})),n.d(t,"formatCapabitiliesOptions",(function(){return Te})),n.d(t,"getLayerTitle",(function(){return Ce}));var r,o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/turf-bbox/index.js"),a=n.n(i),u=n("./node_modules/uuid/v1.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isObject.js"),p=n.n(f),h=n("./MapStore2/node_modules/lodash/isArray.js"),m=n.n(h),b=n("./MapStore2/node_modules/lodash/head.js"),y=n.n(b),v=n("./MapStore2/node_modules/lodash/castArray.js"),_=n.n(v),j=n("./MapStore2/node_modules/lodash/isEmpty.js"),g=n.n(j),x=n("./MapStore2/node_modules/lodash/findIndex.js"),w=n.n(x),S=n("./MapStore2/node_modules/lodash/pick.js"),O=n.n(S),E=n("./MapStore2/node_modules/lodash/isNil.js"),M=n.n(E),T=n("./MapStore2/web/client/utils/SecurityUtils.js");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e(r.nodes,n):t:r)}),null):null},z=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,n){var r=[].concat(t);return n.nodes&&(r=t.concat(e(n))),d()(n)?[].concat(A(r),[n]):[].concat(A(r),[n.id])}),[]):[]},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return m()(t)&&y()(t.map((function(t){var n=t.id===e?t:null;if(n)return n.title;var r=B(t.nodes,e);return r?r.title:null})))},W=function e(t,n,r,o){return t&&m()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===n)return P(P({},t),p()(r)?r:k({},r,o));if(t.nodes)return P(P({},t),{},{nodes:e(t.nodes,n,r,o)})}return t})):[]},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(_()(e.url))},V=function(e,t){if(!e||!t)return{};!m()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=A(Object.keys(t.matrixIds)));var n=G(t),r=t.matrixIds&&t.matrixIds.reduce((function(t,r){var o=e[n]&&e[n].tileMatrixSet&&e[n].tileMatrixSet[r]&&e[n].tileMatrixSet[r].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,k({},r,A(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[n].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&r&&{tileMatrixSet:o,matrixIds:r}||{}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(n,r){var o=e[r].reduce((function(e,t){return s()(e,k({},t.id||t.name,{srs:A(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[r].reduce((function(e,t){var n=t.tileMatrixSet.reduce((function(e,t){return s()({},e,k({},t["ows:Identifier"],s()({},t)))}),{}),r=Object.keys(n).reduce((function(e,t){var r=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=r[0]&&n[t].TileMatrix.map((function(e,t){return r[0][t]&&r[0][t].ranges?s()({},e,{ranges:r[0][t].ranges}):s()({},e)}));return y()(r)?s()({},e,k({},t,s()({},n[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,r)}),{});return s()({},n,k({},r,s()({},t[r]||{},{tileMatrixSet:s()({},n[r]&&n[r].tileMatrixSet||{},i)})))}),s()({},t))||t},K=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var n=G(t);return e[n]?s()({},e,k({},n,[].concat(A(e[n]),[t]))):s()({},e,k({},n,[t]))}),{});return H(t)},$=function(e){if(!e||!e.layers||!m()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return g()(t)?A(e.layers):e.layers.map((function(e){var n=V(t,e);return s()({},e,n)}))},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},X={},J=function(e){return m()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=y()(t.filter((function(t){return t.name===e})));return n||t.reduce((function(t,n){return t||!!n.nodes&&r.getGroupByName(e,n.nodes)}),void 0)},Z=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:P(P({},e),{},{id:r.getLayerId(e)})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?P(P({},e),{},{layers:(e.layers||[]).map((function(e){return r.normalizeLayer(e)}))}):e},function(e){return e.groups?e:P(P({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},re=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var n=0,r=e.map((function(e){return s()({},e,{storeIndex:n++})}));return r.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,n){var o=n||"Default";return o.split(".").reduce((function(e,n,i,a){var u=o.split(".",i+1).join("."),l=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(u,e),c=i===a.length-1;l?c&&(l.nodes=l.nodes.concat(R(u,r))):(l=function(e,t,n,r){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:r?R(e,n):[],expanded:!0})}(u,q(u,t)||n,r,c),e.push(l));return l.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(r.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(r.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(F(e,t))},ue=function(e,t){var n=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},r=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:r,groups:t.map((function(e){return function e(t,r){var o=t.nodes.map((function(t){return p()(t)?e(t,r):r.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:n(o)})}(e,r)}))}},le=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(F(e,t))},ce=function(e,t){return function(n,r){return t(n,e,r)}},de=function(e,t){return function(n,r){return t(n,r,e)}},fe=function(e){if(e&&m()(e.layers)){var t=r.getLayersByGroup(e.layers,e.groups);m()(e.groups)&&(t=e.groups.reduce((function(e,t){var n=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};n=r.deepChange(n,t.id,o)}return n=r.deepChange(n,t.id,"expanded",t.expanded)}),[].concat(t)));var n=$(e);return s()({},e,{layers:{flat:r.reorder(t,n),groups:t}})}return e},pe=function(e,t){var n=a()(e),r=[];return r="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[O()(P(P({},e),{},{id:M()(e.id)?l()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]},crs:"EPSG:4326"},features:r}},he=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},me=I,be=function(e){I=e},ye=function(){return I},ve=function(e){var t=e.url,n=e.regexRule||r.getRegGeoserverRule(),o=m()(t)?t[0]:t;return n.test(o)&&o.match(n)[0]||null},_e=function(e){var t=r.findGeoServerName({url:e.url}),n=J(e);if(t){var o=n.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(n=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var n=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+n:e+"&"+n}(n,P(P({},e.baseParams),e.params))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},ge=function(e,t){return U(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},xe=function(e,t){return!!U(e,t)},we=function(e){return X.getLayerTitleTranslations?X.getLayerTitleTranslations(e):e.Title},Se=function(e,t){X[e]=t},Oe=function(e){var t=Y(m()(e.url)?e.url:[e.url]),n={};return t.forEach((function(t){Object(T.addAuthenticationParameter)(t,n,e.securityToken)})),n},Ee=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group,r=e.visibility;return"background"===n&&"google"===t&&r})).length>0,n=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),r=n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(r.length>0){var o=w()(n,{group:"background"});return n.map((function(e,t){return t===o?P(P({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(A(n))}return n},Me=function(e){var t=e.imageUrl,n=e.link,r=e.title,o=t?'"):r;return n&&o?'').concat(o,""):o},Te=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Ce=function(e){var t=e.title,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[r])||(null==t?void 0:t.default)||t||n};r={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:W,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:ve}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(j)[0],n=j.en?{key:"en",locale:j.en}:{key:t,locale:j[t]},r=j[_.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:n.key))];return r?r.code:n.locale.code},M=function(){return j},T=function(e){return g[e]||g.default},C=function(e,t){var n=e;return t.split(".").forEach((function(e){n=n?n[e]:null})),n||t},P=function(e,t){x[e]=t},k=function(e,t,n){return t&&n&&x[t]&&x[t][n]&&x[t][n](e)||{title:"errorTitleDefault",message:"errorDefault"}},A=function(e,t){return i(t)?t[e]||t.default:t||""};_={getLocale:E,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var n=/^[a-z]+/i.exec(e);t=n&&n.length>0?n[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(r,n)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,n){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},n.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path)))}),{})}),(function(e,t){return t.reduce((function(t,n){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var n=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===n||e===n})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(n)&&0===n.indexOf("{")?parseExpression(e,t,n):n},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(r&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,n.requires,r)},isContainedInList=function(e,t,n,r){return e&&t&&-1!==handleExpression(n,r,t).indexOf(e)},showIn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,n.showIn,e,t)||isContainedInList(r,n.showIn,e,t)||!n.showIn&&s)&&!(isContainedInList(o,n.hideFrom,e,t)||isContainedInList(r,n.hideFrom,e,t))},includeLoaded=function(e,t,n){if(t[e]){var r=t[e],o=r.component||r;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,n,{loadPlugin:void 0},_objectSpread({},r.containers))}return n},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,n+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n+".priority")||0},getMorePrioritizedContainer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return n.reduce((function(n,r){var o=r.name||r,s=getPriority(e,t,o);return s>n.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:n}),{plugin:null,priority:r})},parsePluginConfig=function e(t,n,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(r)?r.map((function(r){return e(t,n,r)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?Object.keys(r).reduce((function(o,s){var i=r[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,n,i)))}),{}):parseExpression(t,n,r)},canContain=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||n[e]||!1},isMorePrioritizedContainer=function(e,t,n,r){return null===getMorePrioritizedContainer(e,t,n,r).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,n){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[n])?_objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n](t))):e},getPluginItems=function e(t,n,r,o,s,i,a,u){return Object.keys(n).map((function(e){var t=getPluginConfiguration(r,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,n[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,n.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,r,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),u=includeLoaded(i,a,s.impl),l=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},l,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},u.cfg||{},parsePluginConfig(t,n.requires,s.config.cfg||{})||void 0)},{plugin:u,items:e(t,n,r,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,n)})).filter((function(e){return!u||u(e)}))},pluginsMergeProps=function(e,t,n){var r=n.pluginCfg,o=_objectWithoutProperties(n,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,r||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n]?[].concat(_toConsumableArray(e[n]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.stateSelector:i||void 0,u=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)||(void 0===r.isDefault||r.isDefault),l=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r)+"Plugin",c=t[l];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?parsePluginConfig(e,t.requires,r.cfg):{}),items:getPluginItems(e,t,n,s,i,u,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(r,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):n};return a.loaded=!!r,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,n,r){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,n||pluginsMergeProps,r)},createPlugin=function(e,t){var n,r=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,u=t.reducers,l=void 0===u?{}:u,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,h=t.enabler,m=void 0===h?function(){return!0}:h,b=t.loader,y=normalizeName(e),v=p?{loadPlugin:function(e){b().then((function(t){var n=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0}))}))},enabler:m}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0});return _defineProperty(n={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(v,a,s)),_defineProperty(n,"reducers",l),_defineProperty(n,"epics",d),n},loadPlugin=function(e){return new Promise((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,n){return t({name:e,plugin:n})}))})).catch((function(e){n(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/ResourceUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=/rest\/geostore\/data\/(\d+)/,o=function(e){var t=decodeURIComponent(decodeURIComponent(e)),n=r.exec(t);return n&&!!n[0]&&n[1]}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setStore",(function(){return v})),n.d(t,"getSecurityInfo",(function(){return _})),n.d(t,"getUser",(function(){return j})),n.d(t,"getBasicAuthHeader",(function(){return g})),n.d(t,"getToken",(function(){return x})),n.d(t,"getRefreshToken",(function(){return w})),n.d(t,"getUserAttributes",(function(){return S})),n.d(t,"findUserAttribute",(function(){return O})),n.d(t,"findUserAttributeValue",(function(){return E})),n.d(t,"getAuthenticationRules",(function(){return M})),n.d(t,"isAuthenticationActivated",(function(){return T})),n.d(t,"getAuthenticationMethod",(function(){return C})),n.d(t,"getAuthenticationRule",(function(){return P})),n.d(t,"getAuthKeyParameter",(function(){return k})),n.d(t,"addAuthenticationParameter",(function(){return A})),n.d(t,"addAuthenticationToUrl",(function(){return N})),n.d(t,"clearNilValuesForParams",(function(){return I})),n.d(t,"addAuthenticationToSLD",(function(){return R})),n.d(t,"cleanAuthParamsFromURL",(function(){return D}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o),i=n("./node_modules/object-assign/index.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/head.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isNil.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isArray.js"),p=n.n(f),h=n("./MapStore2/web/client/utils/StateUtils.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return d()(e[n])?t:b(b({},t),{},y({},n,e[n]))}),{})}function R(e,t){if(e.SLD){var n=s.a.parse(e.SLD,!0),r=A(e.SLD,n.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},n,{query:r,search:void 0}))})}return e}function D(e){return r.default.filterUrlParams(e,[k(e)].filter((function(e){return e})))}var L={setStore:v,getSecurityInfo:_,getUser:j,getBasicAuthHeader:g,getToken:x,getRefreshToken:w,getUserAttributes:S,findUserAttribute:O,findUserAttributeValue:E,getAuthenticationRules:M,isAuthenticationActivated:T,getAuthenticationMethod:C,getAuthenticationRule:P,addAuthenticationToUrl:N,addAuthenticationParameter:A,clearNilValuesForParams:I,addAuthenticationToSLD:R,getAuthKeyParameter:k,cleanAuthParamsFromURL:D};t.default=L},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return x})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return M})),n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return C}));var r=n("./node_modules/redux/es/index.js"),o=n("./node_modules/redux-thunk/lib/index.js"),s=n.n(o),i=n("./node_modules/redux-logger/dist/redux-logger.js"),a=n.n(i),u=n("./node_modules/redux-observable/lib/esm/index.js"),l=n("./MapStore2/web/client/utils/EpicsUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/isEmpty.js"),f=n.n(d),p=n("./node_modules/rxjs/Rx.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+n,e),e},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+n,e),e},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",r=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+n,r),function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},M=function(e){var t;return!f()(g(e))&&(null===(t=g(e))||void 0===t?void 0:t.getState())||{}},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,n=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,h=e.debug,m=void 0!==h&&h,b=e.enhancer,v=w(t||Object(r.c)(s)),g=n||u.a.apply(void 0,y(Object(l.a)(a))),S=g?[x(Object(u.b)(g))].concat(y(p)):p,O=r.a.apply(null,_(S,m)),E=(window.devToolsExtension&&m?Object(r.d)(O,window.devToolsExtension()):O)(r.e);return j(E(v,d,b))},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,n=void 0===t?{}:t,r=e.epics,o=void 0===r?{}:r,s=arguments.length>1?arguments[1]:void 0,i=S(),a=function(e,t){var r=Object.keys(i({},{})),o=m(m({},e),i(e,t));return Object.keys(n).filter((function(e){return-1===r.indexOf(e)})).reduce((function(e,r){return m(m({},e),{},b({},r,n[r](e[r],t)))}),o)};(s||g()).replaceReducer(a);var u=E();Object(l.a)(o).forEach((function(e){u.next(e)}))}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t,r){var o=n[e];return o&&o.create?o.create(t,r):o?o(t,r):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o,s){var i=n[e];return i&&i.update?i.update(t,r,o,s):null},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t){var r=n[e];return r&&r.create?r.create(t):r?r(t):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o){var s=n[e];return s&&s.update?s.update(t,r,o):null},isValid:function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,n){"use strict";n.r(t),n.d(t,"registerType",(function(){return o})),n.d(t,"createLayer",(function(){return s})),n.d(t,"updateLayer",(function(){return i})),n.d(t,"removeLayer",(function(){return a})),n.d(t,"renderLayer",(function(){return u})),n.d(t,"isValid",(function(){return l})),n.d(t,"isSupported",(function(){return c})),n.d(t,"isCompatible",(function(){return d}));var r={},o=function(e,t){r[e]=t},s=function(e,t,n,o){var s=r[e];return s?s.create(t,n,o):null},i=function(e,t,n,o,s,i){var a=r[e];if(a&&a.update)return a.update(t,n,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var u=!1;o.params&&n.params?u=Object.keys(o.params).reduce((function(e,t){return n.params[t]!==o.params[t]||e}),!1):!o.params&&n.params&&(u=!0),u&&t.getSource().updateParams(n.params)}return null},a=function(e,t,n,o,s){var i=r[e];return i&&i.remove?i.remove(t,n,o,s):null},u=function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},l=function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},c=function(e){return!!r[e]},d=function(e,t){var n=r[e];return!n||!n.isCompatible||n.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:u,isValid:l,isSupported:c,isCompatible:d}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"k",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return v}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",s="GEONODE:RESOURCE_ERROR",i="GEONODE:UPDATE_RESOURCE_PROPERTIES",a="GEONODE:SET_RESOURCE_TYPE",u="GEONODE:SET_NEW_RESOURCE",l="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function f(e){return{type:o,data:e}}function p(e){return{type:a,resourceType:e}}function h(e){return{type:s,error:e}}function m(e){return{type:i,properties:e}}function b(){return{type:u}}function y(e){return{type:l,id:e}}function v(e){return{type:c,permissions:e}}},"./js/api/geonode/adapter/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./js/utils/APIUtils.js"),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.post(Object(i.b)("".concat(t,"resources/")),e,{timeout:1e4,params:{full:!0}}).then((function(e){return e.data}))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.patch(Object(i.b)("".concat(n,"resources/").concat(e,"/")),t,{params:{full:!0}}).then((function(e){return e.data}))},l=function(e){var t=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.get(Object(i.b)("".concat(t,"resources/").concat(e,"/")),{params:{full:!0}}).then((function(e){return e.data}))}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"g",(function(){return _}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./node_modules/js-cookie/src/js.cookie.js"),a=n.n(i),u=n("./js/utils/GNSearchUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(f,"/categories").concat(p),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.identifier,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(f,"/keywords").concat(p),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(f,"/regions").concat(p),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.name,n),n}))}))},v=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(f,"/owners").concat(p),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.username,n),n}))}))},_=function(e){var t=a.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return M})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return k})),n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"a",(function(){return I})),n.d(t,"j",(function(){return R})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return U}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./js/utils/APIUtils.js"),i=n("./MapStore2/node_modules/lodash/mergeWith.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/isArray.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/castArray.js"),p=n.n(f),h=n("./js/api/geonode/v1/index.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js"),b=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1?e+s.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+s[0]}),"");return"".concat(e).concat(n)}var M=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=x(x({},S),e)}(t),t}))};function T(e,t){return t?a()(x({},e),x({},t),(function(e,t){return l()(e)&&l()(t)?[].concat(_(e),_(t)):d()(e)&&l()(t)?[e].concat(_(t)):l()(e)&&d()(t)?[].concat(_(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var C,P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,u=e.sort,c=e.f,d=v(e,["q","pageSize","page","sort","f"]),f=((Object(m.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return O("resources",(function(){return o.a.get(Object(s.b)(E(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},T(d,f)),u&&{sort:l()(u)?u:[u]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},k=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,u=e.sort,c=v(e,["q","pageSize","page","sort"]);return O("maps",(function(){return o.a.get(Object(s.b)(E(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},c),u&&{sort:l()(u)?u:[u]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,i=void 0===r?20:r,a=t.page,u=void 0===a?1:a,c=t.sort,d=v(t,["q","pageSize","page","sort"]);return O("maps",(function(){return o.a.get(Object(s.b)(E(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:x(x(x({},d),c&&{sort:l()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:u,page_size:i})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},N=function(e){return o.a.get(Object(s.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},I=function(e){return o.a.post(Object(s.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},R=function(e,t){return o.a.patch(Object(s.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},D=function(e){return o.a.get(Object(s.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},L=function(){return Object(h.f)().then((function(e){return D(e.sub).then((function(t){return x(x({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},F=function(e){return o.a.get(e).then((function(e){return e.data}))},U=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return C?new Promise((function(e){return e(C)})):o.a.get(Object(s.b)(S.resource_types)).then((function(e){var n=e.data;return _(C=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(b.h)(t+e,n),n})))}))}},"./js/apps/gn-geostory.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"load",(function(){return ee})),n.d(r,"getData",(function(){return te}));var o=n("./node_modules/react-redux/es/index.js"),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),u=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(u),c=n("./MapStore2/web/client/components/app/main.jsx"),d=n("./node_modules/react/index.js"),f=n.n(d),p=n("./node_modules/prop-types/index.js"),h=n.n(p),m=n("./node_modules/url/url.js"),b=n.n(m),y=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),v=n("./MapStore2/web/client/utils/PluginsUtils.js"),_=n("./MapStore2/web/client/actions/geostory.js"),j=n("./MapStore2/web/client/components/plugins/PluginsContainer.jsx"),g=n("./MapStore2/web/client/utils/StateUtils.js"),x=n("./MapStore2/node_modules/lodash/join.js"),w=n.n(x);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce((function(n,r){return-1!==t.indexOf(r)?n:M(M({},n),{},T({},r,e[r]))}),{})}(e.reduce((function(e,t){return M(M({},e),t.plugin)}),{}),i)))),p(!1)})).catch((function(){l({}),p(!1)}))}),[m]),{plugins:u,pending:f}};function P(e,t){return t.then((function(t){var n=t.default;return{default:{name:e,component:n[e+"Plugin"],reducers:n.reducers||{},epics:n.epics||{},containers:n.containers||{}}}}))}var k={OmniBarPlugin:function(){return P("OmniBar",n.e("plugins/omni-bar-plugin").then(n.bind(null,"./MapStore2/web/client/plugins/OmniBar.jsx")))},BurgerMenuPlugin:function(){return P("BurgerMenu",n.e("plugins/burger-menu-plugin").then(n.bind(null,"./MapStore2/web/client/plugins/BurgerMenu.jsx")))},GeoStoryPlugin:function(){return P("GeoStory",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e("plugins/geostory-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStory.jsx")))},MediaEditorPlugin:function(){return P("MediaEditor",Promise.all([n.e(0),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e(6),n.e("plugins/media-editor-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/MediaEditor.jsx")))},GeoStoryEditorPlugin:function(){return P("GeoStoryEditor",Promise.all([n.e(0),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e(6),n.e("plugins/geostory-editor-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStoryEditor.jsx")))},GeoStoryNavigationPlugin:function(){return P("GeoStoryNavigation",Promise.all([n.e(0),n.e("vendors~plugins/geostory-navigation-plugin"),n.e("plugins/geostory-navigation-plugin~plugins/share-plugin"),n.e("plugins/geostory-navigation-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStoryNavigation.jsx")))},NotificationsPlugin:function(){return P("Notifications",Promise.all([n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e("vendors~plugins/notifications-plugin"),n.e("plugins/notifications-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/Notifications.jsx")))},SavePlugin:function(){return P("Save",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(6),n.e("plugins/save-plugin")]).then(n.bind(null,"./js/plugins/Save.jsx")))},SaveAsPlugin:function(){return P("SaveAs",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(6),n.e("plugins/save-as-plugin")]).then(n.bind(null,"./js/plugins/SaveAs.jsx")))},SharePlugin:function(){return P("Share",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e("plugins/geostory-navigation-plugin~plugins/share-plugin"),n.e("plugins/share-plugin")]).then(n.bind(null,"./js/plugins/Share.jsx")))}};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s(s({},e),{},{loading:!0});case r.d:return s(s({},e),{},{error:null,data:t.data,loading:!1});case r.a:return s(s({},e),{},{data:null,error:t.error,loading:!1});case r.h:return s(s({},e),{},{data:s(s({},e.data),t.properties)});case r.g:return s(s({},e),{},{type:t.resourceType});case r.c:return s(s({},e),{},{isNew:!0});case r.e:return s(s({},e),{},{id:t.id});case r.f:return s(s({},e),{},{permissions:t.permissions});default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));n("./node_modules/url/url.js");var r={},o=function(e){return e},s=function(e,t){r[e]=t},i=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"g",(function(){return j})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return x}));var r=n("./node_modules/url/url.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/castArray.js"),i=n.n(s);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["page"],h={},m=function(e,t){h[e]=t},b=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==h||null===(e=h[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==h?void 0:h[e+t]},v=function(){return p},_=function(){return 20},j=function(e){var t=e.location,n=e.pathname,r=e.query,s=e.replaceQuery,u=t.search,l=f(t,["search"]),p=o.a.parse(u||"",!0).query,h=r?s?c(c({},p),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=i()(e[t]).filter((function(e){return e})),s=-1===o.indexOf(n)?[].concat(a(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,s))}),p):p;return"#".concat(o.a.format(c(c(c({},l),n&&{pathname:n}),{},{query:Object.keys(h).reduce((function(e,t){return h[t]&&0!==h[t].length?c(c({},e),{},d({},t,h[t])):e}),{})})))};function g(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var x=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=u,t.isNumber=l,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw r(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw r(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw r(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw r(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!u(e))throw r(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw r(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw r(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw r(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw r(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw r(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw r(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},g.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(_.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},g.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},g.prototype.number=function(e){if(!j.test(e)){if(_.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},g.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},g.prototype.keyword=function(e){if(v.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!_.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},g.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!_.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},g.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var n=e.GEOGCS;function r(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(n=e),n&&(n.DATUM?e.datumCode=n.DATUM.name.toLowerCase():e.datumCode=n.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),n.DATUM&&n.DATUM.SPHEROID&&(e.ellps=n.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=n.DATUM.SPHEROID.a,e.rf=parseFloat(n.DATUM.SPHEROID.rf,10)),n.DATUM&&n.DATUM.TOWGS84&&(e.datum_params=n.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",S],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",S],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",S],["lat0","latitude_of_origin",S],["lat0","standard_parallel_1",S],["lat1","standard_parallel_1",S],["lat2","standard_parallel_2",S],["azimuth","Azimuth"],["alpha","azimuth",S],["srsCode","name"]].forEach((function(t){return n=e,o=(r=t)[0],s=r[1],void(!(o in n)&&s in n&&(n[o]=n[s],3===r.length&&(n[o]=r[2](n[o]))));var n,r,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=S(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function E(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?E[e]=h(arguments[1]):E[e]=O(arguments[1]):E[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?E.apply(t,e):E(e)}));if("string"==typeof e){if(e in E)return E[e]}else"EPSG"in e?E["EPSG:"+e.EPSG]=e:"ESRI"in e?E["ESRI:"+e.ESRI]=e:"IAU2000"in e?E["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(E);var M=E;var T=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var C=["3857","900913","3785","102113"];var P=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in M}(e))return M[e];if(function(e){return T.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=O(e);if(function(e){var t=p(e,"authority");if(t){var n=p(t,"epsg");return n&&C.indexOf(n)>-1}}(t))return M["EPSG:3857"];var n=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return n?h(n):t}return function(e){return"+"===e[0]}(e)?h(e):void 0},k=function(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e},A=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)},N=function(e){return e<0?-1:1},I=function(e){return Math.abs(e)<=l?e:e-N(e)*u},R=function(e,t,n){var r=e*n,s=.5*e;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(o-t))/r},D=function(e,t){for(var n,r,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(i),i+=r=o-2*Math.atan(t*Math.pow((1-n)/(1+n),s))-i,Math.abs(r)<=1e-10)return i;return-9999};function L(e){return e}var F=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,s=e.y;if(s*i>90&&s*i<-90&&r*i>180&&r*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*I(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var u=Math.sin(s),l=R(this.e,s,u);t=this.x0+this.a*this.k0*I(r-this.long0),n=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,s=e.y-this.y0;if(this.sphere)n=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(n=D(this.e,i)))return null}return t=I(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:L,inverse:L,names:["longlat","identity"]}],U={},B=[];function z(e,t){var n=B.length;return e.names?(B[n]=e,e.names.forEach((function(e){U[e.toLowerCase()]=n})),this):(console.log(t),!0)}var q={start:function(){F.forEach(z)},add:z,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==U[t]&&B[U[t]]?B[U[t]]:void 0}},W={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},G=W.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};W.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var V={};V.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},V.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},V.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},V.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},V.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},V.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},V.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},V.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},V.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},V.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},V.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},V.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},V.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},V.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},V.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},V.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},V.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var H=function(e,t,n,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=r,a.datum_params[4]*=r,a.datum_params[5]*=r,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=n,a.b=o,a.es=s,a.ep2=i,a};function K(e,t){if(!(this instanceof K))return new K(e);t=t||function(e){if(e)throw e};var n=P(e);if("object"==typeof n){var r=K.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=p(V,n.datumCode);o&&(n.datum_params=o.towgs84?o.towgs84.split(","):null,n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var s,i,a,u,l,c,d,f=function(e,t,n,r,o){if(!e){var s=p(W,r);s||(s=G),e=s.a,t=s.b,n=s.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),h=(s=f.a,i=f.b,f.rf,a=n.R_A,c=((u=s*s)-(l=i*i))/u,d=0,a?(u=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(u-l)/l}),m=n.datum||H(n.datumCode,n.datum_params,f.a,f.b,h.es,h.ep2);k(this,n),k(this,r),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=h.es,this.e=h.e,this.ep2=h.ep2,this.datum=m,this.init(),t(null,this)}else t(e)}else t(e)}K.projections=q,K.projections.start();var $=K;function Y(e){return 1===e||2===e}var X=function(e,t,n){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?n:e.es!==t.es||e.a!==t.a||Y(e.datum_type)||Y(t.datum_type)?(n=function(e,t,n){var r,s,i,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-o&&l>-1.001*o)l=-o;else if(l>o&&l<1.001*o)l=o;else if(l<-o||l>o)return null;return u>Math.PI&&(u-=2*Math.PI),s=Math.sin(l),a=Math.cos(l),i=s*s,{x:((r=n/Math.sqrt(1-t*i))+c)*a*Math.cos(u),y:(r+c)*a*Math.sin(u),z:(r*(1-t)+c)*s}}(n,e.es,e.a),Y(e.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],l=n[6];return{x:l*(e.x-u*e.y+a*e.z)+r,y:l*(u*e.x+e.y-i*e.z)+o,z:l*(-a*e.x+i*e.y+e.z)+s}}}(n,e.datum_type,e.datum_params)),Y(t.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],l=n[6],c=(e.x-r)/l,d=(e.y-o)/l,f=(e.z-s)/l;return{x:c+u*d-a*f,y:-u*c+d+i*f,z:a*c-i*d+f}}}(n,t.datum_type,t.datum_params)),function(e,t,n,r){var s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j=e.x,g=e.y,x=e.z?e.z:0;if(s=Math.sqrt(j*j+g*g),i=Math.sqrt(j*j+g*g+x*x),s/n<1e-12){if(v=0,i/n<1e-12)return o,_=-r,{x:e.x,y:e.y,z:e.z}}else v=Math.atan2(g,j);a=x/i,f=(u=s/i)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=a*l,y=0;do{y++,c=t*(d=n/Math.sqrt(1-t*p*p))/(d+(_=s*f+x*p-d*(1-t*p*p))),b=(m=a*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*f-(h=u*(1-c)*l)*p,f=h,p=m}while(b*b>1e-24&&y<30);return{x:v,y:Math.atan(m/Math.abs(h)),z:_}}(n,t.es,t.a,t.b)):n},J=function(e,t,n){var r,o,s,i=n.x,a=n.y,u=n.z||0,l={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==n.z)switch(0===s?(r=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(r=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(r=u,o="z"),e.axis[s]){case"e":l[o]=r;break;case"w":l[o]=-r;break;case"n":l[o]=r;break;case"s":l[o]=-r;break;case"u":void 0!==n[o]&&(l.z=r);break;case"d":void 0!==n[o]&&(l.z=-r);break;default:return null}return l},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function Z(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,n){var r;return Array.isArray(n)&&(n=Q(n)),function(e){Z(e.x),Z(e.y)}(n),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(n=ee(e,r=new $("WGS84"),n),e=r),"enu"!==e.axis&&(n=J(e,!1,n)),"longlat"===e.projName?n={x:n.x*s,y:n.y*s}:(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter}),n=e.inverse(n)),e.from_greenwich&&(n.x+=e.from_greenwich),n=X(e.datum,t.datum,n),t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y}),"longlat"===t.projName?n={x:n.x*i,y:n.y*i}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter})),"enu"!==t.axis?J(t,!0,n):n}var te=$("WGS84");function ne(e,t,n){var r,o,s;return Array.isArray(n)?(r=ee(e,t,n),3===n.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=ee(e,t,n),2===(s=Object.keys(n)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=n[e])})),o)}function re(e){return e instanceof $?e:e.oProj?e.oProj:$(e)}var oe=function(e,t,n){e=re(e);var r,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=te,o=!0),t=re(t),n?ne(e,t,n):(r={forward:function(n){return ne(e,t,n)},inverse:function(n){return ne(t,e,n)}},o&&(r.oProj=t),r)},se=73,ie=79,ae={forward:ue,inverse:function(e){var t=fe(me(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:le};function ue(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,h=e.northing,m=e.zoneNumber,b=he(m),y=Math.floor(p/1e5),v=Math.floor(h/1e5)%20,o=y,s=v,i=b,a=i-1,u="AJSAJS".charCodeAt(a),l="AFAFAF".charCodeAt(a),c=u+o-1,d=l+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||use||(c>se||uie||(c>ie||u90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||lse||(d>se||lie||(d>ie||l86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var o,s,i,a,u,l,c,d,f;var p,h,m,b,y,v}(function(e){var t,n,r,o,s,i,a,u=e.lat,l=e.lon,c=6378137,d=ce(u),f=ce(l);a=Math.floor((l+180)/6)+1,180===l&&(a=60);u>=56&&u<64&&l>=3&&l<12&&(a=32);u>=72&&u<84&&(l>=0&&l<9?a=31:l>=9&&l<21?a=33:l>=21&&l<33?a=35:l>=33&&l<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),n=Math.tan(d)*Math.tan(d),r=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-n+r)*o*o*o/6+(5-18*n+n*n+72*r-.39089081163157013)*o*o*o*o*o/120)+5e5,h=.9996*(s+t*Math.tan(d)*(o*o/2+(5-n+9*r+4*r*r)*o*o*o*o/24+(61-58*n+n*n+600*r-2.2240339282485886)*o*o*o*o*o*o/720));u<0&&(h+=1e7);return{northing:Math.round(h),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(u)}}({lat:e[1],lon:e[0]}),t)}function le(e){var t=fe(me(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,u,l,c,d,f,p=6378137,h=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=n-5e5,b=t;r<"N"&&(b-=1e7),c=6*(o-1)-180+3,f=(d=b/.9996/6367449.145945056)+(3*h/2-27*h*h*h/32)*Math.sin(2*d)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*d)+151*h*h*h/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=m/(.9996*s);var y=f-s*Math.tan(f)/u*(l*l/2-(5+3*i+10*a-4*a*a-.06065547077041606)*l*l*l*l/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*l*l*l*l*l*l/720);y=de(y);var v,_=(l-(1+2*i+a)*l*l*l/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*l*l*l*l*l/120)/Math.cos(f);if(_=c+de(_),e.accuracy){var j=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:j.lat,right:j.lon,bottom:y,left:_}}else v={lat:y,lon:_};return v}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function he(e){var t=e%6;return 0===t&&(t=6),t}function me(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(s,s+=2);for(var u=he(i),l=function(e,t){var n="AJSAJS".charCodeAt(t-1),r=1e5,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>90){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n="AFAFAF".charCodeAt(t-1),r=0,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>86){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(1),u);c0&&(f=1e5/Math.pow(10,m),p=e.substring(s,s+m),b=parseFloat(p)*f,h=e.substring(s+m),y=parseFloat(h)*f),{easting:b+l,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function be(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(le(e))},ye.prototype.toMGRS=function(e){return ue([this.x,this.y],e)};var ve=ye,_e=n("./node_modules/@geosolutions/proj4/package.json"),je=.01068115234375,ge=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*je))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*je)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t},xe=function(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))},we=function(e,t,n){for(var r=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(xe(o,i,Math.cos(o),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<1e-10)return o}return o};var Se={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=ge(this.es),this.ml0=xe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,o=e.x,s=e.y,i=I(o-this.long0),a=Math.sin(s),u=Math.cos(s);if(this.es){var l=u*i,c=Math.pow(l,2),d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.abs(u)>1e-10?Math.tan(s):0,h=Math.pow(p,2),m=Math.pow(h,2);t=1-this.es*Math.pow(a,2),l/=Math.sqrt(t);var b=xe(s,a,u,this.en);n=this.a*(this.k0*l*(1+c/6*(1-h+d+c/20*(5-18*h+m+14*d-58*h*d+c/42*(61+179*m-m*h-479*h)))))+this.x0,r=this.a*(this.k0*(b-this.ml0+a*i*l/2*(1+c/12*(5-h+9*d+4*f+c/30*(61+m-58*h+270*d-330*h*d+c/56*(1385+543*m-m*h-3111*h))))))+this.y0}else{var y=u*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=u*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>1e-10)return 93;r=0}else r=Math.acos(r);s<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,n=we(t,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.pow(c,2),h=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var m=i*Math.sqrt(t)/this.k0,b=Math.pow(m,2);r=n-(t*=c)*b/(1-this.es)*.5*(1-b/12*(5+3*p-9*d*p+d-4*f-b/30*(61+90*p-252*d*p+45*h+46*d-b/56*(1385+3633*p+4095*h+1574*h*p)))),s=I(this.long0+m*(1-b/6*(1+2*p+d-b/20*(5+28*p+24*h+8*d*p+6*d-b/42*(61+662*p+1320*h+720*h*p))))/l)}else r=o*N(a),s=0;else{var y=Math.exp(i/this.k0),v=.5*(y-1/y),_=this.lat0+a/this.k0,j=Math.cos(_);t=Math.sqrt((1-Math.pow(j,2))/(1+Math.pow(v,2))),r=Math.asin(t),a<0&&(r=-r),s=0===v&&0===j?0:I(Math.atan2(v,j)+this.long0)}return e.x=s,e.y=r,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Oe=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Ee=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))},Me=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(Ee(1,t)+1))),e<0?-t:t},Te=function(e,t){for(var n,r=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return t+n*Math.sin(2*t)},Ce=function(e,t,n){for(var r,o,s=Math.sin(t),i=Math.cos(t),a=Oe(n),u=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(n),l=2*i*u,c=-2*s*a,d=e.length-1,f=e[d],p=0,h=0,m=0;--d>=0;)r=h,o=p,f=l*(h=f)-r-c*(p=m)+e[d],m=c*h-o+l*p;return[(l=s*u)*f-(c=i*a)*m,l*m+c*f]};var Pe={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=Te(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=I(e.x-this.long0),n=e.y;n=Te(this.cbg,n);var r=Math.sin(n),o=Math.cos(n),s=Math.sin(t),i=Math.cos(t);n=Math.atan2(r,i*o),t=Math.atan2(s*o,Ee(r,o*i)),t=Me(Math.tan(t));var a,u,l=Ce(this.gtu,2*n,2*t);return n+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,u=1/0),e.x=a,e.y=u,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var s=Ce(this.utg,2*o,2*r);o+=s[0],r+=s[1],r=Math.atan(Oe(r));var i=Math.sin(o),a=Math.cos(o),u=Math.sin(r),l=Math.cos(r);o=Math.atan2(i*l,Ee(u,l*a)),r=Math.atan2(u,l*a),t=I(r+this.long0),n=Te(this.cgb,o)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var ke={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(I(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Pe.init.apply(this),this.forward=Pe.forward,this.inverse=Pe.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Ae=function(e,t){return Math.pow((1-e)/(1+e),t)};var Ne={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Ae(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+a),this.C)*Ae(this.e*Math.sin(n),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+a)/this.K,1/this.C),s=20;s>0&&(n=2*Math.atan(r*Ae(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(n-e.y)<1e-14));--s)e.y=n;return s?(e.x=t,e.y=n,e):null},names:["gauss"]};var Ie={init:function(){Ne.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,o;return e.x=I(e.x-this.long0),Ne.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=o*n*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),n=Math.cos(i),o=Math.asin(n*this.sinc0+e.y*t*this.cosc0/s),r=Math.atan2(e.x*t,s*this.cosc0*n-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,Ne.inverse.apply(this,[e]),e.x=I(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Re={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+N(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/R(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=A(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,s,i,a,u=e.x,l=e.y,c=Math.sin(l),d=Math.cos(l),f=I(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=1e-10&&Math.abs(l+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-o,s=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(i=R(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*r-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,n,r,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,n=this.lat0,a<=1e-10?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?I(this.long0+Math.atan2(e.x,-1*e.y)):I(this.long0+Math.atan2(e.x,e.y)):I(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*D(this.e,r),t=this.con*I(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=I(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),n=-1*D(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*n)}};var De={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,o=2*(Math.atan(Math.exp(r))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,o=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(r)),i=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,u=0,l=s,c=-1e3,d=0;Math.abs(l-c)>1e-7;){if(++d>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=a,e.y=l,e},names:["somerc"]};var Le={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),n=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var r,o,s=R(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-n*n));if(i*i<1&&(i=1),isNaN(this.longc)){var a=R(this.e,this.lat1,Math.sin(this.lat1)),u=R(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var l=Math.pow(a,this.bl),c=Math.pow(u,this.bl);o=.5*((r=this.el/l)-1/r);var d=(this.el*this.el-c*l)/(this.el*this.el+c*l),f=(c-l)/(c+l),p=I(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=I(this.long0);var h=I(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*h)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else r=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=r*Math.pow(s,this.bl),o=.5*(r-1/r),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,n,r,s=e.x,i=e.y,u=I(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)r=i>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(a+r*this.gamma0*.5)),t=-1*r*o*this.al/this.bl;else{var l=R(this.e,i,Math.sin(i)),c=this.el/Math.pow(l,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*u),h=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;n=Math.abs(Math.abs(h)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-h)/(1+h))/this.bl,t=Math.abs(Math.cos(this.bl*u))<=1e-10?this.al*this.bl*u:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*u))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+n):(t-=this.uc,e.x=this.x0+n*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-n*Math.sin(this.alpha)),e},inverse:function(e){var t,n;this.no_rot?(n=e.y-this.y0,t=e.x-this.x0):(n=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*n/this.al),s=.5*(r-1/r),i=.5*(r+1/r),a=Math.sin(this.bl*t/this.al),u=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,l=Math.pow(this.el/Math.sqrt((1+u)/(1-u)),1/this.bl);return Math.abs(u-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(u+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=D(this.e,l),e.x=I(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Fe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=A(this.e,t,n),o=R(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=A(this.e,s,i),u=R(this.e,this.lat2,s),l=R(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(r/a)/Math.log(o/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=N(n)*(o-2e-10));var r,s,i=Math.abs(Math.abs(n)-o);if(i>1e-10)r=R(this.e,n,Math.sin(n)),s=this.a*this.f0*Math.pow(r,this.ns);else{if((i=n*this.ns)<=0)return null;s=0}var a=this.ns*I(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,s,i,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),n=1):(t=-Math.sqrt(a*a+u*u),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*u)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(s=D(this.e,r)))return null}else s=-o;return i=I(l/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Ue={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y,c=I(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),r=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),s=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,o,s,i,a,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(o)),n=Math.asin(Math.cos(r)*Math.sin(o)/Math.cos(t)),e.x=this.long0-n/this.alfa,i=t,a=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,l+=1}while(0===a&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},Be=function(e,t,n,r,o){return e*o-t*Math.sin(2*o)+n*Math.sin(4*o)-r*Math.sin(6*o)},ze=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},qe=function(e){return.375*e*(1+.25*e*(1+.46875*e))},We=function(e){return.05859375*e*e*(1+.75*e)},Ge=function(e){return e*e*e*(35/3072)},Ve=function(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)},He=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t};var Xe={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Ye(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=.3333333333333333*e,t=e*e,n[0]+=.17222222222222222*t,n[1]=.06388888888888888*t,t*=e,n[0]+=.10257936507936508*t,n[1]+=.0664021164021164*t,n[2]=.016415012942191543*t,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Ye(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,s,i,u,l,c,d,f,p=e.x,h=e.y;if(p=I(p-this.long0),this.sphere){if(i=Math.sin(h),f=Math.cos(h),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*r:1+this.sinph0*i+this.cosph0*f*r)<=1e-10)return null;t=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.phi0)<1e-10)return null;n=a-.5*h,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=r}}else{switch(l=0,c=0,d=0,r=Math.cos(p),s=Math.sin(p),i=Math.sin(h),u=Ye(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=u/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:d=1+this.sinb1*l+this.cosb1*c*r;break;case this.EQUIT:d=1+c*r;break;case this.N_POLE:d=o+h,u=this.qp-u;break;case this.S_POLE:d=h-o,u=this.qp+u}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*l-this.sinb1*c*r):(d=Math.sqrt(2/(1+c*r)))*l*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:u>=0?(t=(d=Math.sqrt(u))*s,n=r*(this.mode===this.S_POLE?d:-d)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,s,i,a,u,l,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var h,m=0,b=0;if((n=.5*(h=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(b=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(h)<=1e-10?0:Math.asin(p*b/h),f*=b,p=m*h;break;case this.OBLIQ:n=Math.abs(h)<=1e-10?this.phi0:Math.asin(m*this.sinph0+p*b*this.cosph0/h),f*=b*this.cosph0,p=(m-Math.sin(n)*this.sinph0)*h;break;case this.N_POLE:p=-p,n=o-n;break;case this.S_POLE:n-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),r=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(u=r*this.sinb1+p*s*this.cosb1/a,i=this.qp*u,p=a*this.cosb1*r-p*this.sinb1*s):(u=p*s/a,i=this.qp*u,p=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;u=1-i/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(f,p),l=Math.asin(u),c=this.apa,d=l+l,n=l+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=I(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Je=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=A(this.e3,this.sin_po,this.cos_po),this.qs1=Ye(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=A(this.e3,this.sin_po,this.cos_po),this.qs2=Ye(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ye(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Ye(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,s=this.ns0*I(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,i=this.phi1z(this.e3,n)),s=I(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,o,s,i=Je(.5*t);if(e<1e-10)return i;for(var a=e*e,u=1;u<=25;u++)if(i+=s=.5*(o=1-(r=e*(n=Math.sin(i)))*r)*o/Math.cos(i)*(t/(1-a)-n/o+.5/e*Math.log((1-r)/(1+r))),Math.abs(s)<=1e-7)return i;return null}};var Ze={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y;return r=I(u-this.long0),t=Math.sin(l),n=Math.cos(l),o=Math.cos(r),1,(s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*n*Math.sin(r)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)/s):(i=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),n=Math.sin(o),r=Math.cos(o),i=Je(r*this.sin_p14+e.y*n*this.cos_p14/t),s=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),s=I(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,o=e.y,s=I(r-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Ye(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,n=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=I(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*o:o;for(var r,s,i,a,u=Math.asin(.5*t),l=0;l<30;l++)if(s=Math.sin(u),i=Math.cos(u),a=e*s,u+=r=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=I(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=I(t-this.long0),o=He(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,n=e.y;return e.x=I(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=He(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var nt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ze(this.es),this.e1=qe(this.es),this.e2=We(this.es),this.e3=Ge(this.es),this.ml0=this.a*Be(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,o=e.x,s=e.y,i=I(o-this.long0);if(r=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(s),n=this.a*(He(s-this.lat0)+(1-Math.cos(r))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,n=-1*this.ml0;else{var a=Ve(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(r),n=this.a*Be(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,o,s,i,a,u,l;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=I(r/this.a+this.long0),n=0;else{var c;for(i=this.lat0+o/this.a,a=r*r/this.a/this.a+i*i,u=i,s=20;s;--s)if(u+=l=-1*(i*(u*(c=Math.tan(u))+1)-u-.5*(u*u+a)*c)/((u-i)/c-1),Math.abs(l)<=1e-10){n=u;break}t=I(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(n))}else if(Math.abs(o+this.ml0)<=1e-10)n=0,t=I(this.long0+r/this.a);else{var d,f,p,h,m;for(i=(this.ml0+o)/this.a,a=r*r/this.a/this.a+i*i,u=i,s=20;s;--s)if(m=this.e*Math.sin(u),d=Math.sqrt(1-m*m)*Math.tan(u),f=this.a*Be(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(i*(d*(h=f/this.a)+1)-h-.5*d*(h*h+a))/(this.es*Math.sin(2*u)*(h*h+a-2*i*h)/(4*d)+(i-h)*(d*p-2/Math.sin(2*u))-p),Math.abs(l)<=1e-10){n=u;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=I(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};var rt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,o=e.y-this.lat0,s=n-this.long0,i=o/r*1e-5,a=s,u=1,l=0;for(t=1;t<=10;t++)u*=i,l+=this.A[t]*u;var c,d=l,f=a,p=1,h=0,m=0,b=0;for(t=1;t<=6;t++)c=h*d+p*f,p=p*d-h*f,h=c,m=m+this.B_re[t]*p-this.B_im[t]*h,b=b+this.B_im[t]*p+this.B_re[t]*h;return e.x=b*this.a+this.x0,e.y=m*this.a+this.y0,e},inverse:function(e){var t,n,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,u=i/this.a,l=1,c=0,d=0,f=0;for(t=1;t<=6;t++)n=c*a+l*u,l=l*a-c*u,c=n,d=d+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p.999999999999&&(n=.999999999999),t=Math.asin(n);var r=I(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return e.x=r,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ze(this.es),this.e1=qe(this.es),this.e2=We(this.es),this.e3=Ge(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=A(this.e,this.sinphi,this.cosphi),this.ml1=Be(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=A(this.e,this.sinphi,this.cosphi),this.ml2=Be(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Be(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var o=Be(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-o)}var s=this.ns*I(n-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==n&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=I(this.long0+s/this.ns),r=He(this.g-n/this.a),e.x=o,e.y=r,e;var i=this.g-n/this.a;return r=Ke(i,this.e0,this.e1,this.e2,this.e3),o=I(this.long0+s/this.ns),e.x=o,e.y=r,e},names:["Equidistant_Conic","eqdc"]};var ut={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,s=e.y,i=I(r-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,n=this.y0);var a=Je(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/i-i/Math.PI),l=u*u,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,h=f*(2/c-1),m=h*h,b=Math.PI*this.R*(u*(f-m)+Math.sqrt(l*(f-m)*(f-m)-(m+l)*(p-m)))/(m+l);i<0&&(b=-b),t=this.x0+b;var y=l+f;return b=Math.PI*this.R*(h*y-u*Math.sqrt((m+l)*(l+1)-y*y))/(m+l),n=s>=0?this.y0+b:this.y0-b,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,o,s,i,a,u,l,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(r=e.x/d)*r+(o=e.y/d)*o,d=3*(o*o/(u=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+r*r)*a*a/u/u/u-9*i*a/u/u)/27)/(l=(i-a*a/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,n=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI,t=Math.abs(r)<1e-10?this.long0:I(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(r*r-o*o)+s*s))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var lt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j,g,x,w,S=e.x,O=e.y,E=Math.sin(e.y),M=Math.cos(e.y),T=I(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-O)*Math.sin(T),e.y=this.y0-this.a*(o-O)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+O)*Math.sin(T),e.y=this.y0+this.a*(o+O)*Math.cos(T),e):(_=this.sin_p12*E+this.cos_p12*M*Math.cos(T),v=(y=Math.acos(_))/Math.sin(y),e.x=this.x0+this.a*v*M*Math.sin(T),e.y=this.y0+this.a*v*(this.cos_p12*E-this.sin_p12*M*Math.cos(T)),e):(t=ze(this.es),n=qe(this.es),r=We(this.es),s=Ge(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*Be(t,n,r,s,o),a=this.a*Be(t,n,r,s,O),e.x=this.x0+(i-a)*Math.sin(T),e.y=this.y0-(i-a)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*Be(t,n,r,s,o),a=this.a*Be(t,n,r,s,O),e.x=this.x0+(i+a)*Math.sin(T),e.y=this.y0+(i+a)*Math.cos(T),e):(u=E/M,l=Ve(this.a,this.e,this.sin_p12),c=Ve(this.a,this.e,E),d=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*M)),j=0===(f=Math.atan2(Math.sin(T),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(T)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(T)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=l*j*(1-(g=j*j)*(b=(h=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*h)*(1-b)/6+(x=g*j)/8*(m=p*h)*(1-2*b)+(w=x*j)/120*(b*(4-7*b)-3*p*p*(1-7*b))-w*j/48*m),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,n,r,s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j,g,x,w;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return n=t/this.a,r=Math.sin(n),s=Math.cos(n),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Je(s*this.sin_p12+e.y*r*this.cos_p12/t),u=Math.abs(this.lat0)-o,i=Math.abs(u)<=1e-10?this.lat0>=0?I(this.long0+Math.atan2(e.x,-e.y)):I(this.long0-Math.atan2(-e.x,e.y)):I(this.long0+Math.atan2(e.x*r,t*this.cos_p12*s-e.y*this.sin_p12*r))),e.x=i,e.y=a,e}return l=ze(this.es),c=qe(this.es),d=We(this.es),f=Ge(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*Be(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((p-t)/this.a,l,c,d,f),i=I(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*Be(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((t-p)/this.a,l,c,d,f),i=I(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),b=Math.atan2(e.x,e.y),h=Ve(this.a,this.e,this.sin_p12),y=Math.cos(b),_=-(v=this.e*this.cos_p12*y)*v/(1-this.es),j=3*this.es*(1-_)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-_*(x=(g=t/h)-_*(1+_)*Math.pow(g,3)/6-j*(1+3*_)*Math.pow(g,4)/24)*x/2-g*x*x*x/6,m=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*y),i=I(this.long0+Math.asin(Math.sin(b)*Math.sin(x)/Math.cos(m))),a=Math.atan((1-this.es*w*this.sin_p12/Math.sin(m))*Math.tan(m)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y;return r=I(u-this.long0),t=Math.sin(l),n=Math.cos(l),o=Math.cos(r),1,((s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,s,i,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),n=Je(t/this.a),r=Math.sin(n),s=Math.cos(n),a=this.long0,Math.abs(t)<=1e-10?(u=this.lat0,e.x=a,e.y=u,e):(u=Je(s*this.sin_p14+e.y*r*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?I(this.long0+Math.atan2(e.x,-e.y)):I(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=I(this.long0+Math.atan2(e.x*r,t*this.cos_p14*s-e.y*this.sin_p14*r)),e.x=a,e.y=u,e))},names:["ortho"]},dt=1,ft=2,pt=3,ht=4,mt=5,bt=6,yt=1,vt=2,_t=3,jt=4;function gt(e,t,n,r){var s;return e<1e-10?(r.value=yt,s=0):(s=Math.atan2(t,n),Math.abs(s)<=a?r.value=yt:s>a&&s<=o+a?(r.value=vt,s-=o):s>o+a||s<=-(o+a)?(r.value=_t,s=s>=0?s-l:s+l):(r.value=jt,s+=o)),s}function xt(e,t){var n=e+t;return n<-l?n+=u:n>+l&&(n-=u),n}var wt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=mt:this.lat0<=-(o-a/2)?this.face=bt:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:ht:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,s,i,u,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===mt)s=o-t,n>=a&&n<=o+a?(d.value=yt,r=n-o):n>o+a||n<=-(o+a)?(d.value=vt,r=n>0?n-l:n+l):n>-(o+a)&&n<=-a?(d.value=_t,r=n+o):(d.value=jt,r=n);else if(this.face===bt)s=o+t,n>=a&&n<=o+a?(d.value=yt,r=-n+o):n=-a?(d.value=vt,r=-n):n<-a&&n>=-(o+a)?(d.value=_t,r=-n-o):(d.value=jt,r=n>0?-n+l:-n-l);else{var f,p,h,m,b,y;this.face===ft?n=xt(n,+o):this.face===pt?n=xt(n,+l):this.face===ht&&(n=xt(n,-o)),m=Math.sin(t),b=Math.cos(t),y=Math.sin(n),f=b*Math.cos(n),p=b*y,h=m,this.face===dt?r=gt(s=Math.acos(f),h,p,d):this.face===ft?r=gt(s=Math.acos(p),h,-f,d):this.face===pt?r=gt(s=Math.acos(-f),h,-p,d):this.face===ht?r=gt(s=Math.acos(-p),h,f,d):(s=r=0,d.value=yt)}return u=Math.atan(12/l*(r+Math.acos(Math.sin(r)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(u)*Math.cos(u))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===vt?u+=o:d.value===_t?u+=l:d.value===jt&&(u+=1.5*l),c.x=i*Math.cos(u),c.y=i*Math.sin(u),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,n,r,s,i,a,u,c,d,f,p,h,m={lam:0,phi:0},b={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?b.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(b.value=vt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(b.value=_t,t=t<0?t+l:t-l):(b.value=jt,t+=o),d=l/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(u=1-(r=Math.cos(t))*r*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===mt)c=Math.acos(u),m.phi=o-c,b.value===yt?m.lam=a+o:b.value===vt?m.lam=a<0?a+l:a-l:b.value===_t?m.lam=a-o:m.lam=a;else if(this.face===bt)c=Math.acos(u),m.phi=c-o,b.value===yt?m.lam=-a+o:b.value===vt?m.lam=-a:b.value===_t?m.lam=-a-o:m.lam=a<0?-a-l:-a+l;else{var y,v,_;d=(y=u)*y,v=(d+=(_=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*_)>=1?0:Math.sqrt(1-d),b.value===vt?(d=v,v=-_,_=d):b.value===_t?(v=-v,_=-_):b.value===jt&&(d=v,v=_,_=-d),this.face===ft?(d=y,y=-v,v=d):this.face===pt?(y=-y,v=-v):this.face===ht&&(d=y,y=v,v=-d),m.phi=Math.acos(-_)-o,m.lam=Math.atan2(v,y),this.face===ft?m.lam=xt(m.lam,-o):this.face===pt?m.lam=xt(m.lam,-l):this.face===ht&&(m.lam=xt(m.lam,+o))}return 0!==this.es&&(f=m.phi<0?1:0,p=Math.tan(m.phi),h=this.b/Math.sqrt(p*p+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),f&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},St=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ot=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Et=i/5,Mt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var Tt,Ct={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=I(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Et);r<0?r=0:r>=18&&(r=17);var o={x:Mt(St[r],n=i*(n-.08726646259971647*r))*t,y:Mt(Ot[r],n)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=St[18][0],t.y=e.y<0?-o:o;else{var n=Math.floor(18*t.y);for(n<0?n=0:n>=18&&(n=17);;)if(Ot[n][0]>t.y)--n;else{if(!(Ot[n+1][0]<=t.y))break;++n}var r=Ot[n],i=5*(t.y-r[0])/(Ot[n+1][0]-r[0]);i=function(e,t,n,r){for(var o=t;r;--r){var s=e(o);if(o-=s,Math.abs(s)1024){for(var t=0,n=o.length-s;t=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,n){"use strict";var r=n("./node_modules/axios/lib/helpers/bind.js"),o=n("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n"']/g,F=RegExp(D.source),U=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,K=RegExp(H.source),$=/^\s+|\s+$/g,Y=/^\s+/,X=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",me="["+pe+"]",be="["+fe+"]",ye="\\d+",ve="[\\u2700-\\u27bf]",_e="[a-z\\xdf-\\xf6\\xf8-\\xff]",je="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ge="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="(?:"+_e+"|"+je+")",Me="(?:"+Oe+"|"+je+")",Te="(?:"+be+"|"+ge+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Te+("(?:\\u200d(?:"+[xe,we,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*"),Pe="(?:"+[ve,we,Se].join("|")+")"+Ce,ke="(?:"+[xe+be+"?",be,we,Se,he].join("|")+")",Ae=RegExp("['’]","g"),Ne=RegExp(be,"g"),Ie=RegExp(ge+"(?="+ge+")|"+ke+Ce,"g"),Re=RegExp([Oe+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Oe,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Oe+Ee,"$"].join("|")+")",Oe+"?"+Ee+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Pe].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,Be={};Be[O]=Be[E]=Be[M]=Be[T]=Be[C]=Be[P]=Be["[object Uint8ClampedArray]"]=Be[k]=Be[A]=!0,Be[u]=Be[l]=Be[w]=Be[c]=Be[S]=Be[d]=Be[f]=Be[p]=Be[m]=Be[b]=Be[y]=Be[v]=Be[_]=Be[j]=Be[x]=!1;var ze={};ze[u]=ze[l]=ze[w]=ze[S]=ze[c]=ze[d]=ze[O]=ze[E]=ze[M]=ze[T]=ze[C]=ze[m]=ze[b]=ze[y]=ze[v]=ze[_]=ze[j]=ze[g]=ze[P]=ze["[object Uint8ClampedArray]"]=ze[k]=ze[A]=!0,ze[f]=ze[p]=ze[x]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,Ge=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,He="object"==typeof self&&self&&self.Object===Object&&self,Ke=Ve||He||Function("return this")(),$e=t&&!t.nodeType&&t,Ye=$e&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=Ye&&Ye.exports===$e,Je=Xe&&Ve.process,Qe=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var o=-1,s=null==e?0:e.length;++o-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&>(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Dt=Et({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=Et({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+qe[e]}function Ut(e){return De.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function zt(e,t){return function(n){return e(t(n))}}function qt(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var $t=function e(t){var n,r=(t=null==t?Ke:$t.defaults(Ke.Object(),t,$t.pick(Ke,Fe))).Array,o=t.Date,fe=t.Error,pe=t.Function,he=t.Math,me=t.Object,be=t.RegExp,ye=t.String,ve=t.TypeError,_e=r.prototype,je=pe.prototype,ge=me.prototype,xe=t["__core-js_shared__"],we=je.toString,Se=ge.hasOwnProperty,Oe=0,Ee=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=ge.toString,Te=we.call(me),Ce=Ke._,Pe=be("^"+we.call(Se).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Xe?t.Buffer:void 0,Ie=t.Symbol,De=t.Uint8Array,qe=ke?ke.allocUnsafe:void 0,Ve=zt(me.getPrototypeOf,me),He=me.create,$e=ge.propertyIsEnumerable,Ye=_e.splice,Je=Ie?Ie.isConcatSpreadable:void 0,Qe=Ie?Ie.iterator:void 0,vt=Ie?Ie.toStringTag:void 0,Et=function(){try{var e=es(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ke.Date.now&&o.now,Jt=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Qt=he.ceil,Zt=he.floor,en=me.getOwnPropertySymbols,tn=ke?ke.isBuffer:void 0,nn=t.isFinite,rn=_e.join,on=zt(me.keys,me),sn=he.max,an=he.min,un=o.now,ln=t.parseInt,cn=he.random,dn=_e.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),hn=es(t,"Promise"),mn=es(t,"Set"),bn=es(t,"WeakMap"),yn=es(me,"create"),vn=bn&&new bn,_n={},jn=Ms(fn),gn=Ms(pn),xn=Ms(hn),wn=Ms(mn),Sn=Ms(bn),On=Ie?Ie.prototype:void 0,En=On?On.valueOf:void 0,Mn=On?On.toString:void 0;function Tn(e){if(Gi(e)&&!Ni(e)&&!(e instanceof An)){if(e instanceof kn)return e;if(Se.call(e,"__wrapped__"))return Ts(e)}return new kn(e)}var Cn=function(){function e(){}return function(t){if(!Wi(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Pn(){}function kn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Xn(e,t,n,r,o,s){var i,a=1&t,l=2&t,f=4&t;if(n&&(i=o?n(e,r,o,s):n(e)),void 0!==i)return i;if(!Wi(e))return e;var x=Ni(e);if(x){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return vo(e,i)}else{var N=rs(e),I=N==p||N==h;if(Li(e))return fo(e,a);if(N==y||N==u||I&&!o){if(i=l||I?{}:ss(e),!a)return l?function(e,t){return _o(e,ns(e),t)}(e,function(e,t){return e&&_o(t,ga(t),e)}(i,e)):function(e,t){return _o(e,ts(e),t)}(e,Hn(i,e))}else{if(!ze[N])return o?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case w:return po(e);case c:case d:return new r(+e);case S:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case E:case M:case T:case C:case P:case"[object Uint8ClampedArray]":case k:case A:return ho(e,n);case m:return new r;case b:case j:return new r(e);case v:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new r;case g:return o=e,En?me(En.call(o)):{}}var o}(e,N,a)}}s||(s=new Ln);var R=s.get(e);if(R)return R;s.set(e,i),Yi(e)?e.forEach((function(r){i.add(Xn(r,t,n,r,e,s))})):Vi(e)&&e.forEach((function(r,o){i.set(o,Xn(r,t,n,o,e,s))}));var D=x?void 0:(f?l?Ko:Ho:l?ga:ja)(e);return at(D||e,(function(r,o){D&&(r=e[o=r]),Wn(i,o,Xn(r,t,n,o,e,s))})),i}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var o=n[r],s=t[o],i=e[o];if(void 0===i&&!(o in e)||!s(i))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ve(s);return js((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var o=-1,s=dt,i=!0,a=e.length,u=[],l=t.length;if(!a)return u;n&&(t=pt(t,Pt(n))),r?(s=ft,i=!1):t.length>=200&&(s=At,i=!1,t=new Dn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=Gn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||In),string:new Nn}},Rn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Rn.prototype.get=function(e){return Qo(this,e).get(e)},Rn.prototype.has=function(e){return Qo(this,e).has(e)},Rn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dn.prototype.add=Dn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Dn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new In,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(e,t),this.size=n.size,this};var er=xo(ur),tr=xo(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(a)?t>1?sr(a,t-1,n,r,o):ht(o,a):r||(o[o.length]=a)}return o}var ir=wo(),ar=wo(!0);function ur(e,t){return e&&ir(e,t,ja)}function lr(e,t){return e&&ar(e,t,ja)}function cr(e,t){return ct(t,(function(t){return Bi(e[t])}))}function dr(e,t){for(var n=0,r=(t=ao(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Se.call(e,t)}function br(e,t){return null!=e&&t in me(e)}function yr(e,t,n){for(var o=n?ft:dt,s=e[0].length,i=e.length,a=i,u=r(i),l=1/0,c=[];a--;){var d=e[a];a&&t&&(d=pt(d,Pt(t))),l=an(d.length,l),u[a]=!n&&(t||s>=120&&d.length>=120)?new Dn(a&&d):void 0}d=e[0];var f=-1,p=u[0];e:for(;++f=a)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,o=t.length,s={};++r-1;)a!==e&&Ye.call(a,u,1),Ye.call(e,u,1);return e}function Rr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==s){var s=o;as(o)?Ye.call(e,o,1):Zr(e,o)}}return e}function Dr(e,t){return e+Zt(cn()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return gs(ms(e,t,Ha),e+"")}function Ur(e){return Un(Ca(e))}function Br(e,t){var n=Ca(e);return Ss(n,Yn(t,0,n.length))}function zr(e,t,n,r){if(!Wi(e))return e;for(var o=-1,s=(t=ao(t,e)).length,i=s-1,a=e;null!=a&&++os?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=r(s);++o>>1,i=e[s];null!==i&&!Ji(i)&&(n?i<=t:i=200){var l=t?null:Fo(e);if(l)return Wt(l);i=!1,o=At,u=new Dn}else u=t?[]:a;e:for(;++r=r?e:Vr(e,t,n)}var co=Yt||function(e){return Ke.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new De(t).set(new De(e)),t}function ho(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,s=Ji(e),i=void 0!==t,a=null===t,u=t==t,l=Ji(t);if(!a&&!l&&!s&&e>t||s&&i&&u&&!a&&!l||r&&i&&u||!n&&u||!o)return 1;if(!r&&!s&&!l&&e1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,i&&us(n[0],n[1],i)&&(s=o<3?void 0:s,o=1),t=me(t);++r-1?o[s?t[i]:i]:void 0}}function To(e){return Vo((function(t){var n=t.length,r=n,o=kn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ve(s);if(o&&!a&&"wrapper"==Yo(i))var a=new kn([],!0)}for(r=a?r:n;++r1&&_.reverse(),d&&la))return!1;var l=s.get(e),c=s.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&n?new Dn:void 0;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(Z):[]}(r),n)))}function ws(e){var t=0,n=0;return function(){var r=un(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ss(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$s(e,n)}));function ti(e){var t=Tn(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Vo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new kn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=jo((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var si=Mo(As),ii=Mo(Ns);function ai(e,t){return(Ni(e)?at:er)(e,Jo(t,3))}function ui(e,t){return(Ni(e)?ut:tr)(e,Jo(t,3))}var li=jo((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ci=Fr((function(e,t,n){var o=-1,s="function"==typeof t,i=Ri(e)?r(e.length):[];return er(e,(function(e){i[++o]=s?st(t,e,n):vr(e,t,n)})),i})),di=jo((function(e,t,n){Kn(e,n,t)}));function fi(e,t){return(Ni(e)?pt:Mr)(e,Jo(t,3))}var pi=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var hi=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&us(e,t[0],t[1])?t=[]:n>2&&us(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,sr(t,1),[])})),mi=Xt||function(){return Ke.Date.now()};function bi(e,t,n){return t=n?void 0:t,Bo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var n;if("function"!=typeof t)throw new ve(s);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var vi=Fr((function(e,t,n){var r=1;if(n.length){var o=qt(n,Xo(vi));r|=32}return Bo(e,r,t,n,o)})),_i=Fr((function(e,t,n){var r=3;if(n.length){var o=qt(n,Xo(_i));r|=32}return Bo(t,r,e,n,o)}));function ji(e,t,n){var r,o,i,a,u,l,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ve(s);function h(t){var n=r,s=o;return r=o=void 0,c=t,a=e.apply(s,n)}function m(e){return c=e,u=js(y,t),d?h(e):a}function b(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-c>=i}function y(){var e=mi();if(b(e))return v(e);u=js(y,function(e){var n=t-(e-l);return f?an(n,i-(e-c)):n}(e))}function v(e){return u=void 0,p&&r?h(e):(r=o=void 0,a)}function _(){var e=mi(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return m(l);if(f)return co(u),u=js(y,t),h(l)}return void 0===u&&(u=js(y,t)),a}return t=sa(t)||0,Wi(n)&&(d=!!n.leading,i=(f="maxWait"in n)?sn(sa(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==u&&co(u),c=0,r=l=o=u=void 0},_.flush=function(){return void 0===u?a:v(mi())},_}var gi=Fr((function(e,t){return Qn(e,1,t)})),xi=Fr((function(e,t,n){return Qn(e,sa(t)||0,n)}));function wi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(s);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(wi.Cache||Rn),n}function Si(e){if("function"!=typeof e)throw new ve(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wi.Cache=Rn;var Oi=uo((function(e,t){var n=(t=1==t.length&&Ni(t[0])?pt(t[0],Pt(Jo())):pt(sr(t,1),Pt(Jo()))).length;return Fr((function(r){for(var o=-1,s=an(r.length,n);++o=t})),Ai=_r(function(){return arguments}())?_r:function(e){return Gi(e)&&Se.call(e,"callee")&&!$e.call(e,"callee")},Ni=r.isArray,Ii=Ze?Pt(Ze):function(e){return Gi(e)&&pr(e)==w};function Ri(e){return null!=e&&qi(e.length)&&!Bi(e)}function Di(e){return Gi(e)&&Ri(e)}var Li=tn||su,Fi=et?Pt(et):function(e){return Gi(e)&&pr(e)==d};function Ui(e){if(!Gi(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ki(e)}function Bi(e){if(!Wi(e))return!1;var t=pr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function zi(e){return"number"==typeof e&&e==ra(e)}function qi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Gi(e){return null!=e&&"object"==typeof e}var Vi=tt?Pt(tt):function(e){return Gi(e)&&rs(e)==m};function Hi(e){return"number"==typeof e||Gi(e)&&pr(e)==b}function Ki(e){if(!Gi(e)||pr(e)!=y)return!1;var t=Ve(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==Te}var $i=nt?Pt(nt):function(e){return Gi(e)&&pr(e)==v};var Yi=rt?Pt(rt):function(e){return Gi(e)&&rs(e)==_};function Xi(e){return"string"==typeof e||!Ni(e)&&Gi(e)&&pr(e)==j}function Ji(e){return"symbol"==typeof e||Gi(e)&&pr(e)==g}var Qi=ot?Pt(ot):function(e){return Gi(e)&&qi(e.length)&&!!Be[pr(e)]};var Zi=Ro(Er),ea=Ro((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Ri(e))return Xi(e)?Ht(e):vo(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=rs(e);return(t==m?Bt:t==_?Wt:Ca)(e)}function na(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function oa(e){return e?Yn(ra(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Ji(e))return NaN;if(Wi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var n=se.test(e);return n||ae.test(e)?Ge(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ia(e){return _o(e,ga(e))}function aa(e){return null==e?"":Jr(e)}var ua=go((function(e,t){if(fs(t)||Ri(t))_o(t,ja(t),e);else for(var n in t)Se.call(t,n)&&Wn(e,n,t[n])})),la=go((function(e,t){_o(t,ga(t),e)})),ca=go((function(e,t,n,r){_o(t,ga(t),e,r)})),da=go((function(e,t,n,r){_o(t,ja(t),e,r)})),fa=Vo($n);var pa=Fr((function(e,t){e=me(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&us(t[0],t[1],o)&&(r=1);++n1),t})),_o(e,Ko(e),n),r&&(n=Xn(n,7,Wo));for(var o=t.length;o--;)Zr(n,t[o]);return n}));var Oa=Vo((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return ba(e,n)}))}(e,t)}));function Ea(e,t){if(null==e)return{};var n=pt(Ko(e),(function(e){return[e]}));return t=Jo(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Ma=Uo(ja),Ta=Uo(ga);function Ca(e){return null==e?[]:kt(e,ja(e))}var Pa=Oo((function(e,t,n){return t=t.toLowerCase(),e+(n?ka(t):t)}));function ka(e){return Ua(aa(e).toLowerCase())}function Aa(e){return(e=aa(e))&&e.replace(le,Dt).replace(Ne,"")}var Na=Oo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ia=Oo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ra=So("toLowerCase");var Da=Oo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var La=Oo((function(e,t,n){return e+(n?" ":"")+Ua(t)}));var Fa=Oo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ua=So("toUpperCase");function Ba(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Re)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var za=Fr((function(e,t){try{return st(e,void 0,t)}catch(e){return Ui(e)?e:new fe(e)}})),qa=Vo((function(e,t){return at(t,(function(t){t=Es(t),Kn(e,t,vi(e[t],e))})),e}));function Wa(e){return function(){return e}}var Ga=To(),Va=To(!0);function Ha(e){return e}function Ka(e){return wr("function"==typeof e?e:Xn(e,1))}var $a=Fr((function(e,t){return function(n){return vr(n,e,t)}})),Ya=Fr((function(e,t){return function(n){return vr(e,n,t)}}));function Xa(e,t,n){var r=ja(t),o=cr(t,r);null!=n||Wi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,ja(t)));var s=!(Wi(n)&&"chain"in n&&!n.chain),i=Bi(e);return at(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),o=n.__actions__=vo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Ja(){}var Qa=Ao(pt),Za=Ao(lt),eu=Ao(yt);function tu(e){return ls(e)?Ot(Es(e)):function(e){return function(t){return dr(t,e)}}(e)}var nu=Io(),ru=Io(!0);function ou(){return[]}function su(){return!1}var iu=ko((function(e,t){return e+t}),0),au=Lo("ceil"),uu=ko((function(e,t){return e/t}),1),lu=Lo("floor");var cu,du=ko((function(e,t){return e*t}),1),fu=Lo("round"),pu=ko((function(e,t){return e-t}),0);return Tn.after=function(e,t){if("function"!=typeof t)throw new ve(s);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},Tn.ary=bi,Tn.assign=ua,Tn.assignIn=la,Tn.assignInWith=ca,Tn.assignWith=da,Tn.at=fa,Tn.before=yi,Tn.bind=vi,Tn.bindAll=qa,Tn.bindKey=_i,Tn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ni(e)?e:[e]},Tn.chain=ti,Tn.chunk=function(e,t,n){t=(n?us(e,t,n):void 0===t)?1:sn(ra(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,i=0,a=r(Qt(o/t));so?0:o+n),(r=void 0===r||r>o?o:ra(r))<0&&(r+=o),r=n>r?0:oa(r);n>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!$i(t))&&!(t=Jr(t))&&Ut(e)?lo(Ht(e),0,n):e.split(t,n):[]},Tn.spread=function(e,t){if("function"!=typeof e)throw new ve(s);return t=null==t?0:sn(ra(t),0),Fr((function(n){var r=n[t],o=lo(n,0,t);return r&&ht(o,r),st(e,this,o)}))},Tn.tail=function(e){var t=null==e?0:e.length;return t?Vr(e,1,t):[]},Tn.take=function(e,t,n){return e&&e.length?Vr(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},Tn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Vr(e,(t=r-(t=n||void 0===t?1:ra(t)))<0?0:t,r):[]},Tn.takeRightWhile=function(e,t){return e&&e.length?to(e,Jo(t,3),!1,!0):[]},Tn.takeWhile=function(e,t){return e&&e.length?to(e,Jo(t,3)):[]},Tn.tap=function(e,t){return t(e),e},Tn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ve(s);return Wi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ji(e,t,{leading:r,maxWait:t,trailing:o})},Tn.thru=ni,Tn.toArray=ta,Tn.toPairs=Ma,Tn.toPairsIn=Ta,Tn.toPath=function(e){return Ni(e)?pt(e,Es):Ji(e)?[e]:vo(Os(aa(e)))},Tn.toPlainObject=ia,Tn.transform=function(e,t,n){var r=Ni(e),o=r||Li(e)||Qi(e);if(t=Jo(t,4),null==n){var s=e&&e.constructor;n=o?r?new s:[]:Wi(e)&&Bi(s)?Cn(Ve(e)):{}}return(o?at:ur)(e,(function(e,r,o){return t(n,e,r,o)})),n},Tn.unary=function(e){return bi(e,1)},Tn.union=Gs,Tn.unionBy=Vs,Tn.unionWith=Hs,Tn.uniq=function(e){return e&&e.length?Qr(e):[]},Tn.uniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},Tn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Tn.unset=function(e,t){return null==e||Zr(e,t)},Tn.unzip=Ks,Tn.unzipWith=$s,Tn.update=function(e,t,n){return null==e?e:eo(e,t,io(n))},Tn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,io(n),r)},Tn.values=Ca,Tn.valuesIn=function(e){return null==e?[]:kt(e,ga(e))},Tn.without=Ys,Tn.words=Ba,Tn.wrap=function(e,t){return Ei(io(t),e)},Tn.xor=Xs,Tn.xorBy=Js,Tn.xorWith=Qs,Tn.zip=Zs,Tn.zipObject=function(e,t){return oo(e||[],t||[],Wn)},Tn.zipObjectDeep=function(e,t){return oo(e||[],t||[],zr)},Tn.zipWith=ei,Tn.entries=Ma,Tn.entriesIn=Ta,Tn.extend=la,Tn.extendWith=ca,Xa(Tn,Tn),Tn.add=iu,Tn.attempt=za,Tn.camelCase=Pa,Tn.capitalize=ka,Tn.ceil=au,Tn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sa(n))==n?n:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Yn(sa(e),t,n)},Tn.clone=function(e){return Xn(e,4)},Tn.cloneDeep=function(e){return Xn(e,5)},Tn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Tn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Tn.conformsTo=function(e,t){return null==t||Jn(e,t,ja(t))},Tn.deburr=Aa,Tn.defaultTo=function(e,t){return null==e||e!=e?t:e},Tn.divide=uu,Tn.endsWith=function(e,t,n){e=aa(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Yn(ra(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Tn.eq=Ci,Tn.escape=function(e){return(e=aa(e))&&U.test(e)?e.replace(L,Lt):e},Tn.escapeRegExp=function(e){return(e=aa(e))&&K.test(e)?e.replace(H,"\\$&"):e},Tn.every=function(e,t,n){var r=Ni(e)?lt:nr;return n&&us(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Tn.find=si,Tn.findIndex=As,Tn.findKey=function(e,t){return _t(e,Jo(t,3),ur)},Tn.findLast=ii,Tn.findLastIndex=Ns,Tn.findLastKey=function(e,t){return _t(e,Jo(t,3),lr)},Tn.floor=lu,Tn.forEach=ai,Tn.forEachRight=ui,Tn.forIn=function(e,t){return null==e?e:ir(e,Jo(t,3),ga)},Tn.forInRight=function(e,t){return null==e?e:ar(e,Jo(t,3),ga)},Tn.forOwn=function(e,t){return e&&ur(e,Jo(t,3))},Tn.forOwnRight=function(e,t){return e&&lr(e,Jo(t,3))},Tn.get=ma,Tn.gt=Pi,Tn.gte=ki,Tn.has=function(e,t){return null!=e&&os(e,t,mr)},Tn.hasIn=ba,Tn.head=Rs,Tn.identity=Ha,Tn.includes=function(e,t,n,r){e=Ri(e)?e:Ca(e),n=n&&!r?ra(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Xi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&>(e,t,n)>-1},Tn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ra(n);return o<0&&(o=sn(r+o,0)),gt(e,t,o)},Tn.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e=-9007199254740991&&e<=9007199254740991},Tn.isSet=Yi,Tn.isString=Xi,Tn.isSymbol=Ji,Tn.isTypedArray=Qi,Tn.isUndefined=function(e){return void 0===e},Tn.isWeakMap=function(e){return Gi(e)&&rs(e)==x},Tn.isWeakSet=function(e){return Gi(e)&&"[object WeakSet]"==pr(e)},Tn.join=function(e,t){return null==e?"":rn.call(e,t)},Tn.kebabCase=Na,Tn.last=Us,Tn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ra(n))<0?sn(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,wt,o,!0)},Tn.lowerCase=Ia,Tn.lowerFirst=Ra,Tn.lt=Zi,Tn.lte=ea,Tn.max=function(e){return e&&e.length?rr(e,Ha,hr):void 0},Tn.maxBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),hr):void 0},Tn.mean=function(e){return St(e,Ha)},Tn.meanBy=function(e,t){return St(e,Jo(t,2))},Tn.min=function(e){return e&&e.length?rr(e,Ha,Er):void 0},Tn.minBy=function(e,t){return e&&e.length?rr(e,Jo(t,2),Er):void 0},Tn.stubArray=ou,Tn.stubFalse=su,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=du,Tn.nth=function(e,t){return e&&e.length?kr(e,ra(t)):void 0},Tn.noConflict=function(){return Ke._===this&&(Ke._=Ce),this},Tn.noop=Ja,Tn.now=mi,Tn.pad=function(e,t,n){e=aa(e);var r=(t=ra(t))?Vt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return No(Zt(o),n)+e+No(Qt(o),n)},Tn.padEnd=function(e,t,n){e=aa(e);var r=(t=ra(t))?Vt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return an(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Dr(e,t)},Tn.reduce=function(e,t,n){var r=Ni(e)?mt:Mt,o=arguments.length<3;return r(e,Jo(t,4),n,o,er)},Tn.reduceRight=function(e,t,n){var r=Ni(e)?bt:Mt,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},Tn.repeat=function(e,t,n){return t=(n?us(e,t,n):void 0===t)?1:ra(t),Lr(aa(e),t)},Tn.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Tn.result=function(e,t,n){var r=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Ct(r,t=Jo(t));++n=s)return e;var a=n-Vt(r);if(a<1)return r;var u=i?lo(i,0,a).join(""):e.slice(0,a);if(void 0===o)return u+r;if(i&&(a+=u.length-a),$i(o)){if(e.slice(a).search(o)){var l,c=u;for(o.global||(o=be(o.source,aa(re.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;u=u.slice(0,void 0===d?a:d)}}else if(e.indexOf(Jr(o),a)!=a){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},Tn.unescape=function(e){return(e=aa(e))&&F.test(e)?e.replace(D,Kt):e},Tn.uniqueId=function(e){var t=++Oe;return aa(e)+t},Tn.upperCase=Fa,Tn.upperFirst=Ua,Tn.each=ai,Tn.eachRight=ui,Tn.first=Rs,Xa(Tn,(cu={},ur(Tn,(function(e,t){Se.call(Tn.prototype,t)||(cu[t]=e)})),cu),{chain:!1}),Tn.VERSION="4.17.19",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Tn[e].placeholder=Tn})),at(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Ha)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return vr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Si(Jo(e)))},An.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},ur(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Tn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Tn.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,a=t instanceof An,u=i[0],l=a||Ni(t),c=function(e){var t=o.apply(Tn,ht([e],i));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(a=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,h=a&&!f;if(!s&&l){t=h?t:new An(this);var m=e.apply(t,i);return m.__actions__.push({func:ni,args:[c],thisArg:void 0}),new kn(m,d)}return p&&h?e.apply(this,i):(m=this.thru(c),p?r?m.value()[0]:m.value():m)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=_e[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Tn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ni(o)?o:[],e)}return this[n]((function(n){return t.apply(Ni(n)?n:[],e)}))}})),ur(An.prototype,(function(e,t){var n=Tn[t];if(n){var r=n.name+"";Se.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[Co(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=vo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vo(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ni(e),r=t<0,o=n?e.length:0,s=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(e){for(var t,n=this;n instanceof Pn;){var r=Ts(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Tn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Ws],thisArg:void 0}),new kn(t,this.__chain__)}return this.thru(Ws)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Qe&&(Tn.prototype[Qe]=function(){return this}),Tn}();Ke._=$t,void 0===(o=function(){return $t}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/mapValues.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),s=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var n={};return t=s(t,3),o(e,(function(e,o,s){r(n,o,t(e,o,s))})),n}},"./MapStore2/node_modules/lodash/memoize.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},"./MapStore2/node_modules/lodash/merge.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n){r(e,t,n)}));e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/noop.js":function(e,t){e.exports=function(){}},"./MapStore2/node_modules/lodash/pick.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_basePick.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js")((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},"./MapStore2/node_modules/lodash/property.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseProperty.js"),o=n("./MapStore2/node_modules/lodash/_basePropertyDeep.js"),s=n("./MapStore2/node_modules/lodash/_isKey.js"),i=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e){return s(e)?r(i(e)):o(e)}},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createWrap.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js"),s=o((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=s},"./MapStore2/node_modules/lodash/replace.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(){var e=arguments,t=r(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},"./MapStore2/node_modules/lodash/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},"./MapStore2/node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./MapStore2/node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./MapStore2/node_modules/lodash/toFinite.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./MapStore2/node_modules/lodash/toInteger.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},"./MapStore2/node_modules/lodash/toNumber.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isObject.js"),o=n("./MapStore2/node_modules/lodash/isSymbol.js"),s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_copyArray.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=n("./MapStore2/node_modules/lodash/isSymbol.js"),a=n("./MapStore2/node_modules/lodash/_stringToPath.js"),u=n("./MapStore2/node_modules/lodash/_toKey.js"),l=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return s(e)?r(e,u):i(e)?[e]:o(a(l(e)))}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/node_modules/lodash/toString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"./MapStore2/node_modules/lodash/union.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseUniq.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,1,i,!0))}));e.exports=a},"./MapStore2/node_modules/lodash/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||r(e,t)}},"./MapStore2/node_modules/lodash/values.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseValues.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e){return null==e?[]:r(e,o(e))}},"./MapStore2/node_modules/lodash/without.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseDifference.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),i=o((function(e,t){return s(e)?r(e,t):[]}));e.exports=i},"./MapStore2/node_modules/lodash/wrapperLodash.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_LazyWrapper.js"),o=n("./MapStore2/node_modules/lodash/_LodashWrapper.js"),s=n("./MapStore2/node_modules/lodash/_baseLodash.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isObjectLike.js"),u=n("./MapStore2/node_modules/lodash/_wrapperClone.js"),l=Object.prototype.hasOwnProperty;function c(e){if(a(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return u(e)}return new o(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},"./MapStore2/node_modules/lodash/xor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseXor.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,i))}));e.exports=a},"./MapStore2/web/client/actions/browser.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="CHANGE_BROWSER_PROPERTIES",o=function(e){return{type:r,newProperties:e}}},"./MapStore2/web/client/actions/controls.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o="TOGGLE_CONTROL",s="SET_CONTROL_PROPERTY",i="SET_CONTROL_PROPERTIES",a="RESET_CONTROLS";function u(e,t){return{type:o,control:e,property:t}}function l(e,t,n,r){return{type:s,control:e,property:t,value:n,toggle:r}}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[];return{type:a,skip:e}}},"./MapStore2/web/client/actions/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return j})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return x})),n.d(t,"s",(function(){return w})),n.d(t,"q",(function(){return S})),n.d(t,"u",(function(){return O})),n.d(t,"v",(function(){return E})),n.d(t,"y",(function(){return M})),n.d(t,"x",(function(){return T})),n.d(t,"w",(function(){return C})),n.d(t,"z",(function(){return P})),n.d(t,"C",(function(){return k})),n.d(t,"A",(function(){return A})),n.d(t,"k",(function(){return N})),n.d(t,"r",(function(){return I})),n.d(t,"t",(function(){return R})),n.d(t,"B",(function(){return D})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return F})),n.d(t,"S",(function(){return U})),n.d(t,"F",(function(){return B})),n.d(t,"I",(function(){return z})),n.d(t,"H",(function(){return q})),n.d(t,"K",(function(){return W})),n.d(t,"J",(function(){return G})),n.d(t,"M",(function(){return V})),n.d(t,"O",(function(){return H})),n.d(t,"Q",(function(){return K})),n.d(t,"P",(function(){return $})),n.d(t,"V",(function(){return Y})),n.d(t,"X",(function(){return X})),n.d(t,"R",(function(){return J})),n.d(t,"Y",(function(){return Q})),n.d(t,"Z",(function(){return Z})),n.d(t,"ab",(function(){return ee})),n.d(t,"bb",(function(){return te})),n.d(t,"cb",(function(){return ne})),n.d(t,"L",(function(){return re})),n.d(t,"T",(function(){return oe})),n.d(t,"eb",(function(){return se})),n.d(t,"W",(function(){return ie})),n.d(t,"G",(function(){return ae})),n.d(t,"N",(function(){return ue})),n.d(t,"U",(function(){return le})),n.d(t,"fb",(function(){return ce})),n.d(t,"db",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/isString.js"),o=n.n(r),s=n("./node_modules/uuid/index.js"),i=n.n(s),a=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),u="GEOSTORY:ADD",l="GEOSTORY:ADD_RESOURCE",c="GEOSTORY:CHANGE_MODE",d="GEOSTORY:CLEAR_SAVE_ERROR",f="GEOSTORY:EDIT_RESOURCE",p="GEOSTORY:EDIT_WEBPAGE",h="GEOSTORY:LOAD_GEOSTORY",m="GEOSTORY:LOADING_GEOSTORY",b="GEOSTORY:MOVE",y="GEOSTORY:REMOVE",v="GEOSTORY:SAVE_STORY",_="GEOSTORY:SAVE_ERROR",j="GEOSTORY:STORY_SAVED",g="GEOSTORY:SELECT_CARD",x="GEOSTORY:SET_CONTROL",w="GEOSTORY:SET_RESOURCE",S="GEOSTORY:SET_CURRENT_STORY",O="GEOSTORY:SET_WEBPAGE_URL",E="GEOSTORY:TOGGLE_CARD_PREVIEW",M="GEOSTORY:TOGGLE_SETTINGS_PANEL",T="GEOSTORY:TOGGLE_SETTING",C="GEOSTORY:TOGGLE_CONTENT_FOCUS",P="GEOSTORY:UPDATE",k="GEOSTORY:UPDATE_SETTING",A="GEOSTORY:UPDATE_CURRENT_PAGE",N="GEOSTORY:REMOVE_RESOURCE",I="GEOSTORY:SET_PENDING_CHANGES",R="GEOSTORY:SET_UPDATE_URL_SCROLL",D="GEOSTORY:UPDATE_MEDIA_EDITOR_SETTINGS",L=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e};return{type:u,id:n&&n.id||i()(),path:e,position:t,element:o()(n)&&Object(a.q)(n,r)||n}},F=function(e,t,n){return{type:l,id:e,mediaType:t,data:n}},U=function(e){return{type:c,mode:e?a.f.EDIT:a.f.VIEW}},B=function(e,t,n){return{type:f,id:e,mediaType:t,data:n}},z=function(e,t){return{type:h,id:e,options:t}},q=function(e){return{type:"GEOSTORY:GEOSTORY_LOADED",id:e}},W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:m,value:e,name:t}},G=function(e){return{type:"GEOSTORY:LOAD_GEOSTORY_ERROR",error:e}},V=function(e){return{type:y,path:e}},H=function(e){return{type:_,error:e}},K=function(e,t){return{type:x,control:e,value:t}},$=function(e){return{type:g,card:e}},Y=function(e){return{type:w,resource:e}},X=function(e){return{type:j,id:e}},J=function(e){return{type:S,story:e}},Q=function(){return{type:E}},Z=function(e){return{type:T,option:e}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:M,withSave:e}},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"replace";return{type:P,path:e,element:t,mode:n}},ne=function(e){var t=e.sectionId,n=e.columnId;return{type:A,sectionId:t,columnId:n}},re=function(e,t,n){return{type:b,source:e,target:t,position:n}},oe=function(e,t,n,r,o){return{type:C,status:e,target:t,selector:n,hideContent:r,path:o}},se=function(e,t){return{type:k,prop:e,value:t}},ie=function(e){return{type:O,src:e}},ae=function(e){var t=e.path,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GEOSTORY";return{type:p,path:t,owner:n}},ue=function(e,t){return{type:N,id:e,mediaType:t}},le=function(e){return{type:I,value:e}},ce=function(e){return{type:R,value:e}},de=function(e){return{type:D,mediaEditorSettings:e}}},"./MapStore2/web/client/actions/localConfig.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="LOCAL_CONFIG_LOADED";function o(e){return{type:r,config:e}}},"./MapStore2/web/client/actions/locale.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/es6-promise/dist/es6-promise.js"),s=n("./MapStore2/web/client/libs/ajax.js"),i=n.n(s),a=n("./MapStore2/web/client/actions/notifications.js"),u=n("./MapStore2/web/client/utils/LocaleUtils.js"),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c="CHANGE_LOCALE",d="LOCALE_LOAD_ERROR";function f(e){return{type:c,messages:e.messages,locale:e.locale}}function p(e){return{type:d,error:e}}function h(e,t){return function(n){var s=t;s||(s=Object(u.h)());var c=Object(r.castArray)(e||l.default.getConfigProp("translationsPath"));o.Promise.all(c.map((function(e){return i.a.get(e+"/data.".concat(s,".json")).catch((function(e){return e}))}))).then((function(e){var o=e.filter((function(e){return 200===e.status}));if(e.filter((function(e){return 404!==e.status&&200!==e.status})).length>0||0===o.length){var s=e[0];n(p(s)),n(Object(a.f)({title:"notification.warning",message:0===o.length?"localeErrors.404":"Error loading locale",action:{label:"notification.warning"},position:"tc"}))}else n(f(o.reduce((function(e,o){if("string"==typeof o.data){try{JSON.parse(o.data)}catch(e){n(p("Locale file broken for ("+t+"): "+e.message))}return e}return Object(r.merge)(e,o.data)}),{})))}))}}},"./MapStore2/web/client/actions/maps.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"o",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"y",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"t",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"u",(function(){return v})),n.d(t,"x",(function(){return _})),n.d(t,"v",(function(){return j})),n.d(t,"d",(function(){return g})),n.d(t,"w",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"p",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"s",(function(){return E})),n.d(t,"r",(function(){return M})),n.d(t,"K",(function(){return T})),n.d(t,"D",(function(){return C})),n.d(t,"z",(function(){return P})),n.d(t,"N",(function(){return k})),n.d(t,"B",(function(){return A})),n.d(t,"M",(function(){return N})),n.d(t,"E",(function(){return I})),n.d(t,"J",(function(){return R})),n.d(t,"C",(function(){return D})),n.d(t,"F",(function(){return L})),n.d(t,"I",(function(){return F})),n.d(t,"G",(function(){return U})),n.d(t,"H",(function(){return B})),n.d(t,"L",(function(){return z})),n.d(t,"A",(function(){return q}));n("./MapStore2/web/client/api/GeoStoreDAO.js");var r="MAPS_LIST_LOADED",o="MAPS_LIST_LOADING",s="MAPS_LIST_LOAD_ERROR",i="MAPS_GET_MAP_RESOURCES_BY_CATEGORY",a="MAPS_LOAD_MAP",u="MAP_UPDATING",l="MAP_CREATED",c="MAP_DELETING",d="MAP_DELETED",f="ATTRIBUTE_UPDATED",p="THUMBNAIL_ERROR",h="MAP_ERROR",m="SAVING_MAP",b="PERMISSIONS_LIST_LOADING",y="MAPS_SEARCH_TEXT_CHANGED",v="MAPS:SEARCH_FILTER_CHANGED",_="MAPS:SET_SEARCH_FILTER",j="MAPS:SEARCH_FILTER_CLEAR_ALL",g="MAPS:LOAD_CONTEXTS",x="MAPS:SET_CONTEXTS",w="MAPS:LOADING",S="METADATA_CHANGED",O="MAPS:DELETE_MAP",E="SAVE_MAP_RESOURCE",M="MAPS:RELOAD_MAPS";function T(e,t){return{type:o,searchText:e,params:t}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,limit:12};return{type:a,geoStoreUrl:e,searchText:t,params:n}}function P(e,t,n,r){return{type:i,map:e,searchText:t,opts:n,searchFilter:r}}function k(e){return{type:_,searchFilter:e}}function A(e,t,n,r){return{type:g,searchText:e,options:t,delayLoad:n,force:r}}function N(e){return{type:x,contexts:e}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:w,name:t,value:e}}function R(e,t,n){return{type:r,params:t,maps:e,searchText:n}}function D(e){return{type:s,error:e}}function L(e,t,n,r){return{type:l,resourceId:e,metadata:t,content:n,error:r}}function F(e){return{type:u,resourceId:e}}function U(e,t,n){return{type:d,resourceId:e,result:t,error:n}}function B(e,t,n){return{type:c,resourceId:e,result:t,error:n}}function z(e){return{type:m,metadata:e}}var q=function(){return{type:"FEATURED_MAPS:INVALIDATE"}}},"./MapStore2/web/client/actions/notifications.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";return o(o({type:i},e),{},{uid:e.uid||Date.now(),level:t})}function c(e){return{type:a,uid:e}}function d(e){return l(e,"success")}function f(e){return l(e,"error")}function p(e){return l(e,"warning")}function h(e){return l(e,"info")}function m(){return{type:u}}function b(e){return e}},"./MapStore2/web/client/actions/print.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"j",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return j})),n.d(t,"n",(function(){return g})),n.d(t,"s",(function(){return x})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return O}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function s(e){return(s="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)}var i="PRINT_CAPABILITIES_LOADED",a="PRINT_CAPABILITIES_ERROR",u="SET_PRINT_PARAMETER",l="CONFIGURE_PRINT_MAP",c="CHANGE_PRINT_ZOOM_LEVEL",d="CHANGE_MAP_PRINT_PREVIEW",f="PRINT_SUBMITTING",p="PRINT_ERROR",h="PRINT_CREATED",m="PRINT_CANCEL";function b(){return{type:f}}function y(){return{type:m}}function v(e){return{type:a,error:e}}function _(e){return{type:p,error:e}}function j(e,t){return function(n){return o.a.post(e,t).then((function(e){if("object"===s(e.data))n(function(e){return{type:h,url:e}}(e.data&&e.data.getURL));else try{JSON.parse(e.data)}catch(e){n(_("Error on reading print result: "+e.data))}})).catch((function(e){n(_("Error on printing: "+e.data))}))}}function g(e){return function(t){return o.a.get(e).then((function(n){if("object"===s(n.data))t((r=n.data,{type:i,capabilities:r}));else try{JSON.parse(n.data)}catch(n){t(v("Print configuration broken ("+e+"): "+n.data))}var r})).catch((function(n){t(v("Print configuration not available ("+e+"): "+n.data))}))}}function x(e,t){return{type:u,name:e,value:t}}function w(e,t,n,r,o,s,i){return{type:l,center:e,zoom:t,scaleZoom:n,scale:r,layers:o,projection:s,currentLocale:i}}function S(e,t){return{type:c,zoom:e,scale:t}}function O(e,t,n,r,o,s){return{type:d,center:e,zoom:t,bbox:n,size:r,mapStateSource:o,projection:s}}},"./MapStore2/web/client/actions/security.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return c}));n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/web/client/utils/SecurityUtils.js"),n("./MapStore2/web/client/actions/maps.js"),n("./MapStore2/web/client/utils/ConfigUtils.js");var r="LOGIN_SUCCESS",o="LOGIN_FAIL",s="RESET_ERROR",i="CHANGE_PASSWORD_SUCCESS",a="CHANGE_PASSWORD_FAIL",u="LOGOUT",l="REFRESH_SUCCESS",c="SESSION_VALID"},"./MapStore2/web/client/api/GeoStoreDAO.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/uuid/v1.js"),a=n.n(i),u=n("./node_modules/xml2js/lib/xml2js.js"),l=n.n(u),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js");function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes||Object(r.omit)(e,["name","description","id"]),n=Object.keys(t).map((function(e){return""+e+""+t[e]+"STRING"})),o="";return n.length>0&&(o=""+n.join("")+""),o},w=function(e){return e?"true":"false"},S={mapsError:function(e){return 403===e.status||404===e.status||409===e.status||500===e.status?{title:"map.mapError.errorTitle",message:"map.mapError.error"+e.status}:{title:"map.mapError.errorTitle",message:"map.mapError.errorDefault"}}};Object(p.i)("geostore",v({},S));var O={createAttributeList:x,generateMetadata:g,authProviderName:"geostore",addBaseUrl:function(e){return s()({},e,{baseURL:e&&e.baseURL||f.default.getDefaults().geoStoreUrl})},getData:function(e,t){var n="data/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getResource:function(e,t){return d.a.get("resources/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourceIdByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t,this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data.Resource.id")}))},getResourceDataByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t+"/data",this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data")}))},getShortResource:function(e,t){return d.a.get("extjs/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourcesByCategory:function(e,t,n){var r="extjs/search/category/"+e+"/*"+(t||"*")+"*/thumbnail,details,featured";return d.a.get(r,this.addBaseUrl(n)).then((function(e){return e.data}))},createCategory:function(e){return d.a.post("categories","".concat(e,""),this.addBaseUrl({headers:{"Content-Type":"application/xml"}})).then((function(e){return e.data}))},getUserDetails:function(e,t,n){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({auth:{username:e,password:t},params:{includeattributes:!0}},n))).then((function(e){return e.data}))},login:function(e,t,n){var o,s=this;return d.a.post("session/login",null,this.addBaseUrl(Object(r.merge)(e&&t?{auth:{username:e,password:t}}:{},n))).then((function(e){return o=e.data,d.a.get("users/user/details",s.addBaseUrl(Object(r.merge)({headers:{Authorization:"Bearer "+e.data.access_token},params:{includeattributes:!0}},n)))})).then((function(e){return v(v({},e.data),o)}))},changePassword:function(e,t,n){return d.a.put("users/user/"+e.id,""+t+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},updateResourceAttribute:function(e,t,n,o,s){return d.a.put("resources/resource/"+e+"/attributes/",{restAttribute:{name:t,value:n}},this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/json"}},s)))},getResourceAttribute:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.a.get("resources/resource/"+e+"/attributes/"+t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},getResourceAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.a.get("resources/resource/"+e+"/attributes",this.addBaseUrl(v({headers:{Accept:"application/json"}},t))).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data;return t})).then((function(e){return Object(r.castArray)(Object(r.get)(e,"AttributeList.Attribute")||[])})).then((function(e){return e||[]}))},getResourcePermissions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return O.getPermissions(e,t).then((function(e){return Object(r.castArray)(n?Object(r.get)(e,"SecurityRuleList.SecurityRule"):e)})).then((function(e){return e&&e[0]&&""!==e[0]?e:[]}))},putResourceMetadata:function(e,t,n,o){return d.a.put("resources/resource/"+e,""+g(t,n)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},putResourceMetadataAndAttributes:function(e,t,n){return d.a.put("resources/resource/"+e,""+g(t.name,t.description)+x(t)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},putResource:function(e,t,n){return d.a.put("data/"+e,t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"string"==typeof t?"text/plain; charset=utf-8":'application/json; charset=utf-8"'}},n)))},writeSecurityRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+(Object(r.castArray)(e.SecurityRule)||[]).map((function(e){if(e.canRead||e.canWrite){if(e.user)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.user.id||"")+""+(e.user.name||"")+"";if(e.group)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.group.id||"")+""+(e.group.groupName||"")+""}return""})).join("")+""},updateResourcePermissions:function(e,t){var n=O.writeSecurityRules(t.SecurityRuleList);return d.a.post("resources/resource/"+e+"/permissions",n,this.addBaseUrl({headers:{"Content-Type":"application/xml"}}))},createResource:function(e,t,n,o){var s=e.name,i=e.description||"",a=x(e);return d.a.post("resources/",""+g(s,i)+""+(n||"")+""+a+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},deleteResource:function(e,t){return d.a.delete("resources/resource/"+e,this.addBaseUrl(Object(r.merge)({},t)))},getUserGroups:function(e){return d.a.get("usergroups/",this.addBaseUrl(e)).then((function(e){return e.data}))},getPermissions:function(e,t){var n="resources/resource/"+e+"/permissions";return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getAvailableGroups:function(e){return e&&"ADMIN"===e.role?d.a.get("usergroups/?all=true&users=false",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return function(e){if(!e||!e.UserGroupList||!e.UserGroupList.UserGroup)return[];var t=function(e){return Object(r.pick)(e,["id","groupName","description"])};return Object(r.isArray)(e.UserGroupList.UserGroup)?e.UserGroupList.UserGroup.filter((function(e){return!!e.id})).map(t):[t(e.UserGroupList.UserGroup)]}(e.data)})):d.a.get("users/user/details",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return(t=e.data)&&t.User&&t.User.groups&&t.User.groups.group&&Object(r.isArray)(t.User.groups.group)?t.User.groups.group.filter((function(e){return!!e.id})).map((function(e){return Object(r.pick)(e,["id","groupName","description"])})):Object(r.has)(t.User.groups.group,"id","groupName")?[t.User.groups.group]:[];var t}))},getUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/users"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{params:{includeattributes:!0}},n="users/user/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},updateUser:function(e,t,n){var r="users/user/"+e,o=s()({},t);return""===o.newPassword&&delete o.newPassword,d.a.put(r,{User:o},this.addBaseUrl(n)).then((function(e){return e.data}))},createUser:function(e,t){return d.a.post("users/",{User:O.utils.initUser(e)},this.addBaseUrl(t)).then((function(e){return e.data}))},deleteUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="users/user/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroups:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/groups"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){var t=e.data.UserGroup,n=t&&t.restUsers&&t.restUsers.User;return v(v({},t),{},{users:n&&(Array.isArray(n)?n:[n])||[]})}))},createGroup:function(e,t){var n;return d.a.post("usergroups/",{UserGroup:v({},e)},this.addBaseUrl(t)).then((function(r){return n=r.data,O.updateGroupMembers(v(v({},e),{},{id:n}),t)})).then((function(){return n}))},updateGroupMembers:function(e,t){var n=this;if(e.newUsers){var o=e.users||e.restUsers&&e.restUsers.User||[],s=(o=Array.isArray(o)?o:[o]).filter((function(t){return Object(r.findIndex)(e.newUsers,(function(e){return e.id===t.id}))<0})),i=e.newUsers.filter((function(e){return Object(r.findIndex)(o,(function(t){return t.id===e.id}))<0})),a=s.map((function(r){return function(){return n.removeUserFromGroup(r.id,e.id,t)}})),u=i.map((function(t){return function(){return n.addUserToGroup(t.id,e.id)}}),t),l=[].concat(h(a.map((function(e){return e.call(n)}))),h(u.map((function(e){return e()}))));return d.a.all(l).then((function(){return v(v({},e),{},{newUsers:null,restUsers:{User:e.newUsers},users:e.newUsers})}))}return new Promise((function(t){t(v({},e))}))},deleteGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},addUserToGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.post(r,null,this.addBaseUrl(n))},removeUserFromGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.delete(r,this.addBaseUrl(n))},verifySession:function(e){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({params:{includeattributes:!0}},e))).then((function(e){return e.data}))},refreshToken:function(e,t,n){var r="session/refresh/"+e+"/"+t;return d.a.post(r,null,this.addBaseUrl(n)).then((function(e){return e.data}))},searchListByAttributes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/extjs/search/list",r=j.buildObject(e);return d.a.post(n,r,O.addBaseUrl(v(v({},t),{},{headers:{"Content-Type":"application/xml",Accept:"application/json"}}))).then((function(e){return e.data}))},utils:{initUser:function(e){var t=s()({},e);t.newPassword&&(t.password=t.newPassword);var n={name:"UUID",value:a()()};return t.attribute=t.attribute&&t.attribute.length>0?[].concat(h(t.attribute),[n]):[n],t}},errorParser:S};t.a=O},"./MapStore2/web/client/api/media/index.js":function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"create",(function(){return b}));var o={};n.r(o),n.d(o,"load",(function(){return O})),n.d(o,"getData",(function(){return E}));var s=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/uuid/index.js"),u=n.n(a),l=n("./MapStore2/web/client/actions/geostory.js"),c=n("./MapStore2/web/client/selectors/geostory.js"),d=n("./MapStore2/web/client/selectors/mediaEditor.js"),f=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),p=function(e){var t=e.store;return function(e){var n=e.mediaType,r=e.source,o=e.data;return s.Observable.of(u()()).do((function(e){return t.dispatch(Object(l.E)(e,n,o))})).map((function(e){return{id:e,mediaType:n,data:o,source:r}}))}},h=function(e){var t=e.store;return function(e){var n=e.mediaType,r=e.params,o=Object(c.t)(t.getState()).length?Object(i.groupBy)(Object(c.t)(t.getState()),"type"):{},a=r.page,u=r.pageSize,l=a*u,d=r.q||"",p=Object(f.n)(o[n]||[],d);return s.Observable.of({resources:p.filter((function(e,t){return t>=0&&t0&&void 0!==arguments[0]?arguments[0]:{};return{data:w(w({},e),{},{thumbnail:decodeURIComponent(e.thumbnail||"")}),id:u()(),type:"map"}})),totalCount:n||0})})).catch((function(){return s.Observable.of(o)}))},E=function(e){var t=e.selectedItem;return t&&"map"===t.type&&t.data&&t.data.id&&!t.data.layers?Object(g.d)(t.data.id).switchMap((function(e){var t,n=e.id,r=e.data,o=e.attributes,i=e.creation,a=e.canCopy,u=e.canDelete,l=e.canEdit,c=e.name,d=e.description,f=r,p=f.version?Object(j.normalizeConfig)(f.map):Object(j.convertFromLegacy)(f),h=Object(_.excludeGoogleBackground)(p.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e}))),m=w(w({},p&&p.map||{}),{},{id:n,groups:p&&p.groups||[],layers:null!=p&&null!==(t=p.map)&&void 0!==t&&t.sources?h.map((function(e){var t=Object(_.extractTileMatrixFromSources)(p.map.sources,e);return w(w({},e),t)})):h});return s.Observable.of(w(w(w({},m),o),{},{id:n,creation:i,canCopy:a,canDelete:u,canEdit:l,name:c,description:d,thumbnail:decodeURIComponent(o.thumbnail||""),type:"map"}))})):s.Observable.of(null)};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return"rest/geostore/data/".concat(e).concat(t)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceAttributes(e)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name;return t(n)})).map((function(e){var t=e.value;return Object(l.a)(t)})).filter((function(e){return!Object(a.isNil)(e)}))}))},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.concat(t)},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return t?o.Observable.defer((function(){return n.updateResourcePermissions(e,{SecurityRuleList:{SecurityRule:t}})})):o.Observable.empty()},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return"NODATA"===n.data?o.Observable.fromPromise(i.deleteResource(r)).catch((function(){return o.Observable.of("DUMMY")})).switchMap((function(){return o.Observable.fromPromise(i.updateResourceAttribute(e,t,"NODATA"))})):o.Observable.forkJoin([i.putResource(r,n.data).switchMap((function(){return o.Observable.defer((function(){return i.updateResourceAttribute(e,t,v(r,n.tail))}))}))].concat(h(s?[g(r,s,i)]:[])))},w=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return"NODATA"!==n.data?o.Observable.defer((function(){return s.createResource({name:"".concat(e,"-").concat(t,"-").concat(i()())},n.data,n.category)})).pluck("data").switchMap((function(i){return o.Observable.forkJoin([o.Observable.defer((function(){return s.updateResourceAttribute(e,t,v(i,n.tail))}))].concat(h(r?[g(i,r,s)]:[]))).map((function(){return i}))})):o.Observable.of(-1)},S=function(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return o.Observable.defer((function(){return s.getResourceAttributes(e)})).switchMap((function(o){var i,u=null===(i=Object(a.find)(o,{name:t}))||void 0===i?void 0:i.value;return Object(l.a)(u)?x(e,t,n,Object(l.a)(u),r,s):w(e,t,n,r,s)})).catch((function(o){return w(e,t,n,r,s,o)}))},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.a;return _(e,(function(e){return!Object(a.includes)(Object.keys(t),e)})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?o.Observable.of([]):o.Observable.forkJoin(e.map((function(e){return g(e,n,r)})))}))},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.includeAttributes,r=void 0===n||n,s=t.withData,i=void 0===s||s,a=t.withPermissions,l=void 0!==a&&a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.forkJoin([o.Observable.defer((function(){return c.getShortResource(e)})).pluck("ShortResource")].concat(h(r?[o.Observable.defer((function(){return c.getResourceAttributes(e)}))]:[]),h(i?[o.Observable.defer((function(){return c.getData(e)}))]:[]),h(l?[o.Observable.defer((function(){return c.getResourcePermissions(e,{},!0)}))]:[]))).map((function(e){var t=p(e,4),n=t[0],r=t[1],o=t[2],s=t[3];return d(d({},n),{},{attributes:(r||[]).reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{}),data:o,permissions:s})}))},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceIdByName(e,t)}))},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.getResourceDataByName(e,t)}))},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?"*":t,r=e.category,s=e.options,i=void 0===s?{params:{start:0,limit:10},includeAttributes:!1,withData:!1,withPermission:!1}:s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return a.getResourcesByCategory(r,n,i)})).map((function(e){var t=e.results,n=void 0===t?[]:t,r=e.totalCount,o=void 0===r?0:r,s=i.includeAttributes,u=i.withData,l=i.withPermission;return s||u||l?{totalCount:o,results:n.map((function(e){var t=e.id;return E(t,i,a)}))}:{totalCount:o,results:n}}))},P=function(e){var t=e.data,n=e.category,r=e.metadata,s=e.permission,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return l.createResource(r,t,n)})).pluck("data").switchMap((function(e){return o.Observable.defer((function(){return l.getResourcePermissions(e)})).map((function(e){return j(e,s)})).switchMap((function(t){return g(e,t,l).map((function(){return{id:e,permission:t}}))}))})).switchMap((function(e){var t=e.id,n=e.permission;return Object.keys(a).length>0?o.Observable.forkJoin(Object.keys(a).filter((function(e){return a[e].data&&"NODATA"!==a[e].data})).map((function(e){return w(t,e,a[e],n,l)}))).map((function(){return t})):o.Observable.of(t)}))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return t.createCategory(e)}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.data,r=e.permission,s=e.metadata,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a,c=Object.keys(a);return o.Observable.forkJoin([o.Observable.defer((function(){return l.putResourceMetadataAndAttributes(t,s)})).switchMap((function(e){return n?o.Observable.defer((function(){return l.putResource(t,n)})):o.Observable.of(e)})).switchMap((function(e){return r?o.Observable.defer((function(){return g(t,r,l)})):o.Observable.of(e)})),(c.length>0?o.Observable.forkJoin.apply(o.Observable,h(c.map((function(e){return S(t,e,a[e],r,l)})))):o.Observable.of([])).switchMap((function(){return r?o.Observable.defer((function(){return O(t,a,r,l)})):o.Observable.of(-1)}))]).map((function(){return t}))},N=function(e){var t=e.id,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.deleteLinkedResources,s=void 0===r||r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return(s?_(t,(function(){return!0}),i):o.Observable.of([])).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return o.Observable.forkJoin([t].concat(h(e)).map((function(e){return i.deleteResource(e)})))}))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return n.searchListByAttributes(e,t)})).switchMap((function(e){if(!e||!Object(a.get)(e,"ExtResourceList.Resource"))return o.Observable.of({results:[],totalCount:0});var r=Object(a.get)(e,"ExtResourceList.Resource",[]),s=(Object(a.isArray)(r)?r:[r]).map((function(e){return d(d({},Object(a.omit)(e,"Attributes")),{},{attributes:(t=e,n=Object(a.get)(t,"Attributes.attribute"),r=Object(a.isArray)(n)&&n||Object(a.isObject)(n)&&[n],r&&r.reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{})||{})});var t,n,r}));return(t.withPermissions?o.Observable.forkJoin(s.map((function(e){return o.Observable.defer((function(){return n.getResourcePermissions(e.id,{},!0)})).map((function(t){return d(d({},e),{},{permissions:t})}))}))):o.Observable.of(s)).map((function(t){return{results:t,totalCount:Object(a.get)(e,"ExtResourceList.ResourceCount")}}))}))},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return s.updateResourceAttribute(t,n,r)})).switchMap((function(){return o.Observable.of(t)}))},D=n("./MapStore2/web/client/utils/ConfigUtils.js");n.d(t,"a",(function(){return F})),n.d(t,"g",(function(){return U})),n.d(t,"d",(function(){return B})),n.d(t,"b",(function(){return z})),n.d(t,"e",(function(){return q})),n.d(t,"h",(function(){return W})),n.d(t,"i",(function(){return G})),n.d(t,"f",(function(){return V}));var L={geostore:r},F=function(e,t){L[e]=t},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"geostore";y.api=e},B=function(){var e;return(e=y.getApi()).getResource.apply(e,arguments)},z=function(){var e;return(e=y.getApi()).createResource.apply(e,arguments)},q=function(){var e;return(e=y.getApi()).getResources.apply(e,arguments)},W=function(){var e;return(e=y.getApi()).updateResource.apply(e,arguments)},G=function(){var e;return(e=y.getApi()).updateResourceAttribute.apply(e,arguments)},V=function(){var e;return(e=y.getApi()).searchListByAttributes.apply(e,arguments)};y={api:"geostore",addApi:F,setApi:U,getApi:function(){return L[D.default.getConfigProp("persistenceApi")||y.api]},getResource:B,getResourceIdByName:function(){var e;return(e=y.getApi()).getResourceIdByName.apply(e,arguments)},getResourceDataByName:function(){var e;return(e=y.getApi()).getResourceDataByName.apply(e,arguments)},createResource:z,createCategory:function(){var e;return(e=y.getApi()).createCategory.apply(e,arguments)},getResources:q,updateResource:W,updateResourceAttribute:G,deleteResource:function(){var e;return(e=y.getApi()).deleteResource.apply(e,arguments)},searchListByAttributes:V};t.c=y},"./MapStore2/web/client/components/I18N/Localized.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-intl/lib/index.es.js");function u(e){return(u="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,o){return"string"==typeof t[o]?c(v({},n+o,t[o]),r):c(c({},e.flattenMessages(t[o],n+o+".")),r)}),{})})),e}return t=s,(n=[{key:"getChildContext",value:function(){return{locale:this.props.locale,messages:this.props.messages}}},{key:"render",value:function(){var e=this.props.children;return this.props.messages&&this.props.locale?("function"==typeof e&&(e=e()),i.a.createElement(a.IntlProvider,{key:this.props.locale,locale:this.props.locale,messages:this.flattenMessages(this.props.messages)},e)):this.props.loadingError?i.a.createElement("div",{className:"loading-locale-error"},this.props.loadingError):null}}])&&f(t.prototype,n),r&&f(t,r),s}(i.a.Component);v(_,"propTypes",{locale:o.a.string,messages:o.a.object,loadingError:o.a.string}),v(_,"childContextTypes",{locale:o.a.string,messages:o.a.object}),t.a=_},"./MapStore2/web/client/components/I18N/Message.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/react-intl/lib/index.es.js"),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function u(e){return(u="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 c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=function(){var e=t.targetId,r=void 0===e?"container":e,s=t.initialState,a=void 0===s?{defaultState:{},mobile:{}}:s,d=t.appReducers,f=void 0===d?{}:d,p=t.appEpics,h=void 0===p?{}:p,m=t.rootReducerFunc,b=u.default.bind(null,{initialState:a,appReducers:f,appEpics:h,rootReducerFunc:m}),y=n||l.a;i.a.render(o.a.createElement(y,c({},t,{appStore:b})),document.getElementById(r))};e.Intl?r():Object(a.a)(r)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./MapStore2/web/client/components/development/Debug.jsx":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/url/url.js"),i=n.n(s);function a(e){return(a="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0){var n=a.e.mapPluginsPosition(t),r=n.bodyPlugins,s=v(n,["bodyPlugins"]),i=Object.keys(s).reduce((function(t,n){return j(j({},t),{},C({},n,e.renderPlugins(s[n])))}),{});return o.a.createElement(P,g({id:this.props.id,className:this.props.className,style:this.props.style,component:this.props.component},i),this.renderPlugins(r))}return null}}])&&w(t.prototype,n),r&&w(t,r),i}(o.a.Component);C(k,"propTypes",{mode:i.a.string,params:i.a.object,plugins:i.a.object,pluginsConfig:i.a.oneOfType([i.a.object,i.a.array]),id:i.a.string,className:i.a.string,component:i.a.any,style:i.a.object,pluginsState:i.a.object,monitoredState:i.a.object,defaultMode:i.a.string,onPluginLoaded:i.a.func,onPluginsLoaded:i.a.func}),C(k,"contextTypes",{store:i.a.object}),C(k,"childContextTypes",{locale:i.a.string,messages:i.a.object,plugins:i.a.object,pluginsConfig:i.a.array,loadedPlugins:i.a.object}),C(k,"defaultProps",{mode:"desktop",defaultMode:"desktop",component:"div",params:{},plugins:{},pluginsConfig:{},id:"plugins-container",className:"plugins-container",style:{},pluginsState:{},monitoredState:{},onPluginLoaded:function(){},onPluginsLoaded:function(){}}),t.default=k},"./MapStore2/web/client/components/theme/Theme.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-side-effect/lib/index.js"),u=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/selectors/version.js"),d=n("./MapStore2/node_modules/lodash/lodash.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.a:var n=t.id,a=t.path,d=t.position,m=t.element,b=Object(s.r)("currentStory.".concat(a),e),y=Object(r.get)(e,b,[]),v=f(y,d),_=y.slice();return _.splice(v,0,u({id:n},m)),Object(o.e)(b,_,e);case i.b:var j=t.id,g=t.mediaType,x=t.data;return Object(o.e)("currentStory.resources",Object(r.uniqBy)([{id:j,type:g,data:x}].concat(c(e.currentStory&&e.currentStory.resources||[])),"id"),e);case i.c:return Object(o.e)("mode",t.mode,e);case i.e:var w=t.id,S=t.mediaType,O=t.data,E=Object(o.b)("currentStory.resources",{id:w,type:S,data:O},{id:w},e);return S===s.e.MAP&&e.currentStory.sections.reduce((function(e,t){return[].concat(c(e),c(p(w,"sections[",t)))}),[]).map((function(t){var n=Object(s.r)("currentStory.".concat(t,".map"),e);E=Object(o.e)(n,void 0,E)})),E;case i.k:var M=t.id,T=t.mediaType,C=Object(o.a)("currentStory.resources",{id:M},e);return e.currentStory.sections.reduce((function(e,t){return[].concat(c(e),c(p(M,"sections[",t)))}),[]).map((function(t){var n=Object(s.r)("currentStory.".concat(t,".resourceId"),e);if(C=Object(o.f)(n,C),T===s.e.MAP){var r=Object(s.r)("currentStory.".concat(t,".map"),e);C=Object(o.f)(r,C)}})),C;case i.g:return Object(o.e)("loading"===t.name?"loading":"loadFlags.".concat(t.name),t.value,Object(o.e)("loading",t.value,e));case i.j:var P=t.path,k=Object(s.r)("currentStory.".concat(P),e),A=c(k),N=A.pop(),I=Object(r.get)(e,A);return Object(r.isArray)(I)?(Object(r.isString)(N)&&(N=parseInt(N,10)),Object(o.e)(A,[].concat(c(I.slice(0,N)),c(I.slice(N+1))),e)):Object(o.f)(k,e);case i.q:var R,D,L,F,U,B=e.defaultSettings||{},z=t.story.settings||B,q=(null===(R=z)||void 0===R||null===(D=R.theme)||void 0===D?void 0:D.fontFamilies)||[],W=null===(L=e.currentStory)||void 0===L||null===(F=L.settings)||void 0===F||null===(U=F.theme)||void 0===U?void 0:U.fontFamilies;return W&&W.length>0&&(z=Object(o.e)("theme.fontFamilies",Object(r.uniqBy)([].concat(c(W),c(q)),"family"),z)),Object(o.e)("currentStory",u(u({},t.story),{},{settings:z}),e);case i.o:return Object(o.e)("selectedCard",e.selectedCard===t.card?"":t.card,e);case i.p:var G=t.control,V=t.value;return Object(o.e)("controls.".concat(G),V,e);case i.s:var H=t.resource,K=e.currentStory&&e.currentStory.settings||{};return Object(o.d)(Object(o.e)("resource",H),Object(o.e)("currentStory.settings.storyTitle",K.storyTitle||H.name))(e);case i.m:case i.d:return Object(o.f)("errors.save",e);case i.n:return Object(o.e)("errors.save",Object(r.castArray)(t.error),e);case i.v:return Object(o.e)("isCollapsed",!e.isCollapsed,e);case i.x:var $=Object(r.get)(e,"currentStory.settings.".concat(t.option));return Object(o.e)("currentStory.settings.".concat(t.option),!$,e);case i.y:var Y=!e.isSettingsEnabled,X=e.currentStory&&e.currentStory.settings||{};return Object(o.d)(Object(o.e)("isSettingsEnabled",Y),Object(o.e)("oldSettings",Y?X:{}),Object(o.e)("currentStory.settings",Y?u({},X):t.withSave?X:e.oldSettings))(e);case i.z:var J=t.path,Q=t.mode,Z=t.element,ee=Object(s.r)("currentStory.".concat(J),e),te=Object(r.get)(e,ee);return Object(r.isPlainObject)(te)&&Object(r.isPlainObject)(Z)&&"merge"===Q&&(Z=u(u({},te),Z)),Object(r.isArray)(te)&&Object(r.isArray)(Z)&&"merge"===Q&&(Z=[].concat(c(te),c(Z))),Object(o.e)(ee,Z,e);case i.C:return Object(o.e)("currentStory.settings.".concat(t.prop),t.value,e);case i.A:if(t.columnId){var ne=Object(r.find)(e.currentStory.sections,(function(e){return Object(r.find)(e.contents,{id:t.columnId})}));return ne&&Object(r.find)(ne.contents,{id:t.columnId})?Object(o.e)("currentPage",u(u({},e.currentPage),{},{columns:u(u({},e.currentPage.columns),{},l({},ne.id,t.columnId))}),e):e}return Object(o.e)("currentPage",u(u({},e.currentPage),{},{sectionId:t.sectionId}),e);case i.w:var re=t.status,oe=t.target,se=t.selector,ie=void 0===se?"":se,ae=t.hideContent,ue=void 0!==ae&&ae,le=t.path,ce=re?{target:oe,selector:ie,hideContent:ue,path:le}:void 0;return Object(o.e)("focusedContent",ce,e);case i.r:return Object(o.e)("pendingChanges",t.value,e);case i.t:return Object(o.e)("updateUrlOnScroll",t.value,e);case i.B:return Object(o.e)("mediaEditorSettings",t.mediaEditorSettings,e);default:return e}}},"./MapStore2/web/client/reducers/maptype.js":function(e,t,n){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAP_TYPE_CHANGED":return{mapType:t.mapType};default:return e}}},"./MapStore2/web/client/reducers/security.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/security.js"),o=n("./MapStore2/web/client/actions/controls.js"),s=(n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/node_modules/lodash/lodash.js"));var i=n("./MapStore2/web/client/utils/SecurityUtils.js"),a=n("./node_modules/object-assign/index.js"),u=n.n(a);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{user:null,errorCause:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"USERMANAGER_UPDATE_USER":return e.user&&t.user&&e.user.id===t.user.id?u()({},e,{user:Object(s.cloneDeep)(t.user)}):e;case o.c:return"ResetPassword"===t.control&&"enabled"===t.property?u()({},e,{passwordChanged:!1,passwordError:null}):e;case r.d:var n=Object(i.getUserAttributes)(t.userDetails.User),a=Object(s.head)(n.filter((function(e){return"uuid"===e.name.toLowerCase()}))),l=new Date/1e3|0;return u()({},e,{user:t.userDetails.User,token:t.userDetails&&t.userDetails.access_token||a&&a.value,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?l+t.userDetails.expires:l+172800,authHeader:t.authHeader,loginError:null});case r.f:var c=new Date/1e3|0;return u()({},e,{token:t.userDetails&&t.userDetails.access_token,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?c+t.userDetails.expires:c+172800});case r.c:return u()({},e,{loginError:t.error});case r.g:return u()({},e,{loginError:null});case r.e:return u()({},e,{user:null,token:null,refresh_token:null,expires:null,authHeader:null,loginError:null});case r.b:return u()({},e,{user:u()({},e.user,u()({},t.user,{date:(new Date).getTime()})),authHeader:t.authHeader,passwordChanged:!0,passwordError:null});case r.a:return u()({},e,{passwordError:t.error,passwordChanged:!1});case r.h:return u()({},e,{user:t.userDetails.User,loginError:null});default:return e}}},"./MapStore2/web/client/selectors/geostory.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"p",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"o",(function(){return j})),n.d(t,"m",(function(){return g})),n.d(t,"x",(function(){return x})),n.d(t,"v",(function(){return S})),n.d(t,"u",(function(){return O})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return M})),n.d(t,"r",(function(){return T})),n.d(t,"q",(function(){return C})),n.d(t,"y",(function(){return P})),n.d(t,"c",(function(){return k})),n.d(t,"k",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"f",(function(){return I})),n.d(t,"w",(function(){return R})),n.d(t,"l",(function(){return D})),n.d(t,"n",(function(){return L})),n.d(t,"z",(function(){return F})),n.d(t,"d",(function(){return U})),n.d(t,"h",(function(){return B}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),s=n("./MapStore2/web/client/selectors/security.js"),i=n("./MapStore2/web/client/selectors/router.js");function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},g=function(e){return Object(r.get)(e,"geostory.isSettingsEnabled",!1)},x=function(e){var t=Object(r.get)(h(e),"settings",{}),n=_(e).filter((function(e){return e.type===o.h.IMMERSIVE})),s=t.checked||[],i=Object(r.uniq)(s.map((function(e){return Object(o.o)(n,e)})).filter((function(e){return e})));return c(c({},t),{},{expanded:i})},w=function(e){return Object(r.get)(x(e),"checked",[]).reduce((function(e,t){return c(c({},e),{},d({},t,!0))}),{})},S=function(e){return!Object(r.isEqual)(Object(r.get)(h(e),"settings",{}),function(e){return Object(r.get)(e,"geostory.oldSettings",{})}(e))},O=function(e){return Object(r.get)(e,"geostory.selectedCard","")},E=function(e){return function(t){return f("".concat(e,".resourceId"))(t)}},M=function(e){return Object(r.get)(h(e),"resources",[])},T=function(e){return function(t){return Object(r.find)(M(t),{id:e})}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withImmersiveSection,n=void 0!==t&&t,r=e.includeAlways,s=void 0===r||r;return function(e){var t=_(e),r=w(e);return t.reduce((function(e,t){if(t.type===o.h.TITLE&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.PARAGRAPH&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.BANNER&&(s||r[t.id]))return[].concat(a(e),[t]);if(t.type===o.h.IMMERSIVE){var i=t.contents&&t.contents.reduce((function(e,t){return s||r[t.id]?[].concat(a(e),[c(c({},t),{},{sectionId:e.id})]):e}),[])||[];return n?[].concat(a(e),[t],a(i)):[].concat(a(e),a(i))}return e}),[])}},P=function(e){return C({includeAlways:!0})(e).length},k=function(e){return Object(r.findIndex)(C({includeAlways:!0})(e),{id:m(e).columns&&m(e).columns[m(e).sectionId]?m(e).columns[m(e).sectionId]:m(e).sectionId||""})},A=function(e){return void 0!==Object(r.get)(e,"geostory.focusedContent.target")},N=function(e){return Object(r.get)(e,"geostory.focusedContent")},I=function(e){return f(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},R=function(e){return _(e).reduce((function(e,t){if(t.type===o.h.IMMERSIVE){var n=t.contents&&t.contents.map((function(e){return{label:e.title||"",value:e.id}}))||[];return[].concat(a(e),[{label:t.title||"",value:t.id,children:n}])}return[].concat(a(e),[{label:t.title||"",value:t.id}])}),[])},D=function(e,t){return!!Object(r.find)(_(e),(function(e){return function e(t,n){var o=n.contents,s=n.background;return n.resourceId===t||(!(!s||s.resourceId!==t)||!!o&&!!Object(r.find)(o,(function(n){return e(t,n)})))}(t,e)}))},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)(e).includes("geostory/shared")},F=function(e){return Object(r.get)(e,"geostory.updateUrlOnScroll",!1)},U=function(e){return Object(r.get)(e,"geostory.currentStory.settings.theme.fontFamilies",[])},B=function(e){return Object(r.get)(e,"geostory.mediaEditorSettings")}},"./MapStore2/web/client/selectors/mediaEditor.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"l",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"q",(function(){return d})),n.d(t,"o",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"g",(function(){return v})),n.d(t,"m",(function(){return _})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return g})),n.d(t,"n",(function(){return x}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),s=function(e){return Object(r.get)(e,"mediaEditor.open")},i=function(e){return Object(r.get)(e,"mediaEditor.saveState.editing",!1)},a=function(e){return Object(r.get)(e,"mediaEditor.saveState.addingMedia",!1)},u=function(e){return Object(r.get)(e,"mediaEditor.saveState")},l=function(e){return Object(r.get)(e,"mediaEditor.settings.sourceId")},c=function(e){return Object(r.get)(e,"mediaEditor.settings.mediaType")},d=function(e){return Object(r.get)(e,"mediaEditor.settings.sources")},f=function(e){return Object(r.get)(function(e){return Object(r.get)(e,"mediaEditor.settings.mediaTypes")}(e),"".concat(c(e),".sources"),[])},p=function(e){return Object(r.get)(d(e),l(e),{})},h=function(e){return f(e).map((function(t){return{id:t,name:(n=t,function(e){return Object(r.get)(d(e),"".concat(n),{})})(e).name};var n}))},m=function(e){return Object(r.get)(e,'mediaEditor.data["'.concat(c(e),'"]["').concat(l(e),'"].resultData'))},b=function(e){return Object(r.get)(e,'mediaEditor.data["'.concat(c(e),'"]["').concat(l(e),'"].params'))},y=function(e){return Object(r.get)(m(e),"resources")},v=function(e){return Object(r.get)(m(e),"totalCount")},_=function(e){return Object(r.get)(e,"mediaEditor.selected")},j=function(e){return Object(r.get)(e,"mediaEditor.loadingSelected")},g=function(e){return Object(r.get)(e,"mediaEditor.loadingList")},x=Object(o.a)(y,_,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Object(r.find)(e,{id:t})}))},"./MapStore2/web/client/selectors/router.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return Object(r.get)(e,"router.location.pathname")||"/"},s=function(e){return Object(r.get)(e,"router.location.search")||""}},"./MapStore2/web/client/selectors/security.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));n("./node_modules/object-assign/index.js"),n("./MapStore2/node_modules/lodash/lodash.js");var r=function(e){return e&&e.security&&e.security.user},o=function(e){return r(e)&&r(e).role},s=function(e){return e&&e.security&&e.security.user},i=function(e){return e.security&&e.security.token},a=function(e){return"ADMIN"===o(e)}},"./MapStore2/web/client/selectors/version.js":function(e,t,n){"use strict";n.r(t),n.d(t,"versionSelector",(function(){return r})),n.d(t,"validateVersion",(function(){return o}));var r=function(e){return e.version&&e.version.current||""},o=function(e){return!(!e||-1!==e.indexOf("${mapstore2.version}")||-1!==e.indexOf("no-version"))}},"./MapStore2/web/client/stores/History.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/history/index.js"),o=Object(r.createHashHistory)();t.default=o},"./MapStore2/web/client/stores/StandardStore.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/StateUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o).a.parse(window.location.href,!0).query;var i={createDebugStore:function(e,t,n,o){return Object(r.b)({rootReducer:e,state:t,middlewares:n,enhancer:o,debug:s&&s.debug&&!1})},checkForMissingPlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(t){return e[t].default}));t.length>0&&console.error("plugin not correctly loaded: ",t)}},a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=n("./node_modules/redux-observable/lib/esm/index.js"),l=n("./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js"),c=n.n(l),d=n("./node_modules/connected-react-router/esm/index.js"),f=n("./node_modules/connected-react-router/esm/middleware.js"),p=n("./MapStore2/web/client/actions/localConfig.js"),h=n("./node_modules/object-assign/index.js"),m=n.n(h),b=n("./MapStore2/web/client/utils/ConfigUtils.js").default.getDefaults();var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a:return m()({},e,t.config);default:return e}},v=n("./MapStore2/web/client/actions/locale.js");function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case v.a:return{messages:t.messages,current:t.locale};case v.b:return j(j({},e),{},{loadingError:t.error});default:return e}},w=n("./MapStore2/web/client/actions/browser.js");var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.a:return m()({},e,t.newProperties);default:return e}};function O(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=g.noRouter?null:n("./MapStore2/web/client/stores/History.js").default,E=Object(a.b)(j,T(T({},h),{},{localConfig:y,locale:x,locales:function(){return null},browser:S},!g.noRouter&&{router:Object(d.b)(w)})),M=Object(r.d)(Object(a.a)(j,T(T({},P),b))),C=g.initialState||{defaultState:{},mobile:{}},k=T(T({},l.defaultState),C.defaultState),A=T(T({},l.mobile),C.mobile),N=Object(r.e)(Object(u.b)(M)),I=function(e,t){return _({state:e,action:t,allReducers:E,mobileOverride:A})};g&&!1!==g.notify&&(o=c.a),g&&g.persist&&(g.persist.whitelist.forEach((function(e){var t=localStorage.getItem("mapstore2.persist."+e);t&&(k[e]=JSON.parse(t))})),g.onPersist&&setTimeout((function(){g.onPersist()}),0));var R=[N];if(!g.noRouter){var D=Object(f.a)(w);R=[].concat(O(R),[D])}if(t=i.createDebugStore(I,k,R,o),g&&g.persist){var L={};t.subscribe((function(){g.persist.whitelist.forEach((function(e){var n=t.getState()[e];n&&L[e]!==n&&(L[e]=n,localStorage.setItem("mapstore2.persist."+e,JSON.stringify(n)))}))}))}return t}},"./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$":function(e,t,n){var r={"./cesium/Layers":"./MapStore2/web/client/utils/cesium/Layers.js","./leaflet/Layers":"./MapStore2/web/client/utils/leaflet/Layers.js","./openlayers/Layers":"./MapStore2/web/client/utils/openlayers/Layers.js"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=s,e.exports=o,o.id="./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$"},"./MapStore2/web/client/utils/ConfigUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getConfigurationOptions",(function(){return M})),n.d(t,"cleanDuplicatedQuestionMarks",(function(){return T})),n.d(t,"getUrlWithoutParameters",(function(){return C})),n.d(t,"filterUrlParams",(function(){return P})),n.d(t,"getParsedUrl",(function(){return k})),n.d(t,"getDefaults",(function(){return A})),n.d(t,"setLocalConfigurationFile",(function(){return N})),n.d(t,"loadConfiguration",(function(){return I})),n.d(t,"getCenter",(function(){return R})),n.d(t,"setApiKeys",(function(){return D})),n.d(t,"setLayerId",(function(){return L})),n.d(t,"replacePlaceholders",(function(){return F})),n.d(t,"setUrlPlaceholders",(function(){return U})),n.d(t,"normalizeConfig",(function(){return B})),n.d(t,"getUserConfiguration",(function(){return z})),n.d(t,"getConfigUrl",(function(){return q})),n.d(t,"setupSources",(function(){return W})),n.d(t,"normalizeSourceUrl",(function(){return G})),n.d(t,"copySourceOptions",(function(){return V})),n.d(t,"setupLayers",(function(){return H})),n.d(t,"convertFromLegacy",(function(){return K})),n.d(t,"mergeConfigs",(function(){return $})),n.d(t,"getProxyUrl",(function(){return Y})),n.d(t,"getProxiedUrl",(function(){return X})),n.d(t,"getBrowserProperties",(function(){return J})),n.d(t,"getConfigProp",(function(){return Q})),n.d(t,"setConfigProp",(function(){return Z})),n.d(t,"removeConfigProp",(function(){return ee}));var r=n("./MapStore2/web/client/libs/proj4.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./node_modules/url/url.js"),u=n.n(a),l=n("./node_modules/axios/index.js"),c=n.n(l),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/object-assign/index.js"),p=n.n(f),h=n("./node_modules/es6-promise/dist/es6-promise.js"),m=n("./node_modules/ismobilejs/src/isMobile.js"),b=n.n(m);function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return(v="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 _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t2){var n=t.slice(1);return t[0]+"?"+n.join("&")}return e},C=function(e,t){var n=T(e).split("?"),r="";if(n.length>=2&&n[1]){var o=n[1].split(/[&;]/g).filter((function(e){return!!e}));o.forEach((function(e,n){var s=e.split("=");if(-1===t.indexOf(s[0].toLowerCase())){var i=n===o.length-1?"":"&";r+=s.join("=")+i}}))}return r?n[0]+"?"+r:n[0]},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(d.isNil)(e)||""===e?null:C(T(e),t)},k=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e){var r=u.a.parse(P(e,n),!0),o=null;if(Object(d.endsWith)(r.pathname,"wfs")||Object(d.endsWith)(r.pathname,"wms")||Object(d.endsWith)(r.pathname,"ows"))return o=r.pathname.replace(/(wms|ows|wfs|wps)$/,"wps"),u.a.format(p()({},r,{search:null,pathname:o},{query:p()(j({service:"WPS"},t),r.query)}))}return null},A=function(){return j({},E)},N=function(e){O=e},I=function(){return O?c.a.get(O).then((function(e){return"object"===v(e.data)&&(E=p()({},E,e.data)),j({},E)})):new h.Promise((function(e){e(j({},E))}))},R=function(e,t){var n=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,r=e.crs||t||"EPSG:4326",s="EPSG:4326"!==r?o.a.transform(new o.a.Proj(r),x,n):n;return p()({},s,{crs:"EPSG:4326"})},D=function(e){return"bing"===e.type&&(e.apiKey=E.bingApiKey),"mapquest"===e.type&&(e.apiKey=E.mapquestApiKey),e},L=function(e,t){return e.id||(e.id=e.name+"__"+t),e},F=function(e){var t=e;return(t.match(/\{.*?\}/g)||[]).forEach((function(e){var n=E[e.substring(1,e.length-1)];void 0!==n&&(t=t.replace(e,n||""))})),t},U=function(e){return e.url&&(Object(d.isArray)(e.url)?e.url=e.url.map((function(e){return F(e)})):e.url=F(e.url)),e},B=function(e){var t=e.layers,n=e.groups,r=e.plugins,o=y(e,["layers","groups","plugins"]);return o.center=R(o.center),{map:o,layers:t.map(D,e).map(L).map(U),groups:n,plugins:r}},z=function(e,t,n){return M(S,e,t,n)},q=function(e){var t=e.mapId,n=t,r=e.config;try{var o=parseInt(n,10);isNaN(o)&&(r=t,n=null)}catch(e){r=t,n=null}return M({mapId:n,config:r})},W=function(e,t){var n,r=t;for(n in t||(r=E.defaultSourceType),e)e.hasOwnProperty(n)&&(e[n].ptype||(e[n].ptype=r))},G=function(e){return e&&-1!==e.indexOf("?")?e.split("?")[0]:e},V=function(e,t){if(e.baseParams=t.baseParams,t.url){var n=u.a.parse(t.url,!0);for(var r in n.query)"REQUEST"===r.toUpperCase()&&delete n.query[r];e.baseParams=p()({},e.baseParams,n.query)}e.url=G(t.url)},H=function(e,t,n){var r,o,s,i;for(o=0;o=0?s.group===E.backgroundGroup&&(s.visibility=s.visibility||!1,r&&r.visibility?s.visibility&&(r.visibility=!1,r=s):r=s):s.visibility=!1)}r&&(r.visibility=!0)},K=function(e){var t=e.map,n=e.gsSources||e.sources,r=t.layers.filter((function(e){return n[e.source]})),o=R(t.center,t.projection),s=t.zoom,i=t.maxExtent||t.extent;return W(n,e.defaultSourceType),H(r,n,["gxp_osmsource","gxp_wmssource","gxp_googlesource","gxp_bingsource","gxp_mapquestsource","gxp_olsource"]),B({center:o,zoom:s,maxExtent:i,layers:r,projection:t.projection||"EPSG:3857"})},$=function(e,t){return e.map=t.map,e.gsSources=t.gsSources||t.sources,e},Y=function(e){return e.proxyUrl?e.proxyUrl:E.proxyUrl},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(0===e.indexOf("http")),r=!n&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(r){var o=window.location;n=r[1]===o.protocol&&r[3]===o.hostname;var s=r[4],i=o.port,a=0===o.protocol.indexOf("https")?443:80;s=""===s?a+"":s+"",i=""===i?a+"":i+"",n=n&&s===i}if(!n){var u=Y(t);if(u){var l=[];Object(d.isObject)(u)&&(l=u.useCORS||[],u=u.url);var c=l.reduce((function(t,n){return t||0===e.indexOf(n)}),!1);if(!c)return u+encodeURIComponent(e)}}return e},J=function(){var e="ActiveXObject"in window,t=e&&!document.addEventListener,n=e&&window.location.hash===!!window.MSInputMethodContext&&!!document.documentMode,r=navigator.userAgent.toLowerCase(),o=-1!==r.indexOf("webkit"),s=-1!==r.indexOf("chrome"),i=-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"),a=-1!==r.indexOf("phantom"),u=-1!==r.indexOf("android"),l=-1!==r.search("android [23]"),c=-1!==r.indexOf("gecko"),d=b.a.any,f=!window.PointerEvent&&window.MSPointerEvent,p=window.PointerEvent&&window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||f,h="devicePixelRatio"in window&&window.devicePixelRatio>1||"matchMedia"in window&&window.matchMedia("(min-resolution:144dpi)")&&window.matchMedia("(min-resolution:144dpi)").matches,m=document.documentElement,y=e&&"transition"in m.style,v="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!l,_="MozPerspective"in m.style,j="OTransition"in m.style,g=!window.L_DISABLE_3D&&(y||v||_||j)&&!a,x=!window.L_NO_TOUCH&&!a&&(p||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);return{ie:e,ie11:n,ielt9:t,webkit:o,gecko:c&&!o&&!window.opera&&!e,android:u,android23:l,chrome:s,safari:i,ie3d:y,webkit3d:v,gecko3d:_,opera3d:j,any3d:g,mobile:d,mobileWebkit:d&&o,mobileWebkit3d:d&&v,mobileOpera:d&&window.opera,touch:x,msPointer:f,pointer:p,retina:h}},Q=function(e){return E[e]},Z=function(e,t){E[e]=t},ee=function(e){delete E[e]},te={PropTypes:{center:w,config:i.a.shape({center:w,zoom:i.a.number.isRequired}),mapStateSource:i.a.string},getParsedUrl:k,getDefaults:A,setLocalConfigurationFile:N,loadConfiguration:I,getCenter:R,normalizeConfig:B,getUserConfiguration:z,getConfigurationOptions:M,getConfigUrl:q,convertFromLegacy:K,setupSources:W,normalizeSourceUrl:G,copySourceOptions:V,setupLayers:H,mergeConfigs:$,getProxyUrl:Y,cleanDuplicatedQuestionMarks:T,getUrlWithoutParameters:C,filterUrlParams:P,getProxiedUrl:X,getBrowserProperties:J,setApiKeys:D,setUrlPlaceholders:U,replacePlaceholders:F,setLayerId:L,getConfigProp:Q,setConfigProp:Z,removeConfigProp:ee};t.default=te},"./MapStore2/web/client/utils/EpicsUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--unknown--";return function(){return e.apply(void 0,arguments).catch((function(e,n){return console.error('Error in epic "'.concat(t,'". Original error:'),e),setTimeout((function(){throw e}),0),n}))}},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Object.keys(e).map((function(n){return t(e[n],n)}))}},"./MapStore2/web/client/utils/GeoStoryUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return C})),n.d(t,"i",(function(){return P})),n.d(t,"h",(function(){return k})),n.d(t,"a",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"e",(function(){return I})),n.d(t,"f",(function(){return R})),n.d(t,"b",(function(){return D})),n.d(t,"x",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"t",(function(){return U})),n.d(t,"v",(function(){return B})),n.d(t,"z",(function(){return z})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return G})),n.d(t,"n",(function(){return H})),n.d(t,"q",(function(){return K})),n.d(t,"r",(function(){return $})),n.d(t,"s",(function(){return Y})),n.d(t,"o",(function(){return X})),n.d(t,"w",(function(){return J})),n.d(t,"u",(function(){return Q})),n.d(t,"y",(function(){return Z})),n.d(t,"l",(function(){return ee})),n.d(t,"m",(function(){return te})),n.d(t,"c",(function(){return ne}));var r=n("./MapStore2/node_modules/lodash/get.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/findIndex.js"),i=n.n(s),a=n("./MapStore2/node_modules/lodash/toPath.js"),u=n.n(a),l=n("./MapStore2/node_modules/lodash/isArray.js"),c=n.n(l),d=n("./MapStore2/node_modules/lodash/values.js"),f=n.n(d),p=n("./MapStore2/node_modules/lodash/filter.js"),h=n.n(p),m=n("./MapStore2/node_modules/lodash/merge.js"),b=n.n(m),y=n("./MapStore2/node_modules/lodash/isString.js"),v=n.n(y),_=n("./MapStore2/node_modules/lodash/isObject.js"),j=n.n(_),g=n("./MapStore2/node_modules/lodash/includes.js"),x=n.n(g),w=n("./MapStore2/node_modules/lodash/replace.js"),S=n.n(w),O=n("./node_modules/uuid/index.js"),E=n.n(O);function M(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return b()({},q,e)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b()({},e,t)},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return!t||n.test(e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(t,"i");return h()(e,(function(e){return V(e.data&&(e.data.title||e.data.name),t,n)||V(e.data&&e.data.description,t,n)}))},K=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};switch(t){case k.TITLE:return{id:E()(),type:k.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:E()(),type:A.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case k.BANNER:return{id:E()(),type:k.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:E()(),background:{fit:"cover",size:"full",align:"center"}}]};case k.PARAGRAPH:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:E()(),type:A.COLUMN,size:"full",align:"center",contents:[{id:E()(),type:A.TEXT,html:""}]}]};case k.IMMERSIVE:return{id:E()(),type:k.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(A.COLUMN,n)]};case N.MEDIA:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:E()(),type:A.COLUMN,contents:[{id:E()(),type:A.MEDIA,size:"large",align:"center"}]}]};case N.WEBPAGE:return{id:E()(),type:k.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:E()(),type:A.COLUMN,contents:[{id:E()(),type:A.WEBPAGE,size:"medium",align:"center"}]}]};case A.COLUMN:return{id:E()(),type:A.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:E()(),type:A.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case A.TEXT:return{id:E()(),type:A.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case A.IMAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case A.WEBPAGE:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case A.MEDIA:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:E()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},$=function(e,t){return u()(e).reduce((function(e,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),s=o()(t,e),a=i()(s,r);return a>=0?[].concat(M(e),[a]):e}return[].concat(M(e),[n])}),[])},Y=function(e,t){return u()(e).reduce((function(e,n){var r=e.path,s=e.flatPath;if(n&&0===n.indexOf("{")){var a=JSON.parse(n),u=o()(t,r),l=i()(u,a);if(l>=0){var c=u[l],d=c.id,f=c.type;return{path:[].concat(M(r),[l]),flatPath:[].concat(M(s),[{id:d,type:r[r.length-1],contentType:f}])}}return{path:r,flatPath:s}}return{path:[].concat(M(r),[n]),flatPath:s}}),{path:[],flatPath:[]})},X=function(e,t){return e.reduce((function(e,n){return x()(n.contents.map((function(e){return e.id})),t)?n.id:e}),null)},J=function(e){return e.type===k.PARAGRAPH&&!1!==e.editURL&&e&&c()(e.contents)&&e.contents.length&&c()(e.contents[0].contents)&&e.contents[0].contents.length&&e.contents[0].contents[0].type===A.WEBPAGE&&!1!==e.contents[0].contents[0].editURL},Q=function(e,t){if(t)switch(e){case"small":return.4*t;case"medium":return.6*t;case"large":return.8*t;default:return t}return 0},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s="EMPTY";if(!t.includes(n))return null;var i=t.substring(t.indexOf(n)).split("/");return r&&n?i.length>1&&i[2]&&Number(i[0])===n?5===i.length?S()(e,"".concat(i[2],"/column/").concat(i[4]),"".concat(r)):S()(e,"".concat(i[2]),"".concat(r)):(t.includes("shared"),""!==i[1]?"".concat(e,"/section/").concat(r):"".concat(e,"section/").concat(r)):!r&&o&&v()(o)&&o!==s&&i.length>1?t.includes("shared")&&!i[2]?e:5===i.length?S()(e,"".concat(i[4]),"".concat(o)):"".concat(e,"/column/").concat(o):null},ee=function(e,t,n){var r={active:t,inactive:n,custom:{families:[],urls:[]}};return e.filter((function(e){return!!e.src})).forEach((function(e,t){r.custom.families[t]=e.family,r.custom.urls[t]=e.src})),r},te=function(e){return e.map((function(e){return e.family}))},ne=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"]},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/node_modules/lodash/fp/set.js"),s=n.n(o),i=n("./MapStore2/node_modules/lodash/fp/unset.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/fp/compose.js"),l=n.n(u),c=s.a,d=a.a,f=l.a,p=function(e,t,n,o){var s=e?Object(r.get)(o,e)||[]:o,i=Object(r.findIndex)(s,n);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return e?c(e,s.concat(t),o):s.concat(t)},h=function(e,t,n,o){var s=e?Object(r.get)(o,e)||[]:o,i=Object(r.findIndex)(s,n);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return o},m=function(e,t,n){var o=e?Object(r.get)(n,e)||[]:n,s=Object(r.findIndex)(o,t);if(s>=0){var i=o.slice();return i.splice(s,1),e?c(e,i,n):i()}return n}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getWpsUrl",(function(){return D})),n.d(t,"getNode",(function(){return B})),n.d(t,"getGroupNodes",(function(){return z})),n.d(t,"getNestedGroupTitle",(function(){return q})),n.d(t,"deepChange",(function(){return W})),n.d(t,"getSourceId",(function(){return G})),n.d(t,"extractTileMatrixFromSources",(function(){return V})),n.d(t,"extractTileMatrixSetFromLayers",(function(){return H})),n.d(t,"extractSourcesFromLayers",(function(){return K})),n.d(t,"extractDataFromSources",(function(){return $})),n.d(t,"getURLs",(function(){return Y})),n.d(t,"getLayerUrl",(function(){return J})),n.d(t,"getGroupByName",(function(){return Q})),n.d(t,"getDimension",(function(){return Z})),n.d(t,"getLayerId",(function(){return ee})),n.d(t,"normalizeLayer",(function(){return te})),n.d(t,"normalizeMap",(function(){return ne})),n.d(t,"belongsToGroup",(function(){return re})),n.d(t,"getLayersByGroup",(function(){return oe})),n.d(t,"removeEmptyGroups",(function(){return se})),n.d(t,"getNotEmptyGroup",(function(){return ie})),n.d(t,"reorderFunc",(function(){return ae})),n.d(t,"denormalizeGroups",(function(){return ue})),n.d(t,"sortLayers",(function(){return le})),n.d(t,"toggleByType",(function(){return ce})),n.d(t,"sortUsing",(function(){return de})),n.d(t,"splitMapAndLayers",(function(){return fe})),n.d(t,"geoJSONToLayer",(function(){return pe})),n.d(t,"saveLayer",(function(){return he})),n.d(t,"REG_GEOSERVER_RULE",(function(){return me})),n.d(t,"setRegGeoserverRule",(function(){return be})),n.d(t,"getRegGeoserverRule",(function(){return ye})),n.d(t,"findGeoServerName",(function(){return ve})),n.d(t,"getCapabilitiesUrl",(function(){return _e})),n.d(t,"getSearchUrl",(function(){return je})),n.d(t,"invalidateUnsupportedLayer",(function(){return ge})),n.d(t,"isSupportedLayer",(function(){return xe})),n.d(t,"getLayerTitleTranslations",(function(){return we})),n.d(t,"setCustomUtils",(function(){return Se})),n.d(t,"getAuthenticationParam",(function(){return Oe})),n.d(t,"excludeGoogleBackground",(function(){return Ee})),n.d(t,"creditsToAttribution",(function(){return Me})),n.d(t,"formatCapabitiliesOptions",(function(){return Te})),n.d(t,"getLayerTitle",(function(){return Ce}));var r,o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/turf-bbox/index.js"),a=n.n(i),u=n("./node_modules/uuid/v1.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isObject.js"),p=n.n(f),h=n("./MapStore2/node_modules/lodash/isArray.js"),m=n.n(h),b=n("./MapStore2/node_modules/lodash/head.js"),y=n.n(b),v=n("./MapStore2/node_modules/lodash/castArray.js"),_=n.n(v),j=n("./MapStore2/node_modules/lodash/isEmpty.js"),g=n.n(j),x=n("./MapStore2/node_modules/lodash/findIndex.js"),w=n.n(x),S=n("./MapStore2/node_modules/lodash/pick.js"),O=n.n(S),E=n("./MapStore2/node_modules/lodash/isNil.js"),M=n.n(E),T=n("./MapStore2/web/client/utils/SecurityUtils.js");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e(r.nodes,n):t:r)}),null):null},z=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,n){var r=[].concat(t);return n.nodes&&(r=t.concat(e(n))),d()(n)?[].concat(A(r),[n]):[].concat(A(r),[n.id])}),[]):[]},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return m()(t)&&y()(t.map((function(t){var n=t.id===e?t:null;if(n)return n.title;var r=B(t.nodes,e);return r?r.title:null})))},W=function e(t,n,r,o){return t&&m()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===n)return P(P({},t),p()(r)?r:k({},r,o));if(t.nodes)return P(P({},t),{},{nodes:e(t.nodes,n,r,o)})}return t})):[]},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(_()(e.url))},V=function(e,t){if(!e||!t)return{};!m()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=A(Object.keys(t.matrixIds)));var n=G(t),r=t.matrixIds&&t.matrixIds.reduce((function(t,r){var o=e[n]&&e[n].tileMatrixSet&&e[n].tileMatrixSet[r]&&e[n].tileMatrixSet[r].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,k({},r,A(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[n].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&r&&{tileMatrixSet:o,matrixIds:r}||{}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(n,r){var o=e[r].reduce((function(e,t){return s()(e,k({},t.id||t.name,{srs:A(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[r].reduce((function(e,t){var n=t.tileMatrixSet.reduce((function(e,t){return s()({},e,k({},t["ows:Identifier"],s()({},t)))}),{}),r=Object.keys(n).reduce((function(e,t){var r=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=r[0]&&n[t].TileMatrix.map((function(e,t){return r[0][t]&&r[0][t].ranges?s()({},e,{ranges:r[0][t].ranges}):s()({},e)}));return y()(r)?s()({},e,k({},t,s()({},n[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,r)}),{});return s()({},n,k({},r,s()({},t[r]||{},{tileMatrixSet:s()({},n[r]&&n[r].tileMatrixSet||{},i)})))}),s()({},t))||t},K=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var n=G(t);return e[n]?s()({},e,k({},n,[].concat(A(e[n]),[t]))):s()({},e,k({},n,[t]))}),{});return H(t)},$=function(e){if(!e||!e.layers||!m()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return g()(t)?A(e.layers):e.layers.map((function(e){var n=V(t,e);return s()({},e,n)}))},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},X={},J=function(e){return m()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=y()(t.filter((function(t){return t.name===e})));return n||t.reduce((function(t,n){return t||!!n.nodes&&r.getGroupByName(e,n.nodes)}),void 0)},Z=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:P(P({},e),{},{id:r.getLayerId(e)})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?P(P({},e),{},{layers:(e.layers||[]).map((function(e){return r.normalizeLayer(e)}))}):e},function(e){return e.groups?e:P(P({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},re=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var n=0,r=e.map((function(e){return s()({},e,{storeIndex:n++})}));return r.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,n){var o=n||"Default";return o.split(".").reduce((function(e,n,i,a){var u=o.split(".",i+1).join("."),l=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(u,e),c=i===a.length-1;l?c&&(l.nodes=l.nodes.concat(R(u,r))):(l=function(e,t,n,r){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:r?R(e,n):[],expanded:!0})}(u,q(u,t)||n,r,c),e.push(l));return l.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(r.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(r.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(F(e,t))},ue=function(e,t){var n=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},r=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:r,groups:t.map((function(e){return function e(t,r){var o=t.nodes.map((function(t){return p()(t)?e(t,r):r.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:n(o)})}(e,r)}))}},le=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(F(e,t))},ce=function(e,t){return function(n,r){return t(n,e,r)}},de=function(e,t){return function(n,r){return t(n,r,e)}},fe=function(e){if(e&&m()(e.layers)){var t=r.getLayersByGroup(e.layers,e.groups);m()(e.groups)&&(t=e.groups.reduce((function(e,t){var n=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};n=r.deepChange(n,t.id,o)}return n=r.deepChange(n,t.id,"expanded",t.expanded)}),[].concat(t)));var n=$(e);return s()({},e,{layers:{flat:r.reorder(t,n),groups:t}})}return e},pe=function(e,t){var n=a()(e),r=[];return r="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[O()(P(P({},e),{},{id:M()(e.id)?l()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]},crs:"EPSG:4326"},features:r}},he=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},me=I,be=function(e){I=e},ye=function(){return I},ve=function(e){var t=e.url,n=e.regexRule||r.getRegGeoserverRule(),o=m()(t)?t[0]:t;return n.test(o)&&o.match(n)[0]||null},_e=function(e){var t=r.findGeoServerName({url:e.url}),n=J(e);if(t){var o=n.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(n=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var n=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+n:e+"&"+n}(n,P(P({},e.baseParams),e.params))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},ge=function(e,t){return U(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},xe=function(e,t){return!!U(e,t)},we=function(e){return X.getLayerTitleTranslations?X.getLayerTitleTranslations(e):e.Title},Se=function(e,t){X[e]=t},Oe=function(e){var t=Y(m()(e.url)?e.url:[e.url]),n={};return t.forEach((function(t){Object(T.addAuthenticationParameter)(t,n,e.securityToken)})),n},Ee=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group,r=e.visibility;return"background"===n&&"google"===t&&r})).length>0,n=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),r=n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(r.length>0){var o=w()(n,{group:"background"});return n.map((function(e,t){return t===o?P(P({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(A(n))}return n},Me=function(e){var t=e.imageUrl,n=e.link,r=e.title,o=t?'"):r;return n&&o?'').concat(o,""):o},Te=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Ce=function(e){var t=e.title,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[r])||(null==t?void 0:t.default)||t||n};r={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:W,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:ve}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(j)[0],n=j.en?{key:"en",locale:j.en}:{key:t,locale:j[t]},r=j[_.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:n.key))];return r?r.code:n.locale.code},M=function(){return j},T=function(e){return g[e]||g.default},C=function(e,t){var n=e;return t.split(".").forEach((function(e){n=n?n[e]:null})),n||t},P=function(e,t){x[e]=t},k=function(e,t,n){return t&&n&&x[t]&&x[t][n]&&x[t][n](e)||{title:"errorTitleDefault",message:"errorDefault"}},A=function(e,t){return i(t)?t[e]||t.default:t||""};_={getLocale:E,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var n=/^[a-z]+/i.exec(e);t=n&&n.length>0?n[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(r,n)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,n){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},n.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path)))}),{})}),(function(e,t){return t.reduce((function(t,n){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var n=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===n||e===n})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(n)&&0===n.indexOf("{")?parseExpression(e,t,n):n},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(r&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,n.requires,r)},isContainedInList=function(e,t,n,r){return e&&t&&-1!==handleExpression(n,r,t).indexOf(e)},showIn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,n.showIn,e,t)||isContainedInList(r,n.showIn,e,t)||!n.showIn&&s)&&!(isContainedInList(o,n.hideFrom,e,t)||isContainedInList(r,n.hideFrom,e,t))},includeLoaded=function(e,t,n){if(t[e]){var r=t[e],o=r.component||r;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,n,{loadPlugin:void 0},_objectSpread({},r.containers))}return n},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,n+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n+".priority")||0},getMorePrioritizedContainer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return n.reduce((function(n,r){var o=r.name||r,s=getPriority(e,t,o);return s>n.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:n}),{plugin:null,priority:r})},parsePluginConfig=function e(t,n,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(r)?r.map((function(r){return e(t,n,r)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?Object.keys(r).reduce((function(o,s){var i=r[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,n,i)))}),{}):parseExpression(t,n,r)},canContain=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||n[e]||!1},isMorePrioritizedContainer=function(e,t,n,r){return null===getMorePrioritizedContainer(e,t,n,r).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,n){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[n])?_objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n](t))):e},getPluginItems=function e(t,n,r,o,s,i,a,u){return Object.keys(n).map((function(e){var t=getPluginConfiguration(r,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,n[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,n.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,r,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),u=includeLoaded(i,a,s.impl),l=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},l,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},u.cfg||{},parsePluginConfig(t,n.requires,s.config.cfg||{})||void 0)},{plugin:u,items:e(t,n,r,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,n)})).filter((function(e){return!u||u(e)}))},pluginsMergeProps=function(e,t,n){var r=n.pluginCfg,o=_objectWithoutProperties(n,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,r||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n]?[].concat(_toConsumableArray(e[n]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.stateSelector:i||void 0,u=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)||(void 0===r.isDefault||r.isDefault),l=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r)+"Plugin",c=t[l];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?parsePluginConfig(e,t.requires,r.cfg):{}),items:getPluginItems(e,t,n,s,i,u,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(r,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):n};return a.loaded=!!r,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,n,r){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,n||pluginsMergeProps,r)},createPlugin=function(e,t){var n,r=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,u=t.reducers,l=void 0===u?{}:u,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,h=t.enabler,m=void 0===h?function(){return!0}:h,b=t.loader,y=normalizeName(e),v=p?{loadPlugin:function(e){b().then((function(t){var n=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0}))}))},enabler:m}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0});return _defineProperty(n={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(v,a,s)),_defineProperty(n,"reducers",l),_defineProperty(n,"epics",d),n},loadPlugin=function(e){return new Promise((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,n){return t({name:e,plugin:n})}))})).catch((function(e){n(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/ResourceUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=/rest\/geostore\/data\/(\d+)/,o=function(e){var t=decodeURIComponent(decodeURIComponent(e)),n=r.exec(t);return n&&!!n[0]&&n[1]}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setStore",(function(){return v})),n.d(t,"getSecurityInfo",(function(){return _})),n.d(t,"getUser",(function(){return j})),n.d(t,"getBasicAuthHeader",(function(){return g})),n.d(t,"getToken",(function(){return x})),n.d(t,"getRefreshToken",(function(){return w})),n.d(t,"getUserAttributes",(function(){return S})),n.d(t,"findUserAttribute",(function(){return O})),n.d(t,"findUserAttributeValue",(function(){return E})),n.d(t,"getAuthenticationRules",(function(){return M})),n.d(t,"isAuthenticationActivated",(function(){return T})),n.d(t,"getAuthenticationMethod",(function(){return C})),n.d(t,"getAuthenticationRule",(function(){return P})),n.d(t,"getAuthKeyParameter",(function(){return k})),n.d(t,"addAuthenticationParameter",(function(){return A})),n.d(t,"addAuthenticationToUrl",(function(){return N})),n.d(t,"clearNilValuesForParams",(function(){return I})),n.d(t,"addAuthenticationToSLD",(function(){return R})),n.d(t,"cleanAuthParamsFromURL",(function(){return D}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o),i=n("./node_modules/object-assign/index.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/head.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isNil.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isArray.js"),p=n.n(f),h=n("./MapStore2/web/client/utils/StateUtils.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return d()(e[n])?t:b(b({},t),{},y({},n,e[n]))}),{})}function R(e,t){if(e.SLD){var n=s.a.parse(e.SLD,!0),r=A(e.SLD,n.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},n,{query:r,search:void 0}))})}return e}function D(e){return r.default.filterUrlParams(e,[k(e)].filter((function(e){return e})))}var L={setStore:v,getSecurityInfo:_,getUser:j,getBasicAuthHeader:g,getToken:x,getRefreshToken:w,getUserAttributes:S,findUserAttribute:O,findUserAttributeValue:E,getAuthenticationRules:M,isAuthenticationActivated:T,getAuthenticationMethod:C,getAuthenticationRule:P,addAuthenticationToUrl:N,addAuthenticationParameter:A,clearNilValuesForParams:I,addAuthenticationToSLD:R,getAuthKeyParameter:k,cleanAuthParamsFromURL:D};t.default=L},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return x})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return M})),n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return C}));var r=n("./node_modules/redux/es/index.js"),o=n("./node_modules/redux-thunk/lib/index.js"),s=n.n(o),i=n("./node_modules/redux-logger/dist/redux-logger.js"),a=n.n(i),u=n("./node_modules/redux-observable/lib/esm/index.js"),l=n("./MapStore2/web/client/utils/EpicsUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/isEmpty.js"),f=n.n(d),p=n("./node_modules/rxjs/Rx.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+n,e),e},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+n,e),e},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",r=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+n,r),function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},M=function(e){var t;return!f()(g(e))&&(null===(t=g(e))||void 0===t?void 0:t.getState())||{}},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,n=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,h=e.debug,m=void 0!==h&&h,b=e.enhancer,v=w(t||Object(r.c)(s)),g=n||u.a.apply(void 0,y(Object(l.a)(a))),S=g?[x(Object(u.b)(g))].concat(y(p)):p,O=r.a.apply(null,_(S,m)),E=(window.devToolsExtension&&m?Object(r.d)(O,window.devToolsExtension()):O)(r.e);return j(E(v,d,b))},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,n=void 0===t?{}:t,r=e.epics,o=void 0===r?{}:r,s=arguments.length>1?arguments[1]:void 0,i=S(),a=function(e,t){var r=Object.keys(i({},{})),o=m(m({},e),i(e,t));return Object.keys(n).filter((function(e){return-1===r.indexOf(e)})).reduce((function(e,r){return m(m({},e),{},b({},r,n[r](e[r],t)))}),o)};(s||g()).replaceReducer(a);var u=E();Object(l.a)(o).forEach((function(e){u.next(e)}))}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t,r){var o=n[e];return o&&o.create?o.create(t,r):o?o(t,r):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o,s){var i=n[e];return i&&i.update?i.update(t,r,o,s):null},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t){var r=n[e];return r&&r.create?r.create(t):r?r(t):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o){var s=n[e];return s&&s.update?s.update(t,r,o):null},isValid:function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,n){"use strict";n.r(t),n.d(t,"registerType",(function(){return o})),n.d(t,"createLayer",(function(){return s})),n.d(t,"updateLayer",(function(){return i})),n.d(t,"removeLayer",(function(){return a})),n.d(t,"renderLayer",(function(){return u})),n.d(t,"isValid",(function(){return l})),n.d(t,"isSupported",(function(){return c})),n.d(t,"isCompatible",(function(){return d}));var r={},o=function(e,t){r[e]=t},s=function(e,t,n,o){var s=r[e];return s?s.create(t,n,o):null},i=function(e,t,n,o,s,i){var a=r[e];if(a&&a.update)return a.update(t,n,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var u=!1;o.params&&n.params?u=Object.keys(o.params).reduce((function(e,t){return n.params[t]!==o.params[t]||e}),!1):!o.params&&n.params&&(u=!0),u&&t.getSource().updateParams(n.params)}return null},a=function(e,t,n,o,s){var i=r[e];return i&&i.remove?i.remove(t,n,o,s):null},u=function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},l=function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},c=function(e){return!!r[e]},d=function(e,t){var n=r[e];return!n||!n.isCompatible||n.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:u,isValid:l,isSupported:c,isCompatible:d}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"k",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return v}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",s="GEONODE:RESOURCE_ERROR",i="GEONODE:UPDATE_RESOURCE_PROPERTIES",a="GEONODE:SET_RESOURCE_TYPE",u="GEONODE:SET_NEW_RESOURCE",l="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function f(e){return{type:o,data:e}}function p(e){return{type:a,resourceType:e}}function h(e){return{type:s,error:e}}function m(e){return{type:i,properties:e}}function b(){return{type:u}}function y(e){return{type:l,id:e}}function v(e){return{type:c,permissions:e}}},"./js/api/geonode/adapter/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./js/utils/APIUtils.js"),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.post(Object(i.b)("".concat(t,"resources/")),e,{timeout:1e4,params:{full:!0}}).then((function(e){return e.data}))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.patch(Object(i.b)("".concat(n,"resources/").concat(e,"/")),t,{params:{full:!0}}).then((function(e){return e.data}))},l=function(e){var t=Object(s.getConfigProp)("genode_rest_api")||"/mapstore/rest/";return o.a.get(Object(i.b)("".concat(t,"resources/").concat(e,"/")),{params:{full:!0}}).then((function(e){return e.data}))}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"g",(function(){return _}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./node_modules/js-cookie/src/js.cookie.js"),a=n.n(i),u=n("./js/utils/GNSearchUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(f,"/categories").concat(p),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.identifier,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(f,"/keywords").concat(p),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(f,"/regions").concat(p),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.name,n),n}))}))},v=function(e){var t=e.q,n=e.idIn,r=l(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(f,"/owners").concat(p),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(u.h)(i+e.username,n),n}))}))},_=function(e){var t=a.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return M})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return k})),n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"a",(function(){return I})),n.d(t,"j",(function(){return R})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return U}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./js/utils/APIUtils.js"),i=n("./MapStore2/node_modules/lodash/mergeWith.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/isArray.js"),l=n.n(u),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/castArray.js"),p=n.n(f),h=n("./js/api/geonode/v1/index.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js"),b=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1?e+s.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+s[0]}),"");return"".concat(e).concat(n)}var M=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=x(x({},S),e)}(t),t}))};function T(e,t){return t?a()(x({},e),x({},t),(function(e,t){return l()(e)&&l()(t)?[].concat(_(e),_(t)):d()(e)&&l()(t)?[e].concat(_(t)):l()(e)&&d()(t)?[].concat(_(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var C,P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,u=e.sort,c=e.f,d=v(e,["q","pageSize","page","sort","f"]),f=((Object(m.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return O("resources",(function(){return o.a.get(Object(s.b)(E(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},T(d,f)),u&&{sort:l()(u)?u:[u]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},k=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,u=e.sort,c=v(e,["q","pageSize","page","sort"]);return O("maps",(function(){return o.a.get(Object(s.b)(E(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},c),u&&{sort:l()(u)?u:[u]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,i=void 0===r?20:r,a=t.page,u=void 0===a?1:a,c=t.sort,d=v(t,["q","pageSize","page","sort"]);return O("maps",(function(){return o.a.get(Object(s.b)(E(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:x(x(x({},d),c&&{sort:l()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:u,page_size:i})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},N=function(e){return o.a.get(Object(s.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},I=function(e){return o.a.post(Object(s.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},R=function(e,t){return o.a.patch(Object(s.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},D=function(e){return o.a.get(Object(s.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},L=function(){return Object(h.f)().then((function(e){return D(e.sub).then((function(t){return x(x({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},F=function(e){return o.a.get(e).then((function(e){return e.data}))},U=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return C?new Promise((function(e){return e(C)})):o.a.get(Object(s.b)(S.resource_types)).then((function(e){var n=e.data;return _(C=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(b.h)(t+e,n),n})))}))}},"./js/apps/gn-geostory.js":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"load",(function(){return ee})),n.d(r,"getData",(function(){return te}));var o=n("./node_modules/react-redux/es/index.js"),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),u=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(u),c=n("./MapStore2/web/client/components/app/main.jsx"),d=n("./node_modules/react/index.js"),f=n.n(d),p=n("./node_modules/prop-types/index.js"),h=n.n(p),m=n("./node_modules/url/url.js"),b=n.n(m),y=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),v=n("./MapStore2/web/client/utils/PluginsUtils.js"),_=n("./MapStore2/web/client/actions/geostory.js"),j=n("./MapStore2/web/client/components/plugins/PluginsContainer.jsx"),g=n("./MapStore2/web/client/utils/StateUtils.js"),x=n("./MapStore2/node_modules/lodash/join.js"),w=n.n(x);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce((function(n,r){return-1!==t.indexOf(r)?n:M(M({},n),{},T({},r,e[r]))}),{})}(e.reduce((function(e,t){return M(M({},e),t.plugin)}),{}),i)))),p(!1)})).catch((function(){l({}),p(!1)}))}),[m]),{plugins:u,pending:f}};function P(e,t){return t.then((function(t){var n=t.default;return{default:{name:e,component:n[e+"Plugin"],reducers:n.reducers||{},epics:n.epics||{},containers:n.containers||{}}}}))}var k={OmniBarPlugin:function(){return P("OmniBar",n.e("plugins/omni-bar-plugin").then(n.bind(null,"./MapStore2/web/client/plugins/OmniBar.jsx")))},BurgerMenuPlugin:function(){return P("BurgerMenu",n.e("plugins/burger-menu-plugin").then(n.bind(null,"./MapStore2/web/client/plugins/BurgerMenu.jsx")))},GeoStoryPlugin:function(){return P("GeoStory",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e("plugins/geostory-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStory.jsx")))},MediaEditorPlugin:function(){return P("MediaEditor",Promise.all([n.e(0),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e(6),n.e("plugins/media-editor-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/MediaEditor.jsx")))},GeoStoryEditorPlugin:function(){return P("GeoStoryEditor",Promise.all([n.e(0),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e(6),n.e("plugins/geostory-editor-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStoryEditor.jsx")))},GeoStoryNavigationPlugin:function(){return P("GeoStoryNavigation",Promise.all([n.e(0),n.e("vendors~plugins/geostory-navigation-plugin"),n.e("plugins/geostory-navigation-plugin~plugins/share-plugin"),n.e("plugins/geostory-navigation-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/GeoStoryNavigation.jsx")))},NotificationsPlugin:function(){return P("Notifications",Promise.all([n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(4),n.e("vendors~plugins/notifications-plugin"),n.e("plugins/notifications-plugin")]).then(n.bind(null,"./MapStore2/web/client/plugins/Notifications.jsx")))},SavePlugin:function(){return P("Save",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(6),n.e("plugins/save-plugin")]).then(n.bind(null,"./js/plugins/Save.jsx")))},SaveAsPlugin:function(){return P("SaveAs",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e(6),n.e("plugins/save-as-plugin")]).then(n.bind(null,"./js/plugins/SaveAs.jsx")))},SharePlugin:function(){return P("Share",Promise.all([n.e(0),n.e("vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50"),n.e("vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a"),n.e("plugins/geostory-navigation-plugin~plugins/share-plugin"),n.e("plugins/share-plugin")]).then(n.bind(null,"./js/plugins/Share.jsx")))}};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s(s({},e),{},{loading:!0});case r.d:return s(s({},e),{},{error:null,data:t.data,loading:!1});case r.a:return s(s({},e),{},{data:null,error:t.error,loading:!1});case r.h:return s(s({},e),{},{data:s(s({},e.data),t.properties)});case r.g:return s(s({},e),{},{type:t.resourceType});case r.c:return s(s({},e),{},{isNew:!0});case r.e:return s(s({},e),{},{id:t.id});case r.f:return s(s({},e),{},{permissions:t.permissions});default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));n("./node_modules/url/url.js");var r={},o=function(e){return e},s=function(e,t){r[e]=t},i=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"g",(function(){return j})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return x}));var r=n("./node_modules/url/url.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/castArray.js"),i=n.n(s);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["page"],h={},m=function(e,t){h[e]=t},b=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==h||null===(e=h[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==h?void 0:h[e+t]},v=function(){return p},_=function(){return 20},j=function(e){var t=e.location,n=e.pathname,r=e.query,s=e.replaceQuery,u=t.search,l=f(t,["search"]),p=o.a.parse(u||"",!0).query,h=r?s?c(c({},p),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=i()(e[t]).filter((function(e){return e})),s=-1===o.indexOf(n)?[].concat(a(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,s))}),p):p;return"#".concat(o.a.format(c(c(c({},l),n&&{pathname:n}),{},{query:Object.keys(h).reduce((function(e,t){return h[t]&&0!==h[t].length?c(c({},e),{},d({},t,h[t])):e}),{})})))};function g(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var x=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=u,t.isNumber=l,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw r(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw r(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw r(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw r(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!u(e))throw r(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw r(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw r(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw r(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw r(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw r(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw r(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},g.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(_.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},g.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},g.prototype.number=function(e){if(!j.test(e)){if(_.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},g.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},g.prototype.keyword=function(e){if(v.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!_.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},g.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!_.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},g.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var n=e.GEOGCS;function r(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(n=e),n&&(n.DATUM?e.datumCode=n.DATUM.name.toLowerCase():e.datumCode=n.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),n.DATUM&&n.DATUM.SPHEROID&&(e.ellps=n.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=n.DATUM.SPHEROID.a,e.rf=parseFloat(n.DATUM.SPHEROID.rf,10)),n.DATUM&&n.DATUM.TOWGS84&&(e.datum_params=n.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",S],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",S],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",S],["lat0","latitude_of_origin",S],["lat0","standard_parallel_1",S],["lat1","standard_parallel_1",S],["lat2","standard_parallel_2",S],["azimuth","Azimuth"],["alpha","azimuth",S],["srsCode","name"]].forEach((function(t){return n=e,o=(r=t)[0],s=r[1],void(!(o in n)&&s in n&&(n[o]=n[s],3===r.length&&(n[o]=r[2](n[o]))));var n,r,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=S(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function E(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?E[e]=h(arguments[1]):E[e]=O(arguments[1]):E[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?E.apply(t,e):E(e)}));if("string"==typeof e){if(e in E)return E[e]}else"EPSG"in e?E["EPSG:"+e.EPSG]=e:"ESRI"in e?E["ESRI:"+e.ESRI]=e:"IAU2000"in e?E["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(E);var M=E;var T=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var C=["3857","900913","3785","102113"];var P=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in M}(e))return M[e];if(function(e){return T.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=O(e);if(function(e){var t=p(e,"authority");if(t){var n=p(t,"epsg");return n&&C.indexOf(n)>-1}}(t))return M["EPSG:3857"];var n=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return n?h(n):t}return function(e){return"+"===e[0]}(e)?h(e):void 0},k=function(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e},A=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)},N=function(e){return e<0?-1:1},I=function(e){return Math.abs(e)<=l?e:e-N(e)*u},R=function(e,t,n){var r=e*n,s=.5*e;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(o-t))/r},D=function(e,t){for(var n,r,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(i),i+=r=o-2*Math.atan(t*Math.pow((1-n)/(1+n),s))-i,Math.abs(r)<=1e-10)return i;return-9999};function L(e){return e}var F=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,s=e.y;if(s*i>90&&s*i<-90&&r*i>180&&r*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*I(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var u=Math.sin(s),l=R(this.e,s,u);t=this.x0+this.a*this.k0*I(r-this.long0),n=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,s=e.y-this.y0;if(this.sphere)n=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(n=D(this.e,i)))return null}return t=I(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:L,inverse:L,names:["longlat","identity"]}],U={},B=[];function z(e,t){var n=B.length;return e.names?(B[n]=e,e.names.forEach((function(e){U[e.toLowerCase()]=n})),this):(console.log(t),!0)}var q={start:function(){F.forEach(z)},add:z,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==U[t]&&B[U[t]]?B[U[t]]:void 0}},W={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},G=W.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};W.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var V={};V.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},V.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},V.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},V.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},V.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},V.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},V.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},V.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},V.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},V.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},V.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},V.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},V.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},V.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},V.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},V.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},V.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var H=function(e,t,n,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=r,a.datum_params[4]*=r,a.datum_params[5]*=r,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=n,a.b=o,a.es=s,a.ep2=i,a};function K(e,t){if(!(this instanceof K))return new K(e);t=t||function(e){if(e)throw e};var n=P(e);if("object"==typeof n){var r=K.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=p(V,n.datumCode);o&&(n.datum_params=o.towgs84?o.towgs84.split(","):null,n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var s,i,a,u,l,c,d,f=function(e,t,n,r,o){if(!e){var s=p(W,r);s||(s=G),e=s.a,t=s.b,n=s.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),h=(s=f.a,i=f.b,f.rf,a=n.R_A,c=((u=s*s)-(l=i*i))/u,d=0,a?(u=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(u-l)/l}),m=n.datum||H(n.datumCode,n.datum_params,f.a,f.b,h.es,h.ep2);k(this,n),k(this,r),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=h.es,this.e=h.e,this.ep2=h.ep2,this.datum=m,this.init(),t(null,this)}else t(e)}else t(e)}K.projections=q,K.projections.start();var $=K;function Y(e){return 1===e||2===e}var X=function(e,t,n){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?n:e.es!==t.es||e.a!==t.a||Y(e.datum_type)||Y(t.datum_type)?(n=function(e,t,n){var r,s,i,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-o&&l>-1.001*o)l=-o;else if(l>o&&l<1.001*o)l=o;else if(l<-o||l>o)return null;return u>Math.PI&&(u-=2*Math.PI),s=Math.sin(l),a=Math.cos(l),i=s*s,{x:((r=n/Math.sqrt(1-t*i))+c)*a*Math.cos(u),y:(r+c)*a*Math.sin(u),z:(r*(1-t)+c)*s}}(n,e.es,e.a),Y(e.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],l=n[6];return{x:l*(e.x-u*e.y+a*e.z)+r,y:l*(u*e.x+e.y-i*e.z)+o,z:l*(-a*e.x+i*e.y+e.z)+s}}}(n,e.datum_type,e.datum_params)),Y(t.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],l=n[6],c=(e.x-r)/l,d=(e.y-o)/l,f=(e.z-s)/l;return{x:c+u*d-a*f,y:-u*c+d+i*f,z:a*c-i*d+f}}}(n,t.datum_type,t.datum_params)),function(e,t,n,r){var s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j=e.x,g=e.y,x=e.z?e.z:0;if(s=Math.sqrt(j*j+g*g),i=Math.sqrt(j*j+g*g+x*x),s/n<1e-12){if(v=0,i/n<1e-12)return o,_=-r,{x:e.x,y:e.y,z:e.z}}else v=Math.atan2(g,j);a=x/i,f=(u=s/i)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=a*l,y=0;do{y++,c=t*(d=n/Math.sqrt(1-t*p*p))/(d+(_=s*f+x*p-d*(1-t*p*p))),b=(m=a*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*f-(h=u*(1-c)*l)*p,f=h,p=m}while(b*b>1e-24&&y<30);return{x:v,y:Math.atan(m/Math.abs(h)),z:_}}(n,t.es,t.a,t.b)):n},J=function(e,t,n){var r,o,s,i=n.x,a=n.y,u=n.z||0,l={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==n.z)switch(0===s?(r=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(r=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(r=u,o="z"),e.axis[s]){case"e":l[o]=r;break;case"w":l[o]=-r;break;case"n":l[o]=r;break;case"s":l[o]=-r;break;case"u":void 0!==n[o]&&(l.z=r);break;case"d":void 0!==n[o]&&(l.z=-r);break;default:return null}return l},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function Z(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,n){var r;return Array.isArray(n)&&(n=Q(n)),function(e){Z(e.x),Z(e.y)}(n),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(n=ee(e,r=new $("WGS84"),n),e=r),"enu"!==e.axis&&(n=J(e,!1,n)),"longlat"===e.projName?n={x:n.x*s,y:n.y*s}:(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter}),n=e.inverse(n)),e.from_greenwich&&(n.x+=e.from_greenwich),n=X(e.datum,t.datum,n),t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y}),"longlat"===t.projName?n={x:n.x*i,y:n.y*i}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter})),"enu"!==t.axis?J(t,!0,n):n}var te=$("WGS84");function ne(e,t,n){var r,o,s;return Array.isArray(n)?(r=ee(e,t,n),3===n.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=ee(e,t,n),2===(s=Object.keys(n)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=n[e])})),o)}function re(e){return e instanceof $?e:e.oProj?e.oProj:$(e)}var oe=function(e,t,n){e=re(e);var r,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=te,o=!0),t=re(t),n?ne(e,t,n):(r={forward:function(n){return ne(e,t,n)},inverse:function(n){return ne(t,e,n)}},o&&(r.oProj=t),r)},se=73,ie=79,ae={forward:ue,inverse:function(e){var t=fe(me(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:le};function ue(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,h=e.northing,m=e.zoneNumber,b=he(m),y=Math.floor(p/1e5),v=Math.floor(h/1e5)%20,o=y,s=v,i=b,a=i-1,u="AJSAJS".charCodeAt(a),l="AFAFAF".charCodeAt(a),c=u+o-1,d=l+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||use||(c>se||uie||(c>ie||u90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||lse||(d>se||lie||(d>ie||l86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var o,s,i,a,u,l,c,d,f;var p,h,m,b,y,v}(function(e){var t,n,r,o,s,i,a,u=e.lat,l=e.lon,c=6378137,d=ce(u),f=ce(l);a=Math.floor((l+180)/6)+1,180===l&&(a=60);u>=56&&u<64&&l>=3&&l<12&&(a=32);u>=72&&u<84&&(l>=0&&l<9?a=31:l>=9&&l<21?a=33:l>=21&&l<33?a=35:l>=33&&l<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),n=Math.tan(d)*Math.tan(d),r=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-n+r)*o*o*o/6+(5-18*n+n*n+72*r-.39089081163157013)*o*o*o*o*o/120)+5e5,h=.9996*(s+t*Math.tan(d)*(o*o/2+(5-n+9*r+4*r*r)*o*o*o*o/24+(61-58*n+n*n+600*r-2.2240339282485886)*o*o*o*o*o*o/720));u<0&&(h+=1e7);return{northing:Math.round(h),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(u)}}({lat:e[1],lon:e[0]}),t)}function le(e){var t=fe(me(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,u,l,c,d,f,p=6378137,h=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=n-5e5,b=t;r<"N"&&(b-=1e7),c=6*(o-1)-180+3,f=(d=b/.9996/6367449.145945056)+(3*h/2-27*h*h*h/32)*Math.sin(2*d)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*d)+151*h*h*h/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=m/(.9996*s);var y=f-s*Math.tan(f)/u*(l*l/2-(5+3*i+10*a-4*a*a-.06065547077041606)*l*l*l*l/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*l*l*l*l*l*l/720);y=de(y);var v,_=(l-(1+2*i+a)*l*l*l/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*l*l*l*l*l/120)/Math.cos(f);if(_=c+de(_),e.accuracy){var j=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:j.lat,right:j.lon,bottom:y,left:_}}else v={lat:y,lon:_};return v}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function he(e){var t=e%6;return 0===t&&(t=6),t}function me(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(s,s+=2);for(var u=he(i),l=function(e,t){var n="AJSAJS".charCodeAt(t-1),r=1e5,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>90){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n="AFAFAF".charCodeAt(t-1),r=0,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>86){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(1),u);c0&&(f=1e5/Math.pow(10,m),p=e.substring(s,s+m),b=parseFloat(p)*f,h=e.substring(s+m),y=parseFloat(h)*f),{easting:b+l,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function be(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(le(e))},ye.prototype.toMGRS=function(e){return ue([this.x,this.y],e)};var ve=ye,_e=n("./node_modules/@geosolutions/proj4/package.json"),je=.01068115234375,ge=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*je))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*je)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t},xe=function(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))},we=function(e,t,n){for(var r=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(xe(o,i,Math.cos(o),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<1e-10)return o}return o};var Se={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=ge(this.es),this.ml0=xe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,o=e.x,s=e.y,i=I(o-this.long0),a=Math.sin(s),u=Math.cos(s);if(this.es){var l=u*i,c=Math.pow(l,2),d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.abs(u)>1e-10?Math.tan(s):0,h=Math.pow(p,2),m=Math.pow(h,2);t=1-this.es*Math.pow(a,2),l/=Math.sqrt(t);var b=xe(s,a,u,this.en);n=this.a*(this.k0*l*(1+c/6*(1-h+d+c/20*(5-18*h+m+14*d-58*h*d+c/42*(61+179*m-m*h-479*h)))))+this.x0,r=this.a*(this.k0*(b-this.ml0+a*i*l/2*(1+c/12*(5-h+9*d+4*f+c/30*(61+m-58*h+270*d-330*h*d+c/56*(1385+543*m-m*h-3111*h))))))+this.y0}else{var y=u*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=u*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>1e-10)return 93;r=0}else r=Math.acos(r);s<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,n=we(t,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.pow(c,2),h=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var m=i*Math.sqrt(t)/this.k0,b=Math.pow(m,2);r=n-(t*=c)*b/(1-this.es)*.5*(1-b/12*(5+3*p-9*d*p+d-4*f-b/30*(61+90*p-252*d*p+45*h+46*d-b/56*(1385+3633*p+4095*h+1574*h*p)))),s=I(this.long0+m*(1-b/6*(1+2*p+d-b/20*(5+28*p+24*h+8*d*p+6*d-b/42*(61+662*p+1320*h+720*h*p))))/l)}else r=o*N(a),s=0;else{var y=Math.exp(i/this.k0),v=.5*(y-1/y),_=this.lat0+a/this.k0,j=Math.cos(_);t=Math.sqrt((1-Math.pow(j,2))/(1+Math.pow(v,2))),r=Math.asin(t),a<0&&(r=-r),s=0===v&&0===j?0:I(Math.atan2(v,j)+this.long0)}return e.x=s,e.y=r,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Oe=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Ee=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))},Me=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(Ee(1,t)+1))),e<0?-t:t},Te=function(e,t){for(var n,r=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return t+n*Math.sin(2*t)},Ce=function(e,t,n){for(var r,o,s=Math.sin(t),i=Math.cos(t),a=Oe(n),u=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(n),l=2*i*u,c=-2*s*a,d=e.length-1,f=e[d],p=0,h=0,m=0;--d>=0;)r=h,o=p,f=l*(h=f)-r-c*(p=m)+e[d],m=c*h-o+l*p;return[(l=s*u)*f-(c=i*a)*m,l*m+c*f]};var Pe={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=Te(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=I(e.x-this.long0),n=e.y;n=Te(this.cbg,n);var r=Math.sin(n),o=Math.cos(n),s=Math.sin(t),i=Math.cos(t);n=Math.atan2(r,i*o),t=Math.atan2(s*o,Ee(r,o*i)),t=Me(Math.tan(t));var a,u,l=Ce(this.gtu,2*n,2*t);return n+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,u=1/0),e.x=a,e.y=u,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var s=Ce(this.utg,2*o,2*r);o+=s[0],r+=s[1],r=Math.atan(Oe(r));var i=Math.sin(o),a=Math.cos(o),u=Math.sin(r),l=Math.cos(r);o=Math.atan2(i*l,Ee(u,l*a)),r=Math.atan2(u,l*a),t=I(r+this.long0),n=Te(this.cgb,o)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var ke={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(I(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Pe.init.apply(this),this.forward=Pe.forward,this.inverse=Pe.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Ae=function(e,t){return Math.pow((1-e)/(1+e),t)};var Ne={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Ae(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+a),this.C)*Ae(this.e*Math.sin(n),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+a)/this.K,1/this.C),s=20;s>0&&(n=2*Math.atan(r*Ae(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(n-e.y)<1e-14));--s)e.y=n;return s?(e.x=t,e.y=n,e):null},names:["gauss"]};var Ie={init:function(){Ne.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,o;return e.x=I(e.x-this.long0),Ne.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=o*n*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),n=Math.cos(i),o=Math.asin(n*this.sinc0+e.y*t*this.cosc0/s),r=Math.atan2(e.x*t,s*this.cosc0*n-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,Ne.inverse.apply(this,[e]),e.x=I(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Re={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+N(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/R(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=A(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,s,i,a,u=e.x,l=e.y,c=Math.sin(l),d=Math.cos(l),f=I(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=1e-10&&Math.abs(l+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-o,s=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(i=R(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*r-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,n,r,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,n=this.lat0,a<=1e-10?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?I(this.long0+Math.atan2(e.x,-1*e.y)):I(this.long0+Math.atan2(e.x,e.y)):I(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*D(this.e,r),t=this.con*I(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=I(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),n=-1*D(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*n)}};var De={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,o=2*(Math.atan(Math.exp(r))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,o=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(r)),i=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,u=0,l=s,c=-1e3,d=0;Math.abs(l-c)>1e-7;){if(++d>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=a,e.y=l,e},names:["somerc"]};var Le={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),n=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var r,o,s=R(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-n*n));if(i*i<1&&(i=1),isNaN(this.longc)){var a=R(this.e,this.lat1,Math.sin(this.lat1)),u=R(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var l=Math.pow(a,this.bl),c=Math.pow(u,this.bl);o=.5*((r=this.el/l)-1/r);var d=(this.el*this.el-c*l)/(this.el*this.el+c*l),f=(c-l)/(c+l),p=I(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=I(this.long0);var h=I(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*h)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else r=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=r*Math.pow(s,this.bl),o=.5*(r-1/r),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,n,r,s=e.x,i=e.y,u=I(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)r=i>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(a+r*this.gamma0*.5)),t=-1*r*o*this.al/this.bl;else{var l=R(this.e,i,Math.sin(i)),c=this.el/Math.pow(l,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*u),h=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;n=Math.abs(Math.abs(h)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-h)/(1+h))/this.bl,t=Math.abs(Math.cos(this.bl*u))<=1e-10?this.al*this.bl*u:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*u))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+n):(t-=this.uc,e.x=this.x0+n*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-n*Math.sin(this.alpha)),e},inverse:function(e){var t,n;this.no_rot?(n=e.y-this.y0,t=e.x-this.x0):(n=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*n/this.al),s=.5*(r-1/r),i=.5*(r+1/r),a=Math.sin(this.bl*t/this.al),u=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,l=Math.pow(this.el/Math.sqrt((1+u)/(1-u)),1/this.bl);return Math.abs(u-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(u+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=D(this.e,l),e.x=I(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Fe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=A(this.e,t,n),o=R(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=A(this.e,s,i),u=R(this.e,this.lat2,s),l=R(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(r/a)/Math.log(o/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=N(n)*(o-2e-10));var r,s,i=Math.abs(Math.abs(n)-o);if(i>1e-10)r=R(this.e,n,Math.sin(n)),s=this.a*this.f0*Math.pow(r,this.ns);else{if((i=n*this.ns)<=0)return null;s=0}var a=this.ns*I(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,s,i,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),n=1):(t=-Math.sqrt(a*a+u*u),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*u)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(s=D(this.e,r)))return null}else s=-o;return i=I(l/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Ue={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y,c=I(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),r=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),s=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,o,s,i,a,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(o)),n=Math.asin(Math.cos(r)*Math.sin(o)/Math.cos(t)),e.x=this.long0-n/this.alfa,i=t,a=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,l+=1}while(0===a&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},Be=function(e,t,n,r,o){return e*o-t*Math.sin(2*o)+n*Math.sin(4*o)-r*Math.sin(6*o)},ze=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},qe=function(e){return.375*e*(1+.25*e*(1+.46875*e))},We=function(e){return.05859375*e*e*(1+.75*e)},Ge=function(e){return e*e*e*(35/3072)},Ve=function(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)},He=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t};var Xe={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Ye(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=.3333333333333333*e,t=e*e,n[0]+=.17222222222222222*t,n[1]=.06388888888888888*t,t*=e,n[0]+=.10257936507936508*t,n[1]+=.0664021164021164*t,n[2]=.016415012942191543*t,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Ye(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,s,i,u,l,c,d,f,p=e.x,h=e.y;if(p=I(p-this.long0),this.sphere){if(i=Math.sin(h),f=Math.cos(h),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*r:1+this.sinph0*i+this.cosph0*f*r)<=1e-10)return null;t=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.phi0)<1e-10)return null;n=a-.5*h,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=r}}else{switch(l=0,c=0,d=0,r=Math.cos(p),s=Math.sin(p),i=Math.sin(h),u=Ye(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=u/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:d=1+this.sinb1*l+this.cosb1*c*r;break;case this.EQUIT:d=1+c*r;break;case this.N_POLE:d=o+h,u=this.qp-u;break;case this.S_POLE:d=h-o,u=this.qp+u}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*l-this.sinb1*c*r):(d=Math.sqrt(2/(1+c*r)))*l*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:u>=0?(t=(d=Math.sqrt(u))*s,n=r*(this.mode===this.S_POLE?d:-d)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,s,i,a,u,l,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var h,m=0,b=0;if((n=.5*(h=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(b=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(h)<=1e-10?0:Math.asin(p*b/h),f*=b,p=m*h;break;case this.OBLIQ:n=Math.abs(h)<=1e-10?this.phi0:Math.asin(m*this.sinph0+p*b*this.cosph0/h),f*=b*this.cosph0,p=(m-Math.sin(n)*this.sinph0)*h;break;case this.N_POLE:p=-p,n=o-n;break;case this.S_POLE:n-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),r=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(u=r*this.sinb1+p*s*this.cosb1/a,i=this.qp*u,p=a*this.cosb1*r-p*this.sinb1*s):(u=p*s/a,i=this.qp*u,p=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;u=1-i/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(f,p),l=Math.asin(u),c=this.apa,d=l+l,n=l+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=I(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Je=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=A(this.e3,this.sin_po,this.cos_po),this.qs1=Ye(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=A(this.e3,this.sin_po,this.cos_po),this.qs2=Ye(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ye(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Ye(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,s=this.ns0*I(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,i=this.phi1z(this.e3,n)),s=I(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,o,s,i=Je(.5*t);if(e<1e-10)return i;for(var a=e*e,u=1;u<=25;u++)if(i+=s=.5*(o=1-(r=e*(n=Math.sin(i)))*r)*o/Math.cos(i)*(t/(1-a)-n/o+.5/e*Math.log((1-r)/(1+r))),Math.abs(s)<=1e-7)return i;return null}};var Ze={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y;return r=I(u-this.long0),t=Math.sin(l),n=Math.cos(l),o=Math.cos(r),1,(s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*n*Math.sin(r)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)/s):(i=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),n=Math.sin(o),r=Math.cos(o),i=Je(r*this.sin_p14+e.y*n*this.cos_p14/t),s=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),s=I(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,o=e.y,s=I(r-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Ye(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,n=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=I(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*o:o;for(var r,s,i,a,u=Math.asin(.5*t),l=0;l<30;l++)if(s=Math.sin(u),i=Math.cos(u),a=e*s,u+=r=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=I(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=I(t-this.long0),o=He(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,n=e.y;return e.x=I(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=He(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var nt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ze(this.es),this.e1=qe(this.es),this.e2=We(this.es),this.e3=Ge(this.es),this.ml0=this.a*Be(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,o=e.x,s=e.y,i=I(o-this.long0);if(r=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(s),n=this.a*(He(s-this.lat0)+(1-Math.cos(r))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,n=-1*this.ml0;else{var a=Ve(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(r),n=this.a*Be(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,o,s,i,a,u,l;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=I(r/this.a+this.long0),n=0;else{var c;for(i=this.lat0+o/this.a,a=r*r/this.a/this.a+i*i,u=i,s=20;s;--s)if(u+=l=-1*(i*(u*(c=Math.tan(u))+1)-u-.5*(u*u+a)*c)/((u-i)/c-1),Math.abs(l)<=1e-10){n=u;break}t=I(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(n))}else if(Math.abs(o+this.ml0)<=1e-10)n=0,t=I(this.long0+r/this.a);else{var d,f,p,h,m;for(i=(this.ml0+o)/this.a,a=r*r/this.a/this.a+i*i,u=i,s=20;s;--s)if(m=this.e*Math.sin(u),d=Math.sqrt(1-m*m)*Math.tan(u),f=this.a*Be(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(i*(d*(h=f/this.a)+1)-h-.5*d*(h*h+a))/(this.es*Math.sin(2*u)*(h*h+a-2*i*h)/(4*d)+(i-h)*(d*p-2/Math.sin(2*u))-p),Math.abs(l)<=1e-10){n=u;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=I(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};var rt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,o=e.y-this.lat0,s=n-this.long0,i=o/r*1e-5,a=s,u=1,l=0;for(t=1;t<=10;t++)u*=i,l+=this.A[t]*u;var c,d=l,f=a,p=1,h=0,m=0,b=0;for(t=1;t<=6;t++)c=h*d+p*f,p=p*d-h*f,h=c,m=m+this.B_re[t]*p-this.B_im[t]*h,b=b+this.B_im[t]*p+this.B_re[t]*h;return e.x=b*this.a+this.x0,e.y=m*this.a+this.y0,e},inverse:function(e){var t,n,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,u=i/this.a,l=1,c=0,d=0,f=0;for(t=1;t<=6;t++)n=c*a+l*u,l=l*a-c*u,c=n,d=d+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p.999999999999&&(n=.999999999999),t=Math.asin(n);var r=I(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return e.x=r,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ze(this.es),this.e1=qe(this.es),this.e2=We(this.es),this.e3=Ge(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=A(this.e,this.sinphi,this.cosphi),this.ml1=Be(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=A(this.e,this.sinphi,this.cosphi),this.ml2=Be(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Be(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var o=Be(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-o)}var s=this.ns*I(n-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==n&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=I(this.long0+s/this.ns),r=He(this.g-n/this.a),e.x=o,e.y=r,e;var i=this.g-n/this.a;return r=Ke(i,this.e0,this.e1,this.e2,this.e3),o=I(this.long0+s/this.ns),e.x=o,e.y=r,e},names:["Equidistant_Conic","eqdc"]};var ut={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,s=e.y,i=I(r-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,n=this.y0);var a=Je(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/i-i/Math.PI),l=u*u,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,h=f*(2/c-1),m=h*h,b=Math.PI*this.R*(u*(f-m)+Math.sqrt(l*(f-m)*(f-m)-(m+l)*(p-m)))/(m+l);i<0&&(b=-b),t=this.x0+b;var y=l+f;return b=Math.PI*this.R*(h*y-u*Math.sqrt((m+l)*(l+1)-y*y))/(m+l),n=s>=0?this.y0+b:this.y0-b,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,o,s,i,a,u,l,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(r=e.x/d)*r+(o=e.y/d)*o,d=3*(o*o/(u=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+r*r)*a*a/u/u/u-9*i*a/u/u)/27)/(l=(i-a*a/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,n=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI,t=Math.abs(r)<1e-10?this.long0:I(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(r*r-o*o)+s*s))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var lt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j,g,x,w,S=e.x,O=e.y,E=Math.sin(e.y),M=Math.cos(e.y),T=I(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-O)*Math.sin(T),e.y=this.y0-this.a*(o-O)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+O)*Math.sin(T),e.y=this.y0+this.a*(o+O)*Math.cos(T),e):(_=this.sin_p12*E+this.cos_p12*M*Math.cos(T),v=(y=Math.acos(_))/Math.sin(y),e.x=this.x0+this.a*v*M*Math.sin(T),e.y=this.y0+this.a*v*(this.cos_p12*E-this.sin_p12*M*Math.cos(T)),e):(t=ze(this.es),n=qe(this.es),r=We(this.es),s=Ge(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*Be(t,n,r,s,o),a=this.a*Be(t,n,r,s,O),e.x=this.x0+(i-a)*Math.sin(T),e.y=this.y0-(i-a)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*Be(t,n,r,s,o),a=this.a*Be(t,n,r,s,O),e.x=this.x0+(i+a)*Math.sin(T),e.y=this.y0+(i+a)*Math.cos(T),e):(u=E/M,l=Ve(this.a,this.e,this.sin_p12),c=Ve(this.a,this.e,E),d=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*M)),j=0===(f=Math.atan2(Math.sin(T),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(T)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(T)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=l*j*(1-(g=j*j)*(b=(h=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*h)*(1-b)/6+(x=g*j)/8*(m=p*h)*(1-2*b)+(w=x*j)/120*(b*(4-7*b)-3*p*p*(1-7*b))-w*j/48*m),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,n,r,s,i,a,u,l,c,d,f,p,h,m,b,y,v,_,j,g,x,w;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return n=t/this.a,r=Math.sin(n),s=Math.cos(n),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Je(s*this.sin_p12+e.y*r*this.cos_p12/t),u=Math.abs(this.lat0)-o,i=Math.abs(u)<=1e-10?this.lat0>=0?I(this.long0+Math.atan2(e.x,-e.y)):I(this.long0-Math.atan2(-e.x,e.y)):I(this.long0+Math.atan2(e.x*r,t*this.cos_p12*s-e.y*this.sin_p12*r))),e.x=i,e.y=a,e}return l=ze(this.es),c=qe(this.es),d=We(this.es),f=Ge(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*Be(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((p-t)/this.a,l,c,d,f),i=I(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*Be(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((t-p)/this.a,l,c,d,f),i=I(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),b=Math.atan2(e.x,e.y),h=Ve(this.a,this.e,this.sin_p12),y=Math.cos(b),_=-(v=this.e*this.cos_p12*y)*v/(1-this.es),j=3*this.es*(1-_)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-_*(x=(g=t/h)-_*(1+_)*Math.pow(g,3)/6-j*(1+3*_)*Math.pow(g,4)/24)*x/2-g*x*x*x/6,m=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*y),i=I(this.long0+Math.asin(Math.sin(b)*Math.sin(x)/Math.cos(m))),a=Math.atan((1-this.es*w*this.sin_p12/Math.sin(m))*Math.tan(m)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,o,s,i,a,u=e.x,l=e.y;return r=I(u-this.long0),t=Math.sin(l),n=Math.cos(l),o=Math.cos(r),1,((s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,s,i,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),n=Je(t/this.a),r=Math.sin(n),s=Math.cos(n),a=this.long0,Math.abs(t)<=1e-10?(u=this.lat0,e.x=a,e.y=u,e):(u=Je(s*this.sin_p14+e.y*r*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?I(this.long0+Math.atan2(e.x,-e.y)):I(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=I(this.long0+Math.atan2(e.x*r,t*this.cos_p14*s-e.y*this.sin_p14*r)),e.x=a,e.y=u,e))},names:["ortho"]},dt=1,ft=2,pt=3,ht=4,mt=5,bt=6,yt=1,vt=2,_t=3,jt=4;function gt(e,t,n,r){var s;return e<1e-10?(r.value=yt,s=0):(s=Math.atan2(t,n),Math.abs(s)<=a?r.value=yt:s>a&&s<=o+a?(r.value=vt,s-=o):s>o+a||s<=-(o+a)?(r.value=_t,s=s>=0?s-l:s+l):(r.value=jt,s+=o)),s}function xt(e,t){var n=e+t;return n<-l?n+=u:n>+l&&(n-=u),n}var wt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=mt:this.lat0<=-(o-a/2)?this.face=bt:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:ht:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,s,i,u,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===mt)s=o-t,n>=a&&n<=o+a?(d.value=yt,r=n-o):n>o+a||n<=-(o+a)?(d.value=vt,r=n>0?n-l:n+l):n>-(o+a)&&n<=-a?(d.value=_t,r=n+o):(d.value=jt,r=n);else if(this.face===bt)s=o+t,n>=a&&n<=o+a?(d.value=yt,r=-n+o):n=-a?(d.value=vt,r=-n):n<-a&&n>=-(o+a)?(d.value=_t,r=-n-o):(d.value=jt,r=n>0?-n+l:-n-l);else{var f,p,h,m,b,y;this.face===ft?n=xt(n,+o):this.face===pt?n=xt(n,+l):this.face===ht&&(n=xt(n,-o)),m=Math.sin(t),b=Math.cos(t),y=Math.sin(n),f=b*Math.cos(n),p=b*y,h=m,this.face===dt?r=gt(s=Math.acos(f),h,p,d):this.face===ft?r=gt(s=Math.acos(p),h,-f,d):this.face===pt?r=gt(s=Math.acos(-f),h,-p,d):this.face===ht?r=gt(s=Math.acos(-p),h,f,d):(s=r=0,d.value=yt)}return u=Math.atan(12/l*(r+Math.acos(Math.sin(r)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(u)*Math.cos(u))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===vt?u+=o:d.value===_t?u+=l:d.value===jt&&(u+=1.5*l),c.x=i*Math.cos(u),c.y=i*Math.sin(u),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,n,r,s,i,a,u,c,d,f,p,h,m={lam:0,phi:0},b={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?b.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(b.value=vt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(b.value=_t,t=t<0?t+l:t-l):(b.value=jt,t+=o),d=l/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(u=1-(r=Math.cos(t))*r*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===mt)c=Math.acos(u),m.phi=o-c,b.value===yt?m.lam=a+o:b.value===vt?m.lam=a<0?a+l:a-l:b.value===_t?m.lam=a-o:m.lam=a;else if(this.face===bt)c=Math.acos(u),m.phi=c-o,b.value===yt?m.lam=-a+o:b.value===vt?m.lam=-a:b.value===_t?m.lam=-a-o:m.lam=a<0?-a-l:-a+l;else{var y,v,_;d=(y=u)*y,v=(d+=(_=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*_)>=1?0:Math.sqrt(1-d),b.value===vt?(d=v,v=-_,_=d):b.value===_t?(v=-v,_=-_):b.value===jt&&(d=v,v=_,_=-d),this.face===ft?(d=y,y=-v,v=d):this.face===pt?(y=-y,v=-v):this.face===ht&&(d=y,y=v,v=-d),m.phi=Math.acos(-_)-o,m.lam=Math.atan2(v,y),this.face===ft?m.lam=xt(m.lam,-o):this.face===pt?m.lam=xt(m.lam,-l):this.face===ht&&(m.lam=xt(m.lam,+o))}return 0!==this.es&&(f=m.phi<0?1:0,p=Math.tan(m.phi),h=this.b/Math.sqrt(p*p+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),f&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},St=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ot=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Et=i/5,Mt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var Tt,Ct={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=I(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Et);r<0?r=0:r>=18&&(r=17);var o={x:Mt(St[r],n=i*(n-.08726646259971647*r))*t,y:Mt(Ot[r],n)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=St[18][0],t.y=e.y<0?-o:o;else{var n=Math.floor(18*t.y);for(n<0?n=0:n>=18&&(n=17);;)if(Ot[n][0]>t.y)--n;else{if(!(Ot[n+1][0]<=t.y))break;++n}var r=Ot[n],i=5*(t.y-r[0])/(Ot[n+1][0]-r[0]);i=function(e,t,n,r){for(var o=t;r;--r){var s=e(o);if(o-=s,Math.abs(s)1024){for(var t=0,n=o.length-s;t=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,n){"use strict";var r=n("./node_modules/axios/lib/helpers/bind.js"),o=n("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n-1}},"./MapStore2/node_modules/lodash/_arrayIncludesWith.js":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));e:for(;++c0&&s(c)?n>1?e(c,n-1,s,i,a):r(a,c):i||(a[a.length]=c)}return a}},"./MapStore2/node_modules/lodash/_baseFor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createBaseFor.js")();e.exports=r},"./MapStore2/node_modules/lodash/_baseForOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFor.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(e,t,o)}},"./MapStore2/node_modules/lodash/_baseGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_castPath.js"),o=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var g=-1,v=m[0];e:for(;++g=200){var h=t?null:a(e);if(h)return l(h);f=!1,c=i,m=new r}else m=t?[]:p;e:for(;++u1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(s--,i):void 0,a&&o(n[0],n[1],a)&&(i=s<3?void 0:i,s=1),t=Object(t);++r1&&E.reverse(),j&&gc))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var p=-1,m=!0,h=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},"./MapStore2/node_modules/lodash/_isFlattenable.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Symbol.js"),o=n("./MapStore2/node_modules/lodash/isArguments.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||o(e)||!!(i&&e&&e[i])}},"./MapStore2/node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e-1}},"./MapStore2/node_modules/lodash/_listCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},"./MapStore2/node_modules/lodash/_mapCacheClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Hash.js"),o=n("./MapStore2/node_modules/lodash/_ListCache.js"),s=n("./MapStore2/node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},"./MapStore2/node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"./MapStore2/node_modules/lodash/_mapCacheGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"./MapStore2/node_modules/lodash/_mapCacheHas.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"./MapStore2/node_modules/lodash/_mapCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"./MapStore2/node_modules/lodash/_mapToArray.js":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"./MapStore2/node_modules/lodash/_matchesStrictComparable.js":function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},"./MapStore2/node_modules/lodash/_memoizeCapped.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"./MapStore2/node_modules/lodash/_mergeData.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_composeArgs.js"),o=n("./MapStore2/node_modules/lodash/_composeArgsRight.js"),s=n("./MapStore2/node_modules/lodash/_replaceHolders.js"),i=Math.min;e.exports=function(e,t){var n=e[1],a=t[1],l=n|a,u=l<131,c=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!u&&!c)return e;1&a&&(e[2]=t[2],l|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?s(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?o(f,d,t[6]):d,e[6]=f?s(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&a&&(e[8]=null==e[8]?t[8]:i(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},"./MapStore2/node_modules/lodash/_metaMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_WeakMap.js"),o=r&&new r;e.exports=o},"./MapStore2/node_modules/lodash/_nativeCreate.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getNative.js")(Object,"create");e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeysIn.js":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"./MapStore2/node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_freeGlobal.js"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./MapStore2/node_modules/lodash/_overArg.js":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"./MapStore2/node_modules/lodash/_overRest.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_apply.js"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,i=-1,a=o(s.length-t,0),l=Array(a);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"./MapStore2/node_modules/lodash/_stackClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new r,this.size=0}},"./MapStore2/node_modules/lodash/_stackDelete.js":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"./MapStore2/node_modules/lodash/_stackGet.js":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"./MapStore2/node_modules/lodash/_stackHas.js":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"./MapStore2/node_modules/lodash/_stackSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js"),o=n("./MapStore2/node_modules/lodash/_Map.js"),s=n("./MapStore2/node_modules/lodash/_MapCache.js");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},"./MapStore2/node_modules/lodash/_strictIndexOf.js":function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||b&&e-m>=c}function _(){var e=o();if(j(e))return x(e);f=setTimeout(_,function(e){var n=t-(e-p);return b?a(n,c-(e-m)):n}(e))}function x(e){return f=void 0,y&&l?g(e):(l=u=void 0,d)}function w(){var e=o(),n=j(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return v(p);if(b)return clearTimeout(f),f=setTimeout(_,t),g(p)}return void 0===f&&(f=setTimeout(_,t)),d}return t=s(t)||0,r(n)&&(h=!!n.leading,c=(b="maxWait"in n)?i(s(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=u=f=void 0},w.flush=function(){return void 0===f?d:x(o())},w}},"./MapStore2/node_modules/lodash/defaults.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseRest.js"),o=n("./MapStore2/node_modules/lodash/eq.js"),s=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),i=n("./MapStore2/node_modules/lodash/keysIn.js"),a=Object.prototype,l=a.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&s(t[0],t[1],u)&&(r=1);++n-1&&e%1==0&&e<=9007199254740991}},"./MapStore2/node_modules/lodash/isNil.js":function(e,t){e.exports=function(e){return null==e}},"./MapStore2/node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./MapStore2/node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./MapStore2/node_modules/lodash/isPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/_getPrototype.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js"),i=Function.prototype,a=Object.prototype,l=i.toString,u=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},"./MapStore2/node_modules/lodash/isString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!o(e)&&s(e)&&"[object String]"==r(e)}},"./MapStore2/node_modules/lodash/isSymbol.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"./MapStore2/node_modules/lodash/isTypedArray.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsTypedArray.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/join.js":function(e,t){var n=Array.prototype.join;e.exports=function(e,t){return null==e?"":n.call(e,t)}},"./MapStore2/node_modules/lodash/keys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeys.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e):o(e)}},"./MapStore2/node_modules/lodash/keysIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeysIn.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e,!0):o(e)}},"./MapStore2/node_modules/lodash/lodash.js":function(e,t,n){(function(e,r){var o; +!function(e){function t(t){for(var n,o,s=t[0],i=t[1],a=0,u=[];a-1}},"./MapStore2/node_modules/lodash/_arrayIncludesWith.js":function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));e:for(;++c0&&s(c)?n>1?e(c,n-1,s,i,a):r(a,c):i||(a[a.length]=c)}return a}},"./MapStore2/node_modules/lodash/_baseFor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createBaseFor.js")();e.exports=r},"./MapStore2/node_modules/lodash/_baseForOwn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFor.js"),o=n("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(e,t,o)}},"./MapStore2/node_modules/lodash/_baseGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_castPath.js"),o=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var g=-1,v=m[0];e:for(;++g=200){var h=t?null:a(e);if(h)return l(h);f=!1,c=i,m=new r}else m=t?[]:p;e:for(;++u1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(s--,i):void 0,a&&o(n[0],n[1],a)&&(i=s<3?void 0:i,s=1),t=Object(t);++r1&&E.reverse(),j&&gc))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var p=-1,m=!0,h=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},"./MapStore2/node_modules/lodash/_isFlattenable.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Symbol.js"),o=n("./MapStore2/node_modules/lodash/isArguments.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||o(e)||!!(i&&e&&e[i])}},"./MapStore2/node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e-1}},"./MapStore2/node_modules/lodash/_listCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},"./MapStore2/node_modules/lodash/_mapCacheClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Hash.js"),o=n("./MapStore2/node_modules/lodash/_ListCache.js"),s=n("./MapStore2/node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},"./MapStore2/node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"./MapStore2/node_modules/lodash/_mapCacheGet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"./MapStore2/node_modules/lodash/_mapCacheHas.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"./MapStore2/node_modules/lodash/_mapCacheSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"./MapStore2/node_modules/lodash/_mapToArray.js":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"./MapStore2/node_modules/lodash/_matchesStrictComparable.js":function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},"./MapStore2/node_modules/lodash/_memoizeCapped.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"./MapStore2/node_modules/lodash/_mergeData.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_composeArgs.js"),o=n("./MapStore2/node_modules/lodash/_composeArgsRight.js"),s=n("./MapStore2/node_modules/lodash/_replaceHolders.js"),i=Math.min;e.exports=function(e,t){var n=e[1],a=t[1],l=n|a,u=l<131,c=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!u&&!c)return e;1&a&&(e[2]=t[2],l|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?s(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?o(f,d,t[6]):d,e[6]=f?s(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&a&&(e[8]=null==e[8]?t[8]:i(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},"./MapStore2/node_modules/lodash/_metaMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_WeakMap.js"),o=r&&new r;e.exports=o},"./MapStore2/node_modules/lodash/_nativeCreate.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getNative.js")(Object,"create");e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=r},"./MapStore2/node_modules/lodash/_nativeKeysIn.js":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"./MapStore2/node_modules/lodash/_nodeUtil.js":function(e,t,n){(function(e){var r=n("./MapStore2/node_modules/lodash/_freeGlobal.js"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./MapStore2/node_modules/lodash/_overArg.js":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"./MapStore2/node_modules/lodash/_overRest.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_apply.js"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,i=-1,a=o(s.length-t,0),l=Array(a);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"./MapStore2/node_modules/lodash/_stackClear.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new r,this.size=0}},"./MapStore2/node_modules/lodash/_stackDelete.js":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"./MapStore2/node_modules/lodash/_stackGet.js":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"./MapStore2/node_modules/lodash/_stackHas.js":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"./MapStore2/node_modules/lodash/_stackSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_ListCache.js"),o=n("./MapStore2/node_modules/lodash/_Map.js"),s=n("./MapStore2/node_modules/lodash/_MapCache.js");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},"./MapStore2/node_modules/lodash/_strictIndexOf.js":function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||b&&e-m>=c}function _(){var e=o();if(j(e))return x(e);f=setTimeout(_,function(e){var n=t-(e-p);return b?a(n,c-(e-m)):n}(e))}function x(e){return f=void 0,y&&l?g(e):(l=u=void 0,d)}function w(){var e=o(),n=j(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return v(p);if(b)return clearTimeout(f),f=setTimeout(_,t),g(p)}return void 0===f&&(f=setTimeout(_,t)),d}return t=s(t)||0,r(n)&&(h=!!n.leading,c=(b="maxWait"in n)?i(s(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=u=f=void 0},w.flush=function(){return void 0===f?d:x(o())},w}},"./MapStore2/node_modules/lodash/defaults.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseRest.js"),o=n("./MapStore2/node_modules/lodash/eq.js"),s=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),i=n("./MapStore2/node_modules/lodash/keysIn.js"),a=Object.prototype,l=a.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&s(t[0],t[1],u)&&(r=1);++n-1&&e%1==0&&e<=9007199254740991}},"./MapStore2/node_modules/lodash/isNil.js":function(e,t){e.exports=function(e){return null==e}},"./MapStore2/node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./MapStore2/node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./MapStore2/node_modules/lodash/isPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/_getPrototype.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js"),i=Function.prototype,a=Object.prototype,l=i.toString,u=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},"./MapStore2/node_modules/lodash/isString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isArray.js"),s=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!o(e)&&s(e)&&"[object String]"==r(e)}},"./MapStore2/node_modules/lodash/isSymbol.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"./MapStore2/node_modules/lodash/isTypedArray.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsTypedArray.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),s=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?o(i):r;e.exports=a},"./MapStore2/node_modules/lodash/join.js":function(e,t){var n=Array.prototype.join;e.exports=function(e,t){return null==e?"":n.call(e,t)}},"./MapStore2/node_modules/lodash/keys.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeys.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e):o(e)}},"./MapStore2/node_modules/lodash/keysIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayLikeKeys.js"),o=n("./MapStore2/node_modules/lodash/_baseKeysIn.js"),s=n("./MapStore2/node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?r(e,!0):o(e)}},"./MapStore2/node_modules/lodash/lodash.js":function(e,t,n){(function(e,r){var o; /** * @license * Lodash @@ -6,7 +6,7 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",i="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",h="[object Map]",b="[object Number]",y="[object Object]",g="[object RegExp]",v="[object Set]",j="[object String]",_="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",M="[object Float32Array]",O="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",L="[object Uint8Array]",P="[object Uint16Array]",A="[object Uint32Array]",D=/\b__p \+= '';/g,C=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,R=RegExp(N.source),Y=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,K=RegExp(V.source),G=/^\s+|\s+$/g,X=/^\s+/,J=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",me="[\\ud800-\\udfff]",he="["+pe+"]",be="["+fe+"]",ye="\\d+",ge="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",je="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+ve+"|"+je+")",ke="(?:"+Me+"|"+je+")",Ee="(?:"+be+"|"+_e+")"+"?",Te="[\\ufe0e\\ufe0f]?"+Ee+("(?:\\u200d(?:"+[xe,we,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Ee+")*"),Le="(?:"+[ge,we,Se].join("|")+")"+Te,Pe="(?:"+[xe+be+"?",be,we,Se,me].join("|")+")",Ae=RegExp("['’]","g"),De=RegExp(be,"g"),Ce=RegExp(_e+"(?="+_e+")|"+Pe+Te,"g"),Fe=RegExp([Me+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Me,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Me+Oe,"$"].join("|")+")",Me+"?"+Oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Le].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,ze={};ze[M]=ze[O]=ze[k]=ze[E]=ze[T]=ze[L]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[A]=!0,ze[l]=ze[u]=ze[w]=ze[c]=ze[S]=ze[d]=ze[f]=ze[p]=ze[h]=ze[b]=ze[y]=ze[g]=ze[v]=ze[j]=ze[x]=!1;var He={};He[l]=He[u]=He[w]=He[S]=He[c]=He[d]=He[M]=He[O]=He[k]=He[E]=He[T]=He[h]=He[b]=He[y]=He[g]=He[v]=He[j]=He[_]=He[L]=He["[object Uint8ClampedArray]"]=He[P]=He[A]=!0,He[f]=He[p]=He[x]=!1;var Ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,qe=parseInt,We="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,Ke=We||Ve||Function("return this")(),Ge=t&&!t.nodeType&&t,Xe=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Xe&&Xe.exports===Ge,Ze=Je&&We.process,Qe=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),$e=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var o=-1,s=null==e?0:e.length;++o-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Ct(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nt=Ot({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),It=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rt(e){return"\\"+Ue[e]}function Yt(e){return Ne.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var Gt=function e(t){var n,r=(t=null==t?Ke:Gt.defaults(Ke.Object(),t,Gt.pick(Ke,Re))).Array,o=t.Date,fe=t.Error,pe=t.Function,me=t.Math,he=t.Object,be=t.RegExp,ye=t.String,ge=t.TypeError,ve=r.prototype,je=pe.prototype,_e=he.prototype,xe=t["__core-js_shared__"],we=je.toString,Se=_e.hasOwnProperty,Me=0,Oe=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ke=_e.toString,Ee=we.call(he),Te=Ke._,Le=be("^"+we.call(Se).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Je?t.Buffer:void 0,Ce=t.Symbol,Ne=t.Uint8Array,Ue=Pe?Pe.allocUnsafe:void 0,We=Ht(he.getPrototypeOf,he),Ve=he.create,Ge=_e.propertyIsEnumerable,Xe=ve.splice,Ze=Ce?Ce.isConcatSpreadable:void 0,Qe=Ce?Ce.iterator:void 0,gt=Ce?Ce.toStringTag:void 0,Ot=function(){try{var e=es(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Jt=o&&o.now!==Ke.Date.now&&o.now,Zt=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Qt=me.ceil,$t=me.floor,en=he.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=ve.join,on=Ht(he.keys,he),sn=me.max,an=me.min,ln=o.now,un=t.parseInt,cn=me.random,dn=ve.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),mn=es(t,"Promise"),hn=es(t,"Set"),bn=es(t,"WeakMap"),yn=es(he,"create"),gn=bn&&new bn,vn={},jn=ks(fn),_n=ks(pn),xn=ks(mn),wn=ks(hn),Sn=ks(bn),Mn=Ce?Ce.prototype:void 0,On=Mn?Mn.valueOf:void 0,kn=Mn?Mn.toString:void 0;function En(e){if(qi(e)&&!Di(e)&&!(e instanceof An)){if(e instanceof Pn)return e;if(Se.call(e,"__wrapped__"))return Es(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Bi(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,s){var i,a=1&t,u=2&t,f=4&t;if(n&&(i=o?n(e,r,o,s):n(e)),void 0!==i)return i;if(!Bi(e))return e;var x=Di(e);if(x){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return go(e,i)}else{var D=rs(e),C=D==p||D==m;if(Ii(e))return fo(e,a);if(D==y||D==l||C&&!o){if(i=u||C?{}:ss(e),!a)return u?function(e,t){return vo(e,ns(e),t)}(e,function(e,t){return e&&vo(t,_a(t),e)}(i,e)):function(e,t){return vo(e,ts(e),t)}(e,Vn(i,e))}else{if(!He[D])return o?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case w:return po(e);case c:case d:return new r(+e);case S:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case O:case k:case E:case T:case L:case"[object Uint8ClampedArray]":case P:case A:return mo(e,n);case h:return new r;case b:case j:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new r;case _:return o=e,On?he(On.call(o)):{}}var o}(e,D,a)}}s||(s=new In);var F=s.get(e);if(F)return F;s.set(e,i),Xi(e)?e.forEach((function(r){i.add(Jn(r,t,n,r,e,s))})):Wi(e)&&e.forEach((function(r,o){i.set(o,Jn(r,t,n,o,e,s))}));var N=x?void 0:(f?u?Ko:Vo:u?_a:ja)(e);return at(N||e,(function(r,o){N&&(r=e[o=r]),Bn(i,o,Jn(r,t,n,o,e,s))})),i}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],s=t[o],i=e[o];if(void 0===i&&!(o in e)||!s(i))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(s);return js((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var o=-1,s=dt,i=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=pt(t,Lt(n))),r?(s=ft,i=!1):t.length>=200&&(s=At,i=!1,t=new Nn(t));e:for(;++o-1},Cn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(pn||Cn),string:new Dn}},Fn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Qo(this,e).get(e)},Fn.prototype.has=function(e){return Qo(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new Cn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Cn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var er=xo(lr),tr=xo(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(a)?t>1?sr(a,t-1,n,r,o):mt(o,a):r||(o[o.length]=a)}return o}var ir=wo(),ar=wo(!0);function lr(e,t){return e&&ir(e,t,ja)}function ur(e,t){return e&&ar(e,t,ja)}function cr(e,t){return ct(t,(function(t){return zi(e[t])}))}function dr(e,t){for(var n=0,r=(t=ao(t,e)).length;null!=e&&nt}function hr(e,t){return null!=e&&Se.call(e,t)}function br(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var o=n?ft:dt,s=e[0].length,i=e.length,a=i,l=r(i),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=pt(d,Lt(t))),u=an(d.length,u),l[a]=!n&&(t||s>=120&&d.length>=120)?new Nn(a&&d):void 0}d=e[0];var f=-1,p=l[0];e:for(;++f=a)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,o=t.length,s={};++r-1;)a!==e&&Xe.call(a,l,1),Xe.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==s){var s=o;as(o)?Xe.call(e,o,1):$r(e,o)}}return e}function Nr(e,t){return e+$t(cn()*(t-e+1))}function Ir(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Rr(e,t){return _s(hs(e,t,Va),e+"")}function Yr(e){return Yn(Ta(e))}function zr(e,t){var n=Ta(e);return Ss(n,Xn(t,0,n.length))}function Hr(e,t,n,r){if(!Bi(e))return e;for(var o=-1,s=(t=ao(t,e)).length,i=s-1,a=e;null!=a&&++os?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=r(s);++o>>1,i=e[s];null!==i&&!Zi(i)&&(n?i<=t:i=200){var u=t?null:Ro(e);if(u)return Bt(u);i=!1,o=At,l=new Nn}else l=t?[]:a;e:for(;++r=r?e:Wr(e,t,n)}var co=Xt||function(e){return Ke.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function mo(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ho(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,s=Zi(e),i=void 0!==t,a=null===t,l=t==t,u=Zi(t);if(!a&&!u&&!s&&e>t||s&&i&&l&&!a&&!u||r&&i&&l||!n&&l||!o)return 1;if(!r&&!s&&!u&&e1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,i&&ls(n[0],n[1],i)&&(s=o<3?void 0:s,o=1),t=he(t);++r-1?o[s?t[i]:i]:void 0}}function Eo(e){return Wo((function(t){var n=t.length,r=n,o=Pn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ge(s);if(o&&!a&&"wrapper"==Xo(i))var a=new Pn([],!0)}for(r=a?r:n;++r1&&v.reverse(),d&&ua))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Nn:void 0;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split($):[]}(r),n)))}function ws(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ss(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gs(e,n)}));function ti(e){var t=En(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Wo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=jo((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var si=ko(As),ii=ko(Ds);function ai(e,t){return(Di(e)?at:er)(e,Zo(t,3))}function li(e,t){return(Di(e)?lt:tr)(e,Zo(t,3))}var ui=jo((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ci=Rr((function(e,t,n){var o=-1,s="function"==typeof t,i=Fi(e)?r(e.length):[];return er(e,(function(e){i[++o]=s?st(t,e,n):gr(e,t,n)})),i})),di=jo((function(e,t,n){Kn(e,n,t)}));function fi(e,t){return(Di(e)?pt:kr)(e,Zo(t,3))}var pi=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var mi=Rr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,sr(t,1),[])})),hi=Jt||function(){return Ke.Date.now()};function bi(e,t,n){return t=n?void 0:t,zo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var n;if("function"!=typeof t)throw new ge(s);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var gi=Rr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Jo(gi));r|=32}return zo(e,r,t,n,o)})),vi=Rr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Jo(vi));r|=32}return zo(t,r,e,n,o)}));function ji(e,t,n){var r,o,i,a,l,u,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ge(s);function m(t){var n=r,s=o;return r=o=void 0,c=t,a=e.apply(s,n)}function h(e){return c=e,l=js(y,t),d?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=i}function y(){var e=hi();if(b(e))return g(e);l=js(y,function(e){var n=t-(e-u);return f?an(n,i-(e-c)):n}(e))}function g(e){return l=void 0,p&&r?m(e):(r=o=void 0,a)}function v(){var e=hi(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return co(l),l=js(y,t),m(u)}return void 0===l&&(l=js(y,t)),a}return t=sa(t)||0,Bi(n)&&(d=!!n.leading,i=(f="maxWait"in n)?sn(sa(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&co(l),c=0,r=u=o=l=void 0},v.flush=function(){return void 0===l?a:g(hi())},v}var _i=Rr((function(e,t){return Qn(e,1,t)})),xi=Rr((function(e,t,n){return Qn(e,sa(t)||0,n)}));function wi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(s);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(wi.Cache||Fn),n}function Si(e){if("function"!=typeof e)throw new ge(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wi.Cache=Fn;var Mi=lo((function(e,t){var n=(t=1==t.length&&Di(t[0])?pt(t[0],Lt(Zo())):pt(sr(t,1),Lt(Zo()))).length;return Rr((function(r){for(var o=-1,s=an(r.length,n);++o=t})),Ai=vr(function(){return arguments}())?vr:function(e){return qi(e)&&Se.call(e,"callee")&&!Ge.call(e,"callee")},Di=r.isArray,Ci=$e?Lt($e):function(e){return qi(e)&&pr(e)==w};function Fi(e){return null!=e&&Ui(e.length)&&!zi(e)}function Ni(e){return qi(e)&&Fi(e)}var Ii=tn||sl,Ri=et?Lt(et):function(e){return qi(e)&&pr(e)==d};function Yi(e){if(!qi(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ki(e)}function zi(e){if(!Bi(e))return!1;var t=pr(e);return t==p||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Hi(e){return"number"==typeof e&&e==ra(e)}function Ui(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qi(e){return null!=e&&"object"==typeof e}var Wi=tt?Lt(tt):function(e){return qi(e)&&rs(e)==h};function Vi(e){return"number"==typeof e||qi(e)&&pr(e)==b}function Ki(e){if(!qi(e)||pr(e)!=y)return!1;var t=We(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==Ee}var Gi=nt?Lt(nt):function(e){return qi(e)&&pr(e)==g};var Xi=rt?Lt(rt):function(e){return qi(e)&&rs(e)==v};function Ji(e){return"string"==typeof e||!Di(e)&&qi(e)&&pr(e)==j}function Zi(e){return"symbol"==typeof e||qi(e)&&pr(e)==_}var Qi=ot?Lt(ot):function(e){return qi(e)&&Ui(e.length)&&!!ze[pr(e)]};var $i=Fo(Or),ea=Fo((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Fi(e))return Ji(e)?Vt(e):go(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=rs(e);return(t==h?zt:t==v?Bt:Ta)(e)}function na(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function oa(e){return e?Xn(ra(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Zi(e))return NaN;if(Bi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=se.test(e);return n||ae.test(e)?qe(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ia(e){return vo(e,_a(e))}function aa(e){return null==e?"":Zr(e)}var la=_o((function(e,t){if(fs(t)||Fi(t))vo(t,ja(t),e);else for(var n in t)Se.call(t,n)&&Bn(e,n,t[n])})),ua=_o((function(e,t){vo(t,_a(t),e)})),ca=_o((function(e,t,n,r){vo(t,_a(t),e,r)})),da=_o((function(e,t,n,r){vo(t,ja(t),e,r)})),fa=Wo(Gn);var pa=Rr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ls(t[0],t[1],o)&&(r=1);++n1),t})),vo(e,Ko(e),n),r&&(n=Jn(n,7,Bo));for(var o=t.length;o--;)$r(n,t[o]);return n}));var Ma=Wo((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return ba(e,n)}))}(e,t)}));function Oa(e,t){if(null==e)return{};var n=pt(Ko(e),(function(e){return[e]}));return t=Zo(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var ka=Yo(ja),Ea=Yo(_a);function Ta(e){return null==e?[]:Pt(e,ja(e))}var La=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Pa(t):t)}));function Pa(e){return Ya(aa(e).toLowerCase())}function Aa(e){return(e=aa(e))&&e.replace(ue,Nt).replace(De,"")}var Da=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ca=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fa=So("toLowerCase");var Na=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ia=Mo((function(e,t,n){return e+(n?" ":"")+Ya(t)}));var Ra=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ya=So("toUpperCase");function za(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ha=Rr((function(e,t){try{return st(e,void 0,t)}catch(e){return Yi(e)?e:new fe(e)}})),Ua=Wo((function(e,t){return at(t,(function(t){t=Os(t),Kn(e,t,gi(e[t],e))})),e}));function Ba(e){return function(){return e}}var qa=Eo(),Wa=Eo(!0);function Va(e){return e}function Ka(e){return wr("function"==typeof e?e:Jn(e,1))}var Ga=Rr((function(e,t){return function(n){return gr(n,e,t)}})),Xa=Rr((function(e,t){return function(n){return gr(e,n,t)}}));function Ja(e,t,n){var r=ja(t),o=cr(t,r);null!=n||Bi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,ja(t)));var s=!(Bi(n)&&"chain"in n&&!n.chain),i=zi(e);return at(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),o=n.__actions__=go(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,mt([this.value()],arguments))})})),e}function Za(){}var Qa=Ao(pt),$a=Ao(ut),el=Ao(yt);function tl(e){return us(e)?Mt(Os(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=Co(),rl=Co(!0);function ol(){return[]}function sl(){return!1}var il=Po((function(e,t){return e+t}),0),al=Io("ceil"),ll=Po((function(e,t){return e/t}),1),ul=Io("floor");var cl,dl=Po((function(e,t){return e*t}),1),fl=Io("round"),pl=Po((function(e,t){return e-t}),0);return En.after=function(e,t){if("function"!=typeof t)throw new ge(s);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},En.ary=bi,En.assign=la,En.assignIn=ua,En.assignInWith=ca,En.assignWith=da,En.at=fa,En.before=yi,En.bind=gi,En.bindAll=Ua,En.bindKey=vi,En.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Di(e)?e:[e]},En.chain=ti,En.chunk=function(e,t,n){t=(n?ls(e,t,n):void 0===t)?1:sn(ra(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,i=0,a=r(Qt(o/t));so?0:o+n),(r=void 0===r||r>o?o:ra(r))<0&&(r+=o),r=n>r?0:oa(r);n>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!Gi(t))&&!(t=Zr(t))&&Yt(e)?uo(Vt(e),0,n):e.split(t,n):[]},En.spread=function(e,t){if("function"!=typeof e)throw new ge(s);return t=null==t?0:sn(ra(t),0),Rr((function(n){var r=n[t],o=uo(n,0,t);return r&&mt(o,r),st(e,this,o)}))},En.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},En.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},En.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:ra(t)))<0?0:t,r):[]},En.takeRightWhile=function(e,t){return e&&e.length?to(e,Zo(t,3),!1,!0):[]},En.takeWhile=function(e,t){return e&&e.length?to(e,Zo(t,3)):[]},En.tap=function(e,t){return t(e),e},En.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ge(s);return Bi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ji(e,t,{leading:r,maxWait:t,trailing:o})},En.thru=ni,En.toArray=ta,En.toPairs=ka,En.toPairsIn=Ea,En.toPath=function(e){return Di(e)?pt(e,Os):Zi(e)?[e]:go(Ms(aa(e)))},En.toPlainObject=ia,En.transform=function(e,t,n){var r=Di(e),o=r||Ii(e)||Qi(e);if(t=Zo(t,4),null==n){var s=e&&e.constructor;n=o?r?new s:[]:Bi(e)&&zi(s)?Tn(We(e)):{}}return(o?at:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},En.unary=function(e){return bi(e,1)},En.union=qs,En.unionBy=Ws,En.unionWith=Vs,En.uniq=function(e){return e&&e.length?Qr(e):[]},En.uniqBy=function(e,t){return e&&e.length?Qr(e,Zo(t,2)):[]},En.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},En.unset=function(e,t){return null==e||$r(e,t)},En.unzip=Ks,En.unzipWith=Gs,En.update=function(e,t,n){return null==e?e:eo(e,t,io(n))},En.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,io(n),r)},En.values=Ta,En.valuesIn=function(e){return null==e?[]:Pt(e,_a(e))},En.without=Xs,En.words=za,En.wrap=function(e,t){return Oi(io(t),e)},En.xor=Js,En.xorBy=Zs,En.xorWith=Qs,En.zip=$s,En.zipObject=function(e,t){return oo(e||[],t||[],Bn)},En.zipObjectDeep=function(e,t){return oo(e||[],t||[],Hr)},En.zipWith=ei,En.entries=ka,En.entriesIn=Ea,En.extend=ua,En.extendWith=ca,Ja(En,En),En.add=il,En.attempt=Ha,En.camelCase=La,En.capitalize=Pa,En.ceil=al,En.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sa(n))==n?n:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Xn(sa(e),t,n)},En.clone=function(e){return Jn(e,4)},En.cloneDeep=function(e){return Jn(e,5)},En.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},En.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},En.conformsTo=function(e,t){return null==t||Zn(e,t,ja(t))},En.deburr=Aa,En.defaultTo=function(e,t){return null==e||e!=e?t:e},En.divide=ll,En.endsWith=function(e,t,n){e=aa(e),t=Zr(t);var r=e.length,o=n=void 0===n?r:Xn(ra(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},En.eq=Ti,En.escape=function(e){return(e=aa(e))&&Y.test(e)?e.replace(I,It):e},En.escapeRegExp=function(e){return(e=aa(e))&&K.test(e)?e.replace(V,"\\$&"):e},En.every=function(e,t,n){var r=Di(e)?ut:nr;return n&&ls(e,t,n)&&(t=void 0),r(e,Zo(t,3))},En.find=si,En.findIndex=As,En.findKey=function(e,t){return vt(e,Zo(t,3),lr)},En.findLast=ii,En.findLastIndex=Ds,En.findLastKey=function(e,t){return vt(e,Zo(t,3),ur)},En.floor=ul,En.forEach=ai,En.forEachRight=li,En.forIn=function(e,t){return null==e?e:ir(e,Zo(t,3),_a)},En.forInRight=function(e,t){return null==e?e:ar(e,Zo(t,3),_a)},En.forOwn=function(e,t){return e&&lr(e,Zo(t,3))},En.forOwnRight=function(e,t){return e&&ur(e,Zo(t,3))},En.get=ha,En.gt=Li,En.gte=Pi,En.has=function(e,t){return null!=e&&os(e,t,hr)},En.hasIn=ba,En.head=Fs,En.identity=Va,En.includes=function(e,t,n,r){e=Fi(e)?e:Ta(e),n=n&&!r?ra(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ji(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&_t(e,t,n)>-1},En.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ra(n);return o<0&&(o=sn(r+o,0)),_t(e,t,o)},En.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e=-9007199254740991&&e<=9007199254740991},En.isSet=Xi,En.isString=Ji,En.isSymbol=Zi,En.isTypedArray=Qi,En.isUndefined=function(e){return void 0===e},En.isWeakMap=function(e){return qi(e)&&rs(e)==x},En.isWeakSet=function(e){return qi(e)&&"[object WeakSet]"==pr(e)},En.join=function(e,t){return null==e?"":rn.call(e,t)},En.kebabCase=Da,En.last=Ys,En.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ra(n))<0?sn(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,wt,o,!0)},En.lowerCase=Ca,En.lowerFirst=Fa,En.lt=$i,En.lte=ea,En.max=function(e){return e&&e.length?rr(e,Va,mr):void 0},En.maxBy=function(e,t){return e&&e.length?rr(e,Zo(t,2),mr):void 0},En.mean=function(e){return St(e,Va)},En.meanBy=function(e,t){return St(e,Zo(t,2))},En.min=function(e){return e&&e.length?rr(e,Va,Or):void 0},En.minBy=function(e,t){return e&&e.length?rr(e,Zo(t,2),Or):void 0},En.stubArray=ol,En.stubFalse=sl,En.stubObject=function(){return{}},En.stubString=function(){return""},En.stubTrue=function(){return!0},En.multiply=dl,En.nth=function(e,t){return e&&e.length?Pr(e,ra(t)):void 0},En.noConflict=function(){return Ke._===this&&(Ke._=Te),this},En.noop=Za,En.now=hi,En.pad=function(e,t,n){e=aa(e);var r=(t=ra(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Do($t(o),n)+e+Do(Qt(o),n)},En.padEnd=function(e,t,n){e=aa(e);var r=(t=ra(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return an(e+o*(t-e+Be("1e-"+((o+"").length-1))),t)}return Nr(e,t)},En.reduce=function(e,t,n){var r=Di(e)?ht:kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,er)},En.reduceRight=function(e,t,n){var r=Di(e)?bt:kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,tr)},En.repeat=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ra(t),Ir(aa(e),t)},En.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},En.result=function(e,t,n){var r=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Tt(r,t=Zo(t));++n=s)return e;var a=n-Wt(r);if(a<1)return r;var l=i?uo(i,0,a).join(""):e.slice(0,a);if(void 0===o)return l+r;if(i&&(a+=l.length-a),Gi(o)){if(e.slice(a).search(o)){var u,c=l;for(o.global||(o=be(o.source,aa(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?a:d)}}else if(e.indexOf(Zr(o),a)!=a){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},En.unescape=function(e){return(e=aa(e))&&R.test(e)?e.replace(N,Kt):e},En.uniqueId=function(e){var t=++Me;return aa(e)+t},En.upperCase=Ra,En.upperFirst=Ya,En.each=ai,En.eachRight=li,En.first=Fs,Ja(En,(cl={},lr(En,(function(e,t){Se.call(En.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),En.VERSION="4.17.19",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){En[e].placeholder=En})),at(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Va)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Rr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return gr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Si(Zo(e)))},An.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},lr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=En[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(En.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,a=t instanceof An,l=i[0],u=a||Di(t),c=function(e){var t=o.apply(En,mt([e],i));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,m=a&&!f;if(!s&&u){t=m?t:new An(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[c],thisArg:void 0}),new Pn(h,d)}return p&&m?e.apply(this,i):(h=this.thru(c),p?r?h.value()[0]:h.value():h)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);En.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Di(o)?o:[],e)}return this[n]((function(n){return t.apply(Di(n)?n:[],e)}))}})),lr(An.prototype,(function(e,t){var n=En[t];if(n){var r=n.name+"";Se.call(vn,r)||(vn[r]=[]),vn[r].push({name:t,func:n})}})),vn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Di(e),r=t<0,o=n?e.length:0,s=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},En.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=Es(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},En.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Bs],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Bs)},En.prototype.toJSON=En.prototype.valueOf=En.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},En.prototype.first=En.prototype.head,Qe&&(En.prototype[Qe]=function(){return this}),En}();Ke._=Gt,void 0===(o=function(){return Gt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/mapValues.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),s=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var n={};return t=s(t,3),o(e,(function(e,o,s){r(n,o,t(e,o,s))})),n}},"./MapStore2/node_modules/lodash/memoize.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/noop.js":function(e,t){e.exports=function(){}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/node_modules/lodash/pick.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_basePick.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js")((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},"./MapStore2/node_modules/lodash/property.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseProperty.js"),o=n("./MapStore2/node_modules/lodash/_basePropertyDeep.js"),s=n("./MapStore2/node_modules/lodash/_isKey.js"),i=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e){return s(e)?r(i(e)):o(e)}},"./MapStore2/node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./MapStore2/node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./MapStore2/node_modules/lodash/toFinite.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./MapStore2/node_modules/lodash/toInteger.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},"./MapStore2/node_modules/lodash/toNumber.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isObject.js"),o=n("./MapStore2/node_modules/lodash/isSymbol.js"),s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/node_modules/lodash/toString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"./MapStore2/node_modules/lodash/union.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseUniq.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,1,i,!0))}));e.exports=a},"./MapStore2/node_modules/lodash/without.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseDifference.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),i=o((function(e,t){return s(e)?r(e,t):[]}));e.exports=i},"./MapStore2/node_modules/lodash/wrapperLodash.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_LazyWrapper.js"),o=n("./MapStore2/node_modules/lodash/_LodashWrapper.js"),s=n("./MapStore2/node_modules/lodash/_baseLodash.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isObjectLike.js"),l=n("./MapStore2/node_modules/lodash/_wrapperClone.js"),u=Object.prototype.hasOwnProperty;function c(e){if(a(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return l(e)}return new o(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},"./MapStore2/node_modules/lodash/xor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseXor.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,i))}));e.exports=a},"./MapStore2/web/client/actions/browser.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="CHANGE_BROWSER_PROPERTIES",o=function(e){return{type:r,newProperties:e}}},"./MapStore2/web/client/actions/controls.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o="TOGGLE_CONTROL",s="SET_CONTROL_PROPERTY",i="SET_CONTROL_PROPERTIES",a="RESET_CONTROLS";function l(e,t){return{type:o,control:e,property:t}}function u(e,t,n,r){return{type:s,control:e,property:t,value:n,toggle:r}}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[];return{type:a,skip:e}}},"./MapStore2/web/client/actions/localConfig.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="LOCAL_CONFIG_LOADED";function o(e){return{type:r,config:e}}},"./MapStore2/web/client/actions/locale.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/es6-promise/dist/es6-promise.js"),s=n("./MapStore2/web/client/libs/ajax.js"),i=n.n(s),a=n("./MapStore2/web/client/actions/notifications.js"),l=n("./MapStore2/web/client/utils/LocaleUtils.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c="CHANGE_LOCALE",d="LOCALE_LOAD_ERROR";function f(e){return{type:c,messages:e.messages,locale:e.locale}}function p(e){return{type:d,error:e}}function m(e,t){return function(n){var s=t;s||(s=Object(l.h)());var c=Object(r.castArray)(e||u.default.getConfigProp("translationsPath"));o.Promise.all(c.map((function(e){return i.a.get(e+"/data.".concat(s,".json")).catch((function(e){return e}))}))).then((function(e){var o=e.filter((function(e){return 200===e.status}));if(e.filter((function(e){return 404!==e.status&&200!==e.status})).length>0||0===o.length){var s=e[0];n(p(s)),n(Object(a.f)({title:"notification.warning",message:0===o.length?"localeErrors.404":"Error loading locale",action:{label:"notification.warning"},position:"tc"}))}else n(f(o.reduce((function(e,o){if("string"==typeof o.data){try{JSON.parse(o.data)}catch(e){n(p("Locale file broken for ("+t+"): "+e.message))}return e}return Object(r.merge)(e,o.data)}),{})))}))}}},"./MapStore2/web/client/actions/maps.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"o",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"y",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"t",(function(){return h})),n.d(t,"q",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"u",(function(){return g})),n.d(t,"x",(function(){return v})),n.d(t,"v",(function(){return j})),n.d(t,"d",(function(){return _})),n.d(t,"w",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"p",(function(){return S})),n.d(t,"b",(function(){return M})),n.d(t,"s",(function(){return O})),n.d(t,"r",(function(){return k})),n.d(t,"K",(function(){return E})),n.d(t,"D",(function(){return T})),n.d(t,"z",(function(){return L})),n.d(t,"N",(function(){return P})),n.d(t,"B",(function(){return A})),n.d(t,"M",(function(){return D})),n.d(t,"E",(function(){return C})),n.d(t,"J",(function(){return F})),n.d(t,"C",(function(){return N})),n.d(t,"F",(function(){return I})),n.d(t,"I",(function(){return R})),n.d(t,"G",(function(){return Y})),n.d(t,"H",(function(){return z})),n.d(t,"L",(function(){return H})),n.d(t,"A",(function(){return U}));n("./MapStore2/web/client/api/GeoStoreDAO.js");var r="MAPS_LIST_LOADED",o="MAPS_LIST_LOADING",s="MAPS_LIST_LOAD_ERROR",i="MAPS_GET_MAP_RESOURCES_BY_CATEGORY",a="MAPS_LOAD_MAP",l="MAP_UPDATING",u="MAP_CREATED",c="MAP_DELETING",d="MAP_DELETED",f="ATTRIBUTE_UPDATED",p="THUMBNAIL_ERROR",m="MAP_ERROR",h="SAVING_MAP",b="PERMISSIONS_LIST_LOADING",y="MAPS_SEARCH_TEXT_CHANGED",g="MAPS:SEARCH_FILTER_CHANGED",v="MAPS:SET_SEARCH_FILTER",j="MAPS:SEARCH_FILTER_CLEAR_ALL",_="MAPS:LOAD_CONTEXTS",x="MAPS:SET_CONTEXTS",w="MAPS:LOADING",S="METADATA_CHANGED",M="MAPS:DELETE_MAP",O="SAVE_MAP_RESOURCE",k="MAPS:RELOAD_MAPS";function E(e,t){return{type:o,searchText:e,params:t}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,limit:12};return{type:a,geoStoreUrl:e,searchText:t,params:n}}function L(e,t,n,r){return{type:i,map:e,searchText:t,opts:n,searchFilter:r}}function P(e){return{type:v,searchFilter:e}}function A(e,t,n,r){return{type:_,searchText:e,options:t,delayLoad:n,force:r}}function D(e){return{type:x,contexts:e}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:w,name:t,value:e}}function F(e,t,n){return{type:r,params:t,maps:e,searchText:n}}function N(e){return{type:s,error:e}}function I(e,t,n,r){return{type:u,resourceId:e,metadata:t,content:n,error:r}}function R(e){return{type:l,resourceId:e}}function Y(e,t,n){return{type:d,resourceId:e,result:t,error:n}}function z(e,t,n){return{type:c,resourceId:e,result:t,error:n}}function H(e){return{type:h,metadata:e}}var U=function(){return{type:"FEATURED_MAPS:INVALIDATE"}}},"./MapStore2/web/client/actions/notifications.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";return o(o({type:i},e),{},{uid:e.uid||Date.now(),level:t})}function c(e){return{type:a,uid:e}}function d(e){return u(e,"success")}function f(e){return u(e,"error")}function p(e){return u(e,"warning")}function m(e){return u(e,"info")}function h(){return{type:l}}function b(e){return e}},"./MapStore2/web/client/actions/print.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return j})),n.d(t,"n",(function(){return _})),n.d(t,"s",(function(){return x})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return M}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function s(e){return(s="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)}var i="PRINT_CAPABILITIES_LOADED",a="PRINT_CAPABILITIES_ERROR",l="SET_PRINT_PARAMETER",u="CONFIGURE_PRINT_MAP",c="CHANGE_PRINT_ZOOM_LEVEL",d="CHANGE_MAP_PRINT_PREVIEW",f="PRINT_SUBMITTING",p="PRINT_ERROR",m="PRINT_CREATED",h="PRINT_CANCEL";function b(){return{type:f}}function y(){return{type:h}}function g(e){return{type:a,error:e}}function v(e){return{type:p,error:e}}function j(e,t){return function(n){return o.a.post(e,t).then((function(e){if("object"===s(e.data))n(function(e){return{type:m,url:e}}(e.data&&e.data.getURL));else try{JSON.parse(e.data)}catch(e){n(v("Error on reading print result: "+e.data))}})).catch((function(e){n(v("Error on printing: "+e.data))}))}}function _(e){return function(t){return o.a.get(e).then((function(n){if("object"===s(n.data))t((r=n.data,{type:i,capabilities:r}));else try{JSON.parse(n.data)}catch(n){t(g("Print configuration broken ("+e+"): "+n.data))}var r})).catch((function(n){t(g("Print configuration not available ("+e+"): "+n.data))}))}}function x(e,t){return{type:l,name:e,value:t}}function w(e,t,n,r,o,s,i){return{type:u,center:e,zoom:t,scaleZoom:n,scale:r,layers:o,projection:s,currentLocale:i}}function S(e,t){return{type:c,zoom:e,scale:t}}function M(e,t,n,r,o,s){return{type:d,center:e,zoom:t,bbox:n,size:r,mapStateSource:o,projection:s}}},"./MapStore2/web/client/actions/security.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return c}));n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/web/client/utils/SecurityUtils.js"),n("./MapStore2/web/client/actions/maps.js"),n("./MapStore2/web/client/utils/ConfigUtils.js");var r="LOGIN_SUCCESS",o="LOGIN_FAIL",s="RESET_ERROR",i="CHANGE_PASSWORD_SUCCESS",a="CHANGE_PASSWORD_FAIL",l="LOGOUT",u="REFRESH_SUCCESS",c="SESSION_VALID"},"./MapStore2/web/client/api/GeoStoreDAO.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/uuid/v1.js"),a=n.n(i),l=n("./node_modules/xml2js/lib/xml2js.js"),u=n.n(l),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js");function m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes||Object(r.omit)(e,["name","description","id"]),n=Object.keys(t).map((function(e){return""+e+""+t[e]+"STRING"})),o="";return n.length>0&&(o=""+n.join("")+""),o},w=function(e){return e?"true":"false"},S={mapsError:function(e){return 403===e.status||404===e.status||409===e.status||500===e.status?{title:"map.mapError.errorTitle",message:"map.mapError.error"+e.status}:{title:"map.mapError.errorTitle",message:"map.mapError.errorDefault"}}};Object(p.i)("geostore",g({},S));var M={createAttributeList:x,generateMetadata:_,authProviderName:"geostore",addBaseUrl:function(e){return s()({},e,{baseURL:e&&e.baseURL||f.default.getDefaults().geoStoreUrl})},getData:function(e,t){var n="data/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getResource:function(e,t){return d.a.get("resources/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourceIdByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t,this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data.Resource.id")}))},getResourceDataByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t+"/data",this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data")}))},getShortResource:function(e,t){return d.a.get("extjs/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourcesByCategory:function(e,t,n){var r="extjs/search/category/"+e+"/*"+(t||"*")+"*/thumbnail,details,featured";return d.a.get(r,this.addBaseUrl(n)).then((function(e){return e.data}))},createCategory:function(e){return d.a.post("categories","".concat(e,""),this.addBaseUrl({headers:{"Content-Type":"application/xml"}})).then((function(e){return e.data}))},getUserDetails:function(e,t,n){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({auth:{username:e,password:t},params:{includeattributes:!0}},n))).then((function(e){return e.data}))},login:function(e,t,n){var o,s=this;return d.a.post("session/login",null,this.addBaseUrl(Object(r.merge)(e&&t?{auth:{username:e,password:t}}:{},n))).then((function(e){return o=e.data,d.a.get("users/user/details",s.addBaseUrl(Object(r.merge)({headers:{Authorization:"Bearer "+e.data.access_token},params:{includeattributes:!0}},n)))})).then((function(e){return g(g({},e.data),o)}))},changePassword:function(e,t,n){return d.a.put("users/user/"+e.id,""+t+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},updateResourceAttribute:function(e,t,n,o,s){return d.a.put("resources/resource/"+e+"/attributes/",{restAttribute:{name:t,value:n}},this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/json"}},s)))},getResourceAttribute:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.a.get("resources/resource/"+e+"/attributes/"+t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},getResourceAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.a.get("resources/resource/"+e+"/attributes",this.addBaseUrl(g({headers:{Accept:"application/json"}},t))).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data;return t})).then((function(e){return Object(r.castArray)(Object(r.get)(e,"AttributeList.Attribute")||[])})).then((function(e){return e||[]}))},getResourcePermissions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return M.getPermissions(e,t).then((function(e){return Object(r.castArray)(n?Object(r.get)(e,"SecurityRuleList.SecurityRule"):e)})).then((function(e){return e&&e[0]&&""!==e[0]?e:[]}))},putResourceMetadata:function(e,t,n,o){return d.a.put("resources/resource/"+e,""+_(t,n)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},putResourceMetadataAndAttributes:function(e,t,n){return d.a.put("resources/resource/"+e,""+_(t.name,t.description)+x(t)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},putResource:function(e,t,n){return d.a.put("data/"+e,t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"string"==typeof t?"text/plain; charset=utf-8":'application/json; charset=utf-8"'}},n)))},writeSecurityRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+(Object(r.castArray)(e.SecurityRule)||[]).map((function(e){if(e.canRead||e.canWrite){if(e.user)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.user.id||"")+""+(e.user.name||"")+"";if(e.group)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.group.id||"")+""+(e.group.groupName||"")+""}return""})).join("")+""},updateResourcePermissions:function(e,t){var n=M.writeSecurityRules(t.SecurityRuleList);return d.a.post("resources/resource/"+e+"/permissions",n,this.addBaseUrl({headers:{"Content-Type":"application/xml"}}))},createResource:function(e,t,n,o){var s=e.name,i=e.description||"",a=x(e);return d.a.post("resources/",""+_(s,i)+""+(n||"")+""+a+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},deleteResource:function(e,t){return d.a.delete("resources/resource/"+e,this.addBaseUrl(Object(r.merge)({},t)))},getUserGroups:function(e){return d.a.get("usergroups/",this.addBaseUrl(e)).then((function(e){return e.data}))},getPermissions:function(e,t){var n="resources/resource/"+e+"/permissions";return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getAvailableGroups:function(e){return e&&"ADMIN"===e.role?d.a.get("usergroups/?all=true&users=false",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return function(e){if(!e||!e.UserGroupList||!e.UserGroupList.UserGroup)return[];var t=function(e){return Object(r.pick)(e,["id","groupName","description"])};return Object(r.isArray)(e.UserGroupList.UserGroup)?e.UserGroupList.UserGroup.filter((function(e){return!!e.id})).map(t):[t(e.UserGroupList.UserGroup)]}(e.data)})):d.a.get("users/user/details",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return(t=e.data)&&t.User&&t.User.groups&&t.User.groups.group&&Object(r.isArray)(t.User.groups.group)?t.User.groups.group.filter((function(e){return!!e.id})).map((function(e){return Object(r.pick)(e,["id","groupName","description"])})):Object(r.has)(t.User.groups.group,"id","groupName")?[t.User.groups.group]:[];var t}))},getUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/users"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{params:{includeattributes:!0}},n="users/user/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},updateUser:function(e,t,n){var r="users/user/"+e,o=s()({},t);return""===o.newPassword&&delete o.newPassword,d.a.put(r,{User:o},this.addBaseUrl(n)).then((function(e){return e.data}))},createUser:function(e,t){return d.a.post("users/",{User:M.utils.initUser(e)},this.addBaseUrl(t)).then((function(e){return e.data}))},deleteUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="users/user/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroups:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/groups"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){var t=e.data.UserGroup,n=t&&t.restUsers&&t.restUsers.User;return g(g({},t),{},{users:n&&(Array.isArray(n)?n:[n])||[]})}))},createGroup:function(e,t){var n;return d.a.post("usergroups/",{UserGroup:g({},e)},this.addBaseUrl(t)).then((function(r){return n=r.data,M.updateGroupMembers(g(g({},e),{},{id:n}),t)})).then((function(){return n}))},updateGroupMembers:function(e,t){var n=this;if(e.newUsers){var o=e.users||e.restUsers&&e.restUsers.User||[],s=(o=Array.isArray(o)?o:[o]).filter((function(t){return Object(r.findIndex)(e.newUsers,(function(e){return e.id===t.id}))<0})),i=e.newUsers.filter((function(e){return Object(r.findIndex)(o,(function(t){return t.id===e.id}))<0})),a=s.map((function(r){return function(){return n.removeUserFromGroup(r.id,e.id,t)}})),l=i.map((function(t){return function(){return n.addUserToGroup(t.id,e.id)}}),t),u=[].concat(m(a.map((function(e){return e.call(n)}))),m(l.map((function(e){return e()}))));return d.a.all(u).then((function(){return g(g({},e),{},{newUsers:null,restUsers:{User:e.newUsers},users:e.newUsers})}))}return new Promise((function(t){t(g({},e))}))},deleteGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},addUserToGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.post(r,null,this.addBaseUrl(n))},removeUserFromGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.delete(r,this.addBaseUrl(n))},verifySession:function(e){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({params:{includeattributes:!0}},e))).then((function(e){return e.data}))},refreshToken:function(e,t,n){var r="session/refresh/"+e+"/"+t;return d.a.post(r,null,this.addBaseUrl(n)).then((function(e){return e.data}))},searchListByAttributes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/extjs/search/list",r=j.buildObject(e);return d.a.post(n,r,M.addBaseUrl(g(g({},t),{},{headers:{"Content-Type":"application/xml",Accept:"application/json"}}))).then((function(e){return e.data}))},utils:{initUser:function(e){var t=s()({},e);t.newPassword&&(t.password=t.newPassword);var n={name:"UUID",value:a()()};return t.attribute=t.attribute&&t.attribute.length>0?[].concat(m(t.attribute),[n]):[n],t}},errorParser:S};t.a=M},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s);function a(e){return(a="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 n=0;n1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,o){return"string"==typeof t[o]?c(g({},n+o,t[o]),r):c(c({},e.flattenMessages(t[o],n+o+".")),r)}),{})})),e}return t=s,(n=[{key:"getChildContext",value:function(){return{locale:this.props.locale,messages:this.props.messages}}},{key:"render",value:function(){var e=this.props.children;return this.props.messages&&this.props.locale?("function"==typeof e&&(e=e()),i.a.createElement(a.IntlProvider,{key:this.props.locale,locale:this.props.locale,messages:this.flattenMessages(this.props.messages)},e)):this.props.loadingError?i.a.createElement("div",{className:"loading-locale-error"},this.props.loadingError):null}}])&&f(t.prototype,n),r&&f(t,r),s}(i.a.Component);g(v,"propTypes",{locale:o.a.string,messages:o.a.object,loadingError:o.a.string}),g(v,"childContextTypes",{locale:o.a.string,messages:o.a.object}),t.a=v},"./MapStore2/web/client/components/I18N/Message.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/react-intl/lib/index.es.js"),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=function(){var e=t.targetId,r=void 0===e?"container":e,s=t.initialState,a=void 0===s?{defaultState:{},mobile:{}}:s,d=t.appReducers,f=void 0===d?{}:d,p=t.appEpics,m=void 0===p?{}:p,h=t.rootReducerFunc,b=l.default.bind(null,{initialState:a,appReducers:f,appEpics:m,rootReducerFunc:h}),y=n||u.a;i.a.render(o.a.createElement(y,c({},t,{appStore:b})),document.getElementById(r))};e.Intl?r():Object(a.a)(r)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./MapStore2/web/client/components/development/Debug.jsx":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/url/url.js"),i=n.n(s);function a(e){return(a="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 n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ni.width?(d(e),g.current.x=e,S("center")):e>=0?(d(0),g.current.x=0,S("start")):l<=i.width&&(d(i.width-s.width),g.current.x=i.width-s.width,S("end"))}if("vertical"===n){var u=t+s.height;t<0&&u>i.height?(y(t),g.current.y=t,S("center")):t>=0?(y(0),g.current.y=0,S("start")):u<=i.height&&(y(i.height-s.height),g.current.y=i.height-s.height,S("end"))}setTimeout((function(){k("move:end")}),a)}function P(){var e=E.current,t=e.parentNode,r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return!("horizontal"===n&&o.width>=r.width||"vertical"===n&&o.height>=r.height)}Object(r.useEffect)((function(){function e(e){var t=P();return _(P()),t?L(g.current.x-(e.deltaY>0?o:-o),g.current.y-(e.deltaY>0?o:-o)):null}var t=P();_(t);var n=E.current.parentNode;return t&&L(g.current.x,g.current.y),t&&n&&n.addEventListener&&n.addEventListener("wheel",e),function(){t&&n&&n.removeEventListener&&n.removeEventListener("wheel",e)}}),[s,i]);var A=Object(l.a)({onSwiping:function(e){e.event.stopPropagation();var t=P();return _(P()),t?L(c-e.deltaX*e.velocity,b-e.deltaY*e.velocity):null},trackTouch:!0,trackMouse:!0});function D(e,t){T.current=p(p({},T.current),{},m({},e,t))}function C(e){var t=T.current[e];if(t){var r=E.current,o=(r&&r.parentNode).getBoundingClientRect(),s=t.getBoundingClientRect();if("horizontal"===n){var i=o.width,a=o.left,l=s.width,u=s.left,c=a+i,d=u+l;return a<=u&&c>=u||a<=d&&c>=d}}return!1}return{status:O,canSwipe:j,isStartControlActive:j&&("end"===w||"center"===w),isEndControlActive:j&&("start"===w||"center"===w),positionLabel:w,coordinates:{x:c,y:b},containerPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t;return p(p({},A),{},{style:p({position:"relative",overflow:"hidden",width:"100%",height:"100%"},n)})},contentPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=void 0===t?{}:t;return{ref:E,style:p(p(p(p({position:"absolute",display:"flex"},a&&{transition:"transform ".concat(a,"ms ease 0s")}),{},{flexDirection:"horizontal"===n?"row":"column"},j&&"horizontal"===n&&{transform:"translateX(".concat(c,"px)")}),j&&"vertical"===n&&{transform:"translateY(".concat(b,"px)")}),r)}},itemPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.onClick;return p({key:t,ref:function(e){return e&&D(t,e)}},n?{onClick:n,tabindex:C(t)?0:-1,onKeyDown:function(e){"Enter"===e.key&&n()}}:{tabindex:-1})},updateCoordinates:L,moveItemInViewById:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.margin,o=void 0===r?0:r,s=T.current[e];if(s){var i=E.current,a=i&&i.parentNode,l=a.getBoundingClientRect(),u=s.getBoundingClientRect();if("horizontal"===n){var c=l.width,d=l.left,f=u.width,p=u.left,m=d+c,h=p+f,b=d<=p&&m>=h;if(!b){var y=i.getBoundingClientRect(),g=y.left;L(-(p-g)+o,void 0)}}}},moveToDeltaSize:function(e){L(c+e,b+e)}}};t.a=Object(u.a)((function(e){var t=e.currentPage,n=e.items,i=e.scrollTo,l=void 0===i?function(){}:i,u=e.width,f=e.height,p=e.deltaSwipeSize,m=void 0===p?200:p,h=e.transition,b=void 0===h?300:h,v=e.updateTimeDebounceTime,j=void 0===v?500:v,_=e.getItemStyle,x=void 0===_?function(){return{}}:_,w=g({direction:"horizontal",width:u,height:f,transition:b,deltaScroll:m}),S=w.isStartControlActive,M=w.isEndControlActive,O=w.containerPropsHandlers,k=w.contentPropsHandlers,E=w.itemPropsHandlers,T=w.moveToDeltaSize,L=w.moveItemInViewById,P=t&&t.columns&&t.sectionId&&t.columns[t.sectionId]||t&&t.sectionId,A=Object(r.useRef)(null);return Object(r.useEffect)((function(){return A.current=a()((function(e){L(e,{margin:32})}),j),function(){A.current&&(A.current.cancel(),A.current=null)}}),[]),Object(r.useEffect)((function(){A.current&&(A.current.cancel(),A.current(P))}),[P]),o.a.createElement("div",d({},O(),{className:"ms-horizontal-menu"}),o.a.createElement("div",k(),n.map((function(e){var n=e.title,r=e.id,s=E({id:r,onClick:function(){t&&t.sectionId!==r&&l(r)}});return o.a.createElement("div",d({},s,{className:"ms-menu-item"}),o.a.createElement(y,{tabindex:"-1",id:r,text:n||"title",selected:r===P,style:x(r===P)}))}))),S&&o.a.createElement(c.a,{className:"square-button-md no-border",style:{position:"absolute"},onClick:function(){return T(m)}},o.a.createElement(s.Glyphicon,{glyph:"chevron-left"})),M&&o.a.createElement(c.a,{className:"square-button-md no-border",style:{position:"absolute",right:0},onClick:function(){return T(-m)}},o.a.createElement(s.Glyphicon,{glyph:"chevron-right"})))}))},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./MapStore2/node_modules/lodash/lodash.js");function l(e){return(l="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 u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,s.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,i=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return s.a.createElement(c,l({ref:t,className:n?a()("disabled",r):r,onClick:function(){n||i.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),s=n.n(o),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(i.isArray)(t))return t.map((function(o){var s=Object(r.f)(e,o[n]||Object(i.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(i.isNil)(s)?t:s))}));var o=Object(r.f)(e,t);return Object(i.isNil)(o)?t:o},p=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&f(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(a.compose)(Object(a.getContext)({messages:s.a.object}),Object(a.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(i.castArray)(e).reduce(p(o,r,t),{}))})))}},"./MapStore2/web/client/components/theme/Theme.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-side-effect/lib/index.js"),l=n.n(a),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/selectors/version.js"),d=n("./MapStore2/node_modules/lodash/lodash.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{user:null,errorCause:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"USERMANAGER_UPDATE_USER":return e.user&&t.user&&e.user.id===t.user.id?l()({},e,{user:Object(s.cloneDeep)(t.user)}):e;case o.c:return"ResetPassword"===t.control&&"enabled"===t.property?l()({},e,{passwordChanged:!1,passwordError:null}):e;case r.d:var n=Object(i.getUserAttributes)(t.userDetails.User),a=Object(s.head)(n.filter((function(e){return"uuid"===e.name.toLowerCase()}))),u=new Date/1e3|0;return l()({},e,{user:t.userDetails.User,token:t.userDetails&&t.userDetails.access_token||a&&a.value,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?u+t.userDetails.expires:u+172800,authHeader:t.authHeader,loginError:null});case r.f:var c=new Date/1e3|0;return l()({},e,{token:t.userDetails&&t.userDetails.access_token,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?c+t.userDetails.expires:c+172800});case r.c:return l()({},e,{loginError:t.error});case r.g:return l()({},e,{loginError:null});case r.e:return l()({},e,{user:null,token:null,refresh_token:null,expires:null,authHeader:null,loginError:null});case r.b:return l()({},e,{user:l()({},e.user,l()({},t.user,{date:(new Date).getTime()})),authHeader:t.authHeader,passwordChanged:!0,passwordError:null});case r.a:return l()({},e,{passwordError:t.error,passwordChanged:!1});case r.h:return l()({},e,{user:t.userDetails.User,loginError:null});default:return e}}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.locale&&e.locale.current||"en-US"},i=function(e){return e.locale&&e.locale.messages||{}},a=Object(r.a)([s],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/version.js":function(e,t,n){"use strict";n.r(t),n.d(t,"versionSelector",(function(){return r})),n.d(t,"validateVersion",(function(){return o}));var r=function(e){return e.version&&e.version.current||""},o=function(e){return!(!e||-1!==e.indexOf("${mapstore2.version}")||-1!==e.indexOf("no-version"))}},"./MapStore2/web/client/stores/History.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/history/index.js"),o=Object(r.createHashHistory)();t.default=o},"./MapStore2/web/client/stores/StandardStore.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/StateUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o).a.parse(window.location.href,!0).query;var i={createDebugStore:function(e,t,n,o){return Object(r.b)({rootReducer:e,state:t,middlewares:n,enhancer:o,debug:s&&s.debug&&!1})},checkForMissingPlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(t){return e[t].default}));t.length>0&&console.error("plugin not correctly loaded: ",t)}},a=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=n("./node_modules/redux-observable/lib/esm/index.js"),u=n("./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js"),c=n.n(u),d=n("./node_modules/connected-react-router/esm/index.js"),f=n("./node_modules/connected-react-router/esm/middleware.js"),p=n("./MapStore2/web/client/actions/localConfig.js"),m=n("./node_modules/object-assign/index.js"),h=n.n(m),b=n("./MapStore2/web/client/utils/ConfigUtils.js").default.getDefaults();var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a:return h()({},e,t.config);default:return e}},g=n("./MapStore2/web/client/actions/locale.js");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case g.a:return{messages:t.messages,current:t.locale};case g.b:return j(j({},e),{},{loadingError:t.error});default:return e}},w=n("./MapStore2/web/client/actions/browser.js");var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.a:return h()({},e,t.newProperties);default:return e}};function M(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=_.noRouter?null:n("./MapStore2/web/client/stores/History.js").default,O=Object(a.b)(j,E(E({},m),{},{localConfig:y,locale:x,locales:function(){return null},browser:S},!_.noRouter&&{router:Object(d.b)(w)})),k=Object(r.d)(Object(a.a)(j,E(E({},L),b))),T=_.initialState||{defaultState:{},mobile:{}},P=E(E({},u.defaultState),T.defaultState),A=E(E({},u.mobile),T.mobile),D=Object(r.e)(Object(l.b)(k)),C=function(e,t){return v({state:e,action:t,allReducers:O,mobileOverride:A})};_&&!1!==_.notify&&(o=c.a),_&&_.persist&&(_.persist.whitelist.forEach((function(e){var t=localStorage.getItem("mapstore2.persist."+e);t&&(P[e]=JSON.parse(t))})),_.onPersist&&setTimeout((function(){_.onPersist()}),0));var F=[D];if(!_.noRouter){var N=Object(f.a)(w);F=[].concat(M(F),[N])}if(t=i.createDebugStore(C,P,F,o),_&&_.persist){var I={};t.subscribe((function(){_.persist.whitelist.forEach((function(e){var n=t.getState()[e];n&&I[e]!==n&&(I[e]=n,localStorage.setItem("mapstore2.persist."+e,JSON.stringify(n)))}))}))}return t}},"./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$":function(e,t,n){var r={"./cesium/Layers":"./MapStore2/web/client/utils/cesium/Layers.js","./leaflet/Layers":"./MapStore2/web/client/utils/leaflet/Layers.js","./openlayers/Layers":"./MapStore2/web/client/utils/openlayers/Layers.js"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=s,e.exports=o,o.id="./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$"},"./MapStore2/web/client/utils/ConfigUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getConfigurationOptions",(function(){return k})),n.d(t,"cleanDuplicatedQuestionMarks",(function(){return E})),n.d(t,"getUrlWithoutParameters",(function(){return T})),n.d(t,"filterUrlParams",(function(){return L})),n.d(t,"getParsedUrl",(function(){return P})),n.d(t,"getDefaults",(function(){return A})),n.d(t,"setLocalConfigurationFile",(function(){return D})),n.d(t,"loadConfiguration",(function(){return C})),n.d(t,"getCenter",(function(){return F})),n.d(t,"setApiKeys",(function(){return N})),n.d(t,"setLayerId",(function(){return I})),n.d(t,"replacePlaceholders",(function(){return R})),n.d(t,"setUrlPlaceholders",(function(){return Y})),n.d(t,"normalizeConfig",(function(){return z})),n.d(t,"getUserConfiguration",(function(){return H})),n.d(t,"getConfigUrl",(function(){return U})),n.d(t,"setupSources",(function(){return B})),n.d(t,"normalizeSourceUrl",(function(){return q})),n.d(t,"copySourceOptions",(function(){return W})),n.d(t,"setupLayers",(function(){return V})),n.d(t,"convertFromLegacy",(function(){return K})),n.d(t,"mergeConfigs",(function(){return G})),n.d(t,"getProxyUrl",(function(){return X})),n.d(t,"getProxiedUrl",(function(){return J})),n.d(t,"getBrowserProperties",(function(){return Z})),n.d(t,"getConfigProp",(function(){return Q})),n.d(t,"setConfigProp",(function(){return $})),n.d(t,"removeConfigProp",(function(){return ee}));var r=n("./MapStore2/web/client/libs/proj4.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./node_modules/url/url.js"),l=n.n(a),u=n("./node_modules/axios/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/object-assign/index.js"),p=n.n(f),m=n("./node_modules/es6-promise/dist/es6-promise.js"),h=n("./node_modules/ismobilejs/src/isMobile.js"),b=n.n(h);function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){return(g="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 v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t2){var n=t.slice(1);return t[0]+"?"+n.join("&")}return e},T=function(e,t){var n=E(e).split("?"),r="";if(n.length>=2&&n[1]){var o=n[1].split(/[&;]/g).filter((function(e){return!!e}));o.forEach((function(e,n){var s=e.split("=");if(-1===t.indexOf(s[0].toLowerCase())){var i=n===o.length-1?"":"&";r+=s.join("=")+i}}))}return r?n[0]+"?"+r:n[0]},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(d.isNil)(e)||""===e?null:T(E(e),t)},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e){var r=l.a.parse(L(e,n),!0),o=null;if(Object(d.endsWith)(r.pathname,"wfs")||Object(d.endsWith)(r.pathname,"wms")||Object(d.endsWith)(r.pathname,"ows"))return o=r.pathname.replace(/(wms|ows|wfs|wps)$/,"wps"),l.a.format(p()({},r,{search:null,pathname:o},{query:p()(j({service:"WPS"},t),r.query)}))}return null},A=function(){return j({},O)},D=function(e){M=e},C=function(){return M?c.a.get(M).then((function(e){return"object"===g(e.data)&&(O=p()({},O,e.data)),j({},O)})):new m.Promise((function(e){e(j({},O))}))},F=function(e,t){var n=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,r=e.crs||t||"EPSG:4326",s="EPSG:4326"!==r?o.a.transform(new o.a.Proj(r),x,n):n;return p()({},s,{crs:"EPSG:4326"})},N=function(e){return"bing"===e.type&&(e.apiKey=O.bingApiKey),"mapquest"===e.type&&(e.apiKey=O.mapquestApiKey),e},I=function(e,t){return e.id||(e.id=e.name+"__"+t),e},R=function(e){var t=e;return(t.match(/\{.*?\}/g)||[]).forEach((function(e){var n=O[e.substring(1,e.length-1)];void 0!==n&&(t=t.replace(e,n||""))})),t},Y=function(e){return e.url&&(Object(d.isArray)(e.url)?e.url=e.url.map((function(e){return R(e)})):e.url=R(e.url)),e},z=function(e){var t=e.layers,n=e.groups,r=e.plugins,o=y(e,["layers","groups","plugins"]);return o.center=F(o.center),{map:o,layers:t.map(N,e).map(I).map(Y),groups:n,plugins:r}},H=function(e,t,n){return k(S,e,t,n)},U=function(e){var t=e.mapId,n=t,r=e.config;try{var o=parseInt(n,10);isNaN(o)&&(r=t,n=null)}catch(e){r=t,n=null}return k({mapId:n,config:r})},B=function(e,t){var n,r=t;for(n in t||(r=O.defaultSourceType),e)e.hasOwnProperty(n)&&(e[n].ptype||(e[n].ptype=r))},q=function(e){return e&&-1!==e.indexOf("?")?e.split("?")[0]:e},W=function(e,t){if(e.baseParams=t.baseParams,t.url){var n=l.a.parse(t.url,!0);for(var r in n.query)"REQUEST"===r.toUpperCase()&&delete n.query[r];e.baseParams=p()({},e.baseParams,n.query)}e.url=q(t.url)},V=function(e,t,n){var r,o,s,i;for(o=0;o=0?s.group===O.backgroundGroup&&(s.visibility=s.visibility||!1,r&&r.visibility?s.visibility&&(r.visibility=!1,r=s):r=s):s.visibility=!1)}r&&(r.visibility=!0)},K=function(e){var t=e.map,n=e.gsSources||e.sources,r=t.layers.filter((function(e){return n[e.source]})),o=F(t.center,t.projection),s=t.zoom,i=t.maxExtent||t.extent;return B(n,e.defaultSourceType),V(r,n,["gxp_osmsource","gxp_wmssource","gxp_googlesource","gxp_bingsource","gxp_mapquestsource","gxp_olsource"]),z({center:o,zoom:s,maxExtent:i,layers:r,projection:t.projection||"EPSG:3857"})},G=function(e,t){return e.map=t.map,e.gsSources=t.gsSources||t.sources,e},X=function(e){return e.proxyUrl?e.proxyUrl:O.proxyUrl},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(0===e.indexOf("http")),r=!n&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(r){var o=window.location;n=r[1]===o.protocol&&r[3]===o.hostname;var s=r[4],i=o.port,a=0===o.protocol.indexOf("https")?443:80;s=""===s?a+"":s+"",i=""===i?a+"":i+"",n=n&&s===i}if(!n){var l=X(t);if(l){var u=[];Object(d.isObject)(l)&&(u=l.useCORS||[],l=l.url);var c=u.reduce((function(t,n){return t||0===e.indexOf(n)}),!1);if(!c)return l+encodeURIComponent(e)}}return e},Z=function(){var e="ActiveXObject"in window,t=e&&!document.addEventListener,n=e&&window.location.hash===!!window.MSInputMethodContext&&!!document.documentMode,r=navigator.userAgent.toLowerCase(),o=-1!==r.indexOf("webkit"),s=-1!==r.indexOf("chrome"),i=-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"),a=-1!==r.indexOf("phantom"),l=-1!==r.indexOf("android"),u=-1!==r.search("android [23]"),c=-1!==r.indexOf("gecko"),d=b.a.any,f=!window.PointerEvent&&window.MSPointerEvent,p=window.PointerEvent&&window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||f,m="devicePixelRatio"in window&&window.devicePixelRatio>1||"matchMedia"in window&&window.matchMedia("(min-resolution:144dpi)")&&window.matchMedia("(min-resolution:144dpi)").matches,h=document.documentElement,y=e&&"transition"in h.style,g="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!u,v="MozPerspective"in h.style,j="OTransition"in h.style,_=!window.L_DISABLE_3D&&(y||g||v||j)&&!a,x=!window.L_NO_TOUCH&&!a&&(p||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);return{ie:e,ie11:n,ielt9:t,webkit:o,gecko:c&&!o&&!window.opera&&!e,android:l,android23:u,chrome:s,safari:i,ie3d:y,webkit3d:g,gecko3d:v,opera3d:j,any3d:_,mobile:d,mobileWebkit:d&&o,mobileWebkit3d:d&&g,mobileOpera:d&&window.opera,touch:x,msPointer:f,pointer:p,retina:m}},Q=function(e){return O[e]},$=function(e,t){O[e]=t},ee=function(e){delete O[e]},te={PropTypes:{center:w,config:i.a.shape({center:w,zoom:i.a.number.isRequired}),mapStateSource:i.a.string},getParsedUrl:P,getDefaults:A,setLocalConfigurationFile:D,loadConfiguration:C,getCenter:F,normalizeConfig:z,getUserConfiguration:H,getConfigurationOptions:k,getConfigUrl:U,convertFromLegacy:K,setupSources:B,normalizeSourceUrl:q,copySourceOptions:W,setupLayers:V,mergeConfigs:G,getProxyUrl:X,cleanDuplicatedQuestionMarks:E,getUrlWithoutParameters:T,filterUrlParams:L,getProxiedUrl:J,getBrowserProperties:Z,setApiKeys:N,setUrlPlaceholders:Y,replacePlaceholders:R,setLayerId:I,getConfigProp:Q,setConfigProp:$,removeConfigProp:ee};t.default=te},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return P})),n.d(t,"getProjUrl",(function(){return D})),n.d(t,"determineCrs",(function(){return F})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return Y})),n.d(t,"reprojectExtent",(function(){return H})),n.d(t,"getPolygonFromExtent",(function(){return U})),n.d(t,"getExtentFromNormalized",(function(){return B})),n.d(t,"crsCodeTable",(function(){return q})),n.d(t,"setCrsLabels",(function(){return W})),n.d(t,"getUnits",(function(){return V})),n.d(t,"getProjectedBBox",(function(){return K})),n.d(t,"createBBox",(function(){return G})),n.d(t,"reprojectGeoJson",(function(){return X})),n.d(t,"lineIntersectPolygon",(function(){return J})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return Q})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return se})),n.d(t,"filterCRSList",(function(){return ie})),n.d(t,"calculateAzimuth",(function(){return ae})),n.d(t,"calculateDistance",(function(){return le})),n.d(t,"extendExtent",(function(){return ue})),n.d(t,"getGeoJSONExtent",(function(){return ce})),n.d(t,"isValidExtent",(function(){return de})),n.d(t,"calculateCircleCoordinates",(function(){return fe})),n.d(t,"transformLineToArcs",(function(){return pe})),n.d(t,"transformArcsToLine",(function(){return me})),n.d(t,"coordsOLtoLeaflet",(function(){return he})),n.d(t,"mergeToPolyGeom",(function(){return be})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return ge})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return je})),n.d(t,"parseString",(function(){return _e})),n.d(t,"getWMSBoundingBox",(function(){return xe})),n.d(t,"isSRSAllowed",(function(){return we})),n.d(t,"getNormalizedLatLon",(function(){return Se})),n.d(t,"isInsideVisibleArea",(function(){return Me})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return Ee})),n.d(t,"midpoint",(function(){return Te})),n.d(t,"pointObjectToArray",(function(){return Le})),n.d(t,"isPointInsideExtent",(function(){return Pe})),n.d(t,"isBboxCompatible",(function(){return Ae})),n.d(t,"extractCrsFromURN",(function(){return De})),n.d(t,"makeNumericEPSG",(function(){return Ce})),n.d(t,"makeBboxFromOWS",(function(){return Fe}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),s=n("./MapStore2/web/client/libs/proj4.js"),i=n.n(s),a=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(a),u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/@turf/line-intersect/index.js"),p=n.n(f),m=n("./node_modules/@turf/polygon-to-linestring/index.js"),h=n.n(m),b=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),g=n.n(y),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),j=n("./node_modules/@turf/boolean-overlap/main.es.js"),_=n("./node_modules/@turf/boolean-contains/main.es.js");function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return A(e,t)}));var n}var D=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function C(e,t,n){if(null===e)return e;var r=Object(d.cloneDeep)(e);return"Feature"===e.type?r.geometry=C(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return C(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return C(e,t,n)})):t&&t(r),n&&n(r),r}function F(e){return"string"==typeof e||e instanceof String?i.a.defs(e)?new i.a.Proj(e):null:e}var N={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},R=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},Y=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&i.a.defs(t)?new i.a.Proj(t):null,s=n&&i.a.defs(n)?new i.a.Proj(n):null;if(o&&s){var a=Object(d.isArray)(e)?i.a.toPoint(e):i.a.toPoint([e.x,e.y]),l=c()({},t===n?R(a):i.a.transform(o,s,R(a)),{srs:n});return r?I(l):l}return null},z=["EPSG:900913","EPSG:4326","EPSG:3857"],H=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[Y([e[0],e[1]],"EPSG:4326",t),Y([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[])})):[Y([e[0],e[1]],"EPSG:4326",t),Y([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[])},U=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},B=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[Y([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),Y([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,s=t*r[1]/2,i=Math.cos(n),a=Math.sin(n),l=o*i,u=o*a,c=s*i,d=s*a,f=e.x,p=e.y,m=f-l+d,h=f-l-d,b=f+l-d,y=f+l+d,g=p-u-c,v=p-u+c,j=p+u+c,_=p+u-c,x=T.createBBox(Math.min(m,h,b,y),Math.min(g,v,j,_),Math.max(m,h,b,y),Math.max(g,v,j,_));return x},G=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=F(r)),"string"==typeof o&&(o=F(o));var s=L(r,o);return C(e,(function(e){e.crs&&delete e.crs,e.coordinates=A(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return s.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],C(e,(function(e){A(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},J=function(e,t){var n=h()(t).features[0];return 0!==p()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var s=[];for(var i in r)if(r.hasOwnProperty(i)){var a=T.reproject(r[i],t,n,o);if(!a)return null;var l=a.x,u=a.y;s.push(l),s.push(u)}return s},$=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,s=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,s],[o,s],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?T.getCompatibleSRS(n,t):n},oe=function(e,t){return t[T.getCompatibleSRS(e,t)]},se=function(){var e={};for(var t in i.a.defs)i.a.defs.hasOwnProperty(t)&&(e[t]={label:N[t]||t});return e},ie=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return c()({},-1===t.indexOf(r)?n:w(w({},n),{},S({},r,e[r])))}),{}),s=r.map((function(e){return e.code})),i=Object.keys(n).reduce((function(e,t){return c()({},-1===s.indexOf(t)?e:w(w({},e),{},S({},t,n[t])))}),{});return c()({},o,i)},ae=function(e,t,n){var r=T.reproject(e,n,"EPSG:4326"),o=T.reproject(t,n,"EPSG:4326"),s=r.x*Math.PI/180,i=r.y*Math.PI/180,a=o.x*Math.PI/180,l=o.y*Math.PI/180,u=a-s,c=Math.sin(u)*Math.cos(l),d=Math.cos(i)*Math.sin(l)-Math.sin(i)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,d)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(P).indexOf(t)?P[t](e):0},ue=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},ce=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=T.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return T.getGeoJSONExtent(e.geometry)}return n},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},fe=function(e,t,n,r){var o,s,i,a=Math.PI*(1/n-.5);r&&(a+=r/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(T.transformArcsToLine(Object(d.slice)(e,t))):[]},he=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},be=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(z.filter((function(e){return e===t})))){var n=B(e,t),r=n.extent,o=n.isIDL,s=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var i=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:s,extent:r,center:[i=i>180?i-360:i,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:s[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var a=[e.minx,e.miny,e.maxx,e.maxy],l=[a[0],a[1]],u=[a[2],a[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:a,center:[(a[0]+a[2])/2,(a[1]+a[3])/2]}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=T.getViewportGeometry(t,n),s=o.extent;if(4===s.length)return T.reprojectBbox(s,n,r);var i=s.map((function(e){return e[2]-e[0]})),a=O(i,2),l=a[0],u=a[1];return l>u?T.reprojectBbox(s[0],n,r):T.reprojectBbox(s[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||D(n),null,{timeout:2e3})},je=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(d.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},_e=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},xe=function(e,t){var n=t||"EPSG:3857",r=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&T.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(d.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},we=function(e){return!!i.a.defs(e)},Se=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:T.normalizeLng(n)}},Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=Y([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var i=T.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),a=w({left:0,right:0,top:0,bottom:0},n),l={minx:i[0]+a.left*r,miny:i[1]+a.bottom*r,maxx:i[2]-a.right*r,maxy:i[3]-a.top*r},u=T.getViewportGeometry(l,t.projection),c=4===u.extent.length?[M(u.extent)]:M(u.extent);return Object(d.head)(c.map((function(e){return s.x>=e[0]&&s.y>=e[1]&&s.x<=e[2]&&s.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=Y([o.lng,o.lat],"EPSG:4326",t.projection),i=w({left:0,right:0,top:0,bottom:0},n),a={width:(t.size.width-i.right-i.left)*r,height:(t.size.height-i.top-i.bottom)*r},l={minx:s.x-a.width/2-i.left*r,miny:s.y-a.height/2-i.bottom*r,maxx:s.x+a.width/2+i.right*r,maxy:s.y+a.height/2+i.top*r},u=T.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:Y([u.extent[0]+t.size.width/2*r,u.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=Y([u.extent[0][2]-t.size.width/2*r,u.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),d=w(w({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:Y([u.extent[1][0]+t.size.width/2*r,u.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,s=Object(d.isArray)(n)?n:[n.x,n.y];if(Object(d.isNumber)(s[0])&&!isNaN(s[0])&&Object(d.isNumber)(s[1])&&!isNaN(s[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var i=Object(d.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,a=i&&(Object(d.isArray)(i)?i:[i.x,i.y]);return Object(d.isArray)(a)?Math.sqrt((s[0]-a[0])*(s[0]-a[0])+(s[1]-a[1])*(s[1]-a[1])):o}return o},Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,s=e.maximumFractionDigits,i=void 0===s?0:s;return 0===i&&Math[n]?Math[n](o):o},Te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,s={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[s.x,s.y]:s},Le=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(_.a)(U(t),g()([e.lng,e.lat]))},Ae=function(e,t){return Object(j.a)(e,t)||Object(_.a)(e,t)||Object(_.a)(t,e)},De=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Ce=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=q[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Fe=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var s=n.slice(),i=r.slice();n=[i[0],s[1]],r=[s[0],i[1]]}return[n[0],n[1],r[0],r[1]]};T={setCrsLabels:W,getUnits:V,reproject:Y,getProjectedBBox:K,createBBox:G,reprojectGeoJson:X,lineIntersectPolygon:J,normalizePoint:I,normalizeLng:Z,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:se,filterCRSList:ie,calculateAzimuth:ae,calculateDistance:le,FORMULAS:P,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:de,calculateCircleCoordinates:fe,transformLineToArcs:pe,transformArcsToLine:me,coordsOLtoLeaflet:he,mergeToPolyGeom:be,getViewportGeometry:ye,getProjUrl:D,getExtentFromViewport:ge,fetchProjRemotely:ve,parseURN:je,determineCrs:F,parseString:_e,getWMSBoundingBox:xe,isSRSAllowed:we,getNormalizedLatLon:Se,isInsideVisibleArea:Me,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:Ee,midpoint:Te,pointObjectToArray:Le,getExtentFromNormalized:B,getPolygonFromExtent:U,isPointInsideExtent:Pe,isBboxCompatible:Ae,extractCrsFromURN:De,crsCodeTable:q,makeNumericEPSG:Ce,makeBboxFromOWS:Fe},t.default=T},"./MapStore2/web/client/utils/EpicsUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--unknown--";return function(){return e.apply(void 0,arguments).catch((function(e,n){return console.error('Error in epic "'.concat(t,'". Original error:'),e),setTimeout((function(){throw e}),0),n}))}},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Object.keys(e).map((function(n){return t(e[n],n)}))}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getWpsUrl",(function(){return N})),n.d(t,"getNode",(function(){return z})),n.d(t,"getGroupNodes",(function(){return H})),n.d(t,"getNestedGroupTitle",(function(){return U})),n.d(t,"deepChange",(function(){return B})),n.d(t,"getSourceId",(function(){return q})),n.d(t,"extractTileMatrixFromSources",(function(){return W})),n.d(t,"extractTileMatrixSetFromLayers",(function(){return V})),n.d(t,"extractSourcesFromLayers",(function(){return K})),n.d(t,"extractDataFromSources",(function(){return G})),n.d(t,"getURLs",(function(){return X})),n.d(t,"getLayerUrl",(function(){return Z})),n.d(t,"getGroupByName",(function(){return Q})),n.d(t,"getDimension",(function(){return $})),n.d(t,"getLayerId",(function(){return ee})),n.d(t,"normalizeLayer",(function(){return te})),n.d(t,"normalizeMap",(function(){return ne})),n.d(t,"belongsToGroup",(function(){return re})),n.d(t,"getLayersByGroup",(function(){return oe})),n.d(t,"removeEmptyGroups",(function(){return se})),n.d(t,"getNotEmptyGroup",(function(){return ie})),n.d(t,"reorderFunc",(function(){return ae})),n.d(t,"denormalizeGroups",(function(){return le})),n.d(t,"sortLayers",(function(){return ue})),n.d(t,"toggleByType",(function(){return ce})),n.d(t,"sortUsing",(function(){return de})),n.d(t,"splitMapAndLayers",(function(){return fe})),n.d(t,"geoJSONToLayer",(function(){return pe})),n.d(t,"saveLayer",(function(){return me})),n.d(t,"REG_GEOSERVER_RULE",(function(){return he})),n.d(t,"setRegGeoserverRule",(function(){return be})),n.d(t,"getRegGeoserverRule",(function(){return ye})),n.d(t,"findGeoServerName",(function(){return ge})),n.d(t,"getCapabilitiesUrl",(function(){return ve})),n.d(t,"getSearchUrl",(function(){return je})),n.d(t,"invalidateUnsupportedLayer",(function(){return _e})),n.d(t,"isSupportedLayer",(function(){return xe})),n.d(t,"getLayerTitleTranslations",(function(){return we})),n.d(t,"setCustomUtils",(function(){return Se})),n.d(t,"getAuthenticationParam",(function(){return Me})),n.d(t,"excludeGoogleBackground",(function(){return Oe})),n.d(t,"creditsToAttribution",(function(){return ke})),n.d(t,"formatCapabitiliesOptions",(function(){return Ee})),n.d(t,"getLayerTitle",(function(){return Te}));var r,o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/turf-bbox/index.js"),a=n.n(i),l=n("./node_modules/uuid/v1.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isObject.js"),p=n.n(f),m=n("./MapStore2/node_modules/lodash/isArray.js"),h=n.n(m),b=n("./MapStore2/node_modules/lodash/head.js"),y=n.n(b),g=n("./MapStore2/node_modules/lodash/castArray.js"),v=n.n(g),j=n("./MapStore2/node_modules/lodash/isEmpty.js"),_=n.n(j),x=n("./MapStore2/node_modules/lodash/findIndex.js"),w=n.n(x),S=n("./MapStore2/node_modules/lodash/pick.js"),M=n.n(S),O=n("./MapStore2/node_modules/lodash/isNil.js"),k=n.n(O),E=n("./MapStore2/web/client/utils/SecurityUtils.js");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e(r.nodes,n):t:r)}),null):null},H=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,n){var r=[].concat(t);return n.nodes&&(r=t.concat(e(n))),d()(n)?[].concat(A(r),[n]):[].concat(A(r),[n.id])}),[]):[]},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h()(t)&&y()(t.map((function(t){var n=t.id===e?t:null;if(n)return n.title;var r=z(t.nodes,e);return r?r.title:null})))},B=function e(t,n,r,o){return t&&h()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===n)return L(L({},t),p()(r)?r:P({},r,o));if(t.nodes)return L(L({},t),{},{nodes:e(t.nodes,n,r,o)})}return t})):[]},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(v()(e.url))},W=function(e,t){if(!e||!t)return{};!h()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=A(Object.keys(t.matrixIds)));var n=q(t),r=t.matrixIds&&t.matrixIds.reduce((function(t,r){var o=e[n]&&e[n].tileMatrixSet&&e[n].tileMatrixSet[r]&&e[n].tileMatrixSet[r].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,P({},r,A(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[n].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&r&&{tileMatrixSet:o,matrixIds:r}||{}},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(n,r){var o=e[r].reduce((function(e,t){return s()(e,P({},t.id||t.name,{srs:A(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[r].reduce((function(e,t){var n=t.tileMatrixSet.reduce((function(e,t){return s()({},e,P({},t["ows:Identifier"],s()({},t)))}),{}),r=Object.keys(n).reduce((function(e,t){var r=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=r[0]&&n[t].TileMatrix.map((function(e,t){return r[0][t]&&r[0][t].ranges?s()({},e,{ranges:r[0][t].ranges}):s()({},e)}));return y()(r)?s()({},e,P({},t,s()({},n[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,r)}),{});return s()({},n,P({},r,s()({},t[r]||{},{tileMatrixSet:s()({},n[r]&&n[r].tileMatrixSet||{},i)})))}),s()({},t))||t},K=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var n=q(t);return e[n]?s()({},e,P({},n,[].concat(A(e[n]),[t]))):s()({},e,P({},n,[t]))}),{});return V(t)},G=function(e){if(!e||!e.layers||!h()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return _()(t)?A(e.layers):e.layers.map((function(e){var n=W(t,e);return s()({},e,n)}))},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},J={},Z=function(e){return h()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=y()(t.filter((function(t){return t.name===e})));return n||t.reduce((function(t,n){return t||!!n.nodes&&r.getGroupByName(e,n.nodes)}),void 0)},$=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:L(L({},e),{},{id:r.getLayerId(e)})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?L(L({},e),{},{layers:(e.layers||[]).map((function(e){return r.normalizeLayer(e)}))}):e},function(e){return e.groups?e:L(L({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},re=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var n=0,r=e.map((function(e){return s()({},e,{storeIndex:n++})}));return r.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,n){var o=n||"Default";return o.split(".").reduce((function(e,n,i,a){var l=o.split(".",i+1).join("."),u=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(l,e),c=i===a.length-1;u?c&&(u.nodes=u.nodes.concat(F(l,r))):(u=function(e,t,n,r){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:r?F(e,n):[],expanded:!0})}(l,U(l,t)||n,r,c),e.push(u));return u.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(r.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(r.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(R(e,t))},le=function(e,t){var n=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},r=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:r,groups:t.map((function(e){return function e(t,r){var o=t.nodes.map((function(t){return p()(t)?e(t,r):r.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:n(o)})}(e,r)}))}},ue=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(R(e,t))},ce=function(e,t){return function(n,r){return t(n,e,r)}},de=function(e,t){return function(n,r){return t(n,r,e)}},fe=function(e){if(e&&h()(e.layers)){var t=r.getLayersByGroup(e.layers,e.groups);h()(e.groups)&&(t=e.groups.reduce((function(e,t){var n=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};n=r.deepChange(n,t.id,o)}return n=r.deepChange(n,t.id,"expanded",t.expanded)}),[].concat(t)));var n=G(e);return s()({},e,{layers:{flat:r.reorder(t,n),groups:t}})}return e},pe=function(e,t){var n=a()(e),r=[];return r="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[M()(L(L({},e),{},{id:k()(e.id)?u()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]},crs:"EPSG:4326"},features:r}},me=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},he=C,be=function(e){C=e},ye=function(){return C},ge=function(e){var t=e.url,n=e.regexRule||r.getRegGeoserverRule(),o=h()(t)?t[0]:t;return n.test(o)&&o.match(n)[0]||null},ve=function(e){var t=r.findGeoServerName({url:e.url}),n=Z(e);if(t){var o=n.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(n=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var n=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+n:e+"&"+n}(n,L(L({},e.baseParams),e.params))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},_e=function(e,t){return Y(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},xe=function(e,t){return!!Y(e,t)},we=function(e){return J.getLayerTitleTranslations?J.getLayerTitleTranslations(e):e.Title},Se=function(e,t){J[e]=t},Me=function(e){var t=X(h()(e.url)?e.url:[e.url]),n={};return t.forEach((function(t){Object(E.addAuthenticationParameter)(t,n,e.securityToken)})),n},Oe=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group,r=e.visibility;return"background"===n&&"google"===t&&r})).length>0,n=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),r=n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(r.length>0){var o=w()(n,{group:"background"});return n.map((function(e,t){return t===o?L(L({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(A(n))}return n},ke=function(e){var t=e.imageUrl,n=e.link,r=e.title,o=t?'"):r;return n&&o?'').concat(o,""):o},Ee=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Te=function(e){var t=e.title,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[r])||(null==t?void 0:t.default)||t||n};r={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:B,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:ge}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(j)[0],n=j.en?{key:"en",locale:j.en}:{key:t,locale:j[t]},r=j[v.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:n.key))];return r?r.code:n.locale.code},k=function(){return j},E=function(e){return _[e]||_.default},T=function(e,t){var n=e;return t.split(".").forEach((function(e){n=n?n[e]:null})),n||t},L=function(e,t){x[e]=t},P=function(e,t,n){return t&&n&&x[t]&&x[t][n]&&x[t][n](e)||{title:"errorTitleDefault",message:"errorDefault"}},A=function(e,t){return i(t)?t[e]||t.default:t||""};v={getLocale:O,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var n=/^[a-z]+/i.exec(e);t=n&&n.length>0?n[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(r,n)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,n){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},n.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path)))}),{})}),(function(e,t){return t.reduce((function(t,n){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var n=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===n||e===n})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(n)&&0===n.indexOf("{")?parseExpression(e,t,n):n},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(r&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,n.requires,r)},isContainedInList=function(e,t,n,r){return e&&t&&-1!==handleExpression(n,r,t).indexOf(e)},showIn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,n.showIn,e,t)||isContainedInList(r,n.showIn,e,t)||!n.showIn&&s)&&!(isContainedInList(o,n.hideFrom,e,t)||isContainedInList(r,n.hideFrom,e,t))},includeLoaded=function(e,t,n){if(t[e]){var r=t[e],o=r.component||r;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,n,{loadPlugin:void 0},_objectSpread({},r.containers))}return n},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,n+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n+".priority")||0},getMorePrioritizedContainer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return n.reduce((function(n,r){var o=r.name||r,s=getPriority(e,t,o);return s>n.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:n}),{plugin:null,priority:r})},parsePluginConfig=function e(t,n,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(r)?r.map((function(r){return e(t,n,r)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?Object.keys(r).reduce((function(o,s){var i=r[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,n,i)))}),{}):parseExpression(t,n,r)},canContain=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||n[e]||!1},isMorePrioritizedContainer=function(e,t,n,r){return null===getMorePrioritizedContainer(e,t,n,r).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,n){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[n])?_objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n](t))):e},getPluginItems=function e(t,n,r,o,s,i,a,l){return Object.keys(n).map((function(e){var t=getPluginConfiguration(r,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,n[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,n.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,r,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),l=includeLoaded(i,a,s.impl),u=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(l,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(l,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},u,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},l.cfg||{},parsePluginConfig(t,n.requires,s.config.cfg||{})||void 0)},{plugin:l,items:e(t,n,r,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,n)})).filter((function(e){return!l||l(e)}))},pluginsMergeProps=function(e,t,n){var r=n.pluginCfg,o=_objectWithoutProperties(n,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,r||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n]?[].concat(_toConsumableArray(e[n]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.stateSelector:i||void 0,l=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)||(void 0===r.isDefault||r.isDefault),u=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r)+"Plugin",c=t[u];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?parsePluginConfig(e,t.requires,r.cfg):{}),items:getPluginItems(e,t,n,s,i,l,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(r,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):n};return a.loaded=!!r,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,n,r){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,n||pluginsMergeProps,r)},createPlugin=function(e,t){var n,r=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,l=t.reducers,u=void 0===l?{}:l,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,m=t.enabler,h=void 0===m?function(){return!0}:m,b=t.loader,y=normalizeName(e),g=p?{loadPlugin:function(e){b().then((function(t){var n=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0}))}))},enabler:h}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0});return _defineProperty(n={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(g,a,s)),_defineProperty(n,"reducers",u),_defineProperty(n,"epics",d),n},loadPlugin=function(e){return new Promise((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,n){return t({name:e,plugin:n})}))})).catch((function(e){n(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setStore",(function(){return g})),n.d(t,"getSecurityInfo",(function(){return v})),n.d(t,"getUser",(function(){return j})),n.d(t,"getBasicAuthHeader",(function(){return _})),n.d(t,"getToken",(function(){return x})),n.d(t,"getRefreshToken",(function(){return w})),n.d(t,"getUserAttributes",(function(){return S})),n.d(t,"findUserAttribute",(function(){return M})),n.d(t,"findUserAttributeValue",(function(){return O})),n.d(t,"getAuthenticationRules",(function(){return k})),n.d(t,"isAuthenticationActivated",(function(){return E})),n.d(t,"getAuthenticationMethod",(function(){return T})),n.d(t,"getAuthenticationRule",(function(){return L})),n.d(t,"getAuthKeyParameter",(function(){return P})),n.d(t,"addAuthenticationParameter",(function(){return A})),n.d(t,"addAuthenticationToUrl",(function(){return D})),n.d(t,"clearNilValuesForParams",(function(){return C})),n.d(t,"addAuthenticationToSLD",(function(){return F})),n.d(t,"cleanAuthParamsFromURL",(function(){return N}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o),i=n("./node_modules/object-assign/index.js"),a=n.n(i),l=n("./MapStore2/node_modules/lodash/head.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isNil.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isArray.js"),p=n.n(f),m=n("./MapStore2/web/client/utils/StateUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return d()(e[n])?t:b(b({},t),{},y({},n,e[n]))}),{})}function F(e,t){if(e.SLD){var n=s.a.parse(e.SLD,!0),r=A(e.SLD,n.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},n,{query:r,search:void 0}))})}return e}function N(e){return r.default.filterUrlParams(e,[P(e)].filter((function(e){return e})))}var I={setStore:g,getSecurityInfo:v,getUser:j,getBasicAuthHeader:_,getToken:x,getRefreshToken:w,getUserAttributes:S,findUserAttribute:M,findUserAttributeValue:O,getAuthenticationRules:k,isAuthenticationActivated:E,getAuthenticationMethod:T,getAuthenticationRule:L,addAuthenticationToUrl:D,addAuthenticationParameter:A,clearNilValuesForParams:C,addAuthenticationToSLD:F,getAuthKeyParameter:P,cleanAuthParamsFromURL:N};t.default=I},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return x})),n.d(t,"d",(function(){return M})),n.d(t,"c",(function(){return k})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return T}));var r=n("./node_modules/redux/es/index.js"),o=n("./node_modules/redux-thunk/lib/index.js"),s=n.n(o),i=n("./node_modules/redux-logger/dist/redux-logger.js"),a=n.n(i),l=n("./node_modules/redux-observable/lib/esm/index.js"),u=n("./MapStore2/web/client/utils/EpicsUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/isEmpty.js"),f=n.n(d),p=n("./node_modules/rxjs/Rx.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+n,e),e},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+n,e),e},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",r=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+n,r),function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},k=function(e){var t;return!f()(_(e))&&(null===(t=_(e))||void 0===t?void 0:t.getState())||{}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,n=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,m=e.debug,h=void 0!==m&&m,b=e.enhancer,g=w(t||Object(r.c)(s)),_=n||l.a.apply(void 0,y(Object(u.a)(a))),S=_?[x(Object(l.b)(_))].concat(y(p)):p,M=r.a.apply(null,v(S,h)),O=(window.devToolsExtension&&h?Object(r.d)(M,window.devToolsExtension()):M)(r.e);return j(O(g,d,b))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,n=void 0===t?{}:t,r=e.epics,o=void 0===r?{}:r,s=arguments.length>1?arguments[1]:void 0,i=S(),a=function(e,t){var r=Object.keys(i({},{})),o=h(h({},e),i(e,t));return Object.keys(n).filter((function(e){return-1===r.indexOf(e)})).reduce((function(e,r){return h(h({},e),{},b({},r,n[r](e[r],t)))}),o)};(s||_()).replaceReducer(a);var l=O();Object(u.a)(o).forEach((function(e){l.next(e)}))}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t,r){var o=n[e];return o&&o.create?o.create(t,r):o?o(t,r):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o,s){var i=n[e];return i&&i.update?i.update(t,r,o,s):null},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t){var r=n[e];return r&&r.create?r.create(t):r?r(t):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o){var s=n[e];return s&&s.update?s.update(t,r,o):null},isValid:function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,n){"use strict";n.r(t),n.d(t,"registerType",(function(){return o})),n.d(t,"createLayer",(function(){return s})),n.d(t,"updateLayer",(function(){return i})),n.d(t,"removeLayer",(function(){return a})),n.d(t,"renderLayer",(function(){return l})),n.d(t,"isValid",(function(){return u})),n.d(t,"isSupported",(function(){return c})),n.d(t,"isCompatible",(function(){return d}));var r={},o=function(e,t){r[e]=t},s=function(e,t,n,o){var s=r[e];return s?s.create(t,n,o):null},i=function(e,t,n,o,s,i){var a=r[e];if(a&&a.update)return a.update(t,n,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var l=!1;o.params&&n.params?l=Object.keys(o.params).reduce((function(e,t){return n.params[t]!==o.params[t]||e}),!1):!o.params&&n.params&&(l=!0),l&&t.getSource().updateParams(n.params)}return null},a=function(e,t,n,o,s){var i=r[e];return i&&i.remove?i.remove(t,n,o,s):null},l=function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},u=function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},c=function(e){return!!r[e]},d=function(e,t){var n=r[e];return!n||!n.isCompatible||n.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:l,isValid:u,isSupported:c,isCompatible:d}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"p",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return g}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",s="GEONODE:RESOURCE_ERROR",i="GEONODE:UPDATE_RESOURCE_PROPERTIES",a="GEONODE:SET_RESOURCE_TYPE",l="GEONODE:SET_NEW_RESOURCE",u="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function f(e){return{type:o,data:e}}function p(e){return{type:a,resourceType:e}}function m(e){return{type:s,error:e}}function h(e){return{type:i,properties:e}}function b(){return{type:l}}function y(e){return{type:u,id:e}}function g(e){return{type:c,permissions:e}}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return v}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./node_modules/js-cookie/src/js.cookie.js"),a=n.n(i),l=n("./js/utils/GNSearchUtils.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(f,"/categories").concat(p),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.identifier,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(f,"/keywords").concat(p),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(f,"/regions").concat(p),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.name,n),n}))}))},g=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(f,"/owners").concat(p),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.username,n),n}))}))},v=function(e){var t=a.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return k})),n.d(t,"i",(function(){return L})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return D})),n.d(t,"a",(function(){return C})),n.d(t,"j",(function(){return F})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return R})),n.d(t,"h",(function(){return Y}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./js/utils/APIUtils.js"),i=n("./MapStore2/node_modules/lodash/mergeWith.js"),a=n.n(i),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/castArray.js"),p=n.n(f),m=n("./js/api/geonode/v1/index.js"),h=n("./MapStore2/web/client/utils/ConfigUtils.js"),b=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1?e+s.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+s[0]}),"");return"".concat(e).concat(n)}var k=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=x(x({},S),e)}(t),t}))};function E(e,t){return t?a()(x({},e),x({},t),(function(e,t){return u()(e)&&u()(t)?[].concat(v(e),v(t)):d()(e)&&u()(t)?[e].concat(v(t)):u()(e)&&d()(t)?[].concat(v(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var T,L=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,l=e.sort,c=e.f,d=g(e,["q","pageSize","page","sort","f"]),f=((Object(h.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return M("resources",(function(){return o.a.get(Object(s.b)(O(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},E(d,f)),l&&{sort:u()(l)?l:[l]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,l=e.sort,c=g(e,["q","pageSize","page","sort"]);return M("maps",(function(){return o.a.get(Object(s.b)(O(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},c),l&&{sort:u()(l)?l:[l]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,i=void 0===r?20:r,a=t.page,l=void 0===a?1:a,c=t.sort,d=g(t,["q","pageSize","page","sort"]);return M("maps",(function(){return o.a.get(Object(s.b)(O(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:x(x(x({},d),c&&{sort:u()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:l,page_size:i})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},D=function(e){return o.a.get(Object(s.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},C=function(e){return o.a.post(Object(s.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},F=function(e,t){return o.a.patch(Object(s.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},N=function(e){return o.a.get(Object(s.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},I=function(){return Object(m.f)().then((function(e){return N(e.sub).then((function(t){return x(x({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},R=function(e){return o.a.get(e).then((function(e){return e.data}))},Y=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return T?new Promise((function(e){return e(T)})):o.a.get(Object(s.b)(S.resource_types)).then((function(e){var n=e.data;return v(T=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(b.h)(t+e,n),n})))}))}},"./js/apps/gn-home.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/components/app/main.jsx"),o=n("./js/components/app/Router.jsx"),s=n("./node_modules/react/index.js"),i=n.n(s);function a(e){var t=e.text;return i.a.createElement("div",{className:"gn-main-loader-container"},i.a.createElement("div",{className:"gn-main-loader-content"},i.a.createElement("div",{className:"gn-main-loader"}),i.a.createElement("div",{className:"gn-main-loader-text"},t)))}a.defaultProps={text:"GeoNode"};var l=a,u=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/web/client/utils/LocaleUtils.js"),f=n("./MapStore2/web/client/reducers/security.js"),p=n("./MapStore2/web/client/utils/LayersUtils.js"),m=n("./node_modules/prop-types/index.js"),h=n.n(m),b=n("./node_modules/url/url.js"),y=n.n(b),g=n("./node_modules/reselect/es/index.js"),v=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),j=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_=n("./node_modules/react-bootstrap-v1/node_modules/classnames/index.js"),x=n.n(_),w=i.a.createContext({});w.Consumer,w.Provider;function S(e,t){var n=Object(s.useContext)(w);return e||n[t]||t}var M=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o=n.length&&(s=0),s<0&&(s=n.length-1),n[s]},_=function(e,t){null!=e&&(l&&l(e,t),h&&h(e,t))};Object(s.useEffect)((function(){if(y.current&&m.current){var e=y.current.querySelector("[data-rb-event-key].active");e&&e.focus()}m.current=!1}));var x=pe(t,y);return i.a.createElement(ge.Provider,{value:_},i.a.createElement(he.Provider,{value:{role:c,activeKey:ye(u),getControlledId:n||je,getControllerId:r||je}},i.a.createElement(a,Object(v.a)({},f,{onKeyDown:function(e){var t;switch(d&&d(e),e.key){case"ArrowLeft":case"ArrowUp":t=g(-1);break;case"ArrowRight":case"ArrowDown":t=g(1);break;default:return}t&&(e.preventDefault(),_(t.dataset.rbEventKey,e),m.current=!0,p())},ref:x,role:c}))))}));var xe=function(e){var t=Object(s.useRef)(e);return Object(s.useEffect)((function(){t.current=e}),[e]),t};function we(e){var t=xe(e);return Object(s.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}var Se=i.a.forwardRef((function(e,t){var n=e.active,r=e.className,o=e.eventKey,a=e.onSelect,l=e.onClick,u=e.as,c=Object(j.a)(e,["active","className","eventKey","onSelect","onClick","as"]),d=ye(o,c.href),f=Object(s.useContext)(ge),p=Object(s.useContext)(he),m=n;if(p){c.role||"tablist"!==p.role||(c.role="tab");var h=p.getControllerId(d),b=p.getControlledId(d);c["data-rb-event-key"]=d,c.id=h||c.id,c["aria-controls"]=b||c["aria-controls"],m=null==n&&null!=d?p.activeKey===d:n}"tab"===c.role&&(c.tabIndex=m?c.tabIndex:-1,c["aria-selected"]=m);var y=we((function(e){l&&l(e),null!=d&&(a&&a(d,e),f&&f(d,e))}));return i.a.createElement(u,Object(v.a)({},c,{ref:t,onClick:y,className:x()(r,m&&"active")}))}));Se.defaultProps={disabled:!1};var Me=Se,Oe={variant:void 0,active:!1,disabled:!1},ke=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.active,o=e.disabled,a=e.className,l=e.variant,u=e.action,c=e.as,d=e.eventKey,f=e.onClick,p=Object(j.a)(e,["bsPrefix","active","disabled","className","variant","action","as","eventKey","onClick"]);n=S(n,"list-group-item");var m=Object(s.useCallback)((function(e){if(o)return e.preventDefault(),void e.stopPropagation();f&&f(e)}),[o,f]);return i.a.createElement(Me,Object(v.a)({ref:t},p,{eventKey:ye(d||null,p.href),as:c||(u?p.href?"a":"button":"div"),onClick:m,className:x()(a,n,r&&"active",o&&"disabled",l&&n+"-"+l,u&&n+"-action")}))}));ke.defaultProps=Oe,ke.displayName="ListGroupItem";var Ee=ke,Te={variant:void 0,horizontal:void 0},Le=i.a.forwardRef((function(e,t){var n,r=oe(e,{activeKey:"onSelect"}),o=r.className,s=r.bsPrefix,a=r.variant,l=r.horizontal,u=r.as,c=void 0===u?"div":u,d=Object(j.a)(r,["className","bsPrefix","variant","horizontal","as"]),f=S(s,"list-group");return n=l?!0===l?"horizontal":"horizontal-"+l:null,i.a.createElement(_e,Object(v.a)({ref:t},d,{as:c,className:x()(o,f,a&&f+"-"+a,n&&f+"-"+n)}))}));Le.defaultProps=Te,Le.displayName="ListGroup",Le.Item=Ee;var Pe=Le,Ae=n("./MapStore2/node_modules/lodash/debounce.js"),De=n.n(Ae);function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(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 Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i.a.createElement("div",{className:"gn-suggestions"},i.a.createElement("div",{className:"gn-suggestions-header"},i.a.createElement(L,{onClick:function(){return f()},variant:"default"},i.a.createElement(N,{name:"times"}))),i.a.createElement(Pe,null,o.map((function(e){return i.a.createElement(Pe.Item,{key:e.id,action:!n,onClick:function(){return x(e.value)}},e.label)})))),d)}Ne.defaultProps={value:"",loading:!1,debounceTime:0,suggestions:[],onChange:function(){},onFetchSuggestions:function(){},style:{}};var Ie,Re=Ne;function Ye(){return Object(s.useState)(null)}var ze=i.a.createContext(null);function He(){var e=Object(s.useRef)(!0),t=Object(s.useRef)((function(){return e.current}));return Object(s.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}var Ue=function(e){var t=He();return[e[0],Object(s.useCallback)((function(n){if(t())return e[1](n)}),[t,e[1]])]};function Be(e){return e.split("-")[0]}function qe(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function We(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ve(e){return e instanceof We(e).Element||e instanceof Element}function Ke(e){return e instanceof We(e).HTMLElement||e instanceof HTMLElement}function Ge(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&((n=r)instanceof We(n).ShadowRoot||n instanceof ShadowRoot)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Xe(e){return e?(e.nodeName||"").toLowerCase():null}function Je(e){return We(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf(Xe(e))>=0}function Qe(e){return((Ve(e)?e.ownerDocument:e.document)||window.document).documentElement}function $e(e){return"html"===Xe(e)?e:e.assignedSlot||e.parentNode||e.host||Qe(e)}function et(e){if(!Ke(e)||"fixed"===Je(e).position)return null;var t=e.offsetParent;if(t){var n=Qe(t);if("body"===Xe(t)&&"static"===Je(t).position&&"static"!==Je(n).position)return n}return t}function tt(e){for(var t=We(e),n=et(e);n&&Ze(n)&&"static"===Je(n).position;)n=et(n);return n&&"body"===Xe(n)&&"static"===Je(n).position?t:n||function(e){for(var t=$e(e);Ke(t)&&["html","body"].indexOf(Xe(t))<0;){var n=Je(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}function nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rt(e,t,n){return Math.max(e,Math.min(t,n))}function ot(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function st(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var it="top",at="bottom",lt="right",ut="left",ct=[it,at,lt,ut],dt=ct.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),ft=[].concat(ct,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),pt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var mt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Be(n.placement),a=nt(i),l=[ut,lt].indexOf(i)>=0?"height":"width";if(o&&s){var u=n.modifiersData[r+"#persistent"].padding,c=qe(o),d="y"===a?it:ut,f="y"===a?at:lt,p=n.rects.reference[l]+n.rects.reference[a]-s[a]-n.rects.popper[l],m=s[a]-n.rects.reference[a],h=tt(o),b=h?"y"===a?h.clientHeight||0:h.clientWidth||0:0,y=p/2-m/2,g=u[d],v=b-c[l]-u[f],j=b/2-c[l]/2+y,_=rt(g,j,v),x=a;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-j,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,s=void 0===o?"[data-popper-arrow]":o,i=n.padding,a=void 0===i?0:i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&Ge(t.elements.popper,s)&&(t.elements.arrow=s,t.modifiersData[r+"#persistent"]={padding:ot("number"!=typeof a?a:st(a,ct))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.offsets,i=e.position,a=e.gpuAcceleration,l=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(s),c=u.x,d=u.y,f=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),m=ut,h=it,b=window;if(l){var y=tt(n);y===We(n)&&(y=Qe(n)),o===it&&(h=at,d-=y.clientHeight-r.height,d*=a?1:-1),o===ut&&(m=lt,c-=y.clientWidth-r.width,c*=a?1:-1)}var g,v=Object.assign({position:i},l&&ht);return a?Object.assign(Object.assign({},v),{},((g={})[h]=p?"0":"",g[m]=f?"0":"",g.transform=(b.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",g)):Object.assign(Object.assign({},v),{},((t={})[h]=p?d+"px":"",t[m]=f?c+"px":"",t.transform="",t))}var yt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,s=n.adaptive,i=void 0===s||s,a={placement:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),bt(Object.assign(Object.assign({},a),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),bt(Object.assign(Object.assign({},a),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},gt={passive:!0};var vt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,i=r.resize,a=void 0===i||i,l=We(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach((function(e){e.addEventListener("scroll",n.update,gt)})),a&&l.addEventListener("resize",n.update,gt),function(){s&&u.forEach((function(e){e.removeEventListener("scroll",n.update,gt)})),a&&l.removeEventListener("resize",n.update,gt)}},data:{}},jt={left:"right",right:"left",bottom:"top",top:"bottom"};function _t(e){return e.replace(/left|right|bottom|top/g,(function(e){return jt[e]}))}var xt={start:"end",end:"start"};function wt(e){return e.replace(/start|end/g,(function(e){return xt[e]}))}function St(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Mt(e){var t=We(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ot(e){return St(Qe(e)).left+Mt(e).scrollLeft}function kt(e){var t=Je(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Et(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Xe(t))>=0?t.ownerDocument.body:Ke(t)&&kt(t)?t:e($e(t))}(e),r="body"===Xe(n),o=We(n),s=r?[o].concat(o.visualViewport||[],kt(n)?n:[]):n,i=t.concat(s);return r?i:i.concat(Et($e(s)))}function Tt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t){return"viewport"===t?Tt(function(e){var t=We(e),n=Qe(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:i+Ot(e),y:a}}(e)):Ke(t)?function(e){var t=St(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tt(function(e){var t=Qe(e),n=Mt(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-n.scrollLeft+Ot(e),a=-n.scrollTop;return"rtl"===Je(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:i,y:a}}(Qe(e)))}function Pt(e,t,n){var r="clippingParents"===t?function(e){var t=Et($e(e)),n=["absolute","fixed"].indexOf(Je(e).position)>=0&&Ke(e)?tt(e):e;return Ve(n)?t.filter((function(e){return Ve(e)&&Ge(e,n)&&"body"!==Xe(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],i=o.reduce((function(t,n){var r=Lt(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),Lt(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function At(e){return e.split("-")[1]}function Dt(e){var t,n=e.reference,r=e.element,o=e.placement,s=o?Be(o):null,i=o?At(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(s){case it:t={x:a,y:n.y-r.height};break;case at:t={x:a,y:n.y+n.height};break;case lt:t={x:n.x+n.width,y:l};break;case ut:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=s?nt(s):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=Math.floor(t[u])-Math.floor(n[c]/2-r[c]/2);break;case"end":t[u]=Math.floor(t[u])+Math.ceil(n[c]/2-r[c]/2)}}return t}function Ct(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,s=n.boundary,i=void 0===s?"clippingParents":s,a=n.rootBoundary,l=void 0===a?"viewport":a,u=n.elementContext,c=void 0===u?"popper":u,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,m=void 0===p?0:p,h=ot("number"!=typeof m?m:st(m,ct)),b="popper"===c?"reference":"popper",y=e.elements.reference,g=e.rects.popper,v=e.elements[f?b:c],j=Pt(Ve(v)?v:v.contextElement||Qe(e.elements.popper),i,l),_=St(y),x=Dt({reference:_,element:g,strategy:"absolute",placement:o}),w=Tt(Object.assign(Object.assign({},g),x)),S="popper"===c?w:_,M={top:j.top-S.top+h.top,bottom:S.bottom-j.bottom+h.bottom,left:j.left-S.left+h.left,right:S.right-j.right+h.right},O=e.modifiersData.offset;if("popper"===c&&O){var k=O[o];Object.keys(M).forEach((function(e){var t=[lt,at].indexOf(e)>=0?1:-1,n=[it,at].indexOf(e)>=0?"y":"x";M[e]+=k[n]*t}))}return M}var Ft={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=void 0===o||o,i=n.altAxis,a=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,b=t.options.placement,y=Be(b),g=l||(y===b||!m?[_t(b)]:function(e){if("auto"===Be(e))return[];var t=_t(e);return[wt(e),t,wt(t)]}(b)),v=[b].concat(g).reduce((function(e,n){return e.concat("auto"===Be(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?ft:l,c=At(r),d=c?a?dt:dt.filter((function(e){return At(e)===c})):ct,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Ct(e,{placement:n,boundary:o,rootBoundary:s,padding:i})[Be(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),j=t.rects.reference,_=t.rects.popper,x=new Map,w=!0,S=v[0],M=0;M=0,L=T?"width":"height",P=Ct(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=T?E?lt:ut:E?at:it;j[L]>_[L]&&(A=_t(A));var D=_t(A),C=[];if(s&&C.push(P[k]<=0),a&&C.push(P[A]<=0,P[D]<=0),C.every((function(e){return e}))){S=O,w=!1;break}x.set(O,C)}if(w)for(var F=function(e){var t=v.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=m?3:1;N>0;N--){if("break"===F(N))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function It(e){return[it,lt,at,ut].some((function(t){return e[t]>=0}))}var Rt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Ct(t,{elementContext:"reference"}),a=Ct(t,{altBoundary:!0}),l=Nt(i,r),u=Nt(a,o,s),c=It(l),d=It(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=void 0===o?[0,0]:o,i=ft.reduce((function(e,n){return e[n]=function(e,t,n){var r=Be(e),o=[ut,it].indexOf(r)>=0?-1:1,s="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[ut,lt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}(n,t.rects,s),e}),{}),a=i[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var zt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Dt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ht={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,i=n.altAxis,a=void 0!==i&&i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,b=Ct(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Be(t.placement),g=At(t.placement),v=!g,j=nt(y),_="x"===j?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,M="function"==typeof h?h(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):h,O={x:0,y:0};if(x){if(s){var k="y"===j?it:ut,E="y"===j?at:lt,T="y"===j?"height":"width",L=x[j],P=x[j]+b[k],A=x[j]-b[E],D=p?-S[T]/2:0,C="start"===g?w[T]:S[T],F="start"===g?-S[T]:-w[T],N=t.elements.arrow,I=p&&N?qe(N):{width:0,height:0},R=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=R[k],z=R[E],H=rt(0,w[T],I[T]),U=v?w[T]/2-D-H-Y-M:C-H-Y-M,B=v?-w[T]/2+D+H+z+M:F+H+z+M,q=t.elements.arrow&&tt(t.elements.arrow),W=q?"y"===j?q.clientTop||0:q.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][j]:0,K=x[j]+U-V-W,G=x[j]+B-V,X=rt(p?Math.min(P,K):P,L,p?Math.max(A,G):A);x[j]=X,O[j]=X-L}if(a){var J="x"===j?it:ut,Z="x"===j?at:lt,Q=x[_],$=rt(Q+b[J],Q,Q-b[Z]);x[_]=$,O[_]=$-Q}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Ut(e,t,n){void 0===n&&(n=!1);var r,o,s=Qe(t),i=St(e),a=Ke(t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Xe(t)||kt(s))&&(l=(r=t)!==We(r)&&Ke(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Mt(r)),Ke(t)?((u=St(t)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Ot(s))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function Bt(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var qt={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n *":c,f=e.focusFirstItemOnShow,p=e.children,m=de(),h=re(l,a,u),b=h[0],y=h[1],g=Ye(),v=g[0],j=g[1],_=Object(s.useRef)(null),x=_.current,w=Object(s.useCallback)((function(e){_.current=e,m()}),[m]),S=(t=b,n=Object(s.useRef)(null),Object(s.useEffect)((function(){n.current=t})),n.current),M=Object(s.useRef)(null),O=Object(s.useRef)(!1),k=Object(s.useCallback)((function(e){y(!b,e)}),[y,b]),E=Object(s.useMemo)((function(){return{toggle:k,drop:r,show:b,alignEnd:o,menuElement:x,toggleElement:v,setMenu:w,setToggle:j}}),[k,r,b,o,x,v,w,j]);x&&S&&!b&&(O.current=x.contains(document.activeElement));var T=we((function(){v&&v.focus&&v.focus()})),L=we((function(){var e=M.current,t=f;if(null==t&&(t=!(!_.current||!function(e,t){if(!Ie){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;Ie=function(e,t){return r.call(e,t)}}return Ie(e,t)}(_.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=ce(_.current,d)[0];n&&n.focus&&n.focus()}}));Object(s.useEffect)((function(){b?L():O.current&&(O.current=!1,T())}),[b,O,T,L]),Object(s.useEffect)((function(){M.current=null}));var P=function(e,t){if(!_.current)return null;var n=ce(_.current,d),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return i.a.createElement(ze.Provider,{value:E},p({props:{onKeyDown:function(e){var t=e.key,n=e.target;if(!/input|textarea/i.test(n.tagName)||!(" "===t||"Escape"!==t&&_.current&&_.current.contains(n)))switch(M.current=e.type,t){case"ArrowUp":var r=P(n,-1);return r&&r.focus&&r.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),b){var o=P(n,1);o&&o.focus&&o.focus()}else k(e);return;case"Escape":case"Tab":y(!1,e)}}}}))}kn.displayName="ReactOverlaysDropdown",kn.propTypes=On,kn.Menu=jn,kn.Toggle=Mn;var En=kn,Tn={as:E,disabled:!1},Ln=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.eventKey,l=e.disabled,u=e.href,c=e.onClick,d=e.onSelect,f=e.active,p=e.as,m=Object(j.a)(e,["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"]),h=S(n,"dropdown-item"),b=Object(s.useContext)(ge),y=(Object(s.useContext)(he)||{}).activeKey,g=ye(a||null,u),_=null==f&&null!=g?ye(y)===g:f,w=we((function(e){l||(c&&c(e),b&&b(g,e),d&&d(g,e))}));return i.a.createElement(p,Object(v.a)({},m,{ref:t,href:u,disabled:l,className:x()(r,h,_&&"active",l&&"disabled"),onClick:w}),o)}));Ln.displayName="DropdownItem",Ln.defaultProps=Tn;var Pn=Ln,An=i.a.createContext(null);An.displayName="NavbarContext";var Dn=An;function Cn(e,t){return e}var Fn=n("./node_modules/react-bootstrap-v1/node_modules/dom-helpers/esm/hasClass.js");function Nn(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function In(){var e=Object(s.useRef)(null),t=Object(s.useRef)(null);return[Object(s.useCallback)((function(n){n&&(Object(Fn.a)(n,"popover")||Object(Fn.a)(n,"dropdown-menu"))&&(t.current=Nn(n),n.style.margin="0",e.current=n)}),[]),[Object(s.useMemo)((function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,o=r.top,s=r.left,i=r.bottom,a=r.right;switch(n.split("-")[0]){case"top":return[0,i];case"left":return[0,a];case"bottom":return[0,o];case"right":return[0,s];default:return[0,0]}}}}}),[t]),Object(s.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",requiresIfExists:["arrow"],effect:function(t){var n=t.state;if(e.current&&n.elements.arrow&&Object(Fn.a)(e.current,"popover")&&n.modifiersData["arrow#persistent"]){var r=Nn(n.elements.arrow),o=r.top,s=r.right,i=o||s;return n.modifiersData["arrow#persistent"].padding={top:i,left:i,right:i,bottom:i},n.elements.arrow.style.margin="0",function(){n.elements.arrow&&(n.elements.arrow.style.margin="")}}}}}),[])]]}var Rn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.alignRight,a=e.rootCloseEvent,l=e.flip,u=e.show,c=e.renderOnMount,d=e.as,f=void 0===d?"div":d,p=e.popperConfig,m=Object(j.a)(e,["bsPrefix","className","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"]),h=Object(s.useContext)(Dn),b=S(n,"dropdown-menu"),y=In(),g=y[0],_=y[1],w=yn({flip:l,rootCloseEvent:a,show:u,alignEnd:o,usePopper:!h,popperConfig:Object(v.a)({},p,{modifiers:_.concat((null==p?void 0:p.modifiers)||[])})}),M=w.hasShown,O=w.placement,k=w.show,E=w.alignEnd,T=w.close,L=w.props;return L.ref=pe(g,pe(Cn(t),L.ref)),M||c?("string"!=typeof f&&(L.show=k,L.close=T,L.alignRight=E),O&&(m.style=Object(v.a)({},m.style,{},L.style),m["x-placement"]=O),i.a.createElement(f,Object(v.a)({},m,L,{className:x()(r,b,k&&"show",E&&b+"-right")}))):null}));Rn.displayName="DropdownMenu",Rn.defaultProps={alignRight:!1,flip:!0};var Yn=Rn,zn=(n("./node_modules/prop-types-extra/lib/isRequiredForA11y.js"),i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.split,o=e.className,s=e.children,a=e.childBsPrefix,l=e.as,u=void 0===l?L:l,c=Object(j.a)(e,["bsPrefix","split","className","children","childBsPrefix","as"]),d=S(n,"dropdown-toggle");void 0!==a&&(c.bsPrefix=a);var f=xn(),p=f[0],m=f[1].toggle;return p.ref=pe(p.ref,Cn(t)),i.a.createElement(u,Object(v.a)({onClick:m,className:x()(o,d,r&&d+"-split")},p,c),s)})));zn.displayName="DropdownToggle";var Hn=zn,Un=Y("dropdown-header",{defaultProps:{role:"heading"}}),Bn=Y("dropdown-divider",{defaultProps:{role:"separator"}}),qn=Y("dropdown-item-text",{Component:"span"}),Wn=i.a.forwardRef((function(e,t){var n=oe(e,{show:"onToggle"}),r=n.bsPrefix,o=n.drop,a=n.show,l=n.className,u=n.alignRight,c=n.onSelect,d=n.onToggle,f=n.focusFirstItemOnShow,p=n.as,m=void 0===p?"div":p,h=(n.navbar,Object(j.a)(n,["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"])),b=Object(s.useContext)(ge),y=S(r,"dropdown"),g=we((function(e,t,n){void 0===n&&(n=t.type),t.currentTarget===document&&(n="rootClose"),d&&d(e,t,{source:n})})),_=we((function(e,t){b&&b(e,t),c&&c(e,t),g(!1,t,"select")}));return i.a.createElement(ge.Provider,{value:_},i.a.createElement(En,{drop:o,show:a,alignEnd:u,onToggle:g,focusFirstItemOnShow:f,itemSelector:"."+y+"-item:not(.disabled):not(:disabled)"},(function(e){var n=e.props;return i.a.createElement(m,Object(v.a)({},h,n,{ref:t,className:x()(l,a&&"show",(!o||"down"===o)&&y,"up"===o&&"dropup","right"===o&&"dropright","left"===o&&"dropleft")}))})))}));Wn.displayName="Dropdown",Wn.defaultProps={navbar:!1},Wn.Divider=Bn,Wn.Header=Un,Wn.Item=Pn,Wn.ItemText=qn,Wn.Menu=Yn,Wn.Toggle=Hn;var Vn=Wn,Kn=i.a.createContext(null);Kn.displayName="CardContext";var Gn=Kn,Xn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,s=e.as,a=void 0===s?"div":s,l=Object(j.a)(e,["bsPrefix","className","children","as"]);return n=S(n,"nav-item"),i.a.createElement(a,Object(v.a)({},l,{ref:t,className:x()(r,n)}),o)}));Xn.displayName="NavItem";var Jn=Xn,Zn={disabled:!1,as:E},Qn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.disabled,o=e.className,s=e.href,a=e.eventKey,l=e.onSelect,u=e.as,c=Object(j.a)(e,["bsPrefix","disabled","className","href","eventKey","onSelect","as"]);return n=S(n,"nav-link"),i.a.createElement(Me,Object(v.a)({},c,{href:s,ref:t,eventKey:a,as:u,disabled:r,onSelect:l,className:x()(o,n,r&&"disabled")}))}));Qn.displayName="NavLink",Qn.defaultProps=Zn;var $n=Qn,er=i.a.forwardRef((function(e,t){var n,r,o,a=oe(e,{activeKey:"onSelect"}),l=a.as,u=void 0===l?"div":l,c=a.bsPrefix,d=a.variant,f=a.fill,p=a.justify,m=a.navbar,h=a.className,b=a.children,y=a.activeKey,g=Object(j.a)(a,["as","bsPrefix","variant","fill","justify","navbar","className","children","activeKey"]),_=S(c,"nav"),w=!1,M=Object(s.useContext)(Dn),O=Object(s.useContext)(Gn);return M?(r=M.bsPrefix,w=null==m||m):O&&(o=O.cardHeaderBsPrefix),i.a.createElement(_e,Object(v.a)({as:u,ref:t,activeKey:y,className:x()(h,(n={},n[_]=!w,n[r+"-nav"]=w,n[o+"-"+d]=!!o,n[_+"-"+d]=!!d,n[_+"-fill"]=f,n[_+"-justified"]=p,n))},g),b)}));er.displayName="Nav",er.defaultProps={justify:!1,fill:!1},er.Item=Jn,er.Link=$n;var tr=er,nr=n("./MapStore2/web/client/components/I18N/Message.jsx"),rr=n("./MapStore2/node_modules/lodash/get.js"),or=n.n(rr);function sr(e,t){return 0===(null==t?void 0:t.indexOf("${"))?or()(e,t.replace(/^\$\{(.*)\}$/,"$1")):t}function ir(e,t,n){var r,o,s,i,a=n?void 0===n.authenticated?t.authenticated:n.authenticated:t.authenticated;return void 0===a||!0===a&&(null==e?void 0:e.user)&&(r=e.user,o=t.allowedGroups,i=(null==r||null===(s=r.info)||void 0===s?void 0:s.groups)||[],!o||!!i.find((function(e){return-1!==o.indexOf(e)})))||!1===a&&!(null!=e&&e.user)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u&&l),i.a.createElement("ul",{className:"gn-brand-navbar-right-side"},cr(o).reverse().filter((function(e){return ir(p,e)})).map((function(e,t){return i.a.createElement("li",{key:t},i.a.createElement(fr,{item:lr(lr({},e),{},{id:e.id||t}),state:p}))})))),l&&(c&&f=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kr(){return(kr=Object.assign||function(e){for(var t=1;t0&&i.a.createElement(Vn,{className:"gn-card-options",alignRight:!0},i.a.createElement(Vn.Toggle,{id:"gn-card-options-".concat(a.pk),variant:"default",size:"sm"},i.a.createElement(N,{name:"ellipsis-v"})),i.a.createElement(Vn.Menu,null,o.map((function(e){var t=e.label,n=e.href;return i.a.createElement(Vn.Item,{key:n,href:n},t)}))))))}));Jr.defaultProps={links:[],theme:"light",getTypesInfo:Xr.e};var Zr=Jr;function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t=368?Math.floor((l-24*u)/u):"100%",d=Math.floor(12),f=0===u||1===u;return i.a.createElement("ul",{style:f?{paddingBottom:24}:{paddingLeft:d,paddingBottom:24}},t.map((function(e,t){return i.a.createElement("li",{key:e.pk,style:f?{width:l-24,margin:d}:{width:c,marginRight:(t+1)%u==0?0:24,marginTop:24}},i.a.createElement(Zr,{active:r(e),data:e,formatHref:n,links:a}))})))})),no=Object(xr.a)((function(e){var t=e.resources,n=e.loading,r=e.page,o=e.isNextPageAvailable,a=e.onLoad,l=e.formatHref,u=e.isCardActive,c=e.containerStyle,d=e.header,f=e.cardLinks,p=e.column,m=e.isColumnActive,h=e.messageId,b=e.children,y=e.pageSize,g=e.width,v=Object(s.useRef)(),j=v.current?v.current.getBoundingClientRect().width:0,_=Object(s.useRef)({});_.current={page:r,loading:n,isNextPageAvailable:o,onLoad:a},Object(s.useEffect)((function(){function e(){(document.body.scrollTop||document.documentElement.scrollTop)+window.innerHeight>=(document.body.scrollHeight||document.documentElement.scrollHeight)-200&&!_.current.loading&&_.current.isNextPageAvailable&&_.current.onLoad(_.current.page+1)}return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]);var x=(null==t?void 0:t.length)>0;return i.a.createElement("div",{className:"gn-card-grid"},d,i.a.createElement("div",{style:$r({display:"flex"},"sm"===y&&{flexDirection:"column"})},i.a.createElement("div",{style:{flex:1}},i.a.createElement("div",{className:"gn-card-grid-container",style:c},b,h&&i.a.createElement("div",{className:"gn-card-grid-message"},i.a.createElement("h1",null,i.a.createElement(yr.a,{msgId:"gnhome.".concat(h,"Title")})),i.a.createElement("p",null,i.a.createElement(yr.a,{msgId:"gnhome.".concat(h,"Content")}))),i.a.createElement(to,{resources:t,formatHref:l,isCardActive:u,links:f,containerWidth:"md"===y&&m?g-j:void 0}),i.a.createElement("div",{className:"gn-card-grid-pagination"},n&&i.a.createElement(V,{animation:"border",role:"status"},i.a.createElement("span",{className:"sr-only"},"Loading...")),x&&!o&&!n&&i.a.createElement(N,{name:"dot-circle"})))),i.a.createElement("div",{ref:v},p)))}));no.defaultProps={page:1,resources:[],onLoad:function(){},isNextPageAvailable:!1,loading:!1,formatHref:function(){return"#"},isCardActive:function(){return!1}};var ro=no;function oo(e){var t,n,r=(t=e,(n=Object(s.useRef)(t)).current=t,n);Object(s.useEffect)((function(){return function(){return r.current()}}),[])}var so=Math.pow(2,31)-1;function io(){var e=He(),t=Object(s.useRef)();return oo((function(){return clearTimeout(t.current)})),Object(s.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=so?t.current=setTimeout(r,o):function e(t,n,r){var o=r-Date.now();t.current=o<=so?setTimeout(n,o):setTimeout((function(){return e(t,n,r)}),so)}(t,r,Date.now()+o))},clear:n}}),[])}var ao=function(e){var t;return"undefined"==typeof document?null:null==e?Object(ln.a)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function lo(e,t){var n=Object(s.useState)((function(){return ao(e)})),r=n[0],o=n[1];if(!r){var i=ao(e);i&&o(i)}return Object(s.useEffect)((function(){t&&r&&t(r)}),[t,r]),Object(s.useEffect)((function(){var t=ao(e);t!==r&&o(t)}),[e,r]),r}var uo=i.a.forwardRef((function(e,t){var n=e.flip,r=e.offset,o=e.placement,a=e.containerPadding,l=void 0===a?5:a,u=e.popperConfig,c=void 0===u?{}:u,d=e.transition,f=Ye(),p=f[0],m=f[1],h=Ye(),b=h[0],y=h[1],g=pe(m,t),_=lo(e.container),x=lo(e.target),w=Object(s.useState)(!e.show),S=w[0],M=w[1],O=Qt(x,p,hn({placement:o,enableEvents:!!e.show,containerPadding:l||5,flip:n,offset:r,arrowElement:b,popperConfig:c})),k=O.styles,E=O.attributes,T=Object(j.a)(O,["styles","attributes"]);e.show?S&&M(!1):e.transition||S||M(!0);var L=e.show||d&&!S;if(mn(p,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!L)return null;var P=e.children(Object(v.a)({},T,{show:!!e.show,props:Object(v.a)({},E.popper,{style:k.popper,ref:g}),arrowProps:Object(v.a)({},E.arrow,{style:k.arrow,ref:y})}));if(d){var A=e.onExit,D=e.onExiting,C=e.onEnter,F=e.onEntering,N=e.onEntered;P=i.a.createElement(d,{in:e.show,appear:!0,onExit:A,onExiting:D,onExited:function(){M(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:C,onEntering:F,onEntered:N},P)}return _?cn.a.createPortal(P,_):null}));uo.displayName="Overlay",uo.propTypes={show:h.a.bool,placement:h.a.oneOf(ft),target:h.a.any,container:h.a.any,flip:h.a.bool,children:h.a.func.isRequired,containerPadding:h.a.number,popperConfig:h.a.object,rootClose:h.a.bool,rootCloseEvent:h.a.oneOf(["click","mousedown"]),rootCloseDisabled:h.a.bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";if(0===e.indexOf("http"))return e;var t=y.a.parse(e),n=t.path,r=window.location,o=r.protocol,s=r.host;return"".concat(o,"://").concat(s).concat(n)}function Xo(e){var t,n=e.resource,r=e.formatHref,o=e.sectionStyle,a=e.loading,l=e.getTypesInfo,u=Object(s.useRef)(),c=Object(s.useRef)(),d=Vo(Object(s.useState)(!1),2),f=d[0],p=d[1];if(Object(s.useEffect)((function(){return c.current=!0,function(){c.current=!1}}),[]),!n&&!a)return null;var m=l(),h=n&&(m[n.doc_type]||m[n.resource_type])||{},b=h.embed,y=h.icon,g=h.name,v=b&&b.replace("{pk}",n.pk);return i.a.createElement("div",{ref:u,className:"gn-details-panel".concat(a?" loading":""),style:{width:o.width}},i.a.createElement("section",{style:o},i.a.createElement("div",{className:"gn-details-panel-header"},i.a.createElement(L,{variant:"default",href:r({pathname:"/search/"}),size:"sm"},i.a.createElement(N,{name:"times"}))),i.a.createElement("div",{className:"gn-details-panel-preview"},v?i.a.createElement("iframe",{src:v,style:{position:"absolute",width:"100%",height:"100%"},frameBorder:"0"}):i.a.createElement("div",{style:qo({position:"absolute",width:"100%",height:"100%",top:0,left:0},(null==n?void 0:n.thumbnail_url)&&{backgroundImage:"url("+n.thumbnail_url+")",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat"})}),a&&i.a.createElement("div",{className:"gn-details-panel-preview-loader",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"}},i.a.createElement(V,{animation:"border",role:"status"},i.a.createElement("span",{className:"sr-only"},"Loading resource detail...")))),i.a.createElement("div",{className:"gn-details-panel-content"},i.a.createElement("div",{className:"gn-details-panel-title"},i.a.createElement("h1",null,y&&i.a.createElement(i.a.Fragment,null,i.a.createElement(N,{name:y})),null==n?void 0:n.title),i.a.createElement("div",{className:"gn-details-panel-tools"},n&&i.a.createElement(Fo,{placement:"top",overlay:function(e){return i.a.createElement(Io,Uo({id:"share-resource-tooltip"},e),i.a.createElement(nr.default,{msgId:f?"gnhome.copiedResourceUrl":"gnhome.copyResourceUrl"}))}},i.a.createElement(Ho.a,{text:Go(n.detail_url)},i.a.createElement(L,{variant:"default",onClick:function(){p(!0),setTimeout((function(){c.current&&p(!1)}),700)}},i.a.createElement(N,{name:"share-alt"})))),(null==n?void 0:n.detail_url)&&i.a.createElement(L,{variant:"default",href:n.detail_url},i.a.createElement(nr.default,{msgId:"gnhome.view".concat(g||"")})))),i.a.createElement("p",null,(null==n?void 0:n.owner)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("a",{href:r({query:{"filter{owner.username.in}":n.owner.username}})},Object(Xr.f)(n.owner))),(null==n?void 0:n.date_type)&&(null==n?void 0:n.date)&&i.a.createElement(i.a.Fragment,null," ","/"," ",Yo()(n.date).format("MMMM Do YYYY"))),i.a.createElement("p",null,i.a.createElement("div",{className:"gn-details-panel-description"},null==n?void 0:n.abstract)),i.a.createElement("p",null,(null==n||null===(t=n.category)||void 0===t?void 0:t.identifier)&&i.a.createElement("div",null,i.a.createElement(nr.default,{msgId:"gnhome.category"}),":"," ",i.a.createElement("a",{href:r({query:{"filter{category.identifier.in}":n.category.identifier}})},n.category.identifier))))))}Xo.defaultProps={onClose:function(){},formatHref:function(){return"#"},width:696,getTypesInfo:Xr.e};var Jo=Xo;function Zo(e){var t,n,r,o=e.tabIndex,s=e.draggable,a=e.item,l=e.menuItemsProps.formatHref;return i.a.createElement(Lr,{active:!0,tabIndex:o,draggable:s,showTimesIcon:!0,href:l({query:(t={},n=a.key,r=a.value,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)})},Object(Xr.b)(a.key,a.value)||a.value)}var Qo=Object(s.forwardRef)((function(e,t){var n=e.formatHref,r=e.orderOptions,o=e.order,s=e.filters,a=e.style,l=e.onClear,u=e.defaultLabelId,c=r.find((function(e){var t=e.value;return o===t}));return i.a.createElement("div",{className:"gn-filters-menu",style:a,ref:t},i.a.createElement("div",{className:"gn-filters-menu-container"},(null==s?void 0:s.length)>0&&i.a.createElement(L,{variant:"default",size:"sm",onClick:function(){return l()}},i.a.createElement(nr.default,{msgId:"gnhome.clearFilters"})),i.a.createElement(jr.a,{handleHeight:!0},(function(e){var t=e.height;return i.a.createElement("div",{className:"gn-filters-menu-content",style:{height:t}},i.a.createElement(Er,{items:s,menuItemComponent:Zo,menuItemsProps:{formatHref:n}}))})),i.a.createElement("div",{className:"gn-filters-menu-tools"},r.length>0&&i.a.createElement(Vn,{alignRight:!0},i.a.createElement(Vn.Toggle,{id:"sort-dropdown",variant:"default",size:"sm"},i.a.createElement(nr.default,{msgId:(null==c?void 0:c.labelId)||u})),i.a.createElement(Vn.Menu,null,r.map((function(e){var t=e.labelId,r=e.value;return i.a.createElement(Vn.Item,{key:r,active:r===(null==c?void 0:c.value),href:n({query:{sort:[r]},replaceQuery:!0})},i.a.createElement(nr.default,{msgId:t}))})))))))}));Qo.defaultProps={orderOptions:[{label:"Most recent",labelId:"gnhome.mostRecent",value:"-date"},{label:"Less recent",labelId:"gnhome.lessRecent",value:"date"},{label:"A Z",labelId:"gnhome.aZ",value:"title"},{label:"Z A",labelId:"gnhome.zA",value:"-title"},{label:"Most popular",labelId:"gnhome.mostPopular",value:"popular_count"}],defaultLabelId:"gnhome.orderBy",formatHref:function(){return"#"},onClear:function(){}};var $o=Qo,es=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.className,l=e.type,u=void 0===l?"checkbox":l,c=e.isValid,d=void 0!==c&&c,f=e.isInvalid,p=void 0!==f&&f,m=e.isStatic,h=e.as,b=void 0===h?"input":h,y=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"]),g=Object(s.useContext)(Q),_=g.controlId,w=g.custom?[o,"custom-control-input"]:[r,"form-check-input"];return r=S(w[0],w[1]),i.a.createElement(b,Object(v.a)({},y,{ref:t,type:u,id:n||_,className:x()(a,r,d&&"is-valid",p&&"is-invalid",m&&"position-static")}))}));es.displayName="FormCheckInput";var ts=es,ns=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,o=e.className,a=e.htmlFor,l=Object(j.a)(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),u=Object(s.useContext)(Q),c=u.controlId,d=u.custom?[r,"custom-control-label"]:[n,"form-check-label"];return n=S(d[0],d[1]),i.a.createElement("label",Object(v.a)({},l,{ref:t,htmlFor:a||c,className:x()(o,n)}))}));ns.displayName="FormCheckLabel";var rs=ns,os=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.inline,l=void 0!==a&&a,u=e.disabled,c=void 0!==u&&u,d=e.isValid,f=void 0!==d&&d,p=e.isInvalid,m=void 0!==p&&p,h=e.feedbackTooltip,b=void 0!==h&&h,y=e.feedback,g=e.className,_=e.style,w=e.title,M=void 0===w?"":w,O=e.type,k=void 0===O?"checkbox":O,E=e.label,T=e.children,L=e.custom,P=e.as,A=void 0===P?"input":P,D=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"]),C="switch"===k||L,F=C?[o,"custom-control"]:[r,"form-check"];r=S(F[0],F[1]);var N=Object(s.useContext)(Q).controlId,I=Object(s.useMemo)((function(){return{controlId:n||N,custom:C}}),[N,C,n]),R=null!=E&&!1!==E&&!T,Y=i.a.createElement(ts,Object(v.a)({},D,{type:"switch"===k?"checkbox":k,ref:t,isValid:f,isInvalid:m,isStatic:!R,disabled:c,as:A}));return i.a.createElement(Q.Provider,{value:I},i.a.createElement("div",{style:_,className:x()(g,r,C&&"custom-"+k,l&&r+"-inline")},T||i.a.createElement(i.a.Fragment,null,Y,R&&i.a.createElement(rs,{title:M},E),(f||m)&&i.a.createElement(Z,{type:f?"valid":"invalid",tooltip:b},y))))}));os.displayName="FormCheck",os.Input=ts,os.Label=rs;var ss=os,is=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.className,l=e.isValid,u=e.isInvalid,c=e.lang,d=e.as,f=void 0===d?"input":d,p=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"]),m=Object(s.useContext)(Q),h=m.controlId,b=m.custom?[o,"custom-file-input"]:[r,"form-control-file"];return r=S(b[0],b[1]),i.a.createElement(f,Object(v.a)({},p,{ref:t,id:n||h,type:"file",lang:c,className:x()(a,r,l&&"is-valid",u&&"is-invalid")}))}));is.displayName="FormFileInput";var as=is,ls=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,o=e.className,a=e.htmlFor,l=Object(j.a)(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),u=Object(s.useContext)(Q),c=u.controlId,d=u.custom?[r,"custom-file-label"]:[n,"form-file-label"];return n=S(d[0],d[1]),i.a.createElement("label",Object(v.a)({},l,{ref:t,htmlFor:a||c,className:x()(o,n),"data-browse":l["data-browse"]}))}));ls.displayName="FormFileLabel";var us=ls,cs=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.disabled,l=void 0!==a&&a,u=e.isValid,c=void 0!==u&&u,d=e.isInvalid,f=void 0!==d&&d,p=e.feedbackTooltip,m=void 0!==p&&p,h=e.feedback,b=e.className,y=e.style,g=e.label,_=e.children,w=e.custom,M=e.lang,O=e["data-browse"],k=e.as,E=void 0===k?"div":k,T=e.inputAs,L=void 0===T?"input":T,P=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"]),A=w?[o,"custom"]:[r,"form-file"];r=S(A[0],A[1]);var D=Object(s.useContext)(Q).controlId,C=Object(s.useMemo)((function(){return{controlId:n||D,custom:w}}),[D,w,n]),F=null!=g&&!1!==g&&!_,N=i.a.createElement(as,Object(v.a)({},P,{ref:t,isValid:c,isInvalid:f,disabled:l,as:L,lang:M}));return i.a.createElement(Q.Provider,{value:C},i.a.createElement(E,{style:y,className:x()(b,r,w&&"custom-file")},_||i.a.createElement(i.a.Fragment,null,w?i.a.createElement(i.a.Fragment,null,N,F&&i.a.createElement(us,{"data-browse":O},g)):i.a.createElement(i.a.Fragment,null,F&&i.a.createElement(us,null,g),N),(c||f)&&i.a.createElement(Z,{type:c?"valid":"invalid",tooltip:m},h))))}));cs.displayName="FormFile",cs.Input=as,cs.Label=us;var ds=cs,fs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.controlId,l=e.as,u=void 0===l?"div":l,c=Object(j.a)(e,["bsPrefix","className","children","controlId","as"]);n=S(n,"form-group");var d=Object(s.useMemo)((function(){return{controlId:a}}),[a]);return i.a.createElement(Q.Provider,{value:d},i.a.createElement(u,Object(v.a)({},c,{ref:t,className:x()(r,n)}),o))}));fs.displayName="FormGroup";var ps=fs,ms=["xl","lg","md","sm","xs"],hs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,s=void 0===o?"div":o,a=Object(j.a)(e,["bsPrefix","className","as"]),l=S(n,"col"),u=[],c=[];return ms.forEach((function(e){var t,n,r,o=a[e];if(delete a[e],"object"==typeof o&&null!=o){var s=o.span;t=void 0===s||s,n=o.offset,r=o.order}else t=o;var i="xs"!==e?"-"+e:"";t&&u.push(!0===t?""+l+i:""+l+i+"-"+t),null!=r&&c.push("order"+i+"-"+r),null!=n&&c.push("offset"+i+"-"+n)})),u.length||u.push(l),i.a.createElement(s,Object(v.a)({},a,{ref:t,className:x.a.apply(void 0,[r].concat(u,c))}))}));hs.displayName="Col";var bs=hs,ys=i.a.forwardRef((function(e,t){var n=e.as,r=void 0===n?"label":n,o=e.bsPrefix,a=e.column,l=e.srOnly,u=e.className,c=e.htmlFor,d=Object(j.a)(e,["as","bsPrefix","column","srOnly","className","htmlFor"]),f=Object(s.useContext)(Q).controlId;o=S(o,"form-label");var p="col-form-label";"string"==typeof a&&(p=p+"-"+a);var m=x()(u,o,l&&"sr-only",a&&p);return c=c||f,a?i.a.createElement(bs,Object(v.a)({as:"label",className:m,htmlFor:c},d)):i.a.createElement(r,Object(v.a)({ref:t,className:m,htmlFor:c},d))}));ys.displayName="FormLabel",ys.defaultProps={column:!1,srOnly:!1};var gs=ys,vs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,s=void 0===o?"small":o,a=e.muted,l=Object(j.a)(e,["bsPrefix","className","as","muted"]);return n=S(n,"form-text"),i.a.createElement(s,Object(v.a)({},l,{ref:t,className:x()(r,n,a&&"text-muted")}))}));vs.displayName="FormText";var js=vs,_s=i.a.forwardRef((function(e,t){return i.a.createElement(ss,Object(v.a)({},e,{ref:t,type:"switch"}))}));_s.displayName="Switch",_s.Input=ss.Input,_s.Label=ss.Label;var xs=_s,ws=Y("form-row"),Ss=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.inline,o=e.className,s=e.validated,a=e.as,l=void 0===a?"form":a,u=Object(j.a)(e,["bsPrefix","inline","className","validated","as"]);return n=S(n,"form"),i.a.createElement(l,Object(v.a)({},u,{ref:t,className:x()(o,s&&"was-validated",r&&n+"-inline")}))}));Ss.displayName="Form",Ss.defaultProps={inline:!1},Ss.Row=ws,Ss.Group=ps,Ss.Control=ee,Ss.Check=ss,Ss.File=ds,Ss.Switch=xs,Ss.Label=gs,Ss.Text=js;var Ms=Ss,Os=n("./node_modules/react-select/dist/react-select.es.js"),ks=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js"),Es=n("./MapStore2/web/client/components/map/BaseMap.jsx"),Ts=n("./MapStore2/web/client/components/map/enhancers/mapType.js"),Ls=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),Ps=n("./MapStore2/node_modules/lodash/isNil.js"),As=n.n(Ps),Ds=n("./MapStore2/node_modules/lodash/join.js"),Cs=n.n(Ds);function Fs(e){return function(e){if(Array.isArray(e))return Rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Is(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 Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||Is(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 Is(e,t){if(e){if("string"==typeof e)return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rs(e,t):void 0}}function Rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i.a.createElement(bs,{ref:b},l.map((function(e){var t=e.id,r=e.labelId,o=e.label,s=e.placeholderId,a=e.description,l=e.options,u=e.suggestionsRequestKey,c="".concat(n,"-").concat(t||u),d=u?f[u].filterKey:"filter{".concat(t,".in}"),p=u?m[f[u].filterKey]||[]:m[d]||[],b=u?{loadOptions:f[u].loadOptions}:{options:l.map((function(e){return{value:e,label:e}}))},g=u?ti:ei;return i.a.createElement(Ms.Group,{key:c,controlId:c},i.a.createElement(Ms.Label,null,i.a.createElement("strong",null,r?i.a.createElement(nr.default,{msgId:r}):o)),i.a.createElement(g,Gs({value:p.map((function(e){return{value:e,label:Object(Xr.b)(d,e)||e}})),multi:!0,placeholder:s,onChange:function(e){h(Js(Js({},y.current.values),{},Zs({},d,e.map((function(e){return e.value})))))}},b)),a&&i.a.createElement(Ms.Text,{className:"text-muted"},a))}))),i.a.createElement(bs,{style:{height:(null===(t=b.current)||void 0===t?void 0:t.clientHeight)||400}},i.a.createElement(Ks,{id:n,extent:m.extent,queryExtent:a.extent,layers:null==d?void 0:d.layers,vectorLayerStyle:null==d?void 0:d.style,onChange:function(e){var t=e.extent;return h(Js(Js({},m),{},{extent:t}))}})))),i.a.createElement("div",{className:"gn-filter-form-footer"},i.a.createElement(L,{variant:"default",onClick:function(){u(m)}},i.a.createElement(nr.default,{msgId:"gnhome.apply"})),i.a.createElement(L,{variant:"default",onClick:function(){var e=Object.keys(m).reduce((function(e,t){return Js(Js({},e),{},Zs({},t,"extent"===t?void 0:[]))}),{});h(e),u(e)}},i.a.createElement(nr.default,{msgId:"gnhome.clearFilters"})))):null}ni.defaultProps={fields:[],onChange:function(){},suggestionsRequestTypes:{}};var ri=ni,oi=Object(s.forwardRef)((function(e,t){var n=e.style,r=e.value,o=e.onSelect,s=e.inline,a=Object(d.g)(),l=a?Object.keys(a):[],u=l.map((function(e){return{key:e,value:a[e].code,label:a[e].description}})),c=l.find((function(e){return a[e].code===r})),f=(null==a?void 0:a[c])||{};return i.a.createElement("div",{ref:t,className:"gn-language-selector",style:n},s?u.map((function(e){return i.a.createElement(L,{active:e.value===r,key:e.key,variant:"default",onClick:function(){return o(e.value)}},e.key)})):i.a.createElement(Vn,{alignRight:!0},i.a.createElement(Vn.Toggle,{id:"language-selector",variant:"default",size:"sm"},f.description||i.a.createElement(nr.default,{msgId:"gnhome.language"})),i.a.createElement(Vn.Menu,null,u.map((function(e){return i.a.createElement(Vn.Item,{active:e.value===r,key:e.key,onClick:function(){return o(e.value)}},e.label)})))))}));oi.propTypes={style:h.a.object,value:h.a.string,inline:h.a.bool},oi.defaultProps={value:"",inline:!1};var si=oi,ii="GEONODE_SEARCH:UPDATE_SUGGESTIONS",ai="GEONODE_SEARCH:LOADING_SUGGESTIONS",li="GEONODE_SEARCH:SEARCH_RESOURCES",ui="GEONODE_SEARCH:UPDATE_RESOURCES",ci="GEONODE_SEARCH:LOADING_RESOURCES";function di(e){return{type:"GEONODE_SEARCH:FETCH_SUGGESTIONS",text:e}}function fi(e){return{type:ii,suggestions:e}}function pi(e){return{type:ai,loading:e}}function mi(e,t){return{type:li,params:e,pathname:t}}function hi(e,t){return{type:ui,resources:e,reset:t}}function bi(e){return{type:ci,loading:e}}function yi(e,t){return{type:"GEONODE_SEARCH:REQUEST_RESOURCE",pk:e,ctype:t}}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ni=[],Ii=[],Ri=Object(u.connect)(Object(g.a)([C.b],(function(e){return{value:e}})),{onSelect:D.c.bind(null,null)})(si),Yi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.suggestions)||Ni},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.loading)||!1}],(function(e,t){return{suggestions:e,loading:t}})),{onFetchSuggestions:di,onClearSuggestions:fi.bind(null,[])})(Re),zi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.resources)||Ii},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.loading)||!1},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.isNextPageAvailable)||!1},function(e){var t;return null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.isFirstRequest}],(function(e,t,n,r){return{resources:e,loading:t,isNextPageAvailable:n,isFirstRequest:r}})))((function(e){var t,n=e.query,r=e.user,o=e.isFirstRequest,s=Fi(e,["query","user","isFirstRequest"]),a=(null===(t=s.resources)||void 0===t?void 0:t.length)>0,l=Object.keys(n||{}).filter((function(e){return"sort"!==e})).length>0,u=!!r,c=a||o||s.loading?void 0:(l?"noResultsWithFilter":u&&"noContentYet")||"noPublicContent";return i.a.createElement(ro,Ci({},s,{messageId:c}))})),Hi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnresource)||void 0===t?void 0:t.loading)||!1}],(function(e){return{loading:e}})))(Jo),Ui={resourceTypes:{filterKey:"filter{resource_type.in}",loadOptions:function(e,t){return Object(Oi.h)(Ai(Ai({},t),{},{q:e}),"filter{resource_type.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},categories:{filterKey:"filter{category.identifier.in}",loadOptions:function(e,t){return Object(Mi.b)(Ai(Ai({},t),{},{q:e}),"filter{category.identifier.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},keywords:{filterKey:"filter{keywords.slug.in}",loadOptions:function(e,t){return Object(Mi.c)(Ai(Ai({},t),{},{q:e}),"filter{keywords.slug.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},regions:{filterKey:"filter{regions.name.in}",loadOptions:function(e,t){return Object(Mi.e)(Ai(Ai({},t),{},{q:e}),"filter{regions.name.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},owners:{filterKey:"filter{owner.username.in}",loadOptions:function(e,t){return Object(Mi.d)(Ai(Ai({},t),{},{q:e}),"filter{owner.username.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}}};function Bi(e){var t,n,r,o,a,l,u,c,d=e.location,f=e.theme,p=e.params,m=e.onSearch,h=e.menu,b=e.navbar,g=e.footer,v=e.hideHero,j=e.onSelect,_=e.match,x=e.filters,w=e.user,S=e.width,M=e.resource,O=function(e){return e<968?"sm":e<1400?"md":"lg"}(S),k=Object(s.useRef)();Object(s.useEffect)((function(){return k.current=!0,function(){k.current=!1}}),[]);var E=Object(s.useRef)(),T=Object(s.useRef)(),P=Object(s.useRef)(),D=Object(s.useRef)(),C=Ei(Object(Si.b)(),2),F=C[0],I=C[1],R={brandNavbarHeight:E.current?E.current.getBoundingClientRect().height:0,menuIndexNodeHeight:T.current?T.current.getBoundingClientRect().height:0,filtersMenuNodeHeight:P.current?P.current.getBoundingClientRect().height:0,footerNodeHeight:D.current?D.current.getBoundingClientRect().height:0},Y=Ei(Object(s.useState)(!1),2),z=Y[0],H=Y[1];function U(e,t){var n=y.a.parse(d.search,!0).query;m(Ai(Ai(Ai({},n),p),e),t)}function B(e){return Object(Xr.g)(Ai({location:d},e))}var q=y.a.parse(d.search,!0).query,W=Object.keys(q).reduce((function(e,t){return 0===t.indexOf("filter")?[].concat(ki(e),ki(A()(q[t]).map((function(e){return{key:t,value:e}})))):e}),[]),V=_.params.pk,K=_.params.ctype;Object(s.useEffect)((function(){j(V,K)}),[V,K]);var G=Ei(Object(s.useState)(0),2),X=G[0],J=G[1],Z=Object(s.useRef)(!1);Z.current={query:q},Object(s.useEffect)((function(){var e=Object.keys(Ui).map((function(e){return Ui[e]})),t=Object.keys(Z.current.query),n=[];t.forEach((function(t){var r=e.find((function(e){var n=e.filterKey;return t===n}));if(r){var o=A()(Z.current.query[t]).filter((function(e){return!Object(Xr.a)(t,e)}));if((null==o?void 0:o.length)>0){var s=r.loadOptions.bind(null,"",{idIn:o});n.push(s)}}})),Promise.all(n.map((function(e){return e()}))).then((function(){k.current&&J(X+1)}))}),[]);var Q=i.a.createElement(Yi,{key:"search",value:p.q||"",disableSuggestions:z,style:{width:"100%",maxWidth:716,margin:"auto"},onChange:function(e){return U({q:e},"/search/")},append:"sm"!==O&&i.a.createElement(L,{variant:"default",onClick:function(){return H(!z)}},i.a.createElement(N,{name:"filter"}))},"sm"!==O&&i.a.createElement(ri,{id:"gn-filter-form",query:q,show:z,onClose:function(){return H(!1)},fields:null==x||null===(t=x.fields)||void 0===t?void 0:t.options,extentProps:null==x?void 0:x.extent,onChange:U,suggestionsRequestTypes:Ui})),$=!v&&I;return i.a.createElement("div",{className:"gn-home gn-theme-".concat((null==f?void 0:f.variant)||"light")},i.a.createElement(mr,{ref:E,logo:A()((null==b?void 0:b.logo)||[]).map((function(e){return Ai(Ai({},e),e[O])})),navItems:null==b?void 0:b.items,inline:"sm"!==O,pageSize:O,user:w,style:Ai(Ai({},null==f||null===(n=f.navbar)||void 0===n?void 0:n.style),{},{width:S})},!$&&Q),!v&&i.a.createElement(vr,{style:Ai({marginTop:R.brandNavbarHeight},null==f||null===(r=f.hero)||void 0===r?void 0:r.style),jumbotronStyle:null==f||null===(o=f.jumbotron)||void 0===o?void 0:o.style},i.a.createElement("div",{ref:F},$&&Q)),i.a.createElement(Dr,{ref:T,style:{top:R.brandNavbarHeight,width:S},user:w,query:q,menuItems:null==h?void 0:h.items,formatHref:B,tools:i.a.createElement(Ri,{inline:null==f||null===(a=f.languageSelector)||void 0===a?void 0:a.inline,style:null==f||null===(l=f.languageSelector)||void 0===l?void 0:l.style})}),i.a.createElement(zi,{user:w,query:q,pageSize:O,isColumnActive:!!M,containerStyle:$?void 0:{marginTop:R.brandNavbarHeight,minHeight:"calc(100vh - ".concat(R.brandNavbarHeight+R.menuIndexNodeHeight+R.footerNodeHeight,"px )"),paddingBottom:R.footerNodeHeight},column:i.a.createElement(Hi,{resource:M,filters:W,formatHref:B,sectionStyle:Ai({width:"lg"===O?700:"md"===O?600:"100%"},!$&&{position:"fixed",top:R.brandNavbarHeight+R.menuIndexNodeHeight,bottom:R.footerNodeHeight,overflowY:"scroll",height:"auto"})}),isCardActive:function(e){return e.pk===V},page:p.page?parseFloat(p.page):1,formatHref:B,onLoad:function(e){U({page:e})}},i.a.createElement($o,{ref:P,style:{top:R.brandNavbarHeight+R.menuIndexNodeHeight},formatHref:B,order:null==q?void 0:q.sort,filters:W,onClear:function(){var e=y.a.parse(d.search,!0).query;U(Object.keys(e).reduce((function(e,t){return 0===t.indexOf("filter")?Ai(Ai({},e),{},Di({},t,[])):e}),{extent:void 0}))},orderOptions:null==x||null===(u=x.order)||void 0===u?void 0:u.options,defaultLabelId:null==x||null===(c=x.order)||void 0===c?void 0:c.defaultLabelId})),i.a.createElement(wi,{ref:D,footerItems:g.items}))}Bi.propTypes={dispatch:h.a.func,history:h.a.object,location:h.a.object,match:h.a.object,plugins:h.a.object,pluginsConfig:h.a.array,background:h.a.object,logo:h.a.array,jumbotron:h.a.object},Bi.defaultProps={background:{},logo:[],jumbotron:{}};var qi={},Wi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.params)||qi},function(e){var t;return(null==e||null===(t=e.security)||void 0===t?void 0:t.user)||null},function(e){var t;return(null==e||null===(t=e.gnresource)||void 0===t?void 0:t.data)||null}],(function(e,t,n){return{params:e,user:t,resource:n}})),{onSearch:mi,onSelect:yi})(Object(xr.a)(Bi));function Vi(e){return function(e){if(Array.isArray(e))return Ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(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 Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{resources:[],params:{},previousParams:{},isFirstRequest:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ii:return Xi(Xi({},e),{},{suggestions:t.suggestions});case ai:return Xi(Xi({},e),{},{loading:t.loading});case li:return Xi(Xi({},e),{},{nextParams:t.params});case ui:return Xi(Xi({},e),{},{isFirstRequest:!1,resources:t.reset?Vi(t.resources):[].concat(Vi(e.resources),Vi(t.resources))});case"GEONODE_SEARCH:UPDATE_RESOURCES_METADATA":return Xi(Xi(Xi(Xi({},e),{},{isNextPageAvailable:t.metadata.isNextPageAvailable},t.metadata.params&&{params:t.metadata.params,previousParams:e.params,nextParams:null}),!As()(t.metadata.locationSearch)&&{locationSearch:t.metadata.locationSearch}),!As()(t.metadata.locationPathname)&&{locationPathname:t.metadata.locationPathname});case ci:return Xi(Xi({},e),{},{loading:t.loading});default:return e}},Qi=n("./js/reducers/gnresource.js"),$i=n("./node_modules/rxjs/Rx.js"),ea=n("./MapStore2/node_modules/lodash/isEqual.js"),ta=n.n(ea),na=n("./MapStore2/node_modules/lodash/isArray.js"),ra=n.n(na),oa=n("./js/actions/gnresource.js"),sa=n("./node_modules/connected-react-router/esm/actions.js");function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aa(e,t)}(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 aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=y.a.parse(e||"",!0),o=r.query,s=(o.page,la(o,["page"])),i=fa(ca(ca({},t),s)),a=i.page,l=la(i,["page"]);return[l,a?parseFloat(a):n]},ma=function(e){var t=e.params,n=e.pageSize,r=e.reset,o=e.location;return $i.Observable.defer((function(){return Object(Oi.i)(ca(ca({},t),{},{pageSize:n}))})).switchMap((function(e){var n=e.resources,s=e.isNextPageAvailable;return $i.Observable.of(hi(n,r),{type:"GEONODE_SEARCH:UPDATE_RESOURCES_METADATA",metadata:{isNextPageAvailable:s,params:t,locationSearch:o.search,locationPathname:o.pathname}},bi(!1))})).startWith(fi([]),bi(!0))},ha={gnsFetchSuggestionsEpic:function(e){return e.ofType("GEONODE_SEARCH:FETCH_SUGGESTIONS").debounceTime(300).switchMap((function(e){var t=e.text;return $i.Observable.defer((function(){return Object(Mi.a)({q:t})})).switchMap((function(e){var t=e.suggestions;return $i.Observable.of(fi(t),pi(!1))})).startWith(pi(!0))}))},gnsSearchResourcesEpic:function(e,t){return e.ofType(li).switchMap((function(e){var n,r,o=e.pathname,s=e.params,i=t.getState(),a=fa(null==i||null===(n=i.gnsearch)||void 0===n?void 0:n.params),l=fa(s),u=Object(Xr.d)(),c=Object.keys(a).reduce((function(e,t){return-1===u.indexOf(t)?ca(ca({},e),{},da({},t,a[t])):e}),{}),d=Object.keys(l).reduce((function(e,t){return-1===u.indexOf(t)?ca(ca({},e),{},da({},t,l[t])):e}),{});if(!ta()(c,d)){var f,p,m=-1!==(null===(f=i.router)||void 0===f||null===(p=f.location)||void 0===p?void 0:p.pathname.indexOf(o));return $i.Observable.of(Object(sa.d)(ca(ca({},o&&!m&&{pathname:o}),{},{search:y.a.format({query:d})})))}return ta()(a,l)?$i.Observable.empty():$i.Observable.of({type:"GEONODE_SEARCH:UPDATE_RESOURCES_REQUEST",payload:{action:"PUSH",params:l,location:null==i||null===(r=i.router)||void 0===r?void 0:r.location}})}))},gnsSearchResourcesOnLocationChangeEpic:function(e,t){return e.ofType(sa.b,"GEONODE_SEARCH:UPDATE_RESOURCES_REQUEST").filter((function(e){var t=e.payload;return"PUSH"===t.action||"POP"===t.action})).switchMap((function(e){var n,r=Object(Xr.c)(),o=e.payload||{},s=o.isFirstRendering,i=o.location,a=t.getState(),l=a.gnsearch.nextParams,u=ia(pa(a.gnsearch.locationSearch,a.gnsearch.params),2),c=u[0],d=u[1],f=ia(pa(i.search,l||{}),2),p=f[0],m=f[1];if(!l){var h=ca(ca({},p),{},{page:1});return!s&&ta()(c,p)?$i.Observable.empty():ma({params:h,pageSize:r,reset:!0,location:i})}var b=(null===(n=a.gnsearch)||void 0===n?void 0:n.resources.length)||0,y=Math.floor(b/r),g=m===d+1&&m===y+1,v=s||!ta()(c,p)||!g,j=v?1:m,_=ca(ca({},p),{},{page:j});return ma({params:_,pageSize:r,reset:v,location:i})}))},gnsSelectResourceEpic:function(e){return e.ofType("GEONODE_SEARCH:REQUEST_RESOURCE").switchMap((function(e){return As()(e.pk)?$i.Observable.of(Object(oa.l)(null)):$i.Observable.defer((function(){return Object(Oi.g)(e.pk)})).switchMap((function(e){return $i.Observable.of(Object(oa.l)(e))})).catch((function(e){return $i.Observable.of(Object(oa.i)(e.data||e.message))})).startWith(Object(oa.j)())}))}},ba={gnSetLanguageEpic:function(e){return e.ofType(D.a).switchMap((function(e){var t=e.locale,n=Object(d.g)(),r=Object.keys(n).find((function(e){var r;return(null===(r=n[e])||void 0===r?void 0:r.code)===t}));return $i.Observable.defer((function(){return Object(Mi.g)(r)})).switchMap((function(){return $i.Observable.empty()}))}))}},ya=n("./MapStore2/web/client/libs/ajax.js"),ga=n.n(ya);n("./themes/geonode/scss/geonode.scss");function va(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(e,t)}(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 _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s(s({},e),{},{loading:!0});case r.d:return s(s({},e),{},{error:null,data:t.data,loading:!1});case r.a:return s(s({},e),{},{data:null,error:t.error,loading:!1});case r.h:return s(s({},e),{},{data:s(s({},e.data),t.properties)});case r.g:return s(s({},e),{},{type:t.resourceType});case r.c:return s(s({},e),{},{isNew:!0});case r.e:return s(s({},e),{},{id:t.id});case r.f:return s(s({},e),{},{permissions:t.permissions});default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));n("./node_modules/url/url.js");var r={},o=function(e){return e},s=function(e,t){r[e]=t},i=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return j})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return x}));var r=n("./node_modules/url/url.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/castArray.js"),i=n.n(s);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["page"],m={},h=function(e,t){m[e]=t},b=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==m||null===(e=m[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==m?void 0:m[e+t]},g=function(){return p},v=function(){return 20},j=function(e){var t=e.location,n=e.pathname,r=e.query,s=e.replaceQuery,l=t.search,u=f(t,["search"]),p=o.a.parse(l||"",!0).query,m=r?s?c(c({},p),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=i()(e[t]).filter((function(e){return e})),s=-1===o.indexOf(n)?[].concat(a(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,s))}),p):p;return"#".concat(o.a.format(c(c(c({},u),n&&{pathname:n}),{},{query:Object.keys(m).reduce((function(e,t){return m[t]&&0!==m[t].length?c(c({},e),{},d({},t,m[t])):e}),{})})))};function _(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var x=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=l,t.isNumber=u,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw r(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw r(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw r(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw r(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!l(e))throw r(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw r(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw r(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw r(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw r(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw r(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw r(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},_.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(v.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},_.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},_.prototype.number=function(e){if(!j.test(e)){if(v.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},_.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},_.prototype.keyword=function(e){if(g.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!v.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},_.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!v.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},_.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var n=e.GEOGCS;function r(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(n=e),n&&(n.DATUM?e.datumCode=n.DATUM.name.toLowerCase():e.datumCode=n.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),n.DATUM&&n.DATUM.SPHEROID&&(e.ellps=n.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=n.DATUM.SPHEROID.a,e.rf=parseFloat(n.DATUM.SPHEROID.rf,10)),n.DATUM&&n.DATUM.TOWGS84&&(e.datum_params=n.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",S],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",S],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",S],["lat0","latitude_of_origin",S],["lat0","standard_parallel_1",S],["lat1","standard_parallel_1",S],["lat2","standard_parallel_2",S],["azimuth","Azimuth"],["alpha","azimuth",S],["srsCode","name"]].forEach((function(t){return n=e,o=(r=t)[0],s=r[1],void(!(o in n)&&s in n&&(n[o]=n[s],3===r.length&&(n[o]=r[2](n[o]))));var n,r,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=S(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function O(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?O[e]=m(arguments[1]):O[e]=M(arguments[1]):O[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?O.apply(t,e):O(e)}));if("string"==typeof e){if(e in O)return O[e]}else"EPSG"in e?O["EPSG:"+e.EPSG]=e:"ESRI"in e?O["ESRI:"+e.ESRI]=e:"IAU2000"in e?O["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(O);var k=O;var E=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var T=["3857","900913","3785","102113"];var L=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in k}(e))return k[e];if(function(e){return E.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=M(e);if(function(e){var t=p(e,"authority");if(t){var n=p(t,"epsg");return n&&T.indexOf(n)>-1}}(t))return k["EPSG:3857"];var n=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return n?m(n):t}return function(e){return"+"===e[0]}(e)?m(e):void 0},P=function(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e},A=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)},D=function(e){return e<0?-1:1},C=function(e){return Math.abs(e)<=u?e:e-D(e)*l},F=function(e,t,n){var r=e*n,s=.5*e;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(o-t))/r},N=function(e,t){for(var n,r,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(i),i+=r=o-2*Math.atan(t*Math.pow((1-n)/(1+n),s))-i,Math.abs(r)<=1e-10)return i;return-9999};function I(e){return e}var R=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,s=e.y;if(s*i>90&&s*i<-90&&r*i>180&&r*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*C(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var l=Math.sin(s),u=F(this.e,s,l);t=this.x0+this.a*this.k0*C(r-this.long0),n=this.y0-this.a*this.k0*Math.log(u)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,s=e.y-this.y0;if(this.sphere)n=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(n=N(this.e,i)))return null}return t=C(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:I,inverse:I,names:["longlat","identity"]}],Y={},z=[];function H(e,t){var n=z.length;return e.names?(z[n]=e,e.names.forEach((function(e){Y[e.toLowerCase()]=n})),this):(console.log(t),!0)}var U={start:function(){R.forEach(H)},add:H,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==Y[t]&&z[Y[t]]?z[Y[t]]:void 0}},B={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},q=B.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};B.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var W={};W.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},W.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},W.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},W.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},W.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},W.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},W.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},W.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},W.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},W.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},W.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},W.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},W.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},W.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},W.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},W.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},W.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var V=function(e,t,n,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=r,a.datum_params[4]*=r,a.datum_params[5]*=r,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=n,a.b=o,a.es=s,a.ep2=i,a};function K(e,t){if(!(this instanceof K))return new K(e);t=t||function(e){if(e)throw e};var n=L(e);if("object"==typeof n){var r=K.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=p(W,n.datumCode);o&&(n.datum_params=o.towgs84?o.towgs84.split(","):null,n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var s,i,a,l,u,c,d,f=function(e,t,n,r,o){if(!e){var s=p(B,r);s||(s=q),e=s.a,t=s.b,n=s.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),m=(s=f.a,i=f.b,f.rf,a=n.R_A,c=((l=s*s)-(u=i*i))/l,d=0,a?(l=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(l-u)/u}),h=n.datum||V(n.datumCode,n.datum_params,f.a,f.b,m.es,m.ep2);P(this,n),P(this,r),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}K.projections=U,K.projections.start();var G=K;function X(e){return 1===e||2===e}var J=function(e,t,n){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?n:e.es!==t.es||e.a!==t.a||X(e.datum_type)||X(t.datum_type)?(n=function(e,t,n){var r,s,i,a,l=e.x,u=e.y,c=e.z?e.z:0;if(u<-o&&u>-1.001*o)u=-o;else if(u>o&&u<1.001*o)u=o;else if(u<-o||u>o)return null;return l>Math.PI&&(l-=2*Math.PI),s=Math.sin(u),a=Math.cos(u),i=s*s,{x:((r=n/Math.sqrt(1-t*i))+c)*a*Math.cos(l),y:(r+c)*a*Math.sin(l),z:(r*(1-t)+c)*s}}(n,e.es,e.a),X(e.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],l=n[5],u=n[6];return{x:u*(e.x-l*e.y+a*e.z)+r,y:u*(l*e.x+e.y-i*e.z)+o,z:u*(-a*e.x+i*e.y+e.z)+s}}}(n,e.datum_type,e.datum_params)),X(t.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],l=n[5],u=n[6],c=(e.x-r)/u,d=(e.y-o)/u,f=(e.z-s)/u;return{x:c+l*d-a*f,y:-l*c+d+i*f,z:a*c-i*d+f}}}(n,t.datum_type,t.datum_params)),function(e,t,n,r){var s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j=e.x,_=e.y,x=e.z?e.z:0;if(s=Math.sqrt(j*j+_*_),i=Math.sqrt(j*j+_*_+x*x),s/n<1e-12){if(g=0,i/n<1e-12)return o,v=-r,{x:e.x,y:e.y,z:e.z}}else g=Math.atan2(_,j);a=x/i,f=(l=s/i)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*l*l)),p=a*u,y=0;do{y++,c=t*(d=n/Math.sqrt(1-t*p*p))/(d+(v=s*f+x*p-d*(1-t*p*p))),b=(h=a*(u=1/Math.sqrt(1-c*(2-c)*l*l)))*f-(m=l*(1-c)*u)*p,f=m,p=h}while(b*b>1e-24&&y<30);return{x:g,y:Math.atan(h/Math.abs(m)),z:v}}(n,t.es,t.a,t.b)):n},Z=function(e,t,n){var r,o,s,i=n.x,a=n.y,l=n.z||0,u={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==n.z)switch(0===s?(r=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(r=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(r=l,o="z"),e.axis[s]){case"e":u[o]=r;break;case"w":u[o]=-r;break;case"n":u[o]=r;break;case"s":u[o]=-r;break;case"u":void 0!==n[o]&&(u.z=r);break;case"d":void 0!==n[o]&&(u.z=-r);break;default:return null}return u},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function $(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,n){var r;return Array.isArray(n)&&(n=Q(n)),function(e){$(e.x),$(e.y)}(n),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(n=ee(e,r=new G("WGS84"),n),e=r),"enu"!==e.axis&&(n=Z(e,!1,n)),"longlat"===e.projName?n={x:n.x*s,y:n.y*s}:(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter}),n=e.inverse(n)),e.from_greenwich&&(n.x+=e.from_greenwich),n=J(e.datum,t.datum,n),t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y}),"longlat"===t.projName?n={x:n.x*i,y:n.y*i}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter})),"enu"!==t.axis?Z(t,!0,n):n}var te=G("WGS84");function ne(e,t,n){var r,o,s;return Array.isArray(n)?(r=ee(e,t,n),3===n.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=ee(e,t,n),2===(s=Object.keys(n)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=n[e])})),o)}function re(e){return e instanceof G?e:e.oProj?e.oProj:G(e)}var oe=function(e,t,n){e=re(e);var r,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=te,o=!0),t=re(t),n?ne(e,t,n):(r={forward:function(n){return ne(e,t,n)},inverse:function(n){return ne(t,e,n)}},o&&(r.oProj=t),r)},se=73,ie=79,ae={forward:le,inverse:function(e){var t=fe(he(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:ue};function le(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,m=e.northing,h=e.zoneNumber,b=me(h),y=Math.floor(p/1e5),g=Math.floor(m/1e5)%20,o=y,s=g,i=b,a=i-1,l="AJSAJS".charCodeAt(a),u="AFAFAF".charCodeAt(a),c=l+o-1,d=u+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||lse||(c>se||lie||(c>ie||l90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||use||(d>se||uie||(d>ie||u86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var o,s,i,a,l,u,c,d,f;var p,m,h,b,y,g}(function(e){var t,n,r,o,s,i,a,l=e.lat,u=e.lon,c=6378137,d=ce(l),f=ce(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60);l>=56&&l<64&&u>=3&&u<12&&(a=32);l>=72&&l<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),n=Math.tan(d)*Math.tan(d),r=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-n+r)*o*o*o/6+(5-18*n+n*n+72*r-.39089081163157013)*o*o*o*o*o/120)+5e5,m=.9996*(s+t*Math.tan(d)*(o*o/2+(5-n+9*r+4*r*r)*o*o*o*o/24+(61-58*n+n*n+600*r-2.2240339282485886)*o*o*o*o*o*o/720));l<0&&(m+=1e7);return{northing:Math.round(m),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(l)}}({lat:e[1],lon:e[0]}),t)}function ue(e){var t=fe(he(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,l,u,c,d,f,p=6378137,m=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),h=n-5e5,b=t;r<"N"&&(b-=1e7),c=6*(o-1)-180+3,f=(d=b/.9996/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*d)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*d)+151*m*m*m/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),l=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),u=h/(.9996*s);var y=f-s*Math.tan(f)/l*(u*u/2-(5+3*i+10*a-4*a*a-.06065547077041606)*u*u*u*u/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*u*u*u*u*u*u/720);y=de(y);var g,v=(u-(1+2*i+a)*u*u*u/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*u*u*u*u*u/120)/Math.cos(f);if(v=c+de(v),e.accuracy){var j=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});g={top:j.lat,right:j.lon,bottom:y,left:v}}else g={lat:y,lon:v};return g}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function me(e){var t=e%6;return 0===t&&(t=6),t}function he(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(s,s+=2);for(var l=me(i),u=function(e,t){var n="AJSAJS".charCodeAt(t-1),r=1e5,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>90){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(0),l),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n="AFAFAF".charCodeAt(t-1),r=0,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>86){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(1),l);c0&&(f=1e5/Math.pow(10,h),p=e.substring(s,s+h),b=parseFloat(p)*f,m=e.substring(s+h),y=parseFloat(m)*f),{easting:b+u,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function be(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(ue(e))},ye.prototype.toMGRS=function(e){return le([this.x,this.y],e)};var ge=ye,ve=n("./node_modules/@geosolutions/proj4/package.json"),je=.01068115234375,_e=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*je))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*je)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t},xe=function(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))},we=function(e,t,n){for(var r=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(xe(o,i,Math.cos(o),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<1e-10)return o}return o};var Se={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=_e(this.es),this.ml0=xe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,o=e.x,s=e.y,i=C(o-this.long0),a=Math.sin(s),l=Math.cos(s);if(this.es){var u=l*i,c=Math.pow(u,2),d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.abs(l)>1e-10?Math.tan(s):0,m=Math.pow(p,2),h=Math.pow(m,2);t=1-this.es*Math.pow(a,2),u/=Math.sqrt(t);var b=xe(s,a,l,this.en);n=this.a*(this.k0*u*(1+c/6*(1-m+d+c/20*(5-18*m+h+14*d-58*m*d+c/42*(61+179*h-h*m-479*m)))))+this.x0,r=this.a*(this.k0*(b-this.ml0+a*i*u/2*(1+c/12*(5-m+9*d+4*f+c/30*(61+h-58*m+270*d-330*m*d+c/56*(1385+543*h-h*m-3111*m))))))+this.y0}else{var y=l*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=l*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>1e-10)return 93;r=0}else r=Math.acos(r);s<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,n=we(t,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.pow(c,2),m=Math.pow(p,2);t=1-this.es*Math.pow(l,2);var h=i*Math.sqrt(t)/this.k0,b=Math.pow(h,2);r=n-(t*=c)*b/(1-this.es)*.5*(1-b/12*(5+3*p-9*d*p+d-4*f-b/30*(61+90*p-252*d*p+45*m+46*d-b/56*(1385+3633*p+4095*m+1574*m*p)))),s=C(this.long0+h*(1-b/6*(1+2*p+d-b/20*(5+28*p+24*m+8*d*p+6*d-b/42*(61+662*p+1320*m+720*m*p))))/u)}else r=o*D(a),s=0;else{var y=Math.exp(i/this.k0),g=.5*(y-1/y),v=this.lat0+a/this.k0,j=Math.cos(v);t=Math.sqrt((1-Math.pow(j,2))/(1+Math.pow(g,2))),r=Math.asin(t),a<0&&(r=-r),s=0===g&&0===j?0:C(Math.atan2(g,j)+this.long0)}return e.x=s,e.y=r,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Me=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Oe=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))},ke=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(Oe(1,t)+1))),e<0?-t:t},Ee=function(e,t){for(var n,r=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return t+n*Math.sin(2*t)},Te=function(e,t,n){for(var r,o,s=Math.sin(t),i=Math.cos(t),a=Me(n),l=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(n),u=2*i*l,c=-2*s*a,d=e.length-1,f=e[d],p=0,m=0,h=0;--d>=0;)r=m,o=p,f=u*(m=f)-r-c*(p=h)+e[d],h=c*m-o+u*p;return[(u=s*l)*f-(c=i*a)*h,u*h+c*f]};var Le={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=Ee(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=C(e.x-this.long0),n=e.y;n=Ee(this.cbg,n);var r=Math.sin(n),o=Math.cos(n),s=Math.sin(t),i=Math.cos(t);n=Math.atan2(r,i*o),t=Math.atan2(s*o,Oe(r,o*i)),t=ke(Math.tan(t));var a,l,u=Te(this.gtu,2*n,2*t);return n+=u[0],t+=u[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),e.x=a,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var s=Te(this.utg,2*o,2*r);o+=s[0],r+=s[1],r=Math.atan(Me(r));var i=Math.sin(o),a=Math.cos(o),l=Math.sin(r),u=Math.cos(r);o=Math.atan2(i*u,Oe(l,u*a)),r=Math.atan2(l,u*a),t=C(r+this.long0),n=Ee(this.cgb,o)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var Pe={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(C(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Le.init.apply(this),this.forward=Le.forward,this.inverse=Le.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Ae=function(e,t){return Math.pow((1-e)/(1+e),t)};var De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Ae(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+a),this.C)*Ae(this.e*Math.sin(n),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+a)/this.K,1/this.C),s=20;s>0&&(n=2*Math.atan(r*Ae(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(n-e.y)<1e-14));--s)e.y=n;return s?(e.x=t,e.y=n,e):null},names:["gauss"]};var Ce={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,o;return e.x=C(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=o*n*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),n=Math.cos(i),o=Math.asin(n*this.sinc0+e.y*t*this.cosc0/s),r=Math.atan2(e.x*t,s*this.cosc0*n-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,De.inverse.apply(this,[e]),e.x=C(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Fe={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+D(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/F(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=A(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,s,i,a,l=e.x,u=e.y,c=Math.sin(u),d=Math.cos(u),f=C(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=1e-10&&Math.abs(u+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(n=2*Math.atan(this.ssfn_(u,c,this.e))-o,s=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(i=F(this.e,u*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(l-this.long0),e.y=this.y0-this.con*a*Math.cos(l-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*r-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,n,r,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,n=this.lat0,a<=1e-10?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?C(this.long0+Math.atan2(e.x,-1*e.y)):C(this.long0+Math.atan2(e.x,e.y)):C(this.long0+Math.atan2(e.x*Math.sin(l),a*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*N(this.e,r),t=this.con*C(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=C(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),n=-1*N(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*n)}};var Ne={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,o=2*(Math.atan(Math.exp(r))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,o=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(r)),i=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,l=0,u=s,c=-1e3,d=0;Math.abs(u-c)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=a,e.y=u,e},names:["somerc"]};var Ie={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),n=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var r,o,s=F(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-n*n));if(i*i<1&&(i=1),isNaN(this.longc)){var a=F(this.e,this.lat1,Math.sin(this.lat1)),l=F(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var u=Math.pow(a,this.bl),c=Math.pow(l,this.bl);o=.5*((r=this.el/u)-1/r);var d=(this.el*this.el-c*u)/(this.el*this.el+c*u),f=(c-u)/(c+u),p=C(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=C(this.long0);var m=C(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*m)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else r=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=r*Math.pow(s,this.bl),o=.5*(r-1/r),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,n,r,s=e.x,i=e.y,l=C(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)r=i>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(a+r*this.gamma0*.5)),t=-1*r*o*this.al/this.bl;else{var u=F(this.e,i,Math.sin(i)),c=this.el/Math.pow(u,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*l),m=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;n=Math.abs(Math.abs(m)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-m)/(1+m))/this.bl,t=Math.abs(Math.cos(this.bl*l))<=1e-10?this.al*this.bl*l:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*l))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+n):(t-=this.uc,e.x=this.x0+n*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-n*Math.sin(this.alpha)),e},inverse:function(e){var t,n;this.no_rot?(n=e.y-this.y0,t=e.x-this.x0):(n=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*n/this.al),s=.5*(r-1/r),i=.5*(r+1/r),a=Math.sin(this.bl*t/this.al),l=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,u=Math.pow(this.el/Math.sqrt((1+l)/(1-l)),1/this.bl);return Math.abs(l-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(l+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=N(this.e,u),e.x=C(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Re={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=A(this.e,t,n),o=F(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=A(this.e,s,i),l=F(this.e,this.lat2,s),u=F(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(r/a)/Math.log(o/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=D(n)*(o-2e-10));var r,s,i=Math.abs(Math.abs(n)-o);if(i>1e-10)r=F(this.e,n,Math.sin(n)),s=this.a*this.f0*Math.pow(r,this.ns);else{if((i=n*this.ns)<=0)return null;s=0}var a=this.ns*C(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,s,i,a=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+l*l),n=1):(t=-Math.sqrt(a*a+l*l),n=-1);var u=0;if(0!==t&&(u=Math.atan2(n*a,n*l)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(s=N(this.e,r)))return null}else s=-o;return i=C(u/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Ye={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y,c=C(l-this.long0);return t=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/t)-this.s45),r=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),s=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,o,s,i,a,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(o)),n=Math.asin(Math.cos(r)*Math.sin(o)/Math.cos(t)),e.x=this.long0-n/this.alfa,i=t,a=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,u+=1}while(0===a&&u<15);return u>=15?null:e},names:["Krovak","krovak"]},ze=function(e,t,n,r,o){return e*o-t*Math.sin(2*o)+n*Math.sin(4*o)-r*Math.sin(6*o)},He=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},Ue=function(e){return.375*e*(1+.25*e*(1+.46875*e))},Be=function(e){return.05859375*e*e*(1+.75*e)},qe=function(e){return e*e*e*(35/3072)},We=function(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)},Ve=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t};var Je={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Xe(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=.3333333333333333*e,t=e*e,n[0]+=.17222222222222222*t,n[1]=.06388888888888888*t,t*=e,n[0]+=.10257936507936508*t,n[1]+=.0664021164021164*t,n[2]=.016415012942191543*t,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Xe(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,s,i,l,u,c,d,f,p=e.x,m=e.y;if(p=C(p-this.long0),this.sphere){if(i=Math.sin(m),f=Math.cos(m),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*r:1+this.sinph0*i+this.cosph0*f*r)<=1e-10)return null;t=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(m+this.phi0)<1e-10)return null;n=a-.5*m,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=r}}else{switch(u=0,c=0,d=0,r=Math.cos(p),s=Math.sin(p),i=Math.sin(m),l=Xe(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=l/this.qp,c=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:d=1+this.sinb1*u+this.cosb1*c*r;break;case this.EQUIT:d=1+c*r;break;case this.N_POLE:d=o+m,l=this.qp-l;break;case this.S_POLE:d=m-o,l=this.qp+l}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*u-this.sinb1*c*r):(d=Math.sqrt(2/(1+c*r)))*u*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:l>=0?(t=(d=Math.sqrt(l))*s,n=r*(this.mode===this.S_POLE?d:-d)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,s,i,a,l,u,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var m,h=0,b=0;if((n=.5*(m=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(b=Math.sin(n),h=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(m)<=1e-10?0:Math.asin(p*b/m),f*=b,p=h*m;break;case this.OBLIQ:n=Math.abs(m)<=1e-10?this.phi0:Math.asin(h*this.sinph0+p*b*this.cosph0/m),f*=b*this.cosph0,p=(h-Math.sin(n)*this.sinph0)*m;break;case this.N_POLE:p=-p,n=o-n;break;case this.S_POLE:n-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),r=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(l=r*this.sinb1+p*s*this.cosb1/a,i=this.qp*l,p=a*this.cosb1*r-p*this.sinb1*s):(l=p*s/a,i=this.qp*l,p=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;l=1-i/this.qp,this.mode===this.S_POLE&&(l=-l)}t=Math.atan2(f,p),u=Math.asin(l),c=this.apa,d=u+u,n=u+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=C(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Ze=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=A(this.e3,this.sin_po,this.cos_po),this.qs1=Xe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=A(this.e3,this.sin_po,this.cos_po),this.qs2=Xe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Xe(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Xe(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,s=this.ns0*C(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,i=this.phi1z(this.e3,n)),s=C(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,o,s,i=Ze(.5*t);if(e<1e-10)return i;for(var a=e*e,l=1;l<=25;l++)if(i+=s=.5*(o=1-(r=e*(n=Math.sin(i)))*r)*o/Math.cos(i)*(t/(1-a)-n/o+.5/e*Math.log((1-r)/(1+r))),Math.abs(s)<=1e-7)return i;return null}};var $e={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y;return r=C(l-this.long0),t=Math.sin(u),n=Math.cos(u),o=Math.cos(r),1,(s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*n*Math.sin(r)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)/s):(i=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),n=Math.sin(o),r=Math.cos(o),i=Ze(r*this.sin_p14+e.y*n*this.cos_p14/t),s=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),s=C(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,o=e.y,s=C(r-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Xe(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,n=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=C(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*o:o;for(var r,s,i,a,l=Math.asin(.5*t),u=0;u<30;u++)if(s=Math.sin(l),i=Math.cos(l),a=e*s,l+=r=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return l;return NaN}(this.e,2*e.y*this.k0/this.a),t=C(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=C(t-this.long0),o=Ve(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,n=e.y;return e.x=C(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Ve(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var nt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Ue(this.es),this.e2=Be(this.es),this.e3=qe(this.es),this.ml0=this.a*ze(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,o=e.x,s=e.y,i=C(o-this.long0);if(r=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(s),n=this.a*(Ve(s-this.lat0)+(1-Math.cos(r))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,n=-1*this.ml0;else{var a=We(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(r),n=this.a*ze(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,o,s,i,a,l,u;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=C(r/this.a+this.long0),n=0;else{var c;for(i=this.lat0+o/this.a,a=r*r/this.a/this.a+i*i,l=i,s=20;s;--s)if(l+=u=-1*(i*(l*(c=Math.tan(l))+1)-l-.5*(l*l+a)*c)/((l-i)/c-1),Math.abs(u)<=1e-10){n=l;break}t=C(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(o+this.ml0)<=1e-10)n=0,t=C(this.long0+r/this.a);else{var d,f,p,m,h;for(i=(this.ml0+o)/this.a,a=r*r/this.a/this.a+i*i,l=i,s=20;s;--s)if(h=this.e*Math.sin(l),d=Math.sqrt(1-h*h)*Math.tan(l),f=this.a*ze(this.e0,this.e1,this.e2,this.e3,l),p=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=u=(i*(d*(m=f/this.a)+1)-m-.5*d*(m*m+a))/(this.es*Math.sin(2*l)*(m*m+a-2*i*m)/(4*d)+(i-m)*(d*p-2/Math.sin(2*l))-p),Math.abs(u)<=1e-10){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=C(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};var rt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,o=e.y-this.lat0,s=n-this.long0,i=o/r*1e-5,a=s,l=1,u=0;for(t=1;t<=10;t++)l*=i,u+=this.A[t]*l;var c,d=u,f=a,p=1,m=0,h=0,b=0;for(t=1;t<=6;t++)c=m*d+p*f,p=p*d-m*f,m=c,h=h+this.B_re[t]*p-this.B_im[t]*m,b=b+this.B_im[t]*p+this.B_re[t]*m;return e.x=b*this.a+this.x0,e.y=h*this.a+this.y0,e},inverse:function(e){var t,n,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,l=i/this.a,u=1,c=0,d=0,f=0;for(t=1;t<=6;t++)n=c*a+u*l,u=u*a-c*l,c=n,d=d+this.C_re[t]*u-this.C_im[t]*c,f=f+this.C_im[t]*u+this.C_re[t]*c;for(var p=0;p.999999999999&&(n=.999999999999),t=Math.asin(n);var r=C(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return e.x=r,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Ue(this.es),this.e2=Be(this.es),this.e3=qe(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=A(this.e,this.sinphi,this.cosphi),this.ml1=ze(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=A(this.e,this.sinphi,this.cosphi),this.ml2=ze(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ze(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var o=ze(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-o)}var s=this.ns*C(n-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==n&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=C(this.long0+s/this.ns),r=Ve(this.g-n/this.a),e.x=o,e.y=r,e;var i=this.g-n/this.a;return r=Ke(i,this.e0,this.e1,this.e2,this.e3),o=C(this.long0+s/this.ns),e.x=o,e.y=r,e},names:["Equidistant_Conic","eqdc"]};var lt={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,s=e.y,i=C(r-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,n=this.y0);var a=Ze(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var l=.5*Math.abs(Math.PI/i-i/Math.PI),u=l*l,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,m=f*(2/c-1),h=m*m,b=Math.PI*this.R*(l*(f-h)+Math.sqrt(u*(f-h)*(f-h)-(h+u)*(p-h)))/(h+u);i<0&&(b=-b),t=this.x0+b;var y=u+f;return b=Math.PI*this.R*(m*y-l*Math.sqrt((h+u)*(u+1)-y*y))/(h+u),n=s>=0?this.y0+b:this.y0-b,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,o,s,i,a,l,u,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(r=e.x/d)*r+(o=e.y/d)*o,d=3*(o*o/(l=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+r*r)*a*a/l/l/l-9*i*a/l/l)/27)/(u=(i-a*a/3/l)/l)/(c=2*Math.sqrt(-u/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,n=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/l)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/l)*Math.PI,t=Math.abs(r)<1e-10?this.long0:C(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(r*r-o*o)+s*s))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var ut={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j,_,x,w,S=e.x,M=e.y,O=Math.sin(e.y),k=Math.cos(e.y),E=C(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-M)*Math.sin(E),e.y=this.y0-this.a*(o-M)*Math.cos(E),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+M)*Math.sin(E),e.y=this.y0+this.a*(o+M)*Math.cos(E),e):(v=this.sin_p12*O+this.cos_p12*k*Math.cos(E),g=(y=Math.acos(v))/Math.sin(y),e.x=this.x0+this.a*g*k*Math.sin(E),e.y=this.y0+this.a*g*(this.cos_p12*O-this.sin_p12*k*Math.cos(E)),e):(t=He(this.es),n=Ue(this.es),r=Be(this.es),s=qe(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*ze(t,n,r,s,o),a=this.a*ze(t,n,r,s,M),e.x=this.x0+(i-a)*Math.sin(E),e.y=this.y0-(i-a)*Math.cos(E),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*ze(t,n,r,s,o),a=this.a*ze(t,n,r,s,M),e.x=this.x0+(i+a)*Math.sin(E),e.y=this.y0+(i+a)*Math.cos(E),e):(l=O/k,u=We(this.a,this.e,this.sin_p12),c=We(this.a,this.e,O),d=Math.atan((1-this.es)*l+this.es*u*this.sin_p12/(c*k)),j=0===(f=Math.atan2(Math.sin(E),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(E)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(E)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=u*j*(1-(_=j*j)*(b=(m=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*m)*(1-b)/6+(x=_*j)/8*(h=p*m)*(1-2*b)+(w=x*j)/120*(b*(4-7*b)-3*p*p*(1-7*b))-w*j/48*h),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,n,r,s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j,_,x,w;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return n=t/this.a,r=Math.sin(n),s=Math.cos(n),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Ze(s*this.sin_p12+e.y*r*this.cos_p12/t),l=Math.abs(this.lat0)-o,i=Math.abs(l)<=1e-10?this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)):C(this.long0+Math.atan2(e.x*r,t*this.cos_p12*s-e.y*this.sin_p12*r))),e.x=i,e.y=a,e}return u=He(this.es),c=Ue(this.es),d=Be(this.es),f=qe(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*ze(u,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((p-t)/this.a,u,c,d,f),i=C(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*ze(u,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((t-p)/this.a,u,c,d,f),i=C(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),b=Math.atan2(e.x,e.y),m=We(this.a,this.e,this.sin_p12),y=Math.cos(b),v=-(g=this.e*this.cos_p12*y)*g/(1-this.es),j=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-v*(x=(_=t/m)-v*(1+v)*Math.pow(_,3)/6-j*(1+3*v)*Math.pow(_,4)/24)*x/2-_*x*x*x/6,h=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*y),i=C(this.long0+Math.asin(Math.sin(b)*Math.sin(x)/Math.cos(h))),a=Math.atan((1-this.es*w*this.sin_p12/Math.sin(h))*Math.tan(h)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y;return r=C(l-this.long0),t=Math.sin(u),n=Math.cos(u),o=Math.cos(r),1,((s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,s,i,a,l;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),n=Ze(t/this.a),r=Math.sin(n),s=Math.cos(n),a=this.long0,Math.abs(t)<=1e-10?(l=this.lat0,e.x=a,e.y=l,e):(l=Ze(s*this.sin_p14+e.y*r*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=l,e):(a=C(this.long0+Math.atan2(e.x*r,t*this.cos_p14*s-e.y*this.sin_p14*r)),e.x=a,e.y=l,e))},names:["ortho"]},dt=1,ft=2,pt=3,mt=4,ht=5,bt=6,yt=1,gt=2,vt=3,jt=4;function _t(e,t,n,r){var s;return e<1e-10?(r.value=yt,s=0):(s=Math.atan2(t,n),Math.abs(s)<=a?r.value=yt:s>a&&s<=o+a?(r.value=gt,s-=o):s>o+a||s<=-(o+a)?(r.value=vt,s=s>=0?s-u:s+u):(r.value=jt,s+=o)),s}function xt(e,t){var n=e+t;return n<-u?n+=l:n>+u&&(n-=l),n}var wt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=ht:this.lat0<=-(o-a/2)?this.face=bt:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:mt:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,s,i,l,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===ht)s=o-t,n>=a&&n<=o+a?(d.value=yt,r=n-o):n>o+a||n<=-(o+a)?(d.value=gt,r=n>0?n-u:n+u):n>-(o+a)&&n<=-a?(d.value=vt,r=n+o):(d.value=jt,r=n);else if(this.face===bt)s=o+t,n>=a&&n<=o+a?(d.value=yt,r=-n+o):n=-a?(d.value=gt,r=-n):n<-a&&n>=-(o+a)?(d.value=vt,r=-n-o):(d.value=jt,r=n>0?-n+u:-n-u);else{var f,p,m,h,b,y;this.face===ft?n=xt(n,+o):this.face===pt?n=xt(n,+u):this.face===mt&&(n=xt(n,-o)),h=Math.sin(t),b=Math.cos(t),y=Math.sin(n),f=b*Math.cos(n),p=b*y,m=h,this.face===dt?r=_t(s=Math.acos(f),m,p,d):this.face===ft?r=_t(s=Math.acos(p),m,-f,d):this.face===pt?r=_t(s=Math.acos(-f),m,-p,d):this.face===mt?r=_t(s=Math.acos(-p),m,f,d):(s=r=0,d.value=yt)}return l=Math.atan(12/u*(r+Math.acos(Math.sin(r)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(l)*Math.cos(l))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===gt?l+=o:d.value===vt?l+=u:d.value===jt&&(l+=1.5*u),c.x=i*Math.cos(l),c.y=i*Math.sin(l),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,n,r,s,i,a,l,c,d,f,p,m,h={lam:0,phi:0},b={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?b.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(b.value=gt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(b.value=vt,t=t<0?t+u:t-u):(b.value=jt,t+=o),d=u/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(l=1-(r=Math.cos(t))*r*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?l=-1:l>1&&(l=1),this.face===ht)c=Math.acos(l),h.phi=o-c,b.value===yt?h.lam=a+o:b.value===gt?h.lam=a<0?a+u:a-u:b.value===vt?h.lam=a-o:h.lam=a;else if(this.face===bt)c=Math.acos(l),h.phi=c-o,b.value===yt?h.lam=-a+o:b.value===gt?h.lam=-a:b.value===vt?h.lam=-a-o:h.lam=a<0?-a-u:-a+u;else{var y,g,v;d=(y=l)*y,g=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*v)>=1?0:Math.sqrt(1-d),b.value===gt?(d=g,g=-v,v=d):b.value===vt?(g=-g,v=-v):b.value===jt&&(d=g,g=v,v=-d),this.face===ft?(d=y,y=-g,g=d):this.face===pt?(y=-y,g=-g):this.face===mt&&(d=y,y=g,g=-d),h.phi=Math.acos(-v)-o,h.lam=Math.atan2(g,y),this.face===ft?h.lam=xt(h.lam,-o):this.face===pt?h.lam=xt(h.lam,-u):this.face===mt&&(h.lam=xt(h.lam,+o))}return 0!==this.es&&(f=h.phi<0?1:0,p=Math.tan(h.phi),m=this.b/Math.sqrt(p*p+this.one_minus_f_squared),h.phi=Math.atan(Math.sqrt(this.a*this.a-m*m)/(this.one_minus_f*m)),f&&(h.phi=-h.phi)),h.lam+=this.long0,e.x=h.lam,e.y=h.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},St=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Mt=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ot=i/5,kt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var Et,Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=C(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Ot);r<0?r=0:r>=18&&(r=17);var o={x:kt(St[r],n=i*(n-.08726646259971647*r))*t,y:kt(Mt[r],n)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=St[18][0],t.y=e.y<0?-o:o;else{var n=Math.floor(18*t.y);for(n<0?n=0:n>=18&&(n=17);;)if(Mt[n][0]>t.y)--n;else{if(!(Mt[n+1][0]<=t.y))break;++n}var r=Mt[n],i=5*(t.y-r[0])/(Mt[n+1][0]-r[0]);i=function(e,t,n,r){for(var o=t;r;--r){var s=e(o);if(o-=s,Math.abs(s)e[1]!=u>e[1]&&e[0]<(l-i)*(e[1]-a)/(u-a)+i&&(r=!r)}return r}var s=function(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var s=n.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=Object(r.a)(e),a=Object(r.b)(t),l=t.geometry?t.geometry.type:t.type,u=t.bbox;if(u&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,u))return!1;"Polygon"===l&&(a=[a]);for(var c=0,d=!1;ce[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t[0])&&(!(e[2]t[1])&&!(e[3]t?1:0}var a=function(e,t,n,r,o){!function e(t,n,r,o,i){for(;o>r;){if(o-r>600){var a=o-r+1,l=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),f=Math.max(r,Math.floor(n-l*c/a+d)),p=Math.min(o,Math.floor(n+(a-l)*c/a+d));e(t,n,f,p,i)}var m=t[n],h=r,b=o;for(s(t,r,n),i(t[o],m)>0&&s(t,r,o);h0;)b--}0===i(t[r],m)?s(t,r,b):(b++,s(t,b,o)),b<=n&&(r=b+1),n<=b&&(o=b-1)}}(e,t,n||0,r||e.length-1,o||i)};function l(e,t){if(!(this instanceof l))return new l(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function u(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function j(e,t,n,r,o){for(var s,i=[t,n];i.length;)(n=i.pop())-(t=i.pop())<=r||(s=t+Math.ceil((n-t)/r/2)*r,a(e,s,t,n,o),i.push(t,s,s,n))}l.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!g(e,t))return n;for(var o,s,i,a,l=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var n=e[t],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var s=this._chooseSplitIndex(n,o,r),i=v(n.children.splice(s,n.children.length-s));i.height=n.height,i.leaf=n.leaf,c(n,this.toBBox),c(i,this.toBBox),t?e[t-1].children.push(i):this._splitRoot(n,i)},_splitRoot:function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,o,s,i,a,l,u,c,f,p,m,b,y,g;for(l=u=1/0,r=t;r<=n-t;r++)o=d(e,0,r,this.toBBox),s=d(e,r,n,this.toBBox),f=o,p=s,m=void 0,b=void 0,y=void 0,g=void 0,m=Math.max(f.minX,p.minX),b=Math.max(f.minY,p.minY),y=Math.min(f.maxX,p.maxX),g=Math.min(f.maxY,p.maxY),i=Math.max(0,y-m)*Math.max(0,g-b),a=h(o)+h(s),i=t;o--)s=e.children[o],f(l,e.leaf?i(s):s),u+=b(l);return u},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)f(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():c(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var _=l;function x(e){var t=[e[0],e[1]],n=[e[0],e[3]],r=[e[2],e[3]];return{type:"Feature",bbox:e,properties:{},geometry:{type:"Polygon",coordinates:[[t,[e[2],e[1]],r,n,t]]}}}function w(e){var t=[1/0,1/0,-1/0,-1/0];return Object(r.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]l?i:l,a>u?a:u]),n.push(c),r})),n})(n,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),Object(M.c)(t)};function k(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");if(!0===n.final)return function(e,t){var n=k(t,e);return n=(n+180)%360}(e,t);var r=Object(o.a)(e),s=Object(o.a)(t),i=Object(M.a)(r[0]),a=Object(M.a)(s[0]),l=Object(M.a)(r[1]),u=Object(M.a)(s[1]),c=Math.sin(a-i)*Math.cos(u),d=Math.cos(l)*Math.sin(u)-Math.sin(l)*Math.cos(u)*Math.cos(a-i);return Object(M.j)(Math.atan2(c,d))}var E=k;var T=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var r=n.units,s=Object(o.a)(e),i=Object(o.a)(t),a=Object(M.a)(i[1]-s[1]),l=Object(M.a)(i[0]-s[0]),u=Object(M.a)(s[1]),c=Object(M.a)(i[1]),d=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(u)*Math.cos(c);return Object(M.k)(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),r)};var L=function(e,t,n,r){if(r=r||{},!Object(M.e)(r))throw new Error("options is invalid");var s=r.units,i=r.properties,a=Object(o.a)(e),l=Object(M.a)(a[0]),u=Object(M.a)(a[1]),c=Object(M.a)(n),d=Object(M.f)(t,s),f=Math.asin(Math.sin(u)*Math.cos(d)+Math.cos(u)*Math.sin(d)*Math.cos(c)),p=l+Math.atan2(Math.sin(c)*Math.sin(d)*Math.cos(u),Math.cos(d)-Math.sin(u)*Math.sin(f)),m=Object(M.j)(p),h=Object(M.j)(f);return Object(M.h)([m,h],i)};function P(e,t){var n=Object(o.b)(e),r=Object(o.b)(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var s=n[0][0],i=n[0][1],a=n[1][0],l=n[1][1],u=r[0][0],c=r[0][1],d=r[1][0],f=r[1][1],p=(f-c)*(a-s)-(d-u)*(l-i),m=(d-u)*(i-c)-(f-c)*(s-u),h=(a-s)*(i-c)-(l-i)*(s-u);if(0===p)return null;var b=m/p,y=h/p;if(b>=0&&b<=1&&y>=0&&y<=1){var g=s+b*(a-s),v=i+b*(l-i);return Object(M.h)([g,v])}return null}var A=function(e,t){var n={},s=[];if("LineString"===e.type&&(e=Object(M.b)(e)),"LineString"===t.type&&(t=Object(M.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=P(e,t);return i&&s.push(i),Object(M.c)(s)}var a=S();return a.load(O(t)),Object(r.c)(O(e),(function(e){Object(r.c)(a.search(e),(function(t){var r=P(e,t);if(r){var i=Object(o.b)(r).join(",");n[i]||(n[i]=!0,s.push(r))}}))})),Object(M.c)(s)};var D=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var s=e.geometry?e.geometry.type:e.type;if("LineString"!==s&&"MultiLineString"!==s)throw new Error("lines must be LineString or MultiLineString");var i=Object(M.h)([1/0,1/0],{dist:1/0}),a=0;return Object(r.d)(e,(function(e){for(var r=Object(o.b)(e),s=0;s0&&((b=h.features[0]).properties.dist=T(t,b,n),b.properties.location=a+T(l,b,n)),l.properties.dist=0;r--)if(s[r]!==i[r])return!1;for(r=s.length-1;r>=0;r--)if(o=s[r],!I(e[o],t[o],n))return!1;return typeof e==typeof t}(e,t,n))}function R(e){return null==e}function Y(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function z(e,t){var n=Object(o.b)(t),r=Object(o.b)(e),s=r[0],i=r[r.length-1],a=e.geometry.coordinates;return I(n[0],s)?a.unshift(n[1]):I(n[0],i)?a.push(n[1]):I(n[1],s)?a.unshift(n[0]):I(n[1],i)&&a.push(n[0]),e}var H=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var s,i=n.tolerance||0,a=[],l=S();return l.load(O(e)),Object(r.e)(t,(function(e){var t=!1;Object(r.c)(l.search(e),(function(n){if(!1===t){var r=Object(o.b)(e).sort(),a=Object(o.b)(n).sort();I(r,a)||(0===i?Object(C.a)(r[0],n)&&Object(C.a)(r[1],n):D(n,r[0]).properties.dist<=i&&D(n,r[1]).properties.dist<=i)?(t=!0,s=s?z(s,e):e):(0===i?Object(C.a)(a[0],e)&&Object(C.a)(a[1],e):D(e,a[0]).properties.dist<=i&&D(e,a[1]).properties.dist<=i)&&(s=s?z(s,n):n)}})),!1===t&&s&&(a.push(s),s=void 0)})),s&&a.push(s),Object(M.c)(a)};function U(e,t){var n=Object(o.b)(e),r=Object(o.b)(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var s=n[0][0],i=n[0][1],a=n[1][0],l=n[1][1],u=r[0][0],c=r[0][1],d=r[1][0],f=r[1][1],p=(f-c)*(a-s)-(d-u)*(l-i),m=(d-u)*(i-c)-(f-c)*(s-u),h=(a-s)*(i-c)-(l-i)*(s-u);if(0===p)return null;var b=m/p,y=h/p;if(b>=0&&b<=1&&y>=0&&y<=1){var g=s+b*(a-s),v=i+b*(l-i);return Object(M.h)([g,v])}return null}var B=function(e,t){var n={},s=[];if("LineString"===e.type&&(e=Object(M.b)(e)),"LineString"===t.type&&(t=Object(M.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=U(e,t);return i&&s.push(i),Object(M.c)(s)}var a=S();return a.load(O(t)),Object(r.c)(O(e),(function(e){Object(r.c)(a.search(e),(function(t){var r=U(e,t);if(r){var i=Object(o.b)(r).join(",");n[i]||(n[i]=!0,s.push(r))}}))})),Object(M.c)(s)},q=n("./node_modules/geojson-equality/index.js"),W=n.n(q);t.a=function(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");var n=Object(o.d)(e);if(n!==Object(o.d)(t))throw new Error("features must be of the same type");if("Point"===n)throw new Error("Point geometry not supported");if(new W.a({precision:6}).compare(e,t))return!1;var s=0;switch(n){case"MultiPoint":var i=Object(r.a)(e),a=Object(r.a)(t);i.forEach((function(e){a.forEach((function(t){e[0]===t[0]&&e[1]===t[1]&&s++}))}));break;case"LineString":case"MultiLineString":Object(r.e)(e,(function(e){Object(r.e)(t,(function(t){H(e,t).features.length&&s++}))}));break;case"Polygon":case"MultiPolygon":Object(r.e)(e,(function(e){Object(r.e)(t,(function(t){B(e,t).features.length&&s++}))}))}return s>0}},"./node_modules/@turf/boolean-point-on-line/main.es.js":function(e,t,n){"use strict";var r=n("./node_modules/@turf/invariant/main.es.js"),o=n("./node_modules/@turf/helpers/main.es.js");function s(e,t,n,r){var o=n[0],s=n[1],i=e[0],a=e[1],l=t[0],u=t[1],c=l-i,d=u-a;return 0==(n[0]-i)*d-(n[1]-a)*c&&(r?"start"===r?Math.abs(c)>=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o0?a<=s&&s=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o<=l:l<=o&&o<=i:d>0?a<=s&&s<=u:u<=s&&s<=a)}t.a=function(e,t,n){var i=(n=n||{}).ignoreEndVertices;if(!Object(o.e)(n))throw new Error("invalid options");if(!e)throw new Error("pt is required");if(!t)throw new Error("line is required");for(var a=Object(r.a)(e),l=Object(r.b)(t),u=0;um&&(y>f&&bf&&yc&&(c=g)}var v=[];if(u&&c0&&Math.abs(x-n[_-1][0])>m){var w=parseFloat(n[_-1][0]),S=parseFloat(n[_-1][1]),M=parseFloat(n[_][0]),O=parseFloat(n[_][1]);if(w>-180&&w-180&&n[_-1][0]f&&w<180&&-180===M&&_+1f&&n[_-1][0]<180){j.push([180,n[_][1]]),_++,j.push([n[_][0],n[_][1]]);continue}if(wf){var k=w;w=M,M=k;var E=S;S=O,O=E}if(w>f&&M=180&&wf?180:-180,L]),(j=[]).push([n[_-1][0]>f?-180:180,L]),v.push(j)}else j=[],v.push(j);j.push([x,n[_][1]])}else j.push([n[_][0],n[_][1]])}}else{var P=[];v.push(P);for(var A=0;A1&&Object(r.d)(t[0])&&Object(r.d)(t[1]))return t;throw new Error("Coordinate is not a valid Point")}function s(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return function e(t){if(t.length>1&&Object(r.d)(t[0])&&Object(r.d)(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")}(t),t;throw new Error("No valid coordinates")}function i(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function a(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}},"./node_modules/@turf/line-intersect/index.js":function(e,t,n){var r=n("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=n("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js"),s=n("./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js"),i=n("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,a=n("./node_modules/@turf/line-intersect/node_modules/geojson-rbush/index.js"),l=r.point,u=r.featureCollection,c=o.featureEach;function d(e,t){var n=i(e),r=i(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var o=n[0][0],s=n[0][1],a=n[1][0],u=n[1][1],c=r[0][0],d=r[0][1],f=r[1][0],p=r[1][1],m=(p-d)*(a-o)-(f-c)*(u-s),h=(f-c)*(s-d)-(p-d)*(o-c),b=(a-o)*(s-d)-(u-s)*(o-c);if(0===m)return null;var y=h/m,g=b/m;return y>=0&&y<=1&&g>=0&&g<=1?l([o+y*(a-o),s+y*(u-s)]):null}e.exports=function(e,t){var n=[];if("LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var r=d(e,t);return r&&n.push(r),u(n)}var o=a();return o.load(s(t)),c(s(e),(function(e){c(o.search(e),(function(t){var r=d(e,t);r&&n.push(r)}))})),u(n)}},"./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js":function(e,t){function n(e,t,n,r){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");if(r&&-1===["string","number"].indexOf(typeof r))throw new Error("id must be a number or a string");var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=t||{},o.geometry=e,o}function r(e,t,r,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!m(e[0])||!m(e[1]))throw new Error("Coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r,o)}function o(e,t,r,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:m}},"./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js":function(e,t,n){var r=n("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=n("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,s=n("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js").flattenEach,i=r.lineString,a=r.featureCollection;e.exports=function(e){if(!e)throw new Error("geojson is required");var t=[];return s(e,(function(e){!function(e,t){var n=[],r=e.geometry;switch(r.type){case"Polygon":n=o(r);break;case"LineString":n=[o(r)]}n.forEach((function(n){(function(e,t){var n=[];return e.reduce((function(e,r){var o,s,a,l,u,c,d=i([e,r],t);return d.bbox=(s=r,a=(o=e)[0],l=o[1],u=s[0],c=s[1],[au?a:u,l>c?l:c]),n.push(d),r})),n})(n,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),a(t)}},"./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js":function(e,t,n){"use strict";function r(e,t,n){if(null!==e){var o,s,i,a,l,u,c,d,f,p,m=0,h=0,b=e.type,y="FeatureCollection"===b,g="Feature"===b,v=y?e.features.length:1;for(o=0;oe[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t?1:0}return function(n,r,o,s,i){!function t(n,r,o,s,i){for(;s>o;){if(s-o>600){var a=s-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),f=Math.max(o,Math.floor(r-l*c/a+d)),p=Math.min(s,Math.floor(r+(a-l)*c/a+d));t(n,r,f,p,i)}var m=n[r],h=o,b=s;for(e(n,o,r),i(n[s],m)>0&&e(n,o,s);h0;)b--}0===i(n[o],m)?e(n,o,b):(b++,e(n,b,s)),b<=r&&(o=b+1),r<=b&&(s=b-1)}}(n,r,o||0,s||n.length-1,i||t)}}()},"./node_modules/@turf/line-intersect/node_modules/rbush/index.js":function(e,t,n){"use strict";e.exports=o,e.exports.default=o;var r=n("./node_modules/@turf/line-intersect/node_modules/quickselect/quickselect.js");function o(e,t){if(!(this instanceof o))return new o(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function s(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function h(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(e,t,n,o,s){for(var i,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=o||(i=t+Math.ceil((n-t)/o/2)*o,r(e,i,t,n,s),a.push(t,i,i,n))}o.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!m(e,t))return n;for(var o,s,i,a,l=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var n=e[t],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var s=this._chooseSplitIndex(n,o,r),a=h(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,i(n,this.toBBox),i(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=h([e,t]),this.data.height=e.height+1,this.data.leaf=!1,i(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,o,s,i,l,u,c,f,p,m,h,b,y,g;for(u=c=1/0,r=t;r<=n-t;r++)o=a(e,0,r,this.toBBox),s=a(e,r,n,this.toBBox),p=o,m=s,h=void 0,b=void 0,y=void 0,g=void 0,h=Math.max(p.minX,m.minX),b=Math.max(p.minY,m.minY),y=Math.min(p.maxX,m.maxX),g=Math.min(p.maxY,m.maxY),i=Math.max(0,y-h)*Math.max(0,g-b),l=d(o)+d(s),i=t;o--)s=e.children[o],l(c,e.leaf?i(s):s),d+=f(c);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():i(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},"./node_modules/@turf/meta/main.es.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u}));var r=n("./node_modules/@turf/helpers/main.es.js");function o(e,t,n){if(null!==e)for(var r,s,i,a,l,u,c,d,f=0,p=0,m=e.type,h="FeatureCollection"===m,b="Feature"===m,y=h?e.features.length:1,g=0;g1?i(e,t):s(e[0],t)}e.exports=function(e){var t,n=(t=e).geometry?t.geometry.type:t.type,o=r(e),s=e.properties;if(!o.length)throw new Error("polygon must contain coordinates");switch(n){case"Polygon":return a([l(o,s)]);case"MultiPolygon":var i=[];return o.forEach((function(e){i.push(l(e,s))})),a(i);default:throw new Error("geom "+n+" not supported")}}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/helpers/index.js":function(e,t){function n(e,t,n,r){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");if(r&&-1===["string","number"].indexOf(typeof r))throw new Error("id must be a number or a string");var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=t||{},o.geometry=e,o}function r(e,t,r,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!m(e[0])||!m(e[1]))throw new Error("Coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r,o)}function o(e,t,r,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:m}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/asap/browser-asap.js":function(e,t,n){"use strict";var r=n("./node_modules/asap/browser-raw.js"),o=[],s=[],i=r.makeRequestCallFromTimer((function(){if(s.length)throw s.shift()}));function a(e){var t;(t=o.length?o.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=a,l.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(s.push(e),i())}finally{this.task=null,o[o.length]=this}}},"./node_modules/asap/browser-raw.js":function(e,t,n){"use strict";(function(t){function n(e){o.length||(r(),!0),o[o.length]=e}e.exports=n;var r,o=[],s=0;function i(){for(;s1024){for(var t=0,n=o.length-s;t=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(s)})),e.exports=l}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,n){"use strict";var r=n("./node_modules/axios/lib/helpers/bind.js"),o=n("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===s.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n"']/g,R=RegExp(N.source),Y=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,K=RegExp(V.source),G=/^\s+|\s+$/g,X=/^\s+/,J=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",me="[\\ud800-\\udfff]",he="["+pe+"]",be="["+fe+"]",ye="\\d+",ge="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",je="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+ve+"|"+je+")",ke="(?:"+Me+"|"+je+")",Ee="(?:"+be+"|"+_e+")"+"?",Te="[\\ufe0e\\ufe0f]?"+Ee+("(?:\\u200d(?:"+[xe,we,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Ee+")*"),Le="(?:"+[ge,we,Se].join("|")+")"+Te,Pe="(?:"+[xe+be+"?",be,we,Se,me].join("|")+")",Ae=RegExp("['’]","g"),De=RegExp(be,"g"),Ce=RegExp(_e+"(?="+_e+")|"+Pe+Te,"g"),Fe=RegExp([Me+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Me,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Me+Oe,"$"].join("|")+")",Me+"?"+Oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Le].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,ze={};ze[M]=ze[O]=ze[k]=ze[E]=ze[T]=ze[L]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[A]=!0,ze[l]=ze[u]=ze[w]=ze[c]=ze[S]=ze[d]=ze[f]=ze[p]=ze[h]=ze[b]=ze[y]=ze[g]=ze[v]=ze[j]=ze[x]=!1;var He={};He[l]=He[u]=He[w]=He[S]=He[c]=He[d]=He[M]=He[O]=He[k]=He[E]=He[T]=He[h]=He[b]=He[y]=He[g]=He[v]=He[j]=He[_]=He[L]=He["[object Uint8ClampedArray]"]=He[P]=He[A]=!0,He[f]=He[p]=He[x]=!1;var Ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,qe=parseInt,We="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,Ke=We||Ve||Function("return this")(),Ge=t&&!t.nodeType&&t,Xe=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Xe&&Xe.exports===Ge,Ze=Je&&We.process,Qe=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),$e=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var o=-1,s=null==e?0:e.length;++o-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Ct(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nt=Ot({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),It=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rt(e){return"\\"+Ue[e]}function Yt(e){return Ne.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var Gt=function e(t){var n,r=(t=null==t?Ke:Gt.defaults(Ke.Object(),t,Gt.pick(Ke,Re))).Array,o=t.Date,fe=t.Error,pe=t.Function,me=t.Math,he=t.Object,be=t.RegExp,ye=t.String,ge=t.TypeError,ve=r.prototype,je=pe.prototype,_e=he.prototype,xe=t["__core-js_shared__"],we=je.toString,Se=_e.hasOwnProperty,Me=0,Oe=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ke=_e.toString,Ee=we.call(he),Te=Ke._,Le=be("^"+we.call(Se).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Je?t.Buffer:void 0,Ce=t.Symbol,Ne=t.Uint8Array,Ue=Pe?Pe.allocUnsafe:void 0,We=Ht(he.getPrototypeOf,he),Ve=he.create,Ge=_e.propertyIsEnumerable,Xe=ve.splice,Ze=Ce?Ce.isConcatSpreadable:void 0,Qe=Ce?Ce.iterator:void 0,gt=Ce?Ce.toStringTag:void 0,Ot=function(){try{var e=es(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Jt=o&&o.now!==Ke.Date.now&&o.now,Zt=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Qt=me.ceil,$t=me.floor,en=he.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=ve.join,on=Ht(he.keys,he),sn=me.max,an=me.min,ln=o.now,un=t.parseInt,cn=me.random,dn=ve.reverse,fn=es(t,"DataView"),pn=es(t,"Map"),mn=es(t,"Promise"),hn=es(t,"Set"),bn=es(t,"WeakMap"),yn=es(he,"create"),gn=bn&&new bn,vn={},jn=ks(fn),_n=ks(pn),xn=ks(mn),wn=ks(hn),Sn=ks(bn),Mn=Ce?Ce.prototype:void 0,On=Mn?Mn.valueOf:void 0,kn=Mn?Mn.toString:void 0;function En(e){if(qi(e)&&!Di(e)&&!(e instanceof An)){if(e instanceof Pn)return e;if(Se.call(e,"__wrapped__"))return Es(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Bi(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,s){var i,a=1&t,u=2&t,f=4&t;if(n&&(i=o?n(e,r,o,s):n(e)),void 0!==i)return i;if(!Bi(e))return e;var x=Di(e);if(x){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return go(e,i)}else{var D=rs(e),C=D==p||D==m;if(Ii(e))return fo(e,a);if(D==y||D==l||C&&!o){if(i=u||C?{}:ss(e),!a)return u?function(e,t){return vo(e,ns(e),t)}(e,function(e,t){return e&&vo(t,_a(t),e)}(i,e)):function(e,t){return vo(e,ts(e),t)}(e,Vn(i,e))}else{if(!He[D])return o?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case w:return po(e);case c:case d:return new r(+e);case S:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case O:case k:case E:case T:case L:case"[object Uint8ClampedArray]":case P:case A:return mo(e,n);case h:return new r;case b:case j:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new r;case _:return o=e,On?he(On.call(o)):{}}var o}(e,D,a)}}s||(s=new In);var F=s.get(e);if(F)return F;s.set(e,i),Xi(e)?e.forEach((function(r){i.add(Jn(r,t,n,r,e,s))})):Wi(e)&&e.forEach((function(r,o){i.set(o,Jn(r,t,n,o,e,s))}));var N=x?void 0:(f?u?Ko:Vo:u?_a:ja)(e);return at(N||e,(function(r,o){N&&(r=e[o=r]),Bn(i,o,Jn(r,t,n,o,e,s))})),i}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],s=t[o],i=e[o];if(void 0===i&&!(o in e)||!s(i))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(s);return js((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var o=-1,s=dt,i=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=pt(t,Lt(n))),r?(s=ft,i=!1):t.length>=200&&(s=At,i=!1,t=new Nn(t));e:for(;++o-1},Cn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(pn||Cn),string:new Dn}},Fn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Qo(this,e).get(e)},Fn.prototype.has=function(e){return Qo(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new Cn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Cn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var er=xo(lr),tr=xo(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(a)?t>1?sr(a,t-1,n,r,o):mt(o,a):r||(o[o.length]=a)}return o}var ir=wo(),ar=wo(!0);function lr(e,t){return e&&ir(e,t,ja)}function ur(e,t){return e&&ar(e,t,ja)}function cr(e,t){return ct(t,(function(t){return zi(e[t])}))}function dr(e,t){for(var n=0,r=(t=ao(t,e)).length;null!=e&&nt}function hr(e,t){return null!=e&&Se.call(e,t)}function br(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var o=n?ft:dt,s=e[0].length,i=e.length,a=i,l=r(i),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=pt(d,Lt(t))),u=an(d.length,u),l[a]=!n&&(t||s>=120&&d.length>=120)?new Nn(a&&d):void 0}d=e[0];var f=-1,p=l[0];e:for(;++f=a)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,o=t.length,s={};++r-1;)a!==e&&Xe.call(a,l,1),Xe.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==s){var s=o;as(o)?Xe.call(e,o,1):$r(e,o)}}return e}function Nr(e,t){return e+$t(cn()*(t-e+1))}function Ir(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Rr(e,t){return _s(hs(e,t,Va),e+"")}function Yr(e){return Yn(Ta(e))}function zr(e,t){var n=Ta(e);return Ss(n,Xn(t,0,n.length))}function Hr(e,t,n,r){if(!Bi(e))return e;for(var o=-1,s=(t=ao(t,e)).length,i=s-1,a=e;null!=a&&++os?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=r(s);++o>>1,i=e[s];null!==i&&!Zi(i)&&(n?i<=t:i=200){var u=t?null:Ro(e);if(u)return Bt(u);i=!1,o=At,l=new Nn}else l=t?[]:a;e:for(;++r=r?e:Wr(e,t,n)}var co=Xt||function(e){return Ke.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(e)),t}function mo(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ho(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,s=Zi(e),i=void 0!==t,a=null===t,l=t==t,u=Zi(t);if(!a&&!u&&!s&&e>t||s&&i&&l&&!a&&!u||r&&i&&l||!n&&l||!o)return 1;if(!r&&!s&&!u&&e1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,i&&ls(n[0],n[1],i)&&(s=o<3?void 0:s,o=1),t=he(t);++r-1?o[s?t[i]:i]:void 0}}function Eo(e){return Wo((function(t){var n=t.length,r=n,o=Pn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ge(s);if(o&&!a&&"wrapper"==Xo(i))var a=new Pn([],!0)}for(r=a?r:n;++r1&&v.reverse(),d&&ua))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Nn:void 0;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return at(a,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split($):[]}(r),n)))}function ws(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ss(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gs(e,n)}));function ti(e){var t=En(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Wo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&as(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=jo((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var si=ko(As),ii=ko(Ds);function ai(e,t){return(Di(e)?at:er)(e,Zo(t,3))}function li(e,t){return(Di(e)?lt:tr)(e,Zo(t,3))}var ui=jo((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ci=Rr((function(e,t,n){var o=-1,s="function"==typeof t,i=Fi(e)?r(e.length):[];return er(e,(function(e){i[++o]=s?st(t,e,n):gr(e,t,n)})),i})),di=jo((function(e,t,n){Kn(e,n,t)}));function fi(e,t){return(Di(e)?pt:kr)(e,Zo(t,3))}var pi=jo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var mi=Rr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,sr(t,1),[])})),hi=Jt||function(){return Ke.Date.now()};function bi(e,t,n){return t=n?void 0:t,zo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var n;if("function"!=typeof t)throw new ge(s);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var gi=Rr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Jo(gi));r|=32}return zo(e,r,t,n,o)})),vi=Rr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Jo(vi));r|=32}return zo(t,r,e,n,o)}));function ji(e,t,n){var r,o,i,a,l,u,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new ge(s);function m(t){var n=r,s=o;return r=o=void 0,c=t,a=e.apply(s,n)}function h(e){return c=e,l=js(y,t),d?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=i}function y(){var e=hi();if(b(e))return g(e);l=js(y,function(e){var n=t-(e-u);return f?an(n,i-(e-c)):n}(e))}function g(e){return l=void 0,p&&r?m(e):(r=o=void 0,a)}function v(){var e=hi(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return co(l),l=js(y,t),m(u)}return void 0===l&&(l=js(y,t)),a}return t=sa(t)||0,Bi(n)&&(d=!!n.leading,i=(f="maxWait"in n)?sn(sa(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&co(l),c=0,r=u=o=l=void 0},v.flush=function(){return void 0===l?a:g(hi())},v}var _i=Rr((function(e,t){return Qn(e,1,t)})),xi=Rr((function(e,t,n){return Qn(e,sa(t)||0,n)}));function wi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(s);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(wi.Cache||Fn),n}function Si(e){if("function"!=typeof e)throw new ge(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wi.Cache=Fn;var Mi=lo((function(e,t){var n=(t=1==t.length&&Di(t[0])?pt(t[0],Lt(Zo())):pt(sr(t,1),Lt(Zo()))).length;return Rr((function(r){for(var o=-1,s=an(r.length,n);++o=t})),Ai=vr(function(){return arguments}())?vr:function(e){return qi(e)&&Se.call(e,"callee")&&!Ge.call(e,"callee")},Di=r.isArray,Ci=$e?Lt($e):function(e){return qi(e)&&pr(e)==w};function Fi(e){return null!=e&&Ui(e.length)&&!zi(e)}function Ni(e){return qi(e)&&Fi(e)}var Ii=tn||sl,Ri=et?Lt(et):function(e){return qi(e)&&pr(e)==d};function Yi(e){if(!qi(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ki(e)}function zi(e){if(!Bi(e))return!1;var t=pr(e);return t==p||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Hi(e){return"number"==typeof e&&e==ra(e)}function Ui(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qi(e){return null!=e&&"object"==typeof e}var Wi=tt?Lt(tt):function(e){return qi(e)&&rs(e)==h};function Vi(e){return"number"==typeof e||qi(e)&&pr(e)==b}function Ki(e){if(!qi(e)||pr(e)!=y)return!1;var t=We(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==Ee}var Gi=nt?Lt(nt):function(e){return qi(e)&&pr(e)==g};var Xi=rt?Lt(rt):function(e){return qi(e)&&rs(e)==v};function Ji(e){return"string"==typeof e||!Di(e)&&qi(e)&&pr(e)==j}function Zi(e){return"symbol"==typeof e||qi(e)&&pr(e)==_}var Qi=ot?Lt(ot):function(e){return qi(e)&&Ui(e.length)&&!!ze[pr(e)]};var $i=Fo(Or),ea=Fo((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Fi(e))return Ji(e)?Vt(e):go(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=rs(e);return(t==h?zt:t==v?Bt:Ta)(e)}function na(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function oa(e){return e?Xn(ra(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Zi(e))return NaN;if(Bi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=se.test(e);return n||ae.test(e)?qe(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ia(e){return vo(e,_a(e))}function aa(e){return null==e?"":Zr(e)}var la=_o((function(e,t){if(fs(t)||Fi(t))vo(t,ja(t),e);else for(var n in t)Se.call(t,n)&&Bn(e,n,t[n])})),ua=_o((function(e,t){vo(t,_a(t),e)})),ca=_o((function(e,t,n,r){vo(t,_a(t),e,r)})),da=_o((function(e,t,n,r){vo(t,ja(t),e,r)})),fa=Wo(Gn);var pa=Rr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ls(t[0],t[1],o)&&(r=1);++n1),t})),vo(e,Ko(e),n),r&&(n=Jn(n,7,Bo));for(var o=t.length;o--;)$r(n,t[o]);return n}));var Ma=Wo((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return ba(e,n)}))}(e,t)}));function Oa(e,t){if(null==e)return{};var n=pt(Ko(e),(function(e){return[e]}));return t=Zo(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var ka=Yo(ja),Ea=Yo(_a);function Ta(e){return null==e?[]:Pt(e,ja(e))}var La=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Pa(t):t)}));function Pa(e){return Ya(aa(e).toLowerCase())}function Aa(e){return(e=aa(e))&&e.replace(ue,Nt).replace(De,"")}var Da=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ca=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fa=So("toLowerCase");var Na=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ia=Mo((function(e,t,n){return e+(n?" ":"")+Ya(t)}));var Ra=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ya=So("toUpperCase");function za(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ha=Rr((function(e,t){try{return st(e,void 0,t)}catch(e){return Yi(e)?e:new fe(e)}})),Ua=Wo((function(e,t){return at(t,(function(t){t=Os(t),Kn(e,t,gi(e[t],e))})),e}));function Ba(e){return function(){return e}}var qa=Eo(),Wa=Eo(!0);function Va(e){return e}function Ka(e){return wr("function"==typeof e?e:Jn(e,1))}var Ga=Rr((function(e,t){return function(n){return gr(n,e,t)}})),Xa=Rr((function(e,t){return function(n){return gr(e,n,t)}}));function Ja(e,t,n){var r=ja(t),o=cr(t,r);null!=n||Bi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,ja(t)));var s=!(Bi(n)&&"chain"in n&&!n.chain),i=zi(e);return at(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),o=n.__actions__=go(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,mt([this.value()],arguments))})})),e}function Za(){}var Qa=Ao(pt),$a=Ao(ut),el=Ao(yt);function tl(e){return us(e)?Mt(Os(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=Co(),rl=Co(!0);function ol(){return[]}function sl(){return!1}var il=Po((function(e,t){return e+t}),0),al=Io("ceil"),ll=Po((function(e,t){return e/t}),1),ul=Io("floor");var cl,dl=Po((function(e,t){return e*t}),1),fl=Io("round"),pl=Po((function(e,t){return e-t}),0);return En.after=function(e,t){if("function"!=typeof t)throw new ge(s);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},En.ary=bi,En.assign=la,En.assignIn=ua,En.assignInWith=ca,En.assignWith=da,En.at=fa,En.before=yi,En.bind=gi,En.bindAll=Ua,En.bindKey=vi,En.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Di(e)?e:[e]},En.chain=ti,En.chunk=function(e,t,n){t=(n?ls(e,t,n):void 0===t)?1:sn(ra(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,i=0,a=r(Qt(o/t));so?0:o+n),(r=void 0===r||r>o?o:ra(r))<0&&(r+=o),r=n>r?0:oa(r);n>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!Gi(t))&&!(t=Zr(t))&&Yt(e)?uo(Vt(e),0,n):e.split(t,n):[]},En.spread=function(e,t){if("function"!=typeof e)throw new ge(s);return t=null==t?0:sn(ra(t),0),Rr((function(n){var r=n[t],o=uo(n,0,t);return r&&mt(o,r),st(e,this,o)}))},En.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},En.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},En.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:ra(t)))<0?0:t,r):[]},En.takeRightWhile=function(e,t){return e&&e.length?to(e,Zo(t,3),!1,!0):[]},En.takeWhile=function(e,t){return e&&e.length?to(e,Zo(t,3)):[]},En.tap=function(e,t){return t(e),e},En.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ge(s);return Bi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ji(e,t,{leading:r,maxWait:t,trailing:o})},En.thru=ni,En.toArray=ta,En.toPairs=ka,En.toPairsIn=Ea,En.toPath=function(e){return Di(e)?pt(e,Os):Zi(e)?[e]:go(Ms(aa(e)))},En.toPlainObject=ia,En.transform=function(e,t,n){var r=Di(e),o=r||Ii(e)||Qi(e);if(t=Zo(t,4),null==n){var s=e&&e.constructor;n=o?r?new s:[]:Bi(e)&&zi(s)?Tn(We(e)):{}}return(o?at:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},En.unary=function(e){return bi(e,1)},En.union=qs,En.unionBy=Ws,En.unionWith=Vs,En.uniq=function(e){return e&&e.length?Qr(e):[]},En.uniqBy=function(e,t){return e&&e.length?Qr(e,Zo(t,2)):[]},En.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},En.unset=function(e,t){return null==e||$r(e,t)},En.unzip=Ks,En.unzipWith=Gs,En.update=function(e,t,n){return null==e?e:eo(e,t,io(n))},En.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,io(n),r)},En.values=Ta,En.valuesIn=function(e){return null==e?[]:Pt(e,_a(e))},En.without=Xs,En.words=za,En.wrap=function(e,t){return Oi(io(t),e)},En.xor=Js,En.xorBy=Zs,En.xorWith=Qs,En.zip=$s,En.zipObject=function(e,t){return oo(e||[],t||[],Bn)},En.zipObjectDeep=function(e,t){return oo(e||[],t||[],Hr)},En.zipWith=ei,En.entries=ka,En.entriesIn=Ea,En.extend=ua,En.extendWith=ca,Ja(En,En),En.add=il,En.attempt=Ha,En.camelCase=La,En.capitalize=Pa,En.ceil=al,En.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=sa(n))==n?n:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Xn(sa(e),t,n)},En.clone=function(e){return Jn(e,4)},En.cloneDeep=function(e){return Jn(e,5)},En.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},En.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},En.conformsTo=function(e,t){return null==t||Zn(e,t,ja(t))},En.deburr=Aa,En.defaultTo=function(e,t){return null==e||e!=e?t:e},En.divide=ll,En.endsWith=function(e,t,n){e=aa(e),t=Zr(t);var r=e.length,o=n=void 0===n?r:Xn(ra(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},En.eq=Ti,En.escape=function(e){return(e=aa(e))&&Y.test(e)?e.replace(I,It):e},En.escapeRegExp=function(e){return(e=aa(e))&&K.test(e)?e.replace(V,"\\$&"):e},En.every=function(e,t,n){var r=Di(e)?ut:nr;return n&&ls(e,t,n)&&(t=void 0),r(e,Zo(t,3))},En.find=si,En.findIndex=As,En.findKey=function(e,t){return vt(e,Zo(t,3),lr)},En.findLast=ii,En.findLastIndex=Ds,En.findLastKey=function(e,t){return vt(e,Zo(t,3),ur)},En.floor=ul,En.forEach=ai,En.forEachRight=li,En.forIn=function(e,t){return null==e?e:ir(e,Zo(t,3),_a)},En.forInRight=function(e,t){return null==e?e:ar(e,Zo(t,3),_a)},En.forOwn=function(e,t){return e&&lr(e,Zo(t,3))},En.forOwnRight=function(e,t){return e&&ur(e,Zo(t,3))},En.get=ha,En.gt=Li,En.gte=Pi,En.has=function(e,t){return null!=e&&os(e,t,hr)},En.hasIn=ba,En.head=Fs,En.identity=Va,En.includes=function(e,t,n,r){e=Fi(e)?e:Ta(e),n=n&&!r?ra(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ji(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&_t(e,t,n)>-1},En.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ra(n);return o<0&&(o=sn(r+o,0)),_t(e,t,o)},En.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e=-9007199254740991&&e<=9007199254740991},En.isSet=Xi,En.isString=Ji,En.isSymbol=Zi,En.isTypedArray=Qi,En.isUndefined=function(e){return void 0===e},En.isWeakMap=function(e){return qi(e)&&rs(e)==x},En.isWeakSet=function(e){return qi(e)&&"[object WeakSet]"==pr(e)},En.join=function(e,t){return null==e?"":rn.call(e,t)},En.kebabCase=Da,En.last=Ys,En.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ra(n))<0?sn(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):jt(e,wt,o,!0)},En.lowerCase=Ca,En.lowerFirst=Fa,En.lt=$i,En.lte=ea,En.max=function(e){return e&&e.length?rr(e,Va,mr):void 0},En.maxBy=function(e,t){return e&&e.length?rr(e,Zo(t,2),mr):void 0},En.mean=function(e){return St(e,Va)},En.meanBy=function(e,t){return St(e,Zo(t,2))},En.min=function(e){return e&&e.length?rr(e,Va,Or):void 0},En.minBy=function(e,t){return e&&e.length?rr(e,Zo(t,2),Or):void 0},En.stubArray=ol,En.stubFalse=sl,En.stubObject=function(){return{}},En.stubString=function(){return""},En.stubTrue=function(){return!0},En.multiply=dl,En.nth=function(e,t){return e&&e.length?Pr(e,ra(t)):void 0},En.noConflict=function(){return Ke._===this&&(Ke._=Te),this},En.noop=Za,En.now=hi,En.pad=function(e,t,n){e=aa(e);var r=(t=ra(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Do($t(o),n)+e+Do(Qt(o),n)},En.padEnd=function(e,t,n){e=aa(e);var r=(t=ra(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return an(e+o*(t-e+Be("1e-"+((o+"").length-1))),t)}return Nr(e,t)},En.reduce=function(e,t,n){var r=Di(e)?ht:kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,er)},En.reduceRight=function(e,t,n){var r=Di(e)?bt:kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,tr)},En.repeat=function(e,t,n){return t=(n?ls(e,t,n):void 0===t)?1:ra(t),Ir(aa(e),t)},En.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},En.result=function(e,t,n){var r=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Tt(r,t=Zo(t));++n=s)return e;var a=n-Wt(r);if(a<1)return r;var l=i?uo(i,0,a).join(""):e.slice(0,a);if(void 0===o)return l+r;if(i&&(a+=l.length-a),Gi(o)){if(e.slice(a).search(o)){var u,c=l;for(o.global||(o=be(o.source,aa(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?a:d)}}else if(e.indexOf(Zr(o),a)!=a){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},En.unescape=function(e){return(e=aa(e))&&R.test(e)?e.replace(N,Kt):e},En.uniqueId=function(e){var t=++Me;return aa(e)+t},En.upperCase=Ra,En.upperFirst=Ya,En.each=ai,En.eachRight=li,En.first=Fs,Ja(En,(cl={},lr(En,(function(e,t){Se.call(En.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),En.VERSION="4.17.19",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){En[e].placeholder=En})),at(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Va)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Rr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return gr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Si(Zo(e)))},An.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},lr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=En[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(En.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,a=t instanceof An,l=i[0],u=a||Di(t),c=function(e){var t=o.apply(En,mt([e],i));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,m=a&&!f;if(!s&&u){t=m?t:new An(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[c],thisArg:void 0}),new Pn(h,d)}return p&&m?e.apply(this,i):(h=this.thru(c),p?r?h.value()[0]:h.value():h)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);En.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Di(o)?o:[],e)}return this[n]((function(n){return t.apply(Di(n)?n:[],e)}))}})),lr(An.prototype,(function(e,t){var n=En[t];if(n){var r=n.name+"";Se.call(vn,r)||(vn[r]=[]),vn[r].push({name:t,func:n})}})),vn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Di(e),r=t<0,o=n?e.length:0,s=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},En.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=Es(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},En.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Bs],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Bs)},En.prototype.toJSON=En.prototype.valueOf=En.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},En.prototype.first=En.prototype.head,Qe&&(En.prototype[Qe]=function(){return this}),En}();Ke._=Gt,void 0===(o=function(){return Gt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/mapValues.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),s=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var n={};return t=s(t,3),o(e,(function(e,o,s){r(n,o,t(e,o,s))})),n}},"./MapStore2/node_modules/lodash/memoize.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},"./MapStore2/node_modules/lodash/mergeWith.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseMerge.js"),o=n("./MapStore2/node_modules/lodash/_createAssigner.js")((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},"./MapStore2/node_modules/lodash/noop.js":function(e,t){e.exports=function(){}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/node_modules/lodash/pick.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_basePick.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js")((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},"./MapStore2/node_modules/lodash/property.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseProperty.js"),o=n("./MapStore2/node_modules/lodash/_basePropertyDeep.js"),s=n("./MapStore2/node_modules/lodash/_isKey.js"),i=n("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e){return s(e)?r(i(e)):o(e)}},"./MapStore2/node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./MapStore2/node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./MapStore2/node_modules/lodash/toFinite.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./MapStore2/node_modules/lodash/toInteger.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},"./MapStore2/node_modules/lodash/toNumber.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isObject.js"),o=n("./MapStore2/node_modules/lodash/isSymbol.js"),s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"./MapStore2/node_modules/lodash/toPlainObject.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,o(e))}},"./MapStore2/node_modules/lodash/toString.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"./MapStore2/node_modules/lodash/union.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseUniq.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,1,i,!0))}));e.exports=a},"./MapStore2/node_modules/lodash/without.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseDifference.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),i=o((function(e,t){return s(e)?r(e,t):[]}));e.exports=i},"./MapStore2/node_modules/lodash/wrapperLodash.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_LazyWrapper.js"),o=n("./MapStore2/node_modules/lodash/_LodashWrapper.js"),s=n("./MapStore2/node_modules/lodash/_baseLodash.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isObjectLike.js"),l=n("./MapStore2/node_modules/lodash/_wrapperClone.js"),u=Object.prototype.hasOwnProperty;function c(e){if(a(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return l(e)}return new o(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},"./MapStore2/node_modules/lodash/xor.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=n("./MapStore2/node_modules/lodash/_baseRest.js"),s=n("./MapStore2/node_modules/lodash/_baseXor.js"),i=n("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(r(e,i))}));e.exports=a},"./MapStore2/web/client/actions/browser.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="CHANGE_BROWSER_PROPERTIES",o=function(e){return{type:r,newProperties:e}}},"./MapStore2/web/client/actions/controls.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o="TOGGLE_CONTROL",s="SET_CONTROL_PROPERTY",i="SET_CONTROL_PROPERTIES",a="RESET_CONTROLS";function l(e,t){return{type:o,control:e,property:t}}function u(e,t,n,r){return{type:s,control:e,property:t,value:n,toggle:r}}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[];return{type:a,skip:e}}},"./MapStore2/web/client/actions/localConfig.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="LOCAL_CONFIG_LOADED";function o(e){return{type:r,config:e}}},"./MapStore2/web/client/actions/locale.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/es6-promise/dist/es6-promise.js"),s=n("./MapStore2/web/client/libs/ajax.js"),i=n.n(s),a=n("./MapStore2/web/client/actions/notifications.js"),l=n("./MapStore2/web/client/utils/LocaleUtils.js"),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c="CHANGE_LOCALE",d="LOCALE_LOAD_ERROR";function f(e){return{type:c,messages:e.messages,locale:e.locale}}function p(e){return{type:d,error:e}}function m(e,t){return function(n){var s=t;s||(s=Object(l.h)());var c=Object(r.castArray)(e||u.default.getConfigProp("translationsPath"));o.Promise.all(c.map((function(e){return i.a.get(e+"/data.".concat(s,".json")).catch((function(e){return e}))}))).then((function(e){var o=e.filter((function(e){return 200===e.status}));if(e.filter((function(e){return 404!==e.status&&200!==e.status})).length>0||0===o.length){var s=e[0];n(p(s)),n(Object(a.f)({title:"notification.warning",message:0===o.length?"localeErrors.404":"Error loading locale",action:{label:"notification.warning"},position:"tc"}))}else n(f(o.reduce((function(e,o){if("string"==typeof o.data){try{JSON.parse(o.data)}catch(e){n(p("Locale file broken for ("+t+"): "+e.message))}return e}return Object(r.merge)(e,o.data)}),{})))}))}}},"./MapStore2/web/client/actions/maps.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"o",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"y",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"t",(function(){return h})),n.d(t,"q",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"u",(function(){return g})),n.d(t,"x",(function(){return v})),n.d(t,"v",(function(){return j})),n.d(t,"d",(function(){return _})),n.d(t,"w",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"p",(function(){return S})),n.d(t,"b",(function(){return M})),n.d(t,"s",(function(){return O})),n.d(t,"r",(function(){return k})),n.d(t,"K",(function(){return E})),n.d(t,"D",(function(){return T})),n.d(t,"z",(function(){return L})),n.d(t,"N",(function(){return P})),n.d(t,"B",(function(){return A})),n.d(t,"M",(function(){return D})),n.d(t,"E",(function(){return C})),n.d(t,"J",(function(){return F})),n.d(t,"C",(function(){return N})),n.d(t,"F",(function(){return I})),n.d(t,"I",(function(){return R})),n.d(t,"G",(function(){return Y})),n.d(t,"H",(function(){return z})),n.d(t,"L",(function(){return H})),n.d(t,"A",(function(){return U}));n("./MapStore2/web/client/api/GeoStoreDAO.js");var r="MAPS_LIST_LOADED",o="MAPS_LIST_LOADING",s="MAPS_LIST_LOAD_ERROR",i="MAPS_GET_MAP_RESOURCES_BY_CATEGORY",a="MAPS_LOAD_MAP",l="MAP_UPDATING",u="MAP_CREATED",c="MAP_DELETING",d="MAP_DELETED",f="ATTRIBUTE_UPDATED",p="THUMBNAIL_ERROR",m="MAP_ERROR",h="SAVING_MAP",b="PERMISSIONS_LIST_LOADING",y="MAPS_SEARCH_TEXT_CHANGED",g="MAPS:SEARCH_FILTER_CHANGED",v="MAPS:SET_SEARCH_FILTER",j="MAPS:SEARCH_FILTER_CLEAR_ALL",_="MAPS:LOAD_CONTEXTS",x="MAPS:SET_CONTEXTS",w="MAPS:LOADING",S="METADATA_CHANGED",M="MAPS:DELETE_MAP",O="SAVE_MAP_RESOURCE",k="MAPS:RELOAD_MAPS";function E(e,t){return{type:o,searchText:e,params:t}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,limit:12};return{type:a,geoStoreUrl:e,searchText:t,params:n}}function L(e,t,n,r){return{type:i,map:e,searchText:t,opts:n,searchFilter:r}}function P(e){return{type:v,searchFilter:e}}function A(e,t,n,r){return{type:_,searchText:e,options:t,delayLoad:n,force:r}}function D(e){return{type:x,contexts:e}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:w,name:t,value:e}}function F(e,t,n){return{type:r,params:t,maps:e,searchText:n}}function N(e){return{type:s,error:e}}function I(e,t,n,r){return{type:u,resourceId:e,metadata:t,content:n,error:r}}function R(e){return{type:l,resourceId:e}}function Y(e,t,n){return{type:d,resourceId:e,result:t,error:n}}function z(e,t,n){return{type:c,resourceId:e,result:t,error:n}}function H(e){return{type:h,metadata:e}}var U=function(){return{type:"FEATURED_MAPS:INVALIDATE"}}},"./MapStore2/web/client/actions/notifications.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";return o(o({type:i},e),{},{uid:e.uid||Date.now(),level:t})}function c(e){return{type:a,uid:e}}function d(e){return u(e,"success")}function f(e){return u(e,"error")}function p(e){return u(e,"warning")}function m(e){return u(e,"info")}function h(){return{type:l}}function b(e){return e}},"./MapStore2/web/client/actions/print.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return j})),n.d(t,"n",(function(){return _})),n.d(t,"s",(function(){return x})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return M}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function s(e){return(s="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)}var i="PRINT_CAPABILITIES_LOADED",a="PRINT_CAPABILITIES_ERROR",l="SET_PRINT_PARAMETER",u="CONFIGURE_PRINT_MAP",c="CHANGE_PRINT_ZOOM_LEVEL",d="CHANGE_MAP_PRINT_PREVIEW",f="PRINT_SUBMITTING",p="PRINT_ERROR",m="PRINT_CREATED",h="PRINT_CANCEL";function b(){return{type:f}}function y(){return{type:h}}function g(e){return{type:a,error:e}}function v(e){return{type:p,error:e}}function j(e,t){return function(n){return o.a.post(e,t).then((function(e){if("object"===s(e.data))n(function(e){return{type:m,url:e}}(e.data&&e.data.getURL));else try{JSON.parse(e.data)}catch(e){n(v("Error on reading print result: "+e.data))}})).catch((function(e){n(v("Error on printing: "+e.data))}))}}function _(e){return function(t){return o.a.get(e).then((function(n){if("object"===s(n.data))t((r=n.data,{type:i,capabilities:r}));else try{JSON.parse(n.data)}catch(n){t(g("Print configuration broken ("+e+"): "+n.data))}var r})).catch((function(n){t(g("Print configuration not available ("+e+"): "+n.data))}))}}function x(e,t){return{type:l,name:e,value:t}}function w(e,t,n,r,o,s,i){return{type:u,center:e,zoom:t,scaleZoom:n,scale:r,layers:o,projection:s,currentLocale:i}}function S(e,t){return{type:c,zoom:e,scale:t}}function M(e,t,n,r,o,s){return{type:d,center:e,zoom:t,bbox:n,size:r,mapStateSource:o,projection:s}}},"./MapStore2/web/client/actions/security.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return c}));n("./MapStore2/web/client/api/GeoStoreDAO.js"),n("./MapStore2/web/client/utils/SecurityUtils.js"),n("./MapStore2/web/client/actions/maps.js"),n("./MapStore2/web/client/utils/ConfigUtils.js");var r="LOGIN_SUCCESS",o="LOGIN_FAIL",s="RESET_ERROR",i="CHANGE_PASSWORD_SUCCESS",a="CHANGE_PASSWORD_FAIL",l="LOGOUT",u="REFRESH_SUCCESS",c="SESSION_VALID"},"./MapStore2/web/client/api/GeoStoreDAO.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/uuid/v1.js"),a=n.n(i),l=n("./node_modules/xml2js/lib/xml2js.js"),u=n.n(l),c=n("./MapStore2/web/client/libs/ajax.js"),d=n.n(c),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js");function m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes||Object(r.omit)(e,["name","description","id"]),n=Object.keys(t).map((function(e){return""+e+""+t[e]+"STRING"})),o="";return n.length>0&&(o=""+n.join("")+""),o},w=function(e){return e?"true":"false"},S={mapsError:function(e){return 403===e.status||404===e.status||409===e.status||500===e.status?{title:"map.mapError.errorTitle",message:"map.mapError.error"+e.status}:{title:"map.mapError.errorTitle",message:"map.mapError.errorDefault"}}};Object(p.i)("geostore",g({},S));var M={createAttributeList:x,generateMetadata:_,authProviderName:"geostore",addBaseUrl:function(e){return s()({},e,{baseURL:e&&e.baseURL||f.default.getDefaults().geoStoreUrl})},getData:function(e,t){var n="data/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getResource:function(e,t){return d.a.get("resources/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourceIdByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t,this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data.Resource.id")}))},getResourceDataByName:function(e,t,n){return d.a.get("misc/category/name/"+e+"/resource/name/"+t+"/data",this.addBaseUrl(n)).then((function(e){return Object(r.get)(e,"data")}))},getShortResource:function(e,t){return d.a.get("extjs/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourcesByCategory:function(e,t,n){var r="extjs/search/category/"+e+"/*"+(t||"*")+"*/thumbnail,details,featured";return d.a.get(r,this.addBaseUrl(n)).then((function(e){return e.data}))},createCategory:function(e){return d.a.post("categories","".concat(e,""),this.addBaseUrl({headers:{"Content-Type":"application/xml"}})).then((function(e){return e.data}))},getUserDetails:function(e,t,n){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({auth:{username:e,password:t},params:{includeattributes:!0}},n))).then((function(e){return e.data}))},login:function(e,t,n){var o,s=this;return d.a.post("session/login",null,this.addBaseUrl(Object(r.merge)(e&&t?{auth:{username:e,password:t}}:{},n))).then((function(e){return o=e.data,d.a.get("users/user/details",s.addBaseUrl(Object(r.merge)({headers:{Authorization:"Bearer "+e.data.access_token},params:{includeattributes:!0}},n)))})).then((function(e){return g(g({},e.data),o)}))},changePassword:function(e,t,n){return d.a.put("users/user/"+e.id,""+t+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},updateResourceAttribute:function(e,t,n,o,s){return d.a.put("resources/resource/"+e+"/attributes/",{restAttribute:{name:t,value:n}},this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/json"}},s)))},getResourceAttribute:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.a.get("resources/resource/"+e+"/attributes/"+t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},getResourceAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.a.get("resources/resource/"+e+"/attributes",this.addBaseUrl(g({headers:{Accept:"application/json"}},t))).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data;return t})).then((function(e){return Object(r.castArray)(Object(r.get)(e,"AttributeList.Attribute")||[])})).then((function(e){return e||[]}))},getResourcePermissions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return M.getPermissions(e,t).then((function(e){return Object(r.castArray)(n?Object(r.get)(e,"SecurityRuleList.SecurityRule"):e)})).then((function(e){return e&&e[0]&&""!==e[0]?e:[]}))},putResourceMetadata:function(e,t,n,o){return d.a.put("resources/resource/"+e,""+_(t,n)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},putResourceMetadataAndAttributes:function(e,t,n){return d.a.put("resources/resource/"+e,""+_(t.name,t.description)+x(t)+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},n)))},putResource:function(e,t,n){return d.a.put("data/"+e,t,this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"string"==typeof t?"text/plain; charset=utf-8":'application/json; charset=utf-8"'}},n)))},writeSecurityRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+(Object(r.castArray)(e.SecurityRule)||[]).map((function(e){if(e.canRead||e.canWrite){if(e.user)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.user.id||"")+""+(e.user.name||"")+"";if(e.group)return""+w(e.canRead||e.canWrite)+""+w(e.canWrite)+""+(e.group.id||"")+""+(e.group.groupName||"")+""}return""})).join("")+""},updateResourcePermissions:function(e,t){var n=M.writeSecurityRules(t.SecurityRuleList);return d.a.post("resources/resource/"+e+"/permissions",n,this.addBaseUrl({headers:{"Content-Type":"application/xml"}}))},createResource:function(e,t,n,o){var s=e.name,i=e.description||"",a=x(e);return d.a.post("resources/",""+_(s,i)+""+(n||"")+""+a+"",this.addBaseUrl(Object(r.merge)({headers:{"Content-Type":"application/xml"}},o)))},deleteResource:function(e,t){return d.a.delete("resources/resource/"+e,this.addBaseUrl(Object(r.merge)({},t)))},getUserGroups:function(e){return d.a.get("usergroups/",this.addBaseUrl(e)).then((function(e){return e.data}))},getPermissions:function(e,t){var n="resources/resource/"+e+"/permissions";return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getAvailableGroups:function(e){return e&&"ADMIN"===e.role?d.a.get("usergroups/?all=true&users=false",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return function(e){if(!e||!e.UserGroupList||!e.UserGroupList.UserGroup)return[];var t=function(e){return Object(r.pick)(e,["id","groupName","description"])};return Object(r.isArray)(e.UserGroupList.UserGroup)?e.UserGroupList.UserGroup.filter((function(e){return!!e.id})).map(t):[t(e.UserGroupList.UserGroup)]}(e.data)})):d.a.get("users/user/details",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return(t=e.data)&&t.User&&t.User.groups&&t.User.groups.group&&Object(r.isArray)(t.User.groups.group)?t.User.groups.group.filter((function(e){return!!e.id})).map((function(e){return Object(r.pick)(e,["id","groupName","description"])})):Object(r.has)(t.User.groups.group,"id","groupName")?[t.User.groups.group]:[];var t}))},getUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/users"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{params:{includeattributes:!0}},n="users/user/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},updateUser:function(e,t,n){var r="users/user/"+e,o=s()({},t);return""===o.newPassword&&delete o.newPassword,d.a.put(r,{User:o},this.addBaseUrl(n)).then((function(e){return e.data}))},createUser:function(e,t){return d.a.post("users/",{User:M.utils.initUser(e)},this.addBaseUrl(t)).then((function(e){return e.data}))},deleteUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="users/user/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroups:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="extjs/search/groups"+(e?"/"+e:"");return d.a.get(n,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.get(n,this.addBaseUrl(t)).then((function(e){var t=e.data.UserGroup,n=t&&t.restUsers&&t.restUsers.User;return g(g({},t),{},{users:n&&(Array.isArray(n)?n:[n])||[]})}))},createGroup:function(e,t){var n;return d.a.post("usergroups/",{UserGroup:g({},e)},this.addBaseUrl(t)).then((function(r){return n=r.data,M.updateGroupMembers(g(g({},e),{},{id:n}),t)})).then((function(){return n}))},updateGroupMembers:function(e,t){var n=this;if(e.newUsers){var o=e.users||e.restUsers&&e.restUsers.User||[],s=(o=Array.isArray(o)?o:[o]).filter((function(t){return Object(r.findIndex)(e.newUsers,(function(e){return e.id===t.id}))<0})),i=e.newUsers.filter((function(e){return Object(r.findIndex)(o,(function(t){return t.id===e.id}))<0})),a=s.map((function(r){return function(){return n.removeUserFromGroup(r.id,e.id,t)}})),l=i.map((function(t){return function(){return n.addUserToGroup(t.id,e.id)}}),t),u=[].concat(m(a.map((function(e){return e.call(n)}))),m(l.map((function(e){return e()}))));return d.a.all(u).then((function(){return g(g({},e),{},{newUsers:null,restUsers:{User:e.newUsers},users:e.newUsers})}))}return new Promise((function(t){t(g({},e))}))},deleteGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="usergroups/group/"+e;return d.a.delete(n,this.addBaseUrl(t)).then((function(e){return e.data}))},addUserToGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.post(r,null,this.addBaseUrl(n))},removeUserFromGroup:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/usergroups/group/"+e+"/"+t+"/";return d.a.delete(r,this.addBaseUrl(n))},verifySession:function(e){return d.a.get("users/user/details",this.addBaseUrl(Object(r.merge)({params:{includeattributes:!0}},e))).then((function(e){return e.data}))},refreshToken:function(e,t,n){var r="session/refresh/"+e+"/"+t;return d.a.post(r,null,this.addBaseUrl(n)).then((function(e){return e.data}))},searchListByAttributes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/extjs/search/list",r=j.buildObject(e);return d.a.post(n,r,M.addBaseUrl(g(g({},t),{},{headers:{"Content-Type":"application/xml",Accept:"application/json"}}))).then((function(e){return e.data}))},utils:{initUser:function(e){var t=s()({},e);t.newPassword&&(t.password=t.newPassword);var n={name:"UUID",value:a()()};return t.attribute=t.attribute&&t.attribute.length>0?[].concat(m(t.attribute),[n]):[n],t}},errorParser:S};t.a=M},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s);function a(e){return(a="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 n=0;n1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,o){return"string"==typeof t[o]?c(g({},n+o,t[o]),r):c(c({},e.flattenMessages(t[o],n+o+".")),r)}),{})})),e}return t=s,(n=[{key:"getChildContext",value:function(){return{locale:this.props.locale,messages:this.props.messages}}},{key:"render",value:function(){var e=this.props.children;return this.props.messages&&this.props.locale?("function"==typeof e&&(e=e()),i.a.createElement(a.IntlProvider,{key:this.props.locale,locale:this.props.locale,messages:this.flattenMessages(this.props.messages)},e)):this.props.loadingError?i.a.createElement("div",{className:"loading-locale-error"},this.props.loadingError):null}}])&&f(t.prototype,n),r&&f(t,r),s}(i.a.Component);g(v,"propTypes",{locale:o.a.string,messages:o.a.object,loadingError:o.a.string}),g(v,"childContextTypes",{locale:o.a.string,messages:o.a.object}),t.a=v},"./MapStore2/web/client/components/I18N/Message.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/react-intl/lib/index.es.js"),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=function(){var e=t.targetId,r=void 0===e?"container":e,s=t.initialState,a=void 0===s?{defaultState:{},mobile:{}}:s,d=t.appReducers,f=void 0===d?{}:d,p=t.appEpics,m=void 0===p?{}:p,h=t.rootReducerFunc,b=l.default.bind(null,{initialState:a,appReducers:f,appEpics:m,rootReducerFunc:h}),y=n||u.a;i.a.render(o.a.createElement(y,c({},t,{appStore:b})),document.getElementById(r))};e.Intl?r():Object(a.a)(r)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./MapStore2/web/client/components/development/Debug.jsx":function(e,t,n){"use strict";(function(e){var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/url/url.js"),i=n.n(s);function a(e){return(a="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 n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ni.width?(d(e),g.current.x=e,S("center")):e>=0?(d(0),g.current.x=0,S("start")):l<=i.width&&(d(i.width-s.width),g.current.x=i.width-s.width,S("end"))}if("vertical"===n){var u=t+s.height;t<0&&u>i.height?(y(t),g.current.y=t,S("center")):t>=0?(y(0),g.current.y=0,S("start")):u<=i.height&&(y(i.height-s.height),g.current.y=i.height-s.height,S("end"))}setTimeout((function(){k("move:end")}),a)}function P(){var e=E.current,t=e.parentNode,r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return!("horizontal"===n&&o.width>=r.width||"vertical"===n&&o.height>=r.height)}Object(r.useEffect)((function(){function e(e){var t=P();return _(P()),t?L(g.current.x-(e.deltaY>0?o:-o),g.current.y-(e.deltaY>0?o:-o)):null}var t=P();_(t);var n=E.current.parentNode;return t&&L(g.current.x,g.current.y),t&&n&&n.addEventListener&&n.addEventListener("wheel",e),function(){t&&n&&n.removeEventListener&&n.removeEventListener("wheel",e)}}),[s,i]);var A=Object(l.a)({onSwiping:function(e){e.event.stopPropagation();var t=P();return _(P()),t?L(c-e.deltaX*e.velocity,b-e.deltaY*e.velocity):null},trackTouch:!0,trackMouse:!0});function D(e,t){T.current=p(p({},T.current),{},m({},e,t))}function C(e){var t=T.current[e];if(t){var r=E.current,o=(r&&r.parentNode).getBoundingClientRect(),s=t.getBoundingClientRect();if("horizontal"===n){var i=o.width,a=o.left,l=s.width,u=s.left,c=a+i,d=u+l;return a<=u&&c>=u||a<=d&&c>=d}}return!1}return{status:O,canSwipe:j,isStartControlActive:j&&("end"===w||"center"===w),isEndControlActive:j&&("start"===w||"center"===w),positionLabel:w,coordinates:{x:c,y:b},containerPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t;return p(p({},A),{},{style:p({position:"relative",overflow:"hidden",width:"100%",height:"100%"},n)})},contentPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=void 0===t?{}:t;return{ref:E,style:p(p(p(p({position:"absolute",display:"flex"},a&&{transition:"transform ".concat(a,"ms ease 0s")}),{},{flexDirection:"horizontal"===n?"row":"column"},j&&"horizontal"===n&&{transform:"translateX(".concat(c,"px)")}),j&&"vertical"===n&&{transform:"translateY(".concat(b,"px)")}),r)}},itemPropsHandlers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.onClick;return p({key:t,ref:function(e){return e&&D(t,e)}},n?{onClick:n,tabindex:C(t)?0:-1,onKeyDown:function(e){"Enter"===e.key&&n()}}:{tabindex:-1})},updateCoordinates:L,moveItemInViewById:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.margin,o=void 0===r?0:r,s=T.current[e];if(s){var i=E.current,a=i&&i.parentNode,l=a.getBoundingClientRect(),u=s.getBoundingClientRect();if("horizontal"===n){var c=l.width,d=l.left,f=u.width,p=u.left,m=d+c,h=p+f,b=d<=p&&m>=h;if(!b){var y=i.getBoundingClientRect(),g=y.left;L(-(p-g)+o,void 0)}}}},moveToDeltaSize:function(e){L(c+e,b+e)}}};t.a=Object(u.a)((function(e){var t=e.currentPage,n=e.items,i=e.scrollTo,l=void 0===i?function(){}:i,u=e.width,f=e.height,p=e.deltaSwipeSize,m=void 0===p?200:p,h=e.transition,b=void 0===h?300:h,v=e.updateTimeDebounceTime,j=void 0===v?500:v,_=e.getItemStyle,x=void 0===_?function(){return{}}:_,w=g({direction:"horizontal",width:u,height:f,transition:b,deltaScroll:m}),S=w.isStartControlActive,M=w.isEndControlActive,O=w.containerPropsHandlers,k=w.contentPropsHandlers,E=w.itemPropsHandlers,T=w.moveToDeltaSize,L=w.moveItemInViewById,P=t&&t.columns&&t.sectionId&&t.columns[t.sectionId]||t&&t.sectionId,A=Object(r.useRef)(null);return Object(r.useEffect)((function(){return A.current=a()((function(e){L(e,{margin:32})}),j),function(){A.current&&(A.current.cancel(),A.current=null)}}),[]),Object(r.useEffect)((function(){A.current&&(A.current.cancel(),A.current(P))}),[P]),o.a.createElement("div",d({},O(),{className:"ms-horizontal-menu"}),o.a.createElement("div",k(),n.map((function(e){var n=e.title,r=e.id,s=E({id:r,onClick:function(){t&&t.sectionId!==r&&l(r)}});return o.a.createElement("div",d({},s,{className:"ms-menu-item"}),o.a.createElement(y,{tabindex:"-1",id:r,text:n||"title",selected:r===P,style:x(r===P)}))}))),S&&o.a.createElement(c.a,{className:"square-button-md no-border",style:{position:"absolute"},onClick:function(){return T(m)}},o.a.createElement(s.Glyphicon,{glyph:"chevron-left"})),M&&o.a.createElement(c.a,{className:"square-button-md no-border",style:{position:"absolute",right:0},onClick:function(){return T(-m)}},o.a.createElement(s.Glyphicon,{glyph:"chevron-right"})))}))},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./MapStore2/node_modules/lodash/lodash.js");function l(e){return(l="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 u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,s.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,i=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return s.a.createElement(c,l({ref:t,className:n?a()("disabled",r):r,onClick:function(){n||i.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),s=n.n(o),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(i.isArray)(t))return t.map((function(o){var s=Object(r.f)(e,o[n]||Object(i.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(i.isNil)(s)?t:s))}));var o=Object(r.f)(e,t);return Object(i.isNil)(o)?t:o},p=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&f(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(a.compose)(Object(a.getContext)({messages:s.a.object}),Object(a.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(i.castArray)(e).reduce(p(o,r,t),{}))})))}},"./MapStore2/web/client/components/theme/Theme.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),s=n("./node_modules/react/index.js"),i=n.n(s),a=n("./node_modules/react-side-effect/lib/index.js"),l=n.n(a),u=n("./MapStore2/web/client/utils/ConfigUtils.js"),c=n("./MapStore2/web/client/selectors/version.js"),d=n("./MapStore2/node_modules/lodash/lodash.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{user:null,errorCause:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"USERMANAGER_UPDATE_USER":return e.user&&t.user&&e.user.id===t.user.id?l()({},e,{user:Object(s.cloneDeep)(t.user)}):e;case o.c:return"ResetPassword"===t.control&&"enabled"===t.property?l()({},e,{passwordChanged:!1,passwordError:null}):e;case r.d:var n=Object(i.getUserAttributes)(t.userDetails.User),a=Object(s.head)(n.filter((function(e){return"uuid"===e.name.toLowerCase()}))),u=new Date/1e3|0;return l()({},e,{user:t.userDetails.User,token:t.userDetails&&t.userDetails.access_token||a&&a.value,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?u+t.userDetails.expires:u+172800,authHeader:t.authHeader,loginError:null});case r.f:var c=new Date/1e3|0;return l()({},e,{token:t.userDetails&&t.userDetails.access_token,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?c+t.userDetails.expires:c+172800});case r.c:return l()({},e,{loginError:t.error});case r.g:return l()({},e,{loginError:null});case r.e:return l()({},e,{user:null,token:null,refresh_token:null,expires:null,authHeader:null,loginError:null});case r.b:return l()({},e,{user:l()({},e.user,l()({},t.user,{date:(new Date).getTime()})),authHeader:t.authHeader,passwordChanged:!0,passwordError:null});case r.a:return l()({},e,{passwordError:t.error,passwordChanged:!1});case r.h:return l()({},e,{user:t.userDetails.User,loginError:null});default:return e}}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.locale&&e.locale.current||"en-US"},i=function(e){return e.locale&&e.locale.messages||{}},a=Object(r.a)([s],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/version.js":function(e,t,n){"use strict";n.r(t),n.d(t,"versionSelector",(function(){return r})),n.d(t,"validateVersion",(function(){return o}));var r=function(e){return e.version&&e.version.current||""},o=function(e){return!(!e||-1!==e.indexOf("${mapstore2.version}")||-1!==e.indexOf("no-version"))}},"./MapStore2/web/client/stores/History.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/history/index.js"),o=Object(r.createHashHistory)();t.default=o},"./MapStore2/web/client/stores/StandardStore.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/StateUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o).a.parse(window.location.href,!0).query;var i={createDebugStore:function(e,t,n,o){return Object(r.b)({rootReducer:e,state:t,middlewares:n,enhancer:o,debug:s&&s.debug&&!1})},checkForMissingPlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(t){return e[t].default}));t.length>0&&console.error("plugin not correctly loaded: ",t)}},a=n("./MapStore2/web/client/utils/PluginsUtils.js"),l=n("./node_modules/redux-observable/lib/esm/index.js"),u=n("./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js"),c=n.n(u),d=n("./node_modules/connected-react-router/esm/index.js"),f=n("./node_modules/connected-react-router/esm/middleware.js"),p=n("./MapStore2/web/client/actions/localConfig.js"),m=n("./node_modules/object-assign/index.js"),h=n.n(m),b=n("./MapStore2/web/client/utils/ConfigUtils.js").default.getDefaults();var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a:return h()({},e,t.config);default:return e}},g=n("./MapStore2/web/client/actions/locale.js");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case g.a:return{messages:t.messages,current:t.locale};case g.b:return j(j({},e),{},{loadingError:t.error});default:return e}},w=n("./MapStore2/web/client/actions/browser.js");var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case w.a:return h()({},e,t.newProperties);default:return e}};function M(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=_.noRouter?null:n("./MapStore2/web/client/stores/History.js").default,O=Object(a.b)(j,E(E({},m),{},{localConfig:y,locale:x,locales:function(){return null},browser:S},!_.noRouter&&{router:Object(d.b)(w)})),k=Object(r.d)(Object(a.a)(j,E(E({},L),b))),T=_.initialState||{defaultState:{},mobile:{}},P=E(E({},u.defaultState),T.defaultState),A=E(E({},u.mobile),T.mobile),D=Object(r.e)(Object(l.b)(k)),C=function(e,t){return v({state:e,action:t,allReducers:O,mobileOverride:A})};_&&!1!==_.notify&&(o=c.a),_&&_.persist&&(_.persist.whitelist.forEach((function(e){var t=localStorage.getItem("mapstore2.persist."+e);t&&(P[e]=JSON.parse(t))})),_.onPersist&&setTimeout((function(){_.onPersist()}),0));var F=[D];if(!_.noRouter){var N=Object(f.a)(w);F=[].concat(M(F),[N])}if(t=i.createDebugStore(C,P,F,o),_&&_.persist){var I={};t.subscribe((function(){_.persist.whitelist.forEach((function(e){var n=t.getState()[e];n&&I[e]!==n&&(I[e]=n,localStorage.setItem("mapstore2.persist."+e,JSON.stringify(n)))}))}))}return t}},"./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$":function(e,t,n){var r={"./cesium/Layers":"./MapStore2/web/client/utils/cesium/Layers.js","./leaflet/Layers":"./MapStore2/web/client/utils/leaflet/Layers.js","./openlayers/Layers":"./MapStore2/web/client/utils/openlayers/Layers.js"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=s,e.exports=o,o.id="./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$"},"./MapStore2/web/client/utils/ConfigUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getConfigurationOptions",(function(){return k})),n.d(t,"cleanDuplicatedQuestionMarks",(function(){return E})),n.d(t,"getUrlWithoutParameters",(function(){return T})),n.d(t,"filterUrlParams",(function(){return L})),n.d(t,"getParsedUrl",(function(){return P})),n.d(t,"getDefaults",(function(){return A})),n.d(t,"setLocalConfigurationFile",(function(){return D})),n.d(t,"loadConfiguration",(function(){return C})),n.d(t,"getCenter",(function(){return F})),n.d(t,"setApiKeys",(function(){return N})),n.d(t,"setLayerId",(function(){return I})),n.d(t,"replacePlaceholders",(function(){return R})),n.d(t,"setUrlPlaceholders",(function(){return Y})),n.d(t,"normalizeConfig",(function(){return z})),n.d(t,"getUserConfiguration",(function(){return H})),n.d(t,"getConfigUrl",(function(){return U})),n.d(t,"setupSources",(function(){return B})),n.d(t,"normalizeSourceUrl",(function(){return q})),n.d(t,"copySourceOptions",(function(){return W})),n.d(t,"setupLayers",(function(){return V})),n.d(t,"convertFromLegacy",(function(){return K})),n.d(t,"mergeConfigs",(function(){return G})),n.d(t,"getProxyUrl",(function(){return X})),n.d(t,"getProxiedUrl",(function(){return J})),n.d(t,"getBrowserProperties",(function(){return Z})),n.d(t,"getConfigProp",(function(){return Q})),n.d(t,"setConfigProp",(function(){return $})),n.d(t,"removeConfigProp",(function(){return ee}));var r=n("./MapStore2/web/client/libs/proj4.js"),o=n.n(r),s=n("./node_modules/prop-types/index.js"),i=n.n(s),a=n("./node_modules/url/url.js"),l=n.n(a),u=n("./node_modules/axios/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/object-assign/index.js"),p=n.n(f),m=n("./node_modules/es6-promise/dist/es6-promise.js"),h=n("./node_modules/ismobilejs/src/isMobile.js"),b=n.n(h);function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){return(g="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 v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t2){var n=t.slice(1);return t[0]+"?"+n.join("&")}return e},T=function(e,t){var n=E(e).split("?"),r="";if(n.length>=2&&n[1]){var o=n[1].split(/[&;]/g).filter((function(e){return!!e}));o.forEach((function(e,n){var s=e.split("=");if(-1===t.indexOf(s[0].toLowerCase())){var i=n===o.length-1?"":"&";r+=s.join("=")+i}}))}return r?n[0]+"?"+r:n[0]},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(d.isNil)(e)||""===e?null:T(E(e),t)},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e){var r=l.a.parse(L(e,n),!0),o=null;if(Object(d.endsWith)(r.pathname,"wfs")||Object(d.endsWith)(r.pathname,"wms")||Object(d.endsWith)(r.pathname,"ows"))return o=r.pathname.replace(/(wms|ows|wfs|wps)$/,"wps"),l.a.format(p()({},r,{search:null,pathname:o},{query:p()(j({service:"WPS"},t),r.query)}))}return null},A=function(){return j({},O)},D=function(e){M=e},C=function(){return M?c.a.get(M).then((function(e){return"object"===g(e.data)&&(O=p()({},O,e.data)),j({},O)})):new m.Promise((function(e){e(j({},O))}))},F=function(e,t){var n=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,r=e.crs||t||"EPSG:4326",s="EPSG:4326"!==r?o.a.transform(new o.a.Proj(r),x,n):n;return p()({},s,{crs:"EPSG:4326"})},N=function(e){return"bing"===e.type&&(e.apiKey=O.bingApiKey),"mapquest"===e.type&&(e.apiKey=O.mapquestApiKey),e},I=function(e,t){return e.id||(e.id=e.name+"__"+t),e},R=function(e){var t=e;return(t.match(/\{.*?\}/g)||[]).forEach((function(e){var n=O[e.substring(1,e.length-1)];void 0!==n&&(t=t.replace(e,n||""))})),t},Y=function(e){return e.url&&(Object(d.isArray)(e.url)?e.url=e.url.map((function(e){return R(e)})):e.url=R(e.url)),e},z=function(e){var t=e.layers,n=e.groups,r=e.plugins,o=y(e,["layers","groups","plugins"]);return o.center=F(o.center),{map:o,layers:t.map(N,e).map(I).map(Y),groups:n,plugins:r}},H=function(e,t,n){return k(S,e,t,n)},U=function(e){var t=e.mapId,n=t,r=e.config;try{var o=parseInt(n,10);isNaN(o)&&(r=t,n=null)}catch(e){r=t,n=null}return k({mapId:n,config:r})},B=function(e,t){var n,r=t;for(n in t||(r=O.defaultSourceType),e)e.hasOwnProperty(n)&&(e[n].ptype||(e[n].ptype=r))},q=function(e){return e&&-1!==e.indexOf("?")?e.split("?")[0]:e},W=function(e,t){if(e.baseParams=t.baseParams,t.url){var n=l.a.parse(t.url,!0);for(var r in n.query)"REQUEST"===r.toUpperCase()&&delete n.query[r];e.baseParams=p()({},e.baseParams,n.query)}e.url=q(t.url)},V=function(e,t,n){var r,o,s,i;for(o=0;o=0?s.group===O.backgroundGroup&&(s.visibility=s.visibility||!1,r&&r.visibility?s.visibility&&(r.visibility=!1,r=s):r=s):s.visibility=!1)}r&&(r.visibility=!0)},K=function(e){var t=e.map,n=e.gsSources||e.sources,r=t.layers.filter((function(e){return n[e.source]})),o=F(t.center,t.projection),s=t.zoom,i=t.maxExtent||t.extent;return B(n,e.defaultSourceType),V(r,n,["gxp_osmsource","gxp_wmssource","gxp_googlesource","gxp_bingsource","gxp_mapquestsource","gxp_olsource"]),z({center:o,zoom:s,maxExtent:i,layers:r,projection:t.projection||"EPSG:3857"})},G=function(e,t){return e.map=t.map,e.gsSources=t.gsSources||t.sources,e},X=function(e){return e.proxyUrl?e.proxyUrl:O.proxyUrl},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(0===e.indexOf("http")),r=!n&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(r){var o=window.location;n=r[1]===o.protocol&&r[3]===o.hostname;var s=r[4],i=o.port,a=0===o.protocol.indexOf("https")?443:80;s=""===s?a+"":s+"",i=""===i?a+"":i+"",n=n&&s===i}if(!n){var l=X(t);if(l){var u=[];Object(d.isObject)(l)&&(u=l.useCORS||[],l=l.url);var c=u.reduce((function(t,n){return t||0===e.indexOf(n)}),!1);if(!c)return l+encodeURIComponent(e)}}return e},Z=function(){var e="ActiveXObject"in window,t=e&&!document.addEventListener,n=e&&window.location.hash===!!window.MSInputMethodContext&&!!document.documentMode,r=navigator.userAgent.toLowerCase(),o=-1!==r.indexOf("webkit"),s=-1!==r.indexOf("chrome"),i=-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"),a=-1!==r.indexOf("phantom"),l=-1!==r.indexOf("android"),u=-1!==r.search("android [23]"),c=-1!==r.indexOf("gecko"),d=b.a.any,f=!window.PointerEvent&&window.MSPointerEvent,p=window.PointerEvent&&window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||f,m="devicePixelRatio"in window&&window.devicePixelRatio>1||"matchMedia"in window&&window.matchMedia("(min-resolution:144dpi)")&&window.matchMedia("(min-resolution:144dpi)").matches,h=document.documentElement,y=e&&"transition"in h.style,g="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!u,v="MozPerspective"in h.style,j="OTransition"in h.style,_=!window.L_DISABLE_3D&&(y||g||v||j)&&!a,x=!window.L_NO_TOUCH&&!a&&(p||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);return{ie:e,ie11:n,ielt9:t,webkit:o,gecko:c&&!o&&!window.opera&&!e,android:l,android23:u,chrome:s,safari:i,ie3d:y,webkit3d:g,gecko3d:v,opera3d:j,any3d:_,mobile:d,mobileWebkit:d&&o,mobileWebkit3d:d&&g,mobileOpera:d&&window.opera,touch:x,msPointer:f,pointer:p,retina:m}},Q=function(e){return O[e]},$=function(e,t){O[e]=t},ee=function(e){delete O[e]},te={PropTypes:{center:w,config:i.a.shape({center:w,zoom:i.a.number.isRequired}),mapStateSource:i.a.string},getParsedUrl:P,getDefaults:A,setLocalConfigurationFile:D,loadConfiguration:C,getCenter:F,normalizeConfig:z,getUserConfiguration:H,getConfigurationOptions:k,getConfigUrl:U,convertFromLegacy:K,setupSources:B,normalizeSourceUrl:q,copySourceOptions:W,setupLayers:V,mergeConfigs:G,getProxyUrl:X,cleanDuplicatedQuestionMarks:E,getUrlWithoutParameters:T,filterUrlParams:L,getProxiedUrl:J,getBrowserProperties:Z,setApiKeys:N,setUrlPlaceholders:Y,replacePlaceholders:R,setLayerId:I,getConfigProp:Q,setConfigProp:$,removeConfigProp:ee};t.default=te},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return P})),n.d(t,"getProjUrl",(function(){return D})),n.d(t,"determineCrs",(function(){return F})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return Y})),n.d(t,"reprojectExtent",(function(){return H})),n.d(t,"getPolygonFromExtent",(function(){return U})),n.d(t,"getExtentFromNormalized",(function(){return B})),n.d(t,"crsCodeTable",(function(){return q})),n.d(t,"setCrsLabels",(function(){return W})),n.d(t,"getUnits",(function(){return V})),n.d(t,"getProjectedBBox",(function(){return K})),n.d(t,"createBBox",(function(){return G})),n.d(t,"reprojectGeoJson",(function(){return X})),n.d(t,"lineIntersectPolygon",(function(){return J})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return Q})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return se})),n.d(t,"filterCRSList",(function(){return ie})),n.d(t,"calculateAzimuth",(function(){return ae})),n.d(t,"calculateDistance",(function(){return le})),n.d(t,"extendExtent",(function(){return ue})),n.d(t,"getGeoJSONExtent",(function(){return ce})),n.d(t,"isValidExtent",(function(){return de})),n.d(t,"calculateCircleCoordinates",(function(){return fe})),n.d(t,"transformLineToArcs",(function(){return pe})),n.d(t,"transformArcsToLine",(function(){return me})),n.d(t,"coordsOLtoLeaflet",(function(){return he})),n.d(t,"mergeToPolyGeom",(function(){return be})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return ge})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return je})),n.d(t,"parseString",(function(){return _e})),n.d(t,"getWMSBoundingBox",(function(){return xe})),n.d(t,"isSRSAllowed",(function(){return we})),n.d(t,"getNormalizedLatLon",(function(){return Se})),n.d(t,"isInsideVisibleArea",(function(){return Me})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return Ee})),n.d(t,"midpoint",(function(){return Te})),n.d(t,"pointObjectToArray",(function(){return Le})),n.d(t,"isPointInsideExtent",(function(){return Pe})),n.d(t,"isBboxCompatible",(function(){return Ae})),n.d(t,"extractCrsFromURN",(function(){return De})),n.d(t,"makeNumericEPSG",(function(){return Ce})),n.d(t,"makeBboxFromOWS",(function(){return Fe}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),s=n("./MapStore2/web/client/libs/proj4.js"),i=n.n(s),a=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(a),u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),f=n("./node_modules/@turf/line-intersect/index.js"),p=n.n(f),m=n("./node_modules/@turf/polygon-to-linestring/index.js"),h=n.n(m),b=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),g=n.n(y),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),j=n("./node_modules/@turf/boolean-overlap/main.es.js"),_=n("./node_modules/@turf/boolean-contains/main.es.js");function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return A(e,t)}));var n}var D=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function C(e,t,n){if(null===e)return e;var r=Object(d.cloneDeep)(e);return"Feature"===e.type?r.geometry=C(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return C(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return C(e,t,n)})):t&&t(r),n&&n(r),r}function F(e){return"string"==typeof e||e instanceof String?i.a.defs(e)?new i.a.Proj(e):null:e}var N={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},R=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},Y=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&i.a.defs(t)?new i.a.Proj(t):null,s=n&&i.a.defs(n)?new i.a.Proj(n):null;if(o&&s){var a=Object(d.isArray)(e)?i.a.toPoint(e):i.a.toPoint([e.x,e.y]),l=c()({},t===n?R(a):i.a.transform(o,s,R(a)),{srs:n});return r?I(l):l}return null},z=["EPSG:900913","EPSG:4326","EPSG:3857"],H=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[Y([e[0],e[1]],"EPSG:4326",t),Y([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[])})):[Y([e[0],e[1]],"EPSG:4326",t),Y([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[])},U=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},B=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[Y([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),Y([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(M(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,s=t*r[1]/2,i=Math.cos(n),a=Math.sin(n),l=o*i,u=o*a,c=s*i,d=s*a,f=e.x,p=e.y,m=f-l+d,h=f-l-d,b=f+l-d,y=f+l+d,g=p-u-c,v=p-u+c,j=p+u+c,_=p+u-c,x=T.createBBox(Math.min(m,h,b,y),Math.min(g,v,j,_),Math.max(m,h,b,y),Math.max(g,v,j,_));return x},G=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=F(r)),"string"==typeof o&&(o=F(o));var s=L(r,o);return C(e,(function(e){e.crs&&delete e.crs,e.coordinates=A(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return s.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],C(e,(function(e){A(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},J=function(e,t){var n=h()(t).features[0];return 0!==p()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var s=[];for(var i in r)if(r.hasOwnProperty(i)){var a=T.reproject(r[i],t,n,o);if(!a)return null;var l=a.x,u=a.y;s.push(l),s.push(u)}return s},$=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,s=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,s],[o,s],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?T.getCompatibleSRS(n,t):n},oe=function(e,t){return t[T.getCompatibleSRS(e,t)]},se=function(){var e={};for(var t in i.a.defs)i.a.defs.hasOwnProperty(t)&&(e[t]={label:N[t]||t});return e},ie=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return c()({},-1===t.indexOf(r)?n:w(w({},n),{},S({},r,e[r])))}),{}),s=r.map((function(e){return e.code})),i=Object.keys(n).reduce((function(e,t){return c()({},-1===s.indexOf(t)?e:w(w({},e),{},S({},t,n[t])))}),{});return c()({},o,i)},ae=function(e,t,n){var r=T.reproject(e,n,"EPSG:4326"),o=T.reproject(t,n,"EPSG:4326"),s=r.x*Math.PI/180,i=r.y*Math.PI/180,a=o.x*Math.PI/180,l=o.y*Math.PI/180,u=a-s,c=Math.sin(u)*Math.cos(l),d=Math.cos(i)*Math.sin(l)-Math.sin(i)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,d)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(P).indexOf(t)?P[t](e):0},ue=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},ce=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=T.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return T.getGeoJSONExtent(e.geometry)}return n},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},fe=function(e,t,n,r){var o,s,i,a=Math.PI*(1/n-.5);r&&(a+=r/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(T.transformArcsToLine(Object(d.slice)(e,t))):[]},he=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},be=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(z.filter((function(e){return e===t})))){var n=B(e,t),r=n.extent,o=n.isIDL,s=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var i=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:s,extent:r,center:[i=i>180?i-360:i,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:s[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var a=[e.minx,e.miny,e.maxx,e.maxy],l=[a[0],a[1]],u=[a[2],a[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:a,center:[(a[0]+a[2])/2,(a[1]+a[3])/2]}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=T.getViewportGeometry(t,n),s=o.extent;if(4===s.length)return T.reprojectBbox(s,n,r);var i=s.map((function(e){return e[2]-e[0]})),a=O(i,2),l=a[0],u=a[1];return l>u?T.reprojectBbox(s[0],n,r):T.reprojectBbox(s[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||D(n),null,{timeout:2e3})},je=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(d.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},_e=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},xe=function(e,t){var n=t||"EPSG:3857",r=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&T.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(d.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},we=function(e){return!!i.a.defs(e)},Se=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:T.normalizeLng(n)}},Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=Y([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var i=T.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),a=w({left:0,right:0,top:0,bottom:0},n),l={minx:i[0]+a.left*r,miny:i[1]+a.bottom*r,maxx:i[2]-a.right*r,maxy:i[3]-a.top*r},u=T.getViewportGeometry(l,t.projection),c=4===u.extent.length?[M(u.extent)]:M(u.extent);return Object(d.head)(c.map((function(e){return s.x>=e[0]&&s.y>=e[1]&&s.x<=e[2]&&s.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=Y([o.lng,o.lat],"EPSG:4326",t.projection),i=w({left:0,right:0,top:0,bottom:0},n),a={width:(t.size.width-i.right-i.left)*r,height:(t.size.height-i.top-i.bottom)*r},l={minx:s.x-a.width/2-i.left*r,miny:s.y-a.height/2-i.bottom*r,maxx:s.x+a.width/2+i.right*r,maxy:s.y+a.height/2+i.top*r},u=T.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:Y([u.extent[0]+t.size.width/2*r,u.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=Y([u.extent[0][2]-t.size.width/2*r,u.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),d=w(w({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:Y([u.extent[1][0]+t.size.width/2*r,u.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,s=Object(d.isArray)(n)?n:[n.x,n.y];if(Object(d.isNumber)(s[0])&&!isNaN(s[0])&&Object(d.isNumber)(s[1])&&!isNaN(s[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var i=Object(d.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,a=i&&(Object(d.isArray)(i)?i:[i.x,i.y]);return Object(d.isArray)(a)?Math.sqrt((s[0]-a[0])*(s[0]-a[0])+(s[1]-a[1])*(s[1]-a[1])):o}return o},Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,s=e.maximumFractionDigits,i=void 0===s?0:s;return 0===i&&Math[n]?Math[n](o):o},Te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,s={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[s.x,s.y]:s},Le=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(_.a)(U(t),g()([e.lng,e.lat]))},Ae=function(e,t){return Object(j.a)(e,t)||Object(_.a)(e,t)||Object(_.a)(t,e)},De=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Ce=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=q[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Fe=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var s=n.slice(),i=r.slice();n=[i[0],s[1]],r=[s[0],i[1]]}return[n[0],n[1],r[0],r[1]]};T={setCrsLabels:W,getUnits:V,reproject:Y,getProjectedBBox:K,createBBox:G,reprojectGeoJson:X,lineIntersectPolygon:J,normalizePoint:I,normalizeLng:Z,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:se,filterCRSList:ie,calculateAzimuth:ae,calculateDistance:le,FORMULAS:P,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:de,calculateCircleCoordinates:fe,transformLineToArcs:pe,transformArcsToLine:me,coordsOLtoLeaflet:he,mergeToPolyGeom:be,getViewportGeometry:ye,getProjUrl:D,getExtentFromViewport:ge,fetchProjRemotely:ve,parseURN:je,determineCrs:F,parseString:_e,getWMSBoundingBox:xe,isSRSAllowed:we,getNormalizedLatLon:Se,isInsideVisibleArea:Me,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:Ee,midpoint:Te,pointObjectToArray:Le,getExtentFromNormalized:B,getPolygonFromExtent:U,isPointInsideExtent:Pe,isBboxCompatible:Ae,extractCrsFromURN:De,crsCodeTable:q,makeNumericEPSG:Ce,makeBboxFromOWS:Fe},t.default=T},"./MapStore2/web/client/utils/EpicsUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--unknown--";return function(){return e.apply(void 0,arguments).catch((function(e,n){return console.error('Error in epic "'.concat(t,'". Original error:'),e),setTimeout((function(){throw e}),0),n}))}},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return Object.keys(e).map((function(n){return t(e[n],n)}))}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getWpsUrl",(function(){return N})),n.d(t,"getNode",(function(){return z})),n.d(t,"getGroupNodes",(function(){return H})),n.d(t,"getNestedGroupTitle",(function(){return U})),n.d(t,"deepChange",(function(){return B})),n.d(t,"getSourceId",(function(){return q})),n.d(t,"extractTileMatrixFromSources",(function(){return W})),n.d(t,"extractTileMatrixSetFromLayers",(function(){return V})),n.d(t,"extractSourcesFromLayers",(function(){return K})),n.d(t,"extractDataFromSources",(function(){return G})),n.d(t,"getURLs",(function(){return X})),n.d(t,"getLayerUrl",(function(){return Z})),n.d(t,"getGroupByName",(function(){return Q})),n.d(t,"getDimension",(function(){return $})),n.d(t,"getLayerId",(function(){return ee})),n.d(t,"normalizeLayer",(function(){return te})),n.d(t,"normalizeMap",(function(){return ne})),n.d(t,"belongsToGroup",(function(){return re})),n.d(t,"getLayersByGroup",(function(){return oe})),n.d(t,"removeEmptyGroups",(function(){return se})),n.d(t,"getNotEmptyGroup",(function(){return ie})),n.d(t,"reorderFunc",(function(){return ae})),n.d(t,"denormalizeGroups",(function(){return le})),n.d(t,"sortLayers",(function(){return ue})),n.d(t,"toggleByType",(function(){return ce})),n.d(t,"sortUsing",(function(){return de})),n.d(t,"splitMapAndLayers",(function(){return fe})),n.d(t,"geoJSONToLayer",(function(){return pe})),n.d(t,"saveLayer",(function(){return me})),n.d(t,"REG_GEOSERVER_RULE",(function(){return he})),n.d(t,"setRegGeoserverRule",(function(){return be})),n.d(t,"getRegGeoserverRule",(function(){return ye})),n.d(t,"findGeoServerName",(function(){return ge})),n.d(t,"getCapabilitiesUrl",(function(){return ve})),n.d(t,"getSearchUrl",(function(){return je})),n.d(t,"invalidateUnsupportedLayer",(function(){return _e})),n.d(t,"isSupportedLayer",(function(){return xe})),n.d(t,"getLayerTitleTranslations",(function(){return we})),n.d(t,"setCustomUtils",(function(){return Se})),n.d(t,"getAuthenticationParam",(function(){return Me})),n.d(t,"excludeGoogleBackground",(function(){return Oe})),n.d(t,"creditsToAttribution",(function(){return ke})),n.d(t,"formatCapabitiliesOptions",(function(){return Ee})),n.d(t,"getLayerTitle",(function(){return Te}));var r,o=n("./node_modules/object-assign/index.js"),s=n.n(o),i=n("./node_modules/turf-bbox/index.js"),a=n.n(i),l=n("./node_modules/uuid/v1.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isObject.js"),p=n.n(f),m=n("./MapStore2/node_modules/lodash/isArray.js"),h=n.n(m),b=n("./MapStore2/node_modules/lodash/head.js"),y=n.n(b),g=n("./MapStore2/node_modules/lodash/castArray.js"),v=n.n(g),j=n("./MapStore2/node_modules/lodash/isEmpty.js"),_=n.n(j),x=n("./MapStore2/node_modules/lodash/findIndex.js"),w=n.n(x),S=n("./MapStore2/node_modules/lodash/pick.js"),M=n.n(S),O=n("./MapStore2/node_modules/lodash/isNil.js"),k=n.n(O),E=n("./MapStore2/web/client/utils/SecurityUtils.js");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e(r.nodes,n):t:r)}),null):null},H=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,n){var r=[].concat(t);return n.nodes&&(r=t.concat(e(n))),d()(n)?[].concat(A(r),[n]):[].concat(A(r),[n.id])}),[]):[]},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h()(t)&&y()(t.map((function(t){var n=t.id===e?t:null;if(n)return n.title;var r=z(t.nodes,e);return r?r.title:null})))},B=function e(t,n,r,o){return t&&h()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===n)return L(L({},t),p()(r)?r:P({},r,o));if(t.nodes)return L(L({},t),{},{nodes:e(t.nodes,n,r,o)})}return t})):[]},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(v()(e.url))},W=function(e,t){if(!e||!t)return{};!h()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=A(Object.keys(t.matrixIds)));var n=q(t),r=t.matrixIds&&t.matrixIds.reduce((function(t,r){var o=e[n]&&e[n].tileMatrixSet&&e[n].tileMatrixSet[r]&&e[n].tileMatrixSet[r].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,P({},r,A(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[n].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&r&&{tileMatrixSet:o,matrixIds:r}||{}},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(n,r){var o=e[r].reduce((function(e,t){return s()(e,P({},t.id||t.name,{srs:A(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[r].reduce((function(e,t){var n=t.tileMatrixSet.reduce((function(e,t){return s()({},e,P({},t["ows:Identifier"],s()({},t)))}),{}),r=Object.keys(n).reduce((function(e,t){var r=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=r[0]&&n[t].TileMatrix.map((function(e,t){return r[0][t]&&r[0][t].ranges?s()({},e,{ranges:r[0][t].ranges}):s()({},e)}));return y()(r)?s()({},e,P({},t,s()({},n[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,r)}),{});return s()({},n,P({},r,s()({},t[r]||{},{tileMatrixSet:s()({},n[r]&&n[r].tileMatrixSet||{},i)})))}),s()({},t))||t},K=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var n=q(t);return e[n]?s()({},e,P({},n,[].concat(A(e[n]),[t]))):s()({},e,P({},n,[t]))}),{});return V(t)},G=function(e){if(!e||!e.layers||!h()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return _()(t)?A(e.layers):e.layers.map((function(e){var n=W(t,e);return s()({},e,n)}))},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},J={},Z=function(e){return h()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=y()(t.filter((function(t){return t.name===e})));return n||t.reduce((function(t,n){return t||!!n.nodes&&r.getGroupByName(e,n.nodes)}),void 0)},$=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:L(L({},e),{},{id:r.getLayerId(e)})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?L(L({},e),{},{layers:(e.layers||[]).map((function(e){return r.normalizeLayer(e)}))}):e},function(e){return e.groups?e:L(L({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},re=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var n=0,r=e.map((function(e){return s()({},e,{storeIndex:n++})}));return r.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,n){var o=n||"Default";return o.split(".").reduce((function(e,n,i,a){var l=o.split(".",i+1).join("."),u=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(l,e),c=i===a.length-1;u?c&&(u.nodes=u.nodes.concat(F(l,r))):(u=function(e,t,n,r){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:r?F(e,n):[],expanded:!0})}(l,U(l,t)||n,r,c),e.push(u));return u.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(r.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(r.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(R(e,t))},le=function(e,t){var n=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},r=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:r,groups:t.map((function(e){return function e(t,r){var o=t.nodes.map((function(t){return p()(t)?e(t,r):r.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:n(o)})}(e,r)}))}},ue=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(R(e,t))},ce=function(e,t){return function(n,r){return t(n,e,r)}},de=function(e,t){return function(n,r){return t(n,r,e)}},fe=function(e){if(e&&h()(e.layers)){var t=r.getLayersByGroup(e.layers,e.groups);h()(e.groups)&&(t=e.groups.reduce((function(e,t){var n=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};n=r.deepChange(n,t.id,o)}return n=r.deepChange(n,t.id,"expanded",t.expanded)}),[].concat(t)));var n=G(e);return s()({},e,{layers:{flat:r.reorder(t,n),groups:t}})}return e},pe=function(e,t){var n=a()(e),r=[];return r="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[M()(L(L({},e),{},{id:k()(e.id)?u()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]},crs:"EPSG:4326"},features:r}},me=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},he=C,be=function(e){C=e},ye=function(){return C},ge=function(e){var t=e.url,n=e.regexRule||r.getRegGeoserverRule(),o=h()(t)?t[0]:t;return n.test(o)&&o.match(n)[0]||null},ve=function(e){var t=r.findGeoServerName({url:e.url}),n=Z(e);if(t){var o=n.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(n=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var n=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+n:e+"&"+n}(n,L(L({},e.baseParams),e.params))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},_e=function(e,t){return Y(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},xe=function(e,t){return!!Y(e,t)},we=function(e){return J.getLayerTitleTranslations?J.getLayerTitleTranslations(e):e.Title},Se=function(e,t){J[e]=t},Me=function(e){var t=X(h()(e.url)?e.url:[e.url]),n={};return t.forEach((function(t){Object(E.addAuthenticationParameter)(t,n,e.securityToken)})),n},Oe=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group,r=e.visibility;return"background"===n&&"google"===t&&r})).length>0,n=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),r=n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(r.length>0){var o=w()(n,{group:"background"});return n.map((function(e,t){return t===o?L(L({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(A(n))}return n},ke=function(e){var t=e.imageUrl,n=e.link,r=e.title,o=t?'"):r;return n&&o?'').concat(o,""):o},Ee=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Te=function(e){var t=e.title,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[r])||(null==t?void 0:t.default)||t||n};r={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:B,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:ge}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(j)[0],n=j.en?{key:"en",locale:j.en}:{key:t,locale:j[t]},r=j[v.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:n.key))];return r?r.code:n.locale.code},k=function(){return j},E=function(e){return _[e]||_.default},T=function(e,t){var n=e;return t.split(".").forEach((function(e){n=n?n[e]:null})),n||t},L=function(e,t){x[e]=t},P=function(e,t,n){return t&&n&&x[t]&&x[t][n]&&x[t][n](e)||{title:"errorTitleDefault",message:"errorDefault"}},A=function(e,t){return i(t)?t[e]||t.default:t||""};v={getLocale:O,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var n=/^[a-z]+/i.exec(e);t=n&&n.length>0?n[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(r,n)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,n){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},n.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path)))}),{})}),(function(e,t){return t.reduce((function(t,n){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var n=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===n||e===n})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(n)&&0===n.indexOf("{")?parseExpression(e,t,n):n},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(r&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,n.requires,r)},isContainedInList=function(e,t,n,r){return e&&t&&-1!==handleExpression(n,r,t).indexOf(e)},showIn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,n.showIn,e,t)||isContainedInList(r,n.showIn,e,t)||!n.showIn&&s)&&!(isContainedInList(o,n.hideFrom,e,t)||isContainedInList(r,n.hideFrom,e,t))},includeLoaded=function(e,t,n){if(t[e]){var r=t[e],o=r.component||r;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,n,{loadPlugin:void 0},_objectSpread({},r.containers))}return n},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,n+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,n+".priority")||0},getMorePrioritizedContainer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return n.reduce((function(n,r){var o=r.name||r,s=getPriority(e,t,o);return s>n.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:n}),{plugin:null,priority:r})},parsePluginConfig=function e(t,n,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(r)?r.map((function(r){return e(t,n,r)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?Object.keys(r).reduce((function(o,s){var i=r[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,n,i)))}),{}):parseExpression(t,n,r)},canContain=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||n[e]||!1},isMorePrioritizedContainer=function(e,t,n,r){return null===getMorePrioritizedContainer(e,t,n,r).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,n){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[n])?_objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n](t))):e},getPluginItems=function e(t,n,r,o,s,i,a,l){return Object.keys(n).map((function(e){var t=getPluginConfiguration(r,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,n[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,n.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,r,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),l=includeLoaded(i,a,s.impl),u=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(l,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(l,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},u,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},l.cfg||{},parsePluginConfig(t,n.requires,s.config.cfg||{})||void 0)},{plugin:l,items:e(t,n,r,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,n)})).filter((function(e){return!l||l(e)}))},pluginsMergeProps=function(e,t,n){var r=n.pluginCfg,o=_objectWithoutProperties(n,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,r||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},n,e[n]?[].concat(_toConsumableArray(e[n]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.stateSelector:i||void 0,l=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)||(void 0===r.isDefault||r.isDefault),u=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?r.name:r)+"Plugin",c=t[u];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?parsePluginConfig(e,t.requires,r.cfg):{}),items:getPluginItems(e,t,n,s,i,l,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(r,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):n};return a.loaded=!!r,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,n,r){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,n||pluginsMergeProps,r)},createPlugin=function(e,t){var n,r=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,l=t.reducers,u=void 0===l?{}:l,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,m=t.enabler,h=void 0===m?function(){return!0}:m,b=t.loader,y=normalizeName(e),g=p?{loadPlugin:function(e){b().then((function(t){var n=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0}))}))},enabler:h}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0});return _defineProperty(n={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(g,a,s)),_defineProperty(n,"reducers",u),_defineProperty(n,"epics",d),n},loadPlugin=function(e){return new Promise((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,n){return t({name:e,plugin:n})}))})).catch((function(e){n(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setStore",(function(){return g})),n.d(t,"getSecurityInfo",(function(){return v})),n.d(t,"getUser",(function(){return j})),n.d(t,"getBasicAuthHeader",(function(){return _})),n.d(t,"getToken",(function(){return x})),n.d(t,"getRefreshToken",(function(){return w})),n.d(t,"getUserAttributes",(function(){return S})),n.d(t,"findUserAttribute",(function(){return M})),n.d(t,"findUserAttributeValue",(function(){return O})),n.d(t,"getAuthenticationRules",(function(){return k})),n.d(t,"isAuthenticationActivated",(function(){return E})),n.d(t,"getAuthenticationMethod",(function(){return T})),n.d(t,"getAuthenticationRule",(function(){return L})),n.d(t,"getAuthKeyParameter",(function(){return P})),n.d(t,"addAuthenticationParameter",(function(){return A})),n.d(t,"addAuthenticationToUrl",(function(){return D})),n.d(t,"clearNilValuesForParams",(function(){return C})),n.d(t,"addAuthenticationToSLD",(function(){return F})),n.d(t,"cleanAuthParamsFromURL",(function(){return N}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./node_modules/url/url.js"),s=n.n(o),i=n("./node_modules/object-assign/index.js"),a=n.n(i),l=n("./MapStore2/node_modules/lodash/head.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isNil.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/isArray.js"),p=n.n(f),m=n("./MapStore2/web/client/utils/StateUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return d()(e[n])?t:b(b({},t),{},y({},n,e[n]))}),{})}function F(e,t){if(e.SLD){var n=s.a.parse(e.SLD,!0),r=A(e.SLD,n.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},n,{query:r,search:void 0}))})}return e}function N(e){return r.default.filterUrlParams(e,[P(e)].filter((function(e){return e})))}var I={setStore:g,getSecurityInfo:v,getUser:j,getBasicAuthHeader:_,getToken:x,getRefreshToken:w,getUserAttributes:S,findUserAttribute:M,findUserAttributeValue:O,getAuthenticationRules:k,isAuthenticationActivated:E,getAuthenticationMethod:T,getAuthenticationRule:L,addAuthenticationToUrl:D,addAuthenticationParameter:A,clearNilValuesForParams:C,addAuthenticationToSLD:F,getAuthKeyParameter:P,cleanAuthParamsFromURL:N};t.default=I},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return x})),n.d(t,"d",(function(){return M})),n.d(t,"c",(function(){return k})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return T}));var r=n("./node_modules/redux/es/index.js"),o=n("./node_modules/redux-thunk/lib/index.js"),s=n.n(o),i=n("./node_modules/redux-logger/dist/redux-logger.js"),a=n.n(i),l=n("./node_modules/redux-observable/lib/esm/index.js"),u=n("./MapStore2/web/client/utils/EpicsUtils.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/node_modules/lodash/isEmpty.js"),f=n.n(d),p=n("./node_modules/rxjs/Rx.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+n,e),e},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+n,e),e},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",r=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+n,r),function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},k=function(e){var t;return!f()(_(e))&&(null===(t=_(e))||void 0===t?void 0:t.getState())||{}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,n=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,m=e.debug,h=void 0!==m&&m,b=e.enhancer,g=w(t||Object(r.c)(s)),_=n||l.a.apply(void 0,y(Object(u.a)(a))),S=_?[x(Object(l.b)(_))].concat(y(p)):p,M=r.a.apply(null,v(S,h)),O=(window.devToolsExtension&&h?Object(r.d)(M,window.devToolsExtension()):M)(r.e);return j(O(g,d,b))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,n=void 0===t?{}:t,r=e.epics,o=void 0===r?{}:r,s=arguments.length>1?arguments[1]:void 0,i=S(),a=function(e,t){var r=Object.keys(i({},{})),o=h(h({},e),i(e,t));return Object.keys(n).filter((function(e){return-1===r.indexOf(e)})).reduce((function(e,r){return h(h({},e),{},b({},r,n[r](e[r],t)))}),o)};(s||_()).replaceReducer(a);var l=O();Object(u.a)(o).forEach((function(e){l.next(e)}))}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t,r){var o=n[e];return o&&o.create?o.create(t,r):o?o(t,r):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o,s){var i=n[e];return i&&i.update?i.update(t,r,o,s):null},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var n={},r={registerType:function(e,t){n[e]=t},createLayer:function(e,t){var r=n[e];return r&&r.create?r.create(t):r?r(t):null},renderLayer:function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},updateLayer:function(e,t,r,o){var s=n[e];return s&&s.update?s.update(t,r,o):null},isValid:function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},isSupported:function(e){return!!n[e]}};e.exports=r},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,n){"use strict";n.r(t),n.d(t,"registerType",(function(){return o})),n.d(t,"createLayer",(function(){return s})),n.d(t,"updateLayer",(function(){return i})),n.d(t,"removeLayer",(function(){return a})),n.d(t,"renderLayer",(function(){return l})),n.d(t,"isValid",(function(){return u})),n.d(t,"isSupported",(function(){return c})),n.d(t,"isCompatible",(function(){return d}));var r={},o=function(e,t){r[e]=t},s=function(e,t,n,o){var s=r[e];return s?s.create(t,n,o):null},i=function(e,t,n,o,s,i){var a=r[e];if(a&&a.update)return a.update(t,n,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var l=!1;o.params&&n.params?l=Object.keys(o.params).reduce((function(e,t){return n.params[t]!==o.params[t]||e}),!1):!o.params&&n.params&&(l=!0),l&&t.getSource().updateParams(n.params)}return null},a=function(e,t,n,o,s){var i=r[e];return i&&i.remove?i.remove(t,n,o,s):null},l=function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},u=function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},c=function(e){return!!r[e]},d=function(e,t){var n=r[e];return!n||!n.isCompatible||n.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:l,isValid:u,isSupported:c,isCompatible:d}},"./js/actions/gnresource.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"p",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return g}));var r="GEONODE:RESOURCE_LOADING",o="GEONODE:SET_RESOURCE",s="GEONODE:RESOURCE_ERROR",i="GEONODE:UPDATE_RESOURCE_PROPERTIES",a="GEONODE:SET_RESOURCE_TYPE",l="GEONODE:SET_NEW_RESOURCE",u="GEONODE:SET_RESOURCE_ID",c="GEONODE:SET_RESOURCE_PERMISSIONS";function d(){return{type:r}}function f(e){return{type:o,data:e}}function p(e){return{type:a,resourceType:e}}function m(e){return{type:s,error:e}}function h(e){return{type:i,properties:e}}function b(){return{type:l}}function y(e){return{type:u,id:e}}function g(e){return{type:c,permissions:e}}},"./js/api/geonode/v1/index.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return v}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./node_modules/js-cookie/src/js.cookie.js"),a=n.n(i),l=n("./js/utils/GNSearchUtils.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"categories",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"identifier__in="+t}),""):"";return o.a.get("".concat(f,"/categories").concat(p),{params:d(d({limit:30},r),t&&{identifier__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.identifier,label:e.gn_description||e.gn_description_en},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.identifier,n),n}))}))},b=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"slug__in="+t}),""):"";return o.a.get("".concat(f,"/keywords").concat(p),{params:d(d({limit:30},r),t&&{slug__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.slug,label:e.slug},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.slug,n),n}))}))},y=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regions",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"name__in="+t}),""):"";return o.a.get("".concat(f,"/regions").concat(p),{params:d(d({limit:30},r),t&&{name__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.name,label:e.name},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.name,n),n}))}))},g=function(e){var t=e.q,n=e.idIn,r=u(e,["q","idIn"]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"owners",a=Object(s.getConfigProp)("geoNodeApi")||{},c=a.endpointV1,f=void 0===c?"/api":c,p=n?n.reduce((function(e,t,n){return e+(0===n?"?":"&")+"username__in="+t}),""):"";return o.a.get("".concat(f,"/owners").concat(p),{params:d(d({limit:30},r),t&&{username__icontains:t})}).then((function(e){var t=e.data;return((null==t?void 0:t.objects)||[]).map((function(e){var t={value:e.username,label:e.username},n=d(d({},e),{},{selectOption:t});return Object(l.h)(i+e.username,n),n}))}))},v=function(e){var t=a.a.get("csrftoken");return o.a.post("/i18n/setlang/","csrfmiddlewaretoken=".concat(t,"&language=").concat(e),{params:{next:"/static/mapstore/configs/placeholder.json"}})}},"./js/api/geonode/v2/index.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return k})),n.d(t,"i",(function(){return L})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return D})),n.d(t,"a",(function(){return C})),n.d(t,"j",(function(){return F})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return R})),n.d(t,"h",(function(){return Y}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),s=n("./js/utils/APIUtils.js"),i=n("./MapStore2/node_modules/lodash/mergeWith.js"),a=n.n(i),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/isString.js"),d=n.n(c),f=n("./MapStore2/node_modules/lodash/castArray.js"),p=n.n(f),m=n("./js/api/geonode/v1/index.js"),h=n("./MapStore2/web/client/utils/ConfigUtils.js"),b=n("./js/utils/GNSearchUtils.js");function y(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1?e+s.reduce((function(e,t,r){return e+(0===r?o:"&")+n+"="+t}),""):e+o+n+"="+s[0]}),"");return"".concat(e).concat(n)}var k=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){S=x(x({},S),e)}(t),t}))};function E(e,t){return t?a()(x({},e),x({},t),(function(e,t){return u()(e)&&u()(t)?[].concat(v(e),v(t)):d()(e)&&u()(t)?[e].concat(v(t)):u()(e)&&d()(t)?[].concat(v(e),[t]):d()(e)&&d()(t)?[e,t]:void 0})):e}var T,L=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,l=e.sort,c=e.f,d=g(e,["q","pageSize","page","sort","f"]),f=((Object(h.getConfigProp)("menuFilters")||[]).find((function(e){var t=e.id;return c===t}))||{}).query;return M("resources",(function(){return o.a.get(Object(s.b)(O(S.resources,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},E(d,f)),l&&{sort:u()(l)?l:[l]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{isNextPageAvailable:!!t.links.next,resources:(t.resources||[]).map((function(e){return e}))}}))}))},P=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,i=e.page,a=void 0===i?1:i,l=e.sort,c=g(e,["q","pageSize","page","sort"]);return M("maps",(function(){return o.a.get(Object(s.b)(O(S.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:x(x(x({},c),l&&{sort:u()(l)?l:[l]}),{},{page:a,page_size:r})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.maps||[]).map((function(e){return e}))}}))}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1?arguments[1]:void 0,n=t.q,r=t.pageSize,i=void 0===r?20:r,a=t.page,l=void 0===a?1:a,c=t.sort,d=g(t,["q","pageSize","page","sort"]);return M("maps",(function(){return o.a.get(Object(s.b)(O(S.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:x(x(x({},d),c&&{sort:u()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:l,page_size:i})}).then((function(e){var t=e.data;return{totalCount:t.total,isNextPageAvailable:!!t.links.next,resources:(t.documents||[]).map((function(e){return e}))}}))}))},D=function(e){return o.a.get(Object(s.b)("".concat(S.resources,"/").concat(e))).then((function(e){return e.data.resource}))},C=function(e){return o.a.post(Object(s.b)("".concat(S.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},F=function(e,t){return o.a.patch(Object(s.b)("".concat(S.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},N=function(e){return o.a.get(Object(s.b)("".concat(S.users,"/").concat(e))).then((function(e){return e.data.user}))},I=function(){return Object(m.f)().then((function(e){return N(e.sub).then((function(t){return x(x({},t),{},{info:e,hrefProfile:"/people/profile/".concat(t.username,"/")})})).catch((function(){return{info:e}}))})).catch((function(){return null}))},R=function(e){return o.a.get(e).then((function(e){return e.data}))},Y=function(e){y(e);var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"resource-types";return T?new Promise((function(e){return e(T)})):o.a.get(Object(s.b)(S.resource_types)).then((function(e){var n=e.data;return v(T=((null==n?void 0:n.resource_types)||[]).map((function(e){var n={value:e,selectOption:{value:e,label:e}};return Object(b.h)(t+e,n),n})))}))}},"./js/apps/gn-home.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/components/app/main.jsx"),o=n("./js/components/app/Router.jsx"),s=n("./node_modules/react/index.js"),i=n.n(s);function a(e){var t=e.text;return i.a.createElement("div",{className:"gn-main-loader-container"},i.a.createElement("div",{className:"gn-main-loader-content"},i.a.createElement("div",{className:"gn-main-loader"}),i.a.createElement("div",{className:"gn-main-loader-text"},t)))}a.defaultProps={text:"GeoNode"};var l=a,u=n("./node_modules/react-redux/es/index.js"),c=n("./MapStore2/web/client/utils/ConfigUtils.js"),d=n("./MapStore2/web/client/utils/LocaleUtils.js"),f=n("./MapStore2/web/client/reducers/security.js"),p=n("./MapStore2/web/client/utils/LayersUtils.js"),m=n("./node_modules/prop-types/index.js"),h=n.n(m),b=n("./node_modules/url/url.js"),y=n.n(b),g=n("./node_modules/reselect/es/index.js"),v=n("./node_modules/@babel/runtime/helpers/esm/extends.js"),j=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_=n("./node_modules/react-bootstrap-v1/node_modules/classnames/index.js"),x=n.n(_),w=i.a.createContext({});w.Consumer,w.Provider;function S(e,t){var n=Object(s.useContext)(w);return e||n[t]||t}var M=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o=n.length&&(s=0),s<0&&(s=n.length-1),n[s]},_=function(e,t){null!=e&&(l&&l(e,t),h&&h(e,t))};Object(s.useEffect)((function(){if(y.current&&m.current){var e=y.current.querySelector("[data-rb-event-key].active");e&&e.focus()}m.current=!1}));var x=pe(t,y);return i.a.createElement(ge.Provider,{value:_},i.a.createElement(he.Provider,{value:{role:c,activeKey:ye(u),getControlledId:n||je,getControllerId:r||je}},i.a.createElement(a,Object(v.a)({},f,{onKeyDown:function(e){var t;switch(d&&d(e),e.key){case"ArrowLeft":case"ArrowUp":t=g(-1);break;case"ArrowRight":case"ArrowDown":t=g(1);break;default:return}t&&(e.preventDefault(),_(t.dataset.rbEventKey,e),m.current=!0,p())},ref:x,role:c}))))}));var xe=function(e){var t=Object(s.useRef)(e);return Object(s.useEffect)((function(){t.current=e}),[e]),t};function we(e){var t=xe(e);return Object(s.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}var Se=i.a.forwardRef((function(e,t){var n=e.active,r=e.className,o=e.eventKey,a=e.onSelect,l=e.onClick,u=e.as,c=Object(j.a)(e,["active","className","eventKey","onSelect","onClick","as"]),d=ye(o,c.href),f=Object(s.useContext)(ge),p=Object(s.useContext)(he),m=n;if(p){c.role||"tablist"!==p.role||(c.role="tab");var h=p.getControllerId(d),b=p.getControlledId(d);c["data-rb-event-key"]=d,c.id=h||c.id,c["aria-controls"]=b||c["aria-controls"],m=null==n&&null!=d?p.activeKey===d:n}"tab"===c.role&&(c.tabIndex=m?c.tabIndex:-1,c["aria-selected"]=m);var y=we((function(e){l&&l(e),null!=d&&(a&&a(d,e),f&&f(d,e))}));return i.a.createElement(u,Object(v.a)({},c,{ref:t,onClick:y,className:x()(r,m&&"active")}))}));Se.defaultProps={disabled:!1};var Me=Se,Oe={variant:void 0,active:!1,disabled:!1},ke=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.active,o=e.disabled,a=e.className,l=e.variant,u=e.action,c=e.as,d=e.eventKey,f=e.onClick,p=Object(j.a)(e,["bsPrefix","active","disabled","className","variant","action","as","eventKey","onClick"]);n=S(n,"list-group-item");var m=Object(s.useCallback)((function(e){if(o)return e.preventDefault(),void e.stopPropagation();f&&f(e)}),[o,f]);return i.a.createElement(Me,Object(v.a)({ref:t},p,{eventKey:ye(d||null,p.href),as:c||(u?p.href?"a":"button":"div"),onClick:m,className:x()(a,n,r&&"active",o&&"disabled",l&&n+"-"+l,u&&n+"-action")}))}));ke.defaultProps=Oe,ke.displayName="ListGroupItem";var Ee=ke,Te={variant:void 0,horizontal:void 0},Le=i.a.forwardRef((function(e,t){var n,r=oe(e,{activeKey:"onSelect"}),o=r.className,s=r.bsPrefix,a=r.variant,l=r.horizontal,u=r.as,c=void 0===u?"div":u,d=Object(j.a)(r,["className","bsPrefix","variant","horizontal","as"]),f=S(s,"list-group");return n=l?!0===l?"horizontal":"horizontal-"+l:null,i.a.createElement(_e,Object(v.a)({ref:t},d,{as:c,className:x()(o,f,a&&f+"-"+a,n&&f+"-"+n)}))}));Le.defaultProps=Te,Le.displayName="ListGroup",Le.Item=Ee;var Pe=Le,Ae=n("./MapStore2/node_modules/lodash/debounce.js"),De=n.n(Ae);function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(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 Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i.a.createElement("div",{className:"gn-suggestions"},i.a.createElement("div",{className:"gn-suggestions-header"},i.a.createElement(L,{onClick:function(){return f()},variant:"default"},i.a.createElement(N,{name:"times"}))),i.a.createElement(Pe,null,o.map((function(e){return i.a.createElement(Pe.Item,{key:e.id,action:!n,onClick:function(){return x(e.value)}},e.label)})))),d)}Ne.defaultProps={value:"",loading:!1,debounceTime:0,suggestions:[],onChange:function(){},onFetchSuggestions:function(){},style:{}};var Ie,Re=Ne;function Ye(){return Object(s.useState)(null)}var ze=i.a.createContext(null);function He(){var e=Object(s.useRef)(!0),t=Object(s.useRef)((function(){return e.current}));return Object(s.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}var Ue=function(e){var t=He();return[e[0],Object(s.useCallback)((function(n){if(t())return e[1](n)}),[t,e[1]])]};function Be(e){return e.split("-")[0]}function qe(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function We(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ve(e){return e instanceof We(e).Element||e instanceof Element}function Ke(e){return e instanceof We(e).HTMLElement||e instanceof HTMLElement}function Ge(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&((n=r)instanceof We(n).ShadowRoot||n instanceof ShadowRoot)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Xe(e){return e?(e.nodeName||"").toLowerCase():null}function Je(e){return We(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf(Xe(e))>=0}function Qe(e){return((Ve(e)?e.ownerDocument:e.document)||window.document).documentElement}function $e(e){return"html"===Xe(e)?e:e.assignedSlot||e.parentNode||e.host||Qe(e)}function et(e){if(!Ke(e)||"fixed"===Je(e).position)return null;var t=e.offsetParent;if(t){var n=Qe(t);if("body"===Xe(t)&&"static"===Je(t).position&&"static"!==Je(n).position)return n}return t}function tt(e){for(var t=We(e),n=et(e);n&&Ze(n)&&"static"===Je(n).position;)n=et(n);return n&&"body"===Xe(n)&&"static"===Je(n).position?t:n||function(e){for(var t=$e(e);Ke(t)&&["html","body"].indexOf(Xe(t))<0;){var n=Je(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}function nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rt(e,t,n){return Math.max(e,Math.min(t,n))}function ot(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function st(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var it="top",at="bottom",lt="right",ut="left",ct=[it,at,lt,ut],dt=ct.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),ft=[].concat(ct,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),pt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var mt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Be(n.placement),a=nt(i),l=[ut,lt].indexOf(i)>=0?"height":"width";if(o&&s){var u=n.modifiersData[r+"#persistent"].padding,c=qe(o),d="y"===a?it:ut,f="y"===a?at:lt,p=n.rects.reference[l]+n.rects.reference[a]-s[a]-n.rects.popper[l],m=s[a]-n.rects.reference[a],h=tt(o),b=h?"y"===a?h.clientHeight||0:h.clientWidth||0:0,y=p/2-m/2,g=u[d],v=b-c[l]-u[f],j=b/2-c[l]/2+y,_=rt(g,j,v),x=a;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-j,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,s=void 0===o?"[data-popper-arrow]":o,i=n.padding,a=void 0===i?0:i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&Ge(t.elements.popper,s)&&(t.elements.arrow=s,t.modifiersData[r+"#persistent"]={padding:ot("number"!=typeof a?a:st(a,ct))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.offsets,i=e.position,a=e.gpuAcceleration,l=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(s),c=u.x,d=u.y,f=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),m=ut,h=it,b=window;if(l){var y=tt(n);y===We(n)&&(y=Qe(n)),o===it&&(h=at,d-=y.clientHeight-r.height,d*=a?1:-1),o===ut&&(m=lt,c-=y.clientWidth-r.width,c*=a?1:-1)}var g,v=Object.assign({position:i},l&&ht);return a?Object.assign(Object.assign({},v),{},((g={})[h]=p?"0":"",g[m]=f?"0":"",g.transform=(b.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",g)):Object.assign(Object.assign({},v),{},((t={})[h]=p?d+"px":"",t[m]=f?c+"px":"",t.transform="",t))}var yt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,s=n.adaptive,i=void 0===s||s,a={placement:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),bt(Object.assign(Object.assign({},a),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),bt(Object.assign(Object.assign({},a),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},gt={passive:!0};var vt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,i=r.resize,a=void 0===i||i,l=We(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach((function(e){e.addEventListener("scroll",n.update,gt)})),a&&l.addEventListener("resize",n.update,gt),function(){s&&u.forEach((function(e){e.removeEventListener("scroll",n.update,gt)})),a&&l.removeEventListener("resize",n.update,gt)}},data:{}},jt={left:"right",right:"left",bottom:"top",top:"bottom"};function _t(e){return e.replace(/left|right|bottom|top/g,(function(e){return jt[e]}))}var xt={start:"end",end:"start"};function wt(e){return e.replace(/start|end/g,(function(e){return xt[e]}))}function St(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Mt(e){var t=We(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ot(e){return St(Qe(e)).left+Mt(e).scrollLeft}function kt(e){var t=Je(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Et(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Xe(t))>=0?t.ownerDocument.body:Ke(t)&&kt(t)?t:e($e(t))}(e),r="body"===Xe(n),o=We(n),s=r?[o].concat(o.visualViewport||[],kt(n)?n:[]):n,i=t.concat(s);return r?i:i.concat(Et($e(s)))}function Tt(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t){return"viewport"===t?Tt(function(e){var t=We(e),n=Qe(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:i+Ot(e),y:a}}(e)):Ke(t)?function(e){var t=St(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tt(function(e){var t=Qe(e),n=Mt(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-n.scrollLeft+Ot(e),a=-n.scrollTop;return"rtl"===Je(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:i,y:a}}(Qe(e)))}function Pt(e,t,n){var r="clippingParents"===t?function(e){var t=Et($e(e)),n=["absolute","fixed"].indexOf(Je(e).position)>=0&&Ke(e)?tt(e):e;return Ve(n)?t.filter((function(e){return Ve(e)&&Ge(e,n)&&"body"!==Xe(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],i=o.reduce((function(t,n){var r=Lt(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),Lt(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function At(e){return e.split("-")[1]}function Dt(e){var t,n=e.reference,r=e.element,o=e.placement,s=o?Be(o):null,i=o?At(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(s){case it:t={x:a,y:n.y-r.height};break;case at:t={x:a,y:n.y+n.height};break;case lt:t={x:n.x+n.width,y:l};break;case ut:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=s?nt(s):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=Math.floor(t[u])-Math.floor(n[c]/2-r[c]/2);break;case"end":t[u]=Math.floor(t[u])+Math.ceil(n[c]/2-r[c]/2)}}return t}function Ct(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,s=n.boundary,i=void 0===s?"clippingParents":s,a=n.rootBoundary,l=void 0===a?"viewport":a,u=n.elementContext,c=void 0===u?"popper":u,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,m=void 0===p?0:p,h=ot("number"!=typeof m?m:st(m,ct)),b="popper"===c?"reference":"popper",y=e.elements.reference,g=e.rects.popper,v=e.elements[f?b:c],j=Pt(Ve(v)?v:v.contextElement||Qe(e.elements.popper),i,l),_=St(y),x=Dt({reference:_,element:g,strategy:"absolute",placement:o}),w=Tt(Object.assign(Object.assign({},g),x)),S="popper"===c?w:_,M={top:j.top-S.top+h.top,bottom:S.bottom-j.bottom+h.bottom,left:j.left-S.left+h.left,right:S.right-j.right+h.right},O=e.modifiersData.offset;if("popper"===c&&O){var k=O[o];Object.keys(M).forEach((function(e){var t=[lt,at].indexOf(e)>=0?1:-1,n=[it,at].indexOf(e)>=0?"y":"x";M[e]+=k[n]*t}))}return M}var Ft={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=void 0===o||o,i=n.altAxis,a=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,b=t.options.placement,y=Be(b),g=l||(y===b||!m?[_t(b)]:function(e){if("auto"===Be(e))return[];var t=_t(e);return[wt(e),t,wt(t)]}(b)),v=[b].concat(g).reduce((function(e,n){return e.concat("auto"===Be(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?ft:l,c=At(r),d=c?a?dt:dt.filter((function(e){return At(e)===c})):ct,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Ct(e,{placement:n,boundary:o,rootBoundary:s,padding:i})[Be(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),j=t.rects.reference,_=t.rects.popper,x=new Map,w=!0,S=v[0],M=0;M=0,L=T?"width":"height",P=Ct(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=T?E?lt:ut:E?at:it;j[L]>_[L]&&(A=_t(A));var D=_t(A),C=[];if(s&&C.push(P[k]<=0),a&&C.push(P[A]<=0,P[D]<=0),C.every((function(e){return e}))){S=O,w=!1;break}x.set(O,C)}if(w)for(var F=function(e){var t=v.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=m?3:1;N>0;N--){if("break"===F(N))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function It(e){return[it,lt,at,ut].some((function(t){return e[t]>=0}))}var Rt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Ct(t,{elementContext:"reference"}),a=Ct(t,{altBoundary:!0}),l=Nt(i,r),u=Nt(a,o,s),c=It(l),d=It(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=void 0===o?[0,0]:o,i=ft.reduce((function(e,n){return e[n]=function(e,t,n){var r=Be(e),o=[ut,it].indexOf(r)>=0?-1:1,s="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[ut,lt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}(n,t.rects,s),e}),{}),a=i[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var zt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Dt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ht={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,i=n.altAxis,a=void 0!==i&&i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,b=Ct(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Be(t.placement),g=At(t.placement),v=!g,j=nt(y),_="x"===j?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,M="function"==typeof h?h(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):h,O={x:0,y:0};if(x){if(s){var k="y"===j?it:ut,E="y"===j?at:lt,T="y"===j?"height":"width",L=x[j],P=x[j]+b[k],A=x[j]-b[E],D=p?-S[T]/2:0,C="start"===g?w[T]:S[T],F="start"===g?-S[T]:-w[T],N=t.elements.arrow,I=p&&N?qe(N):{width:0,height:0},R=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=R[k],z=R[E],H=rt(0,w[T],I[T]),U=v?w[T]/2-D-H-Y-M:C-H-Y-M,B=v?-w[T]/2+D+H+z+M:F+H+z+M,q=t.elements.arrow&&tt(t.elements.arrow),W=q?"y"===j?q.clientTop||0:q.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][j]:0,K=x[j]+U-V-W,G=x[j]+B-V,X=rt(p?Math.min(P,K):P,L,p?Math.max(A,G):A);x[j]=X,O[j]=X-L}if(a){var J="x"===j?it:ut,Z="x"===j?at:lt,Q=x[_],$=rt(Q+b[J],Q,Q-b[Z]);x[_]=$,O[_]=$-Q}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Ut(e,t,n){void 0===n&&(n=!1);var r,o,s=Qe(t),i=St(e),a=Ke(t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Xe(t)||kt(s))&&(l=(r=t)!==We(r)&&Ke(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Mt(r)),Ke(t)?((u=St(t)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Ot(s))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function Bt(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var qt={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n *":c,f=e.focusFirstItemOnShow,p=e.children,m=de(),h=re(l,a,u),b=h[0],y=h[1],g=Ye(),v=g[0],j=g[1],_=Object(s.useRef)(null),x=_.current,w=Object(s.useCallback)((function(e){_.current=e,m()}),[m]),S=(t=b,n=Object(s.useRef)(null),Object(s.useEffect)((function(){n.current=t})),n.current),M=Object(s.useRef)(null),O=Object(s.useRef)(!1),k=Object(s.useCallback)((function(e){y(!b,e)}),[y,b]),E=Object(s.useMemo)((function(){return{toggle:k,drop:r,show:b,alignEnd:o,menuElement:x,toggleElement:v,setMenu:w,setToggle:j}}),[k,r,b,o,x,v,w,j]);x&&S&&!b&&(O.current=x.contains(document.activeElement));var T=we((function(){v&&v.focus&&v.focus()})),L=we((function(){var e=M.current,t=f;if(null==t&&(t=!(!_.current||!function(e,t){if(!Ie){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;Ie=function(e,t){return r.call(e,t)}}return Ie(e,t)}(_.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=ce(_.current,d)[0];n&&n.focus&&n.focus()}}));Object(s.useEffect)((function(){b?L():O.current&&(O.current=!1,T())}),[b,O,T,L]),Object(s.useEffect)((function(){M.current=null}));var P=function(e,t){if(!_.current)return null;var n=ce(_.current,d),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return i.a.createElement(ze.Provider,{value:E},p({props:{onKeyDown:function(e){var t=e.key,n=e.target;if(!/input|textarea/i.test(n.tagName)||!(" "===t||"Escape"!==t&&_.current&&_.current.contains(n)))switch(M.current=e.type,t){case"ArrowUp":var r=P(n,-1);return r&&r.focus&&r.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),b){var o=P(n,1);o&&o.focus&&o.focus()}else k(e);return;case"Escape":case"Tab":y(!1,e)}}}}))}kn.displayName="ReactOverlaysDropdown",kn.propTypes=On,kn.Menu=jn,kn.Toggle=Mn;var En=kn,Tn={as:E,disabled:!1},Ln=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.eventKey,l=e.disabled,u=e.href,c=e.onClick,d=e.onSelect,f=e.active,p=e.as,m=Object(j.a)(e,["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"]),h=S(n,"dropdown-item"),b=Object(s.useContext)(ge),y=(Object(s.useContext)(he)||{}).activeKey,g=ye(a||null,u),_=null==f&&null!=g?ye(y)===g:f,w=we((function(e){l||(c&&c(e),b&&b(g,e),d&&d(g,e))}));return i.a.createElement(p,Object(v.a)({},m,{ref:t,href:u,disabled:l,className:x()(r,h,_&&"active",l&&"disabled"),onClick:w}),o)}));Ln.displayName="DropdownItem",Ln.defaultProps=Tn;var Pn=Ln,An=i.a.createContext(null);An.displayName="NavbarContext";var Dn=An;function Cn(e,t){return e}var Fn=n("./node_modules/react-bootstrap-v1/node_modules/dom-helpers/esm/hasClass.js");function Nn(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function In(){var e=Object(s.useRef)(null),t=Object(s.useRef)(null);return[Object(s.useCallback)((function(n){n&&(Object(Fn.a)(n,"popover")||Object(Fn.a)(n,"dropdown-menu"))&&(t.current=Nn(n),n.style.margin="0",e.current=n)}),[]),[Object(s.useMemo)((function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,o=r.top,s=r.left,i=r.bottom,a=r.right;switch(n.split("-")[0]){case"top":return[0,i];case"left":return[0,a];case"bottom":return[0,o];case"right":return[0,s];default:return[0,0]}}}}}),[t]),Object(s.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",requiresIfExists:["arrow"],effect:function(t){var n=t.state;if(e.current&&n.elements.arrow&&Object(Fn.a)(e.current,"popover")&&n.modifiersData["arrow#persistent"]){var r=Nn(n.elements.arrow),o=r.top,s=r.right,i=o||s;return n.modifiersData["arrow#persistent"].padding={top:i,left:i,right:i,bottom:i},n.elements.arrow.style.margin="0",function(){n.elements.arrow&&(n.elements.arrow.style.margin="")}}}}}),[])]]}var Rn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.alignRight,a=e.rootCloseEvent,l=e.flip,u=e.show,c=e.renderOnMount,d=e.as,f=void 0===d?"div":d,p=e.popperConfig,m=Object(j.a)(e,["bsPrefix","className","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"]),h=Object(s.useContext)(Dn),b=S(n,"dropdown-menu"),y=In(),g=y[0],_=y[1],w=yn({flip:l,rootCloseEvent:a,show:u,alignEnd:o,usePopper:!h,popperConfig:Object(v.a)({},p,{modifiers:_.concat((null==p?void 0:p.modifiers)||[])})}),M=w.hasShown,O=w.placement,k=w.show,E=w.alignEnd,T=w.close,L=w.props;return L.ref=pe(g,pe(Cn(t),L.ref)),M||c?("string"!=typeof f&&(L.show=k,L.close=T,L.alignRight=E),O&&(m.style=Object(v.a)({},m.style,{},L.style),m["x-placement"]=O),i.a.createElement(f,Object(v.a)({},m,L,{className:x()(r,b,k&&"show",E&&b+"-right")}))):null}));Rn.displayName="DropdownMenu",Rn.defaultProps={alignRight:!1,flip:!0};var Yn=Rn,zn=(n("./node_modules/prop-types-extra/lib/isRequiredForA11y.js"),i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.split,o=e.className,s=e.children,a=e.childBsPrefix,l=e.as,u=void 0===l?L:l,c=Object(j.a)(e,["bsPrefix","split","className","children","childBsPrefix","as"]),d=S(n,"dropdown-toggle");void 0!==a&&(c.bsPrefix=a);var f=xn(),p=f[0],m=f[1].toggle;return p.ref=pe(p.ref,Cn(t)),i.a.createElement(u,Object(v.a)({onClick:m,className:x()(o,d,r&&d+"-split")},p,c),s)})));zn.displayName="DropdownToggle";var Hn=zn,Un=Y("dropdown-header",{defaultProps:{role:"heading"}}),Bn=Y("dropdown-divider",{defaultProps:{role:"separator"}}),qn=Y("dropdown-item-text",{Component:"span"}),Wn=i.a.forwardRef((function(e,t){var n=oe(e,{show:"onToggle"}),r=n.bsPrefix,o=n.drop,a=n.show,l=n.className,u=n.alignRight,c=n.onSelect,d=n.onToggle,f=n.focusFirstItemOnShow,p=n.as,m=void 0===p?"div":p,h=(n.navbar,Object(j.a)(n,["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"])),b=Object(s.useContext)(ge),y=S(r,"dropdown"),g=we((function(e,t,n){void 0===n&&(n=t.type),t.currentTarget===document&&(n="rootClose"),d&&d(e,t,{source:n})})),_=we((function(e,t){b&&b(e,t),c&&c(e,t),g(!1,t,"select")}));return i.a.createElement(ge.Provider,{value:_},i.a.createElement(En,{drop:o,show:a,alignEnd:u,onToggle:g,focusFirstItemOnShow:f,itemSelector:"."+y+"-item:not(.disabled):not(:disabled)"},(function(e){var n=e.props;return i.a.createElement(m,Object(v.a)({},h,n,{ref:t,className:x()(l,a&&"show",(!o||"down"===o)&&y,"up"===o&&"dropup","right"===o&&"dropright","left"===o&&"dropleft")}))})))}));Wn.displayName="Dropdown",Wn.defaultProps={navbar:!1},Wn.Divider=Bn,Wn.Header=Un,Wn.Item=Pn,Wn.ItemText=qn,Wn.Menu=Yn,Wn.Toggle=Hn;var Vn=Wn,Kn=i.a.createContext(null);Kn.displayName="CardContext";var Gn=Kn,Xn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,s=e.as,a=void 0===s?"div":s,l=Object(j.a)(e,["bsPrefix","className","children","as"]);return n=S(n,"nav-item"),i.a.createElement(a,Object(v.a)({},l,{ref:t,className:x()(r,n)}),o)}));Xn.displayName="NavItem";var Jn=Xn,Zn={disabled:!1,as:E},Qn=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.disabled,o=e.className,s=e.href,a=e.eventKey,l=e.onSelect,u=e.as,c=Object(j.a)(e,["bsPrefix","disabled","className","href","eventKey","onSelect","as"]);return n=S(n,"nav-link"),i.a.createElement(Me,Object(v.a)({},c,{href:s,ref:t,eventKey:a,as:u,disabled:r,onSelect:l,className:x()(o,n,r&&"disabled")}))}));Qn.displayName="NavLink",Qn.defaultProps=Zn;var $n=Qn,er=i.a.forwardRef((function(e,t){var n,r,o,a=oe(e,{activeKey:"onSelect"}),l=a.as,u=void 0===l?"div":l,c=a.bsPrefix,d=a.variant,f=a.fill,p=a.justify,m=a.navbar,h=a.className,b=a.children,y=a.activeKey,g=Object(j.a)(a,["as","bsPrefix","variant","fill","justify","navbar","className","children","activeKey"]),_=S(c,"nav"),w=!1,M=Object(s.useContext)(Dn),O=Object(s.useContext)(Gn);return M?(r=M.bsPrefix,w=null==m||m):O&&(o=O.cardHeaderBsPrefix),i.a.createElement(_e,Object(v.a)({as:u,ref:t,activeKey:y,className:x()(h,(n={},n[_]=!w,n[r+"-nav"]=w,n[o+"-"+d]=!!o,n[_+"-"+d]=!!d,n[_+"-fill"]=f,n[_+"-justified"]=p,n))},g),b)}));er.displayName="Nav",er.defaultProps={justify:!1,fill:!1},er.Item=Jn,er.Link=$n;var tr=er,nr=n("./MapStore2/web/client/components/I18N/Message.jsx"),rr=n("./MapStore2/node_modules/lodash/get.js"),or=n.n(rr);function sr(e,t){return 0===(null==t?void 0:t.indexOf("${"))?or()(e,t.replace(/^\$\{(.*)\}$/,"$1")):t}function ir(e,t,n){var r,o,s,i,a=n?void 0===n.authenticated?t.authenticated:n.authenticated:t.authenticated;return void 0===a||!0===a&&(null==e?void 0:e.user)&&(r=e.user,o=t.allowedGroups,i=(null==r||null===(s=r.info)||void 0===s?void 0:s.groups)||[],!o||!!i.find((function(e){return-1!==o.indexOf(e)})))||!1===a&&!(null!=e&&e.user)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u&&l),i.a.createElement("ul",{className:"gn-brand-navbar-right-side"},cr(o).reverse().filter((function(e){return ir(p,e)})).map((function(e,t){return i.a.createElement("li",{key:t},i.a.createElement(fr,{item:lr(lr({},e),{},{id:e.id||t}),state:p}))})))),l&&(c&&f=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kr(){return(kr=Object.assign||function(e){for(var t=1;t0&&i.a.createElement(Vn,{className:"gn-card-options",alignRight:!0},i.a.createElement(Vn.Toggle,{id:"gn-card-options-".concat(a.pk),variant:"default",size:"sm"},i.a.createElement(N,{name:"ellipsis-v"})),i.a.createElement(Vn.Menu,null,o.map((function(e){var t=e.label,n=e.href;return i.a.createElement(Vn.Item,{key:n,href:n},t)}))))))}));Jr.defaultProps={links:[],theme:"light",getTypesInfo:Xr.e};var Zr=Jr;function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t=368?Math.floor((l-24*u)/u):"100%",d=Math.floor(12),f=0===u||1===u;return i.a.createElement("ul",{style:f?{paddingBottom:24}:{paddingLeft:d,paddingBottom:24}},t.map((function(e,t){return i.a.createElement("li",{key:e.pk,style:f?{width:l-24,margin:d}:{width:c,marginRight:(t+1)%u==0?0:24,marginTop:24}},i.a.createElement(Zr,{active:r(e),data:e,formatHref:n,links:a}))})))})),no=Object(xr.a)((function(e){var t=e.resources,n=e.loading,r=e.page,o=e.isNextPageAvailable,a=e.onLoad,l=e.formatHref,u=e.isCardActive,c=e.containerStyle,d=e.header,f=e.cardLinks,p=e.column,m=e.isColumnActive,h=e.messageId,b=e.children,y=e.pageSize,g=e.width,v=Object(s.useRef)(),j=v.current?v.current.getBoundingClientRect().width:0,_=Object(s.useRef)({});_.current={page:r,loading:n,isNextPageAvailable:o,onLoad:a},Object(s.useEffect)((function(){function e(){(document.body.scrollTop||document.documentElement.scrollTop)+window.innerHeight>=(document.body.scrollHeight||document.documentElement.scrollHeight)-200&&!_.current.loading&&_.current.isNextPageAvailable&&_.current.onLoad(_.current.page+1)}return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]);var x=(null==t?void 0:t.length)>0;return i.a.createElement("div",{className:"gn-card-grid"},d,i.a.createElement("div",{style:$r({display:"flex"},"sm"===y&&{flexDirection:"column"})},i.a.createElement("div",{style:{flex:1}},i.a.createElement("div",{className:"gn-card-grid-container",style:c},b,h&&i.a.createElement("div",{className:"gn-card-grid-message"},i.a.createElement("h1",null,i.a.createElement(yr.a,{msgId:"gnhome.".concat(h,"Title")})),i.a.createElement("p",null,i.a.createElement(yr.a,{msgId:"gnhome.".concat(h,"Content")}))),i.a.createElement(to,{resources:t,formatHref:l,isCardActive:u,links:f,containerWidth:"md"===y&&m?g-j:void 0}),i.a.createElement("div",{className:"gn-card-grid-pagination"},n&&i.a.createElement(V,{animation:"border",role:"status"},i.a.createElement("span",{className:"sr-only"},"Loading...")),x&&!o&&!n&&i.a.createElement(N,{name:"dot-circle"})))),i.a.createElement("div",{ref:v},p)))}));no.defaultProps={page:1,resources:[],onLoad:function(){},isNextPageAvailable:!1,loading:!1,formatHref:function(){return"#"},isCardActive:function(){return!1}};var ro=no;function oo(e){var t,n,r=(t=e,(n=Object(s.useRef)(t)).current=t,n);Object(s.useEffect)((function(){return function(){return r.current()}}),[])}var so=Math.pow(2,31)-1;function io(){var e=He(),t=Object(s.useRef)();return oo((function(){return clearTimeout(t.current)})),Object(s.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=so?t.current=setTimeout(r,o):function e(t,n,r){var o=r-Date.now();t.current=o<=so?setTimeout(n,o):setTimeout((function(){return e(t,n,r)}),so)}(t,r,Date.now()+o))},clear:n}}),[])}var ao=function(e){var t;return"undefined"==typeof document?null:null==e?Object(ln.a)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function lo(e,t){var n=Object(s.useState)((function(){return ao(e)})),r=n[0],o=n[1];if(!r){var i=ao(e);i&&o(i)}return Object(s.useEffect)((function(){t&&r&&t(r)}),[t,r]),Object(s.useEffect)((function(){var t=ao(e);t!==r&&o(t)}),[e,r]),r}var uo=i.a.forwardRef((function(e,t){var n=e.flip,r=e.offset,o=e.placement,a=e.containerPadding,l=void 0===a?5:a,u=e.popperConfig,c=void 0===u?{}:u,d=e.transition,f=Ye(),p=f[0],m=f[1],h=Ye(),b=h[0],y=h[1],g=pe(m,t),_=lo(e.container),x=lo(e.target),w=Object(s.useState)(!e.show),S=w[0],M=w[1],O=Qt(x,p,hn({placement:o,enableEvents:!!e.show,containerPadding:l||5,flip:n,offset:r,arrowElement:b,popperConfig:c})),k=O.styles,E=O.attributes,T=Object(j.a)(O,["styles","attributes"]);e.show?S&&M(!1):e.transition||S||M(!0);var L=e.show||d&&!S;if(mn(p,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!L)return null;var P=e.children(Object(v.a)({},T,{show:!!e.show,props:Object(v.a)({},E.popper,{style:k.popper,ref:g}),arrowProps:Object(v.a)({},E.arrow,{style:k.arrow,ref:y})}));if(d){var A=e.onExit,D=e.onExiting,C=e.onEnter,F=e.onEntering,N=e.onEntered;P=i.a.createElement(d,{in:e.show,appear:!0,onExit:A,onExiting:D,onExited:function(){M(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:C,onEntering:F,onEntered:N},P)}return _?cn.a.createPortal(P,_):null}));uo.displayName="Overlay",uo.propTypes={show:h.a.bool,placement:h.a.oneOf(ft),target:h.a.any,container:h.a.any,flip:h.a.bool,children:h.a.func.isRequired,containerPadding:h.a.number,popperConfig:h.a.object,rootClose:h.a.bool,rootCloseEvent:h.a.oneOf(["click","mousedown"]),rootCloseDisabled:h.a.bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";if(0===e.indexOf("http"))return e;var t=y.a.parse(e),n=t.path,r=window.location,o=r.protocol,s=r.host;return"".concat(o,"://").concat(s).concat(n)}function Xo(e){var t,n=e.resource,r=e.formatHref,o=e.sectionStyle,a=e.loading,l=e.getTypesInfo,u=Object(s.useRef)(),c=Object(s.useRef)(),d=Vo(Object(s.useState)(!1),2),f=d[0],p=d[1];if(Object(s.useEffect)((function(){return c.current=!0,function(){c.current=!1}}),[]),!n&&!a)return null;var m=l(),h=n&&(m[n.doc_type]||m[n.resource_type])||{},b=h.embed,y=h.icon,g=h.name,v=b&&b.replace("{pk}",n.pk);return i.a.createElement("div",{ref:u,className:"gn-details-panel".concat(a?" loading":""),style:{width:o.width}},i.a.createElement("section",{style:o},i.a.createElement("div",{className:"gn-details-panel-header"},i.a.createElement(L,{variant:"default",href:r({pathname:"/search/"}),size:"sm"},i.a.createElement(N,{name:"times"}))),i.a.createElement("div",{className:"gn-details-panel-preview"},v?i.a.createElement("iframe",{src:v,style:{position:"absolute",width:"100%",height:"100%"},frameBorder:"0"}):i.a.createElement("div",{style:qo({position:"absolute",width:"100%",height:"100%",top:0,left:0},(null==n?void 0:n.thumbnail_url)&&{backgroundImage:"url("+n.thumbnail_url+")",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat"})}),a&&i.a.createElement("div",{className:"gn-details-panel-preview-loader",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"}},i.a.createElement(V,{animation:"border",role:"status"},i.a.createElement("span",{className:"sr-only"},"Loading resource detail...")))),i.a.createElement("div",{className:"gn-details-panel-content"},i.a.createElement("div",{className:"gn-details-panel-title"},i.a.createElement("h1",null,y&&i.a.createElement(i.a.Fragment,null,i.a.createElement(N,{name:y})),null==n?void 0:n.title),i.a.createElement("div",{className:"gn-details-panel-tools"},n&&i.a.createElement(Fo,{placement:"top",overlay:function(e){return i.a.createElement(Io,Uo({id:"share-resource-tooltip"},e),i.a.createElement(nr.default,{msgId:f?"gnhome.copiedResourceUrl":"gnhome.copyResourceUrl"}))}},i.a.createElement(Ho.a,{text:Go(n.detail_url)},i.a.createElement(L,{variant:"default",onClick:function(){p(!0),setTimeout((function(){c.current&&p(!1)}),700)}},i.a.createElement(N,{name:"share-alt"})))),(null==n?void 0:n.detail_url)&&i.a.createElement(L,{variant:"default",href:n.detail_url},i.a.createElement(nr.default,{msgId:"gnhome.view".concat(g||"")})))),i.a.createElement("p",null,(null==n?void 0:n.owner)&&i.a.createElement(i.a.Fragment,null,i.a.createElement("a",{href:r({query:{"filter{owner.username.in}":n.owner.username}})},Object(Xr.f)(n.owner))),(null==n?void 0:n.date_type)&&(null==n?void 0:n.date)&&i.a.createElement(i.a.Fragment,null," ","/"," ",Yo()(n.date).format("MMMM Do YYYY"))),i.a.createElement("p",null,i.a.createElement("div",{className:"gn-details-panel-description"},null==n?void 0:n.abstract)),i.a.createElement("p",null,(null==n||null===(t=n.category)||void 0===t?void 0:t.identifier)&&i.a.createElement("div",null,i.a.createElement(nr.default,{msgId:"gnhome.category"}),":"," ",i.a.createElement("a",{href:r({query:{"filter{category.identifier.in}":n.category.identifier}})},n.category.identifier))))))}Xo.defaultProps={onClose:function(){},formatHref:function(){return"#"},width:696,getTypesInfo:Xr.e};var Jo=Xo;function Zo(e){var t,n,r,o=e.tabIndex,s=e.draggable,a=e.item,l=e.menuItemsProps.formatHref;return i.a.createElement(Lr,{active:!0,tabIndex:o,draggable:s,showTimesIcon:!0,href:l({query:(t={},n=a.key,r=a.value,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)})},Object(Xr.b)(a.key,a.value)||a.value)}var Qo=Object(s.forwardRef)((function(e,t){var n=e.formatHref,r=e.orderOptions,o=e.order,s=e.filters,a=e.style,l=e.onClear,u=e.defaultLabelId,c=r.find((function(e){var t=e.value;return o===t}));return i.a.createElement("div",{className:"gn-filters-menu",style:a,ref:t},i.a.createElement("div",{className:"gn-filters-menu-container"},(null==s?void 0:s.length)>0&&i.a.createElement(L,{variant:"default",size:"sm",onClick:function(){return l()}},i.a.createElement(nr.default,{msgId:"gnhome.clearFilters"})),i.a.createElement(jr.a,{handleHeight:!0},(function(e){var t=e.height;return i.a.createElement("div",{className:"gn-filters-menu-content",style:{height:t}},i.a.createElement(Er,{items:s,menuItemComponent:Zo,menuItemsProps:{formatHref:n}}))})),i.a.createElement("div",{className:"gn-filters-menu-tools"},r.length>0&&i.a.createElement(Vn,{alignRight:!0},i.a.createElement(Vn.Toggle,{id:"sort-dropdown",variant:"default",size:"sm"},i.a.createElement(nr.default,{msgId:(null==c?void 0:c.labelId)||u})),i.a.createElement(Vn.Menu,null,r.map((function(e){var t=e.labelId,r=e.value;return i.a.createElement(Vn.Item,{key:r,active:r===(null==c?void 0:c.value),href:n({query:{sort:[r]},replaceQuery:!0})},i.a.createElement(nr.default,{msgId:t}))})))))))}));Qo.defaultProps={orderOptions:[{label:"Most recent",labelId:"gnhome.mostRecent",value:"-date"},{label:"Less recent",labelId:"gnhome.lessRecent",value:"date"},{label:"A Z",labelId:"gnhome.aZ",value:"title"},{label:"Z A",labelId:"gnhome.zA",value:"-title"},{label:"Most popular",labelId:"gnhome.mostPopular",value:"popular_count"}],defaultLabelId:"gnhome.orderBy",formatHref:function(){return"#"},onClear:function(){}};var $o=Qo,es=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.className,l=e.type,u=void 0===l?"checkbox":l,c=e.isValid,d=void 0!==c&&c,f=e.isInvalid,p=void 0!==f&&f,m=e.isStatic,h=e.as,b=void 0===h?"input":h,y=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"]),g=Object(s.useContext)(Q),_=g.controlId,w=g.custom?[o,"custom-control-input"]:[r,"form-check-input"];return r=S(w[0],w[1]),i.a.createElement(b,Object(v.a)({},y,{ref:t,type:u,id:n||_,className:x()(a,r,d&&"is-valid",p&&"is-invalid",m&&"position-static")}))}));es.displayName="FormCheckInput";var ts=es,ns=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,o=e.className,a=e.htmlFor,l=Object(j.a)(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),u=Object(s.useContext)(Q),c=u.controlId,d=u.custom?[r,"custom-control-label"]:[n,"form-check-label"];return n=S(d[0],d[1]),i.a.createElement("label",Object(v.a)({},l,{ref:t,htmlFor:a||c,className:x()(o,n)}))}));ns.displayName="FormCheckLabel";var rs=ns,os=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.inline,l=void 0!==a&&a,u=e.disabled,c=void 0!==u&&u,d=e.isValid,f=void 0!==d&&d,p=e.isInvalid,m=void 0!==p&&p,h=e.feedbackTooltip,b=void 0!==h&&h,y=e.feedback,g=e.className,_=e.style,w=e.title,M=void 0===w?"":w,O=e.type,k=void 0===O?"checkbox":O,E=e.label,T=e.children,L=e.custom,P=e.as,A=void 0===P?"input":P,D=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"]),C="switch"===k||L,F=C?[o,"custom-control"]:[r,"form-check"];r=S(F[0],F[1]);var N=Object(s.useContext)(Q).controlId,I=Object(s.useMemo)((function(){return{controlId:n||N,custom:C}}),[N,C,n]),R=null!=E&&!1!==E&&!T,Y=i.a.createElement(ts,Object(v.a)({},D,{type:"switch"===k?"checkbox":k,ref:t,isValid:f,isInvalid:m,isStatic:!R,disabled:c,as:A}));return i.a.createElement(Q.Provider,{value:I},i.a.createElement("div",{style:_,className:x()(g,r,C&&"custom-"+k,l&&r+"-inline")},T||i.a.createElement(i.a.Fragment,null,Y,R&&i.a.createElement(rs,{title:M},E),(f||m)&&i.a.createElement(Z,{type:f?"valid":"invalid",tooltip:b},y))))}));os.displayName="FormCheck",os.Input=ts,os.Label=rs;var ss=os,is=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.className,l=e.isValid,u=e.isInvalid,c=e.lang,d=e.as,f=void 0===d?"input":d,p=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"]),m=Object(s.useContext)(Q),h=m.controlId,b=m.custom?[o,"custom-file-input"]:[r,"form-control-file"];return r=S(b[0],b[1]),i.a.createElement(f,Object(v.a)({},p,{ref:t,id:n||h,type:"file",lang:c,className:x()(a,r,l&&"is-valid",u&&"is-invalid")}))}));is.displayName="FormFileInput";var as=is,ls=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.bsCustomPrefix,o=e.className,a=e.htmlFor,l=Object(j.a)(e,["bsPrefix","bsCustomPrefix","className","htmlFor"]),u=Object(s.useContext)(Q),c=u.controlId,d=u.custom?[r,"custom-file-label"]:[n,"form-file-label"];return n=S(d[0],d[1]),i.a.createElement("label",Object(v.a)({},l,{ref:t,htmlFor:a||c,className:x()(o,n),"data-browse":l["data-browse"]}))}));ls.displayName="FormFileLabel";var us=ls,cs=i.a.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsCustomPrefix,a=e.disabled,l=void 0!==a&&a,u=e.isValid,c=void 0!==u&&u,d=e.isInvalid,f=void 0!==d&&d,p=e.feedbackTooltip,m=void 0!==p&&p,h=e.feedback,b=e.className,y=e.style,g=e.label,_=e.children,w=e.custom,M=e.lang,O=e["data-browse"],k=e.as,E=void 0===k?"div":k,T=e.inputAs,L=void 0===T?"input":T,P=Object(j.a)(e,["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"]),A=w?[o,"custom"]:[r,"form-file"];r=S(A[0],A[1]);var D=Object(s.useContext)(Q).controlId,C=Object(s.useMemo)((function(){return{controlId:n||D,custom:w}}),[D,w,n]),F=null!=g&&!1!==g&&!_,N=i.a.createElement(as,Object(v.a)({},P,{ref:t,isValid:c,isInvalid:f,disabled:l,as:L,lang:M}));return i.a.createElement(Q.Provider,{value:C},i.a.createElement(E,{style:y,className:x()(b,r,w&&"custom-file")},_||i.a.createElement(i.a.Fragment,null,w?i.a.createElement(i.a.Fragment,null,N,F&&i.a.createElement(us,{"data-browse":O},g)):i.a.createElement(i.a.Fragment,null,F&&i.a.createElement(us,null,g),N),(c||f)&&i.a.createElement(Z,{type:c?"valid":"invalid",tooltip:m},h))))}));cs.displayName="FormFile",cs.Input=as,cs.Label=us;var ds=cs,fs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.controlId,l=e.as,u=void 0===l?"div":l,c=Object(j.a)(e,["bsPrefix","className","children","controlId","as"]);n=S(n,"form-group");var d=Object(s.useMemo)((function(){return{controlId:a}}),[a]);return i.a.createElement(Q.Provider,{value:d},i.a.createElement(u,Object(v.a)({},c,{ref:t,className:x()(r,n)}),o))}));fs.displayName="FormGroup";var ps=fs,ms=["xl","lg","md","sm","xs"],hs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,s=void 0===o?"div":o,a=Object(j.a)(e,["bsPrefix","className","as"]),l=S(n,"col"),u=[],c=[];return ms.forEach((function(e){var t,n,r,o=a[e];if(delete a[e],"object"==typeof o&&null!=o){var s=o.span;t=void 0===s||s,n=o.offset,r=o.order}else t=o;var i="xs"!==e?"-"+e:"";t&&u.push(!0===t?""+l+i:""+l+i+"-"+t),null!=r&&c.push("order"+i+"-"+r),null!=n&&c.push("offset"+i+"-"+n)})),u.length||u.push(l),i.a.createElement(s,Object(v.a)({},a,{ref:t,className:x.a.apply(void 0,[r].concat(u,c))}))}));hs.displayName="Col";var bs=hs,ys=i.a.forwardRef((function(e,t){var n=e.as,r=void 0===n?"label":n,o=e.bsPrefix,a=e.column,l=e.srOnly,u=e.className,c=e.htmlFor,d=Object(j.a)(e,["as","bsPrefix","column","srOnly","className","htmlFor"]),f=Object(s.useContext)(Q).controlId;o=S(o,"form-label");var p="col-form-label";"string"==typeof a&&(p=p+"-"+a);var m=x()(u,o,l&&"sr-only",a&&p);return c=c||f,a?i.a.createElement(bs,Object(v.a)({as:"label",className:m,htmlFor:c},d)):i.a.createElement(r,Object(v.a)({ref:t,className:m,htmlFor:c},d))}));ys.displayName="FormLabel",ys.defaultProps={column:!1,srOnly:!1};var gs=ys,vs=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,s=void 0===o?"small":o,a=e.muted,l=Object(j.a)(e,["bsPrefix","className","as","muted"]);return n=S(n,"form-text"),i.a.createElement(s,Object(v.a)({},l,{ref:t,className:x()(r,n,a&&"text-muted")}))}));vs.displayName="FormText";var js=vs,_s=i.a.forwardRef((function(e,t){return i.a.createElement(ss,Object(v.a)({},e,{ref:t,type:"switch"}))}));_s.displayName="Switch",_s.Input=ss.Input,_s.Label=ss.Label;var xs=_s,ws=Y("form-row"),Ss=i.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.inline,o=e.className,s=e.validated,a=e.as,l=void 0===a?"form":a,u=Object(j.a)(e,["bsPrefix","inline","className","validated","as"]);return n=S(n,"form"),i.a.createElement(l,Object(v.a)({},u,{ref:t,className:x()(o,s&&"was-validated",r&&n+"-inline")}))}));Ss.displayName="Form",Ss.defaultProps={inline:!1},Ss.Row=ws,Ss.Group=ps,Ss.Control=ee,Ss.Check=ss,Ss.File=ds,Ss.Switch=xs,Ss.Label=gs,Ss.Text=js;var Ms=Ss,Os=n("./node_modules/react-select/dist/react-select.es.js"),ks=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js"),Es=n("./MapStore2/web/client/components/map/BaseMap.jsx"),Ts=n("./MapStore2/web/client/components/map/enhancers/mapType.js"),Ls=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),Ps=n("./MapStore2/node_modules/lodash/isNil.js"),As=n.n(Ps),Ds=n("./MapStore2/node_modules/lodash/join.js"),Cs=n.n(Ds);function Fs(e){return function(e){if(Array.isArray(e))return Rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Is(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 Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||Is(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 Is(e,t){if(e){if("string"==typeof e)return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rs(e,t):void 0}}function Rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i.a.createElement(bs,{ref:b},l.map((function(e){var t=e.id,r=e.labelId,o=e.label,s=e.placeholderId,a=e.description,l=e.options,u=e.suggestionsRequestKey,c="".concat(n,"-").concat(t||u),d=u?f[u].filterKey:"filter{".concat(t,".in}"),p=u?m[f[u].filterKey]||[]:m[d]||[],b=u?{loadOptions:f[u].loadOptions}:{options:l.map((function(e){return{value:e,label:e}}))},g=u?ti:ei;return i.a.createElement(Ms.Group,{key:c,controlId:c},i.a.createElement(Ms.Label,null,i.a.createElement("strong",null,r?i.a.createElement(nr.default,{msgId:r}):o)),i.a.createElement(g,Gs({value:p.map((function(e){return{value:e,label:Object(Xr.b)(d,e)||e}})),multi:!0,placeholder:s,onChange:function(e){h(Js(Js({},y.current.values),{},Zs({},d,e.map((function(e){return e.value})))))}},b)),a&&i.a.createElement(Ms.Text,{className:"text-muted"},a))}))),i.a.createElement(bs,{style:{height:(null===(t=b.current)||void 0===t?void 0:t.clientHeight)||400}},i.a.createElement(Ks,{id:n,extent:m.extent,queryExtent:a.extent,layers:null==d?void 0:d.layers,vectorLayerStyle:null==d?void 0:d.style,onChange:function(e){var t=e.extent;return h(Js(Js({},m),{},{extent:t}))}})))),i.a.createElement("div",{className:"gn-filter-form-footer"},i.a.createElement(L,{variant:"default",onClick:function(){u(m)}},i.a.createElement(nr.default,{msgId:"gnhome.apply"})),i.a.createElement(L,{variant:"default",onClick:function(){var e=Object.keys(m).reduce((function(e,t){return Js(Js({},e),{},Zs({},t,"extent"===t?void 0:[]))}),{});h(e),u(e)}},i.a.createElement(nr.default,{msgId:"gnhome.clearFilters"})))):null}ni.defaultProps={fields:[],onChange:function(){},suggestionsRequestTypes:{}};var ri=ni,oi=Object(s.forwardRef)((function(e,t){var n=e.style,r=e.value,o=e.onSelect,s=e.inline,a=Object(d.g)(),l=a?Object.keys(a):[],u=l.map((function(e){return{key:e,value:a[e].code,label:a[e].description}})),c=l.find((function(e){return a[e].code===r})),f=(null==a?void 0:a[c])||{};return i.a.createElement("div",{ref:t,className:"gn-language-selector",style:n},s?u.map((function(e){return i.a.createElement(L,{active:e.value===r,key:e.key,variant:"default",onClick:function(){return o(e.value)}},e.key)})):i.a.createElement(Vn,{alignRight:!0},i.a.createElement(Vn.Toggle,{id:"language-selector",variant:"default",size:"sm"},f.description||i.a.createElement(nr.default,{msgId:"gnhome.language"})),i.a.createElement(Vn.Menu,null,u.map((function(e){return i.a.createElement(Vn.Item,{active:e.value===r,key:e.key,onClick:function(){return o(e.value)}},e.label)})))))}));oi.propTypes={style:h.a.object,value:h.a.string,inline:h.a.bool},oi.defaultProps={value:"",inline:!1};var si=oi,ii="GEONODE_SEARCH:UPDATE_SUGGESTIONS",ai="GEONODE_SEARCH:LOADING_SUGGESTIONS",li="GEONODE_SEARCH:SEARCH_RESOURCES",ui="GEONODE_SEARCH:UPDATE_RESOURCES",ci="GEONODE_SEARCH:LOADING_RESOURCES";function di(e){return{type:"GEONODE_SEARCH:FETCH_SUGGESTIONS",text:e}}function fi(e){return{type:ii,suggestions:e}}function pi(e){return{type:ai,loading:e}}function mi(e,t){return{type:li,params:e,pathname:t}}function hi(e,t){return{type:ui,resources:e,reset:t}}function bi(e){return{type:ci,loading:e}}function yi(e,t){return{type:"GEONODE_SEARCH:REQUEST_RESOURCE",pk:e,ctype:t}}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ni=[],Ii=[],Ri=Object(u.connect)(Object(g.a)([C.b],(function(e){return{value:e}})),{onSelect:D.c.bind(null,null)})(si),Yi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.suggestions)||Ni},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.loading)||!1}],(function(e,t){return{suggestions:e,loading:t}})),{onFetchSuggestions:di,onClearSuggestions:fi.bind(null,[])})(Re),zi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.resources)||Ii},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.loading)||!1},function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.isNextPageAvailable)||!1},function(e){var t;return null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.isFirstRequest}],(function(e,t,n,r){return{resources:e,loading:t,isNextPageAvailable:n,isFirstRequest:r}})))((function(e){var t,n=e.query,r=e.user,o=e.isFirstRequest,s=Fi(e,["query","user","isFirstRequest"]),a=(null===(t=s.resources)||void 0===t?void 0:t.length)>0,l=Object.keys(n||{}).filter((function(e){return"sort"!==e})).length>0,u=!!r,c=a||o||s.loading?void 0:(l?"noResultsWithFilter":u&&"noContentYet")||"noPublicContent";return i.a.createElement(ro,Ci({},s,{messageId:c}))})),Hi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnresource)||void 0===t?void 0:t.loading)||!1}],(function(e){return{loading:e}})))(Jo),Ui={resourceTypes:{filterKey:"filter{resource_type.in}",loadOptions:function(e,t){return Object(Oi.h)(Ai(Ai({},t),{},{q:e}),"filter{resource_type.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},categories:{filterKey:"filter{category.identifier.in}",loadOptions:function(e,t){return Object(Mi.b)(Ai(Ai({},t),{},{q:e}),"filter{category.identifier.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},keywords:{filterKey:"filter{keywords.slug.in}",loadOptions:function(e,t){return Object(Mi.c)(Ai(Ai({},t),{},{q:e}),"filter{keywords.slug.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},regions:{filterKey:"filter{regions.name.in}",loadOptions:function(e,t){return Object(Mi.e)(Ai(Ai({},t),{},{q:e}),"filter{regions.name.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}},owners:{filterKey:"filter{owner.username.in}",loadOptions:function(e,t){return Object(Mi.d)(Ai(Ai({},t),{},{q:e}),"filter{owner.username.in}").then((function(e){return{options:e.map((function(e){return e.selectOption}))}})).catch((function(){return null}))}}};function Bi(e){var t,n,r,o,a,l,u,c,d=e.location,f=e.theme,p=e.params,m=e.onSearch,h=e.menu,b=e.navbar,g=e.footer,v=e.hideHero,j=e.onSelect,_=e.match,x=e.filters,w=e.user,S=e.width,M=e.resource,O=function(e){return e<968?"sm":e<1400?"md":"lg"}(S),k=Object(s.useRef)();Object(s.useEffect)((function(){return k.current=!0,function(){k.current=!1}}),[]);var E=Object(s.useRef)(),T=Object(s.useRef)(),P=Object(s.useRef)(),D=Object(s.useRef)(),C=Ei(Object(Si.b)(),2),F=C[0],I=C[1],R={brandNavbarHeight:E.current?E.current.getBoundingClientRect().height:0,menuIndexNodeHeight:T.current?T.current.getBoundingClientRect().height:0,filtersMenuNodeHeight:P.current?P.current.getBoundingClientRect().height:0,footerNodeHeight:D.current?D.current.getBoundingClientRect().height:0},Y=Ei(Object(s.useState)(!1),2),z=Y[0],H=Y[1];function U(e,t){var n=y.a.parse(d.search,!0).query;m(Ai(Ai(Ai({},n),p),e),t)}function B(e){return Object(Xr.g)(Ai({location:d},e))}var q=y.a.parse(d.search,!0).query,W=Object.keys(q).reduce((function(e,t){return 0===t.indexOf("filter")?[].concat(ki(e),ki(A()(q[t]).map((function(e){return{key:t,value:e}})))):e}),[]),V=_.params.pk,K=_.params.ctype;Object(s.useEffect)((function(){j(V,K)}),[V,K]);var G=Ei(Object(s.useState)(0),2),X=G[0],J=G[1],Z=Object(s.useRef)(!1);Z.current={query:q},Object(s.useEffect)((function(){var e=Object.keys(Ui).map((function(e){return Ui[e]})),t=Object.keys(Z.current.query),n=[];t.forEach((function(t){var r=e.find((function(e){var n=e.filterKey;return t===n}));if(r){var o=A()(Z.current.query[t]).filter((function(e){return!Object(Xr.a)(t,e)}));if((null==o?void 0:o.length)>0){var s=r.loadOptions.bind(null,"",{idIn:o});n.push(s)}}})),Promise.all(n.map((function(e){return e()}))).then((function(){k.current&&J(X+1)}))}),[]);var Q=i.a.createElement(Yi,{key:"search",value:p.q||"",disableSuggestions:z,style:{width:"100%",maxWidth:716,margin:"auto"},onChange:function(e){return U({q:e},"/search/")},append:"sm"!==O&&i.a.createElement(L,{variant:"default",onClick:function(){return H(!z)}},i.a.createElement(N,{name:"filter"}))},"sm"!==O&&i.a.createElement(ri,{id:"gn-filter-form",query:q,show:z,onClose:function(){return H(!1)},fields:null==x||null===(t=x.fields)||void 0===t?void 0:t.options,extentProps:null==x?void 0:x.extent,onChange:U,suggestionsRequestTypes:Ui})),$=!v&&I;return i.a.createElement("div",{className:"gn-home gn-theme-".concat((null==f?void 0:f.variant)||"light")},i.a.createElement(mr,{ref:E,logo:A()((null==b?void 0:b.logo)||[]).map((function(e){return Ai(Ai({},e),e[O])})),navItems:null==b?void 0:b.items,inline:"sm"!==O,pageSize:O,user:w,style:Ai(Ai({},null==f||null===(n=f.navbar)||void 0===n?void 0:n.style),{},{width:S})},!$&&Q),!v&&i.a.createElement(vr,{style:Ai({marginTop:R.brandNavbarHeight},null==f||null===(r=f.hero)||void 0===r?void 0:r.style),jumbotronStyle:null==f||null===(o=f.jumbotron)||void 0===o?void 0:o.style},i.a.createElement("div",{ref:F},$&&Q)),i.a.createElement(Dr,{ref:T,style:{top:R.brandNavbarHeight,width:S},user:w,query:q,menuItems:null==h?void 0:h.items,formatHref:B,tools:i.a.createElement(Ri,{inline:null==f||null===(a=f.languageSelector)||void 0===a?void 0:a.inline,style:null==f||null===(l=f.languageSelector)||void 0===l?void 0:l.style})}),i.a.createElement(zi,{user:w,query:q,pageSize:O,isColumnActive:!!M,containerStyle:$?void 0:{marginTop:R.brandNavbarHeight,minHeight:"calc(100vh - ".concat(R.brandNavbarHeight+R.menuIndexNodeHeight+R.footerNodeHeight,"px )"),paddingBottom:R.footerNodeHeight},column:i.a.createElement(Hi,{resource:M,filters:W,formatHref:B,sectionStyle:Ai({width:"lg"===O?700:"md"===O?600:"100%"},!$&&{position:"fixed",top:R.brandNavbarHeight+R.menuIndexNodeHeight,bottom:R.footerNodeHeight,overflowY:"scroll",height:"auto"})}),isCardActive:function(e){return e.pk===V},page:p.page?parseFloat(p.page):1,formatHref:B,onLoad:function(e){U({page:e})}},i.a.createElement($o,{ref:P,style:{top:R.brandNavbarHeight+R.menuIndexNodeHeight},formatHref:B,order:null==q?void 0:q.sort,filters:W,onClear:function(){var e=y.a.parse(d.search,!0).query;U(Object.keys(e).reduce((function(e,t){return 0===t.indexOf("filter")?Ai(Ai({},e),{},Di({},t,[])):e}),{extent:void 0}))},orderOptions:null==x||null===(u=x.order)||void 0===u?void 0:u.options,defaultLabelId:null==x||null===(c=x.order)||void 0===c?void 0:c.defaultLabelId})),i.a.createElement(wi,{ref:D,footerItems:g.items}))}Bi.propTypes={dispatch:h.a.func,history:h.a.object,location:h.a.object,match:h.a.object,plugins:h.a.object,pluginsConfig:h.a.array,background:h.a.object,logo:h.a.array,jumbotron:h.a.object},Bi.defaultProps={background:{},logo:[],jumbotron:{}};var qi={},Wi=Object(u.connect)(Object(g.a)([function(e){var t;return(null==e||null===(t=e.gnsearch)||void 0===t?void 0:t.params)||qi},function(e){var t;return(null==e||null===(t=e.security)||void 0===t?void 0:t.user)||null},function(e){var t;return(null==e||null===(t=e.gnresource)||void 0===t?void 0:t.data)||null}],(function(e,t,n){return{params:e,user:t,resource:n}})),{onSearch:mi,onSelect:yi})(Object(xr.a)(Bi));function Vi(e){return function(e){if(Array.isArray(e))return Ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(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 Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{resources:[],params:{},previousParams:{},isFirstRequest:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ii:return Xi(Xi({},e),{},{suggestions:t.suggestions});case ai:return Xi(Xi({},e),{},{loading:t.loading});case li:return Xi(Xi({},e),{},{nextParams:t.params});case ui:return Xi(Xi({},e),{},{isFirstRequest:!1,resources:t.reset?Vi(t.resources):[].concat(Vi(e.resources),Vi(t.resources))});case"GEONODE_SEARCH:UPDATE_RESOURCES_METADATA":return Xi(Xi(Xi(Xi({},e),{},{isNextPageAvailable:t.metadata.isNextPageAvailable},t.metadata.params&&{params:t.metadata.params,previousParams:e.params,nextParams:null}),!As()(t.metadata.locationSearch)&&{locationSearch:t.metadata.locationSearch}),!As()(t.metadata.locationPathname)&&{locationPathname:t.metadata.locationPathname});case ci:return Xi(Xi({},e),{},{loading:t.loading});default:return e}},Qi=n("./js/reducers/gnresource.js"),$i=n("./node_modules/rxjs/Rx.js"),ea=n("./MapStore2/node_modules/lodash/isEqual.js"),ta=n.n(ea),na=n("./MapStore2/node_modules/lodash/isArray.js"),ra=n.n(na),oa=n("./js/actions/gnresource.js"),sa=n("./node_modules/connected-react-router/esm/actions.js");function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aa(e,t)}(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 aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=y.a.parse(e||"",!0),o=r.query,s=(o.page,la(o,["page"])),i=fa(ca(ca({},t),s)),a=i.page,l=la(i,["page"]);return[l,a?parseFloat(a):n]},ma=function(e){var t=e.params,n=e.pageSize,r=e.reset,o=e.location;return $i.Observable.defer((function(){return Object(Oi.i)(ca(ca({},t),{},{pageSize:n}))})).switchMap((function(e){var n=e.resources,s=e.isNextPageAvailable;return $i.Observable.of(hi(n,r),{type:"GEONODE_SEARCH:UPDATE_RESOURCES_METADATA",metadata:{isNextPageAvailable:s,params:t,locationSearch:o.search,locationPathname:o.pathname}},bi(!1))})).startWith(fi([]),bi(!0))},ha={gnsFetchSuggestionsEpic:function(e){return e.ofType("GEONODE_SEARCH:FETCH_SUGGESTIONS").debounceTime(300).switchMap((function(e){var t=e.text;return $i.Observable.defer((function(){return Object(Mi.a)({q:t})})).switchMap((function(e){var t=e.suggestions;return $i.Observable.of(fi(t),pi(!1))})).startWith(pi(!0))}))},gnsSearchResourcesEpic:function(e,t){return e.ofType(li).switchMap((function(e){var n,r,o=e.pathname,s=e.params,i=t.getState(),a=fa(null==i||null===(n=i.gnsearch)||void 0===n?void 0:n.params),l=fa(s),u=Object(Xr.d)(),c=Object.keys(a).reduce((function(e,t){return-1===u.indexOf(t)?ca(ca({},e),{},da({},t,a[t])):e}),{}),d=Object.keys(l).reduce((function(e,t){return-1===u.indexOf(t)?ca(ca({},e),{},da({},t,l[t])):e}),{});if(!ta()(c,d)){var f,p,m=-1!==(null===(f=i.router)||void 0===f||null===(p=f.location)||void 0===p?void 0:p.pathname.indexOf(o));return $i.Observable.of(Object(sa.d)(ca(ca({},o&&!m&&{pathname:o}),{},{search:y.a.format({query:d})})))}return ta()(a,l)?$i.Observable.empty():$i.Observable.of({type:"GEONODE_SEARCH:UPDATE_RESOURCES_REQUEST",payload:{action:"PUSH",params:l,location:null==i||null===(r=i.router)||void 0===r?void 0:r.location}})}))},gnsSearchResourcesOnLocationChangeEpic:function(e,t){return e.ofType(sa.b,"GEONODE_SEARCH:UPDATE_RESOURCES_REQUEST").filter((function(e){var t=e.payload;return"PUSH"===t.action||"POP"===t.action})).switchMap((function(e){var n,r=Object(Xr.c)(),o=e.payload||{},s=o.isFirstRendering,i=o.location,a=t.getState(),l=a.gnsearch.nextParams,u=ia(pa(a.gnsearch.locationSearch,a.gnsearch.params),2),c=u[0],d=u[1],f=ia(pa(i.search,l||{}),2),p=f[0],m=f[1];if(!l){var h=ca(ca({},p),{},{page:1});return!s&&ta()(c,p)?$i.Observable.empty():ma({params:h,pageSize:r,reset:!0,location:i})}var b=(null===(n=a.gnsearch)||void 0===n?void 0:n.resources.length)||0,y=Math.floor(b/r),g=m===d+1&&m===y+1,v=s||!ta()(c,p)||!g,j=v?1:m,_=ca(ca({},p),{},{page:j});return ma({params:_,pageSize:r,reset:v,location:i})}))},gnsSelectResourceEpic:function(e){return e.ofType("GEONODE_SEARCH:REQUEST_RESOURCE").switchMap((function(e){return As()(e.pk)?$i.Observable.of(Object(oa.l)(null)):$i.Observable.defer((function(){return Object(Oi.g)(e.pk)})).switchMap((function(e){return $i.Observable.of(Object(oa.l)(e))})).catch((function(e){return $i.Observable.of(Object(oa.i)(e.data||e.message))})).startWith(Object(oa.j)())}))}},ba={gnSetLanguageEpic:function(e){return e.ofType(D.a).switchMap((function(e){var t=e.locale,n=Object(d.g)(),r=Object.keys(n).find((function(e){var r;return(null===(r=n[e])||void 0===r?void 0:r.code)===t}));return $i.Observable.defer((function(){return Object(Mi.g)(r)})).switchMap((function(){return $i.Observable.empty()}))}))}},ya=n("./MapStore2/web/client/libs/ajax.js"),ga=n.n(ya);n("./themes/geonode/scss/geonode.scss");function va(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(e,t)}(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 _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return s(s({},e),{},{loading:!0});case r.d:return s(s({},e),{},{error:null,data:t.data,loading:!1});case r.a:return s(s({},e),{},{data:null,error:t.error,loading:!1});case r.h:return s(s({},e),{},{data:s(s({},e.data),t.properties)});case r.g:return s(s({},e),{},{type:t.resourceType});case r.c:return s(s({},e),{},{isNew:!0});case r.e:return s(s({},e),{},{id:t.id});case r.f:return s(s({},e),{},{permissions:t.permissions});default:return e}}},"./js/utils/APIUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));n("./node_modules/url/url.js");var r={},o=function(e){return e},s=function(e,t){r[e]=t},i=function(e){return r[e]}},"./js/utils/GNSearchUtils.js":function(e,t,n){"use strict";n.d(t,"h",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"g",(function(){return j})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return x}));var r=n("./node_modules/url/url.js"),o=n.n(r),s=n("./MapStore2/node_modules/lodash/castArray.js"),i=n.n(s);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["page"],m={},h=function(e,t){m[e]=t},b=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return null==m||null===(e=m[n+r])||void 0===e||null===(t=e.selectOption)||void 0===t?void 0:t.label},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return null==m?void 0:m[e+t]},g=function(){return p},v=function(){return 20},j=function(e){var t=e.location,n=e.pathname,r=e.query,s=e.replaceQuery,l=t.search,u=f(t,["search"]),p=o.a.parse(l||"",!0).query,m=r?s?c(c({},p),r):Object.keys(r).reduce((function(e,t){var n=r[t],o=i()(e[t]).filter((function(e){return e})),s=-1===o.indexOf(n)?[].concat(a(o),[n]):o.filter((function(e){return e!==n}));return c(c({},e),{},d({},t,s))}),p):p;return"#".concat(o.a.format(c(c(c({},u),n&&{pathname:n}),{},{query:Object.keys(m).reduce((function(e,t){return m[t]&&0!==m[t].length?c(c({},e),{},d({},t,m[t])):e}),{})})))};function _(e){return e.first_name&&e.last_name?"".concat(e.first_name," ").concat(e.last_name):e.username}var x=function(){return{layer:{icon:"layer-group",name:"Layer"},map:{icon:"map-marked",embed:"/maps/{pk}/embed",name:"Map"},document:{icon:"file",name:"Document"},geostory:{icon:"book-open",embed:"/apps/{pk}/embed",name:"GeoStory"},image:{icon:"file-image",name:"Image"},video:{icon:"file-video",name:"Video"}}}},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=l,t.isNumber=u,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw r(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw r(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw r(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw r(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!l(e))throw r(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw r(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw r(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw r(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw r(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw r(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw r(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},_.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(v.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},_.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},_.prototype.number=function(e){if(!j.test(e)){if(v.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},_.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},_.prototype.keyword=function(e){if(g.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!v.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},_.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!v.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},_.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var n=e.GEOGCS;function r(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(n=e),n&&(n.DATUM?e.datumCode=n.DATUM.name.toLowerCase():e.datumCode=n.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),n.DATUM&&n.DATUM.SPHEROID&&(e.ellps=n.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=n.DATUM.SPHEROID.a,e.rf=parseFloat(n.DATUM.SPHEROID.rf,10)),n.DATUM&&n.DATUM.TOWGS84&&(e.datum_params=n.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",S],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",S],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",S],["lat0","latitude_of_origin",S],["lat0","standard_parallel_1",S],["lat1","standard_parallel_1",S],["lat2","standard_parallel_2",S],["azimuth","Azimuth"],["alpha","azimuth",S],["srsCode","name"]].forEach((function(t){return n=e,o=(r=t)[0],s=r[1],void(!(o in n)&&s in n&&(n[o]=n[s],3===r.length&&(n[o]=r[2](n[o]))));var n,r,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=S(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function O(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?O[e]=m(arguments[1]):O[e]=M(arguments[1]):O[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?O.apply(t,e):O(e)}));if("string"==typeof e){if(e in O)return O[e]}else"EPSG"in e?O["EPSG:"+e.EPSG]=e:"ESRI"in e?O["ESRI:"+e.ESRI]=e:"IAU2000"in e?O["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(O);var k=O;var E=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var T=["3857","900913","3785","102113"];var L=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in k}(e))return k[e];if(function(e){return E.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=M(e);if(function(e){var t=p(e,"authority");if(t){var n=p(t,"epsg");return n&&T.indexOf(n)>-1}}(t))return k["EPSG:3857"];var n=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return n?m(n):t}return function(e){return"+"===e[0]}(e)?m(e):void 0},P=function(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e},A=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)},D=function(e){return e<0?-1:1},C=function(e){return Math.abs(e)<=u?e:e-D(e)*l},F=function(e,t,n){var r=e*n,s=.5*e;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(o-t))/r},N=function(e,t){for(var n,r,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(i),i+=r=o-2*Math.atan(t*Math.pow((1-n)/(1+n),s))-i,Math.abs(r)<=1e-10)return i;return-9999};function I(e){return e}var R=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,s=e.y;if(s*i>90&&s*i<-90&&r*i>180&&r*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*C(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var l=Math.sin(s),u=F(this.e,s,l);t=this.x0+this.a*this.k0*C(r-this.long0),n=this.y0-this.a*this.k0*Math.log(u)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,s=e.y-this.y0;if(this.sphere)n=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(n=N(this.e,i)))return null}return t=C(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:I,inverse:I,names:["longlat","identity"]}],Y={},z=[];function H(e,t){var n=z.length;return e.names?(z[n]=e,e.names.forEach((function(e){Y[e.toLowerCase()]=n})),this):(console.log(t),!0)}var U={start:function(){R.forEach(H)},add:H,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==Y[t]&&z[Y[t]]?z[Y[t]]:void 0}},B={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},q=B.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};B.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var W={};W.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},W.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},W.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},W.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},W.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},W.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},W.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},W.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},W.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},W.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},W.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},W.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},W.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},W.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},W.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},W.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},W.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var V=function(e,t,n,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=r,a.datum_params[4]*=r,a.datum_params[5]*=r,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=n,a.b=o,a.es=s,a.ep2=i,a};function K(e,t){if(!(this instanceof K))return new K(e);t=t||function(e){if(e)throw e};var n=L(e);if("object"==typeof n){var r=K.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var o=p(W,n.datumCode);o&&(n.datum_params=o.towgs84?o.towgs84.split(","):null,n.ellps=o.ellipse,n.datumName=o.datumName?o.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var s,i,a,l,u,c,d,f=function(e,t,n,r,o){if(!e){var s=p(B,r);s||(s=q),e=s.a,t=s.b,n=s.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:n,sphere:o}}(n.a,n.b,n.rf,n.ellps,n.sphere),m=(s=f.a,i=f.b,f.rf,a=n.R_A,c=((l=s*s)-(u=i*i))/l,d=0,a?(l=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(l-u)/u}),h=n.datum||V(n.datumCode,n.datum_params,f.a,f.b,m.es,m.ep2);P(this,n),P(this,r),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=h,this.init(),t(null,this)}else t(e)}else t(e)}K.projections=U,K.projections.start();var G=K;function X(e){return 1===e||2===e}var J=function(e,t,n){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?n:e.es!==t.es||e.a!==t.a||X(e.datum_type)||X(t.datum_type)?(n=function(e,t,n){var r,s,i,a,l=e.x,u=e.y,c=e.z?e.z:0;if(u<-o&&u>-1.001*o)u=-o;else if(u>o&&u<1.001*o)u=o;else if(u<-o||u>o)return null;return l>Math.PI&&(l-=2*Math.PI),s=Math.sin(u),a=Math.cos(u),i=s*s,{x:((r=n/Math.sqrt(1-t*i))+c)*a*Math.cos(l),y:(r+c)*a*Math.sin(l),z:(r*(1-t)+c)*s}}(n,e.es,e.a),X(e.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],l=n[5],u=n[6];return{x:u*(e.x-l*e.y+a*e.z)+r,y:u*(l*e.x+e.y-i*e.z)+o,z:u*(-a*e.x+i*e.y+e.z)+s}}}(n,e.datum_type,e.datum_params)),X(t.datum_type)&&(n=function(e,t,n){if(1===t)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(2===t){var r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],l=n[5],u=n[6],c=(e.x-r)/u,d=(e.y-o)/u,f=(e.z-s)/u;return{x:c+l*d-a*f,y:-l*c+d+i*f,z:a*c-i*d+f}}}(n,t.datum_type,t.datum_params)),function(e,t,n,r){var s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j=e.x,_=e.y,x=e.z?e.z:0;if(s=Math.sqrt(j*j+_*_),i=Math.sqrt(j*j+_*_+x*x),s/n<1e-12){if(g=0,i/n<1e-12)return o,v=-r,{x:e.x,y:e.y,z:e.z}}else g=Math.atan2(_,j);a=x/i,f=(l=s/i)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*l*l)),p=a*u,y=0;do{y++,c=t*(d=n/Math.sqrt(1-t*p*p))/(d+(v=s*f+x*p-d*(1-t*p*p))),b=(h=a*(u=1/Math.sqrt(1-c*(2-c)*l*l)))*f-(m=l*(1-c)*u)*p,f=m,p=h}while(b*b>1e-24&&y<30);return{x:g,y:Math.atan(h/Math.abs(m)),z:v}}(n,t.es,t.a,t.b)):n},Z=function(e,t,n){var r,o,s,i=n.x,a=n.y,l=n.z||0,u={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==n.z)switch(0===s?(r=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(r=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(r=l,o="z"),e.axis[s]){case"e":u[o]=r;break;case"w":u[o]=-r;break;case"n":u[o]=r;break;case"s":u[o]=-r;break;case"u":void 0!==n[o]&&(u.z=r);break;case"d":void 0!==n[o]&&(u.z=-r);break;default:return null}return u},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function $(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,n){var r;return Array.isArray(n)&&(n=Q(n)),function(e){$(e.x),$(e.y)}(n),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(n=ee(e,r=new G("WGS84"),n),e=r),"enu"!==e.axis&&(n=Z(e,!1,n)),"longlat"===e.projName?n={x:n.x*s,y:n.y*s}:(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter}),n=e.inverse(n)),e.from_greenwich&&(n.x+=e.from_greenwich),n=J(e.datum,t.datum,n),t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y}),"longlat"===t.projName?n={x:n.x*i,y:n.y*i}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter})),"enu"!==t.axis?Z(t,!0,n):n}var te=G("WGS84");function ne(e,t,n){var r,o,s;return Array.isArray(n)?(r=ee(e,t,n),3===n.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=ee(e,t,n),2===(s=Object.keys(n)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=n[e])})),o)}function re(e){return e instanceof G?e:e.oProj?e.oProj:G(e)}var oe=function(e,t,n){e=re(e);var r,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=te,o=!0),t=re(t),n?ne(e,t,n):(r={forward:function(n){return ne(e,t,n)},inverse:function(n){return ne(t,e,n)}},o&&(r.oProj=t),r)},se=73,ie=79,ae={forward:le,inverse:function(e){var t=fe(he(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:ue};function le(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,m=e.northing,h=e.zoneNumber,b=me(h),y=Math.floor(p/1e5),g=Math.floor(m/1e5)%20,o=y,s=g,i=b,a=i-1,l="AJSAJS".charCodeAt(a),u="AFAFAF".charCodeAt(a),c=l+o-1,d=u+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||lse||(c>se||lie||(c>ie||l90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||use||(d>se||uie||(d>ie||u86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var o,s,i,a,l,u,c,d,f;var p,m,h,b,y,g}(function(e){var t,n,r,o,s,i,a,l=e.lat,u=e.lon,c=6378137,d=ce(l),f=ce(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60);l>=56&&l<64&&u>=3&&u<12&&(a=32);l>=72&&l<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),n=Math.tan(d)*Math.tan(d),r=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-n+r)*o*o*o/6+(5-18*n+n*n+72*r-.39089081163157013)*o*o*o*o*o/120)+5e5,m=.9996*(s+t*Math.tan(d)*(o*o/2+(5-n+9*r+4*r*r)*o*o*o*o/24+(61-58*n+n*n+600*r-2.2240339282485886)*o*o*o*o*o*o/720));l<0&&(m+=1e7);return{northing:Math.round(m),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(l)}}({lat:e[1],lon:e[0]}),t)}function ue(e){var t=fe(he(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,l,u,c,d,f,p=6378137,m=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),h=n-5e5,b=t;r<"N"&&(b-=1e7),c=6*(o-1)-180+3,f=(d=b/.9996/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*d)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*d)+151*m*m*m/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),l=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),u=h/(.9996*s);var y=f-s*Math.tan(f)/l*(u*u/2-(5+3*i+10*a-4*a*a-.06065547077041606)*u*u*u*u/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*u*u*u*u*u*u/720);y=de(y);var g,v=(u-(1+2*i+a)*u*u*u/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*u*u*u*u*u/120)/Math.cos(f);if(v=c+de(v),e.accuracy){var j=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});g={top:j.lat,right:j.lon,bottom:y,left:v}}else g={lat:y,lon:v};return g}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function me(e){var t=e%6;return 0===t&&(t=6),t}function he(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(s,s+=2);for(var l=me(i),u=function(e,t){var n="AJSAJS".charCodeAt(t-1),r=1e5,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>90){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(0),l),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n="AFAFAF".charCodeAt(t-1),r=0,o=!1;for(;n!==e.charCodeAt(0);){if(++n===se&&n++,n===ie&&n++,n>86){if(o)throw"Bad character: "+e;n=65,o=!0}r+=1e5}return r}(r.charAt(1),l);c0&&(f=1e5/Math.pow(10,h),p=e.substring(s,s+h),b=parseFloat(p)*f,m=e.substring(s+h),y=parseFloat(m)*f),{easting:b+u,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function be(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(ue(e))},ye.prototype.toMGRS=function(e){return le([this.x,this.y],e)};var ge=ye,ve=n("./node_modules/@geosolutions/proj4/package.json"),je=.01068115234375,_e=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*je))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*je)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t},xe=function(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))},we=function(e,t,n){for(var r=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(xe(o,i,Math.cos(o),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<1e-10)return o}return o};var Se={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=_e(this.es),this.ml0=xe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,o=e.x,s=e.y,i=C(o-this.long0),a=Math.sin(s),l=Math.cos(s);if(this.es){var u=l*i,c=Math.pow(u,2),d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.abs(l)>1e-10?Math.tan(s):0,m=Math.pow(p,2),h=Math.pow(m,2);t=1-this.es*Math.pow(a,2),u/=Math.sqrt(t);var b=xe(s,a,l,this.en);n=this.a*(this.k0*u*(1+c/6*(1-m+d+c/20*(5-18*m+h+14*d-58*m*d+c/42*(61+179*h-h*m-479*m)))))+this.x0,r=this.a*(this.k0*(b-this.ml0+a*i*u/2*(1+c/12*(5-m+9*d+4*f+c/30*(61+h-58*m+270*d-330*m*d+c/56*(1385+543*h-h*m-3111*m))))))+this.y0}else{var y=l*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=l*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>1e-10)return 93;r=0}else r=Math.acos(r);s<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,n=we(t,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.pow(c,2),m=Math.pow(p,2);t=1-this.es*Math.pow(l,2);var h=i*Math.sqrt(t)/this.k0,b=Math.pow(h,2);r=n-(t*=c)*b/(1-this.es)*.5*(1-b/12*(5+3*p-9*d*p+d-4*f-b/30*(61+90*p-252*d*p+45*m+46*d-b/56*(1385+3633*p+4095*m+1574*m*p)))),s=C(this.long0+h*(1-b/6*(1+2*p+d-b/20*(5+28*p+24*m+8*d*p+6*d-b/42*(61+662*p+1320*m+720*m*p))))/u)}else r=o*D(a),s=0;else{var y=Math.exp(i/this.k0),g=.5*(y-1/y),v=this.lat0+a/this.k0,j=Math.cos(v);t=Math.sqrt((1-Math.pow(j,2))/(1+Math.pow(g,2))),r=Math.asin(t),a<0&&(r=-r),s=0===g&&0===j?0:C(Math.atan2(g,j)+this.long0)}return e.x=s,e.y=r,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Me=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Oe=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))},ke=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(Oe(1,t)+1))),e<0?-t:t},Ee=function(e,t){for(var n,r=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return t+n*Math.sin(2*t)},Te=function(e,t,n){for(var r,o,s=Math.sin(t),i=Math.cos(t),a=Me(n),l=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(n),u=2*i*l,c=-2*s*a,d=e.length-1,f=e[d],p=0,m=0,h=0;--d>=0;)r=m,o=p,f=u*(m=f)-r-c*(p=h)+e[d],h=c*m-o+u*p;return[(u=s*l)*f-(c=i*a)*h,u*h+c*f]};var Le={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=Ee(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)n=r*s-i+e[o],i=s,s=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=C(e.x-this.long0),n=e.y;n=Ee(this.cbg,n);var r=Math.sin(n),o=Math.cos(n),s=Math.sin(t),i=Math.cos(t);n=Math.atan2(r,i*o),t=Math.atan2(s*o,Oe(r,o*i)),t=ke(Math.tan(t));var a,l,u=Te(this.gtu,2*n,2*t);return n+=u[0],t+=u[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),e.x=a,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var s=Te(this.utg,2*o,2*r);o+=s[0],r+=s[1],r=Math.atan(Me(r));var i=Math.sin(o),a=Math.cos(o),l=Math.sin(r),u=Math.cos(r);o=Math.atan2(i*u,Oe(l,u*a)),r=Math.atan2(l,u*a),t=C(r+this.long0),n=Ee(this.cgb,o)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var Pe={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(C(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Le.init.apply(this),this.forward=Le.forward,this.inverse=Le.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Ae=function(e,t){return Math.pow((1-e)/(1+e),t)};var De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Ae(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+a),this.C)*Ae(this.e*Math.sin(n),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+a)/this.K,1/this.C),s=20;s>0&&(n=2*Math.atan(r*Ae(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(n-e.y)<1e-14));--s)e.y=n;return s?(e.x=t,e.y=n,e):null},names:["gauss"]};var Ce={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,o;return e.x=C(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=o*n*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),n=Math.cos(i),o=Math.asin(n*this.sinc0+e.y*t*this.cosc0/s),r=Math.atan2(e.x*t,s*this.cosc0*n-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,De.inverse.apply(this,[e]),e.x=C(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Fe={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+D(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/F(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=A(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,s,i,a,l=e.x,u=e.y,c=Math.sin(u),d=Math.cos(u),f=C(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=1e-10&&Math.abs(u+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(n=2*Math.atan(this.ssfn_(u,c,this.e))-o,s=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(i=F(this.e,u*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(l-this.long0),e.y=this.y0-this.con*a*Math.cos(l-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*r-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,n,r,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,n=this.lat0,a<=1e-10?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?C(this.long0+Math.atan2(e.x,-1*e.y)):C(this.long0+Math.atan2(e.x,e.y)):C(this.long0+Math.atan2(e.x*Math.sin(l),a*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*N(this.e,r),t=this.con*C(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=C(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),n=-1*N(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*n)}};var Ne={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,o=2*(Math.atan(Math.exp(r))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,o=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(r)),i=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,l=0,u=s,c=-1e3,d=0;Math.abs(u-c)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=a,e.y=u,e},names:["somerc"]};var Ie={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),n=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var r,o,s=F(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-n*n));if(i*i<1&&(i=1),isNaN(this.longc)){var a=F(this.e,this.lat1,Math.sin(this.lat1)),l=F(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var u=Math.pow(a,this.bl),c=Math.pow(l,this.bl);o=.5*((r=this.el/u)-1/r);var d=(this.el*this.el-c*u)/(this.el*this.el+c*u),f=(c-u)/(c+u),p=C(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=C(this.long0);var m=C(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*m)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else r=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=r*Math.pow(s,this.bl),o=.5*(r-1/r),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,n,r,s=e.x,i=e.y,l=C(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)r=i>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(a+r*this.gamma0*.5)),t=-1*r*o*this.al/this.bl;else{var u=F(this.e,i,Math.sin(i)),c=this.el/Math.pow(u,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*l),m=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;n=Math.abs(Math.abs(m)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-m)/(1+m))/this.bl,t=Math.abs(Math.cos(this.bl*l))<=1e-10?this.al*this.bl*l:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*l))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+n):(t-=this.uc,e.x=this.x0+n*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-n*Math.sin(this.alpha)),e},inverse:function(e){var t,n;this.no_rot?(n=e.y-this.y0,t=e.x-this.x0):(n=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*n/this.al),s=.5*(r-1/r),i=.5*(r+1/r),a=Math.sin(this.bl*t/this.al),l=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,u=Math.pow(this.el/Math.sqrt((1+l)/(1-l)),1/this.bl);return Math.abs(l-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(l+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=N(this.e,u),e.x=C(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Re={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=A(this.e,t,n),o=F(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=A(this.e,s,i),l=F(this.e,this.lat2,s),u=F(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(r/a)/Math.log(o/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=D(n)*(o-2e-10));var r,s,i=Math.abs(Math.abs(n)-o);if(i>1e-10)r=F(this.e,n,Math.sin(n)),s=this.a*this.f0*Math.pow(r,this.ns);else{if((i=n*this.ns)<=0)return null;s=0}var a=this.ns*C(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,s,i,a=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+l*l),n=1):(t=-Math.sqrt(a*a+l*l),n=-1);var u=0;if(0!==t&&(u=Math.atan2(n*a,n*l)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(s=N(this.e,r)))return null}else s=-o;return i=C(u/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Ye={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y,c=C(l-this.long0);return t=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/t)-this.s45),r=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),s=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,o,s,i,a,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(o)),n=Math.asin(Math.cos(r)*Math.sin(o)/Math.cos(t)),e.x=this.long0-n/this.alfa,i=t,a=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,u+=1}while(0===a&&u<15);return u>=15?null:e},names:["Krovak","krovak"]},ze=function(e,t,n,r,o){return e*o-t*Math.sin(2*o)+n*Math.sin(4*o)-r*Math.sin(6*o)},He=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},Ue=function(e){return.375*e*(1+.25*e*(1+.46875*e))},Be=function(e){return.05859375*e*e*(1+.75*e)},qe=function(e){return e*e*e*(35/3072)},We=function(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)},Ve=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t};var Je={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Xe(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=.3333333333333333*e,t=e*e,n[0]+=.17222222222222222*t,n[1]=.06388888888888888*t,t*=e,n[0]+=.10257936507936508*t,n[1]+=.0664021164021164*t,n[2]=.016415012942191543*t,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Xe(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,s,i,l,u,c,d,f,p=e.x,m=e.y;if(p=C(p-this.long0),this.sphere){if(i=Math.sin(m),f=Math.cos(m),r=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+f*r:1+this.sinph0*i+this.cosph0*f*r)<=1e-10)return null;t=(n=Math.sqrt(2/n))*f*Math.sin(p),n*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(m+this.phi0)<1e-10)return null;n=a-.5*m,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(p),n*=r}}else{switch(u=0,c=0,d=0,r=Math.cos(p),s=Math.sin(p),i=Math.sin(m),l=Xe(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=l/this.qp,c=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:d=1+this.sinb1*u+this.cosb1*c*r;break;case this.EQUIT:d=1+c*r;break;case this.N_POLE:d=o+m,l=this.qp-l;break;case this.S_POLE:d=m-o,l=this.qp+l}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*u-this.sinb1*c*r):(d=Math.sqrt(2/(1+c*r)))*u*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:l>=0?(t=(d=Math.sqrt(l))*s,n=r*(this.mode===this.S_POLE?d:-d)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,s,i,a,l,u,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var m,h=0,b=0;if((n=.5*(m=Math.sqrt(f*f+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(b=Math.sin(n),h=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(m)<=1e-10?0:Math.asin(p*b/m),f*=b,p=h*m;break;case this.OBLIQ:n=Math.abs(m)<=1e-10?this.phi0:Math.asin(h*this.sinph0+p*b*this.cosph0/m),f*=b*this.cosph0,p=(h-Math.sin(n)*this.sinph0)*m;break;case this.N_POLE:p=-p,n=o-n;break;case this.S_POLE:n-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),r=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(l=r*this.sinb1+p*s*this.cosb1/a,i=this.qp*l,p=a*this.cosb1*r-p*this.sinb1*s):(l=p*s/a,i=this.qp*l,p=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;l=1-i/this.qp,this.mode===this.S_POLE&&(l=-l)}t=Math.atan2(f,p),u=Math.asin(l),c=this.apa,d=u+u,n=u+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=C(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Ze=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=A(this.e3,this.sin_po,this.cos_po),this.qs1=Xe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=A(this.e3,this.sin_po,this.cos_po),this.qs2=Xe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Xe(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Xe(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,s=this.ns0*C(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,i=this.phi1z(this.e3,n)),s=C(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,o,s,i=Ze(.5*t);if(e<1e-10)return i;for(var a=e*e,l=1;l<=25;l++)if(i+=s=.5*(o=1-(r=e*(n=Math.sin(i)))*r)*o/Math.cos(i)*(t/(1-a)-n/o+.5/e*Math.log((1-r)/(1+r))),Math.abs(s)<=1e-7)return i;return null}};var $e={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y;return r=C(l-this.long0),t=Math.sin(u),n=Math.cos(u),o=Math.cos(r),1,(s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*n*Math.sin(r)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)/s):(i=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),n=Math.sin(o),r=Math.cos(o),i=Ze(r*this.sin_p14+e.y*n*this.cos_p14/t),s=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),s=C(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=A(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,o=e.y,s=C(r-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Xe(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,n=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=C(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*o:o;for(var r,s,i,a,l=Math.asin(.5*t),u=0;u<30;u++)if(s=Math.sin(l),i=Math.cos(l),a=e*s,l+=r=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return l;return NaN}(this.e,2*e.y*this.k0/this.a),t=C(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=C(t-this.long0),o=Ve(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,n=e.y;return e.x=C(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Ve(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var nt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Ue(this.es),this.e2=Be(this.es),this.e3=qe(this.es),this.ml0=this.a*ze(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,o=e.x,s=e.y,i=C(o-this.long0);if(r=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(s),n=this.a*(Ve(s-this.lat0)+(1-Math.cos(r))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,n=-1*this.ml0;else{var a=We(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(r),n=this.a*ze(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,o,s,i,a,l,u;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=C(r/this.a+this.long0),n=0;else{var c;for(i=this.lat0+o/this.a,a=r*r/this.a/this.a+i*i,l=i,s=20;s;--s)if(l+=u=-1*(i*(l*(c=Math.tan(l))+1)-l-.5*(l*l+a)*c)/((l-i)/c-1),Math.abs(u)<=1e-10){n=l;break}t=C(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(o+this.ml0)<=1e-10)n=0,t=C(this.long0+r/this.a);else{var d,f,p,m,h;for(i=(this.ml0+o)/this.a,a=r*r/this.a/this.a+i*i,l=i,s=20;s;--s)if(h=this.e*Math.sin(l),d=Math.sqrt(1-h*h)*Math.tan(l),f=this.a*ze(this.e0,this.e1,this.e2,this.e3,l),p=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=u=(i*(d*(m=f/this.a)+1)-m-.5*d*(m*m+a))/(this.es*Math.sin(2*l)*(m*m+a-2*i*m)/(4*d)+(i-m)*(d*p-2/Math.sin(2*l))-p),Math.abs(u)<=1e-10){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=C(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};var rt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,o=e.y-this.lat0,s=n-this.long0,i=o/r*1e-5,a=s,l=1,u=0;for(t=1;t<=10;t++)l*=i,u+=this.A[t]*l;var c,d=u,f=a,p=1,m=0,h=0,b=0;for(t=1;t<=6;t++)c=m*d+p*f,p=p*d-m*f,m=c,h=h+this.B_re[t]*p-this.B_im[t]*m,b=b+this.B_im[t]*p+this.B_re[t]*m;return e.x=b*this.a+this.x0,e.y=h*this.a+this.y0,e},inverse:function(e){var t,n,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,l=i/this.a,u=1,c=0,d=0,f=0;for(t=1;t<=6;t++)n=c*a+u*l,u=u*a-c*l,c=n,d=d+this.C_re[t]*u-this.C_im[t]*c,f=f+this.C_im[t]*u+this.C_re[t]*c;for(var p=0;p.999999999999&&(n=.999999999999),t=Math.asin(n);var r=C(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var o=Math.asin(n);return e.x=r,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Ue(this.es),this.e2=Be(this.es),this.e3=qe(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=A(this.e,this.sinphi,this.cosphi),this.ml1=ze(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=A(this.e,this.sinphi,this.cosphi),this.ml2=ze(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ze(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var o=ze(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-o)}var s=this.ns*C(n-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,n,r,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==n&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=C(this.long0+s/this.ns),r=Ve(this.g-n/this.a),e.x=o,e.y=r,e;var i=this.g-n/this.a;return r=Ke(i,this.e0,this.e1,this.e2,this.e3),o=C(this.long0+s/this.ns),e.x=o,e.y=r,e},names:["Equidistant_Conic","eqdc"]};var lt={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,s=e.y,i=C(r-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,n=this.y0);var a=Ze(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,n=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var l=.5*Math.abs(Math.PI/i-i/Math.PI),u=l*l,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,m=f*(2/c-1),h=m*m,b=Math.PI*this.R*(l*(f-h)+Math.sqrt(u*(f-h)*(f-h)-(h+u)*(p-h)))/(h+u);i<0&&(b=-b),t=this.x0+b;var y=u+f;return b=Math.PI*this.R*(m*y-l*Math.sqrt((h+u)*(u+1)-y*y))/(h+u),n=s>=0?this.y0+b:this.y0-b,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,o,s,i,a,l,u,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(r=e.x/d)*r+(o=e.y/d)*o,d=3*(o*o/(l=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+r*r)*a*a/l/l/l-9*i*a/l/l)/27)/(u=(i-a*a/3/l)/l)/(c=2*Math.sqrt(-u/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,n=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/l)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/l)*Math.PI,t=Math.abs(r)<1e-10?this.long0:C(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(r*r-o*o)+s*s))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var ut={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j,_,x,w,S=e.x,M=e.y,O=Math.sin(e.y),k=Math.cos(e.y),E=C(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-M)*Math.sin(E),e.y=this.y0-this.a*(o-M)*Math.cos(E),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+M)*Math.sin(E),e.y=this.y0+this.a*(o+M)*Math.cos(E),e):(v=this.sin_p12*O+this.cos_p12*k*Math.cos(E),g=(y=Math.acos(v))/Math.sin(y),e.x=this.x0+this.a*g*k*Math.sin(E),e.y=this.y0+this.a*g*(this.cos_p12*O-this.sin_p12*k*Math.cos(E)),e):(t=He(this.es),n=Ue(this.es),r=Be(this.es),s=qe(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*ze(t,n,r,s,o),a=this.a*ze(t,n,r,s,M),e.x=this.x0+(i-a)*Math.sin(E),e.y=this.y0-(i-a)*Math.cos(E),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*ze(t,n,r,s,o),a=this.a*ze(t,n,r,s,M),e.x=this.x0+(i+a)*Math.sin(E),e.y=this.y0+(i+a)*Math.cos(E),e):(l=O/k,u=We(this.a,this.e,this.sin_p12),c=We(this.a,this.e,O),d=Math.atan((1-this.es)*l+this.es*u*this.sin_p12/(c*k)),j=0===(f=Math.atan2(Math.sin(E),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(E)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(E)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=u*j*(1-(_=j*j)*(b=(m=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*m)*(1-b)/6+(x=_*j)/8*(h=p*m)*(1-2*b)+(w=x*j)/120*(b*(4-7*b)-3*p*p*(1-7*b))-w*j/48*h),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,n,r,s,i,a,l,u,c,d,f,p,m,h,b,y,g,v,j,_,x,w;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return n=t/this.a,r=Math.sin(n),s=Math.cos(n),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Ze(s*this.sin_p12+e.y*r*this.cos_p12/t),l=Math.abs(this.lat0)-o,i=Math.abs(l)<=1e-10?this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)):C(this.long0+Math.atan2(e.x*r,t*this.cos_p12*s-e.y*this.sin_p12*r))),e.x=i,e.y=a,e}return u=He(this.es),c=Ue(this.es),d=Be(this.es),f=qe(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*ze(u,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((p-t)/this.a,u,c,d,f),i=C(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*ze(u,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ke((t-p)/this.a,u,c,d,f),i=C(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),b=Math.atan2(e.x,e.y),m=We(this.a,this.e,this.sin_p12),y=Math.cos(b),v=-(g=this.e*this.cos_p12*y)*g/(1-this.es),j=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-v*(x=(_=t/m)-v*(1+v)*Math.pow(_,3)/6-j*(1+3*v)*Math.pow(_,4)/24)*x/2-_*x*x*x/6,h=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*y),i=C(this.long0+Math.asin(Math.sin(b)*Math.sin(x)/Math.cos(h))),a=Math.atan((1-this.es*w*this.sin_p12/Math.sin(h))*Math.tan(h)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,o,s,i,a,l=e.x,u=e.y;return r=C(l-this.long0),t=Math.sin(u),n=Math.cos(u),o=Math.cos(r),1,((s=this.sin_p14*t+this.cos_p14*n*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*o)),e.x=i,e.y=a,e},inverse:function(e){var t,n,r,s,i,a,l;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),n=Ze(t/this.a),r=Math.sin(n),s=Math.cos(n),a=this.long0,Math.abs(t)<=1e-10?(l=this.lat0,e.x=a,e.y=l,e):(l=Ze(s*this.sin_p14+e.y*r*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=l,e):(a=C(this.long0+Math.atan2(e.x*r,t*this.cos_p14*s-e.y*this.sin_p14*r)),e.x=a,e.y=l,e))},names:["ortho"]},dt=1,ft=2,pt=3,mt=4,ht=5,bt=6,yt=1,gt=2,vt=3,jt=4;function _t(e,t,n,r){var s;return e<1e-10?(r.value=yt,s=0):(s=Math.atan2(t,n),Math.abs(s)<=a?r.value=yt:s>a&&s<=o+a?(r.value=gt,s-=o):s>o+a||s<=-(o+a)?(r.value=vt,s=s>=0?s-u:s+u):(r.value=jt,s+=o)),s}function xt(e,t){var n=e+t;return n<-u?n+=l:n>+u&&(n-=l),n}var wt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=ht:this.lat0<=-(o-a/2)?this.face=bt:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:mt:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,s,i,l,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===ht)s=o-t,n>=a&&n<=o+a?(d.value=yt,r=n-o):n>o+a||n<=-(o+a)?(d.value=gt,r=n>0?n-u:n+u):n>-(o+a)&&n<=-a?(d.value=vt,r=n+o):(d.value=jt,r=n);else if(this.face===bt)s=o+t,n>=a&&n<=o+a?(d.value=yt,r=-n+o):n=-a?(d.value=gt,r=-n):n<-a&&n>=-(o+a)?(d.value=vt,r=-n-o):(d.value=jt,r=n>0?-n+u:-n-u);else{var f,p,m,h,b,y;this.face===ft?n=xt(n,+o):this.face===pt?n=xt(n,+u):this.face===mt&&(n=xt(n,-o)),h=Math.sin(t),b=Math.cos(t),y=Math.sin(n),f=b*Math.cos(n),p=b*y,m=h,this.face===dt?r=_t(s=Math.acos(f),m,p,d):this.face===ft?r=_t(s=Math.acos(p),m,-f,d):this.face===pt?r=_t(s=Math.acos(-f),m,-p,d):this.face===mt?r=_t(s=Math.acos(-p),m,f,d):(s=r=0,d.value=yt)}return l=Math.atan(12/u*(r+Math.acos(Math.sin(r)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(l)*Math.cos(l))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===gt?l+=o:d.value===vt?l+=u:d.value===jt&&(l+=1.5*u),c.x=i*Math.cos(l),c.y=i*Math.sin(l),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,n,r,s,i,a,l,c,d,f,p,m,h={lam:0,phi:0},b={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?b.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(b.value=gt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(b.value=vt,t=t<0?t+u:t-u):(b.value=jt,t+=o),d=u/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(l=1-(r=Math.cos(t))*r*(s=Math.tan(n))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?l=-1:l>1&&(l=1),this.face===ht)c=Math.acos(l),h.phi=o-c,b.value===yt?h.lam=a+o:b.value===gt?h.lam=a<0?a+u:a-u:b.value===vt?h.lam=a-o:h.lam=a;else if(this.face===bt)c=Math.acos(l),h.phi=c-o,b.value===yt?h.lam=-a+o:b.value===gt?h.lam=-a:b.value===vt?h.lam=-a-o:h.lam=a<0?-a-u:-a+u;else{var y,g,v;d=(y=l)*y,g=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*v)>=1?0:Math.sqrt(1-d),b.value===gt?(d=g,g=-v,v=d):b.value===vt?(g=-g,v=-v):b.value===jt&&(d=g,g=v,v=-d),this.face===ft?(d=y,y=-g,g=d):this.face===pt?(y=-y,g=-g):this.face===mt&&(d=y,y=g,g=-d),h.phi=Math.acos(-v)-o,h.lam=Math.atan2(g,y),this.face===ft?h.lam=xt(h.lam,-o):this.face===pt?h.lam=xt(h.lam,-u):this.face===mt&&(h.lam=xt(h.lam,+o))}return 0!==this.es&&(f=h.phi<0?1:0,p=Math.tan(h.phi),m=this.b/Math.sqrt(p*p+this.one_minus_f_squared),h.phi=Math.atan(Math.sqrt(this.a*this.a-m*m)/(this.one_minus_f*m)),f&&(h.phi=-h.phi)),h.lam+=this.long0,e.x=h.lam,e.y=h.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},St=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Mt=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ot=i/5,kt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var Et,Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=C(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Ot);r<0?r=0:r>=18&&(r=17);var o={x:kt(St[r],n=i*(n-.08726646259971647*r))*t,y:kt(Mt[r],n)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=St[18][0],t.y=e.y<0?-o:o;else{var n=Math.floor(18*t.y);for(n<0?n=0:n>=18&&(n=17);;)if(Mt[n][0]>t.y)--n;else{if(!(Mt[n+1][0]<=t.y))break;++n}var r=Mt[n],i=5*(t.y-r[0])/(Mt[n+1][0]-r[0]);i=function(e,t,n,r){for(var o=t;r;--r){var s=e(o);if(o-=s,Math.abs(s)e[1]!=u>e[1]&&e[0]<(l-i)*(e[1]-a)/(u-a)+i&&(r=!r)}return r}var s=function(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var s=n.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=Object(r.a)(e),a=Object(r.b)(t),l=t.geometry?t.geometry.type:t.type,u=t.bbox;if(u&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,u))return!1;"Polygon"===l&&(a=[a]);for(var c=0,d=!1;ce[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t[0])&&(!(e[2]t[1])&&!(e[3]t?1:0}var a=function(e,t,n,r,o){!function e(t,n,r,o,i){for(;o>r;){if(o-r>600){var a=o-r+1,l=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),f=Math.max(r,Math.floor(n-l*c/a+d)),p=Math.min(o,Math.floor(n+(a-l)*c/a+d));e(t,n,f,p,i)}var m=t[n],h=r,b=o;for(s(t,r,n),i(t[o],m)>0&&s(t,r,o);h0;)b--}0===i(t[r],m)?s(t,r,b):(b++,s(t,b,o)),b<=n&&(r=b+1),n<=b&&(o=b-1)}}(e,t,n||0,r||e.length-1,o||i)};function l(e,t){if(!(this instanceof l))return new l(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function u(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function j(e,t,n,r,o){for(var s,i=[t,n];i.length;)(n=i.pop())-(t=i.pop())<=r||(s=t+Math.ceil((n-t)/r/2)*r,a(e,s,t,n,o),i.push(t,s,s,n))}l.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!g(e,t))return n;for(var o,s,i,a,l=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var n=e[t],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var s=this._chooseSplitIndex(n,o,r),i=v(n.children.splice(s,n.children.length-s));i.height=n.height,i.leaf=n.leaf,c(n,this.toBBox),c(i,this.toBBox),t?e[t-1].children.push(i):this._splitRoot(n,i)},_splitRoot:function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,o,s,i,a,l,u,c,f,p,m,b,y,g;for(l=u=1/0,r=t;r<=n-t;r++)o=d(e,0,r,this.toBBox),s=d(e,r,n,this.toBBox),f=o,p=s,m=void 0,b=void 0,y=void 0,g=void 0,m=Math.max(f.minX,p.minX),b=Math.max(f.minY,p.minY),y=Math.min(f.maxX,p.maxX),g=Math.min(f.maxY,p.maxY),i=Math.max(0,y-m)*Math.max(0,g-b),a=h(o)+h(s),i=t;o--)s=e.children[o],f(l,e.leaf?i(s):s),u+=b(l);return u},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)f(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():c(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var _=l;function x(e){var t=[e[0],e[1]],n=[e[0],e[3]],r=[e[2],e[3]];return{type:"Feature",bbox:e,properties:{},geometry:{type:"Polygon",coordinates:[[t,[e[2],e[1]],r,n,t]]}}}function w(e){var t=[1/0,1/0,-1/0,-1/0];return Object(r.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]l?i:l,a>u?a:u]),n.push(c),r})),n})(n,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),Object(M.c)(t)};function k(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");if(!0===n.final)return function(e,t){var n=k(t,e);return n=(n+180)%360}(e,t);var r=Object(o.a)(e),s=Object(o.a)(t),i=Object(M.a)(r[0]),a=Object(M.a)(s[0]),l=Object(M.a)(r[1]),u=Object(M.a)(s[1]),c=Math.sin(a-i)*Math.cos(u),d=Math.cos(l)*Math.sin(u)-Math.sin(l)*Math.cos(u)*Math.cos(a-i);return Object(M.j)(Math.atan2(c,d))}var E=k;var T=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var r=n.units,s=Object(o.a)(e),i=Object(o.a)(t),a=Object(M.a)(i[1]-s[1]),l=Object(M.a)(i[0]-s[0]),u=Object(M.a)(s[1]),c=Object(M.a)(i[1]),d=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(u)*Math.cos(c);return Object(M.k)(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),r)};var L=function(e,t,n,r){if(r=r||{},!Object(M.e)(r))throw new Error("options is invalid");var s=r.units,i=r.properties,a=Object(o.a)(e),l=Object(M.a)(a[0]),u=Object(M.a)(a[1]),c=Object(M.a)(n),d=Object(M.f)(t,s),f=Math.asin(Math.sin(u)*Math.cos(d)+Math.cos(u)*Math.sin(d)*Math.cos(c)),p=l+Math.atan2(Math.sin(c)*Math.sin(d)*Math.cos(u),Math.cos(d)-Math.sin(u)*Math.sin(f)),m=Object(M.j)(p),h=Object(M.j)(f);return Object(M.h)([m,h],i)};function P(e,t){var n=Object(o.b)(e),r=Object(o.b)(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var s=n[0][0],i=n[0][1],a=n[1][0],l=n[1][1],u=r[0][0],c=r[0][1],d=r[1][0],f=r[1][1],p=(f-c)*(a-s)-(d-u)*(l-i),m=(d-u)*(i-c)-(f-c)*(s-u),h=(a-s)*(i-c)-(l-i)*(s-u);if(0===p)return null;var b=m/p,y=h/p;if(b>=0&&b<=1&&y>=0&&y<=1){var g=s+b*(a-s),v=i+b*(l-i);return Object(M.h)([g,v])}return null}var A=function(e,t){var n={},s=[];if("LineString"===e.type&&(e=Object(M.b)(e)),"LineString"===t.type&&(t=Object(M.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=P(e,t);return i&&s.push(i),Object(M.c)(s)}var a=S();return a.load(O(t)),Object(r.c)(O(e),(function(e){Object(r.c)(a.search(e),(function(t){var r=P(e,t);if(r){var i=Object(o.b)(r).join(",");n[i]||(n[i]=!0,s.push(r))}}))})),Object(M.c)(s)};var D=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var s=e.geometry?e.geometry.type:e.type;if("LineString"!==s&&"MultiLineString"!==s)throw new Error("lines must be LineString or MultiLineString");var i=Object(M.h)([1/0,1/0],{dist:1/0}),a=0;return Object(r.d)(e,(function(e){for(var r=Object(o.b)(e),s=0;s0&&((b=h.features[0]).properties.dist=T(t,b,n),b.properties.location=a+T(l,b,n)),l.properties.dist=0;r--)if(s[r]!==i[r])return!1;for(r=s.length-1;r>=0;r--)if(o=s[r],!I(e[o],t[o],n))return!1;return typeof e==typeof t}(e,t,n))}function R(e){return null==e}function Y(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function z(e,t){var n=Object(o.b)(t),r=Object(o.b)(e),s=r[0],i=r[r.length-1],a=e.geometry.coordinates;return I(n[0],s)?a.unshift(n[1]):I(n[0],i)?a.push(n[1]):I(n[1],s)?a.unshift(n[0]):I(n[1],i)&&a.push(n[0]),e}var H=function(e,t,n){if(n=n||{},!Object(M.e)(n))throw new Error("options is invalid");var s,i=n.tolerance||0,a=[],l=S();return l.load(O(e)),Object(r.e)(t,(function(e){var t=!1;Object(r.c)(l.search(e),(function(n){if(!1===t){var r=Object(o.b)(e).sort(),a=Object(o.b)(n).sort();I(r,a)||(0===i?Object(C.a)(r[0],n)&&Object(C.a)(r[1],n):D(n,r[0]).properties.dist<=i&&D(n,r[1]).properties.dist<=i)?(t=!0,s=s?z(s,e):e):(0===i?Object(C.a)(a[0],e)&&Object(C.a)(a[1],e):D(e,a[0]).properties.dist<=i&&D(e,a[1]).properties.dist<=i)&&(s=s?z(s,n):n)}})),!1===t&&s&&(a.push(s),s=void 0)})),s&&a.push(s),Object(M.c)(a)};function U(e,t){var n=Object(o.b)(e),r=Object(o.b)(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var s=n[0][0],i=n[0][1],a=n[1][0],l=n[1][1],u=r[0][0],c=r[0][1],d=r[1][0],f=r[1][1],p=(f-c)*(a-s)-(d-u)*(l-i),m=(d-u)*(i-c)-(f-c)*(s-u),h=(a-s)*(i-c)-(l-i)*(s-u);if(0===p)return null;var b=m/p,y=h/p;if(b>=0&&b<=1&&y>=0&&y<=1){var g=s+b*(a-s),v=i+b*(l-i);return Object(M.h)([g,v])}return null}var B=function(e,t){var n={},s=[];if("LineString"===e.type&&(e=Object(M.b)(e)),"LineString"===t.type&&(t=Object(M.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=U(e,t);return i&&s.push(i),Object(M.c)(s)}var a=S();return a.load(O(t)),Object(r.c)(O(e),(function(e){Object(r.c)(a.search(e),(function(t){var r=U(e,t);if(r){var i=Object(o.b)(r).join(",");n[i]||(n[i]=!0,s.push(r))}}))})),Object(M.c)(s)},q=n("./node_modules/geojson-equality/index.js"),W=n.n(q);t.a=function(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");var n=Object(o.d)(e);if(n!==Object(o.d)(t))throw new Error("features must be of the same type");if("Point"===n)throw new Error("Point geometry not supported");if(new W.a({precision:6}).compare(e,t))return!1;var s=0;switch(n){case"MultiPoint":var i=Object(r.a)(e),a=Object(r.a)(t);i.forEach((function(e){a.forEach((function(t){e[0]===t[0]&&e[1]===t[1]&&s++}))}));break;case"LineString":case"MultiLineString":Object(r.e)(e,(function(e){Object(r.e)(t,(function(t){H(e,t).features.length&&s++}))}));break;case"Polygon":case"MultiPolygon":Object(r.e)(e,(function(e){Object(r.e)(t,(function(t){B(e,t).features.length&&s++}))}))}return s>0}},"./node_modules/@turf/boolean-point-on-line/main.es.js":function(e,t,n){"use strict";var r=n("./node_modules/@turf/invariant/main.es.js"),o=n("./node_modules/@turf/helpers/main.es.js");function s(e,t,n,r){var o=n[0],s=n[1],i=e[0],a=e[1],l=t[0],u=t[1],c=l-i,d=u-a;return 0==(n[0]-i)*d-(n[1]-a)*c&&(r?"start"===r?Math.abs(c)>=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o0?a<=s&&s=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o<=l:l<=o&&o<=i:d>0?a<=s&&s<=u:u<=s&&s<=a)}t.a=function(e,t,n){var i=(n=n||{}).ignoreEndVertices;if(!Object(o.e)(n))throw new Error("invalid options");if(!e)throw new Error("pt is required");if(!t)throw new Error("line is required");for(var a=Object(r.a)(e),l=Object(r.b)(t),u=0;um&&(y>f&&bf&&yc&&(c=g)}var v=[];if(u&&c0&&Math.abs(x-n[_-1][0])>m){var w=parseFloat(n[_-1][0]),S=parseFloat(n[_-1][1]),M=parseFloat(n[_][0]),O=parseFloat(n[_][1]);if(w>-180&&w-180&&n[_-1][0]f&&w<180&&-180===M&&_+1f&&n[_-1][0]<180){j.push([180,n[_][1]]),_++,j.push([n[_][0],n[_][1]]);continue}if(wf){var k=w;w=M,M=k;var E=S;S=O,O=E}if(w>f&&M=180&&wf?180:-180,L]),(j=[]).push([n[_-1][0]>f?-180:180,L]),v.push(j)}else j=[],v.push(j);j.push([x,n[_][1]])}else j.push([n[_][0],n[_][1]])}}else{var P=[];v.push(P);for(var A=0;A1&&Object(r.d)(t[0])&&Object(r.d)(t[1]))return t;throw new Error("Coordinate is not a valid Point")}function s(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return function e(t){if(t.length>1&&Object(r.d)(t[0])&&Object(r.d)(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")}(t),t;throw new Error("No valid coordinates")}function i(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function a(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}},"./node_modules/@turf/line-intersect/index.js":function(e,t,n){var r=n("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=n("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js"),s=n("./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js"),i=n("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,a=n("./node_modules/@turf/line-intersect/node_modules/geojson-rbush/index.js"),l=r.point,u=r.featureCollection,c=o.featureEach;function d(e,t){var n=i(e),r=i(t);if(2!==n.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var o=n[0][0],s=n[0][1],a=n[1][0],u=n[1][1],c=r[0][0],d=r[0][1],f=r[1][0],p=r[1][1],m=(p-d)*(a-o)-(f-c)*(u-s),h=(f-c)*(s-d)-(p-d)*(o-c),b=(a-o)*(s-d)-(u-s)*(o-c);if(0===m)return null;var y=h/m,g=b/m;return y>=0&&y<=1&&g>=0&&g<=1?l([o+y*(a-o),s+y*(u-s)]):null}e.exports=function(e,t){var n=[];if("LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var r=d(e,t);return r&&n.push(r),u(n)}var o=a();return o.load(s(t)),c(s(e),(function(e){c(o.search(e),(function(t){var r=d(e,t);r&&n.push(r)}))})),u(n)}},"./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js":function(e,t){function n(e,t,n,r){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");if(r&&-1===["string","number"].indexOf(typeof r))throw new Error("id must be a number or a string");var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=t||{},o.geometry=e,o}function r(e,t,r,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!m(e[0])||!m(e[1]))throw new Error("Coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r,o)}function o(e,t,r,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:m}},"./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js":function(e,t,n){var r=n("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=n("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,s=n("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js").flattenEach,i=r.lineString,a=r.featureCollection;e.exports=function(e){if(!e)throw new Error("geojson is required");var t=[];return s(e,(function(e){!function(e,t){var n=[],r=e.geometry;switch(r.type){case"Polygon":n=o(r);break;case"LineString":n=[o(r)]}n.forEach((function(n){(function(e,t){var n=[];return e.reduce((function(e,r){var o,s,a,l,u,c,d=i([e,r],t);return d.bbox=(s=r,a=(o=e)[0],l=o[1],u=s[0],c=s[1],[au?a:u,l>c?l:c]),n.push(d),r})),n})(n,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),a(t)}},"./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js":function(e,t,n){"use strict";function r(e,t,n){if(null!==e){var o,s,i,a,l,u,c,d,f,p,m=0,h=0,b=e.type,y="FeatureCollection"===b,g="Feature"===b,v=y?e.features.length:1;for(o=0;oe[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t?1:0}return function(n,r,o,s,i){!function t(n,r,o,s,i){for(;s>o;){if(s-o>600){var a=s-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),f=Math.max(o,Math.floor(r-l*c/a+d)),p=Math.min(s,Math.floor(r+(a-l)*c/a+d));t(n,r,f,p,i)}var m=n[r],h=o,b=s;for(e(n,o,r),i(n[s],m)>0&&e(n,o,s);h0;)b--}0===i(n[o],m)?e(n,o,b):(b++,e(n,b,s)),b<=r&&(o=b+1),r<=b&&(s=b-1)}}(n,r,o||0,s||n.length-1,i||t)}}()},"./node_modules/@turf/line-intersect/node_modules/rbush/index.js":function(e,t,n){"use strict";e.exports=o,e.exports.default=o;var r=n("./node_modules/@turf/line-intersect/node_modules/quickselect/quickselect.js");function o(e,t){if(!(this instanceof o))return new o(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function s(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function h(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(e,t,n,o,s){for(var i,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=o||(i=t+Math.ceil((n-t)/o/2)*o,r(e,i,t,n,s),a.push(t,i,i,n))}o.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!m(e,t))return n;for(var o,s,i,a,l=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var n=e[t],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);var s=this._chooseSplitIndex(n,o,r),a=h(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,i(n,this.toBBox),i(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=h([e,t]),this.data.height=e.height+1,this.data.leaf=!1,i(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,o,s,i,l,u,c,f,p,m,h,b,y,g;for(u=c=1/0,r=t;r<=n-t;r++)o=a(e,0,r,this.toBBox),s=a(e,r,n,this.toBBox),p=o,m=s,h=void 0,b=void 0,y=void 0,g=void 0,h=Math.max(p.minX,m.minX),b=Math.max(p.minY,m.minY),y=Math.min(p.maxX,m.maxX),g=Math.min(p.maxY,m.maxY),i=Math.max(0,y-h)*Math.max(0,g-b),l=d(o)+d(s),i=t;o--)s=e.children[o],l(c,e.leaf?i(s):s),d+=f(c);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():i(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},"./node_modules/@turf/meta/main.es.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u}));var r=n("./node_modules/@turf/helpers/main.es.js");function o(e,t,n){if(null!==e)for(var r,s,i,a,l,u,c,d,f=0,p=0,m=e.type,h="FeatureCollection"===m,b="Feature"===m,y=h?e.features.length:1,g=0;g1?i(e,t):s(e[0],t)}e.exports=function(e){var t,n=(t=e).geometry?t.geometry.type:t.type,o=r(e),s=e.properties;if(!o.length)throw new Error("polygon must contain coordinates");switch(n){case"Polygon":return a([l(o,s)]);case"MultiPolygon":var i=[];return o.forEach((function(e){i.push(l(e,s))})),a(i);default:throw new Error("geom "+n+" not supported")}}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/helpers/index.js":function(e,t){function n(e,t,n,r){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(n&&4!==n.length)throw new Error("bbox must be an Array of 4 numbers");if(r&&-1===["string","number"].indexOf(typeof r))throw new Error("id must be a number or a string");var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=t||{},o.geometry=e,o}function r(e,t,r,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!m(e[0])||!m(e[1]))throw new Error("Coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r,o)}function o(e,t,r,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),n||"kilometers")},convertArea:function(e,t,n){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=c[t||"meters"];if(!r)throw new Error("invalid original units");var o=c[n||"kilometers"];if(!o)throw new Error("invalid final units");return e/r*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},isNumber:m}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/invariant/index.js":function(e,t){function n(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return r(t),t;throw new Error("No valid coordinates")}function r(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return r(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:n,containsNumber:r,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/asap/browser-asap.js":function(e,t,n){"use strict";var r=n("./node_modules/asap/browser-raw.js"),o=[],s=[],i=r.makeRequestCallFromTimer((function(){if(s.length)throw s.shift()}));function a(e){var t;(t=o.length?o.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=a,l.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(s.push(e),i())}finally{this.task=null,o[o.length]=this}}},"./node_modules/asap/browser-raw.js":function(e,t,n){"use strict";(function(t){function n(e){o.length||(r(),!0),o[o.length]=e}e.exports=n;var r,o=[],s=0;function i(){for(;s1024){for(var t=0,n=o.length-s;t=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(s)})),e.exports=l}).call(this,n("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,n){"use strict";var r=n("./node_modules/axios/lib/helpers/bind.js"),o=n("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===s.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;no?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n2?r-2:1,o&&o<=r?n:a(n,r)):n}},mixin:function(e){return function(t){var r=this;if(!T(r))return e(r,Object(t));var n=[];return E(A(t),(function(e){T(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),E(n,(function(e){var t=e[1];T(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:R(t)+1;return P(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return P(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),c)}}};function G(e,t){if(d){var r=n.iterateeRearg[e];if(r)return function(e,t){return W(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,r),t),r)}))}(t,r);var o=!p&&n.iterateeAry[e];if(o)return function(e,t){return W(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function U(e,t,r){if(y&&(O||!n.skipFixed[e])){var o=n.methodSpread[e],a=o&&o.start;return void 0===a?_(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=n&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function B(e,t,r){return g&&r>1&&(w||!n.skipRearg[e])?N(t,n.methodRearg[e]||n.aryRearg[r]):t}function z(e,t){for(var r=-1,n=(t=F(t)).length,o=n-1,i=M(Object(e)),a=i;null!=a&&++r1?P(t,r):t}(0,o=G(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?P(o,1):function(){return t.apply(this,arguments)}),o.convert=q(i,t),o.placeholder=t.placeholder=r,o}if(!f)return Z(r,u,b);var V=u,H=[];return E(k,(function(e){E(n.aryMethod[e],(function(e){var t=V[n.remap[e]||e];t&&H.push([e,Z(e,t,V)])}))})),E(A(V),(function(e){var t=V[e];if("function"==typeof t){for(var r=H.length;r--;)if(H[r][0]==e)return;t.convert=q(e,t),H.push([e,t])}})),E(H,(function(e){V[e[0]]=e[1]})),V.convert=function(e){return V.runInContext.convert(e)(void 0)},V.placeholder=V,E(A(V),(function(e){E(n.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V}},"./MapStore2/node_modules/lodash/fp/_mapping.js":function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var i=r[o];e.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./MapStore2/node_modules/lodash/fp/_util.js":function(e,t,r){e.exports={ary:r("./MapStore2/node_modules/lodash/ary.js"),assign:r("./MapStore2/node_modules/lodash/_baseAssign.js"),clone:r("./MapStore2/node_modules/lodash/clone.js"),curry:r("./MapStore2/node_modules/lodash/curry.js"),forEach:r("./MapStore2/node_modules/lodash/_arrayEach.js"),isArray:r("./MapStore2/node_modules/lodash/isArray.js"),isError:r("./MapStore2/node_modules/lodash/isError.js"),isFunction:r("./MapStore2/node_modules/lodash/isFunction.js"),isWeakMap:r("./MapStore2/node_modules/lodash/isWeakMap.js"),iteratee:r("./MapStore2/node_modules/lodash/iteratee.js"),keys:r("./MapStore2/node_modules/lodash/_baseKeys.js"),rearg:r("./MapStore2/node_modules/lodash/rearg.js"),toInteger:r("./MapStore2/node_modules/lodash/toInteger.js"),toPath:r("./MapStore2/node_modules/lodash/toPath.js")}},"./MapStore2/node_modules/lodash/fp/compose.js":function(e,t,r){e.exports=r("./MapStore2/node_modules/lodash/fp/flowRight.js")},"./MapStore2/node_modules/lodash/fp/convert.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/_baseConvert.js"),o=r("./MapStore2/node_modules/lodash/fp/_util.js");e.exports=function(e,t,r){return n(o,e,t,r)}},"./MapStore2/node_modules/lodash/fp/flowRight.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("flowRight",r("./MapStore2/node_modules/lodash/flowRight.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/fp/placeholder.js":function(e,t){e.exports={}},"./MapStore2/node_modules/lodash/fp/set.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("set",r("./MapStore2/node_modules/lodash/set.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/fp/unset.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("unset",r("./MapStore2/node_modules/lodash/unset.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/isError.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=r("./MapStore2/node_modules/lodash/isObjectLike.js"),i=r("./MapStore2/node_modules/lodash/isPlainObject.js");e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},"./MapStore2/node_modules/lodash/isMap.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseIsMap.js"),o=r("./MapStore2/node_modules/lodash/_baseUnary.js"),i=r("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isMap,s=a?o(a):n;e.exports=s},"./MapStore2/node_modules/lodash/isSet.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseIsSet.js"),o=r("./MapStore2/node_modules/lodash/_baseUnary.js"),i=r("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isSet,s=a?o(a):n;e.exports=s},"./MapStore2/node_modules/lodash/isWeakMap.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_getTag.js"),o=r("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object WeakMap]"==n(e)}},"./MapStore2/node_modules/lodash/iteratee.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseClone.js"),o=r("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e){return o("function"==typeof e?e:n(e,1))}},"./MapStore2/node_modules/lodash/last.js":function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_createWrap.js"),o=r("./MapStore2/node_modules/lodash/_flatRest.js"),i=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=i},"./MapStore2/node_modules/lodash/set.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_arrayMap.js"),o=r("./MapStore2/node_modules/lodash/_copyArray.js"),i=r("./MapStore2/node_modules/lodash/isArray.js"),a=r("./MapStore2/node_modules/lodash/isSymbol.js"),s=r("./MapStore2/node_modules/lodash/_stringToPath.js"),l=r("./MapStore2/node_modules/lodash/_toKey.js"),u=r("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return i(e)?n(e,l):a(e)?[e]:o(s(u(e)))}},"./MapStore2/node_modules/lodash/unset.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||n(e,t)}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,r){"use strict";r.d(t,"n",(function(){return o})),r.d(t,"h",(function(){return i})),r.d(t,"i",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"o",(function(){return l})),r.d(t,"q",(function(){return u})),r.d(t,"b",(function(){return c})),r.d(t,"t",(function(){return p})),r.d(t,"l",(function(){return f})),r.d(t,"u",(function(){return d})),r.d(t,"m",(function(){return m})),r.d(t,"k",(function(){return y})),r.d(t,"p",(function(){return h})),r.d(t,"e",(function(){return g})),r.d(t,"j",(function(){return b})),r.d(t,"A",(function(){return v})),r.d(t,"w",(function(){return O})),r.d(t,"x",(function(){return w})),r.d(t,"z",(function(){return S})),r.d(t,"d",(function(){return j})),r.d(t,"f",(function(){return _})),r.d(t,"a",(function(){return x})),r.d(t,"y",(function(){return M})),r.d(t,"g",(function(){return P})),r.d(t,"r",(function(){return E})),r.d(t,"s",(function(){return L})),r.d(t,"v",(function(){return C})),r.d(t,"N",(function(){return T})),r.d(t,"H",(function(){return I})),r.d(t,"I",(function(){return A})),r.d(t,"P",(function(){return N})),r.d(t,"E",(function(){return R})),r.d(t,"O",(function(){return F})),r.d(t,"K",(function(){return k})),r.d(t,"Q",(function(){return D})),r.d(t,"C",(function(){return G})),r.d(t,"T",(function(){return U})),r.d(t,"L",(function(){return B})),r.d(t,"U",(function(){return q})),r.d(t,"M",(function(){return W})),r.d(t,"W",(function(){return Z})),r.d(t,"Y",(function(){return V})),r.d(t,"J",(function(){return H})),r.d(t,"Z",(function(){return K})),r.d(t,"V",(function(){return Y})),r.d(t,"D",(function(){return X})),r.d(t,"F",(function(){return J})),r.d(t,"B",(function(){return Q})),r.d(t,"X",(function(){return $})),r.d(t,"G",(function(){return ee})),r.d(t,"R",(function(){return te})),r.d(t,"S",(function(){return re}));var n=r("./MapStore2/web/client/api/Nominatim.js"),o="LOAD_FEATURE_INFO",i="ERROR_FEATURE_INFO",a="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",l="NEW_MAPINFO_REQUEST",u="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",p="SHOW_MAPINFO_MARKER",f="HIDE_MAPINFO_MARKER",d="SHOW_REVERSE_GEOCODE",m="HIDE_REVERSE_GEOCODE",y="GET_VECTOR_INFO",h="NO_QUERYABLE_LAYERS",g="CLEAR_WARNING",b="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",O="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",w="TOGGLE_MAPINFO_STATE",S="UPDATE_CENTER_TO_MARKER",j="IDENTIFY:CHANGE_PAGE",_="IDENTIFY:CLOSE_IDENTIFY",x="IDENTIFY:CHANGE_FORMAT",M="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",P="IDENTIFY:EDIT_LAYER_FEATURES",E="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",L="IDENTIFY:SET_MAP_TRIGGER",C="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function T(e,t,r,n,i){return{type:o,data:t,reqId:e,requestParams:r,layerMetadata:n,layer:i}}function I(e,t,r,n){return{type:i,error:t,reqId:e,requestParams:r,layerMetadata:n}}function A(e,t,r,n){return{type:a,reqId:e,exceptions:t,requestParams:r,layerMetadata:n}}function N(){return{type:h}}function R(){return{type:g}}function F(e,t){return{type:l,reqId:e,request:t}}function k(e,t,r,n){return{type:y,layer:e,request:t,metadata:r,queryableLayers:n}}function D(){return{type:u}}function G(e){return{type:c,infoFormat:e}}function U(){return{type:p}}function B(){return{type:f}}function z(e){return{type:d,reverseGeocodeData:e.data}}function q(e){return function(t){n.default.reverseGeocode(e).then((function(e){t(z(e))})).catch((function(e){t(z(e))}))}}function W(){return{type:m}}function Z(){return{type:w}}function V(e){return{type:S,status:e}}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:b,point:e,layer:t,filterNameList:r,overrideParams:n,itemId:o}}function K(e){return{type:v,point:e}}function Y(e){return{type:O,enabled:e}}function X(e){return{type:j,index:e}}var J=function(){return{type:_}},Q=function(e){return{type:x,format:e}},$=function(e){return{type:M,showCoordinateEditor:e}},ee=function(e){return{type:P,layer:e}},te=function(e){return{type:E,query:e}},re=function(e){return{type:L,trigger:e}}},"./MapStore2/web/client/api/Nominatim.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/url/url.js"),a=r.n(i),s=r("./node_modules/object-assign/index.js"),l=r.n(s),u={format:"json",bounded:0,polygon_geojson:1,priority:5},c={geocode:function(e,t){var r=l()({q:e},u,t||{}),n=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org",query:r});return o.a.get(n)},reverseGeocode:function(e,t){var r=l()({lat:e.lat,lon:e.lng},t||{},u),n=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org/reverse",query:r});return o.a.get(n)}};t.default=c},"./MapStore2/web/client/api/WFS.js":function(e,t,r){"use strict";r.r(t),r.d(t,"toDescribeURL",(function(){return m})),r.d(t,"getFeatureSimple",(function(){return y})),r.d(t,"getCapabilitiesURL",(function(){return h})),r.d(t,"getFeatureURL",(function(){return g})),r.d(t,"getFeature",(function(){return b})),r.d(t,"getCapabilities",(function(){return v})),r.d(t,"describeFeatureTypeOGCSchemas",(function(){return O})),r.d(t,"describeFeatureType",(function(){return w}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/url/url.js"),a=r.n(i),s=r("./node_modules/object-assign/index.js"),l=r.n(s);function u(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 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 f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.version,n=void 0===r?"1.1.0":r,o=a.a.parse(e,!0);return a.a.format(l()({},o,{query:l()({service:"WFS",version:n,request:"GetCapabilities"},o.query)}))},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.version,o=void 0===n?"1.1.0":n,i=u(r,["version"]),s=a.a.parse(e,!0);return a.a.format(l()({},s,{query:l()(f({service:"WFS",typeName:t,version:o,request:"GetFeature"},i),s.query)}))},b=function(e,t,r){return o.a.get(g(e,t,r))},v=function(e){return o.a.get(h(e))},O=function(e,t){var n=a.a.parse(e,!0),i=a.a.format(l()({},n,{query:l()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},n.query)}));return new Promise((function(e){Promise.all([r.e(1),r.e(31)]).then(function(){var t=r("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(i).then((function(e){var r=t.unmarshalString(e.data);return r&&r.value})))}.bind(null,r)).catch(r.oe)}))},w=function(e,t){return o.a.get(m(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/DefaultViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./MapStore2/web/client/utils/MapInfoUtils.js"),l=r("./MapStore2/web/client/components/I18N/HTML.jsx"),u=r("./MapStore2/web/client/components/I18N/Message.jsx"),c=r("./node_modules/react-bootstrap/es/index.js");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;rMath.abs(e.startX-r.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&p(t.prototype,r),n&&p(t,n),i}(a.a.Component);g(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),g(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r("./node_modules/recompose/es/Recompose.js"),o=r("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(n.withHandlers)({onNext:function(e){var t=e.index,r=void 0===t?0:t,n=e.setIndex,o=void 0===n?function(){}:n,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,r+1))}},onPrevious:function(e){var t=e.index,r=e.setIndex,n=void 0===r?function(){}:r;return function(){n(Math.max(0,t-1))}}}),a=Object(n.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,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&&p(e,t)}(a,e);var t,r,n,i=f(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),r=t&&2===t.length?v.exec(e)[1]:"";r=r.replace(/body[,]+/g,"");var n=e.replace(b,"$1").trim();return o.a.createElement(s.a,{html:r+n})}}])&&c(t.prototype,r),n&&c(t,n),a}(o.a.Component);y=O,h="propTypes",g={response:a.a.string},h in y?Object.defineProperty(y,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[h]=g,t.a=O},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/recompose/es/Recompose.js"),a=r("./MapStore2/node_modules/lodash/lodash.js"),s=r("./MapStore2/web/client/utils/TemplateUtils.js"),l=r("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),u=r("./node_modules/prop-types/index.js"),c=r.n(u),p=r("./MapStore2/web/client/utils/StringUtils.js");function f(e){return(f="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",r=x[t]||x.PROPERTIES;return o.a.createElement(r,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i);function s(e){return(s="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;r0){var t=this._map.latLngToContainerPoint(this._markers[0].getLatLng()),r=this._map.latLngToContainerPoint(this._markers[this._markers.length-1].getLatLng()),n=new v.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),o=this._map.latLngToContainerPoint(n.getLatLng());return Math.min(t.distanceTo(o),r.distanceTo(o))}return 1/0};var O=r("./MapStore2/web/client/utils/MapUtils.js"),w=O.isSimpleGeomType,S=O.getSimpleGeomType,j=r("./MapStore2/web/client/utils/leaflet/DrawSupportUtils.js").boundsToOLExtent,_=r("./node_modules/object-assign/index.js"),x=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),M=x.reproject,P=x.reprojectBbox,E=x.calculateCircleCoordinates,L=x.reprojectGeoJson,C=r("./MapStore2/web/client/utils/leaflet/Vector.js").pointToLayer,T=Math.PI/180,I=function(e,t,r){if("EPSG:4326"===r)return{center:t,srs:r,radius:e};var n=e/40075017*360/Math.cos(T*t[1]),o=M(t,"EPSG:4326",r);if(n){var i=M([t[0]+n,t[1]],"EPSG:4326",r);return{center:o,srs:r,radius:Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2))}}return{center:o,srs:r,radius:e}},A=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if("EPSG:4326"===r||void 0===e)return{center:t,projection:r,radius:e};var n=M({x:t.lng,y:t.lat},r,"EPSG:4326");if(void 0===e)return{center:n,projection:r,radius:e};var o=M([t.lng+e,t.lat],r,"EPSG:4326"),i=Math.sqrt(Math.pow(n.x-o.x,2)+Math.pow(n.y-o.y,2)),a=i*Math.cos(T*n.y)*40075017/360;return{center:n,projection:"EPSG:4326",radius:a}},N=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&&l(e,t)}(c,e);var t,r,n,o=u(c);function c(){var e;a(this,c);for(var t=arguments.length,r=new Array(t),n=0;n0&&r.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod)),e.drawLayer=r})),d(p(e),"addGeojsonLayer",(function(t){var r=t.features,n=t.projection,o=t.style;e.clean();var i=v.geoJson(r,{style:function(e){return e.style||o},pointToLayer:function(e,t){var r=M({x:t.lng,y:t.lat},n,"EPSG:4326");return C(v.latLng(r.y,r.x),e,o)}});e.drawLayer=i.addTo(e.props.map)})),d(p(e),"replaceFeatures",(function(t){e.drawLayer?(e.drawLayer.clearLayers(),"Circle"===e.props.drawMethod?(e.drawLayer.options.pointToLayer=function(e,t){var r=A(e.radius,t,e.projection),n=r.center,o=r.radius;return v.circle(n,o||5)},e.drawLayer.options.style={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}):e.drawLayer.options.pointToLayer=function(e,r){var n=M({x:r.lng,y:r.lat},t.options&&t.options.featureProjection||"EPSG:4326","EPSG:4326");return C(v.latLng(n.y,n.x),e,t.style)},e.drawLayer.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod))):e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style})})),d(p(e),"endDrawing",(function(t){e.replaceFeatures(t);var r=g(t.features);"Circle"!==e.props.drawMethod||!r||b(r.center)||b(r.radius)?r&&e.props.onEndDrawing(r,e.props.drawOwner):e.props.onEndDrawing(i(i({},r),{},{coordinates:E(r.center,r.radius,100)}),e.props.drawOwner)})),d(p(e),"addDrawInteraction",(function(t){e.removeAllInteractions(),"Point"===t.drawMethod||"MultiPoint"===t.drawMethod?e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}):e.addLayer(t),e.props.map.on("draw:created",e.onDrawCreated,p(e)),e.props.map.on("draw:drawstart",e.onDrawStart,p(e)),"LineString"===t.drawMethod||"Bearing"===t.drawMethod||"MultiLineString"===t.drawMethod?e.drawControl=new v.Draw.Polyline(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},showLength:!1,repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Polygon"===t.drawMethod||"MultiPolygon"===t.drawMethod?e.drawControl=new v.Draw.Polygon(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5],guidelineDistance:5},allowIntersection:!1,showLength:!1,showArea:!1,repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"BBOX"===t.drawMethod?e.drawControl=new v.Draw.Rectangle(e.props.map,{draw:!1,shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Circle"===t.drawMethod?e.drawControl=new v.Draw.Circle(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},showRadius:!1,repeatMode:!0}):"Point"!==t.drawMethod&&"MultiPoint"!==t.drawMethod||(e.drawControl=new v.Draw.Marker(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},repeatMode:!0})),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable(),e.drawControl.enable()})),d(p(e),"addDrawOrEditInteractions",(function(t){var r=[];t.features.map((function(e){var t;e&&e.geometry&&e.geometry.type&&!w(e.geometry.type)&&("GeometryCollection"===e.geometry.type?(t=e.geometry.geometries.map((function(t){return t.coordinates.map((function(r,n){return{type:"Feature",properties:i({},e.properties),id:t.type+n,geometry:{coordinates:r,type:S(t.type)}}}))})),r.push({type:"FeatureCollection",features:t})):(t=e.geometry.coordinates.map((function(t,r){return{type:"Feature",properties:i({},e.properties),id:e.geometry.type+r,geometry:{coordinates:t,type:S(e.geometry.type)}}})),r.push({type:"FeatureCollection",features:t})))}));var n=_({},t,{features:r.length>0?r:[{}]});e.drawLayer?(e.drawLayer.clearLayers(),e.drawLayer.addData(e.convertFeaturesPolygonToPoint(n.features,n.drawMethod))):e.addGeojsonLayer({features:t.features&&t.options.featureProjection&&"EPSG:4326"!==t.options.featureProjection?t.features.map((function(e){return L(e,t.options.featureProjection,"EPSG:4326")})):t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}),t.options.editEnabled&&e.addEditInteraction(n),t.options.drawEnabled&&e.addDrawInteraction(n)})),d(p(e),"addEditInteraction",(function(t){e.clean(),e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:_({},t.style,{poly:{icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}})});var r=e.drawLayer.getLayers();setTimeout((function(){r.forEach((function(r){r.getLayers&&r.getLayers()&&r.getLayers().length?r.getLayers().forEach((function(r){r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable()})):(r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable())}))}),0),e.editControl=new v.Control.Draw({edit:{featureGroup:e.drawLayer,poly:{allowIntersection:!1},edit:!0},draw:{polygon:{allowIntersection:!1,showArea:!0}}}),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable()})),d(p(e),"removeAllInteractions",(function(){e.removeEditInteraction(),e.removeDrawInteraction()})),d(p(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.props.options&&e.props.options.stopAfterDrawing&&(e.drawControl.setOptions({repeatMode:!1}),e.props.onDrawStopped()),e.drawControl.disable(),e.drawControl=null,e.props.map.off("draw:created",e.onDrawCreated,p(e)),e.props.map.off("draw:drawstart",e.onDrawStart,p(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),d(p(e),"removeEditInteraction",(function(){e.drawLayer&&(e.drawLayer.getLayers().forEach((function(e){e.getLayers&&e.getLayers()&&e.getLayers().length?e.getLayers().forEach((function(e){e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable()})):(e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable())})),e.editControl=null);e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable()})),d(p(e),"cleanAndStop",(function(){e.removeAllInteractions(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),d(p(e),"clean",(function(){e.removeEditInteraction(),e.removeDrawInteraction(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),d(p(e),"convertFeaturesPolygonToPoint",(function(e,t){return"Circle"===t?e.map((function(e){var t=void 0!==e.center&&void 0!==e.radius?A(e.radius,{lat:e.center.y,lng:e.center.x},e.projection):e,r=t.center,n=t.projection,o=t.radius;return i(i({},e),{},{coordinates:r?[r.x,r.y]:e.coordinates,center:r||e.center,projection:n||e.projection,radius:void 0!==o?o:e.radius,type:"Point"})})):e})),d(p(e),"convertFeaturesToGeoJson",(function(t,r){var n;if(w(r.drawMethod))n=t.toGeoJSON().geometry;else{if("GeometryCollection"===r.drawMethod)return{type:"GeometryCollection",geometries:e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()})).map((function(e){return"FeatureCollection"===e.type?{type:"Multi"+e.features[0].geometry.type,coordinates:e.features.map((function(e){return e.geometry.coordinates}))}:{type:e.geometry.type,coordinates:e.geometry.coordinates}}))};var o=e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()}));n={type:r.drawMethod,coordinates:o.reduce((function(e,t){return e.concat([t.geometry.coordinates])}),[])}}return _({},t.toGeoJSON(),{geometry:n})})),e}return t=c,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=!(!this.props.messages&&!this.context.messages)&&this.context.messages.drawLocal;if(t&&(v.drawLocal=t),this.props.drawStatus!==e.drawStatus||"replace"===e.drawStatus||this.props.drawMethod!==e.drawMethod||this.props.features!==e.features)switch(e.drawStatus){case"create":this.addGeojsonLayer({features:e.features,projection:e.options&&e.options.featureProjection||"EPSG:4326",style:e.style&&e.style[e.drawMethod]||e.style});break;case"start":this.addDrawInteraction(e);break;case"drawOrEdit":this.addDrawOrEditInteractions(e);break;case"stop":this.removeAllInteractions();break;case"replace":this.replaceFeatures(e);break;case"clean":this.cleanAndStop();break;case"endDrawing":this.endDrawing(e);break;default:return}}},{key:"render",value:function(){return null}}])&&s(t.prototype,r),n&&s(t,n),c}(y.Component);d(N,"displayName","DrawSupport"),d(N,"propTypes",{map:m.object,drawOwner:m.string,drawStatus:m.string,drawMethod:m.string,options:m.object,features:m.array,onChangeDrawingStatus:m.func,onGeometryChanged:m.func,onDrawStopped:m.func,onEndDrawing:m.func,messages:m.object,style:m.object}),d(N,"defaultProps",{map:null,drawOwner:null,drawStatus:null,drawMethod:null,features:null,options:{stopAfterDrawing:!0},onChangeDrawingStatus:function(){},onGeometryChanged:function(){},onDrawStopped:function(){},onEndDrawing:function(){},style:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1,editing:{fill:1}}}),e.exports=N},"./MapStore2/web/client/components/map/leaflet/Feature.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1,t=this.originalStyle||this.options&&this.options.style||this.options||{};this.originalStyle=i({},t);var r=t.opacity,o=void 0===r?1:r,a=t.fillOpacity,s=void 0===a?1:a,l=t.color,u=t.fillColor,c=t.radius,p=t.weight,f={color:l,fillColor:u,radius:c,weight:p,opacity:o*e,fillOpacity:s*e};n.setStyle&&n.setStyle(f)}),this._layers.push(n)}}])&&s(t.prototype,r),n&&s(t,n),c}(y.Component);d(_,"propTypes",{msId:m.oneOfType([m.string,m.number]),type:m.string,styleName:m.string,properties:m.object,container:m.object,geometry:m.object,features:m.array,style:m.object,onClick:m.func,options:m.object}),e.exports=_},"./MapStore2/web/client/components/map/leaflet/Layer.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=r.padding,o=r.crs,i=r.maxZoom,a=r.duration,s=n&&f.point(n.left||0,n.top||0),l=n&&f.point(n.right||0,n.bottom||0),u=g(t,o,"EPSG:4326");e.map.fitBounds([[u[1],u[0]],[u[3],u[2]]],{paddingTopLeft:s,paddingBottomRight:l,maxZoom:i,duration:a,animate:0!==a&&void 0})}))})),p(u(e),"addLayerObservable",(function(t,r){!t.layer.layerId||t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&r&&(t.layer._ms2LoadingTileCount=0,t.layer.layerLoadingStream$=new L.Subject,t.layer.layerLoadStream$=new L.Subject,t.layer.layerErrorStream$=new L.Subject,t.layer.layerErrorStream$.bufferToggle(t.layer.layerLoadingStream$,(function(){return t.layer.layerLoadStream$})).subscribe({next:function(r){var n=t.layer._ms2LoadingTileCount||r&&r.length||0;r&&r.length>0&&e.props.onLayerError(r[0].target.layerId,n,r.length),t.layer._ms2LoadingTileCount=0}}))})),e}return t=c,(r=[{key:"UNSAFE_componentWillMount",value:function(){if(this.zoomOffset=0,this.props.mapOptions&&this.props.mapOptions.view&&this.props.mapOptions.view.resolutions&&this.props.mapOptions.view.resolutions.length>0){var e=f.CRS.EPSG3857.scale,t=this.props.mapOptions.view.resolutions[0]/w(0,23)[0];this.crs=v({},f.CRS.EPSG3857,{scale:function(r){return e.call(f.CRS.EPSG3857,r)/Math.pow(2,Math.round(Math.log2(t)))}}),this.zoomOffset=Math.round(Math.log2(t))}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.limits,r=void 0===t?{}:t,n=r.restrictedExtent&&r.crs&&g(r.restrictedExtent,r.crs,"EPSG:4326"),o=v({},this.props.interactive?{}:{dragging:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,boxZoom:!1,tap:!1,attributionControl:!1,maxBounds:n&&f.latLngBounds([[n[1],n[0]],[n[3],n[2]]]),maxBoundsViscosity:n&&1,minZoom:r&&r.minZoom,maxZoom:r&&r.maxZoom||23},this.props.mapOptions,this.crs?{crs:this.crs}:{}),i=f.map(this.getDocument().getElementById(this.props.id),v({zoomControl:!1},o)).setView([this.props.center.y,this.props.center.x],Math.round(this.props.zoom));this.map=i,this.props.zoomControl&&(this.mapZoomControl=f.control.zoom(),this.map.addControl(this.mapZoomControl)),this.attribution=f.control.attribution(),this.attribution.addTo(this.map);var a=this.getDocument();this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&(a.querySelector(this.props.mapOptions.attribution.container).appendChild(this.attribution.getContainer()),a.querySelector(".leaflet-control-container .leaflet-control-attribution")&&a.querySelector(".leaflet-control-container .leaflet-control-attribution").parentNode.removeChild(a.querySelector(".leaflet-control-container .leaflet-control-attribution"))),this.map.on("moveend",this.updateMapInfoState),this.map.on("singleclick",(function(t){e.props.onClick&&e.props.onClick({pixel:{x:t.containerPoint.x,y:t.containerPoint.y},latlng:{lat:t.latlng.lat,lng:t.latlng.lng,z:e.elevationLayer&&e.elevationLayer.getElevation(t.latlng,t.containerPoint)||void 0},rawPos:[t.latlng.lat,t.latlng.lng],modifiers:{alt:t.originalEvent.altKey,ctrl:t.originalEvent.ctrlKey,metaKey:t.originalEvent.metaKey,shift:t.originalEvent.shiftKey}})}));var s=C(this.mouseMoveEvent,100);this.map.on("dragstart",(function(){e.map.off("mousemove",s)})),this.map.on("dragend",(function(){e.map.on("mousemove",s)})),this.map.on("mousemove",s),this.map.on("contextmenu",(function(){e.props.onRightClick&&e.props.onRightClick(event.containerPoint)})),this.map.on("mouseout",(function(){setTimeout((function(){return e.props.onMouseOut()}),150)})),this.updateMapInfoState(),this.setMousePointer(this.props.mousePointer),this.forceUpdate(),this.map.on("layeradd",(function(t){if(t.layer._ms2Added){var r=t.layer.layerLoadingStream$&&t.layer.layerLoadingStream$.isStopped;e.addLayerObservable(t,r)}else t.layer._ms2Added=!0,t.layer.getElevation&&(e.elevationLayer=t.layer),t.layer.layerId&&(t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&(e.addLayerObservable(t,!0),t.layer.options&&t.layer.options.hideLoading||(e.props.onLayerLoading(t.layer.layerId),t.layer.layerLoadingStream$.next()),t.layer.on("loading",(function(r){e.props.onLayerLoading(r.target.layerId),t.layer.layerLoadingStream$.next()})),t.layer.on("load",(function(r){e.props.onLayerLoad(r.target.layerId),t.layer.layerLoadStream$.next()})),t.layer.on("tileloadstart ",(function(){t.layer._ms2LoadingTileCount++})),(t.layer.options&&!t.layer.options.hideErrors||!t.layer.options)&&t.layer.on("tileerror",(function(e){t.layer.layerErrorStream$.next(e)})),t.layer.on("loaderror",(function(t){e.props.onLayerError(t.target.layerId)}))))})),this.map.on("layerremove",(function(e){e.layer.layerLoadingStream$&&(e.layer.layerLoadingStream$.complete(),e.layer.layerLoadStream$.complete(),e.layer.layerErrorStream$.complete())})),this.drawControl=null,this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),this.map&&e.mapStateSource!==this.props.id&&this._updateMapPositionFromNewProps(e),e.zoomControl!==this.props.zoomControl&&(e.zoomControl?(this.mapZoomControl=f.control.zoom(),this.map.addControl(this.mapZoomControl)):this.mapZoomControl&&!e.zoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0)),e.resize!==this.props.resize&&setTimeout((function(){t.map&&t.map.invalidateSize(!1)}),0),this.props.limits!==e.limits){var r=e.limits,n=void 0===r?{}:r,o=this.props.limits;if(n.restrictedExtent!==(o&&o.restrictedExtent)){var i=n.restrictedExtent&&n.crs&&g(n.restrictedExtent,n.crs,"EPSG:4326");this.map.setMaxBounds(n.restrictedExtent&&f.latLngBounds([[i[1],i[0]],[i[3],i[2]]]))}n.minZoom!==(o&&o.minZoom)&&this.map.setMinZoom(n.minZoom)}return!1}},{key:"componentWillUnmount",value:function(){var e=this.getDocument(),t=this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&e.querySelector(this.props.mapOptions.attribution.container);if(t&&this.attribution.getContainer()&&t.querySelector(".leaflet-control-attribution"))try{t.removeChild(this.attribution.getContainer())}catch(e){}this.mapZoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0),this.map.off(),this.map.remove(),this.map=void 0}},{key:"render",value:function(){var e=this,t=this.map,r=this.props.projection,n=t?m.Children.map(this.props.children,(function(n){return n?m.cloneElement(n,{map:t,projection:r,zoomOffset:e.zoomOffset,onCreationError:e.props.onCreationError,onClick:e.props.onClick}):null})):null;return m.createElement("div",{id:this.props.id,style:this.props.style},n)}}])&&i(t.prototype,r),n&&i(t,n),c}(m.Component);p(T,"propTypes",{id:d.string,document:d.object,center:y.PropTypes.center,zoom:d.number.isRequired,mapStateSource:y.PropTypes.mapStateSource,style:d.object,projection:d.string,onMapViewChanges:d.func,onClick:d.func,onRightClick:d.func,mapOptions:d.object,limits:d.object,zoomControl:d.bool,mousePointer:d.string,onMouseMove:d.func,onLayerLoading:d.func,onLayerLoad:d.func,onLayerError:d.func,resize:d.number,measurement:d.object,changeMeasurementState:d.func,registerHooks:d.bool,interactive:d.bool,resolutions:d.array,hookRegister:d.object,onCreationError:d.func,onMouseOut:d.func}),p(T,"defaultProps",{id:"map",onMapViewChanges:function(){},onCreationError:function(){},onClick:null,onMouseMove:function(){},zoomControl:!0,mapOptions:{zoomAnimation:!0,attributionControl:!1},projection:"EPSG:3857",center:{x:13,y:45,crs:"EPSG:4326"},zoom:5,onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},resize:0,registerHooks:!0,hookRegister:{registerHook:E},style:{},interactive:!0,resolutions:w(0,23),onMouseOut:function(){}}),e.exports=T},"./MapStore2/web/client/components/map/leaflet/MeasurementSupport.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?v.GeometryUtil.formattedNumber(P(e,r,n),o[n])+" "+a:v.GeometryUtil.formattedNumber(e,o[r])+" "+i};var C=v.GeometryUtil.readableDistance;v.GeometryUtil.readableDistance=function(e,t,r,n,o,i){if(!i)return C.apply(null,arguments);if("Bearing"===i.geomType)return i.bearing;var a=v.Util.extend({},L,o),s=i.uom.length,l=s.unit,u=s.label,c=v.GeometryUtil.formattedNumber(P(e,"m",l),a[l])+" "+u;return i.useTreshold&&(t&&(c=v.getMeasureWithTreshold(e,1e3,"m","km",a,"m","km")),"mi"===l&&(c=v.getMeasureWithTreshold(P(e,"m","yd"),1760,"yd","mi",a,"yd","mi"))),c};var T=v.GeometryUtil.readableArea;v.GeometryUtil.readableArea=function(e,t,r,n){if(!n)return T.apply(null,arguments);var o=n.uom.area,i=o.unit,a=o.label,s=v.Util.extend({},L,r),l=v.GeometryUtil.formattedNumber(P(e,"sqm",i),s[i])+" "+a;return n.useTreshold&&(t&&(l=v.getMeasureWithTreshold(e,1e6,"sqm","sqkm",s,"m²","km²")),"sqmi"===i&&(l=v.getMeasureWithTreshold(P(e,"sqm","sqyd"),3097600,"sqyd","sqmi",s,"yd²","mi²"))),l};var I=v.Draw.Polygon.prototype._getMeasurementString;v.Draw.Polygon.prototype._getMeasurementString=function(){if(!this.options.uom)return I.apply(this,arguments);var e=this._area,t="";if(!e&&!this.options.showLength)return null;if(this.options.showLength&&(t=v.Draw.Polyline.prototype._getMeasurementString.call(this)),e){var r={uom:this.options.uom,useTreshold:this.options.useTreshold};t+=this.options.showLength?"
":""+v.GeometryUtil.readableArea(e,this.options.metric,this.options.precision,r)}return t};var A=v.Draw.Polyline.prototype._getMeasurementString;v.Draw.Polyline.prototype._getMeasurementString=function(){if(!this.options.uom)return A.apply(this,arguments);var e,t=this._currentLatLng,r=this._markers[this._markers.length-1].getLatLng();e=v.GeometryUtil.isVersion07x()?r&&t&&t.distanceTo?this._measurementRunningTotal+t.distanceTo(r)*(this.options.factor||1):this._measurementRunningTotal||0:r&&t?this._measurementRunningTotal+this._map.distance(t,r)*(this.options.factor||1):this._measurementRunningTotal||0;var n={uom:this.options.uom,useTreshold:this.options.useTreshold,geomType:this.options.geomType,bearing:this.options.bearing?E(this.options.bearing,this.options.trueBearing):0};return v.GeometryUtil.readableDistance(e,this.options.metric,this.options.feet,this.options.nautic,this.options.precision,n)};var N=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&&c(e,t)}(s,e);var t,r,n,o=p(s);function s(){var e;l(this,s);for(var t=arguments.length,r=new Array(t),n=0;n=2?setTimeout((function(){e.drawControl._markers=O(e.drawControl._markers,0,2),e.drawControl._poly._latlngs=O(e.drawControl._poly._latlngs,0,2),e.drawControl._poly._originalPoints=O(e.drawControl._poly._originalPoints,0,2),e.updateMeasurementResults(),e.drawControl._finishShape(),e.drawControl.disable()}),100):e.updateMeasurementResults()})),y(d(e),"addArcsToMap",(function(t){e.removeLastLayer();var r=t.map((function(e){return b({},e,{geometry:b({},e.geometry,{coordinates:x(e.geometry.coordinates)})})}));e.arcLayer=v.geoJson(r,{style:{color:"#ffcc33",opacity:1,weight:1,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}}),e.props.map.addLayer(e.arcLayer),r&&r.length>0&&e.arcLayer.addData(r)})),y(d(e),"updateMeasurementResults",(function(){if(e.drawing&&e.drawControl){var t=0,r=0,n=0,o=e.drawControl._currentLatLng;if("LineString"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>1){var i=e.drawControl._markers.reduce((function(e,t){var r=t.getLatLng(),n=r.lng,o=r.lat;return[].concat(a(e),[[n,o]])}),[]);t=_(i,e.props.measurement.lengthFormula)}else if("Polygon"===e.props.measurement.geomType&&e.drawControl._poly){var s=[].concat(a(e.drawControl._poly.getLatLngs()),[o]);r=v.GeometryUtil.geodesicArea(s)}else"Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0&&(n=e.calculateBearing());var l=b({},e.props.measurement,{point:null,len:t,area:r,bearing:n});e.props.changeMeasurementState(l)}})),y(d(e),"restartDrawing",(function(){e.props.map.off("click",e.restartDrawing,d(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable(),e.props.map.removeLayer(e.lastLayer),e.drawControl.enable(),e.drawing=!0})),y(d(e),"addDrawInteraction",(function(t){if(e.removeDrawInteraction(),e.props.map.on("draw:created",e.onDrawCreated,d(e)),e.props.map.on("draw:drawstart",e.onDrawStart,d(e)),e.props.map.on("draw:drawvertex",e.onDrawVertex,d(e)),e.props.map.on("mousemove",e.updateBearing,d(e)),e.props.updateOnMouseMove&&e.props.map.on("mousemove",e.updateMeasurementResults,d(e)),"Point"===t.measurement.geomType)e.drawControl=new v.Draw.Marker(e.props.map,{repeatMode:!1});else if("LineString"===t.measurement.geomType||"Bearing"===t.measurement.geomType){var r=e.uomLengthOptions(t);e.drawControl=new v.Draw.Polyline(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2},showLength:!0,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},r),{},{repeatMode:!1,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),trueBearing:t.measurement.trueBearing}))}else if("Polygon"===t.measurement.geomType){var n=e.uomAreaOptions(t);e.drawControl=new v.Draw.Polygon(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2,fill:"rgba(255, 255, 255, 0.2)"},showArea:!0,allowIntersection:!1,showLength:!1,repeatMode:!1,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},n),{},{icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}))}e.drawControl.enable()})),y(d(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.drawControl.disable(),e.drawControl=null,e.removeLastLayer(),e.removeArcLayer(),e.props.map.off("draw:created",e.onDrawCreated,d(e)),e.props.map.off("draw:drawstart",e.onDrawStart,d(e)),e.props.map.off("draw:drawvertex",e.onDrawVertex,d(e)),e.props.map.off("mousemove",e.updateBearing,d(e)),e.props.map.off("click",e.restartDrawing,d(e)),e.props.updateOnMouseMove&&e.props.map.off("mousemove",e.updateMeasurementResults,d(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),y(d(e),"removeLastLayer",(function(){e.lastLayer&&e.props.map.removeLayer(e.lastLayer)})),y(d(e),"removeArcLayer",(function(){e.arcLayer&&e.props.map.removeLayer(e.arcLayer)})),y(d(e),"uomLengthOptions",(function(e){var t=e.uom.length.unit;return{metric:"m"===t||"km"===t,nautic:"nm"===t,feet:"ft"===t}})),y(d(e),"uomAreaOptions",(function(e){var t=e.uom.area.unit;return{metric:"sqm"===t||"sqkm"===t,nautic:"sqnm"===t,feet:"sqft"===t}})),y(d(e),"calculateBearing",(function(){var t,r=e.drawControl._currentLatLng,n=e.drawControl._markers,o=[n[0].getLatLng().lng,n[0].getLatLng().lat];return 1===n.length?t=[r.lng,r.lat]:2===n.length&&(t=[n[1].getLatLng().lng,n[1].getLatLng().lat]),o=S(o,"EPSG:4326",e.props.projection),t=S(t,"EPSG:4326",e.props.projection),j(o,t,e.props.projection)})),y(d(e),"updateBearing",(function(){if("Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0){var t=e.props.measurement&&e.props.measurement.trueBearing;e.drawControl.setOptions({bearing:e.calculateBearing(),trueBearing:t})}})),e}return t=s,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if((e&&e.uom&&e.uom.length&&e.uom.length.unit)!==(this.props&&this.props.uom&&this.props.uom.length&&this.props.uom.length.unit)&&this.drawControl){var t=this.uomLengthOptions(e);this.drawControl.setOptions(i(i({},t),{},{uom:e.uom}))}if((e&&e.uom&&e.uom.area&&e.uom.area.unit)!==(this.props&&this.props.uom&&this.props.uom.area&&this.props.uom.area.unit)&&this.drawControl){var r=this.uomAreaOptions(e);this.drawControl.setOptions(i(i({},r),{},{uom:e.uom}))}(e.measurement.geomType&&e.measurement.geomType!==this.props.measurement.geomType||e.measurement.geomType&&this.props.measurement.geomType&&(e.measurement.lineMeasureEnabled||e.measurement.areaMeasureEnabled||e.measurement.bearingMeasureEnabled)&&!this.props.enabled&&e.enabled)&&this.addDrawInteraction(e),e.measurement.geomType||this.removeDrawInteraction()}},{key:"render",value:function(){var e=this.props.messages||!!this.context.messages&&this.context.messages.drawLocal;return e&&(v.drawLocal=e),null}}])&&u(t.prototype,r),n&&u(t,n),s}(g.Component);y(N,"displayName","MeasurementSupport"),y(N,"propTypes",{map:h.object,metric:h.bool,feet:h.bool,nautic:h.bool,enabled:h.bool,useTreshold:h.bool,projection:h.string,measurement:h.object,changeMeasurementState:h.func,messages:h.object,uom:h.object,updateOnMouseMove:h.bool}),y(N,"contextTypes",{messages:h.object}),y(N,"defaultProps",{uom:{length:{unit:"m",label:"m"},area:{unit:"sqm",label:"m²"}},updateOnMouseMove:!1,metric:!0,nautic:!1,useTreshold:!1,feet:!1}),e.exports=N},"./MapStore2/web/client/components/map/leaflet/Overview.jsx":function(e,t,r){function n(e){return(n="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r1&&(this.overview=new d(m.layerGroup(t),e))}this.props.map&&this.overview&&this.overview.addTo(this.props.map)}},{key:"render",value:function(){return null}}])&&i(t.prototype,r),n&&i(t,n),u}(f.Component);c(b,"displayName","Overview"),c(b,"propTypes",{map:p.object,overviewOpt:p.object,layers:p.array}),c(b,"defaultProps",{id:"overview",overviewOpt:{},layers:[{type:"osm",options:{}}]}),e.exports=b},"./MapStore2/web/client/components/map/leaflet/PopupSupport.jsx":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return P}));var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/react-dom/index.js"),a=r.n(i),s=r("./node_modules/prop-types/index.js"),l=r.n(s),u=r("./MapStore2/web/client/libs/leaflet.js"),c=r.n(u),p=r("./MapStore2/node_modules/lodash/isString.js"),f=r.n(p),d=r("./MapStore2/web/client/utils/PopupUtils.js"),m=r("./MapStore2/web/client/components/map/popups/index.js");function y(e){return(y="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 h(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;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.target,n=(r=void 0===r?{}:r).options,o=(n=void 0===n?{}:n).id;o&&e.props.onPopupClose(o)})),x(j(e),"preparePopups",(function(){var t=e.props,r=t.popups,n=void 0===r?[]:r,o=t.map,i=e.props.map.getSize();return(e._popups||[]).forEach((function(t){var r=t.popup;r.off("remove",e.popupClose),r&&e.props.map.removeLayer(r)})),e._popups=n.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=.9*i.x,n=.9*i.y,a=t.id,s=t.position.coordinates,l=t.component,u=t.content,p=t.className,f=t.maxWidth,m=void 0===f?r:f,y=t.maxHeight,h=void 0===y?n:y,b=t.autoPan,v=void 0===b||b,O=t.offset,w=void 0===O?[0,7]:O,S=m>r?r:m,j=h>n?n:h,_=d.b(a,p);_.setAttribute("style","max-width: ".concat(S,"px; max-height: ").concat(j,"px")),d.a(_,u);var x=c.a.popup({id:a,autoClose:!1,closeOnClick:!1,autoPan:v,autoPanPadding:c.a.point(70,70),maxWidth:S,maxHeight:j,className:"ms-leaflet-popup",offset:w}).setContent(_);return x.once("remove",e.popupClose),l&&M(x,_),x.setLatLng(s),o.addLayer(x),g({popup:x},t)})),e._popups})),x(j(e),"stopPropagationOnMouseMove",(function(e){e.stopPropagation()})),x(j(e),"fireMouseOutEvent",(function(){e.props.map.fireEvent("mouseout")})),e}return t=s,(r=[{key:"componentWillMount",value:function(){this.props.map&&(this.props.map.getContainer().querySelector(".leaflet-popup-pane").addEventListener("mousemove",this.stopPropagationOnMouseMove),this.props.map.getContainer().querySelector(".leaflet-popup-pane").addEventListener("mouseenter",this.fireMouseOutEvent))}},{key:"componentDidMount",value:function(){this.props.map&&this.props.map.on("resize",this.updatePopup)}},{key:"shouldComponentUpdate",value:function(e){return e.popups!==this.props.popups}},{key:"componentWillUnmount",value:function(){var e=this;(this._popups||[]).forEach((function(t){var r,n,o=t.popup;o.off("remove",e.popupClose),o&&(null===(r=e.props.map)||void 0===r||null===(n=r.removeLayer)||void 0===n||n.call(r,o))})),this.props.map&&(this.props.map.off("resize",this.updatePopup),this.props.map.getContainer().removeEventListener("mousemove",this.stopPropagationOnMouseMove),this.props.map.getContainer().removeEventListener("mouseenter",this.fireMouseOutEvent))}},{key:"renderPopups",value:function(){return this.preparePopups().filter((function(e){return!!e.component})).map((function(e){var t=e.popup,r=e.props,n=void 0===r?{}:r,i=e.component,s=e.id,l=t.getContent(),u=f()(i)&&m.default[i]||i,c=o.a.isValidElement(u)&&u||o.a.createElement(u,n);return l?a.a.createPortal(c,l,s):null}))}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderPopups())}}])&&v(t.prototype,r),n&&v(t,n),s}(o.a.Component);x(P,"propTypes",{map:l.a.object,popups:l.a.arrayOf(l.a.object),onPopupClose:l.a.func}),x(P,"defaultProps",{popups:[],onPopupClose:function(){}})},"./MapStore2/web/client/components/map/leaflet/ScaleBar.jsx":function(e,t,r){function n(e){return(n="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;rOpenStreetMap contributors',zoomOffset:e.zoomOffset||0,maxNativeZoom:e.maxNativeZoom||19,maxZoom:e.maxZoom||23})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r("./MapStore2/web/client/libs/leaflet.js");n.registerType("tms",(function(e){return o.tileLayer("".concat(e.tileMapUrl,"/{z}/{x}/{y}.").concat(e.extension),{hideErrors:e.hideErrors||!0,tms:!0})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js":function(e,t,r){function n(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 o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style&&e.style[0]||e.style;return b(t)},O=function(e,t){var r=v(t);e.setStyle(r),e.options.style=r,e.styleName=t.styleName},w=function e(t,r){t.eachLayer&&t.eachLayer((function(t){t.setOpacity&&t.setOpacity(r),e(t,r)}))},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=v(e),o=function(t,n){return"marker"===e.styleName?i.a.marker(n,r):i.a.circleMarker(n,r)},a=new i.a.GeoJSON(t,{pointToLayer:o,style:r});return a.setOpacity=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=y({},a.options.style||{}),r=t.fillOpacity,n=void 0===r?1:r,o=t.opacity,i=void 0===o?1:o,s=y(y({},t),{},{opacity:i*e,fillOpacity:n*e});a.setStyle(b(s)),w(a,e)},a.on("layeradd",(function(){O(a,e),a.setOpacity(Object(n.isNil)(a.opacity)?e.opacity:a.opacity)})),a};u.a.registerType("wfs",{create:function(e){var t=S(e);return g(t,e),t.opacity=Object(n.isNil)(e.opacity)?1:e.opacity,t},update:function(e,t,r){if(t.opacity!==r.opacity&&(e.opacity=t.opacity),Object(f.needsReload)(r,t)&&g(e,t),Object(n.isEqual)(t.style,r.style)||O(e,t),t.styleName!==r.styleName){var o=e.toGeoJSON().features;return S(t,o)}return null},render:function(){return null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js":function(e,t,r){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}var o=r("./node_modules/react/index.js"),i=r("./MapStore2/web/client/components/I18N/Message.jsx").default,a=r("./MapStore2/web/client/utils/leaflet/Layers.js"),s=r("./MapStore2/web/client/utils/VendorParamsUtils.js").optionsToVendorParams,l=r("./MapStore2/web/client/utils/leaflet/WMSUtils.js"),u=r("./MapStore2/web/client/libs/leaflet.js"),c=r("./node_modules/object-assign/index.js"),p=r("./MapStore2/node_modules/lodash/lodash.js"),f=p.isArray,d=p.isNil,m=r("./MapStore2/web/client/utils/SecurityUtils.js"),y=m.addAuthenticationToSLD,h=m.addAuthenticationParameter,g=r("./MapStore2/web/client/utils/ElevationUtils.js"),b=g.loadTile,v=g.getElevation,O=r("./MapStore2/web/client/utils/LayersUtils.js").creditsToAttribution,w=r("./MapStore2/web/client/utils/VectorTileUtils.js").isVectorFormat;r("./node_modules/leaflet.nontiledlayer/dist/NonTiledLayer-src.js"),u.NonTiledLayer.WMSCustom=u.NonTiledLayer.WMS.extend({initialize:function(e,t){this._wmsUrl=e;var r=u.extend({},this.defaultWmsParams);for(var n in t)this.options.hasOwnProperty(n)||"CRS"===n.toUpperCase()||"maxNativeZoom"===n||(r[n]=t[n]);this.wmsParams=r,u.setOptions(this,t)},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),u.nonTiledLayer.wmsCustom=function(e,t){return new u.NonTiledLayer.WMSCustom(e,t)},u.TileLayer.MultipleUrlWMS=u.TileLayer.WMS.extend({initialize:function(e,t){this._url=e[0],this._urls=e,this._urlsIndex=0;var r=u.extend({},this.defaultWmsParams),n=t.tileSize||this.options.tileSize;for(var o in t.detectRetina&&u.Browser.retina?r.width=r.height=2*n:r.width=r.height=n,t)this.options.hasOwnProperty(o)||"CRS"===o.toUpperCase()||"maxNativeZoom"===o||(r[o]=t[o]);this.wmsParams=r,u.setOptions(this,t)},getTileUrl:function(e){var t=this._map,r=this.options.tileSize,n=e.multiplyBy(r),o=n.add([r,r]),i=this._crs.project(t.unproject(n,e.z)),a=this._crs.project(t.unproject(o,e.z)),s=this._wmsVersion>=1.3&&this._crs===u.CRS.EPSG4326?[a.y,i.x,i.y,a.x].join(","):[i.x,a.y,a.x,i.y].join(",");this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var l=u.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e)});return l+u.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+s},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),u.tileLayer.multipleUrlWMS=function(e,t){return new u.TileLayer.MultipleUrlWMS(e,t)},u.TileLayer.ElevationWMS=u.TileLayer.MultipleUrlWMS.extend({initialize:function(e,t,r){this._tiles={},this._nodata=r,u.TileLayer.MultipleUrlWMS.prototype.initialize.apply(this,arguments)},_addTile:function(e){var t=this.getTileUrl(e);b(t,e,this._tileCoordsToKey(e))},getElevation:function(e,t){try{var r=this._getTileFromCoords(e),n=v(this._tileCoordsToKey(r),this._getTileRelativePixel(r,t),this.getTileSize().x,this._nodata);return n.available?n.value:o.createElement(i,{msgId:n.message})}catch(e){return o.createElement(i,{msgId:"elevationLoadingError"})}},_getTileFromCoords:function(e){var t=this._map.project(e).divideBy(256).floor();return c(t,{z:this._tileZoom})},_getTileRelativePixel:function(e,t){var r=Math.floor(t.x-this._getTilePos(e).x-this._map._getMapPanePos().x),n=Math.min(this.getTileSize().x-1,Math.floor(t.y-this._getTilePos(e).y-this._map._getMapPanePos().y));return new u.Point(r,n)},_removeTile:function(){},_abortLoading:function(){}}),u.tileLayer.elevationWMS=function(e,t,r){return new u.TileLayer.ElevationWMS(e,t,r)};var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return d(e[r])?t:c(t,n({},r,e[r]))}),{})};function j(e){var t=void 0!==e.opacity?e.opacity:1,r=s(e),n=c({},e.baseParams,{attribution:e.credits&&O(e.credits),layers:e.name,styles:e.style||"",format:(w(e.format)?"image/png":e.format)||"image/png",transparent:void 0===e.transparent||e.transparent,tiled:void 0===e.tiled||e.tiled,opacity:t,zIndex:e.zIndex,version:e.version||"1.3.0",tileSize:e.tileSize||256,maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},c(e._v_?{_v_:e._v_}:{},r||{}));return y(n,e)}function _(e){return e.map((function(e){return e.split("?")[0]}))}a.registerType("wms",{create:function(e){var t=_(f(e.url)?e.url:[e.url]),r=S(j(e)||{});return t.forEach((function(t){return h(t,r,e.securityToken)})),e.useForElevation?u.tileLayer.elevationWMS(t,r,e.nodata||-9999):e.singleTile?u.nonTiledLayer.wmsCustom(t[0],r):u.tileLayer.multipleUrlWMS(t,r)},update:function(e,t,r){if(r.singleTile!==t.singleTile||r.tileSize!==t.tileSize||r.securityToken!==t.securityToken&&t.visibility){var o=_(f(t.url)?t.url:[t.url]),i=j(t)||{};return o.forEach((function(e){return h(e,i,t.securityToken)})),t.singleTile?u.nonTiledLayer.wmsCustom(o[0],i):u.tileLayer.multipleUrlWMS(o,i)}var a=c({},l.filterWMSParamOptions(j(r)),y(r.params||{},r)),s=c({},l.filterWMSParamOptions(j(t)),y(t.params||{},t)),p=Object.keys(s).filter((function(e){return s[e]!==a[e]})),d=Object.keys(a).filter((function(e){return a[e]!==s[e]})),m={};return d.length>0&&e.removeParams(d,p.length>0),p.length>0&&(m=p.reduce((function(e,t){return c({},e,n({},t,s[t]))}),m),e.setParams(S(c(m,m.params,y(t.params||{},t))))),null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r("./MapStore2/web/client/libs/leaflet.js"),s=r.n(a),l=r("./node_modules/object-assign/index.js"),u=r.n(l),c=r("./MapStore2/web/client/utils/SecurityUtils.js"),p=r("./MapStore2/web/client/utils/WMTSUtils.js"),f=r("./MapStore2/web/client/utils/leaflet/WMTS.js"),d=r.n(f),m=r("./MapStore2/node_modules/lodash/lodash.js"),y=r("./MapStore2/web/client/utils/VectorTileUtils.js");s.a.tileLayer.wmts=function(e,t,r){return new d.a(e,t,r)};var h=function(e){var t=function(e){return e.map((function(e){return e.split("?")[0]}))}(Object(m.isArray)(e.url)?e.url:[e.url]),r=function(e){var t=Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),r=p.getTileMatrixSet(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds);return u()({requestEncoding:e.requestEncoding,layer:e.name,style:e.style||"",format:(Object(y.isVectorFormat)(e.format)?"image/png":e.format)||"image/png",tileMatrixSet:r,version:e.version||"1.0.0",tileSize:e.tileSize||256,CRS:Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},e.params||{})}(e)||{};t.forEach((function(t){return Object(c.addAuthenticationParameter)(t,r,e.securityToken)}));var n=Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),o=p.getTileMatrix(e,n),a=o.tileMatrixSet,l=o.matrixIds;return s.a.tileLayer.wmts(t,r,{tileMatrixPrefix:e.tileMatrixPrefix||r.tileMatrixSet+":"||n+":",originY:e.originY||20037508.3428,originX:e.originX||-20037508.3428,ignoreErrors:e.ignoreErrors||!1,matrixIds:l,matrixSet:a})};o.a.registerType("wmts",{create:h,update:function(e,t,r){return r.securityToken!==t.securityToken||r.format!==t.format?h(t):null}})},"./MapStore2/web/client/components/map/leaflet/plugins/index.js":function(e,t,r){e.exports={BingLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/BingLayer.js"),Commons:r("./MapStore2/web/client/components/map/leaflet/plugins/Commons.js"),GraticuleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GraticuleLayer.js"),GoogleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GoogleLayer.js"),MapQuest:r("./MapStore2/web/client/components/map/leaflet/plugins/MapQuest.js"),OSMLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/OSMLayer.js"),TMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js"),TileProviderLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js"),WFSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WFSLayer.jsx").default,WMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js"),WMTSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js"),VectorLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/VectorLayer.jsx")}},"./MapStore2/web/client/components/map/openlayers/img/marker-icon.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaIxErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/map/plugins/leaflet.js":function(e,t,r){"use strict";r.r(t),t.default=function(){return r("./MapStore2/web/client/components/map/leaflet/plugins/index.js"),{Map:r("./MapStore2/web/client/components/map/leaflet/Map.jsx"),Layer:r("./MapStore2/web/client/components/map/leaflet/Layer.jsx"),Feature:r("./MapStore2/web/client/components/map/leaflet/Feature.jsx"),Locate:r("./MapStore2/web/client/components/map/leaflet/Locate.jsx").default,MeasurementSupport:r("./MapStore2/web/client/components/map/leaflet/MeasurementSupport.jsx"),Overview:r("./MapStore2/web/client/components/map/leaflet/Overview.jsx"),ScaleBar:r("./MapStore2/web/client/components/map/leaflet/ScaleBar.jsx"),DrawSupport:r("./MapStore2/web/client/components/map/leaflet/DrawSupport.jsx"),PopupSupport:r("./MapStore2/web/client/components/map/leaflet/PopupSupport.jsx").default}}},"./MapStore2/web/client/components/map/popups/index.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),a=r("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),s=r("./node_modules/recompose/es/Recompose.js"),l=r("./node_modules/react-redux/es/index.js"),u=r("./node_modules/reselect/es/index.js"),c=r("./MapStore2/web/client/selectors/mapInfo.js"),p=r("./MapStore2/web/client/actions/mapInfo.js"),f=r("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),d=r("./MapStore2/node_modules/lodash/lodash.js"),m=r("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),y=r("./MapStore2/web/client/selectors/map.js"),h=Object(s.compose)(Object(l.connect)(Object(u.a)(c.j,(function(e){return{index:e}})),{setIndex:p.D}),Object(s.defaultProps)({index:0,responses:[]})),g=Object(u.a)([c.t,c.w,c.s,c.h,c.u,y.f,c.l],(function(e,t,r,n,o,i,a){return{responses:e,validResponses:t,requests:r,format:n,showEmptyMessageGFI:o,missingResponses:(r||[]).length-(e||[]).length,renderEmpty:i,loaded:a}})),b=Object(s.compose)(Object(l.connect)(g),Object(s.defaultProps)({responses:[],container:function(e){var t=e.index,r=e.children;return o.a.createElement(o.a.Fragment,null,Object(d.isArray)(r)&&r[t]||r)},header:m.a}),h,a.a,a.b,Object(i.a)((function(e){var t=e.loaded;return Object(d.isUndefined)(t)})))(f.a);r.d(t,"IDENTIFY_POPUP",(function(){return v}));var v="identify";t.default={identify:b}},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i);function s(e){return(s="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;r100?"full":e>40?"medium":"small"},p=function(e){var t=e.size,r=e.style,n=void 0===r?{}:r,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},n)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};p.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=p},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/react-container-dimensions/lib/index.js"),a=r.n(i),s=r("./MapStore2/web/client/components/misc/Loader.jsx");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 u(e){for(var t=1;t0?Math.min(i,l):i),f=r||(l>0?Math.min(i,l):i),d=Math.min(p,f);return o.a.createElement(s.a,{size:d,style:u({padding:d/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/recompose/es/Recompose.js"),a=r("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o.a.createElement(r,s({},t,n))}}))}},"./MapStore2/web/client/libs/leaflet.js":function(e,t){e.exports=window.L},"./MapStore2/web/client/libs/mapquest.js":function(e,t){e.exports=window.MQ},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,r){e.exports=r.p+"symbolMissing.svg"},"./MapStore2/web/client/selectors/context.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return h}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/web/client/selectors/localConfig.js"),i=r("./MapStore2/node_modules/lodash/lodash.js"),a=r("./MapStore2/web/client/utils/ConfigUtils.js"),s=r("./MapStore2/web/client/utils/PluginsUtils.js");function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(l(e),["Context"])}})),d=function(e){return f(e)},m=Object(n.a)((function(e){return Object(i.get)(c(e),"plugins")}),(function(e){return Object(i.get)(c(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(l(Object(i.get)(e,"desktop",[])),l(t.filter((function(e){return e.active}))))}})),y=(Object(n.a)(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(i.get)(e,"context.loading")}(e)?d(e):m(e)||f(e)}),h=function(e){return Object(n.a)(c,y,(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(i.findIndex)(Object(i.get)(r,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(n.a)((function(e){return Object(s.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},i=function(e){return(o(e)||{}).monitorState},a=function(e){return function(t){return Object(n.get)(function(e){return Object(n.get)(o(e),"plugins")}(t),e)}},s=function(e){return Object(n.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.locale&&e.locale.current||"en-US"},a=function(e){return e.locale&&e.locale.messages||{}},s=Object(n.a)([i],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,r){"use strict";r.d(t,"l",(function(){return a})),r.d(t,"o",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"i",(function(){return u})),r.d(t,"j",(function(){return c})),r.d(t,"n",(function(){return p})),r.d(t,"c",(function(){return d})),r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return y})),r.d(t,"g",(function(){return h})),r.d(t,"m",(function(){return g})),r.d(t,"p",(function(){return b})),r.d(t,"k",(function(){return v})),r.d(t,"d",(function(){return w})),r.d(t,"e",(function(){return S})),r.d(t,"f",(function(){return j}));var n=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=r("./node_modules/reselect/es/index.js"),i=r("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},s=Object(o.a)([a],(function(e){return e&&e.projection})),l=function(e){return Object(i.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(i.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(i.get)(a(e),"mapId")&&parseInt(Object(i.get)(a(e),"mapId"),10)||null}(e)},u=function(e){return Object(i.get)(a(e),"info")},c=function(e){var t=Object(i.get)(u(e),"canEdit");return void 0===t?Object(i.get)(e,"context.resource.canEdit"):t},p=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},f=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},d=function(e){return f(e).restrictedExtent},m=function(e){return f(e).crs},y=function(e){var t=f(e),r=s(e);return r&&Object(i.get)(t,'projectionsConstraints["'.concat(r,'"].minZoom'))||Object(i.get)(t,"minZoom")},h=function(e){return Object(i.get)(a(e),"bbox")},g=function(e){return Object(i.get)(function(e){return Object(i.get)(a(e),"limits")}(e),"minZoom")},b=Object(o.a)([function(e){return Object(i.get)(a(e),"resolutions")},s],(function(e,t){if(e&&t){var r=n.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===r?111194.87428468118:1)}))}return[]})),v=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},O=function(e){return Object(i.get)(a(e),"eventListeners.mousemove",[])},w=function(e){return!!O(e).length},S=function(e){return O(e).includes("mouseposition")},j=function(e){return O(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,r){"use strict";r.d(t,"n",(function(){return m})),r.d(t,"m",(function(){return y})),r.d(t,"h",(function(){return h})),r.d(t,"u",(function(){return g})),r.d(t,"p",(function(){return b})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return O})),r.d(t,"o",(function(){return w})),r.d(t,"r",(function(){return S})),r.d(t,"g",(function(){return j})),r.d(t,"v",(function(){return _})),r.d(t,"i",(function(){return x})),r.d(t,"k",(function(){return M})),r.d(t,"j",(function(){return P})),r.d(t,"t",(function(){return E})),r.d(t,"s",(function(){return L})),r.d(t,"l",(function(){return C})),r.d(t,"w",(function(){return T})),r.d(t,"f",(function(){return A})),r.d(t,"e",(function(){return N})),r.d(t,"c",(function(){return k})),r.d(t,"d",(function(){return D})),r.d(t,"q",(function(){return G}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/reselect/es/index.js"),i=r("./MapStore2/web/client/selectors/map.js"),a=r("./MapStore2/web/client/selectors/context.js"),s=r("./MapStore2/web/client/selectors/locale.js"),l=r("./MapStore2/web/client/utils/MapInfoUtils.js"),u=r("./MapStore2/web/client/selectors/maptype.js"),c=r("./MapStore2/web/client/selectors/localConfig.js");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 f(e){for(var t=1;t0&&t})),h=function(e){return Object(n.get)(e,"mapInfo.configuration.infoFormat","text/plain")},g=function(e){return Object(n.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},b=function(e){return Object(n.get)(e,"mapInfo.configuration",{})},v=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},O=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},w=function(e){return Object(n.get)(e,"mapInfo.itemId",null)},S=function(e){return Object(n.get)(e,"mapInfo.overrideParams",{})},j=function(e){return Object(n.get)(e,"mapInfo.filterNameList",[])},_=Object(o.a)((function(e){return!Object(n.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(n.get)(e,"controls.measure.enabled")&&(Object(n.get)(e,"measurement.lineMeasureEnabled")||Object(n.get)(e,"measurement.areaMeasureEnabled")||Object(n.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(n.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(n.get)(e,"annotations.editing")}),Object(a.b)("Identify"),(function(e,t,r,n,o){return e||!!t||r||!!n||!o})),x=Object(o.c)({format:h,map:i.l,point:v,currentLocale:s.b,maxItems:function(e){return Object(n.get)(e,"mapInfo.configuration.maxItems")}}),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},E=function(e){return e.mapInfo&&e.mapInfo.responses||[]},L=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},C=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},T=Object(o.a)(L,E,h,i.f,(function(e,t,r,n){var o=Object(l.i)(r);return e.length===t.length&&o.getValidResponses(t,n)})),I=Object(o.a)(T,P,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),A=function(e){var t=I(e)||{};return Object(n.get)(t,"layerMetadata.features")},N=function(e){var t=I(e)||{};return Object(n.get)(t,"layerMetadata.featuresCrs")},R=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(n.omit)(e,"radius")}},F=function(e){return function(t){return f(f({},t),{},{style:R(e)(t)})}},k=Object(o.a)(v,M,A,N,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(n.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,r,o,i,a){return i&&e?t?f(f({},e),{},{featuresCrs:o,features:r&&Object(n.isArray)(r)&&r.map(F(a))}):e:void 0})),D=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},G=function(e){var t,r;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(r=t.configuration)||void 0===r?void 0:r.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===n(e)},i=function(e){return"openlayers"===n(e)}},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return u}));var n,o=r("./node_modules/tinycolor2/tinycolor.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t,r,o){var i=e;isNaN(parseFloat(e))&&(i=n.hexToHsv(e)[0]);var a=.5/(r-1),s=t/(r-1),l=[];1===r&&(a=.5,s=t/2);for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:"red";return i()(e).toHexString()},u=function(e,t,r){var n=i()(e);return e&&n.setAlpha(Object(a.toNumber)(void 0!==t?t:n.getAlpha())).toRgbString()||r};n={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,r){return e instanceof Array?n.rgbToHex(e[0],e[1],e[2]):"#"+n.decToHex(e)+n.decToHex(t)+n.decToHex(r)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,r){if(e instanceof Array)return n.rgbToHsv(e[0],e[1],e[2]);var o,i,a,s,l,u=e/255,c=t/255,p=r/255;switch(o=Math.min(Math.min(u,c),p),a=(i=Math.max(Math.max(u,c),p))-o,i){case o:s=0;break;case u:s=60*(c-p)/a,c0){"#"===t[0]&&(t=e.substring(1));var r=n.hexToRgb(t);return n.rgbToHsv(r)}return null},hexToRgb:function(e){var t,r,n,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),r=o.charAt(2)+o.charAt(3),n=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(r,16),parseInt(n,16)]},colorToHexStr:l,colorToRgbaStr:u}},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,r){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"FORMULAS",(function(){return T})),r.d(t,"getProjUrl",(function(){return A})),r.d(t,"determineCrs",(function(){return R})),r.d(t,"normalizePoint",(function(){return k})),r.d(t,"reproject",(function(){return G})),r.d(t,"reprojectExtent",(function(){return B})),r.d(t,"getPolygonFromExtent",(function(){return z})),r.d(t,"getExtentFromNormalized",(function(){return q})),r.d(t,"crsCodeTable",(function(){return W})),r.d(t,"setCrsLabels",(function(){return Z})),r.d(t,"getUnits",(function(){return V})),r.d(t,"getProjectedBBox",(function(){return H})),r.d(t,"createBBox",(function(){return K})),r.d(t,"reprojectGeoJson",(function(){return Y})),r.d(t,"lineIntersectPolygon",(function(){return X})),r.d(t,"normalizeLng",(function(){return J})),r.d(t,"reprojectBbox",(function(){return Q})),r.d(t,"bboxToFeatureGeometry",(function(){return $})),r.d(t,"getCompatibleSRS",(function(){return ee})),r.d(t,"getEquivalentSRS",(function(){return te})),r.d(t,"getEPSGCode",(function(){return re})),r.d(t,"normalizeSRS",(function(){return ne})),r.d(t,"isAllowedSRS",(function(){return oe})),r.d(t,"getAvailableCRS",(function(){return ie})),r.d(t,"filterCRSList",(function(){return ae})),r.d(t,"calculateAzimuth",(function(){return se})),r.d(t,"calculateDistance",(function(){return le})),r.d(t,"extendExtent",(function(){return ue})),r.d(t,"getGeoJSONExtent",(function(){return ce})),r.d(t,"isValidExtent",(function(){return pe})),r.d(t,"calculateCircleCoordinates",(function(){return fe})),r.d(t,"transformLineToArcs",(function(){return de})),r.d(t,"transformArcsToLine",(function(){return me})),r.d(t,"coordsOLtoLeaflet",(function(){return ye})),r.d(t,"mergeToPolyGeom",(function(){return he})),r.d(t,"getViewportGeometry",(function(){return ge})),r.d(t,"getExtentFromViewport",(function(){return be})),r.d(t,"fetchProjRemotely",(function(){return ve})),r.d(t,"parseURN",(function(){return Oe})),r.d(t,"parseString",(function(){return we})),r.d(t,"getWMSBoundingBox",(function(){return Se})),r.d(t,"isSRSAllowed",(function(){return je})),r.d(t,"getNormalizedLatLon",(function(){return _e})),r.d(t,"isInsideVisibleArea",(function(){return xe})),r.d(t,"centerToVisibleArea",(function(){return Me})),r.d(t,"calculateCircleRadiusFromPixel",(function(){return Pe})),r.d(t,"roundCoord",(function(){return Ee})),r.d(t,"midpoint",(function(){return Le})),r.d(t,"pointObjectToArray",(function(){return Ce})),r.d(t,"isPointInsideExtent",(function(){return Te})),r.d(t,"isBboxCompatible",(function(){return Ie})),r.d(t,"extractCrsFromURN",(function(){return Ae})),r.d(t,"makeNumericEPSG",(function(){return Ne})),r.d(t,"makeBboxFromOWS",(function(){return Re}));var n=r("./node_modules/node-geo-distance/index.js"),o=r.n(n),i=r("./MapStore2/web/client/libs/proj4.js"),a=r.n(i),s=r("./MapStore2/web/client/libs/ajax.js"),l=r.n(s),u=r("./node_modules/object-assign/index.js"),c=r.n(u),p=r("./MapStore2/node_modules/lodash/lodash.js"),f=r("./node_modules/@turf/line-intersect/index.js"),d=r.n(f),m=r("./node_modules/@turf/polygon-to-linestring/index.js"),y=r.n(m),h=r("./node_modules/@turf/great-circle/main.es.js"),g=r("./node_modules/turf-point/index.js"),b=r.n(g),v=r("./node_modules/@turf/bbox-polygon/main.es.js"),O=r("./node_modules/@turf/boolean-overlap/main.es.js"),w=r("./node_modules/@turf/boolean-contains/main.es.js");function S(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 j(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&"number"==typeof r[0]&&"number"==typeof r[1]?t(e):e.map((function(e){return I(e,t)}));var r}var A=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function N(e,t,r){if(null===e)return e;var n=Object(p.cloneDeep)(e);return"Feature"===e.type?n.geometry=N(e.geometry,t,r):"FeatureCollection"===e.type?n.features=n.features.map((function(e){return N(e,t,r)})):"GeometryCollection"===e.type?n.geometries=n.geometries.map((function(e){return N(e,t,r)})):t&&t(n),r&&r(n),n}function R(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},k=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},D=function(e){var t=e;return Object(p.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(p.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},G=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=r&&a.a.defs(r)?new a.a.Proj(r):null;if(o&&i){var s=Object(p.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),l=c()({},t===r?D(s):a.a.transform(o,i,D(s)),{srs:r});return n?k(l):l}return null},U=["EPSG:900913","EPSG:4326","EPSG:3857"],B=function(e,t,r){return"EPSG:4326"===t?e:r?e.map((function(e){return[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])})):[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])},z=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},q=function(e,t){var r=function(e,t){var r="EPSG:4326"!==t?[G([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),G([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],n=!1;return"EPSG:4326"===t?n=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(n=Math.abs(e.maxx-e.minx)>=40075016.68557849),n?[0,r[1],360,r[3]]:[(r[0]+180)%360,r[1],(r[2]+180)%360,r[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),n=r[2]2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,o=t*n[0]/2,i=t*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=o*a,u=o*s,c=i*a,p=i*s,f=e.x,d=e.y,m=f-l+p,y=f-l-p,h=f+l-p,g=f+l+p,b=d-u-c,v=d-u+c,O=d+u+c,w=d+u-c,S=L.createBBox(Math.min(m,y,h,g),Math.min(b,v,O,w),Math.max(m,y,h,g),Math.max(b,v,O,w));return S},K=function(e,t,r,n){return{minx:e,miny:t,maxx:r,maxy:n}},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",n=t,o=r;"string"==typeof n&&(n=R(n)),"string"==typeof o&&(o=R(o));var i=C(n,o);return N(e,(function(e){e.crs&&delete e.crs,e.coordinates=I(e.coordinates,(function(e){var t=M(e,2),r=t[0],n=t[1];return i.forward([r,n])}))}),(function(e){var t,r;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],r=[-Number.MAX_VALUE,-Number.MAX_VALUE],N(e,(function(e){I(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),r[0]=Math.max(r[0],e[0]),r[1]=Math.max(r[1],e[1])}))})),[t[0],t[1],r[0],r[1]]))}))},X=function(e,t){var r=y()(t).features[0];return 0!==d()(e,r).features.length},J=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,r){var n,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n=Object(p.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in n)if(n.hasOwnProperty(a)){var s=L.reproject(n[a],t,r,o);if(!s)return null;var l=s.x,u=s.y;i.push(l),i.push(u)}return i},$=function(e){var t=Object(p.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,r=t.minx,n=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[r,n],[r,i],[o,i],[o,n],[r,n]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},re=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},ne=function(e,t){var r="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[r]?L.getCompatibleSRS(r,t):r},oe=function(e,t){return t[L.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},ae=function(e,t,r,n){var o=Object.keys(e).reduce((function(r,n){return c()({},-1===t.indexOf(n)?r:j(j({},r),{},_({},n,e[n])))}),{}),i=n.map((function(e){return e.code})),a=Object.keys(r).reduce((function(e,t){return c()({},-1===i.indexOf(t)?e:j(j({},e),{},_({},t,r[t])))}),{});return c()({},o,a)},se=function(e,t,r){var n=L.reproject(e,r,"EPSG:4326"),o=L.reproject(t,r,"EPSG:4326"),i=n.x*Math.PI/180,a=n.y*Math.PI/180,s=o.x*Math.PI/180,l=o.y*Math.PI/180,u=s-i,c=Math.sin(u)*Math.cos(l),p=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,p)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(T).indexOf(t)?T[t](e):0},ue=function(e,t){var r=e.slice();return t[0]e[2]&&(r[2]=t[2]),t[1]e[3]&&(r[3]=t[3]),r},ce=function(e){var t=this,r=[1/0,1/0,-1/0,-1/0],n=function(e,r){var n=L.getGeoJSONExtent(r);return t.isValidExtent(n)?t.extendExtent(n,e):n};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;r[0]=o[0]-.01*o[0],r[1]=o[1]-.01*o[1],r[2]=o[0]+.01*o[0],r[3]=o[1]+.01*o[1]}return Object(p.chunk)(Object(p.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),r)}if("GeometryCollection"===e.type)return e.geometries.reduce(n,r);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(n,r);if("Feature"===e.type&&e.geometry)return L.getGeoJSONExtent(e.geometry)}return r},pe=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},fe=function(e,t,r,n){var o,i,a,s=Math.PI*(1/r-.5);n&&(s+=n/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},r=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(p.head)(e),Object(p.last)(e)]:e.length>t?[Object(p.head)(e)].concat(L.transformArcsToLine(Object(p.slice)(e,t))):[]},ye=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ge=function(e,t){if(Object(p.head)(U.filter((function(e){return e===t})))){var r=q(e,t),n=r.extent,o=r.isIDL,i=(o?n:[n]).map((function(e){var t=[e[0],e[1]],r=[e[2],e[3]];return[[t,[t[0],r[1]],r,[r[0],t[1]],t]]}));if(o){var a=n[1][0]+(Math.abs(n[0][0]-n[0][2])+Math.abs(n[1][0]-n[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:n,center:[a=a>180?a-360:a,(n[0][1]+n[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:n,center:[(n[0]+n[2])/2,(n[1]+n[3])/2]}}var s=[e.minx,e.miny,e.maxx,e.maxy],l=[s[0],s[1]],u=[s[2],s[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:s,center:[(s[0]+s[2])/2,(s[1]+s[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,r=e.crs,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!r)return null;var o=L.getViewportGeometry(t,r),i=o.extent;if(4===i.length)return L.reprojectBbox(i,r,n);var a=i.map((function(e){return e[2]-e[0]})),s=M(a,2),l=s[0],u=s[1];return l>u?L.reprojectBbox(i[0],r,n):L.reprojectBbox(i[1],r,n)},ve=function(e,t){var r=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||A(r),null,{timeout:2e3})},Oe=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,r=t&&Object(p.last)(t.split(":"));return"WGS 1984"===r||"WGS84"===r?"EPSG:4326":r?"EPSG:"+r:null},we=function(e){var t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return!isNaN(r)&&!isNaN(n)&&{x:r,y:n}||null},Se=function(e,t){var r=t||"EPSG:3857",n=e&&Object(p.isArray)(e)&&Object(p.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===r&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&L.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],r,"EPSG:4326")})));return Object(p.isArray)(n)&&{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]}||null},je=function(e){return!!a.a.defs(e)},_e=function(e){var t=e.lng,r=void 0===t?1:t,n=e.lat;return{lat:void 0===n?1:n,lng:L.normalizeLng(r)}},xe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=L.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=L.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),s=j({left:0,right:0,top:0,bottom:0},r),l={minx:a[0]+s.left*n,miny:a[1]+s.bottom*n,maxx:a[2]-s.right*n,maxy:a[3]-s.top*n},u=L.getViewportGeometry(l,t.projection),c=4===u.extent.length?[x(u.extent)]:x(u.extent);return Object(p.head)(c.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},Me=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=L.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection),a=j({left:0,right:0,top:0,bottom:0},r),s={width:(t.size.width-a.right-a.left)*n,height:(t.size.height-a.top-a.bottom)*n},l={minx:i.x-s.width/2-a.left*n,miny:i.y-s.height/2-a.bottom*n,maxx:i.x+s.width/2+a.right*n,maxy:i.y+s.height/2+a.top*n},u=L.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:G([u.extent[0]+t.size.width/2*n,u.extent[1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=G([u.extent[0][2]-t.size.width/2*n,u.extent[0][3]-t.size.height/2*n],t.projection,"EPSG:4326"),p=j(j({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:p,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:G([u.extent[1][0]+t.size.width/2*n,u.extent[1][1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(p.isArray)(r)?r:[r.x,r.y];if(Object(p.isNumber)(i[0])&&!isNaN(i[0])&&Object(p.isNumber)(i[1])&&!isNaN(i[1])&&Object(p.isNumber)(t.x)&&!isNaN(t.x)&&Object(p.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(p.isFunction)(e)?e([t.x,t.y>=n?t.y-n:t.y+n]):null,s=a&&(Object(p.isArray)(a)?a:[a.x,a.y]);return Object(p.isArray)(s)?Math.sqrt((i[0]-s[0])*(i[0]-s[0])+(i[1]-s[1])*(i[1]-s[1])):o}return o},Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,r=void 0===t?"round":t,n=e.value,o=void 0===n?0:n,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[r]?Math[r](o):o},Le=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object(p.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(p.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(n.x+o.x),y:.5*(n.y+o.y)};return r?[i.x,i.y]:i},Ce=function(e){return Object(p.isObject)(e)&&Object(p.isNumber)(e.x)&&Object(p.isNumber)(e.y)?[e.x,e.y]:e},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(w.a)(z(t),b()([e.lng,e.lat]))},Ie=function(e,t){return Object(O.a)(e,t)||Object(w.a)(e,t)||Object(w.a)(t,e)},Ae=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var r=t[4],n=t[6];return r?"".concat(r,":").concat(n):n}}return null},Ne=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),r=parseInt(t,10);if(r>=1024&&r<=32767)return e;var n=t.replace(" ","").replace(":","").toLowerCase(),o=W[n];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Re=function(e,t){var r=[e[0],e[1]],n=[t[0],t[1]];if(r[1]>n[1]){var o=r;r=n,n=o}if(r[0]>n[0]){var i=r.slice(),a=n.slice();r=[a[0],i[1]],n=[i[0],a[1]]}return[r[0],r[1],n[0],n[1]]};L={setCrsLabels:Z,getUnits:V,reproject:G,getProjectedBBox:H,createBBox:K,reprojectGeoJson:Y,lineIntersectPolygon:X,normalizePoint:k,normalizeLng:J,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:re,normalizeSRS:ne,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:se,calculateDistance:le,FORMULAS:T,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:pe,calculateCircleCoordinates:fe,transformLineToArcs:de,transformArcsToLine:me,coordsOLtoLeaflet:ye,mergeToPolyGeom:he,getViewportGeometry:ge,getProjUrl:A,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:Oe,determineCrs:R,parseString:we,getWMSBoundingBox:Se,isSRSAllowed:je,getNormalizedLatLon:_e,isInsideVisibleArea:xe,centerToVisibleArea:Me,calculateCircleRadiusFromPixel:Pe,roundCoord:Ee,midpoint:Le,pointObjectToArray:Ce,getExtentFromNormalized:q,getPolygonFromExtent:z,isPointInsideExtent:Te,isBboxCompatible:Ie,extractCrsFromURN:Ae,crsCodeTable:W,makeNumericEPSG:Ne,makeBboxFromOWS:Re},t.default=L},"./MapStore2/web/client/utils/ElevationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"loadTile",(function(){return c})),r.d(t,"getElevation",(function(){return p})),r.d(t,"reset",(function(){return f}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/lrucache/index.js"),a=r.n(i),s=r("./node_modules/es6-promise/dist/es6-promise.js"),l=new a.a(100),u=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=n*e+r;try{var a=t.dataView.getInt16(2*i,!1);if(a!==o&&32767!==a&&-32768!==a)return a}catch(e){}return null},c=function(e,t,r){return l.has(r)?null:new s.Promise((function(n,i){o.a.get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,r){l.set(r,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,r),n()})).catch((function(e){!function(e,t,r){l.set(r,{coords:t,current:!0,status:"error: "+e})}(e.message,t,r),i(e)}))}))},p=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=l.get(e);return o&&"success"===o.status?{available:!0,value:u(r,o,t.x,t.y,n)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=new a.a(e.max||100)}},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return u}));var n={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},i=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,a=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function s(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function l(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var u={HTML:{getValidResponses:function(e,t){return t?e.filter(s):e},getNoValidResponses:function(e){return e.filter((function(e){return!s(e)}))}},TEXT:{getValidResponses:function(e,t){var r=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var r=0,n=new Array(t);r",endTag:""},fes:{startTag:"",endTag:""}},P=function(e,t,r,n){var o;if("><"===t){if(r.startDate&&r.endDate){var a=r.startDate.toISOString?r.startDate.toISOString():r.startDate,s=r.endDate.toISOString?r.endDate.toISOString():r.endDate;o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+a+"<"+n+":UpperBoundary><"+n+":Literal>"+s+"")}}else if(r.startDate){var l=r.startDate.toISOString?r.startDate.toISOString():r.startDate;o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+l+"")}return o},E=function(e,t,r,n){var o;return Object(f.isNil)(r)||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+"")),o},L=function(e,t,r,n){var o;return w(r,t)&&(o="isNull"===t?i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag):"="===t?i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+""):i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>*"+r+"*")),o},C=function(e,t,r,n){var o="";return w(r,t)&&"="===t&&""!==r&&(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+"")),o},T=function(e,t,r,n){var o;if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+r.lowBound+"<"+n+":UpperBoundary><"+n+":Literal>"+r.upBound+"")):o=i.ogcComparisonOperators["<="](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r.upBound+""):o=i.ogcComparisonOperators[">="](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r.lowBound+"");else{var a=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(a)||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+a+""))}return o},I=function(e,t){var r="";switch(e.type){case"date":r=P(e.attribute,e.operator,e.values,t);break;case"number":r=T(e.attribute,e.operator,e.values,t);break;case"string":r=L(e.attribute,e.operator,e.values,t);break;case"boolean":r=C(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){r=e.values.reduce((function(r,n){var o=null===n||"null"===n?"isNull":"=";return r+L(e.attribute,o,n,t)}),""),r=i.ogcLogicalOperators.OR(t,r)}}return r},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,r=e.geometryName,n=e.cqlFilter,o=void 0===n?"INCLUDE":n;return"queryCollection('".concat(t,"', '").concat(r,"','").concat(O(o),"')")},N=function(e){return"collectGeometries(".concat(e,")")},R=function(e,t,r){var n,a,s,l,u=[];if(e.filterFields&&e.filterFields.length>0)""!==(n=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,r):b.processOGCFilterFields(null,e,r))&&u.push(n);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var c=i.ogcLogicalOperators.AND(r,e.simpleFilterFields.map((function(e){return I(e,r)})).join(""));u.push(c)}if(Object(f.isArray)(e.spatialField)?(l=Object(f.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(s=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?l=e.spatialField:s=[e.spatialField]),l){if(Object(f.isArray)(l.geometry&&l.geometry.extent[0])){var p=l.geometry.extent.reduce((function(e,n){var o=Object.assign({},l);return l.geometry.extent=n,e+b.processOGCSpatialFilter(t,o,r)}),"");a=i.ogcLogicalOperators.OR(r,p)}u.push(a)}else if(s&&(s=s.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var d=s.map((function(e){return b.processOGCSpatialFilter(t,e,r)})).join("");a=s.length>1?i.ogcLogicalOperators[e.spatialFieldOperator||"AND"](r,d):d,u.push(a)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var m=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?m.forEach((function(e){return u.push(b.processOGCCrossLayerFilter(e,r))})):u.push(b.processOGCCrossLayerFilter(m,r))}return e.options&&e.options.cqlFilter&&u.push(v(e.options.cqlFilter,{filterNS:r,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),u},F=function(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{n=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var u=x(r||"2.0"),c="2.0"===u?"fes":"ogc",p=b.getGetFeatureBase(u,n.pagination,i,a,t&&t.options),f=b.toOGCFilterParts(n,u,c),d="";return f.length>0&&(d="<"+c+":Filter>",1===f.length?d+=f[0]:(d+="<"+c+":And>",f.forEach((function(e){d+=e})),d+=""),d+=""),p+=""),p+=d,s&&(p+=s.map((function(e){return M[c].startTag+e+M[c].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(p+="<"+c+":SortBy><"+c+":SortProperty>"+M[c].startTag+o.sortBy+M[c].endTag+"<"+c+":SortOrder>"+o.sortOrder+""),p+=""},k=function(e,t,r){var n=b.processOGCFilterFields(e,t,r),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){n+=b.processOGCFilterGroup(e,t,r)})),""!==n?i.ogcLogicalOperators[e.logic](r,n):""},D=function(e,t,r){var n=e?t.filterFields.filter((function(t){return t.groupId===e.id&&w(t.value,t.operator)})):t.filterFields.filter((function(e){return w(e.value,e.operator)}));return n.length?n.reduce((function(e,t){var n;switch(t.type){case"date":case"date-time":case"time":n=P(t.attribute,t.operator,t.value,r);break;case"number":n=T(t.attribute,t.operator,t.value,r);break;case"string":n=L(t.attribute,t.operator,t.value,r);break;case"boolean":n=C(t.attribute,t.operator,t.value,r);break;case"list":n=E(t.attribute,t.operator,t.value,r)}return"isNull"===t.operator&&(n=L(t.attribute,t.operator,t.operator,r)),n&&e.push(n),e}),[]).join(""):""},G=function(e,t,r){return Object(n.pointElement)(e,t,Object(o.wfsToGmlVersion)(r))},U=function(e,t,r){return Object(n.polygonElement)(e,t,Object(o.wfsToGmlVersion)(r))},B=function(e,t,r){return Object(n.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(r))},z=function(e,t){return Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},q=function(e,t,r){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=M[r].startTag+t.attribute+M[r].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+r+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](r,a)},W=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=r?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=r&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},Z=function(e){return Object(f.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(f.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(f.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},V=function(e,t){var r=t||"ogc",n=M[r].startTag+e.attribute+M[r].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);n+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(n+="<"+r+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](r,n)},H=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var r,n,o=[];if(t.filterFields&&t.filterFields.length>0)(r=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(r);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var r=e,n=b.processCQLSimpleFilterField(t);return!1!==n&&(r=e.length>0?e+" AND ("+n+")":"("+n+")"),r}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(n=b.processCQLSpatialFilter(t))&&o.push(n),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,u=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&u){var c=u.typeName,p=u.geometryName,f=b.getCrossLayerCqlFilter(a),d=N(A({typeName:c,geometryName:p,cqlFilter:f}));o.push("".concat(s,"(").concat(l,",").concat(d,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var r="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,n=b.processCQLFilterFields(r,t),o=b.findSubGroups(r,t.groupFields);if(o.length>0){var i=o.map((function(e){return(r.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+r.logic+" ");return n?[n,i].join(" "+r.logic+" "):i}return n},Y=function(e,t){var r=t+"(";switch(t){case"Point":r+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,n){r+=t.join(" "),r+=n<"===t?r.startDate&&r.endDate&&(n="("+e+">='"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"' AND "+e+"<='"+(r.endDate.toISOString?r.endDate.toISOString():r.endDate)+"')"):r.startDate&&(n=e+t+"'"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"'");return n},Q=function(e,t,r){var n,o=j(e);if(!Object(f.isNil)(r))if("isNull"===t)n="isNull("+o+")=true";else if("="===t){n=o+t+("'"+O(r)+"'")}else if("ilike"===t){n="strToLowerCase("+o+") LIKE "+("'%"+O(r).toLowerCase()+"%'")}else{n=o+" LIKE "+("'%"+O(r)+"%'")}return n},$=function(e,t,r){var n="";Object(f.isNil)(r)||""===r||"="===t&&(n='"'+e+'"'+t+("'"+r+"'"));return n},ee=function(e,t,r){var n,o=j(e);if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(n="("+o+">='"+r.lowBound+"' AND "+o+"<='"+r.upBound+"')"):n="("+o+"<='"+r.upBound+"')":n="("+o+">='"+r.lowBound+"')";else{var i=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(i)||(n=o+" "+t+" '"+i+"'")}return n},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},re=function(e,t,r){return b.cqlStringField(e,t,r)},ne=function(e,t){var r=t.filterFields.filter((function(t){return t.groupId===e.id})),n=[];return r&&(r.forEach((function(t){var r;switch(t.type){case"date":case"time":case"date-time":r=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":r=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":r=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":r=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":r=b.cqlListField(t.attribute,t.operator,t.value)}r&&n.push(e.negateAll?"NOT ("+r+")":r)})),n=n.join(" "+e.logic+" ")),n},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var r=!1,n=e.values.reduce((function(e,t){return null===t||"null"===t?r=!0:e.push("'"+t+"'"),e}),[]);t=n.length>0?e.attribute+" IN("+n.join(",")+")":t,r&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,r){var n=b.toOGCFilter(e,t,r),o=n.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=n.search("");n=n.substr(o,i-o)}else n="";return''.concat(e,"").concat(n,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,r=void 0===t?[]:t,n=e.spatialField,o=void 0===n?{}:n,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(r.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(f.isArray)(e.spatialField)&&Object(f.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},pe=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"AND",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",n={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,u=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&n.id||"".concat(e.groupId,"_").concat(u),logic:e.logic,id:"".concat(e.id,"_").concat(u),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(u)})}))),spatialField:pe(e.spatialField,l),spatialFieldOperator:r}}),{groupFields:[n],filterFields:[],spatialField:[]})},de=function(e,t){var r,n=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(p.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(r=Object(p.reproject)(o,n,t)).x,r.y],l=i&&Object(p.reproject)([i,0],n,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},me=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},ye=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,r=void 0===t?"ogc":t,n=e.ogcVersion,i=void 0===n?"2.0":n,s=e.addXmlnsToRoot,u=void 0!==s&&s,p=e.xmlnsToAdd,m=void 0===p?[]:p,y=c()({filterNS:r,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),h=l()(y),g=arguments.length,b=new Array(g>1?g-1:0),v=1;v");return"".concat(O.slice(0,w)).concat(m.length>0?" ".concat(m.join(" ")):"").concat(O.slice(w))}return O};b={processOGCFilterGroup:k,processOGCFilterFields:D,processOGCCrossLayerFilter:V,getGetFeatureBase:W,toOGCFilterParts:R,findSubGroups:te,toCQLFilter:H,getCrossLayerCqlFilter:Z,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:X,processCQLFilterFields:ne,getCQLGeometryElement:Y,cqlStringField:Q,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:re,toOGCFilter:F,reprojectFilterInNativeCrs:de,processOGCSpatialFilter:q,mergeFiltersToOGC:ye}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var r=e.format,n=e.queryParams,i=void 0===n?{}:n;return i.info_format||i.outputFormat||r&&o.a[r]||t.format},a=function(e){return!!Object(n.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return p})),r.d(t,"d",(function(){return f})),r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return m})),r.d(t,"a",(function(){return y}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/node_modules/lodash/fp/set.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/fp/unset.js"),s=r.n(a),l=r("./MapStore2/node_modules/lodash/fp/compose.js"),u=r.n(l),c=i.a,p=s.a,f=u.a,d=function(e,t,r,o){var i=e?Object(n.get)(o,e)||[]:o,a=Object(n.findIndex)(i,r);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?c(e,s,o):s}return e?c(e,i.concat(t),o):i.concat(t)},m=function(e,t,r,o){var i=e?Object(n.get)(o,e)||[]:o,a=Object(n.findIndex)(i,r);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?c(e,s,o):s}return o},y=function(e,t,r){var o=e?Object(n.get)(r,e)||[]:r,i=Object(n.findIndex)(o,t);if(i>=0){var a=o.slice();return a.splice(i,1),e?c(e,a,r):a()}return r}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"generateEnvString",(function(){return n}));var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,r=e.value;return"".concat(t,":").concat(r)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return M})),r.d(t,"e",(function(){return P})),r.d(t,"f",(function(){return E})),r.d(t,"h",(function(){return L})),r.d(t,"a",(function(){return C})),r.d(t,"g",(function(){return T})),r.d(t,"i",(function(){return I})),r.d(t,"k",(function(){return A})),r.d(t,"b",(function(){return N})),r.d(t,"j",(function(){return F})),r.d(t,"c",(function(){return k}));var n,o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=r("./node_modules/turf-point-on-surface/index.js"),a=r.n(i),s=r("./MapStore2/node_modules/lodash/lodash.js"),l=r("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),u=r.n(l),c=r("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),p=r("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),f=r("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),d=r("./MapStore2/web/client/utils/mapinfo/wfs.js"),m=r.n(d),y=r("./MapStore2/web/client/utils/mapinfo/wms.js"),h=r.n(y),g=r("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=r.n(g),v=r("./MapStore2/web/client/utils/mapinfo/vector.js"),O=r.n(v);function w(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],n);return[].concat(w(r),w(s))}return w(r)}),[])},getNoValidResponses:function(r){return r.reduce((function(r,n){if(n){var i;n.queryParams&&n.queryParams.hasOwnProperty("info_format")&&(i=n.queryParams.info_format),n.queryParams&&n.queryParams.hasOwnProperty("outputFormat")&&(i=n.queryParams.outputFormat);var a=(o.c[n.format||o.b[i]||o.b[e]]||t).getNoValidResponses([n]);return[].concat(w(r),w(a))}return w(r)}),[])}}},A=function(){var e;return x(e={},o.a.PROPERTIES,c.a),x(e,o.a.JSON,c.a),x(e,o.a.HTML,p.a),x(e,o.a.TEXT,f.a),e},N=function(e){var t;return e.visibility&&n.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},R={wfs:m.a,wms:h.a,wmts:b.a,vector:O.a},F=function(e){return n.VIEWERS[e]?n.VIEWERS[e]:null},k=function(e,t,r){var n=t||[],o=r||[];return Object.keys(e).reduce((function(t,r){if("params"!==r&&-1!==n.indexOf(r))t[r]=e[r];else if("params"===r&&o.length>0){var i=e[r];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};n={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(n.getAvailableInfoFormat())},getAvailableInfoFormat:M,getDefaultInfoFormatValue:E,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(w(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:u.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:R,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||n.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&_({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),r.d(t,"METERS_PER_UNIT",(function(){return v})),r.d(t,"GOOGLE_MERCATOR",(function(){return O})),r.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return w})),r.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return S})),r.d(t,"RESOLUTIONS_HOOK",(function(){return j})),r.d(t,"RESOLUTION_HOOK",(function(){return _})),r.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),r.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return M})),r.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return P})),r.d(t,"registerHook",(function(){return L})),r.d(t,"getHook",(function(){return C})),r.d(t,"executeHook",(function(){return T})),r.d(t,"clearHooks",(function(){return I})),r.d(t,"dpi2dpm",(function(){return A})),r.d(t,"dpi2dpu",(function(){return N})),r.d(t,"getSphericalMercatorScale",(function(){return R})),r.d(t,"getGoogleMercatorScale",(function(){return F})),r.d(t,"getSphericalMercatorScales",(function(){return k})),r.d(t,"getGoogleMercatorScales",(function(){return D})),r.d(t,"getResolutionsForScales",(function(){return G})),r.d(t,"getGoogleMercatorResolutions",(function(){return U})),r.d(t,"getResolutions",(function(){return B})),r.d(t,"getScales",(function(){return z})),r.d(t,"defaultGetZoomForExtent",(function(){return q})),r.d(t,"getZoomForExtent",(function(){return W})),r.d(t,"getCurrentResolution",(function(){return Z})),r.d(t,"getCenterForExtent",(function(){return V})),r.d(t,"getBbox",(function(){return H})),r.d(t,"isNearlyEqual",(function(){return K})),r.d(t,"mapUpdated",(function(){return Y})),r.d(t,"transformExtent",(function(){return X})),r.d(t,"groupSaveFormatted",(function(){return J})),r.d(t,"saveMapConfiguration",(function(){return Q})),r.d(t,"generateNewUUIDs",(function(){return $})),r.d(t,"mergeMapConfigs",(function(){return ee})),r.d(t,"addRootParentGroup",(function(){return te})),r.d(t,"isSimpleGeomType",(function(){return re})),r.d(t,"getSimpleGeomType",(function(){return ne})),r.d(t,"getIdFromUri",(function(){return oe})),r.d(t,"parseLayoutValue",(function(){return ie})),r.d(t,"prepareMapObjectToCompare",(function(){return ae})),r.d(t,"updateObjectFieldKey",(function(){return se})),r.d(t,"compareMapChanges",(function(){return le})),r.d(t,"createRegisterHooks",(function(){return ue}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/uuid/v1.js"),i=r.n(o),a=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=r("./MapStore2/web/client/utils/ImmutableUtils.js"),l=r("./MapStore2/web/client/utils/LayersUtils.js"),u=r("./node_modules/object-assign/index.js"),c=r.n(u);function p(e){return(p="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(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.diff?e:{diff:n,zoom:r}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(p,n))}function W(e,t,r,n,o){return C("EXTENT_TO_ZOOM_HOOK")?C("EXTENT_TO_ZOOM_HOOK")(e,t,r,n,o):q(e,t,r,n,o,C("RESOLUTIONS_HOOK")?C("RESOLUTIONS_HOOK")(e,t,r,n,o,A(o||b)):null)}function Z(e,t,r,n){return C("RESOLUTION_HOOK")?C("RESOLUTION_HOOK")(e,t,r,n):U(t,r,n)[e]}function V(e,t){var r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return{x:e[0]+r,y:e[1]+n,crs:t}}function H(e,t){return T("COMPUTE_BBOX_HOOK",(function(r){return r(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Y(e,t){var r,o,i,a;return!(!e||Object(n.isEmpty)(e)||!t||Object(n.isEmpty)(t))&&(!(K(null==t||null===(r=t.center)||void 0===r?void 0:r.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function X(e,t,r,n){var o=Object(a.getUnits)(e);return"ft"===o?{width:r/v.ft,height:n/v.ft}:"us-ft"===o?{width:r/v["us-ft"],height:n/v["us-ft"]}:"degrees"===o?{width:r/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:n/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:r,height:n}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,r,o,i,a,u){var p={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},f=t.map((function(e){return Object(l.saveLayer)(e)})),d=r.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(r.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(r,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),m=o.filter((function(e){return!!e.thumbnail})),y=Object(l.extractSourcesFromLayers)(f),g=f.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(n.findIndex)(g,(function(e){return"annotations"===e.id}));if(-1!==b){var v=g[b].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));g[b]=Object(s.e)("features",v,g[b])}return h({version:2,map:c()({},p,{layers:g,groups:d,backgrounds:m,text_search_config:i,bookmark_search_config:a},!Object(n.isEmpty)(y)&&{sources:y}||{})},u)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(n.cloneDeep)(e),r=h(h({},Object(n.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},g({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(n.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},g({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(n.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:r[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(n.mapValues)(Object(n.mapKeys)(Object(n.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return r[t]})),(function(e){return h(h({},e),{},{layouts:Object(n.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:r[e.i]})}))})})),layouts:Object(n.mapValues)(Object(n.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:r[e.i]})}))})),widgets:Object(n.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:r[e.id],layer:h(h({},Object(n.get)(e,"layer",{})),{},{id:r[Object(n.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(n.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:r[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(n.pick)(e,Object(n.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(d(Object(n.get)(e,"map.backgrounds",[])),d(Object(n.get)(o,"map.backgrounds",[]))),a=r(Object(n.get)(e,"map.layers",[])),s=r(Object(n.get)(o,"map.layers",[])),l=Object(n.find)(a,(function(e){return"annotations"===e.id})),u=Object(n.find)(s,(function(e){return"annotations"===e.id})),c=[].concat(d(s.filter((function(e){return"annotations"!==e.id}))),d(a.filter((function(e){return"annotations"!==e.id}))),d(l||u?[h(h(h({},l||{}),u||{}),{},{features:[].concat(d(Object(n.get)(l,"features",[])),d(Object(n.get)(u,"features",[])))})]:[])),p=c.filter((function(e){return"background"===e.group})),f=Object(n.findIndex)(p,(function(e){return e.visibility})),m=Object(n.get)(e,"map.sources",{}),y=Object(n.get)(o,"map.sources",{}),b=h(h({},m),y),v=Object(n.get)(e,"widgetsConfig",{}),O=Object(n.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(n.get)(e,"catalogServices",{})),{},{services:h(h({},Object(n.get)(e,"catalogServices.services",{})),Object(n.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:i,groups:Object(n.uniqWith)([].concat(d(Object(n.get)(e,"map.groups",[])),d(Object(n.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(d(p.slice(0,f+1)),d(p.slice(f+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),d(c.filter((function(e){return"background"!==e.group})))),sources:Object(n.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:h(h({},v.collapsed),O.collapsed),layouts:Object(n.uniq)([].concat(d(Object(n.keys)(v.layouts)),d(Object(n.keys)(O.layouts)))).reduce((function(e,t){return h(h({},e),{},g({},t,[].concat(d(Object(n.get)(v,"layouts.".concat(t),[])),d(Object(n.get)(O,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(d(Object(n.get)(v,"widgets",[])),d(Object(n.get)(O,"widgets",[])))},timelineData:h(h({},Object(n.get)(e,"timelineData",{})),Object(n.get)(o,"timelineData",{})),dimensionData:h(h({},Object(n.get)(e,"dimensionData",{})),Object(n.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",r=Object(n.get)(e,"map.groups",[]),o=r.filter((function(e){return"Default"!==e.id})),a=Object(n.find)(r,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(d(o.map((function(e){var t=e.id,r=f(e,["id"]);return h({id:"".concat(s.id,".").concat(t)},r)}))),[s]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:l,layers:Object(n.get)(e,"map.layers",[]).map((function(e){var t,r=e.group;return h(h({},f(e,["group"])),{},{group:!a||"background"===r||"Default"!==r&&r?a&&(null===(t=Object(n.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===r})))||void 0===t?void 0:t.id)||r:s.id})}))})})};function re(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,r=decodeURIComponent(e),n=t.exec(r);return n&&n.length&&n.length>1?n[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(n.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(n.trim)(e))*t/100:Object(n.isNumber)(e)?e:0},ae=function e(t){var r=["apiKey","time","args","fixed"],n=function(e){return r.reduce((function(t,r){return t||e===r}),!1)};Object.keys(t).forEach((function(r){var o=t[r],i=p(o);"object"!==i||null===o||n(r)?"undefined"!==i&&o&&!n(r)||delete t[r]:(e(o),Object.keys(o).length||delete t[r])}))},se=function(e,t,r){e[t]&&(Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(n.pick)(Object(n.cloneDeep)(e),r),i=Object(n.pick)(Object(n.cloneDeep)(t),r);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(n.isEqual)(o,i)},ue=function(){var e={};return{registerHook:function(t,r){e[t]=r},getHook:function(t){return e[t]},executeHook:function(t,r,n){var o=e[t];return o?r(o):n?n():null}}};t.default={createRegisterHooks:ue,EXTENT_TO_ZOOM_HOOK:w,RESOLUTIONS_HOOK:j,RESOLUTION_HOOK:_,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:M,GET_COORDINATES_FROM_PIXEL_HOOK:P,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:S,registerHook:L,getHook:C,dpi2dpm:A,getSphericalMercatorScales:k,getSphericalMercatorScale:R,getGoogleMercatorScales:D,getGoogleMercatorResolutions:U,getGoogleMercatorScale:F,getResolutionsForScales:G,getZoomForExtent:W,defaultGetZoomForExtent:q,getCenterForExtent:V,getResolutions:B,getScales:z,getBbox:H,mapUpdated:Y,getCurrentResolution:Z,transformExtent:X,saveMapConfiguration:Q,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:re,getSimpleGeomType:ne,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:I}},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"degToDms",(function(){return o})),r.d(t,"getFormattedBearingValue",(function(){return i})),r.d(t,"CONVERSION_RATE",(function(){return a})),r.d(t,"convertUom",(function(){return s})),r.d(t,"validateCoord",(function(){return l})),r.d(t,"validateFeatureCoordinates",(function(){return u})),r.d(t,"isValidGeometry",(function(){return c}));var n=r("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),r=60*(e-t),n=Math.floor(r),o=60*(r-n);return t+"° "+n+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.measureTrueBearing,n=void 0!==r&&r,i=t.fractionDigits,a=void 0===i?0:i,s="";if(n){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var u=a>0?e.toFixed(a):Math.floor(e);s=l+u+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][r]?e*a[t][r]:e}var l=function(e){return!Object(n.isNaN)(parseFloat(e[0]))&&!Object(n.isNaN)(parseFloat(e[1]))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,r=e.type,o=t;if("LineString"===r){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===r){if((o=Object(n.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(n.head)(o)])]}return o},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,r=e.type;if(!r||!t||t&&Object(n.isArray)(t)&&0===t.length)return!1;var o=u({coordinates:t,type:r});return(o="Polygon"===r?Object(n.head)(o):o).length>0}},"./MapStore2/web/client/utils/PopupUtils.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./node_modules/uuid/index.js"),o=r.n(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",r=document.createElement("div");return r.setAttribute("id",e+"-map-popup"),r.setAttribute("class",t),r},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("<")},s=function(e,t){if(!t)return e;if(t instanceof Node){var r=document.createDocumentFragment();r.appendChild(t),e.appendChild(r)}else a(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"validateStringAttribute",(function(){return i})),r.d(t,"getCleanTemplate",(function(){return a})),r.d(t,"parseCustomTemplate",(function(){return s})),r.d(t,"generateTemplateString",(function(){return l})),r.d(t,"parseTemplate",(function(){return u}));var n,o=r("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(r,t.length-n))||"";return Object(o.has)(e,i)},a=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(r),u=l&&l.map((function(e){var r=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,r,n,a)?r:s(e)}}))||null;return u&&u.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,r))(t)},l=(n={},function(e,t){var r=n[e];return r&&!t||(r=function(r){var n=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,n){return(t||function(e){return e})(n.trim().split(".").reduce((function(e,t){return e&&e[t]}),r))}));return Object(o.isString)(n)&&n||""},t||(n[e]=r)),r}),u=function(e,t){r.e(32).then(function(){var n=r("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=n.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,r)).catch(r.oe)},c={generateTemplateString:l,parseTemplate:u,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=c},"./MapStore2/web/client/utils/TileConfigProvider.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getLayerConfig",(function(){return u}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/ConfigProvider.js"),i=r("./MapStore2/web/client/utils/ConfigUtils.js");function a(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;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(n.isNil)(e[t])})).length>0},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return h(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return h(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return h(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return h(e,t)},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return h(e,t)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return h(e,t)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(e)?"Marker":S(e)?"Symbol":v(e)?"Text":O(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":g(e)?"Polyline":""},_={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},x=function(e,t){return _[e]&&_[e][t]},M=function(e,t,r){if(!(e&&t&&r))throw new Error("specify all the params: functionName, func, type");_[e]={func:t,type:r}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},E=function(e){var t,r=0;if(0===e.length)return r;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};L=e},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return L[e]&&L[e][t]},A=function(){return L},N=function(e){if(e)return E(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},R=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return S(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var r=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(n.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(n.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(n.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([R(o)],{type:"image/svg+xml;charset=utf-8"}),s=r.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var u=l.getContext("2d"),c=new Image;c.src=s;var p="",f=N(e);return c.onload=function(){try{u.drawImage(c,l.width/2-c.width/2,l.height/2-c.height/2),p=l.toDataURL("image/png"),l=null,C(f,{style:d(d({},e),{},{symbolUrlCustomized:s}),base64:p})}catch(e){return}},C(f,{style:d(d({},e),{},{symbolUrlCustomized:s}),svg:o,base64:p}),s})).catch((function(){return r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return S(e)&&!I(N(e))?F(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?d(d({},e),{},{symbolUrlCustomized:t}):I(N(e))})).catch((function(){return d(d({},e),{},{symbolUrlCustomized:r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(S(e)?I(N(e)):e)}))}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return y[e]}},"./MapStore2/web/client/utils/VectorTileUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"VECTOR_FORMATS",(function(){return n})),r.d(t,"isVectorFormat",(function(){return o}));var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==n.indexOf(e)}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"optionsToVendorParams",(function(){return s}));var n=r("./MapStore2/web/client/utils/FilterUtils.js");function o(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 i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(n.isFilterValid)(o)&&!o.disabled&&Object(n.toCQLFilter)(o),Object(n.isFilterValid)(a)&&Object(n.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,r];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"needsReload",(function(){return c})),r.d(t,"toDescribeURL",(function(){return p})),r.d(t,"extractGeometryType",(function(){return f})),r.d(t,"extractGeometryAttributeName",(function(){return d}));var n=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=r("./node_modules/url/url.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/lodash.js");function s(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 l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||n.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},d=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getDefaultMatrixId",(function(){return u})),r.d(t,"getMatrixIds",(function(){return c})),r.d(t,"limitMatrix",(function(){return p})),r.d(t,"getTileMatrixSet",(function(){return f})),r.d(t,"getRequestEncoding",(function(){return d})),r.d(t,"getOperations",(function(){return m})),r.d(t,"getOperation",(function(){return y})),r.d(t,"getGetTileURL",(function(){return h})),r.d(t,"getCapabilitiesURL",(function(){return g})),r.d(t,"getDefaultStyleIdentifier",(function(){return b})),r.d(t,"getDefaultFormat",(function(){return v})),r.d(t,"sortTileMatrix",(function(){return O})),r.d(t,"getTileMatrix",(function(){return w}));var n,o=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=r("./MapStore2/node_modules/lodash/lodash.js");function a(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;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,r).reduce((function(t,r){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===r||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===r)&&n[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[r]||t}),a):a},d=function(e){var t=n.getOperations(e);return n.getOperation(t,"GetTile","KVP")?"KVP":n.getOperation(t,"GetTile","RESTful")&&"RESTful"},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},y=function(e,t,r){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===r})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,r=e.GetTileURL,n=e.requestEncoding;return"KVP"===n?r:t&&Object(i.castArray)(t).map((function(e){var t=e.$,r=void 0===t?{}:t;return r.template||r.value}))||r},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},O=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},w=function(e,t){var r,n,o=f(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&c(e.matrixIds,o||t),s=O(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(r=(n=s.TileMatrix).map)||void 0===r?void 0:r.call(n,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};n={getOperations:m,getOperation:y}},"./MapStore2/web/client/utils/leaflet/DrawSupportUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"boundsToOLExtent",(function(){return n})),r.d(t,"fromLeafletFeatureToQueryform",(function(){return o}));var n=function(e){return[e.getWest(),e.getSouth(),e.getEast(),e.getNorth()]},o=function(e){var t=e.toGeoJSON(),r=e.getBounds(),o=n(r),i=r.getCenter(),a=e.getRadius?e.getRadius():0,s=t.features[0].geometry.coordinates;return{type:t.features[0].geometry.type,extent:o,center:i,coordinates:s,radius:a,projection:"EPSG:4326"}}},"./MapStore2/web/client/utils/leaflet/Icons.js":function(e,t,r){var n=r("./MapStore2/web/client/libs/leaflet.js"),o=r("./MapStore2/node_modules/lodash/lodash.js").isFunction;r("./node_modules/leaflet-extra-markers/src/assets/js/leaflet.extra-markers.js"),r("./node_modules/leaflet-extra-markers/dist/css/leaflet.extra-markers.min.css"),e.exports={extra:{getIcon:function(e){var t=e.iconPrefix||"fa";return n.ExtraMarkers.icon({icon:t+"-"+e.iconGlyph,markerColor:e.iconColor||"blue",shape:e.iconShape||"square",prefix:t,extraClasses:e.highlight?"marker-selected":""})}},standard:{getIcon:function(e){return n.icon({iconUrl:e.iconUrl||e.symbolUrlCustomized||e.symbolUrl,shadowUrl:e.shadowUrl,iconSize:e.iconSize,shadowSize:e.shadowSize,iconAnchor:e.iconAnchor,shadowAnchor:e.shadowAnchor,popupAnchor:e.popupAnchor})}},html:{getIcon:function(e,t){return n.divIcon(o(e.html)?e.html(t):e.html)}}}},"./MapStore2/web/client/utils/leaflet/Vector.js":function(e,t,r){function n(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 o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.pointToLayer,r=e.geojson,n=e.latlng,i=e.options,s=e.style,l=void 0===s?{}:s,u=e.highlight,c=void 0!==u&&u;if(r.properties&&r.properties.isText){var p=a.divIcon({html:'').concat(r.properties.valueText,""),className:""});return new a.Marker(n,{icon:p})}return m.getPointLayer(t,r,n,o(o({},i),{},{style:l,highlight:c}))},createPolygonCircleLayer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geojson,r=e.style,n=void 0===r?{}:r,i=e.latlngs,s=void 0===i?[]:i,l=e.coordsToLatLng,u=void 0===l?function(){}:l;if(t.properties&&t.properties.isCircle){var c=u(t.properties.center);return a.circle(c,o(o({},n),{},{radius:t.properties.radius}))}return new a.Polygon(s,n)},geometryToLayer:function(e,t){var r,n="Feature"===e.type?e.geometry:e,i=n?n.coordinates:null,s=[],u=o({styleName:t.styleName,style:t.style&&t.style[0]||t.style},e),c=t&&!d(u)?function(e,t){return"marker"===u.styleName?a.marker(t,u.style):a.circleMarker(t,u.style&&u.style[0]||u.style)}:null,p=t&&t.coordsToLatLng||m.coordsToLatLngF;if(!i&&!n)return null;var y,h,g,b,v=u.style||l({},t.style&&t.style[n.type]||t.style,{highlight:t.style&&t.style.highlight});switch(n.type){case"Point":return y=p(i),r=m.createTextPointMarkerLayer({pointToLayer:c,geojson:e,latlng:y,options:t,style:v,highlight:v&&v.highlight});case"MultiPoint":for(g=0,b=i.length;g=0&&(t[r]=e[r])})),t}};e.exports=o},"./MapStore2/web/client/utils/leaflet/WMTS.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=i&&o(n-o)/2?{id:r,data:t}:{id:r+1,data:e[r+1]}:null})).filter((function(e){return e}))),p=l&&c(l.id)&&l.id+""||0===e.length&&r||null;if(!t[p])return null;var f=t[p].identifier,d=l.data&&l.data.TopLeftCorner&&s(l.data.TopLeftCorner)||t[p].topLeftCorner,m=d.lng||d.x,y=d.lat||d.y,h=Math.round((n.x-m)/o),g=-Math.round((n.y-y)/o),b=l.data&&l.data.MatrixWidth&&l.data.MatrixHeight&&{cols:{min:0,max:l.data.MatrixWidth-1},rows:{min:0,max:l.data.MatrixHeight-1}},v=t[p].ranges||b;return v&&!function(e,t,r){return!(er.cols.max)&&!(tr.rows.max)}(h,g,v)?null:{ident:f,tilecol:h,tilerow:g}},getTileUrl:function(e){var t=this._map,r=t.options.crs,o=this.options.tileSize,a=e.multiplyBy(o);a.x+=1,a.y-=1;var s=a.add([o,o]),l=r.project(t.unproject(a,e.z)),u=r.project(t.unproject(s,e.z)).x-l.x,c=this.getWMTSParams(n(this.matrixSet),n(this.matrixIds),e.z,l,u);if(!c)return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var p=i.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e),TileRow:c.tilerow,TileCol:c.tilecol,TileMatrixSet:this.options.tileMatrixSet,TileMatrix:c.ident,Style:this.options.style});return"RESTful"===this.options.requestEncoding?p:p+i.Util.getParamString(this.wmtsParams,p,!0)+"&tilematrix="+c.ident+"&tilerow="+c.tilerow+"&tilecol="+c.tilecol},getMatrix:function(e,t){return e.map((function(e){return{identifier:e.identifier,topLeftCorner:new i.LatLng(t.originY,t.originX),ranges:e.ranges||null}}))},getDefaultMatrix:function(e){for(var t=new Array(22),r=0;r<22;r++)t[r]={identifier:e.tileMatrixPrefix+r,topLeftCorner:new i.LatLng(e.originY,e.originX)};return t},onError:function(){return!this.ignoreErrors}});e.exports=p},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var r,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(r=e.features)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&n(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,r){function n(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(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 i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.map,n=void 0===r?{}:r,o=t.point,a=t.currentLocale,s=t.params,p=t.maxItems,f=void 0===p?10:p,d=arguments.length>3?arguments[3]:void 0,m=arguments.length>4?arguments[4]:void 0;return{request:h(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(n.projection)||"EPSG:4326",feature_count:f},g({params:s})),e),metadata:{title:c(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:d,featureInfo:m},url:u(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,r){var o=r.point,i=n(r,["point"]),a=function(e){var t,r,n=null==e||null===(t=e.geometricFilter)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.geometry;if(n)return n;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return d(e.url,e.name).then((function(r){var n=y(r),o=p({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:n,operation:"INTERSECTS",geometry:a}},params:g({},e.baseParams,e.params,i)});return m(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,r){function n(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 o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.sizeBBox,n=t.map,i=void 0===n?{}:n,s=t.point,g=t.currentLocale,b=t.params,v=t.maxItems,O=void 0===v?10:v,w=t.env,S=arguments.length>2?arguments[2]:void 0,j=arguments.length>3?arguments[3]:void 0,_=arguments.length>4?arguments[4]:void 0,x=r&&r.height||101,M=r&&r.width||101,P=[x,M],E=0,L=a(Math.ceil(i.zoom),0,21,96),C=s.latlng.lng,T=C-360*Math.floor(C/360+.5),I={x:T,y:s.latlng.lat},A=l(I,"EPSG:4326",i.projection),N=u(A,L,E,P,null),R=e.name;e.queryLayers&&(R=e.queryLayers.join(","));var F=m(w),k=d({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,b)});return{request:y(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:R,styles:e.style,x:M%2==1?Math.ceil(M/2):M/2,y:M%2==1?Math.ceil(M/2):M/2,height:x,width:M,srs:c(i.projection)||"EPSG:4326",bbox:N.minx+","+N.miny+","+N.maxx+","+N.maxy,feature_count:O,info_format:S,ENV:F},h({},k)),e),metadata:{title:f(e.title)?e.title[g]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:j,featureInfo:_},url:p(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,r){function n(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 o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var r=e.length,n=e.indexOf("(",t[0].length);if(n>-1)for(var o=1;n0;)switch(n++,e.charAt(n)){case"(":o++;break;case")":o--}return[e.substr(0,n+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},u={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},p={RPAREN:3,LOGICAL:2,COMPARISON:1},f=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},d=function(e,t){var r,n,o=t.length;for(r=0;r0&&p[t[t.length-1].type]<=f;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var d=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":s.pop();var p=e(),f=e();return{property:e(),lowerBoundary:f,upperBoundary:p,type:u.BETWEEN};case"COMPARISON":var d=e();return{property:e(),value:d,type:u[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:u[t.text.toUpperCase()]};case"VALUE":var m=t.text.match(/^'(.*)'$/);return m?m[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var y=e(),h=e(),g=e(),b=e(),v=e();return{type:n,property:v,value:[b,g,h,y]};case"INTERSECTS":var O=e(),w=e();return{type:r,property:w,value:O};case"WITHIN":var S=e(),j=e();return{type:a,property:j,value:S};case"CONTAINS":var _=e(),x=e();return{type:o,property:x,value:_};case"DWITHIN":var M=e(),P=e(),E=e();return{type:i,value:P,property:E,distance:Number(M)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var m="Remaining tokens after building AST: \n",y=s.length-1;y>=0;y--)m+=s[y].type+": "+s[y].text+"\n";throw new Error(m)}return d};e.exports={read:function(e){return m(function(e){var t,r=[],n=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(n=(t=d(n,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);r.push(t)}while("END"!==t.type);return r}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,r){function n(e){return(n="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)}var o=r("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,u=o.propertyName,c=o.valueReference,p=o.distance,f=o.lower,d=o.upper,m=r("./MapStore2/web/client/utils/ogc/Filter/filter.js"),y=m.filter,h=m.fidFilter,g=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,r=void 0===t?"ogc":t,o=e.gmlVersion,m=e.wfsVersion,b=void 0===m?"1.1.0":m,v=o||"3.1.1",O=function(e){return g(v,e)},w=function(e){return"object"===n(e)&&Date,l(r,e)},S=0===b.indexOf("2.")?c:u;return{filter:y.bind(null,r),fidFilter:h.bind(null,r),and:i.and.bind(null,r),or:i.or.bind(null,r),not:i.not.bind(null,r),property:function(e){return{equalTo:function(t){return s.equal(r,S(r,e),w(t))},greaterThen:function(t){return s.greater(r,S(r,e),w(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(r,S(r,e),w(t))},lessThen:function(t){return s.less(r,S(r,e),w(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(r,S(r,e),w(t))},notEqualTo:function(t){return s.notEqual(r,S(r,e),w(t))},between:function(t,n){return s.between(r,S(r,e),f(r,w(t)),d(r,w(n)))},like:function(t,n){return s.like(r,S(r,e),w(t),n)},ilike:function(t,n){return s.ilike(r,S(r,e),w(t),n)},isNull:function(){return s.isNull(r,S(r,e))},intersects:function(t){return a.intersects(r,S(r,e),O(t))},within:function(t){return a.within(r,S(r,e),O(t))},dwithin:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(r,S(r,e),O(t),p(r,n,o))},contains:function(t){return a.contains(r,S(r,e),O(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return r(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:r}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var o=r.type,i=r.filters,c=void 0===i?[]:i,p=r.value,f=r.property,d=r.lowerBoundary,m=r.upperBoundary;return a(l,o)?t[o].apply(t,n(c.map(e(t)))):t.property(f)[u[o]](s(p)?d:p,m)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var r={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},n={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,r){return t(e,Array.isArray(r)?r.join(""):r)},a={and:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.AND,[t].concat(o)):i(e,n.AND,t)},or:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.OR,[t].concat(o)):i(e,n.OR,t)},not:function(e,t){return i(e,n.NOT,t)},nor:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.NOR,[t].concat(o)):i(e,n.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),o=1;o"],n)},less:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],n)},lessOrEqual:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o"],n)},between:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<"],n)},like:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(r,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],r=e[e.length-1];if(t[0]!==r[0]||t[1]!==r[1])return e.concat([e[0]])}return e},a=function(e,t,r){var n='':">",n+=o(r)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",n+=""},s=function(e,t,r){var a=o(r),s="':">",(e.length&&n(e[0])&&e[0].length&&n(e[0][0])?e:[e]).forEach((function(e,t){var r=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),n=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+r.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,r){var n=o(r),i="':">";var a=e.map((function(e){return e[0]+(n?",":" ")+e[1]}));return i+=(n?"":"")+a.join(" ")+(n?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var r="",n=t.projection||"EPSG:4326";switch(t.type){case"Point":r+=a(t.coordinates,n,e);break;case"MultiPoint":r+='',t.coordinates.forEach((function(t){t&&(r+="",r+=a(t,n,e),r+="")})),r+="";break;case"LineString":r+=l(t.coordinates,n,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=l(t,n,e),r+="")})),r+="";break;case"Polygon":r+=s(t.coordinates,n,e);break;case"MultiPolygon":var u="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=s(t,n,e),r+="")})),r+=""}return r}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=n.head,i=n.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},u=function(e){return i(e,"featureTypes[0].properties")},c=function(e,t){return o((u(t)||[]).filter((function(t){return t.name===e})))},p=function(e){return e.targetNamespace},f=function(e){return 0===e.type.indexOf("gml:")},d=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,r=e.properties,n=arguments.length>1?arguments[1]:void 0;return d(f(n)?t:r[n.name],n)};e.exports={schemaLocation:p,isGeometryType:f,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(p(e),'"')},getValue:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=f(c(t,r));return o?e?s(n,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((u(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:u,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return u(t).map((function(t){return m(e,t)}))},isValidProperty:m,isValidValueForPropertyName:function(e,t,r){return d(e,c(t,r))},isValidValue:d}},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/leaflet/overview.css":function(e,t,r){(e.exports=r("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .leaflet-control-minimap {\r\n border:solid rgba(255, 255, 255, 1.0) 4px;\r\n box-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n border-radius: 3px;\r\n background: #f8f8f9;\r\n transition: all .2s;\r\n}\r\n.msgapi .leafletbottom.leafletright, .msgapi .leaflet-control-minimap{\r\n position:relative;\r\n bottom:5px;\r\n}\r\n.msgapi .leaflet-control-minimap a {\r\n background-color: rgba(255, 255, 255, 1.0);\r\n background-repeat: no-repeat;\r\n z-index: 99999;\r\n transition: all .2s;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-bottomright {\r\n -webkit-transform: rotate(180deg);\r\n transform: rotate(180deg);\r\n border-radius: 0px;\r\n bottom: -3px;\r\n right: -3px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-topleft {\r\n -webkit-transform: rotate(0deg);\r\n transform: rotate(0deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-bottomleft {\r\n -webkit-transform: rotate(270deg);\r\n transform: rotate(270deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-topright {\r\n -webkit-transform: rotate(90deg);\r\n transform: rotate(90deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display{\r\n background-image: url("+r("./MapStore2/web/client/components/map/leaflet/img/toggle.svg")+");\r\n background-size: cover;\r\n position: absolute;\r\n border-radius: 3px 0px 0px 0px;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap-toggle-display{\r\n background-image: url("+r("./MapStore2/web/client/components/map/leaflet/img/toggle.png")+");\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-bottomright {\r\n bottom: 0;\r\n right: 0;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-topleft{\r\n top: 0;\r\n left: 0;\r\n -webkit-transform: rotate(180deg);\r\n transform: rotate(180deg);\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-bottomleft{\r\n bottom: 0;\r\n left: 0;\r\n -webkit-transform: rotate(90deg);\r\n transform: rotate(90deg);\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-topright{\r\n top: 0;\r\n right: 0;\r\n -webkit-transform: rotate(270deg);\r\n transform: rotate(270deg);\r\n}\r\n\r\n/* Old IE */\r\n.msgapi .leaflet-oldie .leaflet-control-minimap {\r\n border: 1px solid #999;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap a {\r\n background-color: #fff;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap a.minimized {\r\n filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/leaflet-simple-graticule/L.SimpleGraticule.css":function(e,t,r){(e.exports=r("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .leaflet-grid-label .gridlabel-vert {\n margin-left: 8px;\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.msgapi .leaflet-grid-label .gridlabel-vert,\n.msgapi .leaflet-grid-label .gridlabel-horiz {\n padding-left:2px;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n",""])},"./node_modules/leaflet-plugins/layer/tile/Bing.js":function(e,t){L.BingLayer=L.TileLayer.extend({options:{subdomains:[0,1,2,3],type:"Aerial",attribution:"Bing",culture:""},initialize:function(e,t){L.Util.setOptions(this,t),this._key=e,this._url=null,this._providers=[],this.metaRequested=!1},tile2quad:function(e,t,r){for(var n="",o=r;o>0;o--){var i=0,a=1<=n.zoomMin&&e.intersects(n.bounds)?(!n.active&&this._map.attributionControl&&this._map.attributionControl.addAttribution(n.attrib),n.active=!0):(n.active&&this._map.attributionControl&&this._map.attributionControl.removeAttribution(n.attrib),n.active=!1)}},onAdd:function(e){this.loadMetadata(),L.TileLayer.prototype.onAdd.apply(this,[e])},onRemove:function(e){for(var t=0;t'+t+""})})},addOriginLabel:function(){return n.marker([0,0],{icon:n.divIcon({iconSize:[0,0],className:"leaflet-grid-label",html:'
(0,0)
'})})}});e.exports=o},"./node_modules/leaflet.gridlayer.googlemutant/Leaflet.GoogleMutant.js":function(e,t){L.GridLayer.GoogleMutant=L.GridLayer.extend({options:{minZoom:0,maxZoom:23,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",opacity:1,continuousWorld:!1,noWrap:!1,type:"roadmap",maxNativeZoom:21},initialize:function(e){L.GridLayer.prototype.initialize.call(this,e),this._ready=!!window.google&&!!window.google.maps&&!!window.google.maps.Map,this._GAPIPromise=this._ready?Promise.resolve(window.google):new Promise((function(e,t){var r=0,n=null;n=setInterval((function(){return r>=10?(clearInterval(n),t(new Error("window.google not found after 10 attempts"))):window.google&&window.google.maps&&window.google.maps.Map?(clearInterval(n),e(window.google)):void r++}),500)})),this._tileCallbacks={},this._freshTiles={},this._imagesPerTile="hybrid"===this.options.type?2:1},onAdd:function(e){L.GridLayer.prototype.onAdd.call(this,e),this._initMutantContainer(),this._GAPIPromise.then(function(){if(this._ready=!0,this._map=e,this._initMutant(),e.on("viewreset",this._reset,this),e.on("move",this._update,this),e.on("zoomend",this._handleZoomAnim,this),e.on("resize",this._resize,this),google.maps.event.addListenerOnce(this._mutant,"idle",function(){this._checkZoomLevels(),this._mutantIsReady=!0}.bind(this)),e._controlCorners.bottomright.style.marginBottom="20px",e._controlCorners.bottomleft.style.marginBottom="20px",this._reset(),this._update(),this._subLayers)for(var t in this._subLayers)this._subLayers[t].setMap(this._mutant)}.bind(this))},onRemove:function(e){L.GridLayer.prototype.onRemove.call(this,e),e._container.removeChild(this._mutantContainer),this._mutantContainer=void 0,google.maps.event.clearListeners(e,"idle"),google.maps.event.clearListeners(this._mutant,"idle"),e.off("viewreset",this._reset,this),e.off("move",this._update,this),e.off("zoomend",this._handleZoomAnim,this),e.off("resize",this._resize,this),e._controlCorners&&(e._controlCorners.bottomright.style.marginBottom="0em",e._controlCorners.bottomleft.style.marginBottom="0em")},getAttribution:function(){return this.options.attribution},setOpacity:function(e){this.options.opacity=e,e<1&&L.DomUtil.setOpacity(this._mutantContainer,e)},setElementSize:function(e,t){e.style.width=t.x+"px",e.style.height=t.y+"px"},addGoogleLayer:function(e,t){return this._subLayers||(this._subLayers={}),this._GAPIPromise.then(function(){var r=new(0,google.maps[e])(t);return r.setMap(this._mutant),this._subLayers[e]=r,r}.bind(this))},removeGoogleLayer:function(e){var t=this._subLayers&&this._subLayers[e];t&&(t.setMap(null),delete this._subLayers[e])},_initMutantContainer:function(){this._mutantContainer||(this._mutantContainer=L.DomUtil.create("div","leaflet-google-mutant leaflet-top leaflet-left"),this._mutantContainer.id="_MutantContainer_"+L.Util.stamp(this._mutantContainer),this._mutantContainer.style.zIndex="800",this._mutantContainer.style.pointerEvents="none",this._map.getContainer().appendChild(this._mutantContainer)),this.setOpacity(this.options.opacity),this.setElementSize(this._mutantContainer,this._map.getSize()),this._attachObserver(this._mutantContainer)},_initMutant:function(){if(this._ready&&this._mutantContainer){this._mutantCenter=new google.maps.LatLng(0,0);var e=new google.maps.Map(this._mutantContainer,{center:this._mutantCenter,zoom:0,tilt:0,mapTypeId:this.options.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,styles:this.options.styles||{},backgroundColor:"transparent"});this._mutant=e,google.maps.event.addListenerOnce(e,"idle",function(){for(var e=this._mutantContainer.querySelectorAll("a"),t=0;t1&&(e.style.zIndex=1,n=1)):((r=e.src.match(this._satRegexp))&&(t={x:r[1],y:r[2],z:r[3]}),n=0),t){var o=this._tileCoordsToKey(t);e.style.position="absolute",e.style.visibility="hidden";var i=o+"/"+n;if(this._freshTiles[i]=e,i in this._tileCallbacks&&this._tileCallbacks[i])this._tileCallbacks[i].pop()(e),this._tileCallbacks[i].length||delete this._tileCallbacks[i];else if(this._tiles[o]){var a=this._tiles[o].el,s=0===n?a.firstChild:a.firstChild.nextSibling,l=this._clone(e);a.replaceChild(l,s)}}else e.src.match(this._staticRegExp)&&(e.style.visibility="hidden")},createTile:function(e,t){var r=this._tileCoordsToKey(e),n=L.DomUtil.create("div");n.dataset.pending=this._imagesPerTile,t=t.bind(this,null,n);for(var o=0;othis.options.maxNativeZoom)&&this._setMaxNativeZoom(t)},_setMaxNativeZoom:function(e){e!=this.options.maxNativeZoom&&(this.options.maxNativeZoom=e,this._resetView())},_reset:function(){this._initContainer()},_update:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t);var r=this._map.getZoom(),n=r!==Math.round(r),o=this._mutant.getZoom();n||r==o||(this._mutant.setZoom(r),this._mutantIsReady&&this._checkZoomLevels())}L.GridLayer.prototype._update.call(this)},_resize:function(){var e=this._map.getSize();this._mutantContainer.style.width===e.x&&this._mutantContainer.style.height===e.y||(this.setElementSize(this._mutantContainer,e),this._mutant&&google.maps.event.trigger(this._mutant,"resize"))},_handleZoomAnim:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t),this._mutant.setZoom(Math.round(this._map.getZoom()))}},_removeTile:function(e){if(this._mutant)return setTimeout(this._pruneTile.bind(this,e),1e3),L.GridLayer.prototype._removeTile.call(this,e)},_pruneTile:function(e){for(var t=this._mutant.getZoom(),r=e.split(":")[2],n=this._mutant.getBounds(),o=n.getSouthWest(),i=n.getNorthEast(),a=L.latLngBounds([[o.lat(),o.lng()],[i.lat(),i.lng()]]),s=0;s=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,t.NonTiledLayer.prototype.onAdd.call(this,e)},getImageUrl:function(e,r,n){var o=this.wmsParams;o.width=r,o.height=n;var i=this._crs.project(e.getNorthWest()),a=this._crs.project(e.getSouthEast()),s=this._wmsUrl,l=l=(this._wmsVersion>=1.3&&this._crs===t.CRS.EPSG4326?[a.y,i.x,i.y,a.x]:[i.x,a.y,a.x,i.y]).join(",");return s+t.Util.getParamString(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+l},setParams:function(e,r){return t.extend(this.wmsParams,e),r||this.redraw(),this}}),t.nonTiledLayer.wms=function(e,r){return new t.NonTiledLayer.WMS(e,r)},r.exports=t.NonTiledLayer.WMS}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,r,n){(function(e){"use strict";var t="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.NonTiledLayer=(t.Layer||t.Class).extend({includes:t.Evented||t.Mixin.Events,emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",options:{attribution:"",opacity:1,zIndex:void 0,minZoom:0,maxZoom:18,pointerEvents:null,errorImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",bounds:t.latLngBounds([-85.05,-180],[85.05,180]),useCanvas:void 0},key:"",initialize:function(e){t.setOptions(this,e)},onAdd:function(e){this._map=e,void 0===this._zoomAnimated&&(this._zoomAnimated=t.DomUtil.TRANSITION&&t.Browser.any3d&&!t.Browser.mobileOpera&&this._map.options.zoomAnimation),t.version<"1.0"&&this._map.on(this.getEvents(),this),this._div||(this._div=t.DomUtil.create("div","leaflet-image-layer"),this.options.pointerEvents&&(this._div.style["pointer-events"]=this.options.pointerEvents),void 0!==this.options.zIndex&&(this._div.style.zIndex=this.options.zIndex),void 0!==this.options.opacity&&(this._div.style.opacity=this.options.opacity)),this.getPane().appendChild(this._div);var r=!!window.HTMLCanvasElement;void 0===this.options.useCanvas?this._useCanvas=r:this._useCanvas=this.options.useCanvas,this._useCanvas?(this._bufferCanvas=this._initCanvas(),this._currentCanvas=this._initCanvas()):(this._bufferImage=this._initImage(),this._currentImage=this._initImage()),this._update()},getPane:function(){return t.Layer?t.Layer.prototype.getPane.call(this):(this.options.pane?this._pane=this.options.pane:this._pane=this._map.getPanes().overlayPane,this._pane)},onRemove:function(e){t.version<"1.0"&&this._map.off(this.getEvents(),this),this.getPane().removeChild(this._div),this._useCanvas?(this._div.removeChild(this._bufferCanvas),this._div.removeChild(this._currentCanvas)):(this._div.removeChild(this._bufferImage),this._div.removeChild(this._currentImage))},addTo:function(e){return e.addLayer(this),this},_setZoom:function(){this._useCanvas?(this._currentCanvas._bounds&&this._resetImageScale(this._currentCanvas,!0),this._bufferCanvas._bounds&&this._resetImageScale(this._bufferCanvas)):(this._currentImage._bounds&&this._resetImageScale(this._currentImage,!0),this._bufferImage._bounds&&this._resetImageScale(this._bufferImage))},getEvents:function(){var e={moveend:this._update};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),t.version>="1.0"&&(e.zoom=this._setZoom),e},getElement:function(){return this._div},setOpacity:function(e){return this.options.opacity=e,this._div&&t.DomUtil.setOpacity(this._div,this.options.opacity),this},setZIndex:function(e){return e&&(this.options.zIndex=e,this._div&&(this._div.style.zIndex=e)),this},bringToFront:function(){return this._div&&this.getPane().appendChild(this._div),this},bringToBack:function(){return this._div&&this.getPane().insertBefore(this._div,this.getPane().firstChild),this},getAttribution:function(){return this.options.attribution},_initCanvas:function(){var e=t.DomUtil.create("canvas","leaflet-image-layer");return this._div.appendChild(e),e._image=new Image,this._ctx=e.getContext("2d"),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e._image,{onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},_initImage:function(){var e=t.DomUtil.create("img","leaflet-image-layer");return this._div.appendChild(e),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e,{galleryimg:"no",onselectstart:t.Util.falseFn,onmousemove:t.Util.falseFn,onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},redraw:function(){return this._map&&this._update(),this},_animateZoom:function(e){this._useCanvas?(this._currentCanvas._bounds&&this._animateImage(this._currentCanvas,e),this._bufferCanvas._bounds&&this._animateImage(this._bufferCanvas,e)):(this._currentImage._bounds&&this._animateImage(this._currentImage,e),this._bufferImage._bounds&&this._animateImage(this._bufferImage,e))},_animateImage:function(e,r){if(void 0===t.DomUtil.setTransform){var n=this._map,o=e._scale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),l=n._latLngToNewLayerPoint(a,r.zoom,r.center)._subtract(s),u=s._add(l._multiplyBy(.5*(1-1/o)));e.style[t.DomUtil.TRANSFORM]=t.DomUtil.getTranslateString(u)+" scale("+o+") "}else n=this._map,o=e._scale*e._sscale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),t.DomUtil.setTransform(e,s,o);e._lastScale=o},_resetImageScale:function(e,r){var n=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),o=e._orgBounds.getSize().y,i=n.getSize().y/o;e._sscale=i,t.DomUtil.setTransform(e,n.min,i)},_resetImage:function(e){var r=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),n=r.getSize();t.DomUtil.setPosition(e,r.min),e._orgBounds=r,e._sscale=1,this._useCanvas?(e.width=n.x,e.height=n.y):(e.style.width=n.x+"px",e.style.height=n.y+"px")},_getClippedBounds:function(){var e=this._map.getBounds(),r=e.getSouth(),n=e.getNorth(),o=e.getWest(),i=e.getEast(),a=this.options.bounds.getSouth(),s=this.options.bounds.getNorth(),l=this.options.bounds.getWest(),u=this.options.bounds.getEast();rs&&(n=s),ou&&(i=u);var c=new t.LatLng(n,o),p=new t.LatLng(r,i);return new t.LatLngBounds(c,p)},_update:function(){var e,r=this._getClippedBounds(),n=this._map.latLngToContainerPoint(r.getNorthWest()),o=this._map.latLngToContainerPoint(r.getSouthEast()),i=o.x-n.x,a=o.y-n.y;if(this._useCanvas?(this._bufferCanvas._scale=this._bufferCanvas._lastScale,this._currentCanvas._scale=this._currentCanvas._lastScale=1,this._bufferCanvas._sscale=1,this._currentCanvas._bounds=r,this._resetImage(this._currentCanvas),e=this._currentCanvas._image,t.DomUtil.setOpacity(e,0)):(this._bufferImage._scale=this._bufferImage._lastScale,this._currentImage._scale=this._currentImage._lastScale=1,this._bufferImage._sscale=1,this._currentImage._bounds=r,this._resetImage(this._currentImage),e=this._currentImage,t.DomUtil.setOpacity(e,0)),this._map.getZoom()this.options.maxZoom||i<32||a<32)return this._div.style.visibility="hidden",e.src=this.emptyImageUrl,this.key=e.key="",void(e.tag=null);this.fire("loading"),this.key=r.getNorthWest()+", "+r.getSouthEast()+", "+i+", "+a,this.getImageUrl?(e.src=this.getImageUrl(r,i,a),e.key=this.key):this.getImageUrlAsync(r,i,a,this.key,(function(t,r,n){e.key=t,e.src=r,e.tag=n}))},_onImageError:function(e){this.fire("error",e),t.DomUtil.addClass(e.target,"invalid"),e.target.src!==this.options.errorImageUrl&&(e.target.src=this.options.errorImageUrl)},_onImageLoad:function(e){(e.target.src===this.options.errorImageUrl||(t.DomUtil.removeClass(e.target,"invalid"),e.target.key&&e.target.key===this.key))&&(this._onImageDone(e),this.fire("load",e))},_onImageDone:function(e){if(this._useCanvas)this._renderCanvas(e);else{t.DomUtil.setOpacity(this._currentImage,1),t.DomUtil.setOpacity(this._bufferImage,0),this._addInteraction&&this._currentImage.tag&&this._addInteraction(this._currentImage.tag);var r=this._bufferImage;this._bufferImage=this._currentImage,this._currentImage=r}""!==e.target.key&&(this._div.style.visibility="visible")},_renderCanvas:function(e){this._currentCanvas.getContext("2d").drawImage(this._currentCanvas._image,0,0),t.DomUtil.setOpacity(this._currentCanvas,1),t.DomUtil.setOpacity(this._bufferCanvas,0),this._addInteraction&&this._currentCanvas._image.tag&&this._addInteraction(this._currentCanvas._image.tag);var r=this._bufferCanvas;this._bufferCanvas=this._currentCanvas,this._currentCanvas=r}}),t.nonTiledLayer=function(){return new t.NonTiledLayer},r.exports=t.NonTiledLayer}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2,1])(2)}).call(this,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/lrucache/index.js":function(e,t,r){var n,o,i;!function(r,a){"use strict";"object"==typeof e.exports?e.exports=a():(o=[],void 0===(i="function"==typeof(n=a)?n.apply(t,o):n)||(e.exports=i))}("object"==typeof window&&window,(function(){"use strict";function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new r(t)}var t=e.prototype;function r(e){this.capacity=e>0?+e:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,this.data=Object.create?Object.create(null):{},this.hash=Object.create?Object.create(null):{},this.linkedList=new n}function n(){this.length=0,this.head=null,this.end=null}function o(e){this.key=e,this.p=null,this.n=null}function i(e,t){t!==e.head&&(e.end?e.end===t&&(e.end=t.n):e.end=t,a(t.n,t.p),a(t,e.head),e.head=t,e.head.n=null)}function a(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}return t.get=function(e){var t=this._LRUCacheState,r=t.hash[e];if(r)return i(t.linkedList,r),t.data[e]},t.set=function(e,t){var r=this._LRUCacheState,n=r.hash[e];return void 0===t||(n||(r.hash[e]=new o(e),r.linkedList.length+=1,n=r.hash[e]),i(r.linkedList,n),r.data[e]=t,r.linkedList.length>r.capacity&&this.remove(r.linkedList.end.key)),this},t.update=function(e,t){return this.has(e)&&this.set(e,t(this.get(e))),this},t.remove=function(e){var t=this._LRUCacheState,r=t.hash[e];return r?(r===t.linkedList.head&&(t.linkedList.head=r.p),r===t.linkedList.end&&(t.linkedList.end=r.n),a(r.n,r.p),delete t.hash[e],delete t.data[e],t.linkedList.length-=1,this):this},t.removeAll=function(){return this._LRUCacheState=new r(this._LRUCacheState.capacity),this},t.info=function(){var e=this._LRUCacheState;return{capacity:e.capacity,length:e.linkedList.length}},t.keys=function(){for(var e=[],t=this._LRUCacheState.linkedList.head;t;)e.push(t.key),t=t.p;return e},t.has=function(e){return!!this._LRUCacheState.hash[e]},t.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key},t.popStale=function(){var e=this.staleKey();if(!e)return null;var t=[e,this._LRUCacheState.data[e]];return this.remove(e),t},e}))},"./node_modules/turf-center/index.js":function(e,t,r){var n=r("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=r("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=n(e),r=(t[0]+t[2])/2,i=(t[1]+t[3])/2;return o([r,i])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,r){var n=r("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return n(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=l>e[1]&&e[0]<(s-i)*(e[1]-a)/(l-a)+i&&(r=!r)}return r}e.exports=function(e,t){var r=n.getCoord(e),i=t.geometry.coordinates;"Polygon"===t.geometry.type&&(i=[i]);for(var a=0,s=!1;ao?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n2?r-2:1,o&&o<=r?n:a(n,r)):n}},mixin:function(e){return function(t){var r=this;if(!T(r))return e(r,Object(t));var n=[];return E(A(t),(function(e){T(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),E(n,(function(e){var t=e[1];T(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:R(t)+1;return P(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return P(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),c)}}};function G(e,t){if(d){var r=n.iterateeRearg[e];if(r)return function(e,t){return W(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,r),t),r)}))}(t,r);var o=!p&&n.iterateeAry[e];if(o)return function(e,t){return W(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function U(e,t,r){if(y&&(O||!n.skipFixed[e])){var o=n.methodSpread[e],a=o&&o.start;return void 0===a?_(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=n&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function B(e,t,r){return g&&r>1&&(w||!n.skipRearg[e])?N(t,n.methodRearg[e]||n.aryRearg[r]):t}function z(e,t){for(var r=-1,n=(t=F(t)).length,o=n-1,i=M(Object(e)),a=i;null!=a&&++r1?P(t,r):t}(0,o=G(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?P(o,1):function(){return t.apply(this,arguments)}),o.convert=q(i,t),o.placeholder=t.placeholder=r,o}if(!f)return Z(r,u,b);var V=u,H=[];return E(k,(function(e){E(n.aryMethod[e],(function(e){var t=V[n.remap[e]||e];t&&H.push([e,Z(e,t,V)])}))})),E(A(V),(function(e){var t=V[e];if("function"==typeof t){for(var r=H.length;r--;)if(H[r][0]==e)return;t.convert=q(e,t),H.push([e,t])}})),E(H,(function(e){V[e[0]]=e[1]})),V.convert=function(e){return V.runInContext.convert(e)(void 0)},V.placeholder=V,E(A(V),(function(e){E(n.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V}},"./MapStore2/node_modules/lodash/fp/_mapping.js":function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var i=r[o];e.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./MapStore2/node_modules/lodash/fp/_util.js":function(e,t,r){e.exports={ary:r("./MapStore2/node_modules/lodash/ary.js"),assign:r("./MapStore2/node_modules/lodash/_baseAssign.js"),clone:r("./MapStore2/node_modules/lodash/clone.js"),curry:r("./MapStore2/node_modules/lodash/curry.js"),forEach:r("./MapStore2/node_modules/lodash/_arrayEach.js"),isArray:r("./MapStore2/node_modules/lodash/isArray.js"),isError:r("./MapStore2/node_modules/lodash/isError.js"),isFunction:r("./MapStore2/node_modules/lodash/isFunction.js"),isWeakMap:r("./MapStore2/node_modules/lodash/isWeakMap.js"),iteratee:r("./MapStore2/node_modules/lodash/iteratee.js"),keys:r("./MapStore2/node_modules/lodash/_baseKeys.js"),rearg:r("./MapStore2/node_modules/lodash/rearg.js"),toInteger:r("./MapStore2/node_modules/lodash/toInteger.js"),toPath:r("./MapStore2/node_modules/lodash/toPath.js")}},"./MapStore2/node_modules/lodash/fp/compose.js":function(e,t,r){e.exports=r("./MapStore2/node_modules/lodash/fp/flowRight.js")},"./MapStore2/node_modules/lodash/fp/convert.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/_baseConvert.js"),o=r("./MapStore2/node_modules/lodash/fp/_util.js");e.exports=function(e,t,r){return n(o,e,t,r)}},"./MapStore2/node_modules/lodash/fp/flowRight.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("flowRight",r("./MapStore2/node_modules/lodash/flowRight.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/fp/placeholder.js":function(e,t){e.exports={}},"./MapStore2/node_modules/lodash/fp/set.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("set",r("./MapStore2/node_modules/lodash/set.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/fp/unset.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/fp/convert.js")("unset",r("./MapStore2/node_modules/lodash/unset.js"));n.placeholder=r("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=n},"./MapStore2/node_modules/lodash/isError.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=r("./MapStore2/node_modules/lodash/isObjectLike.js"),i=r("./MapStore2/node_modules/lodash/isPlainObject.js");e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},"./MapStore2/node_modules/lodash/isMap.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseIsMap.js"),o=r("./MapStore2/node_modules/lodash/_baseUnary.js"),i=r("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isMap,s=a?o(a):n;e.exports=s},"./MapStore2/node_modules/lodash/isSet.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseIsSet.js"),o=r("./MapStore2/node_modules/lodash/_baseUnary.js"),i=r("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isSet,s=a?o(a):n;e.exports=s},"./MapStore2/node_modules/lodash/isWeakMap.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_getTag.js"),o=r("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object WeakMap]"==n(e)}},"./MapStore2/node_modules/lodash/iteratee.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseClone.js"),o=r("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e){return o("function"==typeof e?e:n(e,1))}},"./MapStore2/node_modules/lodash/last.js":function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_createWrap.js"),o=r("./MapStore2/node_modules/lodash/_flatRest.js"),i=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=i},"./MapStore2/node_modules/lodash/set.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_arrayMap.js"),o=r("./MapStore2/node_modules/lodash/_copyArray.js"),i=r("./MapStore2/node_modules/lodash/isArray.js"),a=r("./MapStore2/node_modules/lodash/isSymbol.js"),s=r("./MapStore2/node_modules/lodash/_stringToPath.js"),l=r("./MapStore2/node_modules/lodash/_toKey.js"),u=r("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return i(e)?n(e,l):a(e)?[e]:o(s(u(e)))}},"./MapStore2/node_modules/lodash/unset.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||n(e,t)}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,r){"use strict";r.d(t,"n",(function(){return o})),r.d(t,"h",(function(){return i})),r.d(t,"i",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"o",(function(){return l})),r.d(t,"q",(function(){return u})),r.d(t,"b",(function(){return c})),r.d(t,"t",(function(){return p})),r.d(t,"l",(function(){return f})),r.d(t,"u",(function(){return d})),r.d(t,"m",(function(){return m})),r.d(t,"k",(function(){return y})),r.d(t,"p",(function(){return h})),r.d(t,"e",(function(){return g})),r.d(t,"j",(function(){return b})),r.d(t,"A",(function(){return v})),r.d(t,"w",(function(){return O})),r.d(t,"x",(function(){return w})),r.d(t,"z",(function(){return S})),r.d(t,"d",(function(){return j})),r.d(t,"f",(function(){return _})),r.d(t,"a",(function(){return x})),r.d(t,"y",(function(){return M})),r.d(t,"g",(function(){return P})),r.d(t,"r",(function(){return E})),r.d(t,"s",(function(){return L})),r.d(t,"v",(function(){return C})),r.d(t,"N",(function(){return T})),r.d(t,"H",(function(){return I})),r.d(t,"I",(function(){return A})),r.d(t,"P",(function(){return N})),r.d(t,"E",(function(){return R})),r.d(t,"O",(function(){return F})),r.d(t,"K",(function(){return k})),r.d(t,"Q",(function(){return D})),r.d(t,"C",(function(){return G})),r.d(t,"T",(function(){return U})),r.d(t,"L",(function(){return B})),r.d(t,"U",(function(){return q})),r.d(t,"M",(function(){return W})),r.d(t,"W",(function(){return Z})),r.d(t,"Y",(function(){return V})),r.d(t,"J",(function(){return H})),r.d(t,"Z",(function(){return K})),r.d(t,"V",(function(){return Y})),r.d(t,"D",(function(){return X})),r.d(t,"F",(function(){return J})),r.d(t,"B",(function(){return Q})),r.d(t,"X",(function(){return $})),r.d(t,"G",(function(){return ee})),r.d(t,"R",(function(){return te})),r.d(t,"S",(function(){return re}));var n=r("./MapStore2/web/client/api/Nominatim.js"),o="LOAD_FEATURE_INFO",i="ERROR_FEATURE_INFO",a="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",l="NEW_MAPINFO_REQUEST",u="PURGE_MAPINFO_RESULTS",c="CHANGE_MAPINFO_FORMAT",p="SHOW_MAPINFO_MARKER",f="HIDE_MAPINFO_MARKER",d="SHOW_REVERSE_GEOCODE",m="HIDE_REVERSE_GEOCODE",y="GET_VECTOR_INFO",h="NO_QUERYABLE_LAYERS",g="CLEAR_WARNING",b="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",O="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",w="TOGGLE_MAPINFO_STATE",S="UPDATE_CENTER_TO_MARKER",j="IDENTIFY:CHANGE_PAGE",_="IDENTIFY:CLOSE_IDENTIFY",x="IDENTIFY:CHANGE_FORMAT",M="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",P="IDENTIFY:EDIT_LAYER_FEATURES",E="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",L="IDENTIFY:SET_MAP_TRIGGER",C="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function T(e,t,r,n,i){return{type:o,data:t,reqId:e,requestParams:r,layerMetadata:n,layer:i}}function I(e,t,r,n){return{type:i,error:t,reqId:e,requestParams:r,layerMetadata:n}}function A(e,t,r,n){return{type:a,reqId:e,exceptions:t,requestParams:r,layerMetadata:n}}function N(){return{type:h}}function R(){return{type:g}}function F(e,t){return{type:l,reqId:e,request:t}}function k(e,t,r,n){return{type:y,layer:e,request:t,metadata:r,queryableLayers:n}}function D(){return{type:u}}function G(e){return{type:c,infoFormat:e}}function U(){return{type:p}}function B(){return{type:f}}function z(e){return{type:d,reverseGeocodeData:e.data}}function q(e){return function(t){n.default.reverseGeocode(e).then((function(e){t(z(e))})).catch((function(e){t(z(e))}))}}function W(){return{type:m}}function Z(){return{type:w}}function V(e){return{type:S,status:e}}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:b,point:e,layer:t,filterNameList:r,overrideParams:n,itemId:o}}function K(e){return{type:v,point:e}}function Y(e){return{type:O,enabled:e}}function X(e){return{type:j,index:e}}var J=function(){return{type:_}},Q=function(e){return{type:x,format:e}},$=function(e){return{type:M,showCoordinateEditor:e}},ee=function(e){return{type:P,layer:e}},te=function(e){return{type:E,query:e}},re=function(e){return{type:L,trigger:e}}},"./MapStore2/web/client/api/Nominatim.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/url/url.js"),a=r.n(i),s=r("./node_modules/object-assign/index.js"),l=r.n(s),u={format:"json",bounded:0,polygon_geojson:1,priority:5},c={geocode:function(e,t){var r=l()({q:e},u,t||{}),n=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org",query:r});return o.a.get(n)},reverseGeocode:function(e,t){var r=l()({lat:e.lat,lon:e.lng},t||{},u),n=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org/reverse",query:r});return o.a.get(n)}};t.default=c},"./MapStore2/web/client/api/WFS.js":function(e,t,r){"use strict";r.r(t),r.d(t,"toDescribeURL",(function(){return m})),r.d(t,"getFeatureSimple",(function(){return y})),r.d(t,"getCapabilitiesURL",(function(){return h})),r.d(t,"getFeatureURL",(function(){return g})),r.d(t,"getFeature",(function(){return b})),r.d(t,"getCapabilities",(function(){return v})),r.d(t,"describeFeatureTypeOGCSchemas",(function(){return O})),r.d(t,"describeFeatureType",(function(){return w}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/url/url.js"),a=r.n(i),s=r("./node_modules/object-assign/index.js"),l=r.n(s);function u(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 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 f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.version,n=void 0===r?"1.1.0":r,o=a.a.parse(e,!0);return a.a.format(l()({},o,{query:l()({service:"WFS",version:n,request:"GetCapabilities"},o.query)}))},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.version,o=void 0===n?"1.1.0":n,i=u(r,["version"]),s=a.a.parse(e,!0);return a.a.format(l()({},s,{query:l()(f({service:"WFS",typeName:t,version:o,request:"GetFeature"},i),s.query)}))},b=function(e,t,r){return o.a.get(g(e,t,r))},v=function(e){return o.a.get(h(e))},O=function(e,t){var n=a.a.parse(e,!0),i=a.a.format(l()({},n,{query:l()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},n.query)}));return new Promise((function(e){Promise.all([r.e(1),r.e(31)]).then(function(){var t=r("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(i).then((function(e){var r=t.unmarshalString(e.data);return r&&r.value})))}.bind(null,r)).catch(r.oe)}))},w=function(e,t){return o.a.get(m(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/DefaultViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./MapStore2/web/client/utils/MapInfoUtils.js"),l=r("./MapStore2/web/client/components/I18N/HTML.jsx"),u=r("./MapStore2/web/client/components/I18N/Message.jsx"),c=r("./node_modules/react-bootstrap/es/index.js");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;rMath.abs(e.startX-r.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&p(t.prototype,r),n&&p(t,n),i}(a.a.Component);g(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),g(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r("./node_modules/recompose/es/Recompose.js"),o=r("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(n.withHandlers)({onNext:function(e){var t=e.index,r=void 0===t?0:t,n=e.setIndex,o=void 0===n?function(){}:n,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,r+1))}},onPrevious:function(e){var t=e.index,r=e.setIndex,n=void 0===r?function(){}:r;return function(){n(Math.max(0,t-1))}}}),a=Object(n.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,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&&p(e,t)}(a,e);var t,r,n,i=f(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),r=t&&2===t.length?v.exec(e)[1]:"";r=r.replace(/body[,]+/g,"");var n=e.replace(b,"$1").trim();return o.a.createElement(s.a,{html:r+n})}}])&&c(t.prototype,r),n&&c(t,n),a}(o.a.Component);y=O,h="propTypes",g={response:a.a.string},h in y?Object.defineProperty(y,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[h]=g,t.a=O},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/recompose/es/Recompose.js"),a=r("./MapStore2/node_modules/lodash/lodash.js"),s=r("./MapStore2/web/client/utils/TemplateUtils.js"),l=r("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),u=r("./node_modules/prop-types/index.js"),c=r.n(u),p=r("./MapStore2/web/client/utils/StringUtils.js");function f(e){return(f="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",r=x[t]||x.PROPERTIES;return o.a.createElement(r,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i);function s(e){return(s="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;r0){var t=this._map.latLngToContainerPoint(this._markers[0].getLatLng()),r=this._map.latLngToContainerPoint(this._markers[this._markers.length-1].getLatLng()),n=new v.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),o=this._map.latLngToContainerPoint(n.getLatLng());return Math.min(t.distanceTo(o),r.distanceTo(o))}return 1/0};var O=r("./MapStore2/web/client/utils/MapUtils.js"),w=O.isSimpleGeomType,S=O.getSimpleGeomType,j=r("./MapStore2/web/client/utils/leaflet/DrawSupportUtils.js").boundsToOLExtent,_=r("./node_modules/object-assign/index.js"),x=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),M=x.reproject,P=x.reprojectBbox,E=x.calculateCircleCoordinates,L=x.reprojectGeoJson,C=r("./MapStore2/web/client/utils/leaflet/Vector.js").pointToLayer,T=Math.PI/180,I=function(e,t,r){if("EPSG:4326"===r)return{center:t,srs:r,radius:e};var n=e/40075017*360/Math.cos(T*t[1]),o=M(t,"EPSG:4326",r);if(n){var i=M([t[0]+n,t[1]],"EPSG:4326",r);return{center:o,srs:r,radius:Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2))}}return{center:o,srs:r,radius:e}},A=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if("EPSG:4326"===r||void 0===e)return{center:t,projection:r,radius:e};var n=M({x:t.lng,y:t.lat},r,"EPSG:4326");if(void 0===e)return{center:n,projection:r,radius:e};var o=M([t.lng+e,t.lat],r,"EPSG:4326"),i=Math.sqrt(Math.pow(n.x-o.x,2)+Math.pow(n.y-o.y,2)),a=i*Math.cos(T*n.y)*40075017/360;return{center:n,projection:"EPSG:4326",radius:a}},N=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&&l(e,t)}(c,e);var t,r,n,o=u(c);function c(){var e;a(this,c);for(var t=arguments.length,r=new Array(t),n=0;n0&&r.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod)),e.drawLayer=r})),d(p(e),"addGeojsonLayer",(function(t){var r=t.features,n=t.projection,o=t.style;e.clean();var i=v.geoJson(r,{style:function(e){return e.style||o},pointToLayer:function(e,t){var r=M({x:t.lng,y:t.lat},n,"EPSG:4326");return C(v.latLng(r.y,r.x),e,o)}});e.drawLayer=i.addTo(e.props.map)})),d(p(e),"replaceFeatures",(function(t){e.drawLayer?(e.drawLayer.clearLayers(),"Circle"===e.props.drawMethod?(e.drawLayer.options.pointToLayer=function(e,t){var r=A(e.radius,t,e.projection),n=r.center,o=r.radius;return v.circle(n,o||5)},e.drawLayer.options.style={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}):e.drawLayer.options.pointToLayer=function(e,r){var n=M({x:r.lng,y:r.lat},t.options&&t.options.featureProjection||"EPSG:4326","EPSG:4326");return C(v.latLng(n.y,n.x),e,t.style)},e.drawLayer.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod))):e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style})})),d(p(e),"endDrawing",(function(t){e.replaceFeatures(t);var r=g(t.features);"Circle"!==e.props.drawMethod||!r||b(r.center)||b(r.radius)?r&&e.props.onEndDrawing(r,e.props.drawOwner):e.props.onEndDrawing(i(i({},r),{},{coordinates:E(r.center,r.radius,100)}),e.props.drawOwner)})),d(p(e),"addDrawInteraction",(function(t){e.removeAllInteractions(),"Point"===t.drawMethod||"MultiPoint"===t.drawMethod?e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}):e.addLayer(t),e.props.map.on("draw:created",e.onDrawCreated,p(e)),e.props.map.on("draw:drawstart",e.onDrawStart,p(e)),"LineString"===t.drawMethod||"Bearing"===t.drawMethod||"MultiLineString"===t.drawMethod?e.drawControl=new v.Draw.Polyline(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},showLength:!1,repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Polygon"===t.drawMethod||"MultiPolygon"===t.drawMethod?e.drawControl=new v.Draw.Polygon(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5],guidelineDistance:5},allowIntersection:!1,showLength:!1,showArea:!1,repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"BBOX"===t.drawMethod?e.drawControl=new v.Draw.Rectangle(e.props.map,{draw:!1,shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},repeatMode:!0,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Circle"===t.drawMethod?e.drawControl=new v.Draw.Circle(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},showRadius:!1,repeatMode:!0}):"Point"!==t.drawMethod&&"MultiPoint"!==t.drawMethod||(e.drawControl=new v.Draw.Marker(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},repeatMode:!0})),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable(),e.drawControl.enable()})),d(p(e),"addDrawOrEditInteractions",(function(t){var r=[];t.features.map((function(e){var t;e&&e.geometry&&e.geometry.type&&!w(e.geometry.type)&&("GeometryCollection"===e.geometry.type?(t=e.geometry.geometries.map((function(t){return t.coordinates.map((function(r,n){return{type:"Feature",properties:i({},e.properties),id:t.type+n,geometry:{coordinates:r,type:S(t.type)}}}))})),r.push({type:"FeatureCollection",features:t})):(t=e.geometry.coordinates.map((function(t,r){return{type:"Feature",properties:i({},e.properties),id:e.geometry.type+r,geometry:{coordinates:t,type:S(e.geometry.type)}}})),r.push({type:"FeatureCollection",features:t})))}));var n=_({},t,{features:r.length>0?r:[{}]});e.drawLayer?(e.drawLayer.clearLayers(),e.drawLayer.addData(e.convertFeaturesPolygonToPoint(n.features,n.drawMethod))):e.addGeojsonLayer({features:t.features&&t.options.featureProjection&&"EPSG:4326"!==t.options.featureProjection?t.features.map((function(e){return L(e,t.options.featureProjection,"EPSG:4326")})):t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}),t.options.editEnabled&&e.addEditInteraction(n),t.options.drawEnabled&&e.addDrawInteraction(n)})),d(p(e),"addEditInteraction",(function(t){e.clean(),e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:_({},t.style,{poly:{icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}})});var r=e.drawLayer.getLayers();setTimeout((function(){r.forEach((function(r){r.getLayers&&r.getLayers()&&r.getLayers().length?r.getLayers().forEach((function(r){r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable()})):(r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable())}))}),0),e.editControl=new v.Control.Draw({edit:{featureGroup:e.drawLayer,poly:{allowIntersection:!1},edit:!0},draw:{polygon:{allowIntersection:!1,showArea:!0}}}),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable()})),d(p(e),"removeAllInteractions",(function(){e.removeEditInteraction(),e.removeDrawInteraction()})),d(p(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.props.options&&e.props.options.stopAfterDrawing&&(e.drawControl.setOptions({repeatMode:!1}),e.props.onDrawStopped()),e.drawControl.disable(),e.drawControl=null,e.props.map.off("draw:created",e.onDrawCreated,p(e)),e.props.map.off("draw:drawstart",e.onDrawStart,p(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),d(p(e),"removeEditInteraction",(function(){e.drawLayer&&(e.drawLayer.getLayers().forEach((function(e){e.getLayers&&e.getLayers()&&e.getLayers().length?e.getLayers().forEach((function(e){e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable()})):(e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable())})),e.editControl=null);e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable()})),d(p(e),"cleanAndStop",(function(){e.removeAllInteractions(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),d(p(e),"clean",(function(){e.removeEditInteraction(),e.removeDrawInteraction(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),d(p(e),"convertFeaturesPolygonToPoint",(function(e,t){return"Circle"===t?e.map((function(e){var t=void 0!==e.center&&void 0!==e.radius?A(e.radius,{lat:e.center.y,lng:e.center.x},e.projection):e,r=t.center,n=t.projection,o=t.radius;return i(i({},e),{},{coordinates:r?[r.x,r.y]:e.coordinates,center:r||e.center,projection:n||e.projection,radius:void 0!==o?o:e.radius,type:"Point"})})):e})),d(p(e),"convertFeaturesToGeoJson",(function(t,r){var n;if(w(r.drawMethod))n=t.toGeoJSON().geometry;else{if("GeometryCollection"===r.drawMethod)return{type:"GeometryCollection",geometries:e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()})).map((function(e){return"FeatureCollection"===e.type?{type:"Multi"+e.features[0].geometry.type,coordinates:e.features.map((function(e){return e.geometry.coordinates}))}:{type:e.geometry.type,coordinates:e.geometry.coordinates}}))};var o=e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()}));n={type:r.drawMethod,coordinates:o.reduce((function(e,t){return e.concat([t.geometry.coordinates])}),[])}}return _({},t.toGeoJSON(),{geometry:n})})),e}return t=c,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=!(!this.props.messages&&!this.context.messages)&&this.context.messages.drawLocal;if(t&&(v.drawLocal=t),this.props.drawStatus!==e.drawStatus||"replace"===e.drawStatus||this.props.drawMethod!==e.drawMethod||this.props.features!==e.features)switch(e.drawStatus){case"create":this.addGeojsonLayer({features:e.features,projection:e.options&&e.options.featureProjection||"EPSG:4326",style:e.style&&e.style[e.drawMethod]||e.style});break;case"start":this.addDrawInteraction(e);break;case"drawOrEdit":this.addDrawOrEditInteractions(e);break;case"stop":this.removeAllInteractions();break;case"replace":this.replaceFeatures(e);break;case"clean":this.cleanAndStop();break;case"endDrawing":this.endDrawing(e);break;default:return}}},{key:"render",value:function(){return null}}])&&s(t.prototype,r),n&&s(t,n),c}(y.Component);d(N,"displayName","DrawSupport"),d(N,"propTypes",{map:m.object,drawOwner:m.string,drawStatus:m.string,drawMethod:m.string,options:m.object,features:m.array,onChangeDrawingStatus:m.func,onGeometryChanged:m.func,onDrawStopped:m.func,onEndDrawing:m.func,messages:m.object,style:m.object}),d(N,"defaultProps",{map:null,drawOwner:null,drawStatus:null,drawMethod:null,features:null,options:{stopAfterDrawing:!0},onChangeDrawingStatus:function(){},onGeometryChanged:function(){},onDrawStopped:function(){},onEndDrawing:function(){},style:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1,editing:{fill:1}}}),e.exports=N},"./MapStore2/web/client/components/map/leaflet/Feature.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1,t=this.originalStyle||this.options&&this.options.style||this.options||{};this.originalStyle=i({},t);var r=t.opacity,o=void 0===r?1:r,a=t.fillOpacity,s=void 0===a?1:a,l=t.color,u=t.fillColor,c=t.radius,p=t.weight,f={color:l,fillColor:u,radius:c,weight:p,opacity:o*e,fillOpacity:s*e};n.setStyle&&n.setStyle(f)}),this._layers.push(n)}}])&&s(t.prototype,r),n&&s(t,n),c}(y.Component);d(_,"propTypes",{msId:m.oneOfType([m.string,m.number]),type:m.string,styleName:m.string,properties:m.object,container:m.object,geometry:m.object,features:m.array,style:m.object,onClick:m.func,options:m.object}),e.exports=_},"./MapStore2/web/client/components/map/leaflet/Layer.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=r.padding,o=r.crs,i=r.maxZoom,a=r.duration,s=n&&f.point(n.left||0,n.top||0),l=n&&f.point(n.right||0,n.bottom||0),u=g(t,o,"EPSG:4326");e.map.fitBounds([[u[1],u[0]],[u[3],u[2]]],{paddingTopLeft:s,paddingBottomRight:l,maxZoom:i,duration:a,animate:0!==a&&void 0})}))})),p(u(e),"addLayerObservable",(function(t,r){!t.layer.layerId||t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&r&&(t.layer._ms2LoadingTileCount=0,t.layer.layerLoadingStream$=new L.Subject,t.layer.layerLoadStream$=new L.Subject,t.layer.layerErrorStream$=new L.Subject,t.layer.layerErrorStream$.bufferToggle(t.layer.layerLoadingStream$,(function(){return t.layer.layerLoadStream$})).subscribe({next:function(r){var n=t.layer._ms2LoadingTileCount||r&&r.length||0;r&&r.length>0&&e.props.onLayerError(r[0].target.layerId,n,r.length),t.layer._ms2LoadingTileCount=0}}))})),e}return t=c,(r=[{key:"UNSAFE_componentWillMount",value:function(){if(this.zoomOffset=0,this.props.mapOptions&&this.props.mapOptions.view&&this.props.mapOptions.view.resolutions&&this.props.mapOptions.view.resolutions.length>0){var e=f.CRS.EPSG3857.scale,t=this.props.mapOptions.view.resolutions[0]/w(0,23)[0];this.crs=v({},f.CRS.EPSG3857,{scale:function(r){return e.call(f.CRS.EPSG3857,r)/Math.pow(2,Math.round(Math.log2(t)))}}),this.zoomOffset=Math.round(Math.log2(t))}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.limits,r=void 0===t?{}:t,n=r.restrictedExtent&&r.crs&&g(r.restrictedExtent,r.crs,"EPSG:4326"),o=v({},this.props.interactive?{}:{dragging:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,boxZoom:!1,tap:!1,attributionControl:!1,maxBounds:n&&f.latLngBounds([[n[1],n[0]],[n[3],n[2]]]),maxBoundsViscosity:n&&1,minZoom:r&&r.minZoom,maxZoom:r&&r.maxZoom||23},this.props.mapOptions,this.crs?{crs:this.crs}:{}),i=f.map(this.getDocument().getElementById(this.props.id),v({zoomControl:!1},o)).setView([this.props.center.y,this.props.center.x],Math.round(this.props.zoom));this.map=i,this.props.zoomControl&&(this.mapZoomControl=f.control.zoom(),this.map.addControl(this.mapZoomControl)),this.attribution=f.control.attribution(),this.attribution.addTo(this.map);var a=this.getDocument();this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&(a.querySelector(this.props.mapOptions.attribution.container).appendChild(this.attribution.getContainer()),a.querySelector(".leaflet-control-container .leaflet-control-attribution")&&a.querySelector(".leaflet-control-container .leaflet-control-attribution").parentNode.removeChild(a.querySelector(".leaflet-control-container .leaflet-control-attribution"))),this.map.on("moveend",this.updateMapInfoState),this.map.on("singleclick",(function(t){e.props.onClick&&e.props.onClick({pixel:{x:t.containerPoint.x,y:t.containerPoint.y},latlng:{lat:t.latlng.lat,lng:t.latlng.lng,z:e.elevationLayer&&e.elevationLayer.getElevation(t.latlng,t.containerPoint)||void 0},rawPos:[t.latlng.lat,t.latlng.lng],modifiers:{alt:t.originalEvent.altKey,ctrl:t.originalEvent.ctrlKey,metaKey:t.originalEvent.metaKey,shift:t.originalEvent.shiftKey}})}));var s=C(this.mouseMoveEvent,100);this.map.on("dragstart",(function(){e.map.off("mousemove",s)})),this.map.on("dragend",(function(){e.map.on("mousemove",s)})),this.map.on("mousemove",s),this.map.on("contextmenu",(function(){e.props.onRightClick&&e.props.onRightClick(event.containerPoint)})),this.map.on("mouseout",(function(){setTimeout((function(){return e.props.onMouseOut()}),150)})),this.updateMapInfoState(),this.setMousePointer(this.props.mousePointer),this.forceUpdate(),this.map.on("layeradd",(function(t){if(t.layer._ms2Added){var r=t.layer.layerLoadingStream$&&t.layer.layerLoadingStream$.isStopped;e.addLayerObservable(t,r)}else t.layer._ms2Added=!0,t.layer.getElevation&&(e.elevationLayer=t.layer),t.layer.layerId&&(t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&(e.addLayerObservable(t,!0),t.layer.options&&t.layer.options.hideLoading||(e.props.onLayerLoading(t.layer.layerId),t.layer.layerLoadingStream$.next()),t.layer.on("loading",(function(r){e.props.onLayerLoading(r.target.layerId),t.layer.layerLoadingStream$.next()})),t.layer.on("load",(function(r){e.props.onLayerLoad(r.target.layerId),t.layer.layerLoadStream$.next()})),t.layer.on("tileloadstart ",(function(){t.layer._ms2LoadingTileCount++})),(t.layer.options&&!t.layer.options.hideErrors||!t.layer.options)&&t.layer.on("tileerror",(function(e){t.layer.layerErrorStream$.next(e)})),t.layer.on("loaderror",(function(t){e.props.onLayerError(t.target.layerId)}))))})),this.map.on("layerremove",(function(e){e.layer.layerLoadingStream$&&(e.layer.layerLoadingStream$.complete(),e.layer.layerLoadStream$.complete(),e.layer.layerErrorStream$.complete())})),this.drawControl=null,this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),this.map&&e.mapStateSource!==this.props.id&&this._updateMapPositionFromNewProps(e),e.zoomControl!==this.props.zoomControl&&(e.zoomControl?(this.mapZoomControl=f.control.zoom(),this.map.addControl(this.mapZoomControl)):this.mapZoomControl&&!e.zoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0)),e.resize!==this.props.resize&&setTimeout((function(){t.map&&t.map.invalidateSize(!1)}),0),this.props.limits!==e.limits){var r=e.limits,n=void 0===r?{}:r,o=this.props.limits;if(n.restrictedExtent!==(o&&o.restrictedExtent)){var i=n.restrictedExtent&&n.crs&&g(n.restrictedExtent,n.crs,"EPSG:4326");this.map.setMaxBounds(n.restrictedExtent&&f.latLngBounds([[i[1],i[0]],[i[3],i[2]]]))}n.minZoom!==(o&&o.minZoom)&&this.map.setMinZoom(n.minZoom)}return!1}},{key:"componentWillUnmount",value:function(){var e=this.getDocument(),t=this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&e.querySelector(this.props.mapOptions.attribution.container);if(t&&this.attribution.getContainer()&&t.querySelector(".leaflet-control-attribution"))try{t.removeChild(this.attribution.getContainer())}catch(e){}this.mapZoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0),this.map.off(),this.map.remove(),this.map=void 0}},{key:"render",value:function(){var e=this,t=this.map,r=this.props.projection,n=t?m.Children.map(this.props.children,(function(n){return n?m.cloneElement(n,{map:t,projection:r,zoomOffset:e.zoomOffset,onCreationError:e.props.onCreationError,onClick:e.props.onClick}):null})):null;return m.createElement("div",{id:this.props.id,style:this.props.style},n)}}])&&i(t.prototype,r),n&&i(t,n),c}(m.Component);p(T,"propTypes",{id:d.string,document:d.object,center:y.PropTypes.center,zoom:d.number.isRequired,mapStateSource:y.PropTypes.mapStateSource,style:d.object,projection:d.string,onMapViewChanges:d.func,onClick:d.func,onRightClick:d.func,mapOptions:d.object,limits:d.object,zoomControl:d.bool,mousePointer:d.string,onMouseMove:d.func,onLayerLoading:d.func,onLayerLoad:d.func,onLayerError:d.func,resize:d.number,measurement:d.object,changeMeasurementState:d.func,registerHooks:d.bool,interactive:d.bool,resolutions:d.array,hookRegister:d.object,onCreationError:d.func,onMouseOut:d.func}),p(T,"defaultProps",{id:"map",onMapViewChanges:function(){},onCreationError:function(){},onClick:null,onMouseMove:function(){},zoomControl:!0,mapOptions:{zoomAnimation:!0,attributionControl:!1},projection:"EPSG:3857",center:{x:13,y:45,crs:"EPSG:4326"},zoom:5,onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},resize:0,registerHooks:!0,hookRegister:{registerHook:E},style:{},interactive:!0,resolutions:w(0,23),onMouseOut:function(){}}),e.exports=T},"./MapStore2/web/client/components/map/leaflet/MeasurementSupport.jsx":function(e,t,r){function n(e){return(n="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 o(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 i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?v.GeometryUtil.formattedNumber(P(e,r,n),o[n])+" "+a:v.GeometryUtil.formattedNumber(e,o[r])+" "+i};var C=v.GeometryUtil.readableDistance;v.GeometryUtil.readableDistance=function(e,t,r,n,o,i){if(!i)return C.apply(null,arguments);if("Bearing"===i.geomType)return i.bearing;var a=v.Util.extend({},L,o),s=i.uom.length,l=s.unit,u=s.label,c=v.GeometryUtil.formattedNumber(P(e,"m",l),a[l])+" "+u;return i.useTreshold&&(t&&(c=v.getMeasureWithTreshold(e,1e3,"m","km",a,"m","km")),"mi"===l&&(c=v.getMeasureWithTreshold(P(e,"m","yd"),1760,"yd","mi",a,"yd","mi"))),c};var T=v.GeometryUtil.readableArea;v.GeometryUtil.readableArea=function(e,t,r,n){if(!n)return T.apply(null,arguments);var o=n.uom.area,i=o.unit,a=o.label,s=v.Util.extend({},L,r),l=v.GeometryUtil.formattedNumber(P(e,"sqm",i),s[i])+" "+a;return n.useTreshold&&(t&&(l=v.getMeasureWithTreshold(e,1e6,"sqm","sqkm",s,"m²","km²")),"sqmi"===i&&(l=v.getMeasureWithTreshold(P(e,"sqm","sqyd"),3097600,"sqyd","sqmi",s,"yd²","mi²"))),l};var I=v.Draw.Polygon.prototype._getMeasurementString;v.Draw.Polygon.prototype._getMeasurementString=function(){if(!this.options.uom)return I.apply(this,arguments);var e=this._area,t="";if(!e&&!this.options.showLength)return null;if(this.options.showLength&&(t=v.Draw.Polyline.prototype._getMeasurementString.call(this)),e){var r={uom:this.options.uom,useTreshold:this.options.useTreshold};t+=this.options.showLength?"
":""+v.GeometryUtil.readableArea(e,this.options.metric,this.options.precision,r)}return t};var A=v.Draw.Polyline.prototype._getMeasurementString;v.Draw.Polyline.prototype._getMeasurementString=function(){if(!this.options.uom)return A.apply(this,arguments);var e,t=this._currentLatLng,r=this._markers[this._markers.length-1].getLatLng();e=v.GeometryUtil.isVersion07x()?r&&t&&t.distanceTo?this._measurementRunningTotal+t.distanceTo(r)*(this.options.factor||1):this._measurementRunningTotal||0:r&&t?this._measurementRunningTotal+this._map.distance(t,r)*(this.options.factor||1):this._measurementRunningTotal||0;var n={uom:this.options.uom,useTreshold:this.options.useTreshold,geomType:this.options.geomType,bearing:this.options.bearing?E(this.options.bearing,this.options.trueBearing):0};return v.GeometryUtil.readableDistance(e,this.options.metric,this.options.feet,this.options.nautic,this.options.precision,n)};var N=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&&c(e,t)}(s,e);var t,r,n,o=p(s);function s(){var e;l(this,s);for(var t=arguments.length,r=new Array(t),n=0;n=2?setTimeout((function(){e.drawControl._markers=O(e.drawControl._markers,0,2),e.drawControl._poly._latlngs=O(e.drawControl._poly._latlngs,0,2),e.drawControl._poly._originalPoints=O(e.drawControl._poly._originalPoints,0,2),e.updateMeasurementResults(),e.drawControl._finishShape(),e.drawControl.disable()}),100):e.updateMeasurementResults()})),y(d(e),"addArcsToMap",(function(t){e.removeLastLayer();var r=t.map((function(e){return b({},e,{geometry:b({},e.geometry,{coordinates:x(e.geometry.coordinates)})})}));e.arcLayer=v.geoJson(r,{style:{color:"#ffcc33",opacity:1,weight:1,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}}),e.props.map.addLayer(e.arcLayer),r&&r.length>0&&e.arcLayer.addData(r)})),y(d(e),"updateMeasurementResults",(function(){if(e.drawing&&e.drawControl){var t=0,r=0,n=0,o=e.drawControl._currentLatLng;if("LineString"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>1){var i=e.drawControl._markers.reduce((function(e,t){var r=t.getLatLng(),n=r.lng,o=r.lat;return[].concat(a(e),[[n,o]])}),[]);t=_(i,e.props.measurement.lengthFormula)}else if("Polygon"===e.props.measurement.geomType&&e.drawControl._poly){var s=[].concat(a(e.drawControl._poly.getLatLngs()),[o]);r=v.GeometryUtil.geodesicArea(s)}else"Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0&&(n=e.calculateBearing());var l=b({},e.props.measurement,{point:null,len:t,area:r,bearing:n});e.props.changeMeasurementState(l)}})),y(d(e),"restartDrawing",(function(){e.props.map.off("click",e.restartDrawing,d(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable(),e.props.map.removeLayer(e.lastLayer),e.drawControl.enable(),e.drawing=!0})),y(d(e),"addDrawInteraction",(function(t){if(e.removeDrawInteraction(),e.props.map.on("draw:created",e.onDrawCreated,d(e)),e.props.map.on("draw:drawstart",e.onDrawStart,d(e)),e.props.map.on("draw:drawvertex",e.onDrawVertex,d(e)),e.props.map.on("mousemove",e.updateBearing,d(e)),e.props.updateOnMouseMove&&e.props.map.on("mousemove",e.updateMeasurementResults,d(e)),"Point"===t.measurement.geomType)e.drawControl=new v.Draw.Marker(e.props.map,{repeatMode:!1});else if("LineString"===t.measurement.geomType||"Bearing"===t.measurement.geomType){var r=e.uomLengthOptions(t);e.drawControl=new v.Draw.Polyline(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2},showLength:!0,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},r),{},{repeatMode:!1,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),trueBearing:t.measurement.trueBearing}))}else if("Polygon"===t.measurement.geomType){var n=e.uomAreaOptions(t);e.drawControl=new v.Draw.Polygon(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2,fill:"rgba(255, 255, 255, 0.2)"},showArea:!0,allowIntersection:!1,showLength:!1,repeatMode:!1,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},n),{},{icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}))}e.drawControl.enable()})),y(d(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.drawControl.disable(),e.drawControl=null,e.removeLastLayer(),e.removeArcLayer(),e.props.map.off("draw:created",e.onDrawCreated,d(e)),e.props.map.off("draw:drawstart",e.onDrawStart,d(e)),e.props.map.off("draw:drawvertex",e.onDrawVertex,d(e)),e.props.map.off("mousemove",e.updateBearing,d(e)),e.props.map.off("click",e.restartDrawing,d(e)),e.props.updateOnMouseMove&&e.props.map.off("mousemove",e.updateMeasurementResults,d(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),y(d(e),"removeLastLayer",(function(){e.lastLayer&&e.props.map.removeLayer(e.lastLayer)})),y(d(e),"removeArcLayer",(function(){e.arcLayer&&e.props.map.removeLayer(e.arcLayer)})),y(d(e),"uomLengthOptions",(function(e){var t=e.uom.length.unit;return{metric:"m"===t||"km"===t,nautic:"nm"===t,feet:"ft"===t}})),y(d(e),"uomAreaOptions",(function(e){var t=e.uom.area.unit;return{metric:"sqm"===t||"sqkm"===t,nautic:"sqnm"===t,feet:"sqft"===t}})),y(d(e),"calculateBearing",(function(){var t,r=e.drawControl._currentLatLng,n=e.drawControl._markers,o=[n[0].getLatLng().lng,n[0].getLatLng().lat];return 1===n.length?t=[r.lng,r.lat]:2===n.length&&(t=[n[1].getLatLng().lng,n[1].getLatLng().lat]),o=S(o,"EPSG:4326",e.props.projection),t=S(t,"EPSG:4326",e.props.projection),j(o,t,e.props.projection)})),y(d(e),"updateBearing",(function(){if("Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0){var t=e.props.measurement&&e.props.measurement.trueBearing;e.drawControl.setOptions({bearing:e.calculateBearing(),trueBearing:t})}})),e}return t=s,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if((e&&e.uom&&e.uom.length&&e.uom.length.unit)!==(this.props&&this.props.uom&&this.props.uom.length&&this.props.uom.length.unit)&&this.drawControl){var t=this.uomLengthOptions(e);this.drawControl.setOptions(i(i({},t),{},{uom:e.uom}))}if((e&&e.uom&&e.uom.area&&e.uom.area.unit)!==(this.props&&this.props.uom&&this.props.uom.area&&this.props.uom.area.unit)&&this.drawControl){var r=this.uomAreaOptions(e);this.drawControl.setOptions(i(i({},r),{},{uom:e.uom}))}(e.measurement.geomType&&e.measurement.geomType!==this.props.measurement.geomType||e.measurement.geomType&&this.props.measurement.geomType&&(e.measurement.lineMeasureEnabled||e.measurement.areaMeasureEnabled||e.measurement.bearingMeasureEnabled)&&!this.props.enabled&&e.enabled)&&this.addDrawInteraction(e),e.measurement.geomType||this.removeDrawInteraction()}},{key:"render",value:function(){var e=this.props.messages||!!this.context.messages&&this.context.messages.drawLocal;return e&&(v.drawLocal=e),null}}])&&u(t.prototype,r),n&&u(t,n),s}(g.Component);y(N,"displayName","MeasurementSupport"),y(N,"propTypes",{map:h.object,metric:h.bool,feet:h.bool,nautic:h.bool,enabled:h.bool,useTreshold:h.bool,projection:h.string,measurement:h.object,changeMeasurementState:h.func,messages:h.object,uom:h.object,updateOnMouseMove:h.bool}),y(N,"contextTypes",{messages:h.object}),y(N,"defaultProps",{uom:{length:{unit:"m",label:"m"},area:{unit:"sqm",label:"m²"}},updateOnMouseMove:!1,metric:!0,nautic:!1,useTreshold:!1,feet:!1}),e.exports=N},"./MapStore2/web/client/components/map/leaflet/Overview.jsx":function(e,t,r){function n(e){return(n="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r1&&(this.overview=new d(m.layerGroup(t),e))}this.props.map&&this.overview&&this.overview.addTo(this.props.map)}},{key:"render",value:function(){return null}}])&&i(t.prototype,r),n&&i(t,n),u}(f.Component);c(b,"displayName","Overview"),c(b,"propTypes",{map:p.object,overviewOpt:p.object,layers:p.array}),c(b,"defaultProps",{id:"overview",overviewOpt:{},layers:[{type:"osm",options:{}}]}),e.exports=b},"./MapStore2/web/client/components/map/leaflet/PopupSupport.jsx":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return P}));var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/react-dom/index.js"),a=r.n(i),s=r("./node_modules/prop-types/index.js"),l=r.n(s),u=r("./MapStore2/web/client/libs/leaflet.js"),c=r.n(u),p=r("./MapStore2/node_modules/lodash/isString.js"),f=r.n(p),d=r("./MapStore2/web/client/utils/PopupUtils.js"),m=r("./MapStore2/web/client/components/map/popups/index.js");function y(e){return(y="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 h(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;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.target,n=(r=void 0===r?{}:r).options,o=(n=void 0===n?{}:n).id;o&&e.props.onPopupClose(o)})),x(j(e),"preparePopups",(function(){var t=e.props,r=t.popups,n=void 0===r?[]:r,o=t.map,i=e.props.map.getSize();return(e._popups||[]).forEach((function(t){var r=t.popup;r.off("remove",e.popupClose),r&&e.props.map.removeLayer(r)})),e._popups=n.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=.9*i.x,n=.9*i.y,a=t.id,s=t.position.coordinates,l=t.component,u=t.content,p=t.className,f=t.maxWidth,m=void 0===f?r:f,y=t.maxHeight,h=void 0===y?n:y,b=t.autoPan,v=void 0===b||b,O=t.offset,w=void 0===O?[0,7]:O,S=m>r?r:m,j=h>n?n:h,_=d.b(a,p);_.setAttribute("style","max-width: ".concat(S,"px; max-height: ").concat(j,"px")),d.a(_,u);var x=c.a.popup({id:a,autoClose:!1,closeOnClick:!1,autoPan:v,autoPanPadding:c.a.point(70,70),maxWidth:S,maxHeight:j,className:"ms-leaflet-popup",offset:w}).setContent(_);return x.once("remove",e.popupClose),l&&M(x,_),x.setLatLng(s),o.addLayer(x),g({popup:x},t)})),e._popups})),x(j(e),"stopPropagationOnMouseMove",(function(e){e.stopPropagation()})),x(j(e),"fireMouseOutEvent",(function(){e.props.map.fireEvent("mouseout")})),e}return t=s,(r=[{key:"componentWillMount",value:function(){this.props.map&&(this.props.map.getContainer().querySelector(".leaflet-popup-pane").addEventListener("mousemove",this.stopPropagationOnMouseMove),this.props.map.getContainer().querySelector(".leaflet-popup-pane").addEventListener("mouseenter",this.fireMouseOutEvent))}},{key:"componentDidMount",value:function(){this.props.map&&this.props.map.on("resize",this.updatePopup)}},{key:"shouldComponentUpdate",value:function(e){return e.popups!==this.props.popups}},{key:"componentWillUnmount",value:function(){var e=this;(this._popups||[]).forEach((function(t){var r,n,o=t.popup;o.off("remove",e.popupClose),o&&(null===(r=e.props.map)||void 0===r||null===(n=r.removeLayer)||void 0===n||n.call(r,o))})),this.props.map&&(this.props.map.off("resize",this.updatePopup),this.props.map.getContainer().removeEventListener("mousemove",this.stopPropagationOnMouseMove),this.props.map.getContainer().removeEventListener("mouseenter",this.fireMouseOutEvent))}},{key:"renderPopups",value:function(){return this.preparePopups().filter((function(e){return!!e.component})).map((function(e){var t=e.popup,r=e.props,n=void 0===r?{}:r,i=e.component,s=e.id,l=t.getContent(),u=f()(i)&&m.default[i]||i,c=o.a.isValidElement(u)&&u||o.a.createElement(u,n);return l?a.a.createPortal(c,l,s):null}))}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderPopups())}}])&&v(t.prototype,r),n&&v(t,n),s}(o.a.Component);x(P,"propTypes",{map:l.a.object,popups:l.a.arrayOf(l.a.object),onPopupClose:l.a.func}),x(P,"defaultProps",{popups:[],onPopupClose:function(){}})},"./MapStore2/web/client/components/map/leaflet/ScaleBar.jsx":function(e,t,r){function n(e){return(n="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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;rOpenStreetMap contributors',zoomOffset:e.zoomOffset||0,maxNativeZoom:e.maxNativeZoom||19,maxZoom:e.maxZoom||23})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r("./MapStore2/web/client/libs/leaflet.js");n.registerType("tms",(function(e){return o.tileLayer("".concat(e.tileMapUrl,"/{z}/{x}/{y}.").concat(e.extension),{hideErrors:e.hideErrors||!0,tms:!0})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js":function(e,t,r){function n(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 o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style&&e.style[0]||e.style;return b(t)},O=function(e,t){var r=v(t);e.setStyle(r),e.options.style=r,e.styleName=t.styleName},w=function e(t,r){t.eachLayer&&t.eachLayer((function(t){t.setOpacity&&t.setOpacity(r),e(t,r)}))},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=v(e),o=function(t,n){return"marker"===e.styleName?i.a.marker(n,r):i.a.circleMarker(n,r)},a=new i.a.GeoJSON(t,{pointToLayer:o,style:r});return a.setOpacity=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=y({},a.options.style||{}),r=t.fillOpacity,n=void 0===r?1:r,o=t.opacity,i=void 0===o?1:o,s=y(y({},t),{},{opacity:i*e,fillOpacity:n*e});a.setStyle(b(s)),w(a,e)},a.on("layeradd",(function(){O(a,e),a.setOpacity(Object(n.isNil)(a.opacity)?e.opacity:a.opacity)})),a};u.a.registerType("wfs",{create:function(e){var t=S(e);return g(t,e),t.opacity=Object(n.isNil)(e.opacity)?1:e.opacity,t},update:function(e,t,r){if(t.opacity!==r.opacity&&(e.opacity=t.opacity),Object(f.needsReload)(r,t)&&g(e,t),Object(n.isEqual)(t.style,r.style)||O(e,t),t.styleName!==r.styleName){var o=e.toGeoJSON().features;return S(t,o)}return null},render:function(){return null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js":function(e,t,r){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}var o=r("./node_modules/react/index.js"),i=r("./MapStore2/web/client/components/I18N/Message.jsx").default,a=r("./MapStore2/web/client/utils/leaflet/Layers.js"),s=r("./MapStore2/web/client/utils/VendorParamsUtils.js").optionsToVendorParams,l=r("./MapStore2/web/client/utils/leaflet/WMSUtils.js"),u=r("./MapStore2/web/client/libs/leaflet.js"),c=r("./node_modules/object-assign/index.js"),p=r("./MapStore2/node_modules/lodash/lodash.js"),f=p.isArray,d=p.isNil,m=r("./MapStore2/web/client/utils/SecurityUtils.js"),y=m.addAuthenticationToSLD,h=m.addAuthenticationParameter,g=r("./MapStore2/web/client/utils/ElevationUtils.js"),b=g.loadTile,v=g.getElevation,O=r("./MapStore2/web/client/utils/LayersUtils.js").creditsToAttribution,w=r("./MapStore2/web/client/utils/VectorTileUtils.js").isVectorFormat;r("./node_modules/leaflet.nontiledlayer/dist/NonTiledLayer-src.js"),u.NonTiledLayer.WMSCustom=u.NonTiledLayer.WMS.extend({initialize:function(e,t){this._wmsUrl=e;var r=u.extend({},this.defaultWmsParams);for(var n in t)this.options.hasOwnProperty(n)||"CRS"===n.toUpperCase()||"maxNativeZoom"===n||(r[n]=t[n]);this.wmsParams=r,u.setOptions(this,t)},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),u.nonTiledLayer.wmsCustom=function(e,t){return new u.NonTiledLayer.WMSCustom(e,t)},u.TileLayer.MultipleUrlWMS=u.TileLayer.WMS.extend({initialize:function(e,t){this._url=e[0],this._urls=e,this._urlsIndex=0;var r=u.extend({},this.defaultWmsParams),n=t.tileSize||this.options.tileSize;for(var o in t.detectRetina&&u.Browser.retina?r.width=r.height=2*n:r.width=r.height=n,t)this.options.hasOwnProperty(o)||"CRS"===o.toUpperCase()||"maxNativeZoom"===o||(r[o]=t[o]);this.wmsParams=r,u.setOptions(this,t)},getTileUrl:function(e){var t=this._map,r=this.options.tileSize,n=e.multiplyBy(r),o=n.add([r,r]),i=this._crs.project(t.unproject(n,e.z)),a=this._crs.project(t.unproject(o,e.z)),s=this._wmsVersion>=1.3&&this._crs===u.CRS.EPSG4326?[a.y,i.x,i.y,a.x].join(","):[i.x,a.y,a.x,i.y].join(",");this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var l=u.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e)});return l+u.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+s},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),u.tileLayer.multipleUrlWMS=function(e,t){return new u.TileLayer.MultipleUrlWMS(e,t)},u.TileLayer.ElevationWMS=u.TileLayer.MultipleUrlWMS.extend({initialize:function(e,t,r){this._tiles={},this._nodata=r,u.TileLayer.MultipleUrlWMS.prototype.initialize.apply(this,arguments)},_addTile:function(e){var t=this.getTileUrl(e);b(t,e,this._tileCoordsToKey(e))},getElevation:function(e,t){try{var r=this._getTileFromCoords(e),n=v(this._tileCoordsToKey(r),this._getTileRelativePixel(r,t),this.getTileSize().x,this._nodata);return n.available?n.value:o.createElement(i,{msgId:n.message})}catch(e){return o.createElement(i,{msgId:"elevationLoadingError"})}},_getTileFromCoords:function(e){var t=this._map.project(e).divideBy(256).floor();return c(t,{z:this._tileZoom})},_getTileRelativePixel:function(e,t){var r=Math.floor(t.x-this._getTilePos(e).x-this._map._getMapPanePos().x),n=Math.min(this.getTileSize().x-1,Math.floor(t.y-this._getTilePos(e).y-this._map._getMapPanePos().y));return new u.Point(r,n)},_removeTile:function(){},_abortLoading:function(){}}),u.tileLayer.elevationWMS=function(e,t,r){return new u.TileLayer.ElevationWMS(e,t,r)};var S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return d(e[r])?t:c(t,n({},r,e[r]))}),{})};function j(e){var t=void 0!==e.opacity?e.opacity:1,r=s(e),n=c({},e.baseParams,{attribution:e.credits&&O(e.credits),layers:e.name,styles:e.style||"",format:(w(e.format)?"image/png":e.format)||"image/png",transparent:void 0===e.transparent||e.transparent,tiled:void 0===e.tiled||e.tiled,opacity:t,zIndex:e.zIndex,version:e.version||"1.3.0",tileSize:e.tileSize||256,maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},c(e._v_?{_v_:e._v_}:{},r||{}));return y(n,e)}function _(e){return e.map((function(e){return e.split("?")[0]}))}a.registerType("wms",{create:function(e){var t=_(f(e.url)?e.url:[e.url]),r=S(j(e)||{});return t.forEach((function(t){return h(t,r,e.securityToken)})),e.useForElevation?u.tileLayer.elevationWMS(t,r,e.nodata||-9999):e.singleTile?u.nonTiledLayer.wmsCustom(t[0],r):u.tileLayer.multipleUrlWMS(t,r)},update:function(e,t,r){if(r.singleTile!==t.singleTile||r.tileSize!==t.tileSize||r.securityToken!==t.securityToken&&t.visibility){var o=_(f(t.url)?t.url:[t.url]),i=j(t)||{};return o.forEach((function(e){return h(e,i,t.securityToken)})),t.singleTile?u.nonTiledLayer.wmsCustom(o[0],i):u.tileLayer.multipleUrlWMS(o,i)}var a=c({},l.filterWMSParamOptions(j(r)),y(r.params||{},r)),s=c({},l.filterWMSParamOptions(j(t)),y(t.params||{},t)),p=Object.keys(s).filter((function(e){return s[e]!==a[e]})),d=Object.keys(a).filter((function(e){return a[e]!==s[e]})),m={};return d.length>0&&e.removeParams(d,p.length>0),p.length>0&&(m=p.reduce((function(e,t){return c({},e,n({},t,s[t]))}),m),e.setParams(S(c(m,m.params,y(t.params||{},t))))),null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r("./MapStore2/web/client/libs/leaflet.js"),s=r.n(a),l=r("./node_modules/object-assign/index.js"),u=r.n(l),c=r("./MapStore2/web/client/utils/SecurityUtils.js"),p=r("./MapStore2/web/client/utils/WMTSUtils.js"),f=r("./MapStore2/web/client/utils/leaflet/WMTS.js"),d=r.n(f),m=r("./MapStore2/node_modules/lodash/lodash.js"),y=r("./MapStore2/web/client/utils/VectorTileUtils.js");s.a.tileLayer.wmts=function(e,t,r){return new d.a(e,t,r)};var h=function(e){var t=function(e){return e.map((function(e){return e.split("?")[0]}))}(Object(m.isArray)(e.url)?e.url:[e.url]),r=function(e){var t=Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),r=p.getTileMatrixSet(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds);return u()({requestEncoding:e.requestEncoding,layer:e.name,style:e.style||"",format:(Object(y.isVectorFormat)(e.format)?"image/png":e.format)||"image/png",tileMatrixSet:r,version:e.version||"1.0.0",tileSize:e.tileSize||256,CRS:Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},e.params||{})}(e)||{};t.forEach((function(t){return Object(c.addAuthenticationParameter)(t,r,e.securityToken)}));var n=Object(i.normalizeSRS)(e.srs||"EPSG:3857",e.allowedSRS),o=p.getTileMatrix(e,n),a=o.tileMatrixSet,l=o.matrixIds;return s.a.tileLayer.wmts(t,r,{tileMatrixPrefix:e.tileMatrixPrefix||r.tileMatrixSet+":"||n+":",originY:e.originY||20037508.3428,originX:e.originX||-20037508.3428,ignoreErrors:e.ignoreErrors||!1,matrixIds:l,matrixSet:a})};o.a.registerType("wmts",{create:h,update:function(e,t,r){return r.securityToken!==t.securityToken||r.format!==t.format?h(t):null}})},"./MapStore2/web/client/components/map/leaflet/plugins/index.js":function(e,t,r){e.exports={BingLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/BingLayer.js"),Commons:r("./MapStore2/web/client/components/map/leaflet/plugins/Commons.js"),GraticuleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GraticuleLayer.js"),GoogleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GoogleLayer.js"),MapQuest:r("./MapStore2/web/client/components/map/leaflet/plugins/MapQuest.js"),OSMLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/OSMLayer.js"),TMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js"),TileProviderLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js"),WFSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WFSLayer.jsx").default,WMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js"),WMTSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js"),VectorLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/VectorLayer.jsx")}},"./MapStore2/web/client/components/map/openlayers/img/marker-icon.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaIxErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/map/plugins/leaflet.js":function(e,t,r){"use strict";r.r(t),t.default=function(){return r("./MapStore2/web/client/components/map/leaflet/plugins/index.js"),{Map:r("./MapStore2/web/client/components/map/leaflet/Map.jsx"),Layer:r("./MapStore2/web/client/components/map/leaflet/Layer.jsx"),Feature:r("./MapStore2/web/client/components/map/leaflet/Feature.jsx"),Locate:r("./MapStore2/web/client/components/map/leaflet/Locate.jsx").default,MeasurementSupport:r("./MapStore2/web/client/components/map/leaflet/MeasurementSupport.jsx"),Overview:r("./MapStore2/web/client/components/map/leaflet/Overview.jsx"),ScaleBar:r("./MapStore2/web/client/components/map/leaflet/ScaleBar.jsx"),DrawSupport:r("./MapStore2/web/client/components/map/leaflet/DrawSupport.jsx"),PopupSupport:r("./MapStore2/web/client/components/map/leaflet/PopupSupport.jsx").default}}},"./MapStore2/web/client/components/map/popups/index.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),a=r("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),s=r("./node_modules/recompose/es/Recompose.js"),l=r("./node_modules/react-redux/es/index.js"),u=r("./node_modules/reselect/es/index.js"),c=r("./MapStore2/web/client/selectors/mapInfo.js"),p=r("./MapStore2/web/client/actions/mapInfo.js"),f=r("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),d=r("./MapStore2/node_modules/lodash/lodash.js"),m=r("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),y=r("./MapStore2/web/client/selectors/map.js"),h=Object(s.compose)(Object(l.connect)(Object(u.a)(c.j,(function(e){return{index:e}})),{setIndex:p.D}),Object(s.defaultProps)({index:0,responses:[]})),g=Object(u.a)([c.t,c.w,c.s,c.h,c.u,y.f,c.l],(function(e,t,r,n,o,i,a){return{responses:e,validResponses:t,requests:r,format:n,showEmptyMessageGFI:o,missingResponses:(r||[]).length-(e||[]).length,renderEmpty:i,loaded:a}})),b=Object(s.compose)(Object(l.connect)(g),Object(s.defaultProps)({responses:[],container:function(e){var t=e.index,r=e.children;return o.a.createElement(o.a.Fragment,null,Object(d.isArray)(r)&&r[t]||r)},header:m.a}),h,a.a,a.b,Object(i.a)((function(e){var t=e.loaded;return Object(d.isUndefined)(t)})))(f.a);r.d(t,"IDENTIFY_POPUP",(function(){return v}));var v="identify";t.default={identify:b}},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i);function s(e){return(s="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;r100?"full":e>40?"medium":"small"},p=function(e){var t=e.size,r=e.style,n=void 0===r?{}:r,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},n)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};p.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=p},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/react-container-dimensions/lib/index.js"),a=r.n(i),s=r("./MapStore2/web/client/components/misc/Loader.jsx");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 u(e){for(var t=1;t0?Math.min(i,l):i),f=r||(l>0?Math.min(i,l):i),d=Math.min(p,f);return o.a.createElement(s.a,{size:d,style:u({padding:d/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/recompose/es/Recompose.js"),a=r("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o.a.createElement(r,s({},t,n))}}))}},"./MapStore2/web/client/libs/leaflet.js":function(e,t){e.exports=window.L},"./MapStore2/web/client/libs/mapquest.js":function(e,t){e.exports=window.MQ},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,r){e.exports=r.p+"symbolMissing.svg"},"./MapStore2/web/client/selectors/context.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return h}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/web/client/selectors/localConfig.js"),i=r("./MapStore2/node_modules/lodash/lodash.js"),a=r("./MapStore2/web/client/utils/ConfigUtils.js"),s=r("./MapStore2/web/client/utils/PluginsUtils.js");function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(l(e),["Context"])}})),d=function(e){return f(e)},m=Object(n.a)((function(e){return Object(i.get)(c(e),"plugins")}),(function(e){return Object(i.get)(c(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(l(Object(i.get)(e,"desktop",[])),l(t.filter((function(e){return e.active}))))}})),y=(Object(n.a)(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(i.get)(e,"context.loading")}(e)?d(e):m(e)||f(e)}),h=function(e){return Object(n.a)(c,y,(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(i.findIndex)(Object(i.get)(r,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(n.a)((function(e){return Object(s.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},i=function(e){return(o(e)||{}).monitorState},a=function(e){return function(t){return Object(n.get)(function(e){return Object(n.get)(o(e),"plugins")}(t),e)}},s=function(e){return Object(n.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.locale&&e.locale.current||"en-US"},a=function(e){return e.locale&&e.locale.messages||{}},s=Object(n.a)([i],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,r){"use strict";r.d(t,"k",(function(){return a})),r.d(t,"n",(function(){return s})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return c})),r.d(t,"m",(function(){return p})),r.d(t,"c",(function(){return d})),r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return y})),r.d(t,"l",(function(){return h})),r.d(t,"o",(function(){return g})),r.d(t,"j",(function(){return b})),r.d(t,"d",(function(){return O})),r.d(t,"e",(function(){return w})),r.d(t,"f",(function(){return S}));var n=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=r("./node_modules/reselect/es/index.js"),i=r("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},s=Object(o.a)([a],(function(e){return e&&e.projection})),l=function(e){return Object(i.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(i.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(i.get)(a(e),"mapId")&&parseInt(Object(i.get)(a(e),"mapId"),10)||null}(e)},u=function(e){return Object(i.get)(a(e),"info")},c=function(e){var t=Object(i.get)(u(e),"canEdit");return void 0===t?Object(i.get)(e,"context.resource.canEdit"):t},p=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},f=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},d=function(e){return f(e).restrictedExtent},m=function(e){return f(e).crs},y=function(e){var t=f(e),r=s(e);return r&&Object(i.get)(t,'projectionsConstraints["'.concat(r,'"].minZoom'))||Object(i.get)(t,"minZoom")},h=function(e){return Object(i.get)(function(e){return Object(i.get)(a(e),"limits")}(e),"minZoom")},g=Object(o.a)([function(e){return Object(i.get)(a(e),"resolutions")},s],(function(e,t){if(e&&t){var r=n.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===r?111194.87428468118:1)}))}return[]})),b=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},v=function(e){return Object(i.get)(a(e),"eventListeners.mousemove",[])},O=function(e){return!!v(e).length},w=function(e){return v(e).includes("mouseposition")},S=function(e){return v(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,r){"use strict";r.d(t,"n",(function(){return m})),r.d(t,"m",(function(){return y})),r.d(t,"h",(function(){return h})),r.d(t,"u",(function(){return g})),r.d(t,"p",(function(){return b})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return O})),r.d(t,"o",(function(){return w})),r.d(t,"r",(function(){return S})),r.d(t,"g",(function(){return j})),r.d(t,"v",(function(){return _})),r.d(t,"i",(function(){return x})),r.d(t,"k",(function(){return M})),r.d(t,"j",(function(){return P})),r.d(t,"t",(function(){return E})),r.d(t,"s",(function(){return L})),r.d(t,"l",(function(){return C})),r.d(t,"w",(function(){return T})),r.d(t,"f",(function(){return A})),r.d(t,"e",(function(){return N})),r.d(t,"c",(function(){return k})),r.d(t,"d",(function(){return D})),r.d(t,"q",(function(){return G}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/reselect/es/index.js"),i=r("./MapStore2/web/client/selectors/map.js"),a=r("./MapStore2/web/client/selectors/context.js"),s=r("./MapStore2/web/client/selectors/locale.js"),l=r("./MapStore2/web/client/utils/MapInfoUtils.js"),u=r("./MapStore2/web/client/selectors/maptype.js"),c=r("./MapStore2/web/client/selectors/localConfig.js");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 f(e){for(var t=1;t0&&t})),h=function(e){return Object(n.get)(e,"mapInfo.configuration.infoFormat","text/plain")},g=function(e){return Object(n.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},b=function(e){return Object(n.get)(e,"mapInfo.configuration",{})},v=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},O=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},w=function(e){return Object(n.get)(e,"mapInfo.itemId",null)},S=function(e){return Object(n.get)(e,"mapInfo.overrideParams",{})},j=function(e){return Object(n.get)(e,"mapInfo.filterNameList",[])},_=Object(o.a)((function(e){return!Object(n.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(n.get)(e,"controls.measure.enabled")&&(Object(n.get)(e,"measurement.lineMeasureEnabled")||Object(n.get)(e,"measurement.areaMeasureEnabled")||Object(n.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(n.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(n.get)(e,"annotations.editing")}),Object(a.b)("Identify"),(function(e,t,r,n,o){return e||!!t||r||!!n||!o})),x=Object(o.c)({format:h,map:i.k,point:v,currentLocale:s.b,maxItems:function(e){return Object(n.get)(e,"mapInfo.configuration.maxItems")}}),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},E=function(e){return e.mapInfo&&e.mapInfo.responses||[]},L=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},C=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},T=Object(o.a)(L,E,h,i.f,(function(e,t,r,n){var o=Object(l.i)(r);return e.length===t.length&&o.getValidResponses(t,n)})),I=Object(o.a)(T,P,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),A=function(e){var t=I(e)||{};return Object(n.get)(t,"layerMetadata.features")},N=function(e){var t=I(e)||{};return Object(n.get)(t,"layerMetadata.featuresCrs")},R=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(n.omit)(e,"radius")}},F=function(e){return function(t){return f(f({},t),{},{style:R(e)(t)})}},k=Object(o.a)(v,M,A,N,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(n.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,r,o,i,a){return i&&e?t?f(f({},e),{},{featuresCrs:o,features:r&&Object(n.isArray)(r)&&r.map(F(a))}):e:void 0})),D=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},G=function(e){var t,r;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(r=t.configuration)||void 0===r?void 0:r.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===n(e)},i=function(e){return"openlayers"===n(e)}},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return u}));var n,o=r("./node_modules/tinycolor2/tinycolor.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t,r,o){var i=e;isNaN(parseFloat(e))&&(i=n.hexToHsv(e)[0]);var a=.5/(r-1),s=t/(r-1),l=[];1===r&&(a=.5,s=t/2);for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:"red";return i()(e).toHexString()},u=function(e,t,r){var n=i()(e);return e&&n.setAlpha(Object(a.toNumber)(void 0!==t?t:n.getAlpha())).toRgbString()||r};n={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,r){return e instanceof Array?n.rgbToHex(e[0],e[1],e[2]):"#"+n.decToHex(e)+n.decToHex(t)+n.decToHex(r)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,r){if(e instanceof Array)return n.rgbToHsv(e[0],e[1],e[2]);var o,i,a,s,l,u=e/255,c=t/255,p=r/255;switch(o=Math.min(Math.min(u,c),p),a=(i=Math.max(Math.max(u,c),p))-o,i){case o:s=0;break;case u:s=60*(c-p)/a,c0){"#"===t[0]&&(t=e.substring(1));var r=n.hexToRgb(t);return n.rgbToHsv(r)}return null},hexToRgb:function(e){var t,r,n,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),r=o.charAt(2)+o.charAt(3),n=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(r,16),parseInt(n,16)]},colorToHexStr:l,colorToRgbaStr:u}},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,r){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"FORMULAS",(function(){return T})),r.d(t,"getProjUrl",(function(){return A})),r.d(t,"determineCrs",(function(){return R})),r.d(t,"normalizePoint",(function(){return k})),r.d(t,"reproject",(function(){return G})),r.d(t,"reprojectExtent",(function(){return B})),r.d(t,"getPolygonFromExtent",(function(){return z})),r.d(t,"getExtentFromNormalized",(function(){return q})),r.d(t,"crsCodeTable",(function(){return W})),r.d(t,"setCrsLabels",(function(){return Z})),r.d(t,"getUnits",(function(){return V})),r.d(t,"getProjectedBBox",(function(){return H})),r.d(t,"createBBox",(function(){return K})),r.d(t,"reprojectGeoJson",(function(){return Y})),r.d(t,"lineIntersectPolygon",(function(){return X})),r.d(t,"normalizeLng",(function(){return J})),r.d(t,"reprojectBbox",(function(){return Q})),r.d(t,"bboxToFeatureGeometry",(function(){return $})),r.d(t,"getCompatibleSRS",(function(){return ee})),r.d(t,"getEquivalentSRS",(function(){return te})),r.d(t,"getEPSGCode",(function(){return re})),r.d(t,"normalizeSRS",(function(){return ne})),r.d(t,"isAllowedSRS",(function(){return oe})),r.d(t,"getAvailableCRS",(function(){return ie})),r.d(t,"filterCRSList",(function(){return ae})),r.d(t,"calculateAzimuth",(function(){return se})),r.d(t,"calculateDistance",(function(){return le})),r.d(t,"extendExtent",(function(){return ue})),r.d(t,"getGeoJSONExtent",(function(){return ce})),r.d(t,"isValidExtent",(function(){return pe})),r.d(t,"calculateCircleCoordinates",(function(){return fe})),r.d(t,"transformLineToArcs",(function(){return de})),r.d(t,"transformArcsToLine",(function(){return me})),r.d(t,"coordsOLtoLeaflet",(function(){return ye})),r.d(t,"mergeToPolyGeom",(function(){return he})),r.d(t,"getViewportGeometry",(function(){return ge})),r.d(t,"getExtentFromViewport",(function(){return be})),r.d(t,"fetchProjRemotely",(function(){return ve})),r.d(t,"parseURN",(function(){return Oe})),r.d(t,"parseString",(function(){return we})),r.d(t,"getWMSBoundingBox",(function(){return Se})),r.d(t,"isSRSAllowed",(function(){return je})),r.d(t,"getNormalizedLatLon",(function(){return _e})),r.d(t,"isInsideVisibleArea",(function(){return xe})),r.d(t,"centerToVisibleArea",(function(){return Me})),r.d(t,"calculateCircleRadiusFromPixel",(function(){return Pe})),r.d(t,"roundCoord",(function(){return Ee})),r.d(t,"midpoint",(function(){return Le})),r.d(t,"pointObjectToArray",(function(){return Ce})),r.d(t,"isPointInsideExtent",(function(){return Te})),r.d(t,"isBboxCompatible",(function(){return Ie})),r.d(t,"extractCrsFromURN",(function(){return Ae})),r.d(t,"makeNumericEPSG",(function(){return Ne})),r.d(t,"makeBboxFromOWS",(function(){return Re}));var n=r("./node_modules/node-geo-distance/index.js"),o=r.n(n),i=r("./MapStore2/web/client/libs/proj4.js"),a=r.n(i),s=r("./MapStore2/web/client/libs/ajax.js"),l=r.n(s),u=r("./node_modules/object-assign/index.js"),c=r.n(u),p=r("./MapStore2/node_modules/lodash/lodash.js"),f=r("./node_modules/@turf/line-intersect/index.js"),d=r.n(f),m=r("./node_modules/@turf/polygon-to-linestring/index.js"),y=r.n(m),h=r("./node_modules/@turf/great-circle/main.es.js"),g=r("./node_modules/turf-point/index.js"),b=r.n(g),v=r("./node_modules/@turf/bbox-polygon/main.es.js"),O=r("./node_modules/@turf/boolean-overlap/main.es.js"),w=r("./node_modules/@turf/boolean-contains/main.es.js");function S(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 j(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&"number"==typeof r[0]&&"number"==typeof r[1]?t(e):e.map((function(e){return I(e,t)}));var r}var A=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function N(e,t,r){if(null===e)return e;var n=Object(p.cloneDeep)(e);return"Feature"===e.type?n.geometry=N(e.geometry,t,r):"FeatureCollection"===e.type?n.features=n.features.map((function(e){return N(e,t,r)})):"GeometryCollection"===e.type?n.geometries=n.geometries.map((function(e){return N(e,t,r)})):t&&t(n),r&&r(n),n}function R(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},k=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},D=function(e){var t=e;return Object(p.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(p.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},G=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=r&&a.a.defs(r)?new a.a.Proj(r):null;if(o&&i){var s=Object(p.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),l=c()({},t===r?D(s):a.a.transform(o,i,D(s)),{srs:r});return n?k(l):l}return null},U=["EPSG:900913","EPSG:4326","EPSG:3857"],B=function(e,t,r){return"EPSG:4326"===t?e:r?e.map((function(e){return[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])})):[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])},z=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},q=function(e,t){var r=function(e,t){var r="EPSG:4326"!==t?[G([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),G([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],n=!1;return"EPSG:4326"===t?n=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(n=Math.abs(e.maxx-e.minx)>=40075016.68557849),n?[0,r[1],360,r[3]]:[(r[0]+180)%360,r[1],(r[2]+180)%360,r[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),n=r[2]2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,o=t*n[0]/2,i=t*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=o*a,u=o*s,c=i*a,p=i*s,f=e.x,d=e.y,m=f-l+p,y=f-l-p,h=f+l-p,g=f+l+p,b=d-u-c,v=d-u+c,O=d+u+c,w=d+u-c,S=L.createBBox(Math.min(m,y,h,g),Math.min(b,v,O,w),Math.max(m,y,h,g),Math.max(b,v,O,w));return S},K=function(e,t,r,n){return{minx:e,miny:t,maxx:r,maxy:n}},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",n=t,o=r;"string"==typeof n&&(n=R(n)),"string"==typeof o&&(o=R(o));var i=C(n,o);return N(e,(function(e){e.crs&&delete e.crs,e.coordinates=I(e.coordinates,(function(e){var t=M(e,2),r=t[0],n=t[1];return i.forward([r,n])}))}),(function(e){var t,r;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],r=[-Number.MAX_VALUE,-Number.MAX_VALUE],N(e,(function(e){I(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),r[0]=Math.max(r[0],e[0]),r[1]=Math.max(r[1],e[1])}))})),[t[0],t[1],r[0],r[1]]))}))},X=function(e,t){var r=y()(t).features[0];return 0!==d()(e,r).features.length},J=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,r){var n,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n=Object(p.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in n)if(n.hasOwnProperty(a)){var s=L.reproject(n[a],t,r,o);if(!s)return null;var l=s.x,u=s.y;i.push(l),i.push(u)}return i},$=function(e){var t=Object(p.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,r=t.minx,n=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[r,n],[r,i],[o,i],[o,n],[r,n]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},re=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},ne=function(e,t){var r="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[r]?L.getCompatibleSRS(r,t):r},oe=function(e,t){return t[L.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},ae=function(e,t,r,n){var o=Object.keys(e).reduce((function(r,n){return c()({},-1===t.indexOf(n)?r:j(j({},r),{},_({},n,e[n])))}),{}),i=n.map((function(e){return e.code})),a=Object.keys(r).reduce((function(e,t){return c()({},-1===i.indexOf(t)?e:j(j({},e),{},_({},t,r[t])))}),{});return c()({},o,a)},se=function(e,t,r){var n=L.reproject(e,r,"EPSG:4326"),o=L.reproject(t,r,"EPSG:4326"),i=n.x*Math.PI/180,a=n.y*Math.PI/180,s=o.x*Math.PI/180,l=o.y*Math.PI/180,u=s-i,c=Math.sin(u)*Math.cos(l),p=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,p)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(T).indexOf(t)?T[t](e):0},ue=function(e,t){var r=e.slice();return t[0]e[2]&&(r[2]=t[2]),t[1]e[3]&&(r[3]=t[3]),r},ce=function(e){var t=this,r=[1/0,1/0,-1/0,-1/0],n=function(e,r){var n=L.getGeoJSONExtent(r);return t.isValidExtent(n)?t.extendExtent(n,e):n};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;r[0]=o[0]-.01*o[0],r[1]=o[1]-.01*o[1],r[2]=o[0]+.01*o[0],r[3]=o[1]+.01*o[1]}return Object(p.chunk)(Object(p.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),r)}if("GeometryCollection"===e.type)return e.geometries.reduce(n,r);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(n,r);if("Feature"===e.type&&e.geometry)return L.getGeoJSONExtent(e.geometry)}return r},pe=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},fe=function(e,t,r,n){var o,i,a,s=Math.PI*(1/r-.5);n&&(s+=n/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},r=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(p.head)(e),Object(p.last)(e)]:e.length>t?[Object(p.head)(e)].concat(L.transformArcsToLine(Object(p.slice)(e,t))):[]},ye=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ge=function(e,t){if(Object(p.head)(U.filter((function(e){return e===t})))){var r=q(e,t),n=r.extent,o=r.isIDL,i=(o?n:[n]).map((function(e){var t=[e[0],e[1]],r=[e[2],e[3]];return[[t,[t[0],r[1]],r,[r[0],t[1]],t]]}));if(o){var a=n[1][0]+(Math.abs(n[0][0]-n[0][2])+Math.abs(n[1][0]-n[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:n,center:[a=a>180?a-360:a,(n[0][1]+n[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:n,center:[(n[0]+n[2])/2,(n[1]+n[3])/2]}}var s=[e.minx,e.miny,e.maxx,e.maxy],l=[s[0],s[1]],u=[s[2],s[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:s,center:[(s[0]+s[2])/2,(s[1]+s[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,r=e.crs,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!r)return null;var o=L.getViewportGeometry(t,r),i=o.extent;if(4===i.length)return L.reprojectBbox(i,r,n);var a=i.map((function(e){return e[2]-e[0]})),s=M(a,2),l=s[0],u=s[1];return l>u?L.reprojectBbox(i[0],r,n):L.reprojectBbox(i[1],r,n)},ve=function(e,t){var r=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||A(r),null,{timeout:2e3})},Oe=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,r=t&&Object(p.last)(t.split(":"));return"WGS 1984"===r||"WGS84"===r?"EPSG:4326":r?"EPSG:"+r:null},we=function(e){var t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return!isNaN(r)&&!isNaN(n)&&{x:r,y:n}||null},Se=function(e,t){var r=t||"EPSG:3857",n=e&&Object(p.isArray)(e)&&Object(p.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===r&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&L.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],r,"EPSG:4326")})));return Object(p.isArray)(n)&&{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]}||null},je=function(e){return!!a.a.defs(e)},_e=function(e){var t=e.lng,r=void 0===t?1:t,n=e.lat;return{lat:void 0===n?1:n,lng:L.normalizeLng(r)}},xe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=L.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=L.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),s=j({left:0,right:0,top:0,bottom:0},r),l={minx:a[0]+s.left*n,miny:a[1]+s.bottom*n,maxx:a[2]-s.right*n,maxy:a[3]-s.top*n},u=L.getViewportGeometry(l,t.projection),c=4===u.extent.length?[x(u.extent)]:x(u.extent);return Object(p.head)(c.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},Me=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=L.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection),a=j({left:0,right:0,top:0,bottom:0},r),s={width:(t.size.width-a.right-a.left)*n,height:(t.size.height-a.top-a.bottom)*n},l={minx:i.x-s.width/2-a.left*n,miny:i.y-s.height/2-a.bottom*n,maxx:i.x+s.width/2+a.right*n,maxy:i.y+s.height/2+a.top*n},u=L.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:G([u.extent[0]+t.size.width/2*n,u.extent[1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=G([u.extent[0][2]-t.size.width/2*n,u.extent[0][3]-t.size.height/2*n],t.projection,"EPSG:4326"),p=j(j({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:p,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:G([u.extent[1][0]+t.size.width/2*n,u.extent[1][1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(p.isArray)(r)?r:[r.x,r.y];if(Object(p.isNumber)(i[0])&&!isNaN(i[0])&&Object(p.isNumber)(i[1])&&!isNaN(i[1])&&Object(p.isNumber)(t.x)&&!isNaN(t.x)&&Object(p.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(p.isFunction)(e)?e([t.x,t.y>=n?t.y-n:t.y+n]):null,s=a&&(Object(p.isArray)(a)?a:[a.x,a.y]);return Object(p.isArray)(s)?Math.sqrt((i[0]-s[0])*(i[0]-s[0])+(i[1]-s[1])*(i[1]-s[1])):o}return o},Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,r=void 0===t?"round":t,n=e.value,o=void 0===n?0:n,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[r]?Math[r](o):o},Le=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object(p.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(p.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(n.x+o.x),y:.5*(n.y+o.y)};return r?[i.x,i.y]:i},Ce=function(e){return Object(p.isObject)(e)&&Object(p.isNumber)(e.x)&&Object(p.isNumber)(e.y)?[e.x,e.y]:e},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(w.a)(z(t),b()([e.lng,e.lat]))},Ie=function(e,t){return Object(O.a)(e,t)||Object(w.a)(e,t)||Object(w.a)(t,e)},Ae=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var r=t[4],n=t[6];return r?"".concat(r,":").concat(n):n}}return null},Ne=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),r=parseInt(t,10);if(r>=1024&&r<=32767)return e;var n=t.replace(" ","").replace(":","").toLowerCase(),o=W[n];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Re=function(e,t){var r=[e[0],e[1]],n=[t[0],t[1]];if(r[1]>n[1]){var o=r;r=n,n=o}if(r[0]>n[0]){var i=r.slice(),a=n.slice();r=[a[0],i[1]],n=[i[0],a[1]]}return[r[0],r[1],n[0],n[1]]};L={setCrsLabels:Z,getUnits:V,reproject:G,getProjectedBBox:H,createBBox:K,reprojectGeoJson:Y,lineIntersectPolygon:X,normalizePoint:k,normalizeLng:J,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:re,normalizeSRS:ne,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:se,calculateDistance:le,FORMULAS:T,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:pe,calculateCircleCoordinates:fe,transformLineToArcs:de,transformArcsToLine:me,coordsOLtoLeaflet:ye,mergeToPolyGeom:he,getViewportGeometry:ge,getProjUrl:A,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:Oe,determineCrs:R,parseString:we,getWMSBoundingBox:Se,isSRSAllowed:je,getNormalizedLatLon:_e,isInsideVisibleArea:xe,centerToVisibleArea:Me,calculateCircleRadiusFromPixel:Pe,roundCoord:Ee,midpoint:Le,pointObjectToArray:Ce,getExtentFromNormalized:q,getPolygonFromExtent:z,isPointInsideExtent:Te,isBboxCompatible:Ie,extractCrsFromURN:Ae,crsCodeTable:W,makeNumericEPSG:Ne,makeBboxFromOWS:Re},t.default=L},"./MapStore2/web/client/utils/ElevationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"loadTile",(function(){return c})),r.d(t,"getElevation",(function(){return p})),r.d(t,"reset",(function(){return f}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),i=r("./node_modules/lrucache/index.js"),a=r.n(i),s=r("./node_modules/es6-promise/dist/es6-promise.js"),l=new a.a(100),u=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=n*e+r;try{var a=t.dataView.getInt16(2*i,!1);if(a!==o&&32767!==a&&-32768!==a)return a}catch(e){}return null},c=function(e,t,r){return l.has(r)?null:new s.Promise((function(n,i){o.a.get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,r){l.set(r,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,r),n()})).catch((function(e){!function(e,t,r){l.set(r,{coords:t,current:!0,status:"error: "+e})}(e.message,t,r),i(e)}))}))},p=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=l.get(e);return o&&"success"===o.status?{available:!0,value:u(r,o,t.x,t.y,n)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=new a.a(e.max||100)}},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return u}));var n={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},i=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,a=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function s(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function l(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var u={HTML:{getValidResponses:function(e,t){return t?e.filter(s):e},getNoValidResponses:function(e){return e.filter((function(e){return!s(e)}))}},TEXT:{getValidResponses:function(e,t){var r=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var r=0,n=new Array(t);r",endTag:""},fes:{startTag:"",endTag:""}},P=function(e,t,r,n){var o;if("><"===t){if(r.startDate&&r.endDate){var a=r.startDate.toISOString?r.startDate.toISOString():r.startDate,s=r.endDate.toISOString?r.endDate.toISOString():r.endDate;o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+a+"<"+n+":UpperBoundary><"+n+":Literal>"+s+"")}}else if(r.startDate){var l=r.startDate.toISOString?r.startDate.toISOString():r.startDate;o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+l+"")}return o},E=function(e,t,r,n){var o;return Object(f.isNil)(r)||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+"")),o},L=function(e,t,r,n){var o;return w(r,t)&&(o="isNull"===t?i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag):"="===t?i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+""):i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>*"+r+"*")),o},C=function(e,t,r,n){var o="";return w(r,t)&&"="===t&&""!==r&&(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r+"")),o},T=function(e,t,r,n){var o;if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+r.lowBound+"<"+n+":UpperBoundary><"+n+":Literal>"+r.upBound+"")):o=i.ogcComparisonOperators["<="](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r.upBound+""):o=i.ogcComparisonOperators[">="](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+r.lowBound+"");else{var a=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(a)||(o=i.ogcComparisonOperators[t](n,M[n].startTag+e+M[n].endTag+"<"+n+":Literal>"+a+""))}return o},I=function(e,t){var r="";switch(e.type){case"date":r=P(e.attribute,e.operator,e.values,t);break;case"number":r=T(e.attribute,e.operator,e.values,t);break;case"string":r=L(e.attribute,e.operator,e.values,t);break;case"boolean":r=C(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){r=e.values.reduce((function(r,n){var o=null===n||"null"===n?"isNull":"=";return r+L(e.attribute,o,n,t)}),""),r=i.ogcLogicalOperators.OR(t,r)}}return r},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,r=e.geometryName,n=e.cqlFilter,o=void 0===n?"INCLUDE":n;return"queryCollection('".concat(t,"', '").concat(r,"','").concat(O(o),"')")},N=function(e){return"collectGeometries(".concat(e,")")},R=function(e,t,r){var n,a,s,l,u=[];if(e.filterFields&&e.filterFields.length>0)""!==(n=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,r):b.processOGCFilterFields(null,e,r))&&u.push(n);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var c=i.ogcLogicalOperators.AND(r,e.simpleFilterFields.map((function(e){return I(e,r)})).join(""));u.push(c)}if(Object(f.isArray)(e.spatialField)?(l=Object(f.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(s=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?l=e.spatialField:s=[e.spatialField]),l){if(Object(f.isArray)(l.geometry&&l.geometry.extent[0])){var p=l.geometry.extent.reduce((function(e,n){var o=Object.assign({},l);return l.geometry.extent=n,e+b.processOGCSpatialFilter(t,o,r)}),"");a=i.ogcLogicalOperators.OR(r,p)}u.push(a)}else if(s&&(s=s.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var d=s.map((function(e){return b.processOGCSpatialFilter(t,e,r)})).join("");a=s.length>1?i.ogcLogicalOperators[e.spatialFieldOperator||"AND"](r,d):d,u.push(a)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var m=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?m.forEach((function(e){return u.push(b.processOGCCrossLayerFilter(e,r))})):u.push(b.processOGCCrossLayerFilter(m,r))}return e.options&&e.options.cqlFilter&&u.push(v(e.options.cqlFilter,{filterNS:r,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),u},F=function(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{n=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var u=x(r||"2.0"),c="2.0"===u?"fes":"ogc",p=b.getGetFeatureBase(u,n.pagination,i,a,t&&t.options),f=b.toOGCFilterParts(n,u,c),d="";return f.length>0&&(d="<"+c+":Filter>",1===f.length?d+=f[0]:(d+="<"+c+":And>",f.forEach((function(e){d+=e})),d+=""),d+=""),p+=""),p+=d,s&&(p+=s.map((function(e){return M[c].startTag+e+M[c].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(p+="<"+c+":SortBy><"+c+":SortProperty>"+M[c].startTag+o.sortBy+M[c].endTag+"<"+c+":SortOrder>"+o.sortOrder+""),p+="
"},k=function(e,t,r){var n=b.processOGCFilterFields(e,t,r),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){n+=b.processOGCFilterGroup(e,t,r)})),""!==n?i.ogcLogicalOperators[e.logic](r,n):""},D=function(e,t,r){var n=e?t.filterFields.filter((function(t){return t.groupId===e.id&&w(t.value,t.operator)})):t.filterFields.filter((function(e){return w(e.value,e.operator)}));return n.length?n.reduce((function(e,t){var n;switch(t.type){case"date":case"date-time":case"time":n=P(t.attribute,t.operator,t.value,r);break;case"number":n=T(t.attribute,t.operator,t.value,r);break;case"string":n=L(t.attribute,t.operator,t.value,r);break;case"boolean":n=C(t.attribute,t.operator,t.value,r);break;case"list":n=E(t.attribute,t.operator,t.value,r)}return"isNull"===t.operator&&(n=L(t.attribute,t.operator,t.operator,r)),n&&e.push(n),e}),[]).join(""):""},G=function(e,t,r){return Object(n.pointElement)(e,t,Object(o.wfsToGmlVersion)(r))},U=function(e,t,r){return Object(n.polygonElement)(e,t,Object(o.wfsToGmlVersion)(r))},B=function(e,t,r){return Object(n.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(r))},z=function(e,t){return Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},q=function(e,t,r){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=M[r].startTag+t.attribute+M[r].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+r+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](r,a)},W=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=r?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=r&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},Z=function(e){return Object(f.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(f.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(f.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},V=function(e,t){var r=t||"ogc",n=M[r].startTag+e.attribute+M[r].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);n+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(n+="<"+r+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](r,n)},H=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var r,n,o=[];if(t.filterFields&&t.filterFields.length>0)(r=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(r);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var r=e,n=b.processCQLSimpleFilterField(t);return!1!==n&&(r=e.length>0?e+" AND ("+n+")":"("+n+")"),r}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(n=b.processCQLSpatialFilter(t))&&o.push(n),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,u=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&u){var c=u.typeName,p=u.geometryName,f=b.getCrossLayerCqlFilter(a),d=N(A({typeName:c,geometryName:p,cqlFilter:f}));o.push("".concat(s,"(").concat(l,",").concat(d,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var r="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,n=b.processCQLFilterFields(r,t),o=b.findSubGroups(r,t.groupFields);if(o.length>0){var i=o.map((function(e){return(r.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+r.logic+" ");return n?[n,i].join(" "+r.logic+" "):i}return n},Y=function(e,t){var r=t+"(";switch(t){case"Point":r+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,n){r+=t.join(" "),r+=n<"===t?r.startDate&&r.endDate&&(n="("+e+">='"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"' AND "+e+"<='"+(r.endDate.toISOString?r.endDate.toISOString():r.endDate)+"')"):r.startDate&&(n=e+t+"'"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"'");return n},Q=function(e,t,r){var n,o=j(e);if(!Object(f.isNil)(r))if("isNull"===t)n="isNull("+o+")=true";else if("="===t){n=o+t+("'"+O(r)+"'")}else if("ilike"===t){n="strToLowerCase("+o+") LIKE "+("'%"+O(r).toLowerCase()+"%'")}else{n=o+" LIKE "+("'%"+O(r)+"%'")}return n},$=function(e,t,r){var n="";Object(f.isNil)(r)||""===r||"="===t&&(n='"'+e+'"'+t+("'"+r+"'"));return n},ee=function(e,t,r){var n,o=j(e);if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(n="("+o+">='"+r.lowBound+"' AND "+o+"<='"+r.upBound+"')"):n="("+o+"<='"+r.upBound+"')":n="("+o+">='"+r.lowBound+"')";else{var i=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(i)||(n=o+" "+t+" '"+i+"'")}return n},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},re=function(e,t,r){return b.cqlStringField(e,t,r)},ne=function(e,t){var r=t.filterFields.filter((function(t){return t.groupId===e.id})),n=[];return r&&(r.forEach((function(t){var r;switch(t.type){case"date":case"time":case"date-time":r=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":r=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":r=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":r=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":r=b.cqlListField(t.attribute,t.operator,t.value)}r&&n.push(e.negateAll?"NOT ("+r+")":r)})),n=n.join(" "+e.logic+" ")),n},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var r=!1,n=e.values.reduce((function(e,t){return null===t||"null"===t?r=!0:e.push("'"+t+"'"),e}),[]);t=n.length>0?e.attribute+" IN("+n.join(",")+")":t,r&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,r){var n=b.toOGCFilter(e,t,r),o=n.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=n.search("");n=n.substr(o,i-o)}else n="";return''.concat(e,"").concat(n,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,r=void 0===t?[]:t,n=e.spatialField,o=void 0===n?{}:n,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(r.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(f.isArray)(e.spatialField)&&Object(f.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},pe=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"AND",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",n={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,u=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&n.id||"".concat(e.groupId,"_").concat(u),logic:e.logic,id:"".concat(e.id,"_").concat(u),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(u)})}))),spatialField:pe(e.spatialField,l),spatialFieldOperator:r}}),{groupFields:[n],filterFields:[],spatialField:[]})},de=function(e,t){var r,n=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(p.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(r=Object(p.reproject)(o,n,t)).x,r.y],l=i&&Object(p.reproject)([i,0],n,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},me=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},ye=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,r=void 0===t?"ogc":t,n=e.ogcVersion,i=void 0===n?"2.0":n,s=e.addXmlnsToRoot,u=void 0!==s&&s,p=e.xmlnsToAdd,m=void 0===p?[]:p,y=c()({filterNS:r,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),h=l()(y),g=arguments.length,b=new Array(g>1?g-1:0),v=1;v");return"".concat(O.slice(0,w)).concat(m.length>0?" ".concat(m.join(" ")):"").concat(O.slice(w))}return O};b={processOGCFilterGroup:k,processOGCFilterFields:D,processOGCCrossLayerFilter:V,getGetFeatureBase:W,toOGCFilterParts:R,findSubGroups:te,toCQLFilter:H,getCrossLayerCqlFilter:Z,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:X,processCQLFilterFields:ne,getCQLGeometryElement:Y,cqlStringField:Q,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:re,toOGCFilter:F,reprojectFilterInNativeCrs:de,processOGCSpatialFilter:q,mergeFiltersToOGC:ye}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var r=e.format,n=e.queryParams,i=void 0===n?{}:n;return i.info_format||i.outputFormat||r&&o.a[r]||t.format},a=function(e){return!!Object(n.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return p})),r.d(t,"d",(function(){return f})),r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return m})),r.d(t,"a",(function(){return y}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/node_modules/lodash/fp/set.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/fp/unset.js"),s=r.n(a),l=r("./MapStore2/node_modules/lodash/fp/compose.js"),u=r.n(l),c=i.a,p=s.a,f=u.a,d=function(e,t,r,o){var i=e?Object(n.get)(o,e)||[]:o,a=Object(n.findIndex)(i,r);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?c(e,s,o):s}return e?c(e,i.concat(t),o):i.concat(t)},m=function(e,t,r,o){var i=e?Object(n.get)(o,e)||[]:o,a=Object(n.findIndex)(i,r);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?c(e,s,o):s}return o},y=function(e,t,r){var o=e?Object(n.get)(r,e)||[]:r,i=Object(n.findIndex)(o,t);if(i>=0){var a=o.slice();return a.splice(i,1),e?c(e,a,r):a()}return r}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"generateEnvString",(function(){return n}));var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,r=e.value;return"".concat(t,":").concat(r)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return M})),r.d(t,"e",(function(){return P})),r.d(t,"f",(function(){return E})),r.d(t,"h",(function(){return L})),r.d(t,"a",(function(){return C})),r.d(t,"g",(function(){return T})),r.d(t,"i",(function(){return I})),r.d(t,"k",(function(){return A})),r.d(t,"b",(function(){return N})),r.d(t,"j",(function(){return F})),r.d(t,"c",(function(){return k}));var n,o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=r("./node_modules/turf-point-on-surface/index.js"),a=r.n(i),s=r("./MapStore2/node_modules/lodash/lodash.js"),l=r("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),u=r.n(l),c=r("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),p=r("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),f=r("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),d=r("./MapStore2/web/client/utils/mapinfo/wfs.js"),m=r.n(d),y=r("./MapStore2/web/client/utils/mapinfo/wms.js"),h=r.n(y),g=r("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=r.n(g),v=r("./MapStore2/web/client/utils/mapinfo/vector.js"),O=r.n(v);function w(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],n);return[].concat(w(r),w(s))}return w(r)}),[])},getNoValidResponses:function(r){return r.reduce((function(r,n){if(n){var i;n.queryParams&&n.queryParams.hasOwnProperty("info_format")&&(i=n.queryParams.info_format),n.queryParams&&n.queryParams.hasOwnProperty("outputFormat")&&(i=n.queryParams.outputFormat);var a=(o.c[n.format||o.b[i]||o.b[e]]||t).getNoValidResponses([n]);return[].concat(w(r),w(a))}return w(r)}),[])}}},A=function(){var e;return x(e={},o.a.PROPERTIES,c.a),x(e,o.a.JSON,c.a),x(e,o.a.HTML,p.a),x(e,o.a.TEXT,f.a),e},N=function(e){var t;return e.visibility&&n.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},R={wfs:m.a,wms:h.a,wmts:b.a,vector:O.a},F=function(e){return n.VIEWERS[e]?n.VIEWERS[e]:null},k=function(e,t,r){var n=t||[],o=r||[];return Object.keys(e).reduce((function(t,r){if("params"!==r&&-1!==n.indexOf(r))t[r]=e[r];else if("params"===r&&o.length>0){var i=e[r];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};n={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(n.getAvailableInfoFormat())},getAvailableInfoFormat:M,getDefaultInfoFormatValue:E,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(w(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:u.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:R,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||n.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&_({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),r.d(t,"METERS_PER_UNIT",(function(){return v})),r.d(t,"GOOGLE_MERCATOR",(function(){return O})),r.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return w})),r.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return S})),r.d(t,"RESOLUTIONS_HOOK",(function(){return j})),r.d(t,"RESOLUTION_HOOK",(function(){return _})),r.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),r.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return M})),r.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return P})),r.d(t,"registerHook",(function(){return L})),r.d(t,"getHook",(function(){return C})),r.d(t,"executeHook",(function(){return T})),r.d(t,"clearHooks",(function(){return I})),r.d(t,"dpi2dpm",(function(){return A})),r.d(t,"dpi2dpu",(function(){return N})),r.d(t,"getSphericalMercatorScale",(function(){return R})),r.d(t,"getGoogleMercatorScale",(function(){return F})),r.d(t,"getSphericalMercatorScales",(function(){return k})),r.d(t,"getGoogleMercatorScales",(function(){return D})),r.d(t,"getResolutionsForScales",(function(){return G})),r.d(t,"getGoogleMercatorResolutions",(function(){return U})),r.d(t,"getResolutions",(function(){return B})),r.d(t,"getScales",(function(){return z})),r.d(t,"defaultGetZoomForExtent",(function(){return q})),r.d(t,"getZoomForExtent",(function(){return W})),r.d(t,"getCurrentResolution",(function(){return Z})),r.d(t,"getCenterForExtent",(function(){return V})),r.d(t,"getBbox",(function(){return H})),r.d(t,"isNearlyEqual",(function(){return K})),r.d(t,"mapUpdated",(function(){return Y})),r.d(t,"transformExtent",(function(){return X})),r.d(t,"groupSaveFormatted",(function(){return J})),r.d(t,"saveMapConfiguration",(function(){return Q})),r.d(t,"generateNewUUIDs",(function(){return $})),r.d(t,"mergeMapConfigs",(function(){return ee})),r.d(t,"addRootParentGroup",(function(){return te})),r.d(t,"isSimpleGeomType",(function(){return re})),r.d(t,"getSimpleGeomType",(function(){return ne})),r.d(t,"getIdFromUri",(function(){return oe})),r.d(t,"parseLayoutValue",(function(){return ie})),r.d(t,"prepareMapObjectToCompare",(function(){return ae})),r.d(t,"updateObjectFieldKey",(function(){return se})),r.d(t,"compareMapChanges",(function(){return le})),r.d(t,"createRegisterHooks",(function(){return ue}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/uuid/v1.js"),i=r.n(o),a=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=r("./MapStore2/web/client/utils/ImmutableUtils.js"),l=r("./MapStore2/web/client/utils/LayersUtils.js"),u=r("./node_modules/object-assign/index.js"),c=r.n(u);function p(e){return(p="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(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.diff?e:{diff:n,zoom:r}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(p,n))}function W(e,t,r,n,o){return C("EXTENT_TO_ZOOM_HOOK")?C("EXTENT_TO_ZOOM_HOOK")(e,t,r,n,o):q(e,t,r,n,o,C("RESOLUTIONS_HOOK")?C("RESOLUTIONS_HOOK")(e,t,r,n,o,A(o||b)):null)}function Z(e,t,r,n){return C("RESOLUTION_HOOK")?C("RESOLUTION_HOOK")(e,t,r,n):U(t,r,n)[e]}function V(e,t){var r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return{x:e[0]+r,y:e[1]+n,crs:t}}function H(e,t){return T("COMPUTE_BBOX_HOOK",(function(r){return r(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Y(e,t){var r,o,i,a;return!(!e||Object(n.isEmpty)(e)||!t||Object(n.isEmpty)(t))&&(!(K(null==t||null===(r=t.center)||void 0===r?void 0:r.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function X(e,t,r,n){var o=Object(a.getUnits)(e);return"ft"===o?{width:r/v.ft,height:n/v.ft}:"us-ft"===o?{width:r/v["us-ft"],height:n/v["us-ft"]}:"degrees"===o?{width:r/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:n/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:r,height:n}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,r,o,i,a,u){var p={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},f=t.map((function(e){return Object(l.saveLayer)(e)})),d=r.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(r.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(r,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),m=o.filter((function(e){return!!e.thumbnail})),y=Object(l.extractSourcesFromLayers)(f),g=f.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(n.findIndex)(g,(function(e){return"annotations"===e.id}));if(-1!==b){var v=g[b].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));g[b]=Object(s.e)("features",v,g[b])}return h({version:2,map:c()({},p,{layers:g,groups:d,backgrounds:m,text_search_config:i,bookmark_search_config:a},!Object(n.isEmpty)(y)&&{sources:y}||{})},u)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(n.cloneDeep)(e),r=h(h({},Object(n.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},g({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(n.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},g({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(n.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:r[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(n.mapValues)(Object(n.mapKeys)(Object(n.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return r[t]})),(function(e){return h(h({},e),{},{layouts:Object(n.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:r[e.i]})}))})})),layouts:Object(n.mapValues)(Object(n.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:r[e.i]})}))})),widgets:Object(n.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:r[e.id],layer:h(h({},Object(n.get)(e,"layer",{})),{},{id:r[Object(n.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(n.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:r[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(n.pick)(e,Object(n.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(d(Object(n.get)(e,"map.backgrounds",[])),d(Object(n.get)(o,"map.backgrounds",[]))),a=r(Object(n.get)(e,"map.layers",[])),s=r(Object(n.get)(o,"map.layers",[])),l=Object(n.find)(a,(function(e){return"annotations"===e.id})),u=Object(n.find)(s,(function(e){return"annotations"===e.id})),c=[].concat(d(s.filter((function(e){return"annotations"!==e.id}))),d(a.filter((function(e){return"annotations"!==e.id}))),d(l||u?[h(h(h({},l||{}),u||{}),{},{features:[].concat(d(Object(n.get)(l,"features",[])),d(Object(n.get)(u,"features",[])))})]:[])),p=c.filter((function(e){return"background"===e.group})),f=Object(n.findIndex)(p,(function(e){return e.visibility})),m=Object(n.get)(e,"map.sources",{}),y=Object(n.get)(o,"map.sources",{}),b=h(h({},m),y),v=Object(n.get)(e,"widgetsConfig",{}),O=Object(n.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(n.get)(e,"catalogServices",{})),{},{services:h(h({},Object(n.get)(e,"catalogServices.services",{})),Object(n.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:i,groups:Object(n.uniqWith)([].concat(d(Object(n.get)(e,"map.groups",[])),d(Object(n.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(d(p.slice(0,f+1)),d(p.slice(f+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),d(c.filter((function(e){return"background"!==e.group})))),sources:Object(n.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:h(h({},v.collapsed),O.collapsed),layouts:Object(n.uniq)([].concat(d(Object(n.keys)(v.layouts)),d(Object(n.keys)(O.layouts)))).reduce((function(e,t){return h(h({},e),{},g({},t,[].concat(d(Object(n.get)(v,"layouts.".concat(t),[])),d(Object(n.get)(O,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(d(Object(n.get)(v,"widgets",[])),d(Object(n.get)(O,"widgets",[])))},timelineData:h(h({},Object(n.get)(e,"timelineData",{})),Object(n.get)(o,"timelineData",{})),dimensionData:h(h({},Object(n.get)(e,"dimensionData",{})),Object(n.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",r=Object(n.get)(e,"map.groups",[]),o=r.filter((function(e){return"Default"!==e.id})),a=Object(n.find)(r,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(d(o.map((function(e){var t=e.id,r=f(e,["id"]);return h({id:"".concat(s.id,".").concat(t)},r)}))),[s]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:l,layers:Object(n.get)(e,"map.layers",[]).map((function(e){var t,r=e.group;return h(h({},f(e,["group"])),{},{group:!a||"background"===r||"Default"!==r&&r?a&&(null===(t=Object(n.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===r})))||void 0===t?void 0:t.id)||r:s.id})}))})})};function re(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,r=decodeURIComponent(e),n=t.exec(r);return n&&n.length&&n.length>1?n[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(n.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(n.trim)(e))*t/100:Object(n.isNumber)(e)?e:0},ae=function e(t){var r=["apiKey","time","args","fixed"],n=function(e){return r.reduce((function(t,r){return t||e===r}),!1)};Object.keys(t).forEach((function(r){var o=t[r],i=p(o);"object"!==i||null===o||n(r)?"undefined"!==i&&o&&!n(r)||delete t[r]:(e(o),Object.keys(o).length||delete t[r])}))},se=function(e,t,r){e[t]&&(Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(n.pick)(Object(n.cloneDeep)(e),r),i=Object(n.pick)(Object(n.cloneDeep)(t),r);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(n.isEqual)(o,i)},ue=function(){var e={};return{registerHook:function(t,r){e[t]=r},getHook:function(t){return e[t]},executeHook:function(t,r,n){var o=e[t];return o?r(o):n?n():null}}};t.default={createRegisterHooks:ue,EXTENT_TO_ZOOM_HOOK:w,RESOLUTIONS_HOOK:j,RESOLUTION_HOOK:_,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:M,GET_COORDINATES_FROM_PIXEL_HOOK:P,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:S,registerHook:L,getHook:C,dpi2dpm:A,getSphericalMercatorScales:k,getSphericalMercatorScale:R,getGoogleMercatorScales:D,getGoogleMercatorResolutions:U,getGoogleMercatorScale:F,getResolutionsForScales:G,getZoomForExtent:W,defaultGetZoomForExtent:q,getCenterForExtent:V,getResolutions:B,getScales:z,getBbox:H,mapUpdated:Y,getCurrentResolution:Z,transformExtent:X,saveMapConfiguration:Q,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:re,getSimpleGeomType:ne,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:I}},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"degToDms",(function(){return o})),r.d(t,"getFormattedBearingValue",(function(){return i})),r.d(t,"CONVERSION_RATE",(function(){return a})),r.d(t,"convertUom",(function(){return s})),r.d(t,"validateCoord",(function(){return l})),r.d(t,"validateFeatureCoordinates",(function(){return u})),r.d(t,"isValidGeometry",(function(){return c}));var n=r("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),r=60*(e-t),n=Math.floor(r),o=60*(r-n);return t+"° "+n+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.measureTrueBearing,n=void 0!==r&&r,i=t.fractionDigits,a=void 0===i?0:i,s="";if(n){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var u=a>0?e.toFixed(a):Math.floor(e);s=l+u+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][r]?e*a[t][r]:e}var l=function(e){return!Object(n.isNaN)(parseFloat(e[0]))&&!Object(n.isNaN)(parseFloat(e[1]))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,r=e.type,o=t;if("LineString"===r){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===r){if((o=Object(n.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(n.head)(o)])]}return o},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,r=e.type;if(!r||!t||t&&Object(n.isArray)(t)&&0===t.length)return!1;var o=u({coordinates:t,type:r});return(o="Polygon"===r?Object(n.head)(o):o).length>0}},"./MapStore2/web/client/utils/PopupUtils.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s}));var n=r("./node_modules/uuid/index.js"),o=r.n(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",r=document.createElement("div");return r.setAttribute("id",e+"-map-popup"),r.setAttribute("class",t),r},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("<")},s=function(e,t){if(!t)return e;if(t instanceof Node){var r=document.createDocumentFragment();r.appendChild(t),e.appendChild(r)}else a(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"validateStringAttribute",(function(){return i})),r.d(t,"getCleanTemplate",(function(){return a})),r.d(t,"parseCustomTemplate",(function(){return s})),r.d(t,"generateTemplateString",(function(){return l})),r.d(t,"parseTemplate",(function(){return u}));var n,o=r("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(r,t.length-n))||"";return Object(o.has)(e,i)},a=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(r),u=l&&l.map((function(e){var r=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,r,n,a)?r:s(e)}}))||null;return u&&u.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,r))(t)},l=(n={},function(e,t){var r=n[e];return r&&!t||(r=function(r){var n=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,n){return(t||function(e){return e})(n.trim().split(".").reduce((function(e,t){return e&&e[t]}),r))}));return Object(o.isString)(n)&&n||""},t||(n[e]=r)),r}),u=function(e,t){r.e(32).then(function(){var n=r("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=n.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,r)).catch(r.oe)},c={generateTemplateString:l,parseTemplate:u,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=c},"./MapStore2/web/client/utils/TileConfigProvider.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getLayerConfig",(function(){return u}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/ConfigProvider.js"),i=r("./MapStore2/web/client/utils/ConfigUtils.js");function a(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;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(n.isNil)(e[t])})).length>0},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return h(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return h(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return h(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return h(e,t)},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return h(e,t)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return h(e,t)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(e)?"Marker":S(e)?"Symbol":v(e)?"Text":O(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":g(e)?"Polyline":""},_={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},x=function(e,t){return _[e]&&_[e][t]},M=function(e,t,r){if(!(e&&t&&r))throw new Error("specify all the params: functionName, func, type");_[e]={func:t,type:r}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},E=function(e){var t,r=0;if(0===e.length)return r;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};L=e},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return L[e]&&L[e][t]},A=function(){return L},N=function(e){if(e)return E(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},R=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return S(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var r=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(n.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(n.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(n.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([R(o)],{type:"image/svg+xml;charset=utf-8"}),s=r.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var u=l.getContext("2d"),c=new Image;c.src=s;var p="",f=N(e);return c.onload=function(){try{u.drawImage(c,l.width/2-c.width/2,l.height/2-c.height/2),p=l.toDataURL("image/png"),l=null,C(f,{style:d(d({},e),{},{symbolUrlCustomized:s}),base64:p})}catch(e){return}},C(f,{style:d(d({},e),{},{symbolUrlCustomized:s}),svg:o,base64:p}),s})).catch((function(){return r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return S(e)&&!I(N(e))?F(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?d(d({},e),{},{symbolUrlCustomized:t}):I(N(e))})).catch((function(){return d(d({},e),{},{symbolUrlCustomized:r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(S(e)?I(N(e)):e)}))}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return y[e]}},"./MapStore2/web/client/utils/VectorTileUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"VECTOR_FORMATS",(function(){return n})),r.d(t,"isVectorFormat",(function(){return o}));var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==n.indexOf(e)}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"optionsToVendorParams",(function(){return s}));var n=r("./MapStore2/web/client/utils/FilterUtils.js");function o(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 i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(n.isFilterValid)(o)&&!o.disabled&&Object(n.toCQLFilter)(o),Object(n.isFilterValid)(a)&&Object(n.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,r];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"needsReload",(function(){return c})),r.d(t,"toDescribeURL",(function(){return p})),r.d(t,"extractGeometryType",(function(){return f})),r.d(t,"extractGeometryAttributeName",(function(){return d}));var n=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=r("./node_modules/url/url.js"),i=r.n(o),a=r("./MapStore2/node_modules/lodash/lodash.js");function s(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 l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||n.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},d=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getDefaultMatrixId",(function(){return u})),r.d(t,"getMatrixIds",(function(){return c})),r.d(t,"limitMatrix",(function(){return p})),r.d(t,"getTileMatrixSet",(function(){return f})),r.d(t,"getRequestEncoding",(function(){return d})),r.d(t,"getOperations",(function(){return m})),r.d(t,"getOperation",(function(){return y})),r.d(t,"getGetTileURL",(function(){return h})),r.d(t,"getCapabilitiesURL",(function(){return g})),r.d(t,"getDefaultStyleIdentifier",(function(){return b})),r.d(t,"getDefaultFormat",(function(){return v})),r.d(t,"sortTileMatrix",(function(){return O})),r.d(t,"getTileMatrix",(function(){return w}));var n,o=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=r("./MapStore2/node_modules/lodash/lodash.js");function a(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;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,r).reduce((function(t,r){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===r||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===r)&&n[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[r]||t}),a):a},d=function(e){var t=n.getOperations(e);return n.getOperation(t,"GetTile","KVP")?"KVP":n.getOperation(t,"GetTile","RESTful")&&"RESTful"},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},y=function(e,t,r){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===r})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,r=e.GetTileURL,n=e.requestEncoding;return"KVP"===n?r:t&&Object(i.castArray)(t).map((function(e){var t=e.$,r=void 0===t?{}:t;return r.template||r.value}))||r},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},O=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},w=function(e,t){var r,n,o=f(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&c(e.matrixIds,o||t),s=O(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(r=(n=s.TileMatrix).map)||void 0===r?void 0:r.call(n,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};n={getOperations:m,getOperation:y}},"./MapStore2/web/client/utils/leaflet/DrawSupportUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"boundsToOLExtent",(function(){return n})),r.d(t,"fromLeafletFeatureToQueryform",(function(){return o}));var n=function(e){return[e.getWest(),e.getSouth(),e.getEast(),e.getNorth()]},o=function(e){var t=e.toGeoJSON(),r=e.getBounds(),o=n(r),i=r.getCenter(),a=e.getRadius?e.getRadius():0,s=t.features[0].geometry.coordinates;return{type:t.features[0].geometry.type,extent:o,center:i,coordinates:s,radius:a,projection:"EPSG:4326"}}},"./MapStore2/web/client/utils/leaflet/Icons.js":function(e,t,r){var n=r("./MapStore2/web/client/libs/leaflet.js"),o=r("./MapStore2/node_modules/lodash/lodash.js").isFunction;r("./node_modules/leaflet-extra-markers/src/assets/js/leaflet.extra-markers.js"),r("./node_modules/leaflet-extra-markers/dist/css/leaflet.extra-markers.min.css"),e.exports={extra:{getIcon:function(e){var t=e.iconPrefix||"fa";return n.ExtraMarkers.icon({icon:t+"-"+e.iconGlyph,markerColor:e.iconColor||"blue",shape:e.iconShape||"square",prefix:t,extraClasses:e.highlight?"marker-selected":""})}},standard:{getIcon:function(e){return n.icon({iconUrl:e.iconUrl||e.symbolUrlCustomized||e.symbolUrl,shadowUrl:e.shadowUrl,iconSize:e.iconSize,shadowSize:e.shadowSize,iconAnchor:e.iconAnchor,shadowAnchor:e.shadowAnchor,popupAnchor:e.popupAnchor})}},html:{getIcon:function(e,t){return n.divIcon(o(e.html)?e.html(t):e.html)}}}},"./MapStore2/web/client/utils/leaflet/Vector.js":function(e,t,r){function n(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 o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.pointToLayer,r=e.geojson,n=e.latlng,i=e.options,s=e.style,l=void 0===s?{}:s,u=e.highlight,c=void 0!==u&&u;if(r.properties&&r.properties.isText){var p=a.divIcon({html:'').concat(r.properties.valueText,""),className:""});return new a.Marker(n,{icon:p})}return m.getPointLayer(t,r,n,o(o({},i),{},{style:l,highlight:c}))},createPolygonCircleLayer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geojson,r=e.style,n=void 0===r?{}:r,i=e.latlngs,s=void 0===i?[]:i,l=e.coordsToLatLng,u=void 0===l?function(){}:l;if(t.properties&&t.properties.isCircle){var c=u(t.properties.center);return a.circle(c,o(o({},n),{},{radius:t.properties.radius}))}return new a.Polygon(s,n)},geometryToLayer:function(e,t){var r,n="Feature"===e.type?e.geometry:e,i=n?n.coordinates:null,s=[],u=o({styleName:t.styleName,style:t.style&&t.style[0]||t.style},e),c=t&&!d(u)?function(e,t){return"marker"===u.styleName?a.marker(t,u.style):a.circleMarker(t,u.style&&u.style[0]||u.style)}:null,p=t&&t.coordsToLatLng||m.coordsToLatLngF;if(!i&&!n)return null;var y,h,g,b,v=u.style||l({},t.style&&t.style[n.type]||t.style,{highlight:t.style&&t.style.highlight});switch(n.type){case"Point":return y=p(i),r=m.createTextPointMarkerLayer({pointToLayer:c,geojson:e,latlng:y,options:t,style:v,highlight:v&&v.highlight});case"MultiPoint":for(g=0,b=i.length;g=0&&(t[r]=e[r])})),t}};e.exports=o},"./MapStore2/web/client/utils/leaflet/WMTS.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=i&&o(n-o)/2?{id:r,data:t}:{id:r+1,data:e[r+1]}:null})).filter((function(e){return e}))),p=l&&c(l.id)&&l.id+""||0===e.length&&r||null;if(!t[p])return null;var f=t[p].identifier,d=l.data&&l.data.TopLeftCorner&&s(l.data.TopLeftCorner)||t[p].topLeftCorner,m=d.lng||d.x,y=d.lat||d.y,h=Math.round((n.x-m)/o),g=-Math.round((n.y-y)/o),b=l.data&&l.data.MatrixWidth&&l.data.MatrixHeight&&{cols:{min:0,max:l.data.MatrixWidth-1},rows:{min:0,max:l.data.MatrixHeight-1}},v=t[p].ranges||b;return v&&!function(e,t,r){return!(er.cols.max)&&!(tr.rows.max)}(h,g,v)?null:{ident:f,tilecol:h,tilerow:g}},getTileUrl:function(e){var t=this._map,r=t.options.crs,o=this.options.tileSize,a=e.multiplyBy(o);a.x+=1,a.y-=1;var s=a.add([o,o]),l=r.project(t.unproject(a,e.z)),u=r.project(t.unproject(s,e.z)).x-l.x,c=this.getWMTSParams(n(this.matrixSet),n(this.matrixIds),e.z,l,u);if(!c)return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var p=i.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e),TileRow:c.tilerow,TileCol:c.tilecol,TileMatrixSet:this.options.tileMatrixSet,TileMatrix:c.ident,Style:this.options.style});return"RESTful"===this.options.requestEncoding?p:p+i.Util.getParamString(this.wmtsParams,p,!0)+"&tilematrix="+c.ident+"&tilerow="+c.tilerow+"&tilecol="+c.tilecol},getMatrix:function(e,t){return e.map((function(e){return{identifier:e.identifier,topLeftCorner:new i.LatLng(t.originY,t.originX),ranges:e.ranges||null}}))},getDefaultMatrix:function(e){for(var t=new Array(22),r=0;r<22;r++)t[r]={identifier:e.tileMatrixPrefix+r,topLeftCorner:new i.LatLng(e.originY,e.originX)};return t},onError:function(){return!this.ignoreErrors}});e.exports=p},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var r,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(r=e.features)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&n(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,r){function n(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=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(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 i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.map,n=void 0===r?{}:r,o=t.point,a=t.currentLocale,s=t.params,p=t.maxItems,f=void 0===p?10:p,d=arguments.length>3?arguments[3]:void 0,m=arguments.length>4?arguments[4]:void 0;return{request:h(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(n.projection)||"EPSG:4326",feature_count:f},g({params:s})),e),metadata:{title:c(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:d,featureInfo:m},url:u(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,r){var o=r.point,i=n(r,["point"]),a=function(e){var t,r,n=null==e||null===(t=e.geometricFilter)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.geometry;if(n)return n;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return d(e.url,e.name).then((function(r){var n=y(r),o=p({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:n,operation:"INTERSECTS",geometry:a}},params:g({},e.baseParams,e.params,i)});return m(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,r){function n(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 o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.sizeBBox,n=t.map,i=void 0===n?{}:n,s=t.point,g=t.currentLocale,b=t.params,v=t.maxItems,O=void 0===v?10:v,w=t.env,S=arguments.length>2?arguments[2]:void 0,j=arguments.length>3?arguments[3]:void 0,_=arguments.length>4?arguments[4]:void 0,x=r&&r.height||101,M=r&&r.width||101,P=[x,M],E=0,L=a(Math.ceil(i.zoom),0,21,96),C=s.latlng.lng,T=C-360*Math.floor(C/360+.5),I={x:T,y:s.latlng.lat},A=l(I,"EPSG:4326",i.projection),N=u(A,L,E,P,null),R=e.name;e.queryLayers&&(R=e.queryLayers.join(","));var F=m(w),k=d({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,b)});return{request:y(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:R,styles:e.style,x:M%2==1?Math.ceil(M/2):M/2,y:M%2==1?Math.ceil(M/2):M/2,height:x,width:M,srs:c(i.projection)||"EPSG:4326",bbox:N.minx+","+N.miny+","+N.maxx+","+N.maxy,feature_count:O,info_format:S,ENV:F},h({},k)),e),metadata:{title:f(e.title)?e.title[g]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:j,featureInfo:_},url:p(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,r){function n(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 o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var r=e.length,n=e.indexOf("(",t[0].length);if(n>-1)for(var o=1;n0;)switch(n++,e.charAt(n)){case"(":o++;break;case")":o--}return[e.substr(0,n+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},u={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},p={RPAREN:3,LOGICAL:2,COMPARISON:1},f=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},d=function(e,t){var r,n,o=t.length;for(r=0;r0&&p[t[t.length-1].type]<=f;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var d=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":s.pop();var p=e(),f=e();return{property:e(),lowerBoundary:f,upperBoundary:p,type:u.BETWEEN};case"COMPARISON":var d=e();return{property:e(),value:d,type:u[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:u[t.text.toUpperCase()]};case"VALUE":var m=t.text.match(/^'(.*)'$/);return m?m[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var y=e(),h=e(),g=e(),b=e(),v=e();return{type:n,property:v,value:[b,g,h,y]};case"INTERSECTS":var O=e(),w=e();return{type:r,property:w,value:O};case"WITHIN":var S=e(),j=e();return{type:a,property:j,value:S};case"CONTAINS":var _=e(),x=e();return{type:o,property:x,value:_};case"DWITHIN":var M=e(),P=e(),E=e();return{type:i,value:P,property:E,distance:Number(M)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var m="Remaining tokens after building AST: \n",y=s.length-1;y>=0;y--)m+=s[y].type+": "+s[y].text+"\n";throw new Error(m)}return d};e.exports={read:function(e){return m(function(e){var t,r=[],n=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(n=(t=d(n,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);r.push(t)}while("END"!==t.type);return r}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,r){function n(e){return(n="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)}var o=r("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,u=o.propertyName,c=o.valueReference,p=o.distance,f=o.lower,d=o.upper,m=r("./MapStore2/web/client/utils/ogc/Filter/filter.js"),y=m.filter,h=m.fidFilter,g=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,r=void 0===t?"ogc":t,o=e.gmlVersion,m=e.wfsVersion,b=void 0===m?"1.1.0":m,v=o||"3.1.1",O=function(e){return g(v,e)},w=function(e){return"object"===n(e)&&Date,l(r,e)},S=0===b.indexOf("2.")?c:u;return{filter:y.bind(null,r),fidFilter:h.bind(null,r),and:i.and.bind(null,r),or:i.or.bind(null,r),not:i.not.bind(null,r),property:function(e){return{equalTo:function(t){return s.equal(r,S(r,e),w(t))},greaterThen:function(t){return s.greater(r,S(r,e),w(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(r,S(r,e),w(t))},lessThen:function(t){return s.less(r,S(r,e),w(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(r,S(r,e),w(t))},notEqualTo:function(t){return s.notEqual(r,S(r,e),w(t))},between:function(t,n){return s.between(r,S(r,e),f(r,w(t)),d(r,w(n)))},like:function(t,n){return s.like(r,S(r,e),w(t),n)},ilike:function(t,n){return s.ilike(r,S(r,e),w(t),n)},isNull:function(){return s.isNull(r,S(r,e))},intersects:function(t){return a.intersects(r,S(r,e),O(t))},within:function(t){return a.within(r,S(r,e),O(t))},dwithin:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(r,S(r,e),O(t),p(r,n,o))},contains:function(t){return a.contains(r,S(r,e),O(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return r(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:r}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var o=r.type,i=r.filters,c=void 0===i?[]:i,p=r.value,f=r.property,d=r.lowerBoundary,m=r.upperBoundary;return a(l,o)?t[o].apply(t,n(c.map(e(t)))):t.property(f)[u[o]](s(p)?d:p,m)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var r={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},n={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,r){return t(e,Array.isArray(r)?r.join(""):r)},a={and:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.AND,[t].concat(o)):i(e,n.AND,t)},or:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.OR,[t].concat(o)):i(e,n.OR,t)},not:function(e,t){return i(e,n.NOT,t)},nor:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a0?i(e,n.NOR,[t].concat(o)):i(e,n.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),o=1;o"],n)},less:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],n)},lessOrEqual:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o"],n)},between:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<"],n)},like:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(r,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],r=e[e.length-1];if(t[0]!==r[0]||t[1]!==r[1])return e.concat([e[0]])}return e},a=function(e,t,r){var n='':">",n+=o(r)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",n+=""},s=function(e,t,r){var a=o(r),s="':">",(e.length&&n(e[0])&&e[0].length&&n(e[0][0])?e:[e]).forEach((function(e,t){var r=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),n=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+r.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,r){var n=o(r),i="':">";var a=e.map((function(e){return e[0]+(n?",":" ")+e[1]}));return i+=(n?"":"")+a.join(" ")+(n?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var r="",n=t.projection||"EPSG:4326";switch(t.type){case"Point":r+=a(t.coordinates,n,e);break;case"MultiPoint":r+='',t.coordinates.forEach((function(t){t&&(r+="",r+=a(t,n,e),r+="")})),r+="";break;case"LineString":r+=l(t.coordinates,n,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=l(t,n,e),r+="")})),r+="";break;case"Polygon":r+=s(t.coordinates,n,e);break;case"MultiPolygon":var u="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=s(t,n,e),r+="")})),r+=""}return r}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=n.head,i=n.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},u=function(e){return i(e,"featureTypes[0].properties")},c=function(e,t){return o((u(t)||[]).filter((function(t){return t.name===e})))},p=function(e){return e.targetNamespace},f=function(e){return 0===e.type.indexOf("gml:")},d=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,r=e.properties,n=arguments.length>1?arguments[1]:void 0;return d(f(n)?t:r[n.name],n)};e.exports={schemaLocation:p,isGeometryType:f,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(p(e),'"')},getValue:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=f(c(t,r));return o?e?s(n,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((u(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:u,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return u(t).map((function(t){return m(e,t)}))},isValidProperty:m,isValidValueForPropertyName:function(e,t,r){return d(e,c(t,r))},isValidValue:d}},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/leaflet/overview.css":function(e,t,r){(e.exports=r("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .leaflet-control-minimap {\r\n border:solid rgba(255, 255, 255, 1.0) 4px;\r\n box-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n border-radius: 3px;\r\n background: #f8f8f9;\r\n transition: all .2s;\r\n}\r\n.msgapi .leafletbottom.leafletright, .msgapi .leaflet-control-minimap{\r\n position:relative;\r\n bottom:5px;\r\n}\r\n.msgapi .leaflet-control-minimap a {\r\n background-color: rgba(255, 255, 255, 1.0);\r\n background-repeat: no-repeat;\r\n z-index: 99999;\r\n transition: all .2s;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-bottomright {\r\n -webkit-transform: rotate(180deg);\r\n transform: rotate(180deg);\r\n border-radius: 0px;\r\n bottom: -3px;\r\n right: -3px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-topleft {\r\n -webkit-transform: rotate(0deg);\r\n transform: rotate(0deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-bottomleft {\r\n -webkit-transform: rotate(270deg);\r\n transform: rotate(270deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap a.minimized-topright {\r\n -webkit-transform: rotate(90deg);\r\n transform: rotate(90deg);\r\n border-radius: 0px;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display{\r\n background-image: url("+r("./MapStore2/web/client/components/map/leaflet/img/toggle.svg")+");\r\n background-size: cover;\r\n position: absolute;\r\n border-radius: 3px 0px 0px 0px;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap-toggle-display{\r\n background-image: url("+r("./MapStore2/web/client/components/map/leaflet/img/toggle.png")+");\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-bottomright {\r\n bottom: 0;\r\n right: 0;\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-topleft{\r\n top: 0;\r\n left: 0;\r\n -webkit-transform: rotate(180deg);\r\n transform: rotate(180deg);\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-bottomleft{\r\n bottom: 0;\r\n left: 0;\r\n -webkit-transform: rotate(90deg);\r\n transform: rotate(90deg);\r\n}\r\n\r\n.msgapi .leaflet-control-minimap-toggle-display-topright{\r\n top: 0;\r\n right: 0;\r\n -webkit-transform: rotate(270deg);\r\n transform: rotate(270deg);\r\n}\r\n\r\n/* Old IE */\r\n.msgapi .leaflet-oldie .leaflet-control-minimap {\r\n border: 1px solid #999;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap a {\r\n background-color: #fff;\r\n}\r\n\r\n.msgapi .leaflet-oldie .leaflet-control-minimap a.minimized {\r\n filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/leaflet-simple-graticule/L.SimpleGraticule.css":function(e,t,r){(e.exports=r("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .leaflet-grid-label .gridlabel-vert {\n margin-left: 8px;\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.msgapi .leaflet-grid-label .gridlabel-vert,\n.msgapi .leaflet-grid-label .gridlabel-horiz {\n padding-left:2px;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n",""])},"./node_modules/leaflet-plugins/layer/tile/Bing.js":function(e,t){L.BingLayer=L.TileLayer.extend({options:{subdomains:[0,1,2,3],type:"Aerial",attribution:"Bing",culture:""},initialize:function(e,t){L.Util.setOptions(this,t),this._key=e,this._url=null,this._providers=[],this.metaRequested=!1},tile2quad:function(e,t,r){for(var n="",o=r;o>0;o--){var i=0,a=1<=n.zoomMin&&e.intersects(n.bounds)?(!n.active&&this._map.attributionControl&&this._map.attributionControl.addAttribution(n.attrib),n.active=!0):(n.active&&this._map.attributionControl&&this._map.attributionControl.removeAttribution(n.attrib),n.active=!1)}},onAdd:function(e){this.loadMetadata(),L.TileLayer.prototype.onAdd.apply(this,[e])},onRemove:function(e){for(var t=0;t'+t+""})})},addOriginLabel:function(){return n.marker([0,0],{icon:n.divIcon({iconSize:[0,0],className:"leaflet-grid-label",html:'
(0,0)
'})})}});e.exports=o},"./node_modules/leaflet.gridlayer.googlemutant/Leaflet.GoogleMutant.js":function(e,t){L.GridLayer.GoogleMutant=L.GridLayer.extend({options:{minZoom:0,maxZoom:23,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",opacity:1,continuousWorld:!1,noWrap:!1,type:"roadmap",maxNativeZoom:21},initialize:function(e){L.GridLayer.prototype.initialize.call(this,e),this._ready=!!window.google&&!!window.google.maps&&!!window.google.maps.Map,this._GAPIPromise=this._ready?Promise.resolve(window.google):new Promise((function(e,t){var r=0,n=null;n=setInterval((function(){return r>=10?(clearInterval(n),t(new Error("window.google not found after 10 attempts"))):window.google&&window.google.maps&&window.google.maps.Map?(clearInterval(n),e(window.google)):void r++}),500)})),this._tileCallbacks={},this._freshTiles={},this._imagesPerTile="hybrid"===this.options.type?2:1},onAdd:function(e){L.GridLayer.prototype.onAdd.call(this,e),this._initMutantContainer(),this._GAPIPromise.then(function(){if(this._ready=!0,this._map=e,this._initMutant(),e.on("viewreset",this._reset,this),e.on("move",this._update,this),e.on("zoomend",this._handleZoomAnim,this),e.on("resize",this._resize,this),google.maps.event.addListenerOnce(this._mutant,"idle",function(){this._checkZoomLevels(),this._mutantIsReady=!0}.bind(this)),e._controlCorners.bottomright.style.marginBottom="20px",e._controlCorners.bottomleft.style.marginBottom="20px",this._reset(),this._update(),this._subLayers)for(var t in this._subLayers)this._subLayers[t].setMap(this._mutant)}.bind(this))},onRemove:function(e){L.GridLayer.prototype.onRemove.call(this,e),e._container.removeChild(this._mutantContainer),this._mutantContainer=void 0,google.maps.event.clearListeners(e,"idle"),google.maps.event.clearListeners(this._mutant,"idle"),e.off("viewreset",this._reset,this),e.off("move",this._update,this),e.off("zoomend",this._handleZoomAnim,this),e.off("resize",this._resize,this),e._controlCorners&&(e._controlCorners.bottomright.style.marginBottom="0em",e._controlCorners.bottomleft.style.marginBottom="0em")},getAttribution:function(){return this.options.attribution},setOpacity:function(e){this.options.opacity=e,e<1&&L.DomUtil.setOpacity(this._mutantContainer,e)},setElementSize:function(e,t){e.style.width=t.x+"px",e.style.height=t.y+"px"},addGoogleLayer:function(e,t){return this._subLayers||(this._subLayers={}),this._GAPIPromise.then(function(){var r=new(0,google.maps[e])(t);return r.setMap(this._mutant),this._subLayers[e]=r,r}.bind(this))},removeGoogleLayer:function(e){var t=this._subLayers&&this._subLayers[e];t&&(t.setMap(null),delete this._subLayers[e])},_initMutantContainer:function(){this._mutantContainer||(this._mutantContainer=L.DomUtil.create("div","leaflet-google-mutant leaflet-top leaflet-left"),this._mutantContainer.id="_MutantContainer_"+L.Util.stamp(this._mutantContainer),this._mutantContainer.style.zIndex="800",this._mutantContainer.style.pointerEvents="none",this._map.getContainer().appendChild(this._mutantContainer)),this.setOpacity(this.options.opacity),this.setElementSize(this._mutantContainer,this._map.getSize()),this._attachObserver(this._mutantContainer)},_initMutant:function(){if(this._ready&&this._mutantContainer){this._mutantCenter=new google.maps.LatLng(0,0);var e=new google.maps.Map(this._mutantContainer,{center:this._mutantCenter,zoom:0,tilt:0,mapTypeId:this.options.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,styles:this.options.styles||{},backgroundColor:"transparent"});this._mutant=e,google.maps.event.addListenerOnce(e,"idle",function(){for(var e=this._mutantContainer.querySelectorAll("a"),t=0;t1&&(e.style.zIndex=1,n=1)):((r=e.src.match(this._satRegexp))&&(t={x:r[1],y:r[2],z:r[3]}),n=0),t){var o=this._tileCoordsToKey(t);e.style.position="absolute",e.style.visibility="hidden";var i=o+"/"+n;if(this._freshTiles[i]=e,i in this._tileCallbacks&&this._tileCallbacks[i])this._tileCallbacks[i].pop()(e),this._tileCallbacks[i].length||delete this._tileCallbacks[i];else if(this._tiles[o]){var a=this._tiles[o].el,s=0===n?a.firstChild:a.firstChild.nextSibling,l=this._clone(e);a.replaceChild(l,s)}}else e.src.match(this._staticRegExp)&&(e.style.visibility="hidden")},createTile:function(e,t){var r=this._tileCoordsToKey(e),n=L.DomUtil.create("div");n.dataset.pending=this._imagesPerTile,t=t.bind(this,null,n);for(var o=0;othis.options.maxNativeZoom)&&this._setMaxNativeZoom(t)},_setMaxNativeZoom:function(e){e!=this.options.maxNativeZoom&&(this.options.maxNativeZoom=e,this._resetView())},_reset:function(){this._initContainer()},_update:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t);var r=this._map.getZoom(),n=r!==Math.round(r),o=this._mutant.getZoom();n||r==o||(this._mutant.setZoom(r),this._mutantIsReady&&this._checkZoomLevels())}L.GridLayer.prototype._update.call(this)},_resize:function(){var e=this._map.getSize();this._mutantContainer.style.width===e.x&&this._mutantContainer.style.height===e.y||(this.setElementSize(this._mutantContainer,e),this._mutant&&google.maps.event.trigger(this._mutant,"resize"))},_handleZoomAnim:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t),this._mutant.setZoom(Math.round(this._map.getZoom()))}},_removeTile:function(e){if(this._mutant)return setTimeout(this._pruneTile.bind(this,e),1e3),L.GridLayer.prototype._removeTile.call(this,e)},_pruneTile:function(e){for(var t=this._mutant.getZoom(),r=e.split(":")[2],n=this._mutant.getBounds(),o=n.getSouthWest(),i=n.getNorthEast(),a=L.latLngBounds([[o.lat(),o.lng()],[i.lat(),i.lng()]]),s=0;s=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,t.NonTiledLayer.prototype.onAdd.call(this,e)},getImageUrl:function(e,r,n){var o=this.wmsParams;o.width=r,o.height=n;var i=this._crs.project(e.getNorthWest()),a=this._crs.project(e.getSouthEast()),s=this._wmsUrl,l=l=(this._wmsVersion>=1.3&&this._crs===t.CRS.EPSG4326?[a.y,i.x,i.y,a.x]:[i.x,a.y,a.x,i.y]).join(",");return s+t.Util.getParamString(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+l},setParams:function(e,r){return t.extend(this.wmsParams,e),r||this.redraw(),this}}),t.nonTiledLayer.wms=function(e,r){return new t.NonTiledLayer.WMS(e,r)},r.exports=t.NonTiledLayer.WMS}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,r,n){(function(e){"use strict";var t="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.NonTiledLayer=(t.Layer||t.Class).extend({includes:t.Evented||t.Mixin.Events,emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",options:{attribution:"",opacity:1,zIndex:void 0,minZoom:0,maxZoom:18,pointerEvents:null,errorImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",bounds:t.latLngBounds([-85.05,-180],[85.05,180]),useCanvas:void 0},key:"",initialize:function(e){t.setOptions(this,e)},onAdd:function(e){this._map=e,void 0===this._zoomAnimated&&(this._zoomAnimated=t.DomUtil.TRANSITION&&t.Browser.any3d&&!t.Browser.mobileOpera&&this._map.options.zoomAnimation),t.version<"1.0"&&this._map.on(this.getEvents(),this),this._div||(this._div=t.DomUtil.create("div","leaflet-image-layer"),this.options.pointerEvents&&(this._div.style["pointer-events"]=this.options.pointerEvents),void 0!==this.options.zIndex&&(this._div.style.zIndex=this.options.zIndex),void 0!==this.options.opacity&&(this._div.style.opacity=this.options.opacity)),this.getPane().appendChild(this._div);var r=!!window.HTMLCanvasElement;void 0===this.options.useCanvas?this._useCanvas=r:this._useCanvas=this.options.useCanvas,this._useCanvas?(this._bufferCanvas=this._initCanvas(),this._currentCanvas=this._initCanvas()):(this._bufferImage=this._initImage(),this._currentImage=this._initImage()),this._update()},getPane:function(){return t.Layer?t.Layer.prototype.getPane.call(this):(this.options.pane?this._pane=this.options.pane:this._pane=this._map.getPanes().overlayPane,this._pane)},onRemove:function(e){t.version<"1.0"&&this._map.off(this.getEvents(),this),this.getPane().removeChild(this._div),this._useCanvas?(this._div.removeChild(this._bufferCanvas),this._div.removeChild(this._currentCanvas)):(this._div.removeChild(this._bufferImage),this._div.removeChild(this._currentImage))},addTo:function(e){return e.addLayer(this),this},_setZoom:function(){this._useCanvas?(this._currentCanvas._bounds&&this._resetImageScale(this._currentCanvas,!0),this._bufferCanvas._bounds&&this._resetImageScale(this._bufferCanvas)):(this._currentImage._bounds&&this._resetImageScale(this._currentImage,!0),this._bufferImage._bounds&&this._resetImageScale(this._bufferImage))},getEvents:function(){var e={moveend:this._update};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),t.version>="1.0"&&(e.zoom=this._setZoom),e},getElement:function(){return this._div},setOpacity:function(e){return this.options.opacity=e,this._div&&t.DomUtil.setOpacity(this._div,this.options.opacity),this},setZIndex:function(e){return e&&(this.options.zIndex=e,this._div&&(this._div.style.zIndex=e)),this},bringToFront:function(){return this._div&&this.getPane().appendChild(this._div),this},bringToBack:function(){return this._div&&this.getPane().insertBefore(this._div,this.getPane().firstChild),this},getAttribution:function(){return this.options.attribution},_initCanvas:function(){var e=t.DomUtil.create("canvas","leaflet-image-layer");return this._div.appendChild(e),e._image=new Image,this._ctx=e.getContext("2d"),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e._image,{onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},_initImage:function(){var e=t.DomUtil.create("img","leaflet-image-layer");return this._div.appendChild(e),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e,{galleryimg:"no",onselectstart:t.Util.falseFn,onmousemove:t.Util.falseFn,onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},redraw:function(){return this._map&&this._update(),this},_animateZoom:function(e){this._useCanvas?(this._currentCanvas._bounds&&this._animateImage(this._currentCanvas,e),this._bufferCanvas._bounds&&this._animateImage(this._bufferCanvas,e)):(this._currentImage._bounds&&this._animateImage(this._currentImage,e),this._bufferImage._bounds&&this._animateImage(this._bufferImage,e))},_animateImage:function(e,r){if(void 0===t.DomUtil.setTransform){var n=this._map,o=e._scale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),l=n._latLngToNewLayerPoint(a,r.zoom,r.center)._subtract(s),u=s._add(l._multiplyBy(.5*(1-1/o)));e.style[t.DomUtil.TRANSFORM]=t.DomUtil.getTranslateString(u)+" scale("+o+") "}else n=this._map,o=e._scale*e._sscale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),t.DomUtil.setTransform(e,s,o);e._lastScale=o},_resetImageScale:function(e,r){var n=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),o=e._orgBounds.getSize().y,i=n.getSize().y/o;e._sscale=i,t.DomUtil.setTransform(e,n.min,i)},_resetImage:function(e){var r=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),n=r.getSize();t.DomUtil.setPosition(e,r.min),e._orgBounds=r,e._sscale=1,this._useCanvas?(e.width=n.x,e.height=n.y):(e.style.width=n.x+"px",e.style.height=n.y+"px")},_getClippedBounds:function(){var e=this._map.getBounds(),r=e.getSouth(),n=e.getNorth(),o=e.getWest(),i=e.getEast(),a=this.options.bounds.getSouth(),s=this.options.bounds.getNorth(),l=this.options.bounds.getWest(),u=this.options.bounds.getEast();rs&&(n=s),ou&&(i=u);var c=new t.LatLng(n,o),p=new t.LatLng(r,i);return new t.LatLngBounds(c,p)},_update:function(){var e,r=this._getClippedBounds(),n=this._map.latLngToContainerPoint(r.getNorthWest()),o=this._map.latLngToContainerPoint(r.getSouthEast()),i=o.x-n.x,a=o.y-n.y;if(this._useCanvas?(this._bufferCanvas._scale=this._bufferCanvas._lastScale,this._currentCanvas._scale=this._currentCanvas._lastScale=1,this._bufferCanvas._sscale=1,this._currentCanvas._bounds=r,this._resetImage(this._currentCanvas),e=this._currentCanvas._image,t.DomUtil.setOpacity(e,0)):(this._bufferImage._scale=this._bufferImage._lastScale,this._currentImage._scale=this._currentImage._lastScale=1,this._bufferImage._sscale=1,this._currentImage._bounds=r,this._resetImage(this._currentImage),e=this._currentImage,t.DomUtil.setOpacity(e,0)),this._map.getZoom()this.options.maxZoom||i<32||a<32)return this._div.style.visibility="hidden",e.src=this.emptyImageUrl,this.key=e.key="",void(e.tag=null);this.fire("loading"),this.key=r.getNorthWest()+", "+r.getSouthEast()+", "+i+", "+a,this.getImageUrl?(e.src=this.getImageUrl(r,i,a),e.key=this.key):this.getImageUrlAsync(r,i,a,this.key,(function(t,r,n){e.key=t,e.src=r,e.tag=n}))},_onImageError:function(e){this.fire("error",e),t.DomUtil.addClass(e.target,"invalid"),e.target.src!==this.options.errorImageUrl&&(e.target.src=this.options.errorImageUrl)},_onImageLoad:function(e){(e.target.src===this.options.errorImageUrl||(t.DomUtil.removeClass(e.target,"invalid"),e.target.key&&e.target.key===this.key))&&(this._onImageDone(e),this.fire("load",e))},_onImageDone:function(e){if(this._useCanvas)this._renderCanvas(e);else{t.DomUtil.setOpacity(this._currentImage,1),t.DomUtil.setOpacity(this._bufferImage,0),this._addInteraction&&this._currentImage.tag&&this._addInteraction(this._currentImage.tag);var r=this._bufferImage;this._bufferImage=this._currentImage,this._currentImage=r}""!==e.target.key&&(this._div.style.visibility="visible")},_renderCanvas:function(e){this._currentCanvas.getContext("2d").drawImage(this._currentCanvas._image,0,0),t.DomUtil.setOpacity(this._currentCanvas,1),t.DomUtil.setOpacity(this._bufferCanvas,0),this._addInteraction&&this._currentCanvas._image.tag&&this._addInteraction(this._currentCanvas._image.tag);var r=this._bufferCanvas;this._bufferCanvas=this._currentCanvas,this._currentCanvas=r}}),t.nonTiledLayer=function(){return new t.NonTiledLayer},r.exports=t.NonTiledLayer}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2,1])(2)}).call(this,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/lrucache/index.js":function(e,t,r){var n,o,i;!function(r,a){"use strict";"object"==typeof e.exports?e.exports=a():(o=[],void 0===(i="function"==typeof(n=a)?n.apply(t,o):n)||(e.exports=i))}("object"==typeof window&&window,(function(){"use strict";function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new r(t)}var t=e.prototype;function r(e){this.capacity=e>0?+e:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,this.data=Object.create?Object.create(null):{},this.hash=Object.create?Object.create(null):{},this.linkedList=new n}function n(){this.length=0,this.head=null,this.end=null}function o(e){this.key=e,this.p=null,this.n=null}function i(e,t){t!==e.head&&(e.end?e.end===t&&(e.end=t.n):e.end=t,a(t.n,t.p),a(t,e.head),e.head=t,e.head.n=null)}function a(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}return t.get=function(e){var t=this._LRUCacheState,r=t.hash[e];if(r)return i(t.linkedList,r),t.data[e]},t.set=function(e,t){var r=this._LRUCacheState,n=r.hash[e];return void 0===t||(n||(r.hash[e]=new o(e),r.linkedList.length+=1,n=r.hash[e]),i(r.linkedList,n),r.data[e]=t,r.linkedList.length>r.capacity&&this.remove(r.linkedList.end.key)),this},t.update=function(e,t){return this.has(e)&&this.set(e,t(this.get(e))),this},t.remove=function(e){var t=this._LRUCacheState,r=t.hash[e];return r?(r===t.linkedList.head&&(t.linkedList.head=r.p),r===t.linkedList.end&&(t.linkedList.end=r.n),a(r.n,r.p),delete t.hash[e],delete t.data[e],t.linkedList.length-=1,this):this},t.removeAll=function(){return this._LRUCacheState=new r(this._LRUCacheState.capacity),this},t.info=function(){var e=this._LRUCacheState;return{capacity:e.capacity,length:e.linkedList.length}},t.keys=function(){for(var e=[],t=this._LRUCacheState.linkedList.head;t;)e.push(t.key),t=t.p;return e},t.has=function(e){return!!this._LRUCacheState.hash[e]},t.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key},t.popStale=function(){var e=this.staleKey();if(!e)return null;var t=[e,this._LRUCacheState.data[e]];return this.remove(e),t},e}))},"./node_modules/turf-center/index.js":function(e,t,r){var n=r("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=r("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=n(e),r=(t[0]+t[2])/2,i=(t[1]+t[3])/2;return o([r,i])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,r){var n=r("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return n(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=l>e[1]&&e[0]<(s-i)*(e[1]-a)/(l-a)+i&&(r=!r)}return r}e.exports=function(e,t){var r=n.getCoord(e),i=t.geometry.coordinates;"Polygon"===t.geometry.type&&(i=[i]);for(var a=0,s=!1;ao?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=o?e:r(e,t,n)}},"./MapStore2/node_modules/lodash/_charsEndIndex.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},"./MapStore2/node_modules/lodash/_charsStartIndex.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){for(var n=-1,o=e.length;++n-1;);return n}},"./MapStore2/node_modules/lodash/_cloneDataView.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_cloneArrayBuffer.js");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},"./MapStore2/node_modules/lodash/_cloneRegExp.js":function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},"./MapStore2/node_modules/lodash/_cloneSymbol.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_Symbol.js"),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},"./MapStore2/node_modules/lodash/_copySymbols.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/_getSymbols.js");e.exports=function(e,t){return r(e,o(e),t)}},"./MapStore2/node_modules/lodash/_copySymbolsIn.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_copyObject.js"),o=n("./MapStore2/node_modules/lodash/_getSymbolsIn.js");e.exports=function(e,t){return r(e,o(e),t)}},"./MapStore2/node_modules/lodash/_createFlow.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_LodashWrapper.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js"),i=n("./MapStore2/node_modules/lodash/_getData.js"),a=n("./MapStore2/node_modules/lodash/_getFuncName.js"),s=n("./MapStore2/node_modules/lodash/isArray.js"),l=n("./MapStore2/node_modules/lodash/_isLaziable.js");e.exports=function(e){return o((function(t){var n=t.length,o=n,c=r.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if("function"!=typeof u)throw new TypeError("Expected a function");if(c&&!d&&"wrapper"==a(u))var d=new r([],!0)}for(o=d?o:n;++o2?n-2:1,o&&o<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!M(n))return e(n,Object(t));var r=[];return T(I(t),(function(e){M(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),T(r,(function(e){var t=e[1];M(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:A(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function G(e,t){if(f){var n=r.iterateeRearg[e];if(n)return function(e,t){return W(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(R(a(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return W(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function z(e,t,n){if(m&&(_||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=r&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function U(e,t,n){return y&&n>1&&(j||!r.skipRearg[e])?R(t,r.methodRearg[e]||r.aryRearg[n]):t}function B(e,t){for(var n=-1,r=(t=F(t)).length,o=r-1,i=E(Object(e)),a=i;null!=a&&++n1?C(t,n):t}(0,o=G(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?C(o,1):function(){return t.apply(this,arguments)}),o.convert=V(i,t),o.placeholder=t.placeholder=n,o}if(!p)return q(n,c,b);var Y=c,H=[];return T(N,(function(e){T(r.aryMethod[e],(function(e){var t=Y[r.remap[e]||e];t&&H.push([e,q(e,t,Y)])}))})),T(I(Y),(function(e){var t=Y[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=V(e,t),H.push([e,t])}})),T(H,(function(e){Y[e[0]]=e[1]})),Y.convert=function(e){return Y.runInContext.convert(e)(void 0)},Y.placeholder=Y,T(I(Y),(function(e){T(r.realToAlias[e]||[],(function(t){Y[t]=Y[e]}))})),Y}},"./MapStore2/node_modules/lodash/fp/_mapping.js":function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./MapStore2/node_modules/lodash/fp/_util.js":function(e,t,n){e.exports={ary:n("./MapStore2/node_modules/lodash/ary.js"),assign:n("./MapStore2/node_modules/lodash/_baseAssign.js"),clone:n("./MapStore2/node_modules/lodash/clone.js"),curry:n("./MapStore2/node_modules/lodash/curry.js"),forEach:n("./MapStore2/node_modules/lodash/_arrayEach.js"),isArray:n("./MapStore2/node_modules/lodash/isArray.js"),isError:n("./MapStore2/node_modules/lodash/isError.js"),isFunction:n("./MapStore2/node_modules/lodash/isFunction.js"),isWeakMap:n("./MapStore2/node_modules/lodash/isWeakMap.js"),iteratee:n("./MapStore2/node_modules/lodash/iteratee.js"),keys:n("./MapStore2/node_modules/lodash/_baseKeys.js"),rearg:n("./MapStore2/node_modules/lodash/rearg.js"),toInteger:n("./MapStore2/node_modules/lodash/toInteger.js"),toPath:n("./MapStore2/node_modules/lodash/toPath.js")}},"./MapStore2/node_modules/lodash/fp/compose.js":function(e,t,n){e.exports=n("./MapStore2/node_modules/lodash/fp/flowRight.js")},"./MapStore2/node_modules/lodash/fp/convert.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/_baseConvert.js"),o=n("./MapStore2/node_modules/lodash/fp/_util.js");e.exports=function(e,t,n){return r(o,e,t,n)}},"./MapStore2/node_modules/lodash/fp/flowRight.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("flowRight",n("./MapStore2/node_modules/lodash/flowRight.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/placeholder.js":function(e,t){e.exports={}},"./MapStore2/node_modules/lodash/fp/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("set",n("./MapStore2/node_modules/lodash/set.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/fp/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/fp/convert.js")("unset",n("./MapStore2/node_modules/lodash/unset.js"));r.placeholder=n("./MapStore2/node_modules/lodash/fp/placeholder.js"),e.exports=r},"./MapStore2/node_modules/lodash/isError.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseGetTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js"),i=n("./MapStore2/node_modules/lodash/isPlainObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},"./MapStore2/node_modules/lodash/isFinite.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js").isFinite;e.exports=function(e){return"number"==typeof e&&r(e)}},"./MapStore2/node_modules/lodash/isMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsMap.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),i=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isMap,s=a?o(a):r;e.exports=s},"./MapStore2/node_modules/lodash/isSet.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseIsSet.js"),o=n("./MapStore2/node_modules/lodash/_baseUnary.js"),i=n("./MapStore2/node_modules/lodash/_nodeUtil.js"),a=i&&i.isSet,s=a?o(a):r;e.exports=s},"./MapStore2/node_modules/lodash/isWeakMap.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_getTag.js"),o=n("./MapStore2/node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},"./MapStore2/node_modules/lodash/iteratee.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseClone.js"),o=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},"./MapStore2/node_modules/lodash/last.js":function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"./MapStore2/node_modules/lodash/omit.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_baseClone.js"),i=n("./MapStore2/node_modules/lodash/_baseUnset.js"),a=n("./MapStore2/node_modules/lodash/_castPath.js"),s=n("./MapStore2/node_modules/lodash/_copyObject.js"),l=n("./MapStore2/node_modules/lodash/_customOmitClone.js"),c=n("./MapStore2/node_modules/lodash/_flatRest.js"),u=n("./MapStore2/node_modules/lodash/_getAllKeysIn.js"),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_createWrap.js"),o=n("./MapStore2/node_modules/lodash/_flatRest.js"),i=o((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=i},"./MapStore2/node_modules/lodash/set.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},"./MapStore2/node_modules/lodash/slice.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseSlice.js"),o=n("./MapStore2/node_modules/lodash/_isIterateeCall.js"),i=n("./MapStore2/node_modules/lodash/toInteger.js");e.exports=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&o(e,t,n)?(t=0,n=a):(t=null==t?0:i(t),n=void 0===n?a:i(n)),r(e,t,n)):[]}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_arrayMap.js"),o=n("./MapStore2/node_modules/lodash/_copyArray.js"),i=n("./MapStore2/node_modules/lodash/isArray.js"),a=n("./MapStore2/node_modules/lodash/isSymbol.js"),s=n("./MapStore2/node_modules/lodash/_stringToPath.js"),l=n("./MapStore2/node_modules/lodash/_toKey.js"),c=n("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return i(e)?r(e,l):a(e)?[e]:o(s(c(e)))}},"./MapStore2/node_modules/lodash/trim.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseToString.js"),o=n("./MapStore2/node_modules/lodash/_castSlice.js"),i=n("./MapStore2/node_modules/lodash/_charsEndIndex.js"),a=n("./MapStore2/node_modules/lodash/_charsStartIndex.js"),s=n("./MapStore2/node_modules/lodash/_stringToArray.js"),l=n("./MapStore2/node_modules/lodash/toString.js"),c=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=l(e))&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var u=s(e),d=s(t),p=a(u,d),f=i(u,d)+1;return o(u,p,f).join("")}},"./MapStore2/node_modules/lodash/unset.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||r(e,t)}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"q",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"t",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"u",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"A",(function(){return v})),n.d(t,"w",(function(){return _})),n.d(t,"x",(function(){return j})),n.d(t,"z",(function(){return O})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"y",(function(){return E})),n.d(t,"g",(function(){return C})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"v",(function(){return P})),n.d(t,"N",(function(){return M})),n.d(t,"H",(function(){return L})),n.d(t,"I",(function(){return I})),n.d(t,"P",(function(){return R})),n.d(t,"E",(function(){return A})),n.d(t,"O",(function(){return F})),n.d(t,"K",(function(){return N})),n.d(t,"Q",(function(){return D})),n.d(t,"C",(function(){return G})),n.d(t,"T",(function(){return z})),n.d(t,"L",(function(){return U})),n.d(t,"U",(function(){return V})),n.d(t,"M",(function(){return W})),n.d(t,"W",(function(){return q})),n.d(t,"Y",(function(){return Y})),n.d(t,"J",(function(){return H})),n.d(t,"Z",(function(){return K})),n.d(t,"V",(function(){return Z})),n.d(t,"D",(function(){return X})),n.d(t,"F",(function(){return J})),n.d(t,"B",(function(){return Q})),n.d(t,"X",(function(){return $})),n.d(t,"G",(function(){return ee})),n.d(t,"R",(function(){return te})),n.d(t,"S",(function(){return ne}));var r=n("./MapStore2/web/client/api/Nominatim.js"),o="LOAD_FEATURE_INFO",i="ERROR_FEATURE_INFO",a="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",l="NEW_MAPINFO_REQUEST",c="PURGE_MAPINFO_RESULTS",u="CHANGE_MAPINFO_FORMAT",d="SHOW_MAPINFO_MARKER",p="HIDE_MAPINFO_MARKER",f="SHOW_REVERSE_GEOCODE",h="HIDE_REVERSE_GEOCODE",m="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",y="CLEAR_WARNING",b="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",_="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",j="TOGGLE_MAPINFO_STATE",O="UPDATE_CENTER_TO_MARKER",S="IDENTIFY:CHANGE_PAGE",w="IDENTIFY:CLOSE_IDENTIFY",x="IDENTIFY:CHANGE_FORMAT",E="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",C="IDENTIFY:EDIT_LAYER_FEATURES",T="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",k="IDENTIFY:SET_MAP_TRIGGER",P="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI";function M(e,t,n,r,i){return{type:o,data:t,reqId:e,requestParams:n,layerMetadata:r,layer:i}}function L(e,t,n,r){return{type:i,error:t,reqId:e,requestParams:n,layerMetadata:r}}function I(e,t,n,r){return{type:a,reqId:e,exceptions:t,requestParams:n,layerMetadata:r}}function R(){return{type:g}}function A(){return{type:y}}function F(e,t){return{type:l,reqId:e,request:t}}function N(e,t,n,r){return{type:m,layer:e,request:t,metadata:n,queryableLayers:r}}function D(){return{type:c}}function G(e){return{type:u,infoFormat:e}}function z(){return{type:d}}function U(){return{type:p}}function B(e){return{type:f,reverseGeocodeData:e.data}}function V(e){return function(t){r.default.reverseGeocode(e).then((function(e){t(B(e))})).catch((function(e){t(B(e))}))}}function W(){return{type:h}}function q(){return{type:j}}function Y(e){return{type:O,status:e}}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:b,point:e,layer:t,filterNameList:n,overrideParams:r,itemId:o}}function K(e){return{type:v,point:e}}function Z(e){return{type:_,enabled:e}}function X(e){return{type:S,index:e}}var J=function(){return{type:w}},Q=function(e){return{type:x,format:e}},$=function(e){return{type:E,showCoordinateEditor:e}},ee=function(e){return{type:C,layer:e}},te=function(e){return{type:T,query:e}},ne=function(e){return{type:k,trigger:e}}},"./MapStore2/web/client/api/Nominatim.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./node_modules/url/url.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),c={format:"json",bounded:0,polygon_geojson:1,priority:5},u={geocode:function(e,t){var n=l()({q:e},c,t||{}),r=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org",query:n});return o.a.get(r)},reverseGeocode:function(e,t){var n=l()({lat:e.lat,lon:e.lng},t||{},c),r=a.a.format({protocol:"https",host:"nominatim.openstreetmap.org/reverse",query:n});return o.a.get(r)}};t.default=u},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return h})),n.d(t,"getFeatureSimple",(function(){return m})),n.d(t,"getCapabilitiesURL",(function(){return g})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return b})),n.d(t,"getCapabilities",(function(){return v})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return _})),n.d(t,"describeFeatureType",(function(){return j}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./node_modules/url/url.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s);function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){return(u="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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=a.a.parse(e,!0);return a.a.format(l()({},o,{query:l()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,i=c(n,["version"]),s=a.a.parse(e,!0);return a.a.format(l()({},s,{query:l()(p({service:"WFS",typeName:t,version:o,request:"GetFeature"},i),s.query)}))},b=function(e,t,n){return o.a.get(y(e,t,n))},v=function(e){return o.a.get(g(e))},_=function(e,t){var r=a.a.parse(e,!0),i=a.a.format(l()({},r,{query:l()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(i).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},j=function(e,t){return o.a.get(h(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/DefaultViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./MapStore2/web/client/components/I18N/HTML.jsx"),c=n("./MapStore2/web/client/components/I18N/Message.jsx"),u=n("./node_modules/react-bootstrap/es/index.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(t.prototype,n),r&&d(t,r),i}(a.a.Component);y(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),y(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(r.withHandlers)({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),a=Object(r.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function l(e){return(l="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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,_=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&&d(e,t)}(a,e);var t,n,r,i=p(a);function a(){return c(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),n=t&&2===t.length?v.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(b,"$1").trim();return o.a.createElement(s.a,{html:n+r})}}])&&u(t.prototype,n),r&&u(t,r),a}(o.a.Component);m=_,g="propTypes",y={response:a.a.string},g in m?Object.defineProperty(m,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[g]=y,t.a=_},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/utils/TemplateUtils.js"),l=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),c=n("./node_modules/prop-types/index.js"),u=n.n(c),d=n("./MapStore2/web/client/utils/StringUtils.js");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=x[t]||x.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 c(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.forEach((function(t){if(t.style){var n=e.toOlFeature(t);n&&n.setStyle(t.style?Object(D.d)(t):e.toOlStyle(t.style,t.selected))}}))})),Se(je(e),"updateOnlyFeatureStyles",(function(t){e.drawLayer&&e.drawLayer.getSource().getFeatures().forEach((function(e){var n=l()(t.features).features||t.features,r=u()(n,(function(t){return t.properties.id===e.getProperties().id}));if(r){var o=Object(A.createStylesAsync)(w()(r.style));L.a.all(o).then((function(t){e.setStyle((function(){return Object(D.e)(me(me({},r),{},{style:t}))}))}))}}))})),Se(je(e),"addLayer",(function(t,n){var r,o=e.convertGeometryTypeToStyleType(t.drawMethod);r=function(e){var n=l()(t.features)&&u()(l()(t.features).features,(function(t){return t.properties.id===e.getProperties().id}))||null;if(n){var r=Object(A.createStylesAsync)(w()(n.style));return L.a.all(r).then((function(t){e.setStyle((function(){return Object(D.e)(me(me({},n),{},{style:t}))}))})),null}return Object(D.e)({style:D.a[o]})},e.geojson=new G.a,e.drawSource=new U.a,e.drawLayer=new B.a({source:e.drawSource,zIndex:1e8,style:r}),e.props.map.addLayer(e.drawLayer),n&&e.addInteractions(t);var i=l()(t.features);if(i&&i.features&&i.features.length){var a=i.features.filter((function(e){return!e.properties.isCircle||e.properties.isCircle&&!e.properties.canEdit||!t.options.drawEnabled}));return e.addFeatures(T()({},t,{features:[me(me({},i),{},{features:a})]}))}return e.addFeatures(t)})),Se(je(e),"addFeatures",(function(t){var n,r=t.features,o=t.drawMethod,i=t.options,a=e.getMapCrs();if(r.forEach((function(t){if("FeatureCollection"===t.type){var r=(new G.a).readFeatures(t);r=r.map((function(e){return Object(F.a)(e,a)})),e.drawSource=new U.a({features:r}),e.drawLayer.setSource(e.drawSource)}else{var s=null,l=t;l.geometry&&"GeometryCollection"!==l.geometry.type&&(l=Object(R.reprojectGeoJson)(l,l.featureProjection,a).geometry),"GeometryCollection"!==l.type&&("Circle"===o&&l&&(l.properties&&l.properties.center||l.center)?(s=[(s=l.properties&&l.properties.center?Object(R.reproject)(l.properties.center,"EPSG:4326",a):l.center).x,s.y],n=new z.a({geometry:e.createOLGeometry({type:"Circle",center:s,projection:"EPSG:3857",radius:l.properties&&l.properties.radius||l.radius,options:i})})):n=new z.a({geometry:e.createOLGeometry(l.geometry?l.geometry:me(me(me({},l),l.properties),{},{center:s}))}),n.setProperties(t.properties),e.drawSource.addFeature(n))}})),0===r.length&&(i.editEnabled||i.drawEnabled))i.transformToFeatureCollection?(e.drawSource=new U.a({features:(new G.a).readFeatures({type:"FeatureCollection",features:[]})}),e.drawLayer.setSource(e.drawSource)):(n=new z.a({geometry:e.createOLGeometry({type:o,coordinates:null})}),e.drawSource.addFeature(n));else{if(r[0]&&"GeometryCollection"===r[0].type){e.drawSource=new U.a({features:(new G.a).readFeatures(r[0])});var s=e.replacePolygonsWithCircles(e.drawSource.getFeatures()[0]);e.drawSource.getFeatures()[0].getGeometry().setGeometries(s),e.drawLayer.setSource(e.drawSource)}r[0]&&r[0].geometry&&"GeometryCollection"===r[0].geometry.type&&(n=Object(R.reprojectGeoJson)(r[0],i.featureProjection,a).geometry,e.drawSource=new U.a({features:(new G.a).readFeatures(n)}),e.drawSource.getFeatures()[0].set("textGeometriesIndexes",r[0].properties&&r[0].properties.textGeometriesIndexes),e.drawSource.getFeatures()[0].set("textValues",r[0].properties&&r[0].properties.textValues),e.drawSource.getFeatures()[0].set("circles",r[0].properties&&r[0].properties.circles),e.drawLayer.setSource(e.drawSource))}return e.updateFeatureStyles(r),n})),Se(je(e),"replaceFeatures",(function(t){var n;return e.drawLayer?(e.drawSource.clear(),n=e.addFeatures(t),t.style&&e.drawLayer.setStyle((function(n){var r=u()(l()(t.features).features,(function(e){return e.properties.id===n.getProperties().id}));if(r){var o=Object(A.createStylesAsync)(w()(r.style));return L.a.all(o).then((function(e){n.setStyle((function(){return Object(D.e)(me(me({},r),{},{style:e}))}))})),null}var i=e.convertGeometryTypeToStyleType(t.drawMethod);return Object(D.e)({style:D.a[i]})}))):n=e.addLayer(t,t.options&&t.options.drawEnabled||!1),n})),Se(je(e),"endDrawing",(function(t){var n=e.replaceFeatures(t);if(n){var r=e.fromOLFeature(n);"Circle"===t.drawMethod&&t&&t.features&&t.features.length&&t.features[0]&&t.features[0].radius>=0&&(r.radius=t.features[0].radius),e.props.onEndDrawing(r,t.drawOwner)}})),Se(je(e),"addDrawInteraction",(function(t,n,r,o){e.drawInteraction&&e.removeDrawInteraction(),e.drawInteraction=new V.a(e.drawPropertiesForGeometryType(t,r,e.drawSource,o)),e.props.map.disableEventListener("singleclick"),e.drawInteraction.on("drawstart",(function(){e.selectInteraction&&(e.selectInteraction.getFeatures().clear(),e.selectInteraction.setActive(!1))})),e.drawInteraction.on("drawend",(function(t){var r=t.feature.clone();if(r.set("id",P.a.v1()),"Circle"===e.props.drawMethod&&"Circle"===r.getGeometry().getType()){var o=r.getGeometry().getRadius(),i=r.getGeometry().getCenter();r.setGeometry(e.polygonFromCircle(i,o))}var a=e.fromOLFeature(r,n);e.props.onEndDrawing(a,e.props.drawOwner),e.props.options.stopAfterDrawing&&e.props.onChangeDrawingStatus("stop",e.props.drawMethod,e.props.drawOwner,e.props.features.concat([a])),e.selectInteraction&&(e.addSelectInteraction(),e.selectInteraction.setActive(!0))})),e.props.map.addInteraction(e.drawInteraction),e.setDoubleClickZoomEnabled(!1)})),Se(je(e),"toMulti",(function(e){return"Point"===e.getType()?new W.a([e.getCoordinates()]):e})),Se(je(e),"handleDrawAndEdit",(function(t,n,r,o){e.drawInteraction&&e.removeDrawInteraction(),e.drawInteraction=new V.a(e.drawPropertiesForGeometryType(Object(I.getSimpleGeomType)(t),r,Object(I.isSimpleGeomType)(t)?e.drawSource:null,o)),e.props.map.disableEventListener("singleclick"),e.drawInteraction.on("drawstart",(function(){e.selectInteraction&&(e.selectInteraction.getFeatures().clear(),e.selectInteraction.setActive(!1))})),e.drawInteraction.on("drawend",(function(r){var i=r.feature.clone(),a=P.a.v1();i.set("id",a);var s,c,d,p=i.getGeometry(),f=e.drawLayer.getSource().getFeatures(),h=e.props.features;if(e.props.options.transformToFeatureCollection){var m;if("Circle"===t){d="Polygon";var g=p.getRadius(),y=p.getCenter(),v=e.polygonCoordsFromCircle(y,g);m=e.getNewFeature(d,v),y=Object(R.reproject)(y,e.getMapCrs(),"EPSG:4326",!1);var _=o&&o.features&&o.features.length&&o.features[0]&&o.features[0].features&&o.features[0].features.length&&o.features[0].features.filter((function(e){return e.properties.isDrawing}))[0].properties.id||a;m.setProperties({isCircle:!0,radius:g,center:[y.x,y.y],id:_,crs:e.getMapCrs()})}else if("Polygon"===t){d=e.props.drawMethod;var j=p.getCoordinates();j[0].push(j[0][0]),m=e.getNewFeature(d,j)}else{d="Text"===t?"Point":e.props.drawMethod;var O=p.getCoordinates();m=e.getNewFeature(d,O),"Text"===t&&m.setProperties({isText:!0,valueText:"."})}var S=f.length>=1?pe(e.replaceCirclesWithPolygonsInFeatureColl(f)):[];m.getProperties().id||m.setProperties({id:P.a.v1()});var w=[].concat(pe(S),[m]),x=we.writeFeaturesObject(w),E=new U.a({features:(new G.a).readFeatures(x)});e.drawLayer.setSource(E);var C=Object(R.reprojectGeoJson)(x,e.getMapCrs(),"EPSG:4326");e.props.onGeometryChanged([C],e.props.drawOwner,e.props.options&&e.props.options.stopAfterDrawing?"enterEditMode":"","Text"===t,"Circle"===t),e.props.onEndDrawing(C,e.props.drawOwner),e.props.onDrawingFeatures([b()(C.features)])}else{if("Circle"===t){d="Polygon";var k=p.getRadius(),M=p.getCenter(),L=e.polygonCoordsFromCircle(M,k),A=e.toMulti(e.createOLGeometry({type:d,coordinates:L}));if(1===h.length&&h[0]&&!h[0].geometry)s=[],c=new J.default([A]);else if((s=e.toMulti(l()(f).getGeometry())).getGeometries){var F=e.replaceCirclesWithPolygons(l()(f));c=new J.default([].concat(pe(F),[A]))}else c=new J.default([s,A]);i.setGeometry(c)}else if("Text"===t||"MultiPoint"===t){var N=p.getCoordinates();d="MultiPoint";var D=e.toMulti(e.createOLGeometry({type:d,coordinates:[N]}));if(1!==h.length||h[0].geometry)if((s=e.toMulti(l()(f).getGeometry())).getGeometries){var z=e.replaceCirclesWithPolygons(l()(f));c=new J.default([].concat(pe(z),[D]))}else(c=s.clone()).appendPoint(D.getPoint(0));else s=[],c=D.clone();i.setGeometry(c)}else if(!Object(I.isSimpleGeomType)(t)){var B;c=null,s=1!==h.length||h[0].geometry?e.toMulti(l()(f).getGeometry()):e.toMulti(e.createOLGeometry({type:t,coordinates:null}));var V=f.map((function(e){return"GeometryCollection"===e.getGeometry().getType()?e.getGeometry().getGeometries():e.getGeometry()}));"GeometryCollection"===f[0].getGeometry().getType()&&(V=V[0]);var W=u()(V,(function(e){return e.getType()===t}));if(W?e.appendToMultiGeometry(t,W,p):B=e.toMulti(e.createOLGeometry({type:t,coordinates:p.getCoordinates()})),p.getType()!==Object(I.getSimpleGeomType)(s.getType())){var q=l()(f).getGeometry().getGeometries?e.replaceCirclesWithPolygons(l()(f)):[];if(W){var Y=q.map((function(e){return e.getType()===W.getType()?W:e}));c=new J.default(Y)}else c="GeometryCollection"===s.getType()?new J.default([].concat(pe(q),[B])):"Text"===t?new J.default([B]):new J.default([s,B]);i.setGeometry(c)}else i.setGeometry(W)}var H=e.props.features[0].properties;"Text"===t&&(H=T()({},e.props.features[0].properties,{textValues:(e.props.features[0].properties.textValues||[]).concat(["."]),textGeometriesIndexes:(e.props.features[0].properties.textGeometriesIndexes||[]).concat([i.getGeometry().getGeometries().length-1])})),"Circle"===t&&(H=T()({},H,{circles:(e.props.features[0].properties.circles||[]).concat([i.getGeometry().getGeometries().length-1])}));var K=e.fromOLFeature(i,n,H),Z=new U.a({features:(new G.a).readFeatures(K)});e.drawLayer.setSource(Z);var X=Object(R.reprojectGeoJson)(we.writeFeatureObject(i.clone()),e.getMapCrs(),"EPSG:4326");"Polygon"===X.geometry.type&&X.geometry.coordinates[0].push(X.geometry.coordinates[0][0]),e.props.onGeometryChanged([X],e.props.drawOwner,e.props.options&&e.props.options.stopAfterDrawing?"enterEditMode":"","Text"===t,"Circle"===t),e.props.onEndDrawing(K,e.props.drawOwner),K=Object(R.reprojectGeoJson)(K,e.getMapCrs(),"EPSG:4326");var Q=Object(I.isSimpleGeomType)(e.props.drawMethod)&&"GeometryCollection"!==e.props.features[0].geometry.type?e.props.features.map((function(t){return me(me({},t),{},{featureProjection:e.getMapCrs()})})).concat([me(me({},K),{},{type:"Feature",geometry:{type:K.type,coordinates:K.coordinates},featureProjection:e.getMapCrs(),properties:H})]):[me(me({},K),{},{properties:H})];e.props.options.stopAfterDrawing?e.props.onChangeDrawingStatus("stop",e.props.drawMethod,e.props.drawOwner,Q):e.props.onChangeDrawingStatus("replace",e.props.drawMethod,e.props.drawOwner,Q.map((function(t){return Object(R.reprojectGeoJson)(t,"EPSG:4326",e.getMapCrs())})),T()({},e.props.options,{featureProjection:e.getMapCrs()})),e.selectInteraction&&(e.addSelectInteraction(),e.selectInteraction.setActive(!0))}})),e.props.map.addInteraction(e.drawInteraction),e.setDoubleClickZoomEnabled(!1)})),Se(je(e),"drawPropertiesForGeometryType",(function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={source:e.drawSource||r,type:t,style:"Marker"===t?Object(D.b)(o.style):new Q.default({fill:new $.default({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ee.default({color:"rgba(0, 0, 0, 0.5)",lineDash:[10,10],width:2}),image:new ne.default({radius:5,stroke:new ee.default({color:"rgba(0, 0, 0, 0.7)"}),fill:new $.default({color:"rgba(255, 255, 255, 0.2)"})})}),features:new re.a,condition:oe.c},a={};switch(t){case"BBOX":a.type="LineString",a.maxPoints=2,a.geometryFunction=function(e,t){var n=t;n||(n=new q.b([]));var r=e[0],o=e[1];return n.setCoordinates([[r,[r[0],o[1]],o,[o[0],r[1]],r]]),n};break;case"Circle":a.maxPoints=100,o.options&&o.options.geodesic?a.geometryFunction=function(t,n){var r=n;r||(r=new q.b([])).setProperties({geodesicCenter:pe(t[0])},!0);var o=e.props.map.getView().getProjection().getCode(),i=pe(t).map((function(t){return e.reprojectCoordinatesToWGS84(t,o)})),a=Object(R.calculateDistance)(i,"haversine"),s=Object(q.a)(i[0],a).clone().transform("EPSG:4326",o).getCoordinates();return r.setCoordinates(s),r}:a.type=t;break;case"Marker":case"Point":case"Text":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":"LineString"===t&&(a.maxPoints=n);var s="Text"===t||"Marker"===t?"Point":t;a.type=s,a.geometryFunction=function(t,n){var r=n;return r||(r=e.createOLGeometry({type:s,coordinates:null,options:o.options})),r.setCoordinates(t),r};break;default:return{}}return T()({},i,a)})),Se(je(e),"setDoubleClickZoomEnabled",(function(t){for(var n=e.props.map.getInteractions(),r=0;r0&&e.addFeatures(t)})),Se(je(e),"addSingleClickListener",(function(e,t){return t.map.on("singleclick",e)})),Se(je(e),"addDrawOrEditInteractions",(function(t){e.state&&e.state.keySingleClickCallback&&Object(ce.b)(e.state.keySingleClickCallback);e.clean();var n,r=t.features.map((function(n){return Object(R.reprojectGeoJson)(n,t.options.featureProjection,e.getMapCrs())||{}})),o=r.every((function(e){return!!(e&&e.features&&e.features.length)})),i=r.every((function(e){return!!(e&&e.properties&&e.properties.isCircle)}));if(o)n=T()({},t,{features:r});else if(i)n=T()({},t,{features:[]});else{var a=r.reduce((function(e,t){return t.geometry?[].concat(pe(e),[me(me({},t.geometry),{},{properties:t.properties})]):e}),[]);n=T()({},t,{features:a})}e.drawLayer?(e.drawSource.clear(),e.addFeatures(n)):e.addLayer(n),t.options.editEnabled&&(e.addModifyInteraction(t),!1!==t.options.translateEnabled&&e.addTranslateInteraction(),t.options.addClickCallback&&e.setState({keySingleClickCallback:e.addSingleClickListener((function(n){if(e.drawSource&&t.options){var r,o=e.drawSource.getFeatures(),i=0,a=o&&o.length&&o.filter((function(e,t){return e.getProperties().canEdit&&(i=t),e.getProperties().canEdit}))[0]||null,s=a&&a.getGeometry()&&a.getGeometry().getCoordinates&&a.getGeometry().getCoordinates()||[],l=[],c=t.drawMethod;switch(c){case"Polygon":l=s.length?Object(N.f)(s)?[(l=(l=p()(s[0],0,s[0].length-1)).concat([n.coordinate])).concat([s[0][0]])]:s[0].length>1?[[].concat(pe(s[0]),[n.coordinate,s[0][0]])]:[[].concat(pe(s[0]),[n.coordinate])]:[[n.coordinate]],(r=e.getNewFeature(c,l)).setProperties(h()(a&&a.getProperties()||{},"geometry"));break;case"LineString":case"MultiPoint":l=s.length?[].concat(pe(s),[n.coordinate]):[n.coordinate],(r=e.getNewFeature(c,l)).setProperties(h()(a&&a.getProperties()||{},"geometry"));break;case"Circle":c="Polygon";var u=a&&a.getProperties()&&a.getProperties().radius||1e4,d=n.coordinate,f=e.polygonCoordsFromCircle(d,u);r=e.getNewFeature(c,f),d=Object(R.reproject)(d,e.getMapCrs(),"EPSG:4326",!1),r.setProperties(h()(a&&a.getProperties()||{},"geometry")),r.setProperties({isCircle:!0,radius:u,center:[d.x,d.y]});break;case"Text":c="Point",(r=e.getNewFeature(c,n.coordinate)).setProperties(h()(a&&a.getProperties()||{},"geometry")),r.setProperties({isText:!0,valueText:a&&a.getProperties()&&a.getProperties().valueText||t.options.defaultTextAnnotation||"New"});break;default:l=n.coordinate,(r=e.getNewFeature(c,l)).setProperties(h()(a&&a.getProperties()||{},"geometry"))}var m={type:"Feature",geometry:{coordinates:pe(Object(R.reprojectGeoJson)(we.writeFeaturesObject([r.clone()]),e.getMapCrs(),"EPSG:4326").features[0].geometry.coordinates),type:c},properties:me({},h()(r.getProperties(),"geometry"))};e.props.onDrawingFeatures([m]),r=Object(F.a)(r,e.getMapCrs()),o[i]=r,e.drawSource=new U.a({features:o}),e.drawLayer.setSource(e.drawSource),e.addModifyInteraction(t)}}),t)})),t.options&&t.options.selectEnabled&&e.addSelectInteraction(t.options&&t.options.selected,t),t.options.drawEnabled&&e.handleDrawAndEdit(t.drawMethod,t.options.startingPoint,t.options.maxPoints,t)})),Se(je(e),"addSelectInteraction",(function(t,n){var r;if(e.selectInteraction&&e.props.map.removeInteraction(e.selectInteraction),t&&(r=u()(e.drawSource.getFeatures(),(function(e){return e.getProperties().id===t.properties.id})))&&e.selectFeature(r),e.selectInteraction=new le.a({layers:[e.drawLayer],features:new re.a(t&&r?[r]:null)}),r){var o=e.convertGeometryTypeToStyleType(n.drawMethod);r.setStyle(Object(D.d)(me(me({},n),{},{style:me(me({},n.style),{},{type:o,highlight:!0,useSelectedStyle:n.options.useSelectedStyle})}),!1,n.features[0]&&n.features[0].properties&&n.features[0].properties.valueText&&[n.features[0].properties.valueText]||[]))}e.selectInteraction.on("select",(function(t){var n=e.selectInteraction.getFeatures().getArray(),r=[];return n.length&&(r=e.props.features.map((function(r){var o;if("FeatureCollection"===r.type&&n.length>0){var i=l()(n);if(e.selectFeature(i),i.getGeometry&&"Circle"===i.getGeometry().getType()){var a=i.getGeometry().getRadius(),s=Object(R.reproject)(i.getGeometry().getCenter(),e.getMapCrs(),"EPSG:4326");i.setProperties({center:[s.x,s.y],radius:a}),i=e.replaceCircleWithPolygon(i.clone())}return e.drawSource.getFeatures().forEach((function(t){t.getProperties().id===i.getProperties().id?e.selectFeature(i):e.deselectFeature(t)})),Object(R.reprojectGeoJson)(we.writeFeatureObject(i.clone()),e.getMapCrs(),"EPSG:4326")}return o=n.reduce((function(e,t){return t.get("id")===r.id||e}),!1),T()({},r,{selected:o,selectedFeature:t.selected})})),e.props.onSelectFeatures(r)),0===n.length?(e.props.onSelectFeatures([]),e.drawSource.getFeatures().map((function(t){return e.deselectFeature(t)})),null):null})),e.props.map.addInteraction(e.selectInteraction)})),Se(je(e),"selectFeature",(function(e){e.setProperties({selected:!0})})),Se(je(e),"deselectFeature",(function(e){e.setProperties({selected:!1})})),Se(je(e),"removeDrawInteraction",(function(){e.drawInteraction&&(e.props.map.removeInteraction(e.drawInteraction),e.drawInteraction=null,setTimeout((function(){return e.props.map.enableEventListener("singleclick")}),500),setTimeout((function(){return e.setDoubleClickZoomEnabled(!0)}),250))})),Se(je(e),"removeInteractions",(function(){e.removeDrawInteraction(),e.selectInteraction&&(e.props.map.enableEventListener("singleclick"),e.props.map.removeInteraction(e.selectInteraction)),e.modifyInteraction&&(e.props.map.removeInteraction(e.modifyInteraction),e.props.map.un("singleclick")),e.translateInteraction&&e.props.map.removeInteraction(e.translateInteraction)})),Se(je(e),"clean",(function(t){t||e.removeInteractions(),e.drawLayer&&(e.props.map.removeLayer(e.drawLayer),e.geojson=null,e.drawLayer=null,e.drawSource=null)})),Se(je(e),"fromOLFeature",(function(t,n,r){var o=t.getGeometry(),i=e.props.map.getView().getProjection().getCode(),s=o.getType();if(o.getCoordinates){var l,c=o.getExtent(),u=o.getProperties(),d=u&&u.geodesicCenter||Object(ue.x)(c),p=o.getCoordinates();if(n&&(p=a()(n,p),o.setCoordinates(p)),"Circle"===e.props.drawMethod)if(e.props.options.geodesic){var f=[pe(d),pe(p[0][0])].map((function(t){return e.reprojectCoordinatesToWGS84(t,i)}));l=Object(R.calculateDistance)(f,"haversine")}else l=e.calculateRadius(d,p);return T()({},{id:t.get("id"),type:s,extent:c,center:d,coordinates:p,radius:l,style:e.fromOlStyle(t.getStyle()),projection:e.getMapCrs()})}var h=o.getGeometries().map((function(o,s){var l,c=o.getExtent(),u=Object(ue.x)(c),d=o.getCoordinates();if(n&&(d=a()(n,d),o.setCoordinates(d)),r.circles&&-1!==r.circles.indexOf(s))if(e.props.options.geodesic){var p=[pe(u),pe(d[0][0])].map((function(t){return e.reprojectCoordinatesToWGS84(t,i)}));l=Object(R.calculateDistance)(p,"haversine")}else l=e.calculateRadius(u,d);else l=0;return T()({},{id:t.get("id"),type:o.getType(),extent:c,center:u,coordinates:d,radius:l,style:e.fromOlStyle(t.getStyle()),projection:e.getMapCrs()})}));return T()({},{type:"Feature",id:t.get("id"),style:e.fromOlStyle(t.getStyle()),geometry:{type:"GeometryCollection",geometries:h},projection:i})})),Se(je(e),"reprojectCoordinatesToWGS84",(function(e,t){var n=Object(R.reproject)(e,t,"EPSG:4326");return[n.x,n.y]})),Se(je(e),"toOlFeature",(function(t){return l()(e.drawSource.getFeatures().filter((function(e){return e.get("id")===t.id})))})),Se(je(e),"fromOlStyle",(function(t){return t?{fillColor:e.rgbToHex(t.getFill().getColor()),fillTransparency:t.getFill().getColor()[3],strokeColor:t.getStroke().getColor(),strokeWidth:t.getStroke().getWidth(),text:t.getText().getText()}:{}})),Se(je(e),"toOlStyle",(function(t,n,r){var o=t&&t.fillColor?t.fillColor:[255,255,255,.2];"string"==typeof o&&(o=e.hexToRgb(o).concat([t.fillOpacity>=0&&t.fillOpacity<=1?t.fillOpacity:1])),t&&t.fillTransparency&&(o[3]=t.fillTransparency);var i=t&&(t.strokeColor||t.color)?t.strokeColor||t.color:"#ffcc33";n&&(i="#4a90e2"),i=e.hexToRgb(i).concat([t&&t.opacity||1]);var a=new Q.default({fill:new $.default({color:o}),stroke:new ee.default({color:i,width:t&&(t.strokeWidth||t.weight)?t.strokeWidth||t.weight:2}),text:new te.default({text:t&&t.text?t.text:"",fill:new $.default({color:t&&(t.strokeColor||t.color)?t.strokeColor||t.color:"#000"}),stroke:new ee.default({color:"#fff",width:2}),font:t&&t.fontSize?t.fontSize+"px helvetica":""})});return"GeometryCollection"===r?[].concat(pe(Object(D.c)({style:{iconGlyph:"comment",iconShape:"square",iconColor:"blue"}})),[a]):t&&(t.iconUrl||t.iconGlyph)?Object(D.c)({style:t}):a})),Se(je(e),"hexToRgb",(function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})));return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null})),Se(je(e),"componentToHex",(function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})),Se(je(e),"rgbToHex",(function(t){return"#"+e.componentToHex(t[0])+e.componentToHex(t[1])+e.componentToHex(t[2])})),Se(je(e),"addModifyInteraction",(function(t){e.modifyInteraction&&e.props.map.removeInteraction(e.modifyInteraction);var n=t&&t.options&&t.options.editFilter;e.modifyFeatureColl=new re.a(_()(e.drawLayer.getSource().getFeatures(),n)),e.modifyInteraction=new se.a({features:e.modifyFeatureColl,condition:function(e){return Object(oe.k)(e)&&!Object(oe.a)(e)}}),e.modifyInteraction.on("modifyend",(function(t){var n=t.features.getArray().map((function(t){var n=t.clone();if(n.getGeometry&&"GeometryCollection"===n.getGeometry().getType()&&n.getGeometry().setGeometries(e.replaceCirclesWithPolygons(n)),n.getGeometry&&n.getGeometry()&&"Circle"===n.getGeometry().getType()){var r=Object(R.reproject)(n.getGeometry().getCenter(),e.getMapCrs(),"EPSG:4326"),o=n.getGeometry().getRadius();n.setProperties({center:[r.x,r.y],radius:o}),t.setProperties({center:[r.x,r.y],radius:o}),n=e.replaceCircleWithPolygon(n.clone())}return Object(R.reprojectGeoJson)(we.writeFeatureObject(n),e.getMapCrs(),"EPSG:4326")}));e.props.options.transformToFeatureCollection?e.props.onDrawingFeatures(n):e.props.onGeometryChanged(n,e.props.drawOwner,!1,"editing","editing")})),e.props.map.addInteraction(e.modifyInteraction)})),Se(je(e),"addTranslateInteraction",(function(){e.translateInteraction&&e.props.map.removeInteraction(e.translateInteraction),e.translateInteraction=new ae.a({features:new re.a(e.drawLayer.getSource().getFeatures())}),e.translateInteraction.setActive(!1),e.translateInteraction.on("translateend",(function(t){var n=t.features.getArray().map((function(t){var n=t.clone();if(n.getGeometry&&"GeometryCollection"===n.getGeometry().getType()&&n.getGeometry().setGeometries(e.replaceCirclesWithPolygons(n)),n.getGeometry&&n.getGeometry()&&"Circle"===n.getGeometry().getType()){var r=Object(R.reproject)(n.getGeometry().getCenter(),e.getMapCrs(),"EPSG:4326"),o=n.getGeometry().getRadius();n.setProperties({center:[r.x,r.y],radius:o}),n=e.replaceCircleWithPolygon(n)}return t.getProperties()&&t.getProperties().selected&&e.props.onSelectFeatures([Object(R.reprojectGeoJson)(we.writeFeatureObject(n),e.getMapCrs(),"EPSG:4326")]),Object(R.reprojectGeoJson)(we.writeFeatureObject(n),e.getMapCrs(),"EPSG:4326")}));e.props.options.transformToFeatureCollection?e.props.onDrawingFeatures(n):e.props.onGeometryChanged(n,e.props.drawOwner,e.props.drawOwner,!1,"Text"===e.props.drawMethod,"Circle"===e.props.drawMethod)})),e.addTranslateListener(),e.props.map.addInteraction(e.translateInteraction)})),Se(je(e),"createOLGeometry",(function(t){var n=t.type,r=t.coordinates,o=t.radius,i=t.center,a=t.geometries,s=t.projection,l=t.options,c=void 0===l?{}:l;return"GeometryCollection"===n?a&&a.length?new J.default(a.map((function(t){return e.olGeomFromType({type:t.type})}))):new J.default([]):e.olGeomFromType({type:n,coordinates:r,radius:o,center:i,projection:s,options:c})})),Se(je(e),"olGeomFromType",(function(t){var n,r=t.type,o=t.coordinates,i=t.radius,a=t.center,s=t.projection,l=t.options;switch(r){case"Point":case"Marker":case"Text":n=new Y.a(o||[]);break;case"LineString":n=new H.a(o||[]);break;case"MultiPoint":n=new W.a(o||[]);break;case"MultiLineString":n=new K.a(o||[]);break;case"MultiPolygon":n=new Z.a(o||[]);break;default:var c=g()(a)?{x:a[0],y:a[1]}:a,u=s&&!isNaN(parseFloat(i))&&c&&!O()(c.x)&&!O()(c.y)&&!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y));(n=u?l.geodesic?Object(q.a)(e.reprojectCoordinatesToWGS84([c.x,c.y],s),i,100).clone().transform("EPSG:4326",s):Object(q.c)(new X.a([c.x,c.y],i),100):new q.b(o&&g()(o[0])?o:[]))&&u&&l.geodesic&&n.setProperties({geodesicCenter:[c.x,c.y]},!0)}return n})),Se(je(e),"convertGeometryTypeToStyleType",(function(e){switch(e){case"BBOX":return"LineString";default:return e}})),Se(je(e),"appendToMultiGeometry",(function(e,t,n){switch(e){case"MultiPoint":t.appendPoint(n);break;case"MultiLineString":t.appendLineString(n);break;case"MultiPolygon":var r=n.getCoordinates();r[0].push(r[0][0]),n.setCoordinates(r),t.appendPolygon(n)}})),Se(je(e),"calculateRadius",(function(e,t){return g()(t)&&g()(t[0])&&g()(t[0][0])?Math.sqrt(Math.pow(e[0]-t[0][0][0],2)+Math.pow(e[1]-t[0][0][1],2)):100})),Se(je(e),"polygonFromCircle",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Object(q.c)(new X.a(e,t),n)})),Se(je(e),"polygonCoordsFromCircle",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return e.polygonFromCircle(t,n,r).getCoordinates()})),Se(je(e),"replaceCirclesWithPolygonsInFeatureColl",(function(t){return t.map((function(t){return"Circle"!==t.getGeometry().getType()?t:e.replaceCircleWithPolygon(t)}))})),Se(je(e),"replaceCircleWithPolygon",(function(t){if(t.getProperties().isCircle&&"Circle"===t.getGeometry().getType()){var n=t.getGeometry().getCenter(),r=t.getGeometry().getRadius();return t.setGeometry(e.polygonFromCircle(n,r)),t}return t})),Se(je(e),"replaceCirclesWithPolygons",(function(t){return t.getGeometry&&!t.getGeometry().getGeometries?t:t.getGeometry().getGeometries().map((function(n,r){if("Circle"!==n.getType())return n;if(t.getProperties()&&t.getProperties().circles&&-1!==t.getProperties().circles.indexOf(r)){var o=n.getCenter(),i=n.getRadius();return e.polygonFromCircle(o,i)}return n}))})),Se(je(e),"replacePolygonsWithCircles",(function(t){return t.getGeometry().getGeometries().map((function(n,r){if("Polygon"!==n.getType())return n;if(t.getProperties()&&t.getProperties().circles&&-1!==t.getProperties().circles.indexOf(r)){var o=n.getExtent(),i=Object(ue.x)(o),a=e.calculateRadius(i,n.getCoordinates());return new X.a(i,a)}return n}))})),Se(je(e),"addTranslateListener",(function(){document.addEventListener("keydown",(function(t){t.altKey&&"AltLeft"===t.code&&e.translateInteraction.setActive(!0)})),document.addEventListener("keyup",(function(t){"AltLeft"===t.code&&e.translateInteraction.setActive(!1)}))})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.drawLayer&&this.updateFeatureStyles(e.features),!e.drawStatus&&this.selectInteraction&&this.selectInteraction.getFeatures().clear(),this.props.drawStatus!==e.drawStatus||this.props.drawMethod!==e.drawMethod||this.props.features!==e.features)switch(e.drawStatus){case"create":this.addLayer(e);break;case"start":this.addInteractions(e);break;case"drawOrEdit":this.addDrawOrEditInteractions(e);break;case"stop":this.removeDrawInteraction();break;case"replace":this.replaceFeatures(e);break;case"updateStyle":this.updateOnlyFeatureStyles(e);break;case"clean":this.clean();break;case"cleanAndContinueDrawing":this.clean(!0);break;case"endDrawing":this.endDrawing(e);break;default:return}}},{key:"render",value:function(){return null}}])&&ye(t.prototype,n),r&&ye(t,r),i}(o.a.Component);Se(xe,"propTypes",{map:E.a.object,drawOwner:E.a.string,drawStatus:E.a.string,drawMethod:E.a.string,options:E.a.object,features:E.a.array,onChangeDrawingStatus:E.a.func,onGeometryChanged:E.a.func,onDrawStopped:E.a.func,onDrawingFeatures:E.a.func,onSelectFeatures:E.a.func,onEndDrawing:E.a.func,style:E.a.object}),Se(xe,"defaultProps",{map:null,drawOwner:null,drawStatus:null,drawMethod:null,features:null,options:{stopAfterDrawing:!0},onChangeDrawingStatus:function(){},onGeometryChanged:function(){},onDrawStopped:function(){},onDrawingFeatures:function(){},onSelectFeatures:function(){},onEndDrawing:function(){}})},"./MapStore2/web/client/components/map/openlayers/Feature.jsx":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k}));var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/axios/index.js"),l=n.n(s),c=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/node_modules/lodash/find.js"),d=n.n(u),p=n("./MapStore2/node_modules/lodash/castArray.js"),f=n.n(p),h=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),m=n("./MapStore2/web/client/utils/openlayers/DrawSupportUtils.js"),g=n("./MapStore2/web/client/utils/VectorStyleUtils.js"),y=n("./node_modules/ol/format/GeoJSON.js");function b(e){return(b="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 v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t0&&(t&&!t.hideErrors||!t)?(e.props.onLayerLoad(t.id,{error:!0}),e.props.onLayerError(t.id,n.length,r.length)):e.props.onLayerLoad(t.id)}}),e.tileLoadEndStream$=n,e.tileStopStream$=r;var o=new p.a.Subject,i=new p.a.Subject;if(e.layer.getSource().on("imageloadstart",(function(){0===e.imagestoload?(e.props.onLayerLoading(t.id),e.imagestoload++):e.imagestoload++})),e.layer.getSource().on("imageloadend",(function(){e.imagestoload--,o.next({type:"imageloadend"}),0===e.imagestoload&&i.next()})),e.layer.getSource().on("imageloaderror",(function(t){e.imagestoload--,o.next({type:"imageloaderror",event:t}),0===e.imagestoload&&i.next()})),o.bufferWhen((function(){return i})).subscribe({next:function(n){var r=n.filter((function(e){return"imageloaderror"===e.type}));r.length>0?(e.props.onLayerLoad(t.id,{error:!0}),(t&&!t.hideErrors||!t)&&e.props.onLayerError(t.id,n.length,r.length)):e.props.onLayerLoad(t.id)}}),e.imageLoadEndStream$=o,e.imageStopStream$=i,e.layer.getSource().on("vectorerror",(function(){e.props.onLayerLoad(t.id,{error:!0})})),t.refresh){var a=0;e.refreshTimer=setInterval((function(){e.layer.getSource().updateParams(u()({},t.params,{_refreshCounter:a++}))}),t.refresh)}}})),k(C(e),"isValid",(function(){var t=s.default.isValid(e.props.type,e.layer);return e.valid=t,t})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.valid=!0,this.tilestoload=0,this.imagestoload=0,this.createLayer(this.props.type,this.props.options,this.props.position,this.props.securityToken,this.props.env)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.options&&!1!==e.options.visibility;this.setLayerVisibility(t);var n=e.options&&void 0!==e.options.opacity?e.options.opacity:1;this.setLayerOpacity(n),e.position!==this.props.position&&this.layer&&this.layer.setZIndex&&this.layer.setZIndex(e.position),this.props.options&&this.updateLayer(e,this.props)}},{key:"componentWillUnmount",value:function(){this.layer&&this.props.map&&(this.tileLoadEndStream$&&(this.tileLoadEndStream$.complete(),this.tileStopStream$.complete(),this.imageLoadEndStream$.complete(),this.imageStopStream$.complete()),this.layer.detached?this.layer.remove():this.props.map.removeLayer(this.layer)),this.refreshTimer&&clearInterval(this.refreshTimer),s.default.removeLayer(this.props.type,this.props.options,this.props.map,this.props.mapId,this.layer)}},{key:"render",value:function(){var e=this;if(this.props.children){var t=this.layer,n=t?a.a.Children.map(this.props.children,(function(n){return n?a.a.cloneElement(n,{container:t,styleName:e.props.options&&e.props.options.styleName}):null})):null;return a.a.createElement(a.a.Fragment,null,n)}return s.default.renderLayer(this.props.type,this.props.options,this.props.map,this.props.mapId,this.layer)}}])&&S(t.prototype,n),r&&S(t,r),i}(a.a.Component);k(P,"propTypes",{onWarning:o.a.func,maxExtent:o.a.array,map:o.a.object,mapId:o.a.string,srs:o.a.string,type:o.a.string,options:o.a.object,onLayerLoading:o.a.func,onLayerError:o.a.func,onCreationError:o.a.func,onLayerLoad:o.a.func,position:o.a.number,observables:o.a.array,securityToken:o.a.string,env:o.a.array}),k(P,"defaultProps",{observables:[],onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},onCreationError:function(){},onWarning:function(){},srs:"EPSG:3857"})},"./MapStore2/web/client/components/map/openlayers/Locate.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=(n("./MapStore2/web/client/utils/openlayers/olPopUp.css"),n("./node_modules/object-assign/index.js")),l=n.n(s),c=n("./node_modules/ol/util.js"),u=n("./node_modules/ol/Object.js"),d=n("./node_modules/ol/Overlay.js"),p=n("./node_modules/ol/Feature.js"),f=n("./node_modules/ol/source/Vector.js"),h=n("./node_modules/ol/layer/Vector.js"),m=n("./node_modules/ol/events.js"),g=n("./node_modules/ol/events/Event.js"),y=n("./node_modules/ol/events/EventType.js"),b=n("./node_modules/ol/geom/Polygon.js"),v=n("./node_modules/ol/has.js"),_=n("./node_modules/ol/math.js"),j=n("./node_modules/ol/proj.js"),O="accuracy",S="accuracyGeometry",w="altitude",x="altitudeAccuracy",E="heading",C="position",T="projection",k="speed",P="tracking",M="trackingOptions",L=function(e){function t(t){e.call(this,y.a.ERROR),this.code=t.code,this.message=t.message}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(g.a),I=function(e){function t(t){e.call(this);var n=t||{};this.position_=null,this.transform_=j.j,this.watchId_=void 0,Object(m.a)(this,Object(u.b)(T),this.handleProjectionChanged_,this),Object(m.a)(this,Object(u.b)(P),this.handleTrackingChanged_,this),void 0!==n.projection&&this.setProjection(n.projection),void 0!==n.trackingOptions&&this.setTrackingOptions(n.trackingOptions),this.setTracking(void 0!==n.tracking&&n.tracking)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.disposeInternal=function(){this.setTracking(!1),e.prototype.disposeInternal.call(this)},t.prototype.handleProjectionChanged_=function(){var e=this.getProjection();e&&(this.transform_=Object(j.i)(Object(j.f)("EPSG:4326"),e),this.position_&&this.set(C,this.transform_(this.position_)))},t.prototype.handleTrackingChanged_=function(){if(v.d){var e=this.getTracking();e&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):e||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},t.prototype.positionChange_=function(e){var t=e.coords;this.set(O,t.accuracy),this.set(w,null===t.altitude?void 0:t.altitude),this.set(x,null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set(E,null===t.heading?void 0:Object(_.i)(t.heading)),this.position_?(this.position_[0]=t.longitude,this.position_[1]=t.latitude):this.position_=[t.longitude,t.latitude];var n=this.transform_(this.position_);this.set(C,n),this.set(k,null===t.speed?void 0:t.speed);var r=Object(b.a)(this.position_,t.accuracy);r.applyTransform(this.transform_),this.set(S,r),this.changed()},t.prototype.positionError_=function(e){this.setTracking(!1),this.dispatchEvent(new L(e))},t.prototype.getAccuracy=function(){return this.get(O)},t.prototype.getAccuracyGeometry=function(){return this.get(S)||null},t.prototype.getAltitude=function(){return this.get(w)},t.prototype.getAltitudeAccuracy=function(){return this.get(x)},t.prototype.getHeading=function(){return this.get(E)},t.prototype.getPosition=function(){return this.get(C)},t.prototype.getProjection=function(){return this.get(T)},t.prototype.getSpeed=function(){return this.get(k)},t.prototype.getTracking=function(){return this.get(P)},t.prototype.getTrackingOptions=function(){return this.get(M)},t.prototype.setProjection=function(e){this.set(T,Object(j.f)(e))},t.prototype.setTracking=function(e){this.set(P,e)},t.prototype.setTrackingOptions=function(e){this.set(M,e)},t}(u.a),R=n("./node_modules/ol/geom/Point.js"),A=n("./node_modules/ol/geom/Circle.js"),F=n("./node_modules/ol/geom/GeometryCollection.js"),N=n("./node_modules/ol/style/Style.js"),D=n("./node_modules/ol/style/Fill.js"),G=n("./node_modules/ol/style/Stroke.js"),z=n("./node_modules/ol/style/Circle.js");function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=function(){var e=document.createElement("div");e.setAttribute("class","ol-popup");var t=document.createElement("a");t.setAttribute("class","ol-popup-close-btn"),t.setAttribute("href","#close"),t.innerHTML="x";var n=document.createElement("div");n.setAttribute("class","ol-popup-cnt-wrapper");var r=document.createElement("div");r.setAttribute("class","ol-popup-cnt"),n.appendChild(r);var o=document.createElement("div");o.setAttribute("class","ol-popup-tip-wrapper");var i=document.createElement("div");return i.setAttribute("class","ol-popup-tip"),o.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(o),e}(),W=function(e,t){u.a.call(this,{state:"DISABLED"}),this.map=e;var n={drawCircle:!0,follow:!0,stopFollowingOnDrag:!1,remainActive:!0,locateStyle:this._getDefaultStyles(),metric:!0,onLocationError:this.onLocationError,keepCurrentZoomLevel:!1,showPopup:!0,strings:{metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point"},locateOptions:{maximumAge:2e3,enableHighAccuracy:!1,timeout:1e4,maxZoom:18}};this.options=l()({},n,t||{}),this.geolocate=new I({projection:this.map.getView().getProjection(),trackingOptions:this.options.locateOptions}),this.updateHandler=this._updatePosFt.bind(this),this.geolocate.on("change:position",this.updateHandler),this.popup=V,this.popup.hidden=!0,this.popCnt=V.getElementsByClassName("ol-popup-cnt")[0],this.overlay=new d.a({element:this.popup,positioning:"top-center",stopEvent:!1}),this.layer=new h.a({source:new f.a({useSpatialIndex:!1})}),this.posFt=new p.a({geometry:this.geolocate.getAccuracyGeometry(),name:"position",id:"_locate-pos"}),this.posFt.setStyle(this.options.locateStyle),this.layer.getSource().addFeature(this.posFt),this.clickHandler=this.mapClick.bind(this),this.stopHandler=this.stopFollow.bind(this),this.errorHandler=this.options.onLocationError.bind(this)};Object(c.d)(W,u.a),W.prototype.start=function(){this.geolocate.on("error",this.errorHandler),this.follow=this.options.follow,this.geolocate.setTracking(!0),this.layer.setMap(this.map),this.map.addOverlay(this.overlay),this.options.showPopup&&(this.map.on("click",this.clickHandler),this.map.on("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p?this._updatePosFt():this.set("state","LOCATING")},W.prototype.startFollow=function(){this.follow=!0,this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p&&this._updatePosFt()},W.prototype.stop=function(){this.geolocate.un("error",this.errorHandler),this.geolocate.setTracking(!1),this.popup.hide=!0,this.map.removeOverlay(this.overlay),this.layer.setMap(null),this.options.showPopup&&(this.map.un("click",this.clickHandler),this.map.un("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.un("pointerdrag",this.stopHandler),this.set("state","DISABLED")},W.prototype.stopFollow=function(){this.follow=!1,this.map.un("pointerdrag",this.stopHandler),this.set("state","ENABLED")},W.prototype._updatePosFt=function(){var e=this.get("state"),t=this.follow?"FOLLOWING":"ENABLED";t!==e&&this.set("state",t);var n=this.geolocate.getPosition();this.p=n;var r=new R.a([parseFloat(n[0]),parseFloat(n[1])]);if(this.options.drawCircle){var o=new A.a([parseFloat(n[0]),parseFloat(n[1])],this.geolocate.getAccuracy());this.posFt.setGeometry(new F.default([r,o]))}else this.posFt.setGeometry(new F.default([r]));this.popup.hidden||this._updatePopUpCnt(),this.follow&&this.updateView(r),this.options.remainActive||this.geolocate.setTracking(!1)},W.prototype.updateView=function(e){this.follow&&(this.map.getView().setCenter(e.getCoordinates()),this.options.keepCurrentZoomLevel||this.map.getView().setZoom(this.options.locateOptions.maxZoom))},W.prototype._updatePopUpCnt=function(){var e,t;this.options.metric?(e=this.geolocate.getAccuracy(),t=this.options.strings.metersUnit):(e=Math.round(3.2808399*this.geolocate.getAccuracy()),t=this.options.strings.feetUnit);var n=this.options.strings.popup.replace("{distance}",e);this.popCnt.innerHTML=n.replace("{unit}",t),this.overlay.setPosition(this.posFt.getGeometry().getGeometries()[0].getCoordinates()),this.popup.hidden=!1},W.prototype.onLocationError=function(e){alert(e.message)},W.prototype.mapClick=function(e){var t=this.map.forEachFeatureAtPixel(e.pixel,(function(e){return e}));t&&"_locate-pos"===t.get("id")&&this.popup.hidden?this._updatePopUpCnt():this.popup.hidden||(V.hidden=!0)},W.prototype._getDefaultStyles=function(){return new N.default({image:new z.default({radius:6,fill:new D.default({color:"rgba(42,147,238,0.7)"}),stroke:new G.default({color:"rgba(19,106,236,1)",width:2})}),fill:new D.default({color:"rgba(19,106,236,0.15)"}),stroke:new G.default({color:"rgba(19,106,236,1)",width:2})})},W.prototype.setStrings=function(e){this.options.strings=l()({},this.options.strings,e)},W.prototype.setTrackingOptions=function(e){this.geolocate&&(this.geolocate.setTrackingOptions(e),this.options.locateOptions=function(e){for(var t=1;t180&&(i-=360),e.props.onMouseMove({y:o[1]||0,x:i||0,z:e.map.get("elevationLayer")&&e.map.get("elevationLayer").get("getElevation")(r,t.pixel)||void 0,crs:"EPSG:4326",pixel:{x:t.pixel[0],y:t.pixel[1]},latlng:{lat:o[1],lng:i,z:n&&n(r,t.pixel)||void 0},lat:o[1],lng:i,rawPos:t.coordinate.slice()})}})),N(A(e),"updateMapInfoState",(function(){var t=e.map.getView(),n=t.getCenter(),r=t.getProjection().getExtent(),o=t.getProjection().getCode();if(-1!==["EPSG:3857","EPSG:900913","EPSG:4326"].indexOf(o)||n&&n[0]>=r[0]&&n[0]<=r[2]&&n[1]>=r[1]&&n[1]<=r[3]){var i=e.normalizeCenter(t.getCenter()),a=t.calculateExtent(e.map.getSize()),s={width:e.map.getSize()[0],height:e.map.getSize()[1]};e.props.onMapViewChanges({x:i[0]||0,y:i[1]||0,crs:"EPSG:4326"},t.getZoom(),{bounds:{minx:a[0],miny:a[1],maxx:a[2],maxy:a[3]},crs:o,rotation:t.getRotation()},s,e.props.id,e.props.projection)}})),N(A(e),"haveResolutionsChanged",(function(t){var n=e.props.mapOptions&&e.props.mapOptions.view?e.props.mapOptions.view.resolutions:void 0,r=t.mapOptions&&t.mapOptions.view?t.mapOptions.view.resolutions:void 0;return!Object(T.isEqual)(n,r)})),N(A(e),"createView",(function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.restrictedExtent&&o.crs&&Object(S.reprojectBbox)(o.restrictedExtent,o.crs,Object(S.normalizeSRS)(n)),a=!r||r&&!r.view?O()({},r,{extent:i}):O()({},r),s=O()({},{projection:Object(S.normalizeSRS)(n),center:[e.x,e.y],zoom:t,minZoom:o.minZoom},a||{});return new l.a(s)})),N(A(e),"_updateMapPositionFromNewProps",(function(t){var n=e.map.getView(),r=e.props.center;if(!(t.center.y===r.y&&t.center.x===r.x)){var o=Object(S.reproject)({x:t.center.x,y:t.center.y},"EPSG:4326",t.projection,!0);n.setCenter([o.x,o.y])}Math.round(t.zoom)!==e.props.zoom&&n.setZoom(Math.round(t.zoom)),(t.bbox&&void 0!==t.bbox.rotation||e.bbox&&void 0!==e.bbox.rotation&&t.bbox.rotation!==e.props.bbox.rotation)&&n.setRotation(t.bbox.rotation)})),N(A(e),"normalizeCenter",(function(t){var n=Object(S.reproject)({x:t[0],y:t[1]},e.props.projection,"EPSG:4326",!0);return[n.x,n.y]})),N(A(e),"setMousePointer",(function(t){e.map&&(e.map.getViewport().style.cursor=t||"auto")})),N(A(e),"registerHooks",(function(){e.props.hookRegister.registerHook(x.default.RESOLUTIONS_HOOK,(function(){return e.getResolutions()})),e.props.hookRegister.registerHook(x.default.RESOLUTION_HOOK,(function(){return e.map.getView().getResolution()})),e.props.hookRegister.registerHook(x.default.COMPUTE_BBOX_HOOK,(function(t,n){var r=Object(S.reproject)([t.x,t.y],"EPSG:4326",e.props.projection),o=e.createView(r,n,e.props.projection,e.props.mapOptions&&e.props.mapOptions.view,e.props.limits),i=e.map.getSize(),a=o.calculateExtent(i);return{bounds:{minx:a[0],miny:a[1],maxx:a[2],maxy:a[3]},crs:e.props.projection,rotation:e.map.getView().getRotation()}})),e.props.hookRegister.registerHook(x.default.GET_PIXEL_FROM_COORDINATES_HOOK,(function(t){return e.map.getPixelFromCoordinate(t)})),e.props.hookRegister.registerHook(x.default.GET_COORDINATES_FROM_PIXEL_HOOK,(function(t){return e.map.getCoordinateFromPixel(t)})),e.props.hookRegister.registerHook(x.default.ZOOM_TO_EXTENT_HOOK,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.padding,o=n.crs,i=n.maxZoom,a=n.duration,s=Object(S.reprojectBbox)(t,o,e.props.projection);s&&s[0]===s[2]&&s[1]===s[3]&&"EPSG:4326"===o&&Object(T.isArray)(t)&&-180===t[0]&&-90===t[1]&&(s=e.map.getView().getProjection().getExtent());var l=i;s&&s[0]===s[2]&&s[1]===s[3]&&Object(T.isNil)(l)&&(l=21),e.map.getView().fit(s,{size:e.map.getSize(),padding:r&&[r.top||0,r.right||0,r.bottom||0,r.left||0],maxZoom:l,duration:a})}))})),e}return t=b,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.projectionDefs.forEach((function(e){var t=h.a.defs(e.code);E(e.code,e.extent,e.worldExtent,e.axisOrientation||t.axis||"enu",t.units||"m")}));var t=Object(S.reproject)([this.props.center.x,this.props.center.y],"EPSG:4326",this.props.projection);!function(e){var t,n,r=Object.keys(e.defs),o=r.length;for(t=0;t=o[0]&&r[0]<=o[2]&&r[1]>=o[1]&&r[1]<=o[3]){var i,a;i="EPSG:900913"!==e.props.projection&&"EPSG:3857"!==e.props.projection?Object(S.reproject)(r,e.props.projection,"EPSG:4326"):{x:r[0],y:r[1]},e.markerPresent=!1,d.forEachFeatureAtPixel(t.pixel,(function(t,n){if(n&&n.get("handleClickOnLayer")){var r=t.getGeometry();if(!e.markerPresent&&"Point"===r.getType()){e.markerPresent=!0,a=n.get("msId");var o=Object(c.k)(r.getFirstCoordinate(),e.props.projection);i={x:o[0],y:o[1]}}}}));var s=Object(S.normalizeLng)(i.x),l=e.map.get("elevationLayer")&&e.map.get("elevationLayer").get("getElevation");e.props.onClick({pixel:{x:t.pixel[0],y:t.pixel[1]},latlng:{lat:i.y,lng:s,z:l&&l(r,t.pixel)||void 0},rawPos:t.coordinate.slice(),modifiers:{alt:t.originalEvent.altKey,ctrl:t.originalEvent.ctrlKey,metaKey:t.originalEvent.metaKey,shift:t.originalEvent.shiftKey}},a)}}}));var p=Object(T.throttle)(this.mouseMoveEvent,100);d.on("pointermove",p),this.updateMapInfoState(),this.setMousePointer(this.props.mousePointer),this.forceUpdate(),this.props.onResolutionsChange(this.getResolutions()),this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),e.zoomControl!==this.props.zoomControl&&(e.zoomControl?this.map.addControl(new u.a):this.map.removeControl(this.map.getControls().getArray().filter((function(e){return e instanceof u.a}))[0])),this.map&&(this.props.mapOptions&&this.props.mapOptions.interactions)!==(e.mapOptions&&e.mapOptions.interactions)){var n=e.mapOptions.interactions||{},r=this.map.getInteractions().getArray();Object.keys(n).forEach((function(e){var o=C.a[e]||{},i=o.Instance,a=o.options,s=Object(T.find)(r,(function(t){return C.a[e]&&t instanceof i}));s?s.setActive(n[e]):n[e]&&i&&t.map.addInteraction(new i(a))}))}if(this.map&&this.props.id!==e.mapStateSource&&this._updateMapPositionFromNewProps(e),this.map&&e.resize!==this.props.resize&&setTimeout((function(){t.map.updateSize()}),0),this.map&&(this.props.projection!==e.projection||this.haveResolutionsChanged(e))||this.props.limits!==e.limits){if(this.props.projection!==e.projection||this.props.limits!==e.limits){var o=e.projection,i=Object(S.reproject)([e.center.x,e.center.y],"EPSG:4326",o);this.map.setView(this.createView(i,e.zoom,e.projection,e.mapOptions&&e.mapOptions.view,e.limits)),this.props.onResolutionsChange(this.getResolutions())}this.map.getLayers().forEach((function(e){var t=e.getSource();t.getTileLoadFunction&&t.setTileLoadFunction(t.getTileLoadFunction())})),this.map.render()}}},{key:"componentWillUnmount",value:function(){var e=this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&this.getDocument().querySelector(this.props.mapOptions.attribution.container);if(e&&e.querySelector(".ol-attribution"))try{e.removeChild(e.querySelector(".ol-attribution"))}catch(e){}this.map&&this.map.setTarget(null)}},{key:"render",value:function(){var e=this,t=this.map,n=t?_.a.Children.map(this.props.children,(function(n){return n?_.a.cloneElement(n,{map:t,mapId:e.props.id,onLayerLoading:e.props.onLayerLoading,onLayerError:e.props.onLayerError,onLayerLoad:e.props.onLayerLoad,projection:e.props.projection,onCreationError:e.props.onCreationError}):null})):null;return _.a.createElement("div",{id:this.props.id,style:this.props.style},n)}}])&&M(t.prototype,n),f&&M(t,f),b}(_.a.Component);N(D,"propTypes",{id:b.a.string,document:b.a.object,style:b.a.object,center:w.default.PropTypes.center,zoom:b.a.number.isRequired,mapStateSource:w.default.PropTypes.mapStateSource,projection:b.a.string,projectionDefs:b.a.array,onMapViewChanges:b.a.func,onResolutionsChange:b.a.func,onClick:b.a.func,mapOptions:b.a.object,zoomControl:b.a.bool,mousePointer:b.a.string,onMouseMove:b.a.func,onLayerLoading:b.a.func,onLayerLoad:b.a.func,onLayerError:b.a.func,resize:b.a.number,measurement:b.a.object,changeMeasurementState:b.a.func,registerHooks:b.a.bool,hookRegister:b.a.object,interactive:b.a.bool,onCreationError:b.a.func,bbox:b.a.object,wpsBounds:b.a.object,onWarning:b.a.func,maxExtent:b.a.array,limits:b.a.object,onMouseOut:b.a.func}),N(D,"defaultProps",{id:"map",onMapViewChanges:function(){},onResolutionsChange:function(){},onCreationError:function(){},onClick:null,onMouseMove:function(){},mapOptions:{},projection:"EPSG:3857",projectionDefs:[],onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},resize:0,registerHooks:!0,hookRegister:x.default,interactive:!0,onMouseOut:function(){},center:{x:13,y:45,crs:"EPSG:4326"},zoom:5});t.default=D},"./MapStore2/web/client/components/map/openlayers/MeasurementSupport.jsx":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return V}));var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),c=n("./MapStore2/web/client/utils/MeasureUtils.js"),u=n("./MapStore2/web/client/utils/ImmutableUtils.js"),d=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js"),f=n("./MapStore2/web/client/utils/openlayers/DrawUtils.js"),h=n("./node_modules/ol/geom/Polygon.js"),m=n("./node_modules/ol/geom/LineString.js"),g=n("./node_modules/ol/Overlay.js"),y=n("./node_modules/ol/source/Vector.js"),b=n("./node_modules/ol/layer/Vector.js"),v=n("./node_modules/ol/Feature.js"),_=n("./node_modules/ol/style/Style.js"),j=n("./node_modules/ol/style/Fill.js"),O=n("./node_modules/ol/style/Stroke.js"),S=n("./node_modules/ol/style/Circle.js"),w=n("./node_modules/ol/interaction/Draw.js"),x=n("./node_modules/ol/format/GeoJSON.js"),E=n("./node_modules/ol/Observable.js"),C=n("./node_modules/ol/sphere.js");function T(e){return(T="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 k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)return Object(l.calculateAzimuth)(t[0],t[1],B(n.map));var r=e.reprojectedCoordinatesIn4326(t);return Object(l.calculateDistance)(r,n.measurement.lengthFormula)})),U(G(e),"getArea",(function(t){return e.calculateGeodesicArea(t.getLinearRing(0).getCoordinates())})),U(G(e),"validateCoords",(function(e){return e.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))}))})),U(G(e),"updateFeatures",(function(t){var n=e.source.getFeatures();e.removeMeasureTooltips(),e.removeSegmentLengthOverlays(),e.source.clear(),e.textLabels=[],e.segmentLengths=[];var r=t.measurement.features.map((function(r,o){if(Object(s.get)(r,"properties.disabled"))return[r,n&&n[o]&&n[o].getGeometry()];var i=r.geometry.type,a=Object(s.get)(r,"properties.values",[]),u="bearing"===(a[0]||{}).type||!(a[0]||{}).type&&t.measurement.bearingMeasureEnabled,d="Polygon"===i?r.geometry.coordinates[0]:r.geometry.coordinates,p=e.reprojectedCoordinatesFrom4326(d),f="Polygon"===i?new h.b([p]):new m.a(p),g={Point:function(){return d},LineString:function(){return u?Object(l.calculateAzimuth)(d[0],d[1],"EPSG:4326"):Object(l.calculateDistance)(d,t.measurement.lengthFormula)},Polygon:function(){return e.getArea(f)}},y={LineString:function(){return e.formatLengthValue(u?Object(l.calculateAzimuth)(d[0],d[1],"EPSG:4326"):Object(l.calculateDistance)(d,t.measurement.lengthFormula),t.uom,u,t.measurement.trueBearing)},Polygon:function(){return e.formatAreaValue(e.getArea(f),t.uom)}};if(!u)for(var b=0;b2)){a.push(Object(l.midpoint)(i[i.length-1],i[i.length-2],!0)),a.push(Object(l.midpoint)(i[i.length-2],i[i.length-3],!0));for(var u=0;u1&&n.length>2){for(e.drawInteraction.sketchCoords_=[n[0],n[1],n[0]];e.sketchFeature.getGeometry().getCoordinates().length>3;)e.drawInteraction.removeLastPoint();e.sketchFeature.getGeometry().setCoordinates([n[0],n[1]]),e.drawInteraction.sketchFeature_=e.sketchFeature,e.drawInteraction.finishDrawing()}}})),U(G(e),"reprojectedCoordinatesFrom4326",(function(t){return t.map((function(t){var n=Object(l.reproject)(t,"EPSG:4326",B(e.props.map));return[n.x,n.y]}))})),U(G(e),"reprojectedCoordinatesIn4326",(function(t){return t.map((function(t){var n=Object(l.reproject)(t,B(e.props.map),"EPSG:4326");return[n.x,n.y]}))})),U(G(e),"calculateGeodesicArea",(function(t){if(t.length>=4){var n=e.reprojectedCoordinatesIn4326(t);return Math.abs(Object(C.a)(new h.b([n]),{projection:"EPSG:4326"}))}return 0})),U(G(e),"createHelpTooltip",(function(){e.removeHelpTooltip(),e.helpTooltipElement=document.createElement("div"),e.helpTooltipElement.className="tooltip hidden",e.helpTooltip=new g.a({element:e.helpTooltipElement,offset:[15,0],positioning:"center-left"}),e.props.map.addOverlay(e.helpTooltip)})),U(G(e),"createMeasureTooltip",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,-15];e.measureTooltipElements||(e.measureTooltipElements=[]),e.measureTooltips||(e.measureTooltips=[]),e.outputValues||(e.outputValues=[]);var n=document.createElement("div");n.className="tooltip tooltip-measure",n.style.display=e.props.measurement.showLabel?"":"none",e.measureTooltipElements.push(n);var r=new g.a({element:n,offset:t,positioning:"bottom-center"});e.props.map.addOverlay(r),e.measureTooltips.push(r),e.outputValues.push(null)})),U(G(e),"createSegmentLengthOverlay",(function(t){e.segmentOverlayElements||(e.segmentOverlayElements=[]),e.segmentOverlays||(e.segmentOverlays=[]);var n=document.createElement("div");n.className="segment-overlay",n.style.display=e.props.measurement.showSegmentLengths&&!t?"":"none",e.segmentOverlayElements.push(n);var r=new g.a({element:n,offset:[0,0],positioning:"center-center"});e.props.map.addOverlay(r),e.segmentOverlays.push(r)})),U(G(e),"formatLengthValue",(function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(r)return Object(c.getFormattedBearingValue)(t,o);var i=n&&n.length,a=i.label,l=i.unit,u=Object(s.round)(Object(c.convertUom)(t,"m",l),2);return e.props.formatNumber(u)+" "+a})),U(G(e),"formatAreaValue",(function(t,n){var r=n&&n.area,o=r.label,i=r.unit,a=Object(s.round)(Object(c.convertUom)(t,"sqm",i),2);return e.props.formatNumber(a)+" "+o})),U(G(e),"removeHelpTooltip",(function(){e.helpTooltipElement&&e.helpTooltipElement.parentNode&&e.helpTooltipElement.parentNode.removeChild(e.helpTooltipElement),e.helpTooltip&&e.props.map.removeOverlay(e.helpTooltip)})),U(G(e),"removeMeasureTooltips",(function(){(e.measureTooltips||[]).forEach((function(t){e.props.map.removeOverlay(t)}));for(var t=document.getElementsByClassName("tooltip-static")||[],n=0;n0&&this.props.changeGeometry([]),e.measurement.textLabels&&e.measurement.textLabels.length>0&&this.props.setTextLabels([]),this.source&&(this.source.clear(),this.source=null));var r=this.props.measurement.features,o=e.measurement.features;e.measurement.updatedByUI&&!Object(s.isEqual)(r,o)?this.updateFeatures(e):e.measurement.updatedByUI&&!Object(s.isEqual)(this.props.uom,e.uom)&&this.updateMeasures(e)}},{key:"render",value:function(){return null}}])&&A(t.prototype,n),r&&A(t,r),i}(o.a.Component);U(V,"propTypes",{startEndPoint:a.a.object,map:a.a.object,measurement:a.a.object,enabled:a.a.bool,uom:a.a.object,formatNumber:a.a.func,changeMeasurementState:a.a.func,updateMeasures:a.a.func,resetGeometry:a.a.func,changeGeometry:a.a.func,updateOnMouseMove:a.a.bool,setTextLabels:a.a.func}),U(V,"contextTypes",{messages:a.a.object}),U(V,"defaultProps",{changeMeasurementState:function(){},resetGeometry:function(){},updateMeasures:function(){},changeGeometry:function(){},formatNumber:function(e){return e},setTextLabels:function(){},startEndPoint:{startPointOptions:{radius:3,fillColor:"green"},endPointOptions:{radius:3,fillColor:"red"}},updateOnMouseMove:!1})},"./MapStore2/web/client/components/map/openlayers/Overview.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/openlayers/Layers.js"),l=n("./node_modules/object-assign/index.js"),c=n.n(l),u=n("./MapStore2/node_modules/lodash/isFinite.js"),d=n.n(u),p=n("./node_modules/ol/Collection.js"),f=n("./node_modules/ol/Map.js"),h=n("./node_modules/ol/MapEventType.js"),m=n("./node_modules/ol/MapProperty.js"),g=n("./node_modules/ol/Object.js"),y=n("./node_modules/ol/ObjectEventType.js"),b=n("./node_modules/ol/Overlay.js"),v=n("./node_modules/ol/OverlayPositioning.js"),_=n("./node_modules/ol/ViewProperty.js"),j=n("./node_modules/ol/control/Control.js"),O=n("./node_modules/ol/coordinate.js"),S=n("./node_modules/ol/css.js"),w=n("./node_modules/ol/dom.js"),x=n("./node_modules/ol/events.js"),E=n("./node_modules/ol/events/EventType.js"),C=n("./node_modules/ol/extent.js");function T(e){this.validateExtent_(),this.updateBox_()}var k=function(e){function t(t){var n=t||{};e.call(this,{element:document.createElement("div"),render:n.render||T,target:n.target}),this.collapsed_=void 0===n.collapsed||n.collapsed,this.collapsible_=void 0===n.collapsible||n.collapsible,this.collapsible_||(this.collapsed_=!1);var r=void 0!==n.className?n.className:"ol-overviewmap",o=void 0!==n.tipLabel?n.tipLabel:"Overview map",i=void 0!==n.collapseLabel?n.collapseLabel:"«";"string"==typeof i?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i):this.collapseLabel_=i;var a=void 0!==n.label?n.label:"»";"string"==typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a):this.label_=a;var s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=o,l.appendChild(s),Object(x.a)(l,E.a.CLICK,this.handleClick_,this),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.ovmap_=new f.default({controls:new p.a,interactions:new p.a,view:n.view});var c=this.ovmap_;n.layers&&n.layers.forEach(function(e){c.addLayer(e)}.bind(this));var u=document.createElement("div");u.className="ol-overviewmap-box",u.style.boxSizing="border-box",this.boxOverlay_=new b.a({position:[0,0],positioning:v.a.BOTTOM_LEFT,element:u}),this.ovmap_.addOverlay(this.boxOverlay_);var d=r+" "+S.e+" "+S.b+(this.collapsed_&&this.collapsible_?" "+S.a:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=d,h.appendChild(this.ovmapDiv_),h.appendChild(l);var m=this,g=this.boxOverlay_,y=this.boxOverlay_.getElement(),_=function(e){var t,n={clientX:(t=e).clientX-y.offsetWidth/2,clientY:t.clientY+y.offsetHeight/2},r=c.getEventCoordinate(n);g.setPosition(r)},j=function(e){var t=c.getEventCoordinate(e);m.getMap().getView().setCenter(t),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",j)};y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",_),window.addEventListener("mouseup",j)}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setMap=function(t){var n=this.getMap();if(t!==n){if(n){var r=n.getView();r&&this.unbindView_(r),this.ovmap_.setTarget(null)}if(e.prototype.setMap.call(this,t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(x.a)(t,y.a.PROPERTYCHANGE,this.handleMapPropertyChange_,this)),0===this.ovmap_.getLayers().getLength()&&this.ovmap_.setLayerGroup(t.getLayerGroup());var o=t.getView();o&&(this.bindView_(o),o.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_()))}}},t.prototype.handleMapPropertyChange_=function(e){if(e.key===m.a.VIEW){var t=e.oldValue;t&&this.unbindView_(t);var n=this.getMap().getView();this.bindView_(n)}},t.prototype.bindView_=function(e){Object(x.a)(e,Object(g.b)(_.a.ROTATION),this.handleRotationChanged_,this)},t.prototype.unbindView_=function(e){Object(x.c)(e,Object(g.b)(_.a.ROTATION),this.handleRotationChanged_,this)},t.prototype.handleRotationChanged_=function(){this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},t.prototype.validateExtent_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var n=e.getSize(),r=e.getView().calculateExtent(n),o=t.getSize(),i=t.getView().calculateExtent(o),a=t.getPixelFromCoordinate(Object(C.C)(r)),s=t.getPixelFromCoordinate(Object(C.w)(r)),l=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),u=o[0],d=o[1];l<.1*u||c<.1*d||l>.75*u||c>.75*d?this.resetExtent_():Object(C.g)(i,r)||this.recenter_()}},t.prototype.resetExtent_=function(){var e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtent(n),o=t.getView(),i=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,i/2));Object(C.J)(r,a),o.fit(r)},t.prototype.recenter_=function(){var e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenter(n.getCenter())},t.prototype.updateBox_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var n=e.getSize(),r=e.getView(),o=t.getView(),i=r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.calculateExtent(n),c=o.getResolution(),u=Object(C.v)(l),d=Object(C.D)(l),p=this.calculateCoordinateRotate_(i,u);a.setPosition(p),s&&(s.style.width=Math.abs((u[0]-d[0])/c)+"px",s.style.height=Math.abs((d[1]-u[1])/c)+"px")}},t.prototype.calculateCoordinateRotate_=function(e,t){var n,r=this.getMap().getView().getCenter();return r&&(n=[t[0]-r[0],t[1]-r[1]],Object(O.f)(n,e),Object(O.a)(n,r)),n},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(S.a),this.collapsed_?Object(w.f)(this.collapseLabel_,this.label_):Object(w.f)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var e=this.ovmap_;this.collapsed_||e.isRendered()||(e.updateSize(),this.resetExtent_(),Object(x.b)(e,h.a.POSTRENDER,(function(e){this.updateBox_()}),this))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.getOverviewMap=function(){return this.ovmap_},t}(j.a);function P(e){return(P="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 M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=new MutationObserver((function(){e.getMap().getSize()&&(e.setPosition(void 0),e.setPosition(n.coordinates))}));return r.observe(t,{attributes:!0,childList:!0,subtree:!0}),r},E=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)}(s,e);var t,n,r,i=_(s);function s(){var e;y(this,s);for(var t=arguments.length,n=new Array(t),r=0;rt?t:u,w=f>n?n:f,E=p.b(r,s),C=new c.a({id:r,element:E,autoPan:m,offset:_,autoPanMargin:b,autoPanAnimation:O,positioning:"bottom-center",className:"ol-overlay-container ol-unselectable",position:a});return o.addOverlay(C),g({popup:C,observer:x(C,E,{coordinates:a}),containerStyle:{maxWidth:S,maxHeight:w}},e)})),e._popups})),w(O(e),"stopPropagationOnPointerMove",(function(e){e.stopPropagation()})),e}return t=s,(n=[{key:"componentWillMount",value:function(){this.props.map&&this.props.map.getOverlayContainerStopEvent().addEventListener("pointermove",this.stopPropagationOnPointerMove)}},{key:"shouldComponentUpdate",value:function(e){return e.popups!==this.props.popups}},{key:"componentWillUnmount",value:function(){this.props.map&&this.props.map.getOverlayContainerStopEvent().removeEventListener("pointermove",this.stopPropagationOnPointerMove)}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderPopups())}}])&&b(t.prototype,n),r&&b(t,r),s}(o.a.Component);w(E,"propTypes",{map:l.a.object,popups:l.a.arrayOf(l.a.object),onPopupClose:l.a.func}),w(E,"defaultProps",{popups:[],onPopupClose:function(){}})},"./MapStore2/web/client/components/map/openlayers/ScaleBar.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),c=n("./node_modules/ol/Object.js"),u=n("./node_modules/ol/asserts.js"),d=n("./node_modules/ol/control/Control.js"),p=n("./node_modules/ol/css.js"),f=n("./node_modules/ol/events.js"),h=n("./node_modules/ol/proj.js"),m=n("./node_modules/ol/proj/Units.js"),g="degrees",y="imperial",b="nautical",v="metric",_="us",j=[1,2,5];function O(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}var S=function(e){function t(t){var n=t||{},r=void 0!==n.className?n.className:"ol-scale-line";e.call(this,{element:document.createElement("div"),render:n.render||O,target:n.target}),this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-inner",this.element.className=r+" "+p.e,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==n.minWidth?n.minWidth:64,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",Object(f.a)(this,Object(c.b)("units"),this.handleUnitsChanged_,this),this.setUnits(n.units||v)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getUnits=function(){return this.get("units")},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(e){this.set("units",e)},t.prototype.updateElement_=function(){var e=this.viewState_;if(e){var t=e.center,n=e.projection,r=this.getUnits(),o=r==g?m.default.DEGREES:m.default.METERS,i=Object(h.g)(n,e.resolution,t,o);n.getUnits()!=m.default.DEGREES&&n.getMetersPerUnit()&&o==m.default.METERS&&(i*=n.getMetersPerUnit());var a=this.minWidth_*i,s="";if(r==g){var l=m.METERS_PER_UNIT[m.default.DEGREES];n.getUnits()==m.default.DEGREES?a*=l:i/=l,a=this.minWidth_)break;++p}var f=c+" "+s;this.renderedHTML_!=f&&(this.innerElement_.innerHTML=f,this.renderedHTML_=f),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t}(d.a);function w(e){return(w="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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=o()(e.style&&e.style.rotation)?0:e.style.rotation;return[new E.default({image:new C.default({rotation:t,anchor:[12,12],anchorXUnits:"pixels",anchorYUnits:"pixels",src:R})}),new E.default({image:new C.default({rotation:t,src:I,anchor:[L.size[0]/2,L.size[1]],anchorXUnits:"pixels",anchorYUnits:"pixels",size:L.size,offset:[L.colors.indexOf(e.style.iconColor||"blue")*L.size[0],L.shapes.indexOf(e.style.iconShape||"circle")*L.size[1]]}),text:new T.default({rotation:t,text:F[e.style.iconGlyph],font:"14px FontAwesome",offsetY:2*-L.size[1]/3,fill:new k.default({color:"#FFFFFF"})})})].concat(N(e.style,2*(A+15)))}},standard:{getIcon:function(e){var t=e.style,n=e.iconAnchor,r=o()(t&&t.rotation)?0:t.rotation,i=t.iconAnchor||n,a=[new E.default({image:new C.default({anchor:i||[.5,1],anchorXUnits:t.anchorXUnits||(i||0===i?"pixels":"fraction"),anchorYUnits:t.anchorYUnits||(i||0===i?"pixels":"fraction"),size:u()(t.size)?t.size:x()(t.size)?[t.size,t.size]:void 0,rotation:r,anchorOrigin:t.anchorOrigin||"top-left",src:t.iconUrl||t.symbolUrlCustomized||t.symbolUrl})})];t.shadowUrl&&(a=[new E.default({image:new C.default({anchor:[12,41],anchorXUnits:"pixels",anchorYUnits:"pixels",src:t.shadowUrl})}),a[0]]);var s=u()(t.size)?t.size[1]:x()(t.size)?t.size:0;return s=s>32?s+.75*s:A+10,a.concat(N(t,s))}},html:{getIcon:function(){return null}}},G=n("./MapStore2/web/client/utils/VectorStyleUtils.js"),z=n("./node_modules/ol/style/Circle.js"),U=n("./node_modules/ol/style/Stroke.js"),B=n("./node_modules/ol/geom/Point.js"),V=n("./node_modules/ol/geom/LineString.js"),W=n("./node_modules/es6-promise/dist/es6-promise.js"),q=n("./MapStore2/web/client/libs/ajax.js"),Y=n.n(q),H=n("./node_modules/geostyler-openlayers-parser/build/dist/OlStyleParser.js"),K=n.n(H),Z=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),X=n.n(Z),J=n("./MapStore2/web/client/components/map/openlayers/img/marker-shadow.png"),Q=n.n(J),$=n("./node_modules/object-assign/index.js"),ee=n.n($),te=n("./MapStore2/web/client/utils/ImmutableUtils.js");function ne(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(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 re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,n=void 0===t?5:t,r=e.fillColor,o=void 0===r?"green":r,i=e.applyToPolygon,a=void 0!==i&&i;return new E.default({image:new z.default({radius:n,fill:new k.default({color:o})}),geometry:function(e){var t=e.getGeometry(),n=t.getType();if(!a&&"Polygon"===n)return null;var r="Polygon"===n?t.getCoordinates()[0]:t.getCoordinates();return r.length>1?new B.a(h()(r)):null}})},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,n=void 0===t?5:t,r=e.fillColor,o=void 0===r?"red":r,i=e.applyToPolygon,a=void 0!==i&&i;return new E.default({image:new z.default({radius:n,fill:new k.default({color:o})}),geometry:function(e){var t=e.getGeometry(),n=t.getType();if(!a&&"Polygon"===n)return null;var r="Polygon"===n?t.getCoordinates()[0]:t.getCoordinates();return new B.a(r.length>3?r[r.length-("Polygon"===n?2:1)]:g()(r))}})},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[ce(e),ue(t)]},pe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new E.default({text:new T.default({offsetY:-4*Math.sqrt(e.fontSize),textAlign:e.textAlign||"center",text:t||"",font:e.font,fill:new k.default({color:Object(j.b)(e.stroke||e.color||"#000000",e.opacity||1)}),stroke:n?new U.default({color:[255,255,255,1],width:2}):null}),image:n?new z.default({radius:5,fill:null,stroke:new U.default({color:Object(j.b)(e.color||"#0000FF",e.opacity||1),width:e.weight||1})}):null})},fe={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,radius:10},he={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,editing:{fill:1}},me={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,editing:{fill:1}},ge={Marker:{iconColor:"orange",iconShape:"circle",iconGlyph:"comment"},Text:{fontStyle:"normal",fontSize:"14",fontSizeUom:"px",fontFamily:"Arial",fontWeight:"normal",font:"14px Arial",textAlign:"center",color:"#000000",opacity:1},Circle:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2},Point:fe,MultiPoint:fe,LineString:he,MultiLineString:he,Polygon:me,MultiPolygon:me},ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"blue",width:3,lineDash:[6]};return{stroke:new U.default(e.style?e.style.stroke||{color:e.style.color||t.color,lineDash:l()(e.style.dashArray)&&a()(e.style.dashArray).split(" ")||t.lineDash,width:e.style.weight||t.width,lineCap:e.style.lineCap||"round",lineJoin:e.style.lineJoin||"round",lineDashOffset:e.style.dashOffset||0}:ie({},t))}},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"rgba(0, 0, 255, 0.1)"};return{fill:new k.default(e.style?e.style.fill||{color:Object(j.b)(e.style.fillColor,e.style.fillOpacity)||t.color}:ie({},t))}},ve={Point:function(){return[new E.default({image:le})]},LineString:function(e){return[new E.default(ee()({},ye(e,{color:"blue",width:3})))]},MultiLineString:function(e){return[new E.default(ee()({},ye(e,{color:"blue",width:3})))]},MultiPoint:function(){return[new E.default({image:le})]},MultiPolygon:function(e){return[new E.default(ee()({},ye(e),be(e)))]},Polygon:function(e){return[new E.default(ee()({},ye(e),be(e)))]},GeometryCollection:function(e){return[new E.default(ee()({},ye(e),be(e),{image:new z.default({radius:10,fill:null,stroke:new U.default({color:"magenta"})})}))]},Circle:function(){return[new E.default({stroke:new U.default({color:"red",width:2}),fill:new k.default({color:"rgba(255,0,0,0.2)"})})]},marker:function(e){return[new E.default({image:new C.default({anchor:[14,41],anchorXUnits:"pixels",anchorYUnits:"pixels",src:Q.a})}),new E.default({image:new C.default({anchor:[.5,1],anchorXUnits:"fraction",anchorYUnits:"fraction",src:X.a}),text:new T.default({text:e.label,scale:1.25,offsetY:8,fill:new k.default({color:"#000000"}),stroke:new U.default({color:"#FFFFFF",width:2})})})]}},_e=function(e,t){var n=e.getGeometry().getType();return ve[n](t&&t.style&&t.style[n]&&{style:ie({},t.style[n])}||t||{})};function je(e){if(e.style.iconUrl)return D.standard.getIcon(e);var t=e.style.iconLibrary||"extra";return D[t]?D[t].getIcon(e):null}var Oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{style:ge},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=t.style[e]||t.style;if("MultiLineString"===e||"LineString"===e){var s=[new E.default({stroke:t.style.useSelectedStyle?new U.default({color:[255,255,255,1],width:a.weight+2}):null}),new E.default(a?{stroke:new U.default(a&&a.stroke?a.stroke:{color:Object(j.b)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),image:n?le:null}:{stroke:new U.default(ge[e]&&ge[e].stroke?ge[e].stroke:{color:Object(j.b)(t.style&&ge[e].color||"#0000FF",ge[e].opacity||1),lineDash:t.style.highlight?[10]:[0],width:ge[e].weight||1})})],l=t.style.useSelectedStyle?de({radius:a.weight,applyToPolygon:!0},{radius:a.weight,applyToPolygon:!0}):[];return[].concat(ne(l),s)}if(("MultiPoint"===e||"Point"===e)&&(a.iconUrl||a.iconGlyph))return n?new E.default({image:le}):je({style:ie(ie({},a),{},{highlight:t.style.highlight||t.style.useSelectedStyle})});if("Circle"===e&&i){var c=[new E.default({stroke:t.style.useSelectedStyle?new U.default({color:[255,255,255,1],width:a.weight+4}):null}),new E.default({stroke:new U.default(a&&a.stroke?a.stroke:{color:t.style.useSelectedStyle?se:Object(j.b)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),fill:new k.default(a.fill?a.fill:{color:Object(j.b)(t.style&&a.fillColor||"#0000FF",a.fillOpacity||.2)})}),new E.default({image:t.style.useSelectedStyle?new z.default({radius:3,fill:new k.default(a.fill?a.fill:{color:se})}):null,geometry:function(e){var t=e.getGeometry();if("Circle"===t.getType()){var n=t.getCenter();return new B.a(n)}return null}})];return c}if("Text"===e&&a.font)return[pe(a,r[0],t.style.useSelectedStyle||t.style.highlight)];if("MultiPolygon"===e||"Polygon"===e){var u=[new E.default({stroke:t.style.useSelectedStyle?new U.default({color:[255,255,255,1],width:a.weight+2}):null}),new E.default({stroke:new U.default(a.stroke?a.stroke:{color:t.style.useSelectedStyle?se:Object(j.b)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),image:n?le:null,fill:new k.default(a.fill?a.fill:{color:Object(j.b)(t.style&&a.fillColor||"#0000FF",a.fillOpacity||1)})})],d=t.style.useSelectedStyle?de({radius:a.weight,applyToPolygon:!0},{radius:a.weight,applyToPolygon:!0}):[];return[].concat(u,ne(d))}return o};function Se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.styleName&&!e.overrideOLStyle)return function(t){if("marker"===e.styleName)switch(t.getGeometry().getType()){case"Point":case"MultiPoint":return ve.marker(e)}return ve[e.styleName](e)};var r,i=e.nativeStyle,a=n,s=0,l=e.style&&e.style.type||(e.features&&e.features[0]&&e.features[0].geometry?e.features[0].geometry.type:void 0);if("FeatureCollection"===l||e.features&&e.features[0]&&"FeatureCollection"===e.features[0].type)return function(n){var o=this||n;r=o.getGeometry()&&o.getGeometry().getType();var i=o&&o.getProperties();i&&i.isCircle&&(r="Circle",s=i.radius),i&&i.isText&&(r="Text",a=[i.valueText]);var l=Object(te.e)("style.useSelectedStyle",i.canEdit,e);return Oe(r,l,t,a,null,s)};if(e&&e.properties&&e.properties.isText)return r="Text",a=[e.properties.valueText],Oe(r,e,t,a,null,s);if(e&&e.properties&&e.properties.isCircle)return r="Circle",s=e.properties.radius,Oe(r,e,t,a,null,s);if(!i&&e.style){if(i={stroke:new U.default(e.style.stroke?e.style.stroke:{color:Object(j.b)(e.style&&e.style.color||"#0000FF",o()(e.style.opacity)?1:e.style.opacity),lineDash:e.style.highlight?[10]:[0],width:e.style.weight||1}),fill:new k.default(e.style.fill?e.style.fill:{color:Object(j.b)(e.style&&e.style.fillColor||"#0000FF",o()(e.style.fillOpacity)?1:e.style.fillOpacity)})},"Point"===l&&(i={image:new z.default(ee()({},i,{radius:e.style.radius||5}))}),e.style.iconUrl||e.style.iconGlyph){var c=je(e);return i=function(t){var n=this||t;switch(r=n.getGeometry().getType()){case"Point":case"MultiPoint":return c;default:return _e(n,e)}}}return i=new E.default(i),"GeometryCollection"===l?i=function(o){var i,a=this||o;r=a.getGeometry().getType();var s=a.get("textGeometriesIndexes")||[],l=a.get("circles")||[],c=a.get("textValues");return"GeometryCollection"===a.getGeometry().getType()?a.getGeometry().getGeometries().reduce((function(o,a,d){if(("Point"===(r=a.getType())||"MultiPoint"===r)&&s.length&&-1!==s.indexOf(d)){var p=Oe("Text",e,t,[c[s.indexOf(d)]]);return p.setGeometry(a),o.concat([p])}if("Polygon"===r&&l.length&&-1!==l.indexOf(d)){var f=Oe("Circle",e,t,[]);return f.setGeometry(a),o.concat([f])}if("Point"===r||"MultiPoint"===r)return i=je({style:ie(ie({},e.style[r]),{},{highlight:e.style.highlight})}),o.concat(i.map((function(e){return e.setGeometry(a),e})));var h=Oe(r,e,t,n);return u()(h)?h.forEach((function(e){return e.setGeometry(a)})):h.setGeometry(a),o.concat([h])}),[]):"Point"===r||"MultiPoint"===r?(i=je({style:ie(ie({},e.style[r]),{},{highlight:e.style.highlight})}),t?new E.default({image:le,geometry:a.getGeometry()}):i.map((function(e){return e.setGeometry(a.getGeometry()),e}))):Oe(r,e,t,n)}:("Circle"===l&&(s=e.features&&e.features.length&&e.features[0].properties&&e.features[0].properties.radius||10),Oe(l,e,t,n,i,s))}return i||_e}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(G.isCircleStyle)(e)?new z.default({stroke:t,fill:n,radius:e.radius||5}):null},Pe=function(e){if(Object(G.isMarkerStyle)(e)){if(e.iconUrl)return D.standard.getIcon({style:e});var t=e.iconLibrary||"extra";if(D[t])return D[t].getIcon({style:e})}return null},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(G.isStrokeStyle)(e)?new U.default(e.stroke&&_()(e.stroke)?e.stroke:{color:e.highlight?Te.blue:Object(j.b)(e.color||e.stroke||"#0000FF",o()(e.opacity)?1:e.opacity),width:o()(e.weight)?1:e.weight,lineDash:l()(e.dashArray)&&a()(e.dashArray).split(" ")||u()(e.dashArray)&&e.dashArray||[0],lineCap:e.lineCap||"round",lineJoin:e.lineJoin||"round",lineDashOffset:e.dashOffset||0}):null},Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(G.isFillStyle)(e)?new k.default(e.fill&&_()(e.fill)?e.fill:{color:Object(j.b)(e.fillColor||"#0000FF",o()(e.fillOpacity)?1:e.fillOpacity)}):null},Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return Object(G.isTextStyle)(e)?new T.default({fill:n,offsetY:e.offsetY||-4*Math.sqrt(e.fontSize),rotation:e.textRotationDeg?e.textRotationDeg/180*Math.PI:0,textAlign:e.textAlign||"center",text:e.label||r&&r.properties&&r.properties.valueText||"New",font:e.font||"Arial",stroke:e.highlight?new U.default({color:[255,255,255,1],width:2}):t,image:e.highlight?new z.default({radius:5,fill:null,stroke:new U.default({color:Object(j.b)(e.color||"#0000FF",e.opacity||1),width:e.weight||1})}):null}):null},Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,n=void 0===t?5:t,r=e.fillColor,o=void 0===r?"green":r,i=e.applyToPolygon,a=void 0!==i&&i;return new E.default({image:new z.default({radius:n,fill:new k.default({color:o})}),geometry:function(e){var t=e.getGeometry(),n=t.getType();if(!a&&"Polygon"===n)return null;var r="Polygon"===n?t.getCoordinates()[0]:t.getCoordinates();return r.length>1?new B.a(h()(r)):null}})},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,n=void 0===t?5:t,r=e.fillColor,o=void 0===r?"red":r,i=e.applyToPolygon,a=void 0!==i&&i;return new E.default({image:new z.default({radius:n,fill:new k.default({color:o})}),geometry:function(e){var t=e.getGeometry(),n=t.getType();if(!a&&"Polygon"===n)return null;var r="Polygon"===n?t.getCoordinates()[0]:t.getCoordinates();return new B.a(r.length>3?r[r.length-("Polygon"===n?2:1)]:g()(r))}})},Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{radius:3,fillColor:"green",applyToPolygon:!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{radius:3,fillColor:"red",applyToPolygon:!0},r=[];return b()(e,(function(e){return"startPoint"===e.geometry&&e.filtering}))||r.push(Re(xe({},t))),b()(e,(function(e){return"endPoint"===e.geometry&&e.filtering}))||r.push(Ae(xe({},n))),r};Object(G.registerGeometryFunctions)("centerPoint",(function(e){var t=e.getGeometry(),n=t.getExtent(),r=t.getCenter&&t.getCenter()||[n[2]-n[0],n[3]-n[1]];return new B.a(r)}),"Point"),Object(G.registerGeometryFunctions)("lineToArc",(function(e){var t=e.getGeometry().getType();if("LineString"===t||"MultiPoint"===t){var n=e.getGeometry().getCoordinates();return n=Object(O.transformLineToArcs)(n.map((function(e){var t=Object(O.reproject)(e,"EPSG:3857","EPSG:4326");return[t.x,t.y]}))),new V.a(n.map((function(e){var t=Object(O.reproject)(e,"EPSG:4326","EPSG:3857");return[t.x,t.y]})))}return e.getGeometry()}),"LineString"),Object(G.registerGeometryFunctions)("startPoint",(function(e){var t=e.getGeometry(),n="Polygon"===t.getType()?t.getCoordinates()[0]:t.getCoordinates();return n.length>1?new B.a(h()(n)):null}),"Point"),Object(G.registerGeometryFunctions)("endPoint",(function(e){var t=e.getGeometry(),n=t.getType(),r="Polygon"===n?t.getCoordinates()[0]:t.getCoordinates();return new B.a(r.length>3?r[r.length-("Polygon"===n?2:1)]:g()(r))}),"Point");var Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.geometry?function(t){var n=e.geometry||"centerPoint";return G.geometryFunctions[n].func(t)}:function(e){return e.getGeometry()}},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!o()(e.filtering)||e.filtering},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{properties:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=De(t,e);if(r){var o=Me(t),i=Le(t),a=ke(t,o,i);if(Object(G.isMarkerStyle)(t))return Pe(t).map((function(e){return e.setGeometry(Ne(t)),e}));if(Object(G.isSymbolStyle)(t))return D.standard.getIcon({style:t}).map((function(e){return e.setGeometry(Ne(t)),e}));var s=Ie(t,o,i,e),l=t.zIndex,c=new E.default({geometry:Ne(t),image:a,text:s,stroke:!s&&!a&&o||null,fill:!s&&!a&&i||null,zIndex:l});return[c].concat(e&&e.properties&&e.properties.canEdit&&!e.properties.isCircle?Fe(n):[])}return new E.default({})},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{properties:{}},t=e.style;if(t){var n=u()(t)?t:p()(t);return n.reduce((function(t,r){return t.concat(Ge(e,r,n))}),[])}return[]},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.style&&e.style.url)return Y.a.get(e.style.url).then((function(t){return Object(G.getStyleParser)(e.style.format).readStyle(t.data).then((function(e){return Ce.writeStyle(e)}))}));if(e.style&&"geostyler"===e.style.format)return Ce.writeStyle(e.style.styleObj);var r=Se(e,t,n);return e.asPromise?new W.Promise((function(e){e(r)})):r},Be=je,Ve=de,We=ge},"./MapStore2/web/client/components/map/openlayers/img/marker-icon.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaIxErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/map/openlayers/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAC5ElEQVRYw+2YW4/TMBCF45S0S1luXZCABy5CgLQgwf//S4BYBLTdJLax0fFqmB07nnQfEGqkIydpVH85M+NLjPe++dcPc4Q8Qh4hj5D/AaQJx6H/4TMwB0PeBNwU7EGQAmAtsNfAzoZkgIa0ZgLMa4Aj6CxIAsjhjOCoL5z7Glg1JAOkaicgvQBXuncwJAWjksLtBTWZe04CnYRktUGdilALppZBOgHGZcBzL6OClABvMSVIzyBjazOgrvACf1ydC5mguqAVg6RhdkSWQFj2uxfaq/BrIZOLEWgZdALIDvcMcZLD8ZbLC9de4yR1sYMi4G20S4Q/PWeJYxTOZn5zJXANZHIxAd4JWhPIloTJZhzMQduM89WQ3MUVAE/RnhAXpTycqys3NZALOBbB7kFrgLesQl2h45Fcj8L1tTSohUwuxhy8H/Qg6K7gIs+3kkaigQCOcyEXCHN07wyQazhrmIulvKMQAwMcmLNqyCVyMAI+BuxSMeTk3OPikLY2J1uE+VHQk6ANrhds+tNARqBeaGc72cK550FP4WhXmFmcMGhTwAR1ifOe3EvPqIegFmF+C8gVy0OfAaWQPMR7gF1OQKqGoBjq90HPMP01BUjPOqGFksC4emE48tWQAH0YmvOgF3DST6xieJgHAWxPAHMuNhrImIdvoNOKNWIOcE+UXE0pYAnkX6uhWsgVXDxHdTfCmrEEmMB2zMFimLVOtiiajxiGWrbU52EeCdyOwPEQD8LqyPH9Ti2kgYMf4OhSKB7qYILbBv3CuVTJ11Y80oaseiMWOONc/Y7kJYe0xL2f0BaiFTxknHO5HaMGMublKwxFGzYdWsBF174H/QDknhTHmHHN39iWFnkZx8lPyM8WHfYELmlLKtgWNmFNzQcC1b47gJ4hL19i7o65dhH0Negbca8vONZoP7doIeOC9zXm8RjuL0Gf4d4OYaU5ljo3GYiqzrWQHfJxA6ALhDpVKv9qYeZA8eM3EhfPSCmpuD0AAAAASUVORK5CYII="},"./MapStore2/web/client/components/map/openlayers/mapstore-ol-overrides.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/openlayers/mapstore-ol-overrides.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/map/openlayers/overview.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/openlayers/overview.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/map/openlayers/plugins/BingLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/openlayers/Layers.js"),o=n("./node_modules/ol/layer/Tile.js"),i=n("./node_modules/ol/tileurlfunction.js"),a=n("./node_modules/ol/extent.js"),s=n("./node_modules/ol/util.js");var l=n("./node_modules/ol/proj.js"),c=n("./node_modules/ol/source/State.js"),u=n("./node_modules/ol/source/TileImage.js"),d=n("./node_modules/ol/tilecoord.js"),p=n("./node_modules/ol/tilegrid.js"),f=function(e){function t(t){var n=void 0!==t.hidpi&&t.hidpi;e.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Object(l.f)("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:c.a.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition}),this.hidpi_=n,this.culture_=void 0!==t.culture?t.culture:"en-us",this.maxZoom_=void 0!==t.maxZoom?t.maxZoom:-1,this.apiKey_=t.key,this.imagerySet_=t.imagerySet,function(e,t,n,r){var o=document.createElement("script"),i="olc_"+Object(s.c)(t);function a(){delete window[i],o.parentNode.removeChild(o)}o.async=!0,o.src=e+(-1==e.indexOf("?")?"?":"&")+(r||"callback")+"="+i;var l=setTimeout((function(){a(),n&&n()}),1e4);window[i]=function(e){clearTimeout(l),a(),t(e)},document.getElementsByTagName("head")[0].appendChild(o)}("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_,this.handleImageryMetadataResponse.bind(this),void 0,"jsonp")}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getApiKey=function(){return this.apiKey_},t.prototype.getImagerySet=function(){return this.imagerySet_},t.prototype.handleImageryMetadataResponse=function(e){if(200==e.statusCode&&"OK"==e.statusDescription&&"ValidCredentials"==e.authenticationResultCode&&1==e.resourceSets.length&&1==e.resourceSets[0].resources.length){var t=e.resourceSets[0].resources[0],n=-1==this.maxZoom_?t.zoomMax:this.maxZoom_,r=this.getProjection(),o=Object(p.c)(r),s=this.hidpi_?2:1,u=t.imageWidth==t.imageHeight?t.imageWidth/s:[t.imageWidth/s,t.imageHeight/s],f=Object(p.b)({extent:o,minZoom:t.zoomMin,maxZoom:n,tileSize:u});this.tileGrid=f;var h=this.culture_,m=this.hidpi_;if(this.tileUrlFunction=Object(i.b)(t.imageUrlSubdomains.map((function(e){var n=[0,0,0],r=t.imageUrl.replace("{subdomain}",e).replace("{culture}",h);return function(e,t,o){if(e){Object(d.a)(e[0],e[1],-e[2]-1,n);var i=r;return m&&(i+="&dpi=d1&device=mobile"),i.replace("{quadkey}",Object(d.f)(n))}}}))),t.imageryProviders){var g=Object(l.i)(Object(l.f)("EPSG:4326"),this.getProjection());this.setAttributions(function(e){var n=[],r=e.viewState,o=this.getTileGrid().getTileCoordForCoordAndResolution(r.center,r.resolution)[0];return t.imageryProviders.map((function(t){for(var r=!1,i=t.coverageAreas,s=0,l=i.length;s=c.zoomMin&&o<=c.zoomMax){var u=c.bbox,d=[u[1],u[0],u[3],u[2]],p=Object(a.a)(d,g);if(Object(a.F)(p,e.extent)){r=!0;break}}}r&&n.push(t.attribution)})),n.push('Terms of Use'),n}.bind(this))}this.setState(c.a.READY)}else this.setState(c.a.ERROR)},t}(u.a),h=function e(t,n){t.getSource&&"error"===t.getSource().getState()&&n.onError&&n.onError(t),t.getSource&&"loading"===t.getSource().getState()&&setTimeout(e.bind(null,t,n),1e3)};r.default.registerType("bing",{create:function(e){var t=e.apiKey,n=e.maxNativeZoom||19,r=new o.a({msId:e.id,preload:1/0,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,visible:e.visibility,source:new f({key:t,imagerySet:e.name,maxZoom:n})});return setTimeout(h.bind(null,r,e),1e3),r},isValid:function(e){return!e.getSource||"error"!==e.getSource().getState()}})},"./MapStore2/web/client/components/map/openlayers/plugins/GoogleLayer.js":function(e,t,n){"use strict";n.r(t);var r,o,i=n("./MapStore2/web/client/utils/openlayers/Layers.js"),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./node_modules/ol/proj.js"),c={},u="ontouchstart"in window,d=u?"touchstart":"mousedown",p=u?"touchmove":"mousemove",f=u?"touchend":"mouseup";i.default.registerType("google",{create:function(e,t,n){if(document.getElementById(n+"gmaps")){var o=window.google;r||(r={HYBRID:o.maps.MapTypeId.HYBRID,SATELLITE:o.maps.MapTypeId.SATELLITE,ROADMAP:o.maps.MapTypeId.ROADMAP,TERRAIN:o.maps.MapTypeId.TERRAIN}),c[n]||(c[n]=new o.maps.Map(document.getElementById(n+"gmaps"),{disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1})),c[n].setMapTypeId(r[e.name]);var i=document.getElementById(n+"gmaps"),a=function(){if(c[n]&&"hidden"!==i.style.visibility){var e=Object(l.l)(t.getView().getCenter(),"EPSG:3857","EPSG:4326");c[n].setCenter(new o.maps.LatLng(e[1],e[0]))}},s=function(){c[n]&&"hidden"!==i.style.visibility&&c[n].setZoom(t.getView().getZoom())},u=function(e,t){var n=t[0],r=t[1],o=[[n/2,r/2],[-n/2,r/2],[-n/2,-r/2],[n/2,-r/2]].map((function(t){return n=t,r=e*Math.PI/180,o=n[0],i=n[1],[o*Math.cos(r)-i*Math.sin(r),o*Math.sin(r)+i*Math.cos(r)];var n,r,o,i})),i=o.map((function(e){return e[0]})),a=o.map((function(e){return e[1]})),s=Math.max.apply(null,i),l=Math.min.apply(null,i),c=Math.max.apply(null,a),u=Math.min.apply(null,a),d=Math.abs(c)+Math.abs(u);return{width:Math.abs(s)+Math.abs(l),height:d}},h=function(){if("hidden"!==i.style.visibility){var e=180*t.getView().getRotation()/Math.PI;i.style.transform="rotate("+e+"deg)",o.maps.event.trigger(c[n],"resize")}},m=function(){var e=t.getView();e.on("change:center",a),e.on("change:resolution",s),e.on("change:rotation",h)};t.on("change:view",m),m(),a(),s();var g=t.getViewport(),y=document.getElementById(n+"gmaps").style.transform,b=!1,v=!1;g.addEventListener(d,(function(){b=!0})),g.addEventListener(f,(function(){v&&b&&function(){var e=document.getElementById(n+"gmaps").style.transform;if(c[n]&&e!==y&&-1!==e.indexOf("rotate")){var r=parseFloat(e.match(/[\+\-]?\d+\.?\d*/i)[0]),s=u(-r,t.getSize());i.style.width=s.width+"px",i.style.height=s.height+"px",i.style.left=Math.round((t.getSize()[0]-s.width)/2)+"px",i.style.top=Math.round((t.getSize()[1]-s.height)/2)+"px",o.maps.event.trigger(c[n],"resize"),a()}}(),y=document.getElementById(n+"gmaps").style.transform,b=!1})),g.addEventListener(p,(function(){v=b}))}return null},render:function(e,t,n){o||(o=e.name);var i={zIndex:0};if(!0===e.visibility){var a=document.getElementById(n+"gmaps");a&&(a.style.visibility="visible"),c[n]&&r&&(c[n].setMapTypeId(r[e.name]),c[n].setTilt(0))}else i.visibility="hidden";if(o===e.name){var l=document.getElementById(n+"gmaps");return l&&(l.style.visibility=e.visibility?"visible":"hidden"),s.a.createElement("div",{id:n+"gmaps",className:"fill",style:i})}return null},update:function(e,t,n,r,o){if(c[o]){var i=window.google;if(!n.visibility&&t.visibility){var a=r.getView(),s=Object(l.l)(a.getCenter(),"EPSG:3857","EPSG:4326");c[o].setCenter(new i.maps.LatLng(s[1],s[0])),c[o].setZoom(a.getZoom())}}},remove:function(e,t,n){o===e.name&&(o=void 0,delete c[n])}})},"./MapStore2/web/client/components/map/openlayers/plugins/GraticuleLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/openlayers/Layers.js"),o=n("./node_modules/ol/coordinate.js"),i=n("./node_modules/ol/events.js"),a=n("./node_modules/ol/extent.js"),s=n("./node_modules/ol/geom/GeometryLayout.js"),l=n("./node_modules/ol/geom/LineString.js"),c=n("./node_modules/ol/geom/Point.js"),u=n("./node_modules/ol/math.js"),d=n("./node_modules/ol/proj.js");function p(e,t,n){for(var r,o,i,a,s,l,c=[],d=e(0),p=e(1),f=t(d),h=t(p),m=[p,d],g=[h,f],y=[1,0],b={},v=1e5;--v>0&&y.length>0;)i=y.pop(),d=m.pop(),f=g.pop(),(l=i.toString())in b||(c.push(f[0],f[1]),b[l]=!0),a=y.pop(),p=m.pop(),h=g.pop(),o=t(r=e(s=(i+a)/2)),Object(u.g)(o[0],o[1],f[0],f[1],h[0],h[1])OpenStreetMap contributors.'];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",i=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";e.call(this,{attributions:n,cacheSize:r.cacheSize,crossOrigin:o,opaque:void 0===r.opaque||r.opaque,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,url:i,wrapX:r.wrapX,attributionsCollapsible:!1})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(o.a),a=n("./node_modules/ol/layer/Tile.js");r.default.registerType("osm",{create:function(e){return new a.a({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:e.visibility,zIndex:e.zIndex,source:new i})}})},"./MapStore2/web/client/components/map/openlayers/plugins/OverlayLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/openlayers/Layers.js"),o=n("./node_modules/eventlistener/eventlistener.js"),i=n.n(o),a=n("./node_modules/ol/Overlay.js");r.default.registerType("overlay",{create:function(e,t){var n=function(e,t){var n=e.cloneNode(!0);n.id=t.id+"-overlay",n.className=(t.className||e.className)+"-overlay",n.removeAttribute("data-reactid"),function e(t){if(0!==t.length)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.get)(e,"bbox.bounds",{}),n=t.minx,o=t.miny,s=t.maxx,l=t.maxy,c={projection:e.srs,url:"".concat(e.tileMapUrl,"/{z}/{x}/{-y}.").concat(e.extension),attributions:e.attribution?[e.attribution]:[]},u=new i.a(c),d=u.getTileGrid();if(e.forceDefaultTileGrid){var p=d.getExtent(),f=[p[0],p[1]],h=new a.a({origin:f,extent:e.bbox&&[n,o,s,l],resolutions:d.getResolutions(),tileSize:e.tileSize});u.setTileGridForProjection(e.srs,h),"EPSG:3857"===e.srs&&u.setTileGridForProjection("EPSG:900913",h)}else e.tileSets&&u.setTileGridForProjection(e.srs,new a.a({origin:e.origin,extent:e.bbox&&[n,o,s,l],resolutions:e.tileSets.map((function(e){return e.resolution})),tileSize:e.tileSize}));var m={msId:e.id,extent:e.bbox&&[n,o,s,l],opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,source:u};return m}(e))}})},"./MapStore2/web/client/components/map/openlayers/plugins/TileProviderLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/openlayers/Layers.js"),a=n("./MapStore2/web/client/utils/TileConfigProvider.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),l=n("./MapStore2/web/client/utils/TileProviderUtils.js"),c=n("./node_modules/ol/source/XYZ.js"),u=n("./node_modules/ol/layer/Tile.js");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.topLeftCorner;return t})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=S(e,2),n=t[0],r=t[1];return C?[r,n]:[n,r]})),k=v&&v.map((function(e){return[e.tileWidth,e.tileHeight]})),P=e.bbox,M=P?Object(p.a)([parseFloat(P.bounds.minx),parseFloat(P.bounds.miny),parseFloat(P.bounds.maxx),parseFloat(P.bounds.maxy)],Object(d.h)(P.crs,e.srs)):null,L=j&&j.lowerCorner&&j.upperCorner?[].concat(O(j.lowerCorner),O(j.upperCorner)):null,I=new f.a({extent:L,minZoom:0,origins:T,origin:T?void 0:[20037508.3428,-20037508.3428],resolutions:E,tileSizes:k,tileSize:k?void 0:[256,256]}),R=(e.url||"").replace(/\{tilingSchemeId\}/,c).replace(/\{level\}/,"{z}").replace(/\{row\}/,"{y}").replace(/\{col\}/,"{x}"),A={};Object(u.addAuthenticationParameter)(R,A,e.securityToken);var F=decodeURI(R),N=a.a.format({query:_({},A)}),D=Object(y.isVectorFormat)(e.format)&&b.a[e.format]||g.a,G=new m.a({format:new D({dataProjection:t,layerName:"_layer_"}),tileGrid:I,url:F+N}),z=new h.a({extent:M,msId:e.id,source:G,visible:!1!==e.visibility,zIndex:e.zIndex});return Object(b.b)(e.vectorStyle,z),z};c.default.registerType("wfs3",{create:E,update:function(e,t,n){return n.securityToken!==t.securityToken||n.srs!==t.srs?E(t):null},render:function(){return null}})},"./MapStore2/web/client/components/map/openlayers/plugins/WFSLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/utils/openlayers/Layers.js"),o=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),i=n("./node_modules/ol/source/Vector.js"),a=n("./node_modules/ol/layer/Vector.js"),s=n("./node_modules/ol/format/GeoJSON.js"),l=n("./MapStore2/web/client/api/WFS.js"),c=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),u=n("./MapStore2/web/client/utils/WFSLayerUtils.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.crs||n.srs||"EPSG:3857",o=t.crs||t.srs||"EPSG:3857",i=e.getSource();o!==r&&i.forEachFeature((function(e){e.getGeometry().transform(r,o)})),Object(u.needsReload)(n,t)&&(i.setLoader(h(i,t)),i.clear(),i.refresh()),t.style===n.style&&t.styleName===n.styleName||g(e,t)},render:function(){return null}})},"./MapStore2/web/client/components/map/openlayers/plugins/WMSLayer.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./MapStore2/web/client/utils/openlayers/Layers.js"),s=n("./MapStore2/node_modules/lodash/isNil.js"),l=n.n(s),c=n("./MapStore2/node_modules/lodash/isEqual.js"),u=n.n(c),d=n("./MapStore2/node_modules/lodash/union.js"),p=n.n(d),f=n("./MapStore2/node_modules/lodash/isArray.js"),h=n.n(f),m=n("./node_modules/object-assign/index.js"),g=n.n(m),y=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),b=n("./MapStore2/web/client/utils/ProxyUtils.js"),v=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),_=n("./MapStore2/web/client/utils/SecurityUtils.js"),j=n("./MapStore2/web/client/utils/LayersUtils.js"),O=n("./MapStore2/web/client/utils/MapUtils.js"),S=n("./MapStore2/web/client/utils/ElevationUtils.js"),w=n("./node_modules/ol/LayerType.js"),x=function(e){function t(t){var n=t||{};e.call(this,n),this.type=w.a.IMAGE}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(n("./node_modules/ol/layer/Layer.js").a);x.prototype.getSource;var E=x,C=n("./node_modules/ol/source/ImageWMS.js"),T=n("./node_modules/ol/proj.js"),k=n("./node_modules/ol/tilegrid/TileGrid.js"),P=n("./node_modules/ol/layer/Tile.js"),M=n("./node_modules/ol/source/TileWMS.js"),L=n("./node_modules/ol/source/VectorTile.js"),I=n("./node_modules/ol/layer/VectorTile.js"),R=n("./MapStore2/web/client/utils/VectorTileUtils.js"),A=n("./MapStore2/web/client/utils/openlayers/VectorTileUtils.js"),F=n("./MapStore2/web/client/utils/LayerLocalizationUtils.js");function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t0&&(this.tileUrlFunction=Object(j.b)(o.map(k.bind(this))))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.setTileUrlFunction(Object(j.b)(e.map(k.bind(this))),t)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var e=0,t=[];for(var n in this.dimensions_)t[e++]=n+"-"+this.dimensions_[n];return t.join("/")},t.prototype.updateDimensions=function(e){Object(O.a)(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},t}(S.a);function k(e){var t=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};t==w&&Object(O.a)(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=t==w?Object(C.a)(e,n):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in n?n[t.toLowerCase()]:e}));var r=this.tileGrid,o=this.dimensions_;return function(n,i,a){if(n){var s={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:-n[2]-1};Object(O.a)(s,o);var l=e;return l=t==w?Object(C.a)(l,s):l.replace(/\{(\w+?)\}/g,(function(e,t){return s[t]}))}}}var P=n("./node_modules/ol/source/VectorTile.js"),M=n("./node_modules/ol/format/MVT.js"),L=n("./node_modules/ol/format/GeoJSON.js"),I=n("./node_modules/ol/format/TopoJSON.js"),R=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.TopLeftCorner;return t&&p.default.parseString(t)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.x,n=e.y;return x?[n,t]:[t,n]})),k=m&&m.TileMatrix&&m.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.MatrixWidth,n=e.MatrixHeight;return[parseInt(t,10),parseInt(n,10)]})),M=m&&m.TileMatrix&&m.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TileWidth,n=e.TileHeight;return[parseInt(t,10),parseInt(n,10)]})),L=e.bbox,I=L?Object(b.a)([parseFloat(L.bounds.minx),parseFloat(L.bounds.miny),parseFloat(L.bounds.maxx),parseFloat(L.bounds.maxy)],Object(y.h)(L.crs,e.srs)):o.getExtent(),A=Object(b.B)(I,o.getExtent());Object(b.H)(A)&&(A=o.getExtent());var N={};n.forEach((function(t){return Object(u.addAuthenticationParameter)(t,N,e.securityToken)}));var G=g.a.format({query:F({},N)}),z=e.maxResolution||c()(S.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return w[0]/e*256<.5}))),U=-1!==(e.availableFormats||[]).indexOf(e.format)&&e.format||!e.availableFormats&&e.format||"image/png",B=Object(h.isVectorFormat)(U),V={requestEncoding:t,urls:n.map((function(e){return e+G})),layer:e.name,version:e.version||"1.0.0",matrixSet:l,format:U,style:e.style||"",tileGrid:new E({origins:C,origin:C?void 0:[20037508.3428,-20037508.3428],resolutions:w,matrixIds:d.limitMatrix((j||d.getDefaultMatrixId(e)||[]).map((function(e){return e.identifier})),w.length),sizes:k,extent:A,tileSizes:M,tileSize:!M&&(e.tileSize||[256,256])}),wrapX:!0},W=new T(V),q=new(B?_.a:v.a)({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,maxResolution:z,visible:!1!==e.visibility,source:B?new P.a(F(F({},V),{},{format:new D[e.format]({dataProjection:r}),tileUrlFunction:function(){return W.tileUrlFunction.apply(W,arguments)}})):W});return B&&q.setStyle(Object(R.d)(e)),q};r.default.registerType("wmts",{create:G,update:function(e,t,n){return n.securityToken!==t.securityToken||n.srs!==t.srs||n.format!==t.format||n.style!==t.style?G(t):null},isCompatible:function(e){return!!s()(p.default.getEquivalentSRS(e.srs||"EPSG:3857").filter((function(t){return function(e,t){var n=d.getTileMatrix(t,e),r=n.tileMatrixSetName,o=n.tileMatrixSet;return o?p.default.getEPSGCode(o["ows:SupportedCRS"])===e:r===e}(t,e)})))}})},"./MapStore2/web/client/components/map/openlayers/plugins/index.js":function(e,t,n){"use strict";n.r(t),t.default={BingLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/BingLayer.js").default,GoogleLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/GoogleLayer.js").default,GraticuleLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/GraticuleLayer.js").default,MapQuest:n("./MapStore2/web/client/components/map/openlayers/plugins/MapQuest.js").default,OSMLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/OSMLayer.js").default,OverlayLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/OverlayLayer.js").default,TMSLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/TMSLayer.js").default,TileProviderLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/TileProviderLayer.js").default,VectorLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/VectorLayer.js").default,WFSLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/WFSLayer.js").default,WFS3Layer:n("./MapStore2/web/client/components/map/openlayers/plugins/WFS3Layer.js").default,WMSLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/WMSLayer.js").default,WMTSLayer:n("./MapStore2/web/client/components/map/openlayers/plugins/WMTSLayer.js").default}},"./MapStore2/web/client/components/map/plugins/openlayers.js":function(e,t,n){"use strict";n.r(t),t.default=function(){return n("./MapStore2/web/client/components/map/openlayers/plugins/index.js").default,{Map:n("./MapStore2/web/client/components/map/openlayers/Map.jsx").default,Layer:n("./MapStore2/web/client/components/map/openlayers/Layer.jsx").default,Feature:n("./MapStore2/web/client/components/map/openlayers/Feature.jsx").default,Locate:n("./MapStore2/web/client/components/map/openlayers/Locate.jsx").default,MeasurementSupport:n("./MapStore2/web/client/components/map/openlayers/MeasurementSupport.jsx").default,Overview:n("./MapStore2/web/client/components/map/openlayers/Overview.jsx").default,ScaleBar:n("./MapStore2/web/client/components/map/openlayers/ScaleBar.jsx").default,DrawSupport:n("./MapStore2/web/client/components/map/openlayers/DrawSupport.jsx").default,PopupSupport:n("./MapStore2/web/client/components/map/openlayers/PopupSupport.jsx").default,BoxSelectionSupport:n("./MapStore2/web/client/components/map/openlayers/BoxSelectionSupport.jsx").default}}},"./MapStore2/web/client/components/map/popups/index.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/enhancers/loadingState.jsx"),a=n("./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/reselect/es/index.js"),u=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/web/client/actions/mapInfo.js"),p=n("./MapStore2/web/client/components/data/identify/DefaultViewer.jsx"),f=n("./MapStore2/node_modules/lodash/lodash.js"),h=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),m=n("./MapStore2/web/client/selectors/map.js"),g=Object(s.compose)(Object(l.connect)(Object(c.a)(u.j,(function(e){return{index:e}})),{setIndex:d.D}),Object(s.defaultProps)({index:0,responses:[]})),y=Object(c.a)([u.t,u.w,u.s,u.h,u.u,m.f,u.l],(function(e,t,n,r,o,i,a){return{responses:e,validResponses:t,requests:n,format:r,showEmptyMessageGFI:o,missingResponses:(n||[]).length-(e||[]).length,renderEmpty:i,loaded:a}})),b=Object(s.compose)(Object(l.connect)(y),Object(s.defaultProps)({responses:[],container:function(e){var t=e.index,n=e.children;return o.a.createElement(o.a.Fragment,null,Object(f.isArray)(n)&&n[t]||n)},header:h.a}),g,a.a,a.b,Object(i.a)((function(e){var t=e.loaded;return Object(f.isUndefined)(t)})))(p.a);n.d(t,"IDENTIFY_POPUP",(function(){return v}));var v="identify";t.default={identify:b}},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png":function(e,t,n){e.exports=n.p+"MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAQCAYAAACcN8ZaAAAB3klEQVR42s3U4UdDURzG8czMXJnJ1Vwzc6VJZjaZJdlMlpQsKdmUFNOUspRSSqUolfQfr+fF98Vx5mwv9qbDx7LdznnO7/7Omej3+/+Ga0QMUYkhbvBgmhzCQxwxibIGrGEF8CQhU+LLtKQkQNqScUgjxRxTBIxbgfgD/BgnhM8kM5KTeclLQYqGkkMRBckzR8ic/mAgd5BAZplsUaqyIg2sDtHg2brUZJk5SmwopErJUWE8SpmTMhNvya60Zd/SNrR4bkeaskG4uiwRZk6yrJEYFibGAxn+scECHTmTnuVCzvmty3PHciB7bGKN6lQkzysPqIrHmpFhYbKUtckC1/Ioz4ZHuZdbuSLYiRxRpSZVWXZVxAzC0R4Ik5SQsu6w8yd5l2/5kg95I9SdXMoZQfYIUjeqEUrgOkXGPeN4TYRhxy8E+ZUf+eS7B7miIoeybVSjKDnm8u3+gH3pDTYwu1igATvs/pXqvBKiR4i2bNJfi1ZfUAnjgrOG8wY2quNzBKuU/ZS+uSFEl5O0xRGuUIlZCcw7xG5QPkeHYUSNV5WXGou2sC3rBC0LjenqCXGO0WEiTJa0Lr4KixdHBrDGuGGiRqCUpFk8pGIpQtCU7p4YPwxYxEMCk1aAMQZh8Ac8PfbIzYPJOwAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 c(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},d=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(u(t),"-size-loader")}))};d.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=d},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-container-dimensions/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Loader.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0?Math.min(i,l):i),p=n||(l>0?Math.min(i,l):i),f=Math.min(d,p);return o.a.createElement(s.a,{size:f,style:c({padding:f/10,margin:"auto",display:"flex"},u)})})))}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var r=e.loaderProps;return o.a.createElement(n,s({},t,r))}}))}},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,n){e.exports=n.p+"symbolMissing.svg"},"./MapStore2/web/client/selectors/context.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/localConfig.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/utils/ConfigUtils.js"),s=n("./MapStore2/web/client/utils/PluginsUtils.js");function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(l(e),["Context"])}})),f=function(e){return p(e)},h=Object(r.a)((function(e){return Object(i.get)(u(e),"plugins")}),(function(e){return Object(i.get)(u(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(l(Object(i.get)(e,"desktop",[])),l(t.filter((function(e){return e.active}))))}})),m=(Object(r.a)(u,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(i.get)(e,"context.loading")}(e)?f(e):h(e)||p(e)}),g=function(e){return Object(r.a)(u,m,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(i.findIndex)(Object(i.get)(n,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(r.a)((function(e){return Object(s.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},i=function(e){return(o(e)||{}).monitorState},a=function(e){return function(t){return Object(r.get)(function(e){return Object(r.get)(o(e),"plugins")}(t),e)}},s=function(e){return Object(r.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.locale&&e.locale.current||"en-US"},a=function(e){return e.locale&&e.locale.messages||{}},s=Object(r.a)([i],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return a})),n.d(t,"o",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"m",(function(){return y})),n.d(t,"p",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return S}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},s=Object(o.a)([a],(function(e){return e&&e.projection})),l=function(e){return Object(i.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(i.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(i.get)(a(e),"mapId")&&parseInt(Object(i.get)(a(e),"mapId"),10)||null}(e)},c=function(e){return Object(i.get)(a(e),"info")},u=function(e){var t=Object(i.get)(c(e),"canEdit");return void 0===t?Object(i.get)(e,"context.resource.canEdit"):t},d=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},p=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},f=function(e){return p(e).restrictedExtent},h=function(e){return p(e).crs},m=function(e){var t=p(e),n=s(e);return n&&Object(i.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(i.get)(t,"minZoom")},g=function(e){return Object(i.get)(a(e),"bbox")},y=function(e){return Object(i.get)(function(e){return Object(i.get)(a(e),"limits")}(e),"minZoom")},b=Object(o.a)([function(e){return Object(i.get)(a(e),"resolutions")},s],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),v=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},_=function(e){return Object(i.get)(a(e),"eventListeners.mousemove",[])},j=function(e){return!!_(e).length},O=function(e){return _(e).includes("mouseposition")},S=function(e){return _(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"u",(function(){return y})),n.d(t,"p",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return _})),n.d(t,"o",(function(){return j})),n.d(t,"r",(function(){return O})),n.d(t,"g",(function(){return S})),n.d(t,"v",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"k",(function(){return E})),n.d(t,"j",(function(){return C})),n.d(t,"t",(function(){return T})),n.d(t,"s",(function(){return k})),n.d(t,"l",(function(){return P})),n.d(t,"w",(function(){return M})),n.d(t,"f",(function(){return I})),n.d(t,"e",(function(){return R})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return D})),n.d(t,"q",(function(){return G}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/map.js"),a=n("./MapStore2/web/client/selectors/context.js"),s=n("./MapStore2/web/client/selectors/locale.js"),l=n("./MapStore2/web/client/utils/MapInfoUtils.js"),c=n("./MapStore2/web/client/selectors/maptype.js"),u=n("./MapStore2/web/client/selectors/localConfig.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&t})),g=function(e){return Object(r.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(r.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},b=function(e){return Object(r.get)(e,"mapInfo.configuration",{})},v=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},_=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},j=function(e){return Object(r.get)(e,"mapInfo.itemId",null)},O=function(e){return Object(r.get)(e,"mapInfo.overrideParams",{})},S=function(e){return Object(r.get)(e,"mapInfo.filterNameList",[])},w=Object(o.a)((function(e){return!Object(r.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(r.get)(e,"controls.measure.enabled")&&(Object(r.get)(e,"measurement.lineMeasureEnabled")||Object(r.get)(e,"measurement.areaMeasureEnabled")||Object(r.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(r.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(r.get)(e,"annotations.editing")}),Object(a.b)("Identify"),(function(e,t,n,r,o){return e||!!t||n||!!r||!o})),x=Object(o.c)({format:g,map:i.l,point:v,currentLocale:s.b,maxItems:function(e){return Object(r.get)(e,"mapInfo.configuration.maxItems")}}),E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},T=function(e){return e.mapInfo&&e.mapInfo.responses||[]},k=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},P=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},M=Object(o.a)(k,T,g,i.f,(function(e,t,n,r){var o=Object(l.i)(n);return e.length===t.length&&o.getValidResponses(t,r)})),L=Object(o.a)(M,C,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),I=function(e){var t=L(e)||{};return Object(r.get)(t,"layerMetadata.features")},R=function(e){var t=L(e)||{};return Object(r.get)(t,"layerMetadata.featuresCrs")},A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(r.omit)(e,"radius")}},F=function(e){return function(t){return p(p({},t),{},{style:A(e)(t)})}},N=Object(o.a)(v,E,I,R,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(r.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,n,o,i,a){return i&&e?t?p(p({},e),{},{featuresCrs:o,features:n&&Object(r.isArray)(n)&&n.map(F(a))}):e:void 0})),D=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},G=function(e){var t,n;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(n=t.configuration)||void 0===n?void 0:n.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},i=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/utils/AnnotationsUtils.js":function(e,t,n){"use strict";var r=n("./node_modules/uuid/v1.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/LocaleUtils.js"),a=n("./MapStore2/web/client/utils/MarkerUtils.js"),s=n("./MapStore2/web/client/utils/VectorStyleUtils.js"),l=n("./MapStore2/web/client/utils/ImmutableUtils.js"),c=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/uuid/index.js"),d=n.n(u),p=n("./node_modules/@turf/meta/main.es.js");var f=function(e){var t=[1/0,1/0,-1/0,-1/0];return Object(p.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";return-1!==e.indexOf("rgba")?"rgb".concat(e.slice(e.indexOf("("),e.lastIndexOf(",")),")"):e},L=function(e){return("start"===e?"lm":"end"===e&&"rm")||"cm"},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.features,o=void 0===r?[]:r;return"FeatureCollection"===n?o.reduce((function(e,t){return e[t.geometry.type]=k[t.geometry.type],e}),{type:"FeatureCollection"}):j({},k[n])},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j({title:"annotations.defaulttitle"!==Object(i.f)(t,"annotations.defaulttitle")?Object(i.f)(t,"annotations.defaulttitle"):"Default title",id:o()()},e)},A=function(e){return Object(c.isString)(e)&&e||Object(c.isArray)(e)&&e.join(" ")},F=function(e){return e.color&&e.opacity&&e.weight},N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t&&t[e]?t[e]:t,o=r,i=o.dashArray?A(o.dashArray):"solid";switch(e){case"MultiPolygon":case"Polygon":case"Circle":return{strokeColor:M(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,fillColor:M(o.fillColor),fillOpacity:o.fillOpacity,strokeDashstyle:i};case"LineString":case"MultiLineString":return{strokeColor:M(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i};case"Text":var l=F(o)?{labelOutlineColor:M(o.color),labelOutlineOpacity:o.opacity,labelOutlineWidth:o.weight}:{};return j({fontStyle:o.fontStyle,fontSize:o.fontSize,fontFamily:o.fontFamily,fontWeight:o.fontWeight,labelAlign:L(o.textAlign),fontColor:M(o.fillColor),fontOpacity:o.fillOpacity,label:n,stroke:!0,strokeColor:M(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i},l);case"Point":case"MultiPoint":var u=o.symbolUrl&&Object(s.fetchStyle)(Object(s.hashAndStringify)(o),"base64")||a.a.extraMarkers.markerToDataUrl(o),d=-18,p=-46;return o.iconAnchor&&Object(c.isArray)(o.iconAnchor)&&o.size&&(d="pixels"===o.anchorXUnits?-1*o.iconAnchor[0]:-1*o.size*o.iconAnchor[0],p="pixels"===o.anchorYUnits?-1*o.iconAnchor[1]:-1*o.size*o.iconAnchor[1]),u?{graphicWidth:o.size||36,graphicHeight:o.size||46,externalGraphic:u,graphicXOffset:d,graphicYOffset:p,display:!1===o.filtering&&"none"}:{fillColor:"#0000AE",fillOpacity:.5,strokeColor:"#0000FF",pointRadius:10,strokeOpacity:1,strokeWidth:1,display:!1===o.filtering&&"none"};default:return{fillColor:"#FF0000",fillOpacity:0,strokeColor:"#FF0000",pointRadius:5,strokeOpacity:1,strokeDashstyle:i,strokeWidth:1}}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"FeatureCollection"===t.type?e.concat(t.features.map((function(e){return Object(c.castArray)(e.style||t.style||{}).filter((function(e){return!!Object(c.isNil)(e.filtering)||e.filtering})).map((function(t){return S.fromAnnotationToGeoJson(j(j({},e),{},{style:t}))}))})).reduce((function(e,t){return e.concat(t)}),[])):t.geometry&&"GeometryCollection"===t.geometry.type?e.concat(S.flattenGeometryCollection(t)):e.concat({type:"Feature",geometry:t.geometry,properties:j(j({},t.properties),{},{ms_style:N(t.geometry.type,t.style)})})}),[])},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lat,n=e.lon;return!isNaN(parseFloat(t))&&!isNaN(parseFloat(n))},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.lon,e.lat]},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[[]]],t=e[0].filter(S.validateCoordsArray);return t.length>3&&Object(c.head)(t)[0]===Object(c.last)(t)[0]&&Object(c.head)(t)[1]===Object(c.last)(t)[1]};S={ANNOTATION_TYPE:"ms2-annotations",convertGeoJSONToInternalModel:function(e){var t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];switch(n){case"Point":case"MultiPoint":return{type:1===s.length?"Text":n};case"Polygon":return{type:1===l.length?"Circle":n};case"GeometryCollection":var c=o.filter((function(e){return"Point"===e.type||"MultiPoint"===e.type})),u=o.filter((function(e){return"Polygon"===e.type})),d=0,p=0;return{type:"GeometryCollection",geometries:o.map((function(e){if("Point"===e.type||"MultiPoint"===e.type){if(c.length===s.length)return{type:"Text"};if(0===s.length)return{type:e.type};if(0===d)return d++,{type:"Text"}}if("Polygon"===e.type){if(u.length===l.length)return{type:"Circle"};if(0===l.length)return{type:e.type};if(0===p)return p++,{type:"Circle"}}return{type:e.type}}))};case"FeatureCollection":var f=a.map((function(e){return e.properties&&e.properties.isCircle?{type:"Circle"}:e.properties&&e.properties.isText?{type:"Text"}:{type:e.geometry.type}}));return{type:"FeatureCollection",features:f};default:return{type:n}}},getAvailableStyler:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?"Point":t,r=e.geometries,o=void 0===r?[]:r,i=e.features,a=void 0===i?[]:i;switch(n){case"Point":case"MultiPoint":case"Symbol":return[S.getRelativeStyler(n)];case"LineString":case"MultiLineString":return[S.getRelativeStyler(n)];case"Polygon":case"MultiPolygon":case"Text":case"Circle":return[S.getRelativeStyler(n)];case"GeometryCollection":return o.reduce((function(e,t){return-1!==e.indexOf(S.getRelativeStyler(t.type))?e:e.concat(S.getAvailableStyler(t))}),[]);case"FeatureCollection":return a.reduce((function(e,t){return-1!==e.indexOf(S.getRelativeStyler(t.type))?e:e.concat(S.getAvailableStyler(t))}),[]);default:return[]}},getRelativeStyler:function(e){switch(e){case"Point":case"MultiPoint":return"marker";case"Symbol":return"symbol";case"Circle":return"circle";case"LineString":case"MultiLineString":return"lineString";case"Polygon":case"MultiPolygon":return"polygon";case"Text":return"text";default:return""}},createFont:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fontSize,n=void 0===t?"14":t,r=e.fontSizeUom,o=void 0===r?"px":r,i=e.fontFamily,a=void 0===i?"Arial":i,s=e.fontStyle,l=void 0===s?"normal":s,c=e.fontWeight,u=void 0===c?"normal":c;return"".concat(l," ").concat(u," ").concat(n).concat(o," ").concat(a)},DEFAULT_ANNOTATIONS_STYLES:k,STYLE_CIRCLE:w,STYLE_POINT_MARKER:x,STYLE_POINT_SYMBOL:{iconAnchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",color:"#000000",fillColor:"#000000",opacity:1,size:64,fillOpacity:1},STYLE_TEXT:E,STYLE_LINE:C,STYLE_POLYGON:T,getGeometryType:function(e){var t,n,r;return null!=e&&null!==(t=e.properties)&&void 0!==t&&t.isCircle?"Circle":null!=e&&null!==(n=e.properties)&&void 0!==n&&n.isText?"Text":null==e||null===(r=e.geometry)||void 0===r?void 0:r.type},getGeometryGlyphInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point",t={Point:{glyph:"point",label:"Point"},MultiPoint:{glyph:"point",label:"Point"},LineString:{glyph:"polyline",label:"Line"},MultiLineString:{glyph:"polyline",label:"Line"},Polygon:{glyph:"polygon",label:"Polygon"},MultiPolygon:{glyph:"polygon",label:"Polygon"},Text:{glyph:"font",label:"Text"},Circle:{glyph:"1-circle",label:"Circle"}};return t[e]},normalizeAnnotation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="FeatureCollection"===e.type?j({},e):{type:"Feature",geometry:e},r=I(n),o=R(n.properties,t);return j({style:r,properties:o},n)},removeDuplicate:function(e){return Object(c.values)(e.reduce((function(e,t){return j(j({},e),{},O({},t.properties.id,t))}),{}))},circlesToMultiPolygon:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.circles,a=void 0===i?[]:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w,l=a.reduce((function(e,t){return e.concat([r[t].coordinates])}),[]);return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:l},properties:{id:o()(),ms_style:N("Circle",s)}}},fromCircleToPolygon:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return{type:"Feature",geometry:t.polygonGeom||e,properties:{id:t.id||o()(),ms_style:N("Circle",n)}}},fromTextToPoint:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return{type:"Feature",geometry:e,properties:{id:t.id||o()(),ms_style:N("Text",n,t.valueText)}}},fromLineStringToGeodesicLineString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return{type:"Feature",geometry:e.geometryGeodesic,properties:{id:e.id||o()(),ms_style:N(e.geometryGeodesic.type,t)}}},textToPoint:function(e,t){var n=e.geometries,r=void 0===n?[]:n,i=t.textGeometriesIndexes,a=void 0===i?[]:i,s=t.textValues,l=void 0===s?[]:s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return a.map((function(e,t){return{type:"Feature",geometry:r[e],properties:{id:o()(),ms_style:N("Text",c,l[t])}}}))},flattenGeometryCollection:function(e){var t=e.geometry,n=e.properties,r=e.style,i=n.circles&&S.circlesToMultiPolygon(t,n,r.Circle)||[],a=n.textGeometriesIndexes&&S.textToPoint(t,n,r.Text)||[],s=(n.circles||[]).concat(n.textGeometriesIndexes||[]);return t.geometries.filter((function(e,t){return-1===s.indexOf(t)})).map((function(e){return{type:"Feature",geometry:e,properties:{id:o()(),ms_style:N(e.type,r[e.type])}}})).concat(i,a)},createGeometryFromGeomFunction:function(e){var t=s.geometryFunctions[e.style.geometry]&&s.geometryFunctions[e.style.geometry].type||e.geometry.type,n=e.geometry.coordinates||[];switch(e.style.geometry){case"startPoint":n=Object(c.head)(n);break;case"endPoint":n=Object(c.last)(n);break;case"centerPoint":n=m(e).geometry.coordinates}return{type:t,coordinates:n}},fromAnnotationToGeoJson:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geometry,n=e.properties,r=void 0===n?{}:n,i=e.style,a=void 0===i?{}:i,s=a.geometry?S.createGeometryFromGeomFunction({geometry:t,properties:r,style:a,type:"Feature"}):t;return r.isCircle&&"Polygon"===s.type?S.fromCircleToPolygon(s,r,a):r.isText?S.fromTextToPoint(s,r,a):"LineString"===s.type&&r.useGeodesicLines&&a.filtering?S.fromLineStringToGeodesicLineString(r,a):{type:"Feature",geometry:s,properties:{id:r.id||o()(),ms_style:N(s.type,a)}}},annotationsToPrint:D,formatCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]];return e.map((function(e){return{lat:e&&e[1],lon:e&&e[0]}}))},getBaseCoord:function(e){switch(e){case"Polygon":case"LineString":case"MultiPoint":return[];default:return[[{lat:"",lon:""}]]}},getComponents:function(e){var t=e.type,n=e.coordinates;switch(t){case"Polygon":return S.isCompletePolygon(n)?S.formatCoordinates(Object(c.slice)(n[0],0,n[0].length-1)):S.formatCoordinates(n[0]);case"LineString":case"MultiPoint":return S.formatCoordinates(n);default:return S.formatCoordinates([n])}},addIds:function(e){return e.map((function(e){return e.properties&&e.properties.id?e:Object(l.e)("properties.id",d.a.v1(),e)}))},COMPONENTS_VALIDATION:{Point:{min:1,add:!1,remove:!1,validation:"validateCoordinates",notValid:"Add a valid coordinate to complete the Point"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 3 valid coordinates to complete the Polygon"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Circle:{add:!1,remove:!1,validation:"validateCircle",notValid:"Add a valid coordinate and a radius (m) to complete the Circle"},Text:{add:!1,remove:!1,validation:"validateText",notValid:"Add a valid coordinate and a Text value"}},validateCoords:G,validateCoordsArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=b(e,2),n=t[0],r=t[1];return!isNaN(parseFloat(r))&&!isNaN(parseFloat(n))},validateCoord:function(e){return!isNaN(parseFloat(e))},coordToArray:z,validateCoordinates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.remove,o=void 0!==r&&r,i=e.type;if(n&&n.length){var a=n.filter(S.validateCoords);return o?a.length>S.COMPONENTS_VALIDATION[i].min&&a.length===n.length:a.length>=S.COMPONENTS_VALIDATION[i].min&&a.length===n.length}return!1},validateCircle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{radius:0}:r;if(n&&n.length){var i=Object(c.head)(n);return!isNaN(parseFloat(o.radius))&&S.validateCoords(i)}return!1},validateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[]:t,r=e.properties,o=void 0===r?{valueText:""}:r;if(n&&n.length){var i=Object(c.head)(n);return o&&!!o.valueText&&S.validateCoords(i)}return!1},validateFeature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=void 0===t?[[]]:t,r=e.type,o=e.remove,i=void 0!==o&&o,a=e.properties,s=void 0===a?{}:a;return!Object(c.isNil)(r)&&("Text"===r?S.validateText({components:n,properties:s}):"Circle"===r?S.validateCircle({components:n,properties:s}):S.validateCoordinates({components:n,remove:i,type:r}))},updateAllStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.features&&e.features.length?j(j({},e),{},{features:e.features.map((function(e){return y()({},e,{style:Object(c.castArray)(e.style).map((function(e){return y()({},e,t)}))})}))}):e},getStartEndPointsForLinestring:P,DEFAULT_SHAPE:"triangle",DEFAULT_PATH:"product/assets/symbols/",checkSymbolsError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading_symbols_path";return e.length&&-1!==Object(c.findIndex)(e,(function(e){return e===t}))},isAMissingSymbol:function(e){return e.symbolUrlCustomized===n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")},isCompletePolygon:U,getDashArrayFromStyle:A,isAnnotation:function(e){return"ms2-annotations"===(null==e?void 0:e.type)||"Annotations"===(null==e?void 0:e.name)}}},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t,n,o){var i=e;isNaN(parseFloat(e))&&(i=r.hexToHsv(e)[0]);var a=.5/(n-1),s=t/(n-1),l=[];1===n&&(a=.5,s=t/2);for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:"red";return i()(e).toHexString()},c=function(e,t,n){var r=i()(e);return e&&r.setAlpha(Object(a.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,i,a,s,l,c=e/255,u=t/255,d=n/255;switch(o=Math.min(Math.min(c,u),d),a=(i=Math.max(Math.max(c,u),d))-o,i){case o:s=0;break;case c:s=60*(u-d)/a,u0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:l,colorToRgbaStr:c}},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,n){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return M})),n.d(t,"getProjUrl",(function(){return I})),n.d(t,"determineCrs",(function(){return A})),n.d(t,"normalizePoint",(function(){return N})),n.d(t,"reproject",(function(){return G})),n.d(t,"reprojectExtent",(function(){return U})),n.d(t,"getPolygonFromExtent",(function(){return B})),n.d(t,"getExtentFromNormalized",(function(){return V})),n.d(t,"crsCodeTable",(function(){return W})),n.d(t,"setCrsLabels",(function(){return q})),n.d(t,"getUnits",(function(){return Y})),n.d(t,"getProjectedBBox",(function(){return H})),n.d(t,"createBBox",(function(){return K})),n.d(t,"reprojectGeoJson",(function(){return Z})),n.d(t,"lineIntersectPolygon",(function(){return X})),n.d(t,"normalizeLng",(function(){return J})),n.d(t,"reprojectBbox",(function(){return Q})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ie})),n.d(t,"filterCRSList",(function(){return ae})),n.d(t,"calculateAzimuth",(function(){return se})),n.d(t,"calculateDistance",(function(){return le})),n.d(t,"extendExtent",(function(){return ce})),n.d(t,"getGeoJSONExtent",(function(){return ue})),n.d(t,"isValidExtent",(function(){return de})),n.d(t,"calculateCircleCoordinates",(function(){return pe})),n.d(t,"transformLineToArcs",(function(){return fe})),n.d(t,"transformArcsToLine",(function(){return he})),n.d(t,"coordsOLtoLeaflet",(function(){return me})),n.d(t,"mergeToPolyGeom",(function(){return ge})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return be})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return _e})),n.d(t,"parseString",(function(){return je})),n.d(t,"getWMSBoundingBox",(function(){return Oe})),n.d(t,"isSRSAllowed",(function(){return Se})),n.d(t,"getNormalizedLatLon",(function(){return we})),n.d(t,"isInsideVisibleArea",(function(){return xe})),n.d(t,"centerToVisibleArea",(function(){return Ee})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return Ce})),n.d(t,"roundCoord",(function(){return Te})),n.d(t,"midpoint",(function(){return ke})),n.d(t,"pointObjectToArray",(function(){return Pe})),n.d(t,"isPointInsideExtent",(function(){return Me})),n.d(t,"isBboxCompatible",(function(){return Le})),n.d(t,"extractCrsFromURN",(function(){return Ie})),n.d(t,"makeNumericEPSG",(function(){return Re})),n.d(t,"makeBboxFromOWS",(function(){return Ae}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/proj4.js"),a=n.n(i),s=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(s),c=n("./node_modules/object-assign/index.js"),u=n.n(c),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./node_modules/@turf/line-intersect/index.js"),f=n.n(p),h=n("./node_modules/@turf/polygon-to-linestring/index.js"),m=n.n(h),g=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),b=n.n(y),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),_=n("./node_modules/@turf/boolean-overlap/main.es.js"),j=n("./node_modules/@turf/boolean-contains/main.es.js");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return L(e,t)}));var n}var I=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function R(e,t,n){if(null===e)return e;var r=Object(d.cloneDeep)(e);return"Feature"===e.type?r.geometry=R(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return R(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return R(e,t,n)})):t&&t(r),n&&n(r),r}function A(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},N=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},D=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},G=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=n&&a.a.defs(n)?new a.a.Proj(n):null;if(o&&i){var s=Object(d.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),l=u()({},t===n?D(s):a.a.transform(o,i,D(s)),{srs:n});return r?N(l):l}return null},z=["EPSG:900913","EPSG:4326","EPSG:3857"],U=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])})):[G([e[0],e[1]],"EPSG:4326",t),G([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])},B=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},V=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[G([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),G([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,i=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=o*a,c=o*s,u=i*a,d=i*s,p=e.x,f=e.y,h=p-l+d,m=p-l-d,g=p+l-d,y=p+l+d,b=f-c-u,v=f-c+u,_=f+c+u,j=f+c-u,O=k.createBBox(Math.min(h,m,g,y),Math.min(b,v,_,j),Math.max(h,m,g,y),Math.max(b,v,_,j));return O},K=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=A(r)),"string"==typeof o&&(o=A(o));var i=P(r,o);return R(e,(function(e){e.crs&&delete e.crs,e.coordinates=L(e.coordinates,(function(e){var t=E(e,2),n=t[0],r=t[1];return i.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],R(e,(function(e){L(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},X=function(e,t){var n=m()(t).features[0];return 0!==f()(e,n).features.length},J=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in r)if(r.hasOwnProperty(a)){var s=k.reproject(r[a],t,n,o);if(!s)return null;var l=s.x,c=s.y;i.push(l),i.push(c)}return i},$=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,i],[o,i],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?k.getCompatibleSRS(n,t):n},oe=function(e,t){return t[k.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},ae=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return u()({},-1===t.indexOf(r)?n:S(S({},n),{},w({},r,e[r])))}),{}),i=r.map((function(e){return e.code})),a=Object.keys(n).reduce((function(e,t){return u()({},-1===i.indexOf(t)?e:S(S({},e),{},w({},t,n[t])))}),{});return u()({},o,a)},se=function(e,t,n){var r=k.reproject(e,n,"EPSG:4326"),o=k.reproject(t,n,"EPSG:4326"),i=r.x*Math.PI/180,a=r.y*Math.PI/180,s=o.x*Math.PI/180,l=o.y*Math.PI/180,c=s-i,u=Math.sin(c)*Math.cos(l),d=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(c);return(180*Math.atan2(u,d)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(M).indexOf(t)?M[t](e):0},ce=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},ue=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=k.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return k.getGeoJSONExtent(e.geometry)}return n},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},pe=function(e,t,n,r){var o,i,a,s=Math.PI*(1/n-.5);r&&(s+=r/180*Math.PI);for(var l=[[]],c=0;c1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(k.transformArcsToLine(Object(d.slice)(e,t))):[]},me=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},ge=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(z.filter((function(e){return e===t})))){var n=V(e,t),r=n.extent,o=n.isIDL,i=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var a=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:r,center:[a=a>180?a-360:a,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var s=[e.minx,e.miny,e.maxx,e.maxy],l=[s[0],s[1]],c=[s[2],s[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],c[1]],c,[c[0],l[1]],l]],extent:s,center:[(s[0]+s[2])/2,(s[1]+s[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=k.getViewportGeometry(t,n),i=o.extent;if(4===i.length)return k.reprojectBbox(i,n,r);var a=i.map((function(e){return e[2]-e[0]})),s=E(a,2),l=s[0],c=s[1];return l>c?k.reprojectBbox(i[0],n,r):k.reprojectBbox(i[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||I(n),null,{timeout:2e3})},_e=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(d.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},je=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},Oe=function(e,t){var n=t||"EPSG:3857",r=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&k.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(d.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},Se=function(e){return!!a.a.defs(e)},we=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:k.normalizeLng(n)}},xe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=k.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=k.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),s=S({left:0,right:0,top:0,bottom:0},n),l={minx:a[0]+s.left*r,miny:a[1]+s.bottom*r,maxx:a[2]-s.right*r,maxy:a[3]-s.top*r},c=k.getViewportGeometry(l,t.projection),u=4===c.extent.length?[x(c.extent)]:x(c.extent);return Object(d.head)(u.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=k.getNormalizedLatLon(e),i=G([o.lng,o.lat],"EPSG:4326",t.projection),a=S({left:0,right:0,top:0,bottom:0},n),s={width:(t.size.width-a.right-a.left)*r,height:(t.size.height-a.top-a.bottom)*r},l={minx:i.x-s.width/2-a.left*r,miny:i.y-s.height/2-a.bottom*r,maxx:i.x+s.width/2+a.right*r,maxy:i.y+s.height/2+a.top*r},c=k.getViewportGeometry(l,t.projection);if(4===c.extent.length)return{pos:G([c.extent[0]+t.size.width/2*r,c.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(c.extent[0][2]-c.extent[0][0])>Math.abs(c.extent[1][2]-c.extent[1][0])){var u=G([c.extent[0][2]-t.size.width/2*r,c.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),d=S(S({},u),{},{x:u.x+(o.lng>u.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:G([c.extent[1][0]+t.size.width/2*r,c.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(d.isArray)(n)?n:[n.x,n.y];if(Object(d.isNumber)(i[0])&&!isNaN(i[0])&&Object(d.isNumber)(i[1])&&!isNaN(i[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(d.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,s=a&&(Object(d.isArray)(a)?a:[a.x,a.y]);return Object(d.isArray)(s)?Math.sqrt((i[0]-s[0])*(i[0]-s[0])+(i[1]-s[1])*(i[1]-s[1])):o}return o},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[n]?Math[n](o):o},ke=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[i.x,i.y]:i},Pe=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(B(t),b()([e.lng,e.lat]))},Le=function(e,t){return Object(_.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},Ie=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Re=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=W[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ae=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var i=n.slice(),a=r.slice();n=[a[0],i[1]],r=[i[0],a[1]]}return[n[0],n[1],r[0],r[1]]};k={setCrsLabels:q,getUnits:Y,reproject:G,getProjectedBBox:H,createBBox:K,reprojectGeoJson:Z,lineIntersectPolygon:X,normalizePoint:N,normalizeLng:J,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:se,calculateDistance:le,FORMULAS:M,extendExtent:ce,getGeoJSONExtent:ue,isValidExtent:de,calculateCircleCoordinates:pe,transformLineToArcs:fe,transformArcsToLine:he,coordsOLtoLeaflet:me,mergeToPolyGeom:ge,getViewportGeometry:ye,getProjUrl:I,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:_e,determineCrs:A,parseString:je,getWMSBoundingBox:Oe,isSRSAllowed:Se,getNormalizedLatLon:we,isInsideVisibleArea:xe,centerToVisibleArea:Ee,calculateCircleRadiusFromPixel:Ce,roundCoord:Te,midpoint:ke,pointObjectToArray:Pe,getExtentFromNormalized:V,getPolygonFromExtent:B,isPointInsideExtent:Me,isBboxCompatible:Le,extractCrsFromURN:Ie,crsCodeTable:W,makeNumericEPSG:Re,makeBboxFromOWS:Ae},t.default=k},"./MapStore2/web/client/utils/ElevationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"loadTile",(function(){return u})),n.d(t,"getElevation",(function(){return d})),n.d(t,"reset",(function(){return p}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./node_modules/lrucache/index.js"),a=n.n(i),s=n("./node_modules/es6-promise/dist/es6-promise.js"),l=new a.a(100),c=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=r*e+n;try{var a=t.dataView.getInt16(2*i,!1);if(a!==o&&32767!==a&&-32768!==a)return a}catch(e){}return null},u=function(e,t,n){return l.has(n)?null:new s.Promise((function(r,i){o.a.get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,n){l.set(n,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,n),r()})).catch((function(e){!function(e,t,n){l.set(n,{coords:t,current:!0,status:"error: "+e})}(e.message,t,n),i(e)}))}))},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=l.get(e);return o&&"success"===o.status?{available:!0,value:c(n,o,t.x,t.y,r)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=new a.a(e.max||100)}},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},i=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,a=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function s(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function l(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var c={HTML:{getValidResponses:function(e,t){return t?e.filter(s):e},getNoValidResponses:function(e){return e.filter((function(e){return!s(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},C=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var a=n.startDate.toISOString?n.startDate.toISOString():n.startDate,s=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+a+"<"+r+":UpperBoundary><"+r+":Literal>"+s+"")}}else if(n.startDate){var l=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+l+"")}return o},T=function(e,t,n,r){var o;return Object(p.isNil)(n)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},k=function(e,t,n,r){var o;return j(n,t)&&(o="isNull"===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag):"="===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+""):i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>*"+n+"*")),o},P=function(e,t,n,r){var o="";return j(n,t)&&"="===t&&""!==n&&(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},M=function(e,t,n,r){var o;if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=i.ogcComparisonOperators["<="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=i.ogcComparisonOperators[">="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var a=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(a)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+a+""))}return o},L=function(e,t){var n="";switch(e.type){case"date":n=C(e.attribute,e.operator,e.values,t);break;case"number":n=M(e.attribute,e.operator,e.values,t);break;case"string":n=k(e.attribute,e.operator,e.values,t);break;case"boolean":n=P(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+k(e.attribute,o,r,t)}),""),n=i.ogcLogicalOperators.OR(t,n)}}return n},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(_(o),"')")},R=function(e){return"collectGeometries(".concat(e,")")},A=function(e,t,n){var r,a,s,l,c=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,n):b.processOGCFilterFields(null,e,n))&&c.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var u=i.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return L(e,n)})).join(""));c.push(u)}if(Object(p.isArray)(e.spatialField)?(l=Object(p.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(s=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?l=e.spatialField:s=[e.spatialField]),l){if(Object(p.isArray)(l.geometry&&l.geometry.extent[0])){var d=l.geometry.extent.reduce((function(e,r){var o=Object.assign({},l);return l.geometry.extent=r,e+b.processOGCSpatialFilter(t,o,n)}),"");a=i.ogcLogicalOperators.OR(n,d)}c.push(a)}else if(s&&(s=s.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var f=s.map((function(e){return b.processOGCSpatialFilter(t,e,n)})).join("");a=s.length>1?i.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,f):f,c.push(a)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var h=g(g({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?h.forEach((function(e){return c.push(b.processOGCCrossLayerFilter(e,n))})):c.push(b.processOGCCrossLayerFilter(h,n))}return e.options&&e.options.cqlFilter&&c.push(v(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),c},F=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var c=x(n||"2.0"),u="2.0"===c?"fes":"ogc",d=b.getGetFeatureBase(c,r.pagination,i,a,t&&t.options),p=b.toOGCFilterParts(r,c,u),f="";return p.length>0&&(f="<"+u+":Filter>",1===p.length?f+=p[0]:(f+="<"+u+":And>",p.forEach((function(e){f+=e})),f+=""),f+=""),d+=""),d+=f,s&&(d+=s.map((function(e){return E[u].startTag+e+E[u].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(d+="<"+u+":SortBy><"+u+":SortProperty>"+E[u].startTag+o.sortBy+E[u].endTag+"<"+u+":SortOrder>"+o.sortOrder+""),d+="
"},N=function(e,t,n){var r=b.processOGCFilterFields(e,t,n),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=b.processOGCFilterGroup(e,t,n)})),""!==r?i.ogcLogicalOperators[e.logic](n,r):""},D=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=C(t.attribute,t.operator,t.value,n);break;case"number":r=M(t.attribute,t.operator,t.value,n);break;case"string":r=k(t.attribute,t.operator,t.value,n);break;case"boolean":r=P(t.attribute,t.operator,t.value,n);break;case"list":r=T(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=k(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},G=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},z=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},U=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},B=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},V=function(e,t,n){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=E[n].startTag+t.attribute+E[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](n,a)},W=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=n?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=n&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},q=function(e){return Object(p.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(p.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(p.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},Y=function(e,t){var n=t||"ogc",r=E[n].startTag+e.attribute+E[n].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](n,r)},H=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var n=e,r=b.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(r=b.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,c=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&c){var u=c.typeName,d=c.geometryName,p=b.getCrossLayerCqlFilter(a),f=R(I({typeName:u,geometryName:d,cqlFilter:p}));o.push("".concat(s,"(").concat(l,",").concat(f,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var n="NOR"===e.logic?g(g({},e),{},{logic:"AND",negateAll:!0}):e,r=b.processCQLFilterFields(n,t),o=b.findSubGroups(n,t.groupFields);if(o.length>0){var i=o.map((function(e){return(n.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,i].join(" "+n.logic+" "):i}return r},Z=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},Q=function(e,t,n){var r,o=S(e);if(!Object(p.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+_(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+_(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+_(n)+"%'")}return r},$=function(e,t,n){var r="";Object(p.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=S(e);if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var i=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(i)||(r=o+" "+t+" '"+i+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return b.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=b.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,n){var r=b.toOGCFilter(e,t,n),o=r.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=r.search("");r=r.substr(o,i-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,g(g({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(p.isArray)(e.spatialField)&&Object(p.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,c=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(c),logic:e.logic,id:"".concat(e.id,"_").concat(c),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return g(g({},e),{},{groupId:"".concat(e.groupId,"_").concat(c)})}))),spatialField:de(e.spatialField,l),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},fe=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(n=Object(d.reproject)(o,r,t)).x,n.y],l=i&&Object(d.reproject)([i,0],r,t).x;return g(g({},e),{},{spatialField:g(g({},e.spatialField),{},{geometry:g(g({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):g(g({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,i=void 0===r?"2.0":r,s=e.addXmlnsToRoot,c=void 0!==s&&s,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=u()({filterNS:n,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),g=l()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(_.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(_.slice(j))}return _};b={processOGCFilterGroup:N,processOGCFilterFields:D,processOGCCrossLayerFilter:Y,getGetFeatureBase:W,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:H,getCrossLayerCqlFilter:q,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:X,processCQLFilterFields:re,getCQLGeometryElement:Z,cqlStringField:Q,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:fe,processOGCSpatialFilter:V,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/node_modules/lodash/fp/set.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/fp/unset.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/fp/compose.js"),c=n.n(l),u=i.a,d=s.a,p=c.a,f=function(e,t,n,o){var i=e?Object(r.get)(o,e)||[]:o,a=Object(r.findIndex)(i,n);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?u(e,s,o):s}return e?u(e,i.concat(t),o):i.concat(t)},h=function(e,t,n,o){var i=e?Object(r.get)(o,e)||[]:o,a=Object(r.findIndex)(i,n);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?u(e,s,o):s}return o},m=function(e,t,n){var o=e?Object(r.get)(n,e)||[]:n,i=Object(r.findIndex)(o,t);if(i>=0){var a=o.slice();return a.splice(i,1),e?u(e,a,n):a()}return n}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return k})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return M})),n.d(t,"i",(function(){return L})),n.d(t,"k",(function(){return I})),n.d(t,"b",(function(){return R})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return N}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=n("./node_modules/turf-point-on-surface/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),c=n.n(l),u=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),p=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),f=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=n.n(f),m=n("./MapStore2/web/client/utils/mapinfo/wms.js"),g=n.n(m),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=n.n(y),v=n("./MapStore2/web/client/utils/mapinfo/vector.js"),_=n.n(v);function j(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],r);return[].concat(j(n),j(s))}return j(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var i;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(i=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(i=r.queryParams.outputFormat);var a=(o.c[r.format||o.b[i]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(j(n),j(a))}return j(n)}),[])}}},I=function(){var e;return x(e={},o.a.PROPERTIES,u.a),x(e,o.a.JSON,u.a),x(e,o.a.HTML,d.a),x(e,o.a.TEXT,p.a),e},R=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:h.a,wms:g.a,wmts:b.a,vector:_.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},N=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var i=e[n];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:E,getDefaultInfoFormatValue:T,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:c.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&w({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),n.d(t,"METERS_PER_UNIT",(function(){return v})),n.d(t,"GOOGLE_MERCATOR",(function(){return _})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return O})),n.d(t,"RESOLUTIONS_HOOK",(function(){return S})),n.d(t,"RESOLUTION_HOOK",(function(){return w})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return E})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return C})),n.d(t,"registerHook",(function(){return k})),n.d(t,"getHook",(function(){return P})),n.d(t,"executeHook",(function(){return M})),n.d(t,"clearHooks",(function(){return L})),n.d(t,"dpi2dpm",(function(){return I})),n.d(t,"dpi2dpu",(function(){return R})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return N})),n.d(t,"getGoogleMercatorScales",(function(){return D})),n.d(t,"getResolutionsForScales",(function(){return G})),n.d(t,"getGoogleMercatorResolutions",(function(){return z})),n.d(t,"getResolutions",(function(){return U})),n.d(t,"getScales",(function(){return B})),n.d(t,"defaultGetZoomForExtent",(function(){return V})),n.d(t,"getZoomForExtent",(function(){return W})),n.d(t,"getCurrentResolution",(function(){return q})),n.d(t,"getCenterForExtent",(function(){return Y})),n.d(t,"getBbox",(function(){return H})),n.d(t,"isNearlyEqual",(function(){return K})),n.d(t,"mapUpdated",(function(){return Z})),n.d(t,"transformExtent",(function(){return X})),n.d(t,"groupSaveFormatted",(function(){return J})),n.d(t,"saveMapConfiguration",(function(){return Q})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ie})),n.d(t,"prepareMapObjectToCompare",(function(){return ae})),n.d(t,"updateObjectFieldKey",(function(){return se})),n.d(t,"compareMapChanges",(function(){return le})),n.d(t,"createRegisterHooks",(function(){return ce}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./node_modules/object-assign/index.js"),u=n.n(c);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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,r))}function W(e,t,n,r,o){return P("EXTENT_TO_ZOOM_HOOK")?P("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):V(e,t,n,r,o,P("RESOLUTIONS_HOOK")?P("RESOLUTIONS_HOOK")(e,t,n,r,o,I(o||b)):null)}function q(e,t,n,r){return P("RESOLUTION_HOOK")?P("RESOLUTION_HOOK")(e,t,n,r):z(t,n,r)[e]}function Y(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function H(e,t){return M("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Z(e,t){var n,o,i,a;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(K(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function X(e,t,n,r){var o=Object(a.getUnits)(e);return"ft"===o?{width:n/v.ft,height:r/v.ft}:"us-ft"===o?{width:n/v["us-ft"],height:r/v["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,n,o,i,a,c){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},p=t.map((function(e){return Object(l.saveLayer)(e)})),f=n.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(n,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(l.extractSourcesFromLayers)(p),y=p.map((function(e){return u()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?g(g({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(s.e)("features",v,y[b])}return g({version:2,map:u()({},d,{layers:y,groups:f,backgrounds:h,text_search_config:i,bookmark_search_config:a},!Object(r.isEmpty)(m)&&{sources:m}||{})},c)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=g(g({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return g(g({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return g(g({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return g(g({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return g(g({},e),{},{id:n[e.id],layer:g(g({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(f(Object(r.get)(e,"map.backgrounds",[])),f(Object(r.get)(o,"map.backgrounds",[]))),a=n(Object(r.get)(e,"map.layers",[])),s=n(Object(r.get)(o,"map.layers",[])),l=Object(r.find)(a,(function(e){return"annotations"===e.id})),c=Object(r.find)(s,(function(e){return"annotations"===e.id})),u=[].concat(f(s.filter((function(e){return"annotations"!==e.id}))),f(a.filter((function(e){return"annotations"!==e.id}))),f(l||c?[g(g(g({},l||{}),c||{}),{},{features:[].concat(f(Object(r.get)(l,"features",[])),f(Object(r.get)(c,"features",[])))})]:[])),d=u.filter((function(e){return"background"===e.group})),p=Object(r.findIndex)(d,(function(e){return e.visibility})),h=Object(r.get)(e,"map.sources",{}),m=Object(r.get)(o,"map.sources",{}),b=g(g({},h),m),v=Object(r.get)(e,"widgetsConfig",{}),_=Object(r.get)(o,"widgetsConfig",{});return g(g(g({},o),e),{},{catalogServices:g(g({},Object(r.get)(e,"catalogServices",{})),{},{services:g(g({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:g(g(g({},o.map),e.map),{},{backgrounds:i,groups:Object(r.uniqWith)([].concat(f(Object(r.get)(e,"map.groups",[])),f(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(f(d.slice(0,p+1)),f(d.slice(p+1).map((function(e){return g(g({},e),{},{visibility:!1})}))),f(u.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:g(g({},v.collapsed),_.collapsed),layouts:Object(r.uniq)([].concat(f(Object(r.keys)(v.layouts)),f(Object(r.keys)(_.layouts)))).reduce((function(e,t){return g(g({},e),{},y({},t,[].concat(f(Object(r.get)(v,"layouts.".concat(t),[])),f(Object(r.get)(_,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(f(Object(r.get)(v,"widgets",[])),f(Object(r.get)(_,"widgets",[])))},timelineData:g(g({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:g(g({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),a=Object(r.find)(n,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(f(o.map((function(e){var t=e.id,n=p(e,["id"]);return g({id:"".concat(s.id,".").concat(t)},n)}))),[s]):o;return g(g({},e),{},{map:g(g({},e.map),{},{groups:l,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return g(g({},p(e,["group"])),{},{group:!a||"background"===n||"Default"!==n&&n?a&&(null===(t=Object(r.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:s.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},ae=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],i=d(o);"object"!==i||null===o||r(n)?"undefined"!==i&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},se=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),i=Object(r.pick)(Object(r.cloneDeep)(t),n);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(r.isEqual)(o,i)},ce=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:ce,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:S,RESOLUTION_HOOK:w,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:E,GET_COORDINATES_FROM_PIXEL_HOOK:C,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:O,registerHook:k,getHook:P,dpi2dpm:I,getSphericalMercatorScales:N,getSphericalMercatorScale:A,getGoogleMercatorScales:D,getGoogleMercatorResolutions:z,getGoogleMercatorScale:F,getResolutionsForScales:G,getZoomForExtent:W,defaultGetZoomForExtent:V,getCenterForExtent:Y,getResolutions:U,getScales:B,getBbox:H,mapUpdated:Z,getCurrentResolution:q,transformExtent:X,saveMapConfiguration:Q,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:L}},"./MapStore2/web/client/utils/MarkerUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var css_tree__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-tree/lib/index.js"),css_tree__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(css_tree__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/raw-loader/index.js!./MapStore2/web/client/utils/font-awesome.txt"),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png"),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var css={fontawesome:raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default.a},baseImage=new Image,shadowImage=new Image;baseImage.src=_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,shadowImage.src=_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a;var getNodeOfType=function e(t,n){return n(t)?t:t.children?t.children.reduce((function(t,r){return e(r,n)||t}),null):null},glyphs={},loadGlyphs=function loadGlyphs(font){var parsedCss=css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.toPlainObject(css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.parse(css[font]));return parsedCss.children.reduce((function(previous,rule){if(rule.prelude){var classSelector=getNodeOfType(rule.prelude,(function(e){return"ClassSelector"===e.type})),pseudoClassSelector=getNodeOfType(rule.prelude,(function(e){return"PseudoClassSelector"===e.type}));if(classSelector&&classSelector.name&&0===classSelector.name.indexOf("fa-")&&pseudoClassSelector&&"before"===pseudoClassSelector.name){var text=getNodeOfType(getNodeOfType(rule.block,(function(e){return"Declaration"===e.type&&"content"===e.property})).value,(function(e){return"String"===e.type})).value;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(previous,_defineProperty({},classSelector.name.substring(3),eval("'\\u"+text.substring(2,text.length-1)+"'")))}}return previous}),{})},extraMarkers={size:[36,46],colors:["red","orange-dark","orange","yellow","blue-dark","blue","cyan","purple","violet","pink","green-dark","green","green-light","black"],shapes:["circle","square","star","penta"],icons:[_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a],images:[shadowImage,baseImage]},getOffsets=function(e,t){return[-extraMarkers.colors.indexOf(e)*extraMarkers.size[0]-2,-extraMarkers.shapes.indexOf(t)*extraMarkers.size[1]]},MarkerUtils={extraMarkers:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},extraMarkers,{getOffsets:getOffsets,markerToDataUrl:function(e){var t=e.iconColor,n=e.iconShape,r=e.iconGlyph;if(MarkerUtils.extraMarkers.images){var o=document.createElement("canvas"),i=extraMarkers.size;o.width=i[0],o.height=i[1];var a=o.getContext("2d"),s=getOffsets(t,n);a.drawImage(extraMarkers.images[0],4,31,35,16),a.drawImage(extraMarkers.images[1],Math.abs(s[0]),Math.abs(s[1]),i[0],i[1],0,0,i[0],i[1]),a.font="14px FontAwesome",a.fillStyle="rgb(255,255,255)",a.textBaseline="middle",a.textAlign="center",a.fillText(MarkerUtils.getGlyphs("fontawesome")[r]||"",i[0]/2-2,i[1]/2-7);var l=o.toDataURL("image/png");return o=null,l}return null},matches:function(e,t){return e.iconColor===t.color&&e.iconShape===t.shape},getStyle:function(e){return{iconColor:e.color,iconShape:e.shape}},getGrid:function(){return extraMarkers.shapes.map((function(e){return{name:e,markers:extraMarkers.colors.map((function(t){return{name:t,width:extraMarkers.size[0],height:extraMarkers.size[1],offsets:getOffsets(t,e),style:{color:t,shape:e},thumbnailStyle:{backgroundImage:"url("+extraMarkers.icons[0]+")",width:extraMarkers.size[0]+"px",height:extraMarkers.size[1]+"px",backgroundPositionX:getOffsets(t,e)[0],backgroundPositionY:getOffsets(t,e)[1],cursor:"pointer"}}}))}}))}}),getGlyphs:function(e){return glyphs[e]||(glyphs[e]=loadGlyphs(e)),glyphs[e]}};MarkerUtils.markers={extra:MarkerUtils.extraMarkers},__webpack_exports__.a=MarkerUtils},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"degToDms",(function(){return o})),n.d(t,"getFormattedBearingValue",(function(){return i})),n.d(t,"CONVERSION_RATE",(function(){return a})),n.d(t,"convertUom",(function(){return s})),n.d(t,"validateCoord",(function(){return l})),n.d(t,"validateFeatureCoordinates",(function(){return c})),n.d(t,"isValidGeometry",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,i=t.fractionDigits,a=void 0===i?0:i,s="";if(r){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var c=a>0?e.toFixed(a):Math.floor(e);s=l+c+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][n]?e*a[t][n]:e}var l=function(e){return!Object(r.isNaN)(parseFloat(e[0]))&&!Object(r.isNaN)(parseFloat(e[1]))},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,o=t;if("LineString"===n){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===n){if((o=Object(r.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(r.head)(o)])]}return o},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type;if(!n||!t||t&&Object(r.isArray)(t)&&0===t.length)return!1;var o=c({coordinates:t,type:n});return(o="Polygon"===n?Object(r.head)(o):o).length>0}},"./MapStore2/web/client/utils/PopupUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/uuid/index.js"),o=n.n(r),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",n=document.createElement("div");return n.setAttribute("id",e+"-map-popup"),n.setAttribute("class",t),n},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("<")},s=function(e,t){if(!t)return e;if(t instanceof Node){var n=document.createDocumentFragment();n.appendChild(t),e.appendChild(n)}else a(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},"./MapStore2/web/client/utils/ProxyUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needProxy",(function(){return i})),n.d(t,"getProxyUrl",(function(){return a}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(o.isArray)(t))return t.reduce((function(t,n){return e(n)&&t}),!0);var i=!1,a=!(0===t.indexOf("http")),s=!a&&t.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(s){var l=window.location;a=s[1]===l.protocol&&s[3]===l.hostname;var c=s[4],u=l.port;(80!==c&&""!==c||"80"!==u&&""!==u)&&(a=a&&c===u)}if(!a){var d=r.default.getProxyUrl(n);if(d){var p=[];Object(o.isObject)(d)&&(p=d.useCORS||[],d=d.url);var f=p.reduce((function(e,n){return e||0===t.indexOf(n)}),!1);f||(i=!0)}}return i},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.default.getProxyUrl(e);return t&&Object(o.isObject)(t)&&(t=t.url),t}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return i})),n.d(t,"getCleanTemplate",(function(){return a})),n.d(t,"parseCustomTemplate",(function(){return s})),n.d(t,"generateTemplateString",(function(){return l})),n.d(t,"parseTemplate",(function(){return c}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,i)},a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(n),c=l&&l.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,n,r,a)?n:s(e)}}))||null;return c&&c.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},l=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),c=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},u={generateTemplateString:l,parseTemplate:c,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=u},"./MapStore2/web/client/utils/TileConfigProvider.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getLayerConfig",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ConfigProvider.js"),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/(\{(.*?)\})/g,(function(){var e=arguments[0],n=arguments[2]?arguments[2]:arguments[1];if(["x","y","z"].includes(n))return arguments[0];var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url||"",n=e.subdomains||"";return n&&("string"==typeof n&&(n=n.split("")),Object(r.isArray)(n))?n.map((function(n){return o(t.replace("{s}",n),e)})):["a","b","c"].map((function(n){return o(t.replace("{s}",n),e)}))}var a=function(e){return(e.url.match(/(\{s\})/)?i(e):[o(e.url,e)])[0]}},"./MapStore2/web/client/utils/VectorStyleUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isAttrPresent",(function(){return g})),n.d(t,"isStrokeStyle",(function(){return y})),n.d(t,"isFillStyle",(function(){return b})),n.d(t,"isTextStyle",(function(){return v})),n.d(t,"isCircleStyle",(function(){return _})),n.d(t,"isMarkerStyle",(function(){return j})),n.d(t,"isSymbolStyle",(function(){return O})),n.d(t,"getStylerTitle",(function(){return S})),n.d(t,"geometryFunctions",(function(){return w})),n.d(t,"getGeometryFunction",(function(){return x})),n.d(t,"registerGeometryFunctions",(function(){return E})),n.d(t,"addOpacityToColor",(function(){return C})),n.d(t,"hashCode",(function(){return T})),n.d(t,"registerStyle",(function(){return P})),n.d(t,"setSymbolsStyles",(function(){return M})),n.d(t,"fetchStyle",(function(){return L})),n.d(t,"getSymbolsStyles",(function(){return I})),n.d(t,"hashAndStringify",(function(){return R})),n.d(t,"domNodeToString",(function(){return A})),n.d(t,"createSvgUrl",(function(){return F})),n.d(t,"createStylesAsync",(function(){return N})),n.d(t,"getStyleParser",(function(){return D}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),i=n("./MapStore2/web/client/utils/ColorUtils.js"),a=n("./node_modules/axios/index.js"),s=n.n(a),l=n("./node_modules/geostyler-sld-parser/build/dist/SldStyleParser.js"),c=n.n(l),u=n("./node_modules/geostyler-geocss-parser/build/dist/GeoCSSStyleParser.js"),d=n.n(u);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(r.isNil)(e[t])})).length>0},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return g(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return g(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return g(e,t)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return g(e,t)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return g(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return g(e,t)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return j(e)?"Marker":O(e)?"Symbol":v(e)?"Text":_(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":y(e)?"Polyline":""},w={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},x=function(e,t){return w[e]&&w[e][t]},E=function(e,t,n){if(!(e&&t&&n))throw new Error("specify all the params: functionName, func, type");w[e]={func:t,type:n}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},T=function(e){var t,n=0;if(0===e.length)return n;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k=e},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return k[e]&&k[e][t]},I=function(){return k},R=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},A=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return O(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var n=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(r.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(r.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(r.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([A(o)],{type:"image/svg+xml;charset=utf-8"}),s=n.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var c=l.getContext("2d"),u=new Image;u.src=s;var d="",p=R(e);return u.onload=function(){try{c.drawImage(u,l.width/2-u.width/2,l.height/2-u.height/2),d=l.toDataURL("image/png"),l=null,P(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),base64:d})}catch(e){return}},P(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),svg:o,base64:d}),s})).catch((function(){return n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return O(e)&&!L(R(e))?F(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):L(R(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(O(e)?L(R(e)):e)}))}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return m[e]}},"./MapStore2/web/client/utils/VectorTileUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"VECTOR_FORMATS",(function(){return r})),n.d(t,"isVectorFormat",(function(){return o}));var r=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==r.indexOf(e)}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return s}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(a)&&Object(r.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,n];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return u})),n.d(t,"toDescribeURL",(function(){return d})),n.d(t,"extractGeometryType",(function(){return p})),n.d(t,"extractGeometryAttributeName",(function(){return f}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||r.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},p=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return c})),n.d(t,"getMatrixIds",(function(){return u})),n.d(t,"limitMatrix",(function(){return d})),n.d(t,"getTileMatrixSet",(function(){return p})),n.d(t,"getRequestEncoding",(function(){return f})),n.d(t,"getOperations",(function(){return h})),n.d(t,"getOperation",(function(){return m})),n.d(t,"getGetTileURL",(function(){return g})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return b})),n.d(t,"getDefaultFormat",(function(){return v})),n.d(t,"sortTileMatrix",(function(){return _})),n.d(t,"getTileMatrix",(function(){return j}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[n]||t}),a):a},f=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,n){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(i.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},_=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var n,r,o=p(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&u(e.matrixIds,o||t),s=_(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(n=(r=s.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};r={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,a=t.currentLocale,s=t.params,d=t.maxItems,p=void 0===d?10:d,f=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:g(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(r.projection)||"EPSG:4326",feature_count:p},y({params:s})),e),metadata:{title:u(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:f,featureInfo:h},url:c(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,i=r(n,["point"]),a=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return f(e.url,e.name).then((function(n){var r=m(n),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:a}},params:y({},e.baseParams,e.params,i)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,i=void 0===r?{}:r,s=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,_=void 0===v?10:v,j=t.env,O=arguments.length>2?arguments[2]:void 0,S=arguments.length>3?arguments[3]:void 0,w=arguments.length>4?arguments[4]:void 0,x=n&&n.height||101,E=n&&n.width||101,C=[x,E],T=0,k=a(Math.ceil(i.zoom),0,21,96),P=s.latlng.lng,M=P-360*Math.floor(P/360+.5),L={x:M,y:s.latlng.lat},I=l(L,"EPSG:4326",i.projection),R=c(I,k,T,C,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=h(j),N=f({layerFilter:e.layerFilter,filterObj:e.filterObj,params:g({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:E%2==1?Math.ceil(E/2):E/2,y:E%2==1?Math.ceil(E/2):E/2,height:x,width:E,srs:u(i.projection)||"EPSG:4326",bbox:R.minx+","+R.miny+","+R.maxx+","+R.maxy,feature_count:_,info_format:O,ENV:F},g({},N)),e),metadata:{title:p(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:S,featureInfo:w},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},c={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},u={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},p=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},f=function(e,t){var n,r,o=t.length;for(n=0;n0&&d[t[t.length-1].type]<=p;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var f=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:u[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:u.NOT};case"BETWEEN":s.pop();var d=e(),p=e();return{property:e(),lowerBoundary:p,upperBoundary:d,type:c.BETWEEN};case"COMPARISON":var f=e();return{property:e(),value:f,type:c[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:c[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),g=e(),y=e(),b=e(),v=e();return{type:r,property:v,value:[b,y,g,m]};case"INTERSECTS":var _=e(),j=e();return{type:n,property:j,value:_};case"WITHIN":var O=e(),S=e();return{type:a,property:S,value:O};case"CONTAINS":var w=e(),x=e();return{type:o,property:x,value:w};case"DWITHIN":var E=e(),C=e(),T=e();return{type:i,value:C,property:T,distance:Number(E)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var h="Remaining tokens after building AST: \n",m=s.length-1;m>=0;m--)h+=s[m].type+": "+s[m].text+"\n";throw new Error(h)}return f};e.exports={read:function(e){return h(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=f(r,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,c=o.propertyName,u=o.valueReference,d=o.distance,p=o.lower,f=o.upper,h=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,g=h.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",_=function(e){return y(v,e)},j=function(e){return"object"===r(e)&&Date,l(n,e)},O=0===b.indexOf("2.")?u:c;return{filter:m.bind(null,n),fidFilter:g.bind(null,n),and:i.and.bind(null,n),or:i.or.bind(null,n),not:i.not.bind(null,n),property:function(e){return{equalTo:function(t){return s.equal(n,O(n,e),j(t))},greaterThen:function(t){return s.greater(n,O(n,e),j(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(n,O(n,e),j(t))},lessThen:function(t){return s.less(n,O(n,e),j(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(n,O(n,e),j(t))},notEqualTo:function(t){return s.notEqual(n,O(n,e),j(t))},between:function(t,r){return s.between(n,O(n,e),p(n,j(t)),f(n,j(r)))},like:function(t,r){return s.like(n,O(n,e),j(t),r)},ilike:function(t,r){return s.ilike(n,O(n,e),j(t),r)},isNull:function(){return s.isNull(n,O(n,e))},intersects:function(t){return a.intersects(n,O(n,e),_(t))},within:function(t){return a.within(n,O(n,e),_(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(n,O(n,e),_(t),d(n,r,o))},contains:function(t){return a.contains(n,O(n,e),_(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,i=n.filters,u=void 0===i?[]:i,d=n.value,p=n.property,f=n.lowerBoundary,h=n.upperBoundary;return a(l,o)?t[o].apply(t,r(u.map(e(t)))):t.property(p)[c[o]](s(d)?f:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},a={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.AND,[t].concat(o)):i(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.OR,[t].concat(o)):i(e,r.OR,t)},not:function(e,t){return i(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.NOR,[t].concat(o)):i(e,r.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},a=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},s=function(e,t,n){var a=o(n),s="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),r=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+n.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,n){var r=o(n),i="':">";var a=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return i+=(r?"":"")+a.join(" ")+(r?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=a(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=a(t,r,e),n+="")})),n+="";break;case"LineString":n+=l(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=l(t,r,e),n+="")})),n+="";break;case"Polygon":n+=s(t.coordinates,r,e);break;case"MultiPolygon":var c="3.2"===e?"MultiSurface":"MultiPolygon",u="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,i=r.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},c=function(e){return i(e,"featureTypes[0].properties")},u=function(e,t){return o((c(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},p=function(e){return 0===e.type.indexOf("gml:")},f=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return f(p(r)?t:n[r.name],r)};e.exports={schemaLocation:d,isGeometryType:p,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=p(u(t,n));return o?e?s(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:u,findGeometryProperty:function(e){return o((c(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:c,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return c(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,n){return f(e,u(t,n))},isValidValue:f}},"./MapStore2/web/client/utils/openlayers/DrawSupportUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/isArray.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./node_modules/ol/extent.js"),s=n("./node_modules/ol/geom/Circle.js"),l=function(e,t,n,r){if(o()(t)&&o()(t[0])&&o()(t[0][0])){var a=Object(i.reproject)(t[0][0],r,n);return Math.sqrt(Math.pow(e[0]-a.x,2)+Math.pow(e[1]-a.y,2))}return 100},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e.getGeometry()||"Polygon"!==e.getGeometry().getType()||e.getProperties().center&&0===e.getProperties().center.length)return e;if(e.getProperties()&&e.getProperties().isCircle&&e.getProperties().center&&e.getProperties().center[0]&&e.getProperties().center[1]){var r,o=e.getGeometry().getExtent();r=e.getProperties().center?[(r=Object(i.reproject)(e.getProperties().center,"EPSG:4326",t)).x,r.y]:Object(a.x)(o);var c=e.getProperties().crs===t?e.getProperties().radius:l(r,e.getGeometry().getCoordinates(),t,n);return e.setGeometry(new s.a(r,c)),e}return e}},"./MapStore2/web/client/utils/openlayers/DrawUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return j}));var r=n("./node_modules/ol/interaction/DragPan.js"),o=n("./node_modules/ol/interaction/KeyboardPan.js"),i=n("./node_modules/ol/interaction/MouseWheelZoom.js"),a=n("./node_modules/ol/interaction/DoubleClickZoom.js"),s=n("./node_modules/ol/interaction/DragZoom.js"),l=n("./node_modules/ol/interaction/KeyboardZoom.js"),c=n("./node_modules/ol/interaction/PinchZoom.js"),u=n("./node_modules/ol/interaction/PinchRotate.js"),d=n("./node_modules/ol/interaction/DragRotate.js"),p=n("./node_modules/ol/geom/Point.js"),f=n("./node_modules/ol/geom/LineString.js"),h=n("./node_modules/ol/geom/MultiPoint.js"),m=n("./node_modules/ol/geom/MultiLineString.js"),g=n("./node_modules/ol/geom/MultiPolygon.js"),y=n("./node_modules/ol/geom/Circle.js"),b=n("./node_modules/ol/geom/Polygon.js"),v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=t.coordinates,o=t.radius,i=t.center;switch(n){case"Point":e=new p.a(r||[]);break;case"LineString":e=new f.a(r||[]);break;case"MultiPoint":e=new h.a(r||[]);break;case"MultiLineString":e=new m.a(r||[]);break;case"MultiPolygon":e=new g.a(r||[]);break;default:e=o&&i?Object(b.c)(new y.a([i.x,i.y],o),100):new b.b(r||[])}return e},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.geometry&&"Polygon"===e.geometry.type},j={dragPan:{options:{kinetic:!1},Instance:r.a},keyboardPan:{options:{kinetic:!1},Instance:o.a},mouseWheelZoom:{options:{duration:0},Instance:i.a},doubleClickZoom:{options:{duration:0},Instance:a.a},shiftDragZoom:{options:{duration:0},Instance:s.a},keyboardZoom:{options:{},Instance:l.a},pinchZoom:{options:{duration:0},Instance:c.a},pinchRotate:{options:{},Instance:u.a},altShiftDragRotate:{options:{},Instance:d.a}}},"./MapStore2/web/client/utils/openlayers/VectorTileUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("./node_modules/ol/format/MVT.js"),o=n("./node_modules/ol/format/GeoJSON.js"),i=n("./node_modules/ol/format/TopoJSON.js"),a=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),s={"application/vnd.mapbox-vector-tile":r.a,"application/json;type=geojson":o.a,"application/json;type=topojson":i.a},l=function(e,t){Object(a.d)({asPromise:!0,style:e}).then((function(e){t.setStyle(e)})).catch((function(){}))}},"./MapStore2/web/client/utils/openlayers/highlight.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAYAAABqBU3hAAABIUlEQVRIS+3UsYoCMRDG8f8q+EBid5WNnc019la2Vr6Ala1g4SvY+RTXiVdcJQgHV9jJIdhKZCNx2GwyibCNW4bd+X47k6Sg4adoOJ83wNcBsz4CvoGfF4zpEzgCO1mrCmDWpsAC+Af6wD4DMQGWwBUYAF9uLQlww1vli+cMhA1vl7UuEuECqsItNgUhw22tJ4QLGANrwP657LoG4Qt3EV3g4ALMfLZAp2beMYhQuCn/B/SAk9wDQ2CTgYgN/wB+jaTqFKQi1OE+gFnXIpLC6wAaxAqYAfaoVW0hM/NH2+vuAflxTCdCd5Q3PNQBWzgHURseC4gdh+xEMFwD0CKiwrWAWER0eAoghFCFpwJ8CHV4DkAiksJzARYxL2/O+92ufW42SVMYbhcsEwAAAABJRU5ErkJgggAA"},"./MapStore2/web/client/utils/openlayers/olPopUp.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/utils/openlayers/olPopUp.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./node_modules/@terrestris/base-util/dist/Logger.js":function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./node_modules/loglevel/lib/loglevel.js")).getLogger("app-logger");o.setLevel("DEBUG"),t.default=o},"./node_modules/@terrestris/base-util/dist/StringUtil/StringUtil.js":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./MapStore2/node_modules/lodash/isString.js")),i=function(){function e(){}return e.urlify=function(e){return e.replace(/(https?:\/\/[^\s]+)/g,'$1')},e.coerce=function(t){if(!o.default(t))return t;if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1;if(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t))return parseFloat(t);if(t.startsWith("["))return JSON.parse(t).map((function(t){return e.coerce(t)}));if(t.startsWith("{")){var n=JSON.parse(t),r={};return Object.keys(n).forEach((function(t){r[t]=e.coerce(n[t])})),r}return t},e.stringDivider=function(t,n,r){var o=0,i=n;if(t.length>n){for(var a=n,s=void 0,l=void 0;a>0&&" "!==t[a]&&"-"!==t[a];)a--;return a>0?(s="-"===t.substring(a,a+1)?t.substring(0,a+1):t.substring(0,a),l=t.substring(a+1),s+r+e.stringDivider(l,n,r)):(s=t.substring(o,i+1)+"-",l=t.substring(i+1),o=i,i+=n,s+r+e.stringDivider(l,n,r))}return t},e.stripHTMLTags=function(e){var t;DOMParser&&(t=(new DOMParser).parseFromString(e,"text/html").body.textContent||"");return t},e}();t.default=i},"./node_modules/@terrestris/base-util/dist/UrlUtil/UrlUtil.js":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./node_modules/url-parse/index.js")),i=r(n("./node_modules/@terrestris/base-util/node_modules/query-string/index.js")),a=r(n("./MapStore2/node_modules/lodash/clone.js")),s=r(n("./node_modules/validator/lib/isURL.js")),l=function(){function e(){}return e.read=function(e){return new o.default(e,null,i.default.parse)},e.write=function(e){return e.toString()},e.getBasePath=function(t){var n=e.read(t);return n.protocol+"//"+n.host+n.pathname},e.getQueryParams=function(t){return e.read(t).query},e.getQueryParam=function(t,n){var r=e.getQueryParams(t);return r[Object.keys(r).filter((function(e){return e.toLowerCase()===n.toLowerCase()}))[0]]},e.joinQueryParams=function(e,t,n){var r=a.default(e);return n.forEach((function(e){r[e]&&(r[e]=r[e].split(",").concat(t[e].split(",")).join(","))})),r},e.hasQueryParam=function(t,n){var r=e.getQueryParams(t);return!!Object.keys(r).some((function(e){return e.toLowerCase()===n.toLowerCase()}))},e.createValidGetCapabilitiesRequest=function(t,n,r){void 0===n&&(n="WMS"),void 0===r&&(r="1.3.0");var o=e.getBasePath(t),i=e.getQueryParams(t);return e.hasQueryParam(t,"SERVICE")||(i.SERVICE=n),e.hasQueryParam(t,"REQUEST")||(i.REQUEST="GetCapabilities"),e.hasQueryParam(t,"VERSION")||(i.VERSION=r),o+"?"+e.objectToRequestString(i)},e.bundleOgcRequests=function(t,n,r){void 0===n&&(n=!1),void 0===r&&(r=["LAYERS","QUERY_LAYERS","STYLES"]);var o={};t.forEach((function(t){var n=e.getQueryParams(t),i=e.getBasePath(t);if(o[i]){var a=o[i],s=n;o[i]=e.joinQueryParams(a,s,r)}else o[i]=n}));var i=[];if(n){for(var a=0,s=Object.entries(o);a1&&void 0!==arguments[1])||arguments[1],r=/query_layers=(.*?)(&|$)/i,o=e.match(r);return o&&o[1]&&(t=decodeURIComponent(o[1]),!n&&t.indexOf(":")>0&&(t=t.split(":")[1])),t}},{key:"resolveAttributeTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n.v.",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e,t){return t},a="\\{\\{",l="\\}\\}",c="",u=new RegExp(a+"(.*?)"+l,"g"),d=(0,r.default)(t)?t.match(u):null;return d&&d.forEach((function(r){for(var i=0,a=0,l=Object.entries(e.getProperties());a")}}],(n=null)&&l(t.prototype,n),a&&l(t,a),e}();t.default=c},"./node_modules/@terrestris/ol-util/dist/MapUtil/MapUtil.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MapUtil=void 0;var r=h(n("./node_modules/ol/Map.js")),o=h(n("./node_modules/ol/source/TileWMS.js")),i=h(n("./node_modules/ol/source/ImageWMS.js")),a=h(n("./node_modules/ol/layer/Group.js")),s=h(n("./node_modules/ol/layer/Base.js")),l=h(n("./node_modules/ol/geom/GeometryCollection.js")),c=n("./node_modules/ol/proj/Units.js"),u=h(n("./node_modules/@terrestris/base-util/dist/UrlUtil/UrlUtil.js")),d=h(n("./node_modules/@terrestris/base-util/dist/Logger.js")),p=h(n("./node_modules/@terrestris/ol-util/dist/FeatureUtil/FeatureUtil.js")),f=h(n("./MapStore2/node_modules/lodash/findIndex.js"));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!(t instanceof r.default||t instanceof a.default))return d.default.error("Input parameter collection must be from type `ol.Map`or `ol.layer.Group`."),[];var o=t.getLayers().getArray(),i=[];return o.forEach((function(t){t instanceof a.default&&e.getAllLayers(t).forEach((function(e){n(e)&&i.push(e)})),n(t)&&i.push(t)})),i}},{key:"getLayerByName",value:function(t,n){return e.getAllLayers(t).filter((function(e){return e.get("name")===n}))[0]}},{key:"getLayerByNameParam",value:function(t,n){var r,o=e.getAllLayers(t),i=!0,a=!1,s=void 0;try{for(var l,c=o[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;if(u.getSource&&u.getSource().getParams&&u.getSource().getParams().LAYERS===n){r=u;break}}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return r}},{key:"getLayerByFeature",value:function(t,n,r){var o,i=p.default.getFeatureTypeName(n),a=!0,s=!1,l=void 0;try{for(var c,u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var d=c.value,f="".concat(d,":").concat(i),h=e.getLayerByNameParam(t,f);if(h){o=h;break}}}catch(e){s=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw l}}return o}},{key:"getLayersByGroup",value:function(t,n){var r=[];return n.getLayers().forEach((function(n){n instanceof a.default?r.push.apply(r,m(e.getLayersByGroup(t,n))):r.push(n)})),r}},{key:"getLayersByProperty",value:function(t,n,r){if(t&&n)return e.getAllLayers(t).filter((function(e){return e.get(n)===r}))}},{key:"getLayerPositionInfo",value:function(t,n){var r=n instanceof a.default?n:n.getLayerGroup(),o=r.getLayers().getArray(),i={};return o.indexOf(t)<0?o.forEach((function(n){n instanceof a.default&&!i.groupLayer&&(i=e.getLayerPositionInfo(t,n))})):(i.position=o.indexOf(t),i.groupLayer=r),i}},{key:"getLegendGraphicUrl",value:function(e,t){if(e){var n=e.getSource();if(e instanceof s.default&&n){var r=n instanceof o.default,a=n instanceof i.default;if(r||a){var l=e.getSource(),c=r?l.getUrls()?l.getUrls()[0]:"":l.getUrl(),p={LAYER:l.getParams().LAYERS,VERSION:"1.3.0",SERVICE:"WMS",REQUEST:"getLegendGraphic",FORMAT:"image/png"},f=u.default.objectToRequestString(Object.assign(p,t));return/\?/.test(c)?"".concat(c,"&").concat(f):"".concat(c,"?").concat(f)}d.default.warn('Source of "'.concat(e.get("name"),'" is currently not supported ')+"by MapUtil.getLegendGraphicUrl.")}else d.default.error("Invalid layer passed to MapUtil.getLegendGraphicUrl.")}else d.default.error("No layer passed to MapUtil.getLegendGraphicUrl.")}},{key:"layerInResolutionRange",value:function(e,t){var n=t&&t.getView(),r=n&&n.getResolution();if(!e||!n||!r)return!1;var o=e.getMinResolution(),i=e.getMaxResolution();return r>=o&&r=100&&e<1e4&&(t=10*Math.round(e/10)),e>=1e4&&e<1e6&&(t=100*Math.round(e/100)),e>=1e6&&(t=1e3*Math.round(e/1e3)),t}},{key:"getZoomForScale",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";if(Number.isNaN(Number(t)))return 0;if(t<0)return 0;var o=e.getResolutionForScale(t,r),i=n.reduce((function(e,t){return Math.abs(t-o)0){var o=new l.default(n);e.getView().fit(o.getExtent())}}}},{key:"isInScaleRange",value:function(e,t){return t>=e.get("minResolution")&&tn?n=o:o | ","angle-percentage":" | ","animateable-feature":"scroll-position | contents | ","attachment":"scroll | fixed | local","auto-repeat":"repeat( [ auto-fill | auto-fit ] , [ ? ]+ ? )","auto-track-list":"[ ? [ | ] ]* ? [ ? [ | ] ]* ?","basic-shape":" | | | ","bg-image":"none | ","bg-layer":" || [ / ]? || || || {1,2}","bg-size":"[ | auto ]{1,2} | cover | contain","blur()":"blur( )","blend-mode":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity","box":"border-box | padding-box | content-box","br-style":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","br-width":" | thin | medium | thick","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [ [ \'+\' | \'-\' ] ]*","calc-product":" [ \'*\' | \'/\' ]*","calc-value":" | | | ( )","cf-final-image":" | ","cf-mixing-image":"? && ","circle()":"circle( [ ]? [ at ]? )","clip-source":"","color":" | | | | | | currentcolor | ","color-stop":" ?","color-stop-list":"#{2,}","common-lig-values":"[ common-ligatures | no-common-ligatures ]","composite-style":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor","compositing-operator":"add | subtract | intersect | exclude","contextual-alt-values":"[ contextual | no-contextual ]","content-list":"[ | contents | | | | counter( , <\'list-style-type\'>? ) ]+","content-replacement":"","contrast()":"contrast( [ ] )","counter-style":" | symbols()","counter-style-name":"","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease | ease-in | ease-out | ease-in-out | cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText","discretionary-lig-values":"[ discretionary-ligatures | no-discretionary-ligatures ]","display-box":"contents | none","display-inside":"flow | flow-root | table | flex | grid | subgrid | ruby","display-internal":"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container","display-legacy":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid","display-listitem":"list-item && ? && [ flow | flow-root ]?","display-outside":"block | inline | run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]","east-asian-width-values":"[ full-width | proportional-width ]","element()":"element( )","ellipse()":"ellipse( [ {2} ]? [ at ]? )","ending-shape":"circle | ellipse","explicit-track-list":"[ ? ]+ ?","family-name":" | +","feature-tag-value":" [ | on | off ]?","feature-value-name":"","fill-rule":"nonzero | evenodd","filter-function":" | | | | | | | | | ","filter-function-list":"[ | ]+","final-bg-layer":" || [ / ]? || || || || || <\'background-color\'>","fit-content()":"fit-content( [ | ] )","fixed-breadth":"","fixed-repeat":"repeat( [ ] , [ ? ]+ ? )","fixed-size":" | minmax( , ) | minmax( , )","font-variant-css21":"[ normal | small-caps ]","frames-timing-function":"frames( )","frequency-percentage":" | ","generic-family":"serif | sans-serif | cursive | fantasy | monospace | -apple-system","generic-name":"serif | sans-serif | cursive | fantasy | monospace","geometry-box":" | fill-box | stroke-box | view-box","gradient":"<-legacy-gradient()> | | | | ","grayscale()":"grayscale( )","grid-line":"auto | | [ && ? ] | [ span && [ || ] ]","historical-lig-values":"[ historical-ligatures | no-historical-ligatures ]","hsl()":"hsl( [ [ / ]? ] | [ , , , ? ] )","hsla()":"hsla( [ [ / ]? ] | [ , , , ? ] )","hue":" | ","hue-rotate()":"hue-rotate( )","image":" | | | | | ","image()":"image( [ [ | ]? , ? ]! )","image-set()":"image-set( # )","image-set-option":"[ | ] ","inflexible-breadth":" | | min-content | max-content | auto","inset()":"inset( {1,4} [ round <\'border-radius\'> ]? )","invert()":"invert( )","keyframes-name":" | ","keyframe-selector":"from | to | ","leader()":"leader( )","leader-type":"dotted | solid | space | ","length-percentage":" | ","line-names":"\'[\' * \']\'","line-name-list":"[ | ]+","linear-gradient()":"linear-gradient( [ | to ]? , )","mask-layer":" || [ / ]? || || || [ | no-clip ] || || ","mask-position":"[ | left | center | right ] [ | top | center | bottom ]?","mask-reference":"none | | ","mask-source":"","masking-mode":"alpha | luminance | match-source","matrix()":"matrix( [, ]{5} )","matrix3d()":"matrix3d( [, ]{15} )","media-type":"","mf-boolean":"","mf-name":"","minmax()":"minmax( [ | | | min-content | max-content | auto ] , [ | | | min-content | max-content | auto ] )","named-color":"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen | <-non-standart-color>","namespace-prefix":"","number-percentage":" | ","numeric-figure-values":"[ lining-nums | oldstyle-nums ]","numeric-fraction-values":"[ diagonal-fractions | stacked-fractions ]","numeric-spacing-values":"[ proportional-nums | tabular-nums ]","opacity()":"opacity( [ ] )","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )","position":"[ center && [ left | right | top | bottom ] ? ] | [ [ left | right ] ? ] && [ [ top | bottom ] ? ] | [ [ left | center | right | ] || [ top | center | bottom | ] ]","quote":"open-quote | close-quote | no-open-quote | no-close-quote","radial-gradient()":"radial-gradient( [ || ]? [ at ]? , )","relative-size":"larger | smaller","repeat-style":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [ | to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [ || ]? [ at ]? , )","rgb()":"rgb( [ [ {3} | {3} ] [ / ]? ] | [ [ #{3} | #{3} ] , ? ] )","rgba()":"rgba( [ [ {3} | {3} ] [ / ]? ] | [ [ #{3} | #{3} ] , ? ] )","rotate()":"rotate( )","rotate3d()":"rotate3d( , , , )","rotateX()":"rotateX( )","rotateY()":"rotateY( )","rotateZ()":"rotateZ( )","saturate()":"saturate( )","scale()":"scale( [, ]? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","shape-radius":" | closest-side | farthest-side","skew()":"skew( [, ]? )","skewX()":"skewX( )","skewY()":"skewY( )","sepia()":"sepia( )","shadow":"inset? && {2,4} && ?","shadow-t":"[ {2,3} && ? ]","shape":"rect( [ [ , , , ] | [ ] ] )","shape-box":" | margin-box","side-or-corner":"[ left | right ] || [ top | bottom ]","single-animation":""},N=function(e,t,n){var r=b.processOGCFilterFields(e,t,n),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=b.processOGCFilterGroup(e,t,n)})),""!==r?i.ogcLogicalOperators[e.logic](n,r):""},D=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=C(t.attribute,t.operator,t.value,n);break;case"number":r=M(t.attribute,t.operator,t.value,n);break;case"string":r=k(t.attribute,t.operator,t.value,n);break;case"boolean":r=P(t.attribute,t.operator,t.value,n);break;case"list":r=T(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=k(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},G=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},z=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},U=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},B=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},V=function(e,t,n){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=E[n].startTag+t.attribute+E[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](n,a)},W=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=n?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=n&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},q=function(e){return Object(p.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(p.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(p.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},Y=function(e,t){var n=t||"ogc",r=E[n].startTag+e.attribute+E[n].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](n,r)},H=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var n=e,r=b.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(r=b.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,c=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&c){var u=c.typeName,d=c.geometryName,p=b.getCrossLayerCqlFilter(a),f=R(I({typeName:u,geometryName:d,cqlFilter:p}));o.push("".concat(s,"(").concat(l,",").concat(f,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var n="NOR"===e.logic?g(g({},e),{},{logic:"AND",negateAll:!0}):e,r=b.processCQLFilterFields(n,t),o=b.findSubGroups(n,t.groupFields);if(o.length>0){var i=o.map((function(e){return(n.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,i].join(" "+n.logic+" "):i}return r},Z=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},Q=function(e,t,n){var r,o=S(e);if(!Object(p.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+_(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+_(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+_(n)+"%'")}return r},$=function(e,t,n){var r="";Object(p.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=S(e);if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var i=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(i)||(r=o+" "+t+" '"+i+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return b.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=b.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,n){var r=b.toOGCFilter(e,t,n),o=r.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=r.search("");r=r.substr(o,i-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,g(g({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(p.isArray)(e.spatialField)&&Object(p.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,c=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(c),logic:e.logic,id:"".concat(e.id,"_").concat(c),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return g(g({},e),{},{groupId:"".concat(e.groupId,"_").concat(c)})}))),spatialField:de(e.spatialField,l),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},fe=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(n=Object(d.reproject)(o,r,t)).x,n.y],l=i&&Object(d.reproject)([i,0],r,t).x;return g(g({},e),{},{spatialField:g(g({},e.spatialField),{},{geometry:g(g({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):g(g({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,i=void 0===r?"2.0":r,s=e.addXmlnsToRoot,c=void 0!==s&&s,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=u()({filterNS:n,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),g=l()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(_.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(_.slice(j))}return _};b={processOGCFilterGroup:N,processOGCFilterFields:D,processOGCCrossLayerFilter:Y,getGetFeatureBase:W,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:H,getCrossLayerCqlFilter:q,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:X,processCQLFilterFields:re,getCQLGeometryElement:Z,cqlStringField:Q,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:fe,processOGCSpatialFilter:V,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/node_modules/lodash/fp/set.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/fp/unset.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/fp/compose.js"),c=n.n(l),u=i.a,d=s.a,p=c.a,f=function(e,t,n,o){var i=e?Object(r.get)(o,e)||[]:o,a=Object(r.findIndex)(i,n);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?u(e,s,o):s}return e?u(e,i.concat(t),o):i.concat(t)},h=function(e,t,n,o){var i=e?Object(r.get)(o,e)||[]:o,a=Object(r.findIndex)(i,n);if(a>=0){var s=i.slice();return s.splice(a,1,t),e?u(e,s,o):s}return o},m=function(e,t,n){var o=e?Object(r.get)(n,e)||[]:n,i=Object(r.findIndex)(o,t);if(i>=0){var a=o.slice();return a.splice(i,1),e?u(e,a,n):a()}return n}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return k})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return M})),n.d(t,"i",(function(){return L})),n.d(t,"k",(function(){return I})),n.d(t,"b",(function(){return R})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return N}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=n("./node_modules/turf-point-on-surface/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),c=n.n(l),u=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),p=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),f=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=n.n(f),m=n("./MapStore2/web/client/utils/mapinfo/wms.js"),g=n.n(m),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=n.n(y),v=n("./MapStore2/web/client/utils/mapinfo/vector.js"),_=n.n(v);function j(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],r);return[].concat(j(n),j(s))}return j(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var i;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(i=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(i=r.queryParams.outputFormat);var a=(o.c[r.format||o.b[i]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(j(n),j(a))}return j(n)}),[])}}},I=function(){var e;return x(e={},o.a.PROPERTIES,u.a),x(e,o.a.JSON,u.a),x(e,o.a.HTML,d.a),x(e,o.a.TEXT,p.a),e},R=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:h.a,wms:g.a,wmts:b.a,vector:_.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},N=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var i=e[n];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:E,getDefaultInfoFormatValue:T,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:c.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&w({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),n.d(t,"METERS_PER_UNIT",(function(){return v})),n.d(t,"GOOGLE_MERCATOR",(function(){return _})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return O})),n.d(t,"RESOLUTIONS_HOOK",(function(){return S})),n.d(t,"RESOLUTION_HOOK",(function(){return w})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return E})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return C})),n.d(t,"registerHook",(function(){return k})),n.d(t,"getHook",(function(){return P})),n.d(t,"executeHook",(function(){return M})),n.d(t,"clearHooks",(function(){return L})),n.d(t,"dpi2dpm",(function(){return I})),n.d(t,"dpi2dpu",(function(){return R})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return N})),n.d(t,"getGoogleMercatorScales",(function(){return D})),n.d(t,"getResolutionsForScales",(function(){return G})),n.d(t,"getGoogleMercatorResolutions",(function(){return z})),n.d(t,"getResolutions",(function(){return U})),n.d(t,"getScales",(function(){return B})),n.d(t,"defaultGetZoomForExtent",(function(){return V})),n.d(t,"getZoomForExtent",(function(){return W})),n.d(t,"getCurrentResolution",(function(){return q})),n.d(t,"getCenterForExtent",(function(){return Y})),n.d(t,"getBbox",(function(){return H})),n.d(t,"isNearlyEqual",(function(){return K})),n.d(t,"mapUpdated",(function(){return Z})),n.d(t,"transformExtent",(function(){return X})),n.d(t,"groupSaveFormatted",(function(){return J})),n.d(t,"saveMapConfiguration",(function(){return Q})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ie})),n.d(t,"prepareMapObjectToCompare",(function(){return ae})),n.d(t,"updateObjectFieldKey",(function(){return se})),n.d(t,"compareMapChanges",(function(){return le})),n.d(t,"createRegisterHooks",(function(){return ce}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),c=n("./node_modules/object-assign/index.js"),u=n.n(c);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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,r))}function W(e,t,n,r,o){return P("EXTENT_TO_ZOOM_HOOK")?P("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):V(e,t,n,r,o,P("RESOLUTIONS_HOOK")?P("RESOLUTIONS_HOOK")(e,t,n,r,o,I(o||b)):null)}function q(e,t,n,r){return P("RESOLUTION_HOOK")?P("RESOLUTION_HOOK")(e,t,n,r):z(t,n,r)[e]}function Y(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function H(e,t){return M("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Z(e,t){var n,o,i,a;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(K(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function X(e,t,n,r){var o=Object(a.getUnits)(e);return"ft"===o?{width:n/v.ft,height:r/v.ft}:"us-ft"===o?{width:n/v["us-ft"],height:r/v["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,n,o,i,a,c){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},p=t.map((function(e){return Object(l.saveLayer)(e)})),f=n.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(n,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(l.extractSourcesFromLayers)(p),y=p.map((function(e){return u()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?g(g({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(s.e)("features",v,y[b])}return g({version:2,map:u()({},d,{layers:y,groups:f,backgrounds:h,text_search_config:i,bookmark_search_config:a},!Object(r.isEmpty)(m)&&{sources:m}||{})},c)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=g(g({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return g(g({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return g(g({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return g(g({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return g(g({},e),{},{id:n[e.id],layer:g(g({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(f(Object(r.get)(e,"map.backgrounds",[])),f(Object(r.get)(o,"map.backgrounds",[]))),a=n(Object(r.get)(e,"map.layers",[])),s=n(Object(r.get)(o,"map.layers",[])),l=Object(r.find)(a,(function(e){return"annotations"===e.id})),c=Object(r.find)(s,(function(e){return"annotations"===e.id})),u=[].concat(f(s.filter((function(e){return"annotations"!==e.id}))),f(a.filter((function(e){return"annotations"!==e.id}))),f(l||c?[g(g(g({},l||{}),c||{}),{},{features:[].concat(f(Object(r.get)(l,"features",[])),f(Object(r.get)(c,"features",[])))})]:[])),d=u.filter((function(e){return"background"===e.group})),p=Object(r.findIndex)(d,(function(e){return e.visibility})),h=Object(r.get)(e,"map.sources",{}),m=Object(r.get)(o,"map.sources",{}),b=g(g({},h),m),v=Object(r.get)(e,"widgetsConfig",{}),_=Object(r.get)(o,"widgetsConfig",{});return g(g(g({},o),e),{},{catalogServices:g(g({},Object(r.get)(e,"catalogServices",{})),{},{services:g(g({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:g(g(g({},o.map),e.map),{},{backgrounds:i,groups:Object(r.uniqWith)([].concat(f(Object(r.get)(e,"map.groups",[])),f(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(f(d.slice(0,p+1)),f(d.slice(p+1).map((function(e){return g(g({},e),{},{visibility:!1})}))),f(u.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:g(g({},v.collapsed),_.collapsed),layouts:Object(r.uniq)([].concat(f(Object(r.keys)(v.layouts)),f(Object(r.keys)(_.layouts)))).reduce((function(e,t){return g(g({},e),{},y({},t,[].concat(f(Object(r.get)(v,"layouts.".concat(t),[])),f(Object(r.get)(_,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(f(Object(r.get)(v,"widgets",[])),f(Object(r.get)(_,"widgets",[])))},timelineData:g(g({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:g(g({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),a=Object(r.find)(n,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(f(o.map((function(e){var t=e.id,n=p(e,["id"]);return g({id:"".concat(s.id,".").concat(t)},n)}))),[s]):o;return g(g({},e),{},{map:g(g({},e.map),{},{groups:l,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return g(g({},p(e,["group"])),{},{group:!a||"background"===n||"Default"!==n&&n?a&&(null===(t=Object(r.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:s.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},ae=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],i=d(o);"object"!==i||null===o||r(n)?"undefined"!==i&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},se=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),i=Object(r.pick)(Object(r.cloneDeep)(t),n);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(r.isEqual)(o,i)},ce=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:ce,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:S,RESOLUTION_HOOK:w,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:E,GET_COORDINATES_FROM_PIXEL_HOOK:C,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:O,registerHook:k,getHook:P,dpi2dpm:I,getSphericalMercatorScales:N,getSphericalMercatorScale:A,getGoogleMercatorScales:D,getGoogleMercatorResolutions:z,getGoogleMercatorScale:F,getResolutionsForScales:G,getZoomForExtent:W,defaultGetZoomForExtent:V,getCenterForExtent:Y,getResolutions:U,getScales:B,getBbox:H,mapUpdated:Z,getCurrentResolution:q,transformExtent:X,saveMapConfiguration:Q,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:L}},"./MapStore2/web/client/utils/MarkerUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var css_tree__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-tree/lib/index.js"),css_tree__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(css_tree__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/raw-loader/index.js!./MapStore2/web/client/utils/font-awesome.txt"),raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2__),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"),_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3__),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png"),_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4__);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var css={fontawesome:raw_loader_font_awesome_txt__WEBPACK_IMPORTED_MODULE_2___default.a},baseImage=new Image,shadowImage=new Image;baseImage.src=_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,shadowImage.src=_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a;var getNodeOfType=function e(t,n){return n(t)?t:t.children?t.children.reduce((function(t,r){return e(r,n)||t}),null):null},glyphs={},loadGlyphs=function loadGlyphs(font){var parsedCss=css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.toPlainObject(css_tree__WEBPACK_IMPORTED_MODULE_0___default.a.parse(css[font]));return parsedCss.children.reduce((function(previous,rule){if(rule.prelude){var classSelector=getNodeOfType(rule.prelude,(function(e){return"ClassSelector"===e.type})),pseudoClassSelector=getNodeOfType(rule.prelude,(function(e){return"PseudoClassSelector"===e.type}));if(classSelector&&classSelector.name&&0===classSelector.name.indexOf("fa-")&&pseudoClassSelector&&"before"===pseudoClassSelector.name){var text=getNodeOfType(getNodeOfType(rule.block,(function(e){return"Declaration"===e.type&&"content"===e.property})).value,(function(e){return"String"===e.type})).value;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(previous,_defineProperty({},classSelector.name.substring(3),eval("'\\u"+text.substring(2,text.length-1)+"'")))}}return previous}),{})},extraMarkers={size:[36,46],colors:["red","orange-dark","orange","yellow","blue-dark","blue","cyan","purple","violet","pink","green-dark","green","green-light","black"],shapes:["circle","square","star","penta"],icons:[_components_mapcontrols_annotations_img_markers_default_png__WEBPACK_IMPORTED_MODULE_3___default.a,_components_mapcontrols_annotations_img_markers_shadow_png__WEBPACK_IMPORTED_MODULE_4___default.a],images:[shadowImage,baseImage]},getOffsets=function(e,t){return[-extraMarkers.colors.indexOf(e)*extraMarkers.size[0]-2,-extraMarkers.shapes.indexOf(t)*extraMarkers.size[1]]},MarkerUtils={extraMarkers:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},extraMarkers,{getOffsets:getOffsets,markerToDataUrl:function(e){var t=e.iconColor,n=e.iconShape,r=e.iconGlyph;if(MarkerUtils.extraMarkers.images){var o=document.createElement("canvas"),i=extraMarkers.size;o.width=i[0],o.height=i[1];var a=o.getContext("2d"),s=getOffsets(t,n);a.drawImage(extraMarkers.images[0],4,31,35,16),a.drawImage(extraMarkers.images[1],Math.abs(s[0]),Math.abs(s[1]),i[0],i[1],0,0,i[0],i[1]),a.font="14px FontAwesome",a.fillStyle="rgb(255,255,255)",a.textBaseline="middle",a.textAlign="center",a.fillText(MarkerUtils.getGlyphs("fontawesome")[r]||"",i[0]/2-2,i[1]/2-7);var l=o.toDataURL("image/png");return o=null,l}return null},matches:function(e,t){return e.iconColor===t.color&&e.iconShape===t.shape},getStyle:function(e){return{iconColor:e.color,iconShape:e.shape}},getGrid:function(){return extraMarkers.shapes.map((function(e){return{name:e,markers:extraMarkers.colors.map((function(t){return{name:t,width:extraMarkers.size[0],height:extraMarkers.size[1],offsets:getOffsets(t,e),style:{color:t,shape:e},thumbnailStyle:{backgroundImage:"url("+extraMarkers.icons[0]+")",width:extraMarkers.size[0]+"px",height:extraMarkers.size[1]+"px",backgroundPositionX:getOffsets(t,e)[0],backgroundPositionY:getOffsets(t,e)[1],cursor:"pointer"}}}))}}))}}),getGlyphs:function(e){return glyphs[e]||(glyphs[e]=loadGlyphs(e)),glyphs[e]}};MarkerUtils.markers={extra:MarkerUtils.extraMarkers},__webpack_exports__.a=MarkerUtils},"./MapStore2/web/client/utils/MeasureUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"degToDms",(function(){return o})),n.d(t,"getFormattedBearingValue",(function(){return i})),n.d(t,"CONVERSION_RATE",(function(){return a})),n.d(t,"convertUom",(function(){return s})),n.d(t,"validateCoord",(function(){return l})),n.d(t,"validateFeatureCoordinates",(function(){return c})),n.d(t,"isValidGeometry",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js");function o(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,i=t.fractionDigits,a=void 0===i?0:i,s="";if(r){var l="";e>=0&&e<10?l="00":e>10&&e<100&&(l="0");var c=a>0?e.toFixed(a):Math.floor(e);s=l+c+"° T"}else e>=0&&e<90?s="N "+o(e)+"E":e>90&&e<=180?s="S "+o(180-e)+"E":e>180&&e<270?s="S "+o(e-180)+"W":e>=270&&e<=360&&(s="N "+o(360-e)+"W");return s}var a={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a[t]&&a[t][n]?e*a[t][n]:e}var l=function(e){return!Object(r.isNaN)(parseFloat(e[0]))&&!Object(r.isNaN)(parseFloat(e[1]))},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,o=t;if("LineString"===n){if((o=t.filter(l)).length<2)return[]}else if("Polygon"===n){if((o=Object(r.head)(t).filter(l)).length<3)return[[]];o=[o.concat([Object(r.head)(o)])]}return o},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type;if(!n||!t||t&&Object(r.isArray)(t)&&0===t.length)return!1;var o=c({coordinates:t,type:n});return(o="Polygon"===n?Object(r.head)(o):o).length>0}},"./MapStore2/web/client/utils/PopupUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/uuid/index.js"),o=n.n(r),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",n=document.createElement("div");return n.setAttribute("id",e+"-map-popup"),n.setAttribute("class",t),n},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith("<")},s=function(e,t){if(!t)return e;if(t instanceof Node){var n=document.createDocumentFragment();n.appendChild(t),e.appendChild(n)}else a(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},"./MapStore2/web/client/utils/ProxyUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needProxy",(function(){return i})),n.d(t,"getProxyUrl",(function(){return a}));var r=n("./MapStore2/web/client/utils/ConfigUtils.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(o.isArray)(t))return t.reduce((function(t,n){return e(n)&&t}),!0);var i=!1,a=!(0===t.indexOf("http")),s=!a&&t.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(s){var l=window.location;a=s[1]===l.protocol&&s[3]===l.hostname;var c=s[4],u=l.port;(80!==c&&""!==c||"80"!==u&&""!==u)&&(a=a&&c===u)}if(!a){var d=r.default.getProxyUrl(n);if(d){var p=[];Object(o.isObject)(d)&&(p=d.useCORS||[],d=d.url);var f=p.reduce((function(e,n){return e||0===t.indexOf(n)}),!1);f||(i=!0)}}return i},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.default.getProxyUrl(e);return t&&Object(o.isObject)(t)&&(t=t.url),t}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return i})),n.d(t,"getCleanTemplate",(function(){return a})),n.d(t,"parseCustomTemplate",(function(){return s})),n.d(t,"generateTemplateString",(function(){return l})),n.d(t,"parseTemplate",(function(){return c}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,i)},a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(n),c=l&&l.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,n,r,a)?n:s(e)}}))||null;return c&&c.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},l=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),c=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},u={generateTemplateString:l,parseTemplate:c,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=u},"./MapStore2/web/client/utils/TileConfigProvider.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getLayerConfig",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ConfigProvider.js"),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/(\{(.*?)\})/g,(function(){var e=arguments[0],n=arguments[2]?arguments[2]:arguments[1];if(["x","y","z"].includes(n))return arguments[0];var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url||"",n=e.subdomains||"";return n&&("string"==typeof n&&(n=n.split("")),Object(r.isArray)(n))?n.map((function(n){return o(t.replace("{s}",n),e)})):["a","b","c"].map((function(n){return o(t.replace("{s}",n),e)}))}var a=function(e){return(e.url.match(/(\{s\})/)?i(e):[o(e.url,e)])[0]}},"./MapStore2/web/client/utils/VectorStyleUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isAttrPresent",(function(){return g})),n.d(t,"isStrokeStyle",(function(){return y})),n.d(t,"isFillStyle",(function(){return b})),n.d(t,"isTextStyle",(function(){return v})),n.d(t,"isCircleStyle",(function(){return _})),n.d(t,"isMarkerStyle",(function(){return j})),n.d(t,"isSymbolStyle",(function(){return O})),n.d(t,"getStylerTitle",(function(){return S})),n.d(t,"geometryFunctions",(function(){return w})),n.d(t,"getGeometryFunction",(function(){return x})),n.d(t,"registerGeometryFunctions",(function(){return E})),n.d(t,"addOpacityToColor",(function(){return C})),n.d(t,"hashCode",(function(){return T})),n.d(t,"registerStyle",(function(){return P})),n.d(t,"setSymbolsStyles",(function(){return M})),n.d(t,"fetchStyle",(function(){return L})),n.d(t,"getSymbolsStyles",(function(){return I})),n.d(t,"hashAndStringify",(function(){return R})),n.d(t,"domNodeToString",(function(){return A})),n.d(t,"createSvgUrl",(function(){return F})),n.d(t,"createStylesAsync",(function(){return N})),n.d(t,"getStyleParser",(function(){return D}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/ImmutableUtils.js"),i=n("./MapStore2/web/client/utils/ColorUtils.js"),a=n("./node_modules/axios/index.js"),s=n.n(a),l=n("./node_modules/geostyler-sld-parser/build/dist/SldStyleParser.js"),c=n.n(l),u=n("./node_modules/geostyler-geocss-parser/build/dist/GeoCSSStyleParser.js"),d=n.n(u);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!Object(r.isNil)(e[t])})).length>0},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return g(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return g(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return g(e,t)},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return g(e,t)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return g(e,t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return g(e,t)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return j(e)?"Marker":O(e)?"Symbol":v(e)?"Text":_(e)||"Circle Style"===e.title?"Circle":b(e)?"Polygon":y(e)?"Polyline":""},w={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},x=function(e,t){return w[e]&&w[e][t]},E=function(e,t,n){if(!(e&&t&&n))throw new Error("specify all the params: functionName, func, type");w[e]={func:t,type:n}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return Object(o.e)("a",t,e)},T=function(e){var t,n=0;if(0===e.length)return n;for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k=e},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style";return k[e]&&k[e][t]},I=function(){return k},R=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},A=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return O(e)&&e.symbolUrl?s.a.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var n=window.URL||window.webkitURL||window,o=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;o.setAttribute("fill",e.fillColor||"#FFCC33"),o.setAttribute("fill-opacity",Object(r.isNil)(e.fillOpacity)?.2:e.fillOpacity),o.setAttribute("stroke",Object(i.b)(e.color||"#FFCC33",Object(r.isNil)(e.opacity)?1:e.opacity)),o.setAttribute("stroke-opacity",Object(r.isNil)(e.opacity)?1:e.opacity),o.setAttribute("stroke-width",e.weight||1),o.setAttribute("width",e.size||32),o.setAttribute("height",e.size||32),o.setAttribute("stroke-dasharray",e.dashArray||"none");var a=new Blob([A(o)],{type:"image/svg+xml;charset=utf-8"}),s=n.createObjectURL(a),l=document.createElement("canvas");l.width=e.size,l.height=e.size;var c=l.getContext("2d"),u=new Image;u.src=s;var d="",p=R(e);return u.onload=function(){try{c.drawImage(u,l.width/2-u.width/2,l.height/2-u.height/2),d=l.toDataURL("image/png"),l=null,P(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),base64:d})}catch(e){return}},P(p,{style:f(f({},e),{},{symbolUrlCustomized:s}),svg:o,base64:d}),s})).catch((function(){return n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return O(e)&&!L(R(e))?F(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):L(R(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(O(e)?L(R(e)):e)}))}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return m[e]}},"./MapStore2/web/client/utils/VectorTileUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"VECTOR_FORMATS",(function(){return r})),n.d(t,"isVectorFormat",(function(){return o}));var r=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==r.indexOf(e)}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return s}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(a)&&Object(r.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,n];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return u})),n.d(t,"toDescribeURL",(function(){return d})),n.d(t,"extractGeometryType",(function(){return p})),n.d(t,"extractGeometryAttributeName",(function(){return f}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||r.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},p=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return c})),n.d(t,"getMatrixIds",(function(){return u})),n.d(t,"limitMatrix",(function(){return d})),n.d(t,"getTileMatrixSet",(function(){return p})),n.d(t,"getRequestEncoding",(function(){return f})),n.d(t,"getOperations",(function(){return h})),n.d(t,"getOperation",(function(){return m})),n.d(t,"getGetTileURL",(function(){return g})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return b})),n.d(t,"getDefaultFormat",(function(){return v})),n.d(t,"sortTileMatrix",(function(){return _})),n.d(t,"getTileMatrix",(function(){return j}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[n]||t}),a):a},f=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,n){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(i.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},_=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var n,r,o=p(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&u(e.matrixIds,o||t),s=_(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(n=(r=s.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};r={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,a=t.currentLocale,s=t.params,d=t.maxItems,p=void 0===d?10:d,f=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:g(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(r.projection)||"EPSG:4326",feature_count:p},y({params:s})),e),metadata:{title:u(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:f,featureInfo:h},url:c(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,i=r(n,["point"]),a=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return f(e.url,e.name).then((function(n){var r=m(n),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:a}},params:y({},e.baseParams,e.params,i)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,i=void 0===r?{}:r,s=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,_=void 0===v?10:v,j=t.env,O=arguments.length>2?arguments[2]:void 0,S=arguments.length>3?arguments[3]:void 0,w=arguments.length>4?arguments[4]:void 0,x=n&&n.height||101,E=n&&n.width||101,C=[x,E],T=0,k=a(Math.ceil(i.zoom),0,21,96),P=s.latlng.lng,M=P-360*Math.floor(P/360+.5),L={x:M,y:s.latlng.lat},I=l(L,"EPSG:4326",i.projection),R=c(I,k,T,C,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=h(j),N=f({layerFilter:e.layerFilter,filterObj:e.filterObj,params:g({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:E%2==1?Math.ceil(E/2):E/2,y:E%2==1?Math.ceil(E/2):E/2,height:x,width:E,srs:u(i.projection)||"EPSG:4326",bbox:R.minx+","+R.miny+","+R.maxx+","+R.maxy,feature_count:_,info_format:O,ENV:F},g({},N)),e),metadata:{title:p(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:S,featureInfo:w},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},c={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},u={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},p=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},f=function(e,t){var n,r,o=t.length;for(n=0;n0&&d[t[t.length-1].type]<=p;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var f=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:u[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:u.NOT};case"BETWEEN":s.pop();var d=e(),p=e();return{property:e(),lowerBoundary:p,upperBoundary:d,type:c.BETWEEN};case"COMPARISON":var f=e();return{property:e(),value:f,type:c[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:c[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),g=e(),y=e(),b=e(),v=e();return{type:r,property:v,value:[b,y,g,m]};case"INTERSECTS":var _=e(),j=e();return{type:n,property:j,value:_};case"WITHIN":var O=e(),S=e();return{type:a,property:S,value:O};case"CONTAINS":var w=e(),x=e();return{type:o,property:x,value:w};case"DWITHIN":var E=e(),C=e(),T=e();return{type:i,value:C,property:T,distance:Number(E)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var h="Remaining tokens after building AST: \n",m=s.length-1;m>=0;m--)h+=s[m].type+": "+s[m].text+"\n";throw new Error(h)}return f};e.exports={read:function(e){return h(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=f(r,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,c=o.propertyName,u=o.valueReference,d=o.distance,p=o.lower,f=o.upper,h=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,g=h.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",_=function(e){return y(v,e)},j=function(e){return"object"===r(e)&&Date,l(n,e)},O=0===b.indexOf("2.")?u:c;return{filter:m.bind(null,n),fidFilter:g.bind(null,n),and:i.and.bind(null,n),or:i.or.bind(null,n),not:i.not.bind(null,n),property:function(e){return{equalTo:function(t){return s.equal(n,O(n,e),j(t))},greaterThen:function(t){return s.greater(n,O(n,e),j(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(n,O(n,e),j(t))},lessThen:function(t){return s.less(n,O(n,e),j(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(n,O(n,e),j(t))},notEqualTo:function(t){return s.notEqual(n,O(n,e),j(t))},between:function(t,r){return s.between(n,O(n,e),p(n,j(t)),f(n,j(r)))},like:function(t,r){return s.like(n,O(n,e),j(t),r)},ilike:function(t,r){return s.ilike(n,O(n,e),j(t),r)},isNull:function(){return s.isNull(n,O(n,e))},intersects:function(t){return a.intersects(n,O(n,e),_(t))},within:function(t){return a.within(n,O(n,e),_(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(n,O(n,e),_(t),d(n,r,o))},contains:function(t){return a.contains(n,O(n,e),_(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,i=n.filters,u=void 0===i?[]:i,d=n.value,p=n.property,f=n.lowerBoundary,h=n.upperBoundary;return a(l,o)?t[o].apply(t,r(u.map(e(t)))):t.property(p)[c[o]](s(d)?f:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},a={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.AND,[t].concat(o)):i(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.OR,[t].concat(o)):i(e,r.OR,t)},not:function(e,t){return i(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.NOR,[t].concat(o)):i(e,r.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},a=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},s=function(e,t,n){var a=o(n),s="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),r=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+n.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,n){var r=o(n),i="':">";var a=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return i+=(r?"":"")+a.join(" ")+(r?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=a(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=a(t,r,e),n+="")})),n+="";break;case"LineString":n+=l(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=l(t,r,e),n+="")})),n+="";break;case"Polygon":n+=s(t.coordinates,r,e);break;case"MultiPolygon":var c="3.2"===e?"MultiSurface":"MultiPolygon",u="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,i=r.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},c=function(e){return i(e,"featureTypes[0].properties")},u=function(e,t){return o((c(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},p=function(e){return 0===e.type.indexOf("gml:")},f=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return f(p(r)?t:n[r.name],r)};e.exports={schemaLocation:d,isGeometryType:p,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=p(u(t,n));return o?e?s(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:u,findGeometryProperty:function(e){return o((c(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:c,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return c(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,n){return f(e,u(t,n))},isValidValue:f}},"./MapStore2/web/client/utils/openlayers/DrawSupportUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/isArray.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./node_modules/ol/extent.js"),s=n("./node_modules/ol/geom/Circle.js"),l=function(e,t,n,r){if(o()(t)&&o()(t[0])&&o()(t[0][0])){var a=Object(i.reproject)(t[0][0],r,n);return Math.sqrt(Math.pow(e[0]-a.x,2)+Math.pow(e[1]-a.y,2))}return 100},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e.getGeometry()||"Polygon"!==e.getGeometry().getType()||e.getProperties().center&&0===e.getProperties().center.length)return e;if(e.getProperties()&&e.getProperties().isCircle&&e.getProperties().center&&e.getProperties().center[0]&&e.getProperties().center[1]){var r,o=e.getGeometry().getExtent();r=e.getProperties().center?[(r=Object(i.reproject)(e.getProperties().center,"EPSG:4326",t)).x,r.y]:Object(a.x)(o);var c=e.getProperties().crs===t?e.getProperties().radius:l(r,e.getGeometry().getCoordinates(),t,n);return e.setGeometry(new s.a(r,c)),e}return e}},"./MapStore2/web/client/utils/openlayers/DrawUtils.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return j}));var r=n("./node_modules/ol/interaction/DragPan.js"),o=n("./node_modules/ol/interaction/KeyboardPan.js"),i=n("./node_modules/ol/interaction/MouseWheelZoom.js"),a=n("./node_modules/ol/interaction/DoubleClickZoom.js"),s=n("./node_modules/ol/interaction/DragZoom.js"),l=n("./node_modules/ol/interaction/KeyboardZoom.js"),c=n("./node_modules/ol/interaction/PinchZoom.js"),u=n("./node_modules/ol/interaction/PinchRotate.js"),d=n("./node_modules/ol/interaction/DragRotate.js"),p=n("./node_modules/ol/geom/Point.js"),f=n("./node_modules/ol/geom/LineString.js"),h=n("./node_modules/ol/geom/MultiPoint.js"),m=n("./node_modules/ol/geom/MultiLineString.js"),g=n("./node_modules/ol/geom/MultiPolygon.js"),y=n("./node_modules/ol/geom/Circle.js"),b=n("./node_modules/ol/geom/Polygon.js"),v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=t.coordinates,o=t.radius,i=t.center;switch(n){case"Point":e=new p.a(r||[]);break;case"LineString":e=new f.a(r||[]);break;case"MultiPoint":e=new h.a(r||[]);break;case"MultiLineString":e=new m.a(r||[]);break;case"MultiPolygon":e=new g.a(r||[]);break;default:e=o&&i?Object(b.c)(new y.a([i.x,i.y],o),100):new b.b(r||[])}return e},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.geometry&&"Polygon"===e.geometry.type},j={dragPan:{options:{kinetic:!1},Instance:r.a},keyboardPan:{options:{kinetic:!1},Instance:o.a},mouseWheelZoom:{options:{duration:0},Instance:i.a},doubleClickZoom:{options:{duration:0},Instance:a.a},shiftDragZoom:{options:{duration:0},Instance:s.a},keyboardZoom:{options:{},Instance:l.a},pinchZoom:{options:{duration:0},Instance:c.a},pinchRotate:{options:{},Instance:u.a},altShiftDragRotate:{options:{},Instance:d.a}}},"./MapStore2/web/client/utils/openlayers/VectorTileUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("./node_modules/ol/format/MVT.js"),o=n("./node_modules/ol/format/GeoJSON.js"),i=n("./node_modules/ol/format/TopoJSON.js"),a=n("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),s={"application/vnd.mapbox-vector-tile":r.a,"application/json;type=geojson":o.a,"application/json;type=topojson":i.a},l=function(e,t){Object(a.d)({asPromise:!0,style:e}).then((function(e){t.setStyle(e)})).catch((function(){}))}},"./MapStore2/web/client/utils/openlayers/highlight.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAYAAABqBU3hAAABIUlEQVRIS+3UsYoCMRDG8f8q+EBid5WNnc019la2Vr6Ala1g4SvY+RTXiVdcJQgHV9jJIdhKZCNx2GwyibCNW4bd+X47k6Sg4adoOJ83wNcBsz4CvoGfF4zpEzgCO1mrCmDWpsAC+Af6wD4DMQGWwBUYAF9uLQlww1vli+cMhA1vl7UuEuECqsItNgUhw22tJ4QLGANrwP657LoG4Qt3EV3g4ALMfLZAp2beMYhQuCn/B/SAk9wDQ2CTgYgN/wB+jaTqFKQi1OE+gFnXIpLC6wAaxAqYAfaoVW0hM/NH2+vuAflxTCdCd5Q3PNQBWzgHURseC4gdh+xEMFwD0CKiwrWAWER0eAoghFCFpwJ8CHV4DkAiksJzARYxL2/O+92ufW42SVMYbhcsEwAAAABJRU5ErkJgggAA"},"./MapStore2/web/client/utils/openlayers/olPopUp.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/utils/openlayers/olPopUp.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./node_modules/@terrestris/base-util/dist/Logger.js":function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./node_modules/loglevel/lib/loglevel.js")).getLogger("app-logger");o.setLevel("DEBUG"),t.default=o},"./node_modules/@terrestris/base-util/dist/StringUtil/StringUtil.js":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./MapStore2/node_modules/lodash/isString.js")),i=function(){function e(){}return e.urlify=function(e){return e.replace(/(https?:\/\/[^\s]+)/g,'$1')},e.coerce=function(t){if(!o.default(t))return t;if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1;if(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t))return parseFloat(t);if(t.startsWith("["))return JSON.parse(t).map((function(t){return e.coerce(t)}));if(t.startsWith("{")){var n=JSON.parse(t),r={};return Object.keys(n).forEach((function(t){r[t]=e.coerce(n[t])})),r}return t},e.stringDivider=function(t,n,r){var o=0,i=n;if(t.length>n){for(var a=n,s=void 0,l=void 0;a>0&&" "!==t[a]&&"-"!==t[a];)a--;return a>0?(s="-"===t.substring(a,a+1)?t.substring(0,a+1):t.substring(0,a),l=t.substring(a+1),s+r+e.stringDivider(l,n,r)):(s=t.substring(o,i+1)+"-",l=t.substring(i+1),o=i,i+=n,s+r+e.stringDivider(l,n,r))}return t},e.stripHTMLTags=function(e){var t;DOMParser&&(t=(new DOMParser).parseFromString(e,"text/html").body.textContent||"");return t},e}();t.default=i},"./node_modules/@terrestris/base-util/dist/UrlUtil/UrlUtil.js":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("./node_modules/url-parse/index.js")),i=r(n("./node_modules/@terrestris/base-util/node_modules/query-string/index.js")),a=r(n("./MapStore2/node_modules/lodash/clone.js")),s=r(n("./node_modules/validator/lib/isURL.js")),l=function(){function e(){}return e.read=function(e){return new o.default(e,null,i.default.parse)},e.write=function(e){return e.toString()},e.getBasePath=function(t){var n=e.read(t);return n.protocol+"//"+n.host+n.pathname},e.getQueryParams=function(t){return e.read(t).query},e.getQueryParam=function(t,n){var r=e.getQueryParams(t);return r[Object.keys(r).filter((function(e){return e.toLowerCase()===n.toLowerCase()}))[0]]},e.joinQueryParams=function(e,t,n){var r=a.default(e);return n.forEach((function(e){r[e]&&(r[e]=r[e].split(",").concat(t[e].split(",")).join(","))})),r},e.hasQueryParam=function(t,n){var r=e.getQueryParams(t);return!!Object.keys(r).some((function(e){return e.toLowerCase()===n.toLowerCase()}))},e.createValidGetCapabilitiesRequest=function(t,n,r){void 0===n&&(n="WMS"),void 0===r&&(r="1.3.0");var o=e.getBasePath(t),i=e.getQueryParams(t);return e.hasQueryParam(t,"SERVICE")||(i.SERVICE=n),e.hasQueryParam(t,"REQUEST")||(i.REQUEST="GetCapabilities"),e.hasQueryParam(t,"VERSION")||(i.VERSION=r),o+"?"+e.objectToRequestString(i)},e.bundleOgcRequests=function(t,n,r){void 0===n&&(n=!1),void 0===r&&(r=["LAYERS","QUERY_LAYERS","STYLES"]);var o={};t.forEach((function(t){var n=e.getQueryParams(t),i=e.getBasePath(t);if(o[i]){var a=o[i],s=n;o[i]=e.joinQueryParams(a,s,r)}else o[i]=n}));var i=[];if(n){for(var a=0,s=Object.entries(o);a1&&void 0!==arguments[1])||arguments[1],r=/query_layers=(.*?)(&|$)/i,o=e.match(r);return o&&o[1]&&(t=decodeURIComponent(o[1]),!n&&t.indexOf(":")>0&&(t=t.split(":")[1])),t}},{key:"resolveAttributeTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n.v.",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e,t){return t},a="\\{\\{",l="\\}\\}",c="",u=new RegExp(a+"(.*?)"+l,"g"),d=(0,r.default)(t)?t.match(u):null;return d&&d.forEach((function(r){for(var i=0,a=0,l=Object.entries(e.getProperties());a")}}],(n=null)&&l(t.prototype,n),a&&l(t,a),e}();t.default=c},"./node_modules/@terrestris/ol-util/dist/MapUtil/MapUtil.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MapUtil=void 0;var r=h(n("./node_modules/ol/Map.js")),o=h(n("./node_modules/ol/source/TileWMS.js")),i=h(n("./node_modules/ol/source/ImageWMS.js")),a=h(n("./node_modules/ol/layer/Group.js")),s=h(n("./node_modules/ol/layer/Base.js")),l=h(n("./node_modules/ol/geom/GeometryCollection.js")),c=n("./node_modules/ol/proj/Units.js"),u=h(n("./node_modules/@terrestris/base-util/dist/UrlUtil/UrlUtil.js")),d=h(n("./node_modules/@terrestris/base-util/dist/Logger.js")),p=h(n("./node_modules/@terrestris/ol-util/dist/FeatureUtil/FeatureUtil.js")),f=h(n("./MapStore2/node_modules/lodash/findIndex.js"));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!(t instanceof r.default||t instanceof a.default))return d.default.error("Input parameter collection must be from type `ol.Map`or `ol.layer.Group`."),[];var o=t.getLayers().getArray(),i=[];return o.forEach((function(t){t instanceof a.default&&e.getAllLayers(t).forEach((function(e){n(e)&&i.push(e)})),n(t)&&i.push(t)})),i}},{key:"getLayerByName",value:function(t,n){return e.getAllLayers(t).filter((function(e){return e.get("name")===n}))[0]}},{key:"getLayerByNameParam",value:function(t,n){var r,o=e.getAllLayers(t),i=!0,a=!1,s=void 0;try{for(var l,c=o[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;if(u.getSource&&u.getSource().getParams&&u.getSource().getParams().LAYERS===n){r=u;break}}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return r}},{key:"getLayerByFeature",value:function(t,n,r){var o,i=p.default.getFeatureTypeName(n),a=!0,s=!1,l=void 0;try{for(var c,u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var d=c.value,f="".concat(d,":").concat(i),h=e.getLayerByNameParam(t,f);if(h){o=h;break}}}catch(e){s=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw l}}return o}},{key:"getLayersByGroup",value:function(t,n){var r=[];return n.getLayers().forEach((function(n){n instanceof a.default?r.push.apply(r,m(e.getLayersByGroup(t,n))):r.push(n)})),r}},{key:"getLayersByProperty",value:function(t,n,r){if(t&&n)return e.getAllLayers(t).filter((function(e){return e.get(n)===r}))}},{key:"getLayerPositionInfo",value:function(t,n){var r=n instanceof a.default?n:n.getLayerGroup(),o=r.getLayers().getArray(),i={};return o.indexOf(t)<0?o.forEach((function(n){n instanceof a.default&&!i.groupLayer&&(i=e.getLayerPositionInfo(t,n))})):(i.position=o.indexOf(t),i.groupLayer=r),i}},{key:"getLegendGraphicUrl",value:function(e,t){if(e){var n=e.getSource();if(e instanceof s.default&&n){var r=n instanceof o.default,a=n instanceof i.default;if(r||a){var l=e.getSource(),c=r?l.getUrls()?l.getUrls()[0]:"":l.getUrl(),p={LAYER:l.getParams().LAYERS,VERSION:"1.3.0",SERVICE:"WMS",REQUEST:"getLegendGraphic",FORMAT:"image/png"},f=u.default.objectToRequestString(Object.assign(p,t));return/\?/.test(c)?"".concat(c,"&").concat(f):"".concat(c,"?").concat(f)}d.default.warn('Source of "'.concat(e.get("name"),'" is currently not supported ')+"by MapUtil.getLegendGraphicUrl.")}else d.default.error("Invalid layer passed to MapUtil.getLegendGraphicUrl.")}else d.default.error("No layer passed to MapUtil.getLegendGraphicUrl.")}},{key:"layerInResolutionRange",value:function(e,t){var n=t&&t.getView(),r=n&&n.getResolution();if(!e||!n||!r)return!1;var o=e.getMinResolution(),i=e.getMaxResolution();return r>=o&&r=100&&e<1e4&&(t=10*Math.round(e/10)),e>=1e4&&e<1e6&&(t=100*Math.round(e/100)),e>=1e6&&(t=1e3*Math.round(e/1e3)),t}},{key:"getZoomForScale",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";if(Number.isNaN(Number(t)))return 0;if(t<0)return 0;var o=e.getResolutionForScale(t,r),i=n.reduce((function(e,t){return Math.abs(t-o)0){var o=new l.default(n);e.getView().fit(o.getExtent())}}}},{key:"isInScaleRange",value:function(e,t){return t>=e.get("minResolution")&&tn?n=o:o | ","angle-percentage":" | ","animateable-feature":"scroll-position | contents | ","attachment":"scroll | fixed | local","auto-repeat":"repeat( [ auto-fill | auto-fit ] , [ ? ]+ ? )","auto-track-list":"[ ? [ | ] ]* ? [ ? [ | ] ]* ?","basic-shape":" | | | ","bg-image":"none | ","bg-layer":" || [ / ]? || || || {1,2}","bg-size":"[ | auto ]{1,2} | cover | contain","blur()":"blur( )","blend-mode":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity","box":"border-box | padding-box | content-box","br-style":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","br-width":" | thin | medium | thick","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [ [ \'+\' | \'-\' ] ]*","calc-product":" [ \'*\' | \'/\' ]*","calc-value":" | | | ( )","cf-final-image":" | ","cf-mixing-image":"? && ","circle()":"circle( [ ]? [ at ]? )","clip-source":"","color":" | | | | | | currentcolor | ","color-stop":" ?","color-stop-list":"#{2,}","common-lig-values":"[ common-ligatures | no-common-ligatures ]","composite-style":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor","compositing-operator":"add | subtract | intersect | exclude","contextual-alt-values":"[ contextual | no-contextual ]","content-list":"[ | contents | | | | counter( , <\'list-style-type\'>? ) ]+","content-replacement":"","contrast()":"contrast( [ ] )","counter-style":" | symbols()","counter-style-name":"","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease | ease-in | ease-out | ease-in-out | cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText","discretionary-lig-values":"[ discretionary-ligatures | no-discretionary-ligatures ]","display-box":"contents | none","display-inside":"flow | flow-root | table | flex | grid | subgrid | ruby","display-internal":"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container","display-legacy":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid","display-listitem":"list-item && ? && [ flow | flow-root ]?","display-outside":"block | inline | run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]","east-asian-width-values":"[ full-width | proportional-width ]","element()":"element( )","ellipse()":"ellipse( [ {2} ]? [ at ]? )","ending-shape":"circle | ellipse","explicit-track-list":"[ ? ]+ ?","family-name":" | +","feature-tag-value":" [ | on | off ]?","feature-value-name":"","fill-rule":"nonzero | evenodd","filter-function":" | | | | | | | | | ","filter-function-list":"[ | ]+","final-bg-layer":" || [ / ]? || || || || || <\'background-color\'>","fit-content()":"fit-content( [ | ] )","fixed-breadth":"","fixed-repeat":"repeat( [ ] , [ ? ]+ ? )","fixed-size":" | minmax( , ) | minmax( , )","font-variant-css21":"[ normal | small-caps ]","frames-timing-function":"frames( )","frequency-percentage":" | ","generic-family":"serif | sans-serif | cursive | fantasy | monospace | -apple-system","generic-name":"serif | sans-serif | cursive | fantasy | monospace","geometry-box":" | fill-box | stroke-box | view-box","gradient":"<-legacy-gradient()> | | | | ","grayscale()":"grayscale( )","grid-line":"auto | | [ && ? ] | [ span && [ || ] ]","historical-lig-values":"[ historical-ligatures | no-historical-ligatures ]","hsl()":"hsl( [ [ / ]? ] | [ , , , ? ] )","hsla()":"hsla( [ [ / ]? ] | [ , , , ? ] )","hue":" | ","hue-rotate()":"hue-rotate( )","image":" | | | | | ","image()":"image( [ [ | ]? , ? ]! )","image-set()":"image-set( # )","image-set-option":"[ | ] ","inflexible-breadth":" | | min-content | max-content | auto","inset()":"inset( {1,4} [ round <\'border-radius\'> ]? )","invert()":"invert( )","keyframes-name":" | ","keyframe-selector":"from | to | ","leader()":"leader( )","leader-type":"dotted | solid | space | ","length-percentage":" | ","line-names":"\'[\' * \']\'","line-name-list":"[ | ]+","linear-gradient()":"linear-gradient( [ | to ]? , )","mask-layer":" || [ / ]? || || || [ | no-clip ] || || ","mask-position":"[ | left | center | right ] [ | top | center | bottom ]?","mask-reference":"none | | ","mask-source":"","masking-mode":"alpha | luminance | match-source","matrix()":"matrix( [, ]{5} )","matrix3d()":"matrix3d( [, ]{15} )","media-type":"","mf-boolean":"","mf-name":"","minmax()":"minmax( [ | | | min-content | max-content | auto ] , [ | | | min-content | max-content | auto ] )","named-color":"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen | <-non-standart-color>","namespace-prefix":"","number-percentage":" | ","numeric-figure-values":"[ lining-nums | oldstyle-nums ]","numeric-fraction-values":"[ diagonal-fractions | stacked-fractions ]","numeric-spacing-values":"[ proportional-nums | tabular-nums ]","opacity()":"opacity( [ ] )","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )","position":"[ center && [ left | right | top | bottom ] ? ] | [ [ left | right ] ? ] && [ [ top | bottom ] ? ] | [ [ left | center | right | ] || [ top | center | bottom | ] ]","quote":"open-quote | close-quote | no-open-quote | no-close-quote","radial-gradient()":"radial-gradient( [ || ]? [ at ]? , )","relative-size":"larger | smaller","repeat-style":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [ | to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [ || ]? [ at ]? , )","rgb()":"rgb( [ [ {3} | {3} ] [ / ]? ] | [ [ #{3} | #{3} ] , ? ] )","rgba()":"rgba( [ [ {3} | {3} ] [ / ]? ] | [ [ #{3} | #{3} ] , ? ] )","rotate()":"rotate( )","rotate3d()":"rotate3d( , , , )","rotateX()":"rotateX( )","rotateY()":"rotateY( )","rotateZ()":"rotateZ( )","saturate()":"saturate( )","scale()":"scale( [, ]? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","shape-radius":" | closest-side | farthest-side","skew()":"skew( [, ]? )","skewX()":"skewX( )","skewY()":"skewY( )","sepia()":"sepia( )","shadow":"inset? && {2,4} && ?","shadow-t":"[ {2,3} && ? ]","shape":"rect( [ [ , , , ] | [ ] ] )","shape-box":" | margin-box","side-or-corner":"[ left | right ] || [ top | bottom ]","single-animation":""},Y=function(e,t,r){var n=b.processOGCFilterFields(e,t,r),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){n+=b.processOGCFilterGroup(e,t,r)})),""!==n?s.ogcLogicalOperators[e.logic](r,n):""},N=function(e,t,r){var n=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return n.length?n.reduce((function(e,t){var n;switch(t.type){case"date":case"date-time":case"time":n=E(t.attribute,t.operator,t.value,r);break;case"number":n=A(t.attribute,t.operator,t.value,r);break;case"string":n=T(t.attribute,t.operator,t.value,r);break;case"boolean":n=L(t.attribute,t.operator,t.value,r);break;case"list":n=k(t.attribute,t.operator,t.value,r)}return"isNull"===t.operator&&(n=T(t.attribute,t.operator,t.operator,r)),n&&e.push(n),e}),[]).join(""):""},F=function(e,t,r){return Object(n.pointElement)(e,t,Object(o.wfsToGmlVersion)(r))},U=function(e,t,r){return Object(n.polygonElement)(e,t,Object(o.wfsToGmlVersion)(r))},H=function(e,t,r){return Object(n.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(r))},B=function(e,t){return Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},W=function(e,t,r){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var i=O[r].startTag+t.attribute+O[r].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":i+=Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(i+="<"+r+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var a=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];i+=''+a+""+u+""}return s.ogcSpatialOperators[t.operation](r,i)},z=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=S(e),i="";break;case"1.1.0":i+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",i=r?i+' resultType="hits"':i,i+='service="WFS" version="'+s+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:i+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",i=r&&!t?i+' resultType="hits"':i,i+='service="WFS" version="'+s+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return i},G=function(e){return Object(f.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(f.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(f.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},q=function(e,t){var r=t||"ogc",n=O[r].startTag+e.attribute+O[r].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);n+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(n+="<"+r+':Distance units="m">'+(e.distance||0)+""),s.ogcSpatialOperators[e.operation](r,n)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var r,n,o=[];if(t.filterFields&&t.filterFields.length>0)(r=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(r);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var s=t.simpleFilterFields.reduce((function(e,t){var r=e,n=b.processCQLSimpleFilterField(t);return!1!==n&&(r=e.length>0?e+" AND ("+n+")":"("+n+")"),r}),"");s=s.length>0?s:"INCLUDE",o.push(s)}if(t.spatialField&&(n=b.processCQLSpatialFilter(t))&&o.push(n),t.crossLayerFilter){var i=t.crossLayerFilter,a=i.operation,u=i.attribute,l=i.collectGeometries&&i.collectGeometries.queryCollection;if(a&&u&&l){var c=l.typeName,d=l.geometryName,f=b.getCrossLayerCqlFilter(i),p=C(D({typeName:c,geometryName:d,cqlFilter:f}));o.push("".concat(a,"(").concat(u,",").concat(p,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var r="NOR"===e.logic?_(_({},e),{},{logic:"AND",negateAll:!0}):e,n=b.processCQLFilterFields(r,t),o=b.findSubGroups(r,t.groupFields);if(o.length>0){var s=o.map((function(e){return(r.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+r.logic+" ");return n?[n,s].join(" "+r.logic+" "):s}return n},J=function(e,t){var r=t+"(";switch(t){case"Point":r+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,n){r+=t.join(" "),r+=n<"===t?r.startDate&&r.endDate&&(n="("+e+">='"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"' AND "+e+"<='"+(r.endDate.toISOString?r.endDate.toISOString():r.endDate)+"')"):r.startDate&&(n=e+t+"'"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"'");return n},Q=function(e,t,r){var n,o=x(e);if(!Object(f.isNil)(r))if("isNull"===t)n="isNull("+o+")=true";else if("="===t){n=o+t+("'"+g(r)+"'")}else if("ilike"===t){n="strToLowerCase("+o+") LIKE "+("'%"+g(r).toLowerCase()+"%'")}else{n=o+" LIKE "+("'%"+g(r)+"%'")}return n},Z=function(e,t,r){var n="";Object(f.isNil)(r)||""===r||"="===t&&(n='"'+e+'"'+t+("'"+r+"'"));return n},ee=function(e,t,r){var n,o=x(e);if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(n="("+o+">='"+r.lowBound+"' AND "+o+"<='"+r.upBound+"')"):n="("+o+"<='"+r.upBound+"')":n="("+o+">='"+r.lowBound+"')";else{var s=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(s)||(n=o+" "+t+" '"+s+"'")}return n},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},re=function(e,t,r){return b.cqlStringField(e,t,r)},ne=function(e,t){var r=t.filterFields.filter((function(t){return t.groupId===e.id})),n=[];return r&&(r.forEach((function(t){var r;switch(t.type){case"date":case"time":case"date-time":r=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":r=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":r=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":r=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":r=b.cqlListField(t.attribute,t.operator,t.value)}r&&n.push(e.negateAll?"NOT ("+r+")":r)})),n=n.join(" "+e.logic+" ")),n},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var r=!1,n=e.values.reduce((function(e,t){return null===t||"null"===t?r=!0:e.push("'"+t+"'"),e}),[]);t=n.length>0?e.attribute+" IN("+n.join(",")+")":t,r&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},se=function(e,t){return'\n \n ')},ie=function(e,t,r){var n=b.toOGCFilter(e,t,r),o=n.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var s=n.search("");n=n.substr(o,s-o)}else n="";return''.concat(e,"").concat(n,'circle#0000FF20')},ae=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,_(_({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,r=void 0===t?[]:t,n=e.spatialField,o=void 0===n?{}:n,s=e.crossLayerFilter,i=void 0===s?{}:s;return!(r.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||i&&i.attribute&&i.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(f.isArray)(e.spatialField)&&Object(f.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"AND",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",n={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,s=void 0===o?[]:o,i=t.groupFields,a=void 0===i?[]:i,u=t.spatialField,l=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(s.length>0&&a.map((function(e){return{groupId:0===e.index&&n.id||"".concat(e.groupId,"_").concat(l),logic:e.logic,id:"".concat(e.id,"_").concat(l),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(s.map((function(e){return _(_({},e),{},{groupId:"".concat(e.groupId,"_").concat(l)})}))),spatialField:de(e.spatialField,u),spatialFieldOperator:r}}),{groupFields:[n],filterFields:[],spatialField:[]})},pe=function(e,t){var r,n=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,s=e.spatialField.geometry.radius,i=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,a=o&&[(r=Object(d.reproject)(o,n,t)).x,r.y],u=s&&Object(d.reproject)([s,0],n,t).x;return _(_({},e),{},{spatialField:_(_({},e.spatialField),{},{geometry:_(_({},e.spatialField.geometry),{},{center:a,radius:u,coordinates:i,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):_(_({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,r=void 0===t?"ogc":t,n=e.ogcVersion,s=void 0===n?"2.0":n,a=e.addXmlnsToRoot,l=void 0!==a&&a,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=c()({filterNS:r,wfsVersion:s,gmlVersion:Object(o.wfsToGmlVersion)(s)}),_=u()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(g.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(g.slice(j))}return g};b={processOGCFilterGroup:Y,processOGCFilterFields:N,processOGCCrossLayerFilter:q,getGetFeatureBase:z,toOGCFilterParts:I,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:G,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:$,processCQLFilterFields:ne,getCQLGeometryElement:J,cqlStringField:Q,cqlDateField:X,cqlNumberField:ee,cqlBooleanField:Z,cqlListField:re,toOGCFilter:R,reprojectFilterInNativeCrs:pe,processOGCSpatialFilter:W,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return m}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/node_modules/lodash/fp/set.js"),s=r.n(o),i=r("./MapStore2/node_modules/lodash/fp/unset.js"),a=r.n(i),u=r("./MapStore2/node_modules/lodash/fp/compose.js"),l=r.n(u),c=s.a,d=a.a,f=l.a,p=function(e,t,r,o){var s=e?Object(n.get)(o,e)||[]:o,i=Object(n.findIndex)(s,r);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return e?c(e,s.concat(t),o):s.concat(t)},h=function(e,t,r,o){var s=e?Object(n.get)(o,e)||[]:o,i=Object(n.findIndex)(s,r);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return o},m=function(e,t,r){var o=e?Object(n.get)(r,e)||[]:r,s=Object(n.findIndex)(o,t);if(s>=0){var i=o.slice();return i.splice(s,1),e?c(e,i,r):i()}return r}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"generateEnvString",(function(){return n}));var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,r=e.value;return"".concat(t,":").concat(r)})).join(";"):""}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getWpsUrl",(function(){return R})),r.d(t,"getNode",(function(){return U})),r.d(t,"getGroupNodes",(function(){return H})),r.d(t,"getNestedGroupTitle",(function(){return B})),r.d(t,"deepChange",(function(){return W})),r.d(t,"getSourceId",(function(){return z})),r.d(t,"extractTileMatrixFromSources",(function(){return G})),r.d(t,"extractTileMatrixSetFromLayers",(function(){return q})),r.d(t,"extractSourcesFromLayers",(function(){return V})),r.d(t,"extractDataFromSources",(function(){return K})),r.d(t,"getURLs",(function(){return J})),r.d(t,"getLayerUrl",(function(){return X})),r.d(t,"getGroupByName",(function(){return Q})),r.d(t,"getDimension",(function(){return Z})),r.d(t,"getLayerId",(function(){return ee})),r.d(t,"normalizeLayer",(function(){return te})),r.d(t,"normalizeMap",(function(){return re})),r.d(t,"belongsToGroup",(function(){return ne})),r.d(t,"getLayersByGroup",(function(){return oe})),r.d(t,"removeEmptyGroups",(function(){return se})),r.d(t,"getNotEmptyGroup",(function(){return ie})),r.d(t,"reorderFunc",(function(){return ae})),r.d(t,"denormalizeGroups",(function(){return ue})),r.d(t,"sortLayers",(function(){return le})),r.d(t,"toggleByType",(function(){return ce})),r.d(t,"sortUsing",(function(){return de})),r.d(t,"splitMapAndLayers",(function(){return fe})),r.d(t,"geoJSONToLayer",(function(){return pe})),r.d(t,"saveLayer",(function(){return he})),r.d(t,"REG_GEOSERVER_RULE",(function(){return me})),r.d(t,"setRegGeoserverRule",(function(){return _e})),r.d(t,"getRegGeoserverRule",(function(){return ye})),r.d(t,"findGeoServerName",(function(){return be})),r.d(t,"getCapabilitiesUrl",(function(){return ve})),r.d(t,"getSearchUrl",(function(){return ge})),r.d(t,"invalidateUnsupportedLayer",(function(){return je})),r.d(t,"isSupportedLayer",(function(){return we})),r.d(t,"getLayerTitleTranslations",(function(){return xe})),r.d(t,"setCustomUtils",(function(){return Me})),r.d(t,"getAuthenticationParam",(function(){return Se})),r.d(t,"excludeGoogleBackground",(function(){return Oe})),r.d(t,"creditsToAttribution",(function(){return Ee})),r.d(t,"formatCapabitiliesOptions",(function(){return ke})),r.d(t,"getLayerTitle",(function(){return Te}));var n,o=r("./node_modules/object-assign/index.js"),s=r.n(o),i=r("./node_modules/turf-bbox/index.js"),a=r.n(i),u=r("./node_modules/uuid/v1.js"),l=r.n(u),c=r("./MapStore2/node_modules/lodash/isString.js"),d=r.n(c),f=r("./MapStore2/node_modules/lodash/isObject.js"),p=r.n(f),h=r("./MapStore2/node_modules/lodash/isArray.js"),m=r.n(h),_=r("./MapStore2/node_modules/lodash/head.js"),y=r.n(_),b=r("./MapStore2/node_modules/lodash/castArray.js"),v=r.n(b),g=r("./MapStore2/node_modules/lodash/isEmpty.js"),j=r.n(g),w=r("./MapStore2/node_modules/lodash/findIndex.js"),x=r.n(w),M=r("./MapStore2/node_modules/lodash/pick.js"),S=r.n(M),O=r("./MapStore2/node_modules/lodash/isNil.js"),E=r.n(O),k=r("./MapStore2/web/client/utils/SecurityUtils.js");function T(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 L(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?e(n.nodes,r):t:n)}),null):null},H=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,r){var n=[].concat(t);return r.nodes&&(n=t.concat(e(r))),d()(r)?[].concat(P(n),[r]):[].concat(P(n),[r.id])}),[]):[]},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return m()(t)&&y()(t.map((function(t){var r=t.id===e?t:null;if(r)return r.title;var n=U(t.nodes,e);return n?n.title:null})))},W=function e(t,r,n,o){return t&&m()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===r)return L(L({},t),p()(n)?n:A({},n,o));if(t.nodes)return L(L({},t),{},{nodes:e(t.nodes,r,n,o)})}return t})):[]},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(v()(e.url))},G=function(e,t){if(!e||!t)return{};!m()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=P(Object.keys(t.matrixIds)));var r=z(t),n=t.matrixIds&&t.matrixIds.reduce((function(t,n){var o=e[r]&&e[r].tileMatrixSet&&e[r].tileMatrixSet[n]&&e[r].tileMatrixSet[n].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,A({},n,P(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[r].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&n&&{tileMatrixSet:o,matrixIds:n}||{}},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(r,n){var o=e[n].reduce((function(e,t){return s()(e,A({},t.id||t.name,{srs:P(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[n].reduce((function(e,t){var r=t.tileMatrixSet.reduce((function(e,t){return s()({},e,A({},t["ows:Identifier"],s()({},t)))}),{}),n=Object.keys(r).reduce((function(e,t){var n=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=n[0]&&r[t].TileMatrix.map((function(e,t){return n[0][t]&&n[0][t].ranges?s()({},e,{ranges:n[0][t].ranges}):s()({},e)}));return y()(n)?s()({},e,A({},t,s()({},r[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,n)}),{});return s()({},r,A({},n,s()({},t[n]||{},{tileMatrixSet:s()({},r[n]&&r[n].tileMatrixSet||{},i)})))}),s()({},t))||t},V=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var r=z(t);return e[r]?s()({},e,A({},r,[].concat(P(e[r]),[t]))):s()({},e,A({},r,[t]))}),{});return q(t)},K=function(e){if(!e||!e.layers||!m()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return j()(t)?P(e.layers):e.layers.map((function(e){var r=G(t,e);return s()({},e,r)}))},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},$={},X=function(e){return m()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=y()(t.filter((function(t){return t.name===e})));return r||t.reduce((function(t,r){return t||!!r.nodes&&n.getGroupByName(e,r.nodes)}),void 0)},Z=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:L(L({},e),{},{id:n.getLayerId(e)})},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?L(L({},e),{},{layers:(e.layers||[]).map((function(e){return n.normalizeLayer(e)}))}):e},function(e){return e.groups?e:L(L({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},ne=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var r=0,n=e.map((function(e){return s()({},e,{storeIndex:r++})}));return n.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,r){var o=r||"Default";return o.split(".").reduce((function(e,r,i,a){var u=o.split(".",i+1).join("."),l=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(u,e),c=i===a.length-1;l?c&&(l.nodes=l.nodes.concat(I(u,n))):(l=function(e,t,r,n){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:n?I(e,r):[],expanded:!0})}(u,B(u,t)||r,n,c),e.push(l));return l.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(n.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(n.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(N(e,t))},ue=function(e,t){var r=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},n=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:n,groups:t.map((function(e){return function e(t,n){var o=t.nodes.map((function(t){return p()(t)?e(t,n):n.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:r(o)})}(e,n)}))}},le=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(N(e,t))},ce=function(e,t){return function(r,n){return t(r,e,n)}},de=function(e,t){return function(r,n){return t(r,n,e)}},fe=function(e){if(e&&m()(e.layers)){var t=n.getLayersByGroup(e.layers,e.groups);m()(e.groups)&&(t=e.groups.reduce((function(e,t){var r=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};r=n.deepChange(r,t.id,o)}return r=n.deepChange(r,t.id,"expanded",t.expanded)}),[].concat(t)));var r=K(e);return s()({},e,{layers:{flat:n.reorder(t,r),groups:t}})}return e},pe=function(e,t){var r=a()(e),n=[];return n="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[S()(L(L({},e),{},{id:E()(e.id)?l()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]},crs:"EPSG:4326"},features:n}},he=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},me=C,_e=function(e){C=e},ye=function(){return C},be=function(e){var t=e.url,r=e.regexRule||n.getRegGeoserverRule(),o=m()(t)?t[0]:t;return r.test(o)&&o.match(r)[0]||null},ve=function(e){var t=n.findGeoServerName({url:e.url}),r=X(e);if(t){var o=r.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(r=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var r=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+r:e+"&"+r}(r,L(L({},e.baseParams),e.params))},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},je=function(e,t){return F(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},we=function(e,t){return!!F(e,t)},xe=function(e){return $.getLayerTitleTranslations?$.getLayerTitleTranslations(e):e.Title},Me=function(e,t){$[e]=t},Se=function(e){var t=J(m()(e.url)?e.url:[e.url]),r={};return t.forEach((function(t){Object(k.addAuthenticationParameter)(t,r,e.securityToken)})),r},Oe=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.group,n=e.visibility;return"background"===r&&"google"===t&&n})).length>0,r=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),n=r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(n.length>0){var o=x()(r,{group:"background"});return r.map((function(e,t){return t===o?L(L({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(P(r))}return r},Ee=function(e){var t=e.imageUrl,r=e.link,n=e.title,o=t?'"):n;return r&&o?'').concat(o,""):o},ke=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Te=function(e){var t=e.title,r=e.name,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[n])||(null==t?void 0:t.default)||t||r};n={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:W,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:be}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(g)[0],r=g.en?{key:"en",locale:g.en}:{key:t,locale:g[t]},n=g[v.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:r.key))];return n?n.code:r.locale.code},E=function(){return g},k=function(e){return j[e]||j.default},T=function(e,t){var r=e;return t.split(".").forEach((function(e){r=r?r[e]:null})),r||t},L=function(e,t){w[e]=t},A=function(e,t,r){return t&&r&&w[t]&&w[t][r]&&w[t][r](e)||{title:"errorTitleDefault",message:"errorDefault"}},P=function(e,t){return i(t)?t[e]||t.default:t||""};v={getLocale:O,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var r=/^[a-z]+/i.exec(e);t=r&&r.length>0?r[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return O})),r.d(t,"e",(function(){return E})),r.d(t,"f",(function(){return k})),r.d(t,"h",(function(){return T})),r.d(t,"a",(function(){return L})),r.d(t,"g",(function(){return A})),r.d(t,"i",(function(){return P})),r.d(t,"k",(function(){return D})),r.d(t,"b",(function(){return C})),r.d(t,"j",(function(){return R})),r.d(t,"c",(function(){return Y}));var n,o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),s=r("./node_modules/turf-point-on-surface/index.js"),i=r.n(s),a=r("./MapStore2/node_modules/lodash/lodash.js"),u=r("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),l=r.n(u),c=r("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=r("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),f=r("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),p=r("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=r.n(p),m=r("./MapStore2/web/client/utils/mapinfo/wms.js"),_=r.n(m),y=r("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=r.n(y),v=r("./MapStore2/web/client/utils/mapinfo/vector.js"),g=r.n(v);function j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(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);r1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,s){if(s){var i;s.queryParams&&s.queryParams.hasOwnProperty("info_format")&&(i=s.queryParams.info_format),s.queryParams&&s.queryParams.hasOwnProperty("outputFormat")&&(i=s.queryParams.outputFormat);var a=(o.c[s.format||o.b[i]||o.b[e]]||t).getValidResponses([s],n);return[].concat(j(r),j(a))}return j(r)}),[])},getNoValidResponses:function(r){return r.reduce((function(r,n){if(n){var s;n.queryParams&&n.queryParams.hasOwnProperty("info_format")&&(s=n.queryParams.info_format),n.queryParams&&n.queryParams.hasOwnProperty("outputFormat")&&(s=n.queryParams.outputFormat);var i=(o.c[n.format||o.b[s]||o.b[e]]||t).getNoValidResponses([n]);return[].concat(j(r),j(i))}return j(r)}),[])}}},D=function(){var e;return S(e={},o.a.PROPERTIES,c.a),S(e,o.a.JSON,c.a),S(e,o.a.HTML,d.a),S(e,o.a.TEXT,f.a),e},C=function(e){var t;return e.visibility&&n.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},I={wfs:h.a,wms:_.a,wmts:b.a,vector:g.a},R=function(e){return n.VIEWERS[e]?n.VIEWERS[e]:null},Y=function(e,t,r){var n=t||[],o=r||[];return Object.keys(e).reduce((function(t,r){if("params"!==r&&-1!==n.indexOf(r))t[r]=e[r];else if("params"===r&&o.length>0){var s=e[r];Object.keys(s).forEach((function(e){-1===Object(a.findIndex)(o,(function(t){return t===e}))&&(t[e]=s[e])}),{})}return t}),{})};n={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(n.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:k,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[i()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:l.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:I,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||n.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&M({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),r.d(t,"METERS_PER_UNIT",(function(){return v})),r.d(t,"GOOGLE_MERCATOR",(function(){return g})),r.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),r.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return w})),r.d(t,"RESOLUTIONS_HOOK",(function(){return x})),r.d(t,"RESOLUTION_HOOK",(function(){return M})),r.d(t,"COMPUTE_BBOX_HOOK",(function(){return S})),r.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),r.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return E})),r.d(t,"registerHook",(function(){return T})),r.d(t,"getHook",(function(){return L})),r.d(t,"executeHook",(function(){return A})),r.d(t,"clearHooks",(function(){return P})),r.d(t,"dpi2dpm",(function(){return D})),r.d(t,"dpi2dpu",(function(){return C})),r.d(t,"getSphericalMercatorScale",(function(){return I})),r.d(t,"getGoogleMercatorScale",(function(){return R})),r.d(t,"getSphericalMercatorScales",(function(){return Y})),r.d(t,"getGoogleMercatorScales",(function(){return N})),r.d(t,"getResolutionsForScales",(function(){return F})),r.d(t,"getGoogleMercatorResolutions",(function(){return U})),r.d(t,"getResolutions",(function(){return H})),r.d(t,"getScales",(function(){return B})),r.d(t,"defaultGetZoomForExtent",(function(){return W})),r.d(t,"getZoomForExtent",(function(){return z})),r.d(t,"getCurrentResolution",(function(){return G})),r.d(t,"getCenterForExtent",(function(){return q})),r.d(t,"getBbox",(function(){return V})),r.d(t,"isNearlyEqual",(function(){return K})),r.d(t,"mapUpdated",(function(){return J})),r.d(t,"transformExtent",(function(){return $})),r.d(t,"groupSaveFormatted",(function(){return X})),r.d(t,"saveMapConfiguration",(function(){return Q})),r.d(t,"generateNewUUIDs",(function(){return Z})),r.d(t,"mergeMapConfigs",(function(){return ee})),r.d(t,"addRootParentGroup",(function(){return te})),r.d(t,"isSimpleGeomType",(function(){return re})),r.d(t,"getSimpleGeomType",(function(){return ne})),r.d(t,"getIdFromUri",(function(){return oe})),r.d(t,"parseLayoutValue",(function(){return se})),r.d(t,"prepareMapObjectToCompare",(function(){return ie})),r.d(t,"updateObjectFieldKey",(function(){return ae})),r.d(t,"compareMapChanges",(function(){return ue})),r.d(t,"createRegisterHooks",(function(){return le}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/uuid/v1.js"),s=r.n(o),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r("./MapStore2/web/client/utils/ImmutableUtils.js"),u=r("./MapStore2/web/client/utils/LayersUtils.js"),l=r("./node_modules/object-assign/index.js"),c=r.n(l);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(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.diff?e:{diff:n,zoom:r}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,n))}function z(e,t,r,n,o){return L("EXTENT_TO_ZOOM_HOOK")?L("EXTENT_TO_ZOOM_HOOK")(e,t,r,n,o):W(e,t,r,n,o,L("RESOLUTIONS_HOOK")?L("RESOLUTIONS_HOOK")(e,t,r,n,o,D(o||b)):null)}function G(e,t,r,n){return L("RESOLUTION_HOOK")?L("RESOLUTION_HOOK")(e,t,r,n):U(t,r,n)[e]}function q(e,t){var r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return{x:e[0]+r,y:e[1]+n,crs:t}}function V(e,t){return A("COMPUTE_BBOX_HOOK",(function(r){return r(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function J(e,t){var r,o,s,i;return!(!e||Object(n.isEmpty)(e)||!t||Object(n.isEmpty)(t))&&(!(K(null==t||null===(r=t.center)||void 0===r?void 0:r.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(s=t.center)||void 0===s?void 0:s.y,null==e||null===(i=e.center)||void 0===i?void 0:i.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function $(e,t,r,n){var o=Object(i.getUnits)(e);return"ft"===o?{width:r/v.ft,height:n/v.ft}:"us-ft"===o?{width:r/v["us-ft"],height:n/v["us-ft"]}:"degrees"===o?{width:r/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:n/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:r,height:n}}var X=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,r,o,s,i,l){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},f=t.map((function(e){return Object(u.saveLayer)(e)})),p=r.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(r.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(r,e);return t&&t.nodes?X(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(u.extractSourcesFromLayers)(f),y=f.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(n.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?_(_({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(a.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(a.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(a.e)("features",v,y[b])}return _({version:2,map:c()({},d,{layers:y,groups:p,backgrounds:h,text_search_config:s,bookmark_search_config:i},!Object(n.isEmpty)(m)&&{sources:m}||{})},l)}var Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(n.cloneDeep)(e),r=_(_({},Object(n.get)(e,"map.layers",[]).reduce((function(e,t){return _(_({},e),{},y({},t.id,"annotations"===t.id?t.id:s()()))}),{})),Object(n.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return _(_({},e),{},y({},t.id,s()()))}),{}));return Object(a.e)("map.backgrounds",Object(n.get)(e,"map.backgrounds",[]).map((function(e){return _(_({},e),{},{id:r[e.id]})})),Object(a.e)("widgetsConfig",{collapsed:Object(n.mapValues)(Object(n.mapKeys)(Object(n.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return r[t]})),(function(e){return _(_({},e),{},{layouts:Object(n.mapValues)(e.layouts,(function(e){return _(_({},e),{},{i:r[e.i]})}))})})),layouts:Object(n.mapValues)(Object(n.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return _(_({},e),{},{i:r[e.i]})}))})),widgets:Object(n.get)(e,"widgetsConfig.widgets",[]).map((function(e){return _(_({},e),{},{id:r[e.id],layer:_(_({},Object(n.get)(e,"layer",{})),{},{id:r[Object(n.get)(e,"layer.id")]})})}))},Object(a.e)("map.layers",Object(n.get)(e,"map.layers",[]).map((function(e){return _(_({},e),{},{id:r[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(n.pick)(e,Object(n.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=Z(t),s=[].concat(p(Object(n.get)(e,"map.backgrounds",[])),p(Object(n.get)(o,"map.backgrounds",[]))),i=r(Object(n.get)(e,"map.layers",[])),a=r(Object(n.get)(o,"map.layers",[])),u=Object(n.find)(i,(function(e){return"annotations"===e.id})),l=Object(n.find)(a,(function(e){return"annotations"===e.id})),c=[].concat(p(a.filter((function(e){return"annotations"!==e.id}))),p(i.filter((function(e){return"annotations"!==e.id}))),p(u||l?[_(_(_({},u||{}),l||{}),{},{features:[].concat(p(Object(n.get)(u,"features",[])),p(Object(n.get)(l,"features",[])))})]:[])),d=c.filter((function(e){return"background"===e.group})),f=Object(n.findIndex)(d,(function(e){return e.visibility})),h=Object(n.get)(e,"map.sources",{}),m=Object(n.get)(o,"map.sources",{}),b=_(_({},h),m),v=Object(n.get)(e,"widgetsConfig",{}),g=Object(n.get)(o,"widgetsConfig",{});return _(_(_({},o),e),{},{catalogServices:_(_({},Object(n.get)(e,"catalogServices",{})),{},{services:_(_({},Object(n.get)(e,"catalogServices.services",{})),Object(n.get)(o,"catalogServices.services",{}))}),map:_(_(_({},o.map),e.map),{},{backgrounds:s,groups:Object(n.uniqWith)([].concat(p(Object(n.get)(e,"map.groups",[])),p(Object(n.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(p(d.slice(0,f+1)),p(d.slice(f+1).map((function(e){return _(_({},e),{},{visibility:!1})}))),p(c.filter((function(e){return"background"!==e.group})))),sources:Object(n.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:_(_({},v.collapsed),g.collapsed),layouts:Object(n.uniq)([].concat(p(Object(n.keys)(v.layouts)),p(Object(n.keys)(g.layouts)))).reduce((function(e,t){return _(_({},e),{},y({},t,[].concat(p(Object(n.get)(v,"layouts.".concat(t),[])),p(Object(n.get)(g,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(p(Object(n.get)(v,"widgets",[])),p(Object(n.get)(g,"widgets",[])))},timelineData:_(_({},Object(n.get)(e,"timelineData",{})),Object(n.get)(o,"timelineData",{})),dimensionData:_(_({},Object(n.get)(e,"dimensionData",{})),Object(n.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",r=Object(n.get)(e,"map.groups",[]),o=r.filter((function(e){return"Default"!==e.id})),i=Object(n.find)(r,(function(e){return"Default"===e.id})),a=i&&{id:s()(),title:t,expanded:i.expanded},u=i?[].concat(p(o.map((function(e){var t=e.id,r=f(e,["id"]);return _({id:"".concat(a.id,".").concat(t)},r)}))),[a]):o;return _(_({},e),{},{map:_(_({},e.map),{},{groups:u,layers:Object(n.get)(e,"map.layers",[]).map((function(e){var t,r=e.group;return _(_({},f(e,["group"])),{},{group:!i||"background"===r||"Default"!==r&&r?i&&(null===(t=Object(n.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===r})))||void 0===t?void 0:t.id)||r:a.id})}))})})};function re(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,r=decodeURIComponent(e),n=t.exec(r);return n&&n.length&&n.length>1?n[1]:null},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(n.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(n.trim)(e))*t/100:Object(n.isNumber)(e)?e:0},ie=function e(t){var r=["apiKey","time","args","fixed"],n=function(e){return r.reduce((function(t,r){return t||e===r}),!1)};Object.keys(t).forEach((function(r){var o=t[r],s=d(o);"object"!==s||null===o||n(r)?"undefined"!==s&&o&&!n(r)||delete t[r]:(e(o),Object.keys(o).length||delete t[r])}))},ae=function(e,t,r){e[t]&&(Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(n.pick)(Object(n.cloneDeep)(e),r),s=Object(n.pick)(Object(n.cloneDeep)(t),r);return ae(o.map,"text_serch_config","text_search_config"),ae(s.map,"text_serch_config","text_search_config"),ie(o),ie(s),Object(n.isEqual)(o,s)},le=function(){var e={};return{registerHook:function(t,r){e[t]=r},getHook:function(t){return e[t]},executeHook:function(t,r,n){var o=e[t];return o?r(o):n?n():null}}};t.default={createRegisterHooks:le,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:x,RESOLUTION_HOOK:M,COMPUTE_BBOX_HOOK:S,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:E,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:w,registerHook:T,getHook:L,dpi2dpm:D,getSphericalMercatorScales:Y,getSphericalMercatorScale:I,getGoogleMercatorScales:N,getGoogleMercatorResolutions:U,getGoogleMercatorScale:R,getResolutionsForScales:F,getZoomForExtent:z,defaultGetZoomForExtent:W,getCenterForExtent:q,getResolutions:H,getScales:B,getBbox:V,mapUpdated:J,getCurrentResolution:G,transformExtent:$,saveMapConfiguration:Q,generateNewUUIDs:Z,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:re,getSimpleGeomType:ne,getIdFromUri:oe,parseLayoutValue:se,prepareMapObjectToCompare:ie,updateObjectFieldKey:ae,compareMapChanges:ue,clearHooks:P}},"./MapStore2/web/client/utils/NotificationUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r("./MapStore2/web/client/actions/notifications.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"notification.warning":t,o=e.autoDismiss,s=void 0===o?6:o,i=e.position,a=void 0===i?"tc":i,u=e.message,l=void 0===u?"Error":u;return Object(n.f)({title:r,autoDismiss:s,position:a,message:l})},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"notification.success":t,o=e.autoDismiss,s=void 0===o?6:o,i=e.position,a=void 0===i?"tc":i,u=e.message,l=void 0===u?"Success":u;return Object(n.j)({title:r,autoDismiss:s,position:a,message:l})}},"./MapStore2/web/client/utils/ObservableUtils.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return y})),r.d(t,"b",(function(){return b})),r.d(t,"a",(function(){return v}));var n=r("./node_modules/rxjs/Rx.js"),o=r.n(n),s=r("./MapStore2/node_modules/lodash/lodash.js"),i=r("./node_modules/xml2js/lib/xml2js.js"),a=r("./node_modules/xml2js/lib/processors.js"),u=r("./MapStore2/web/client/api/GeoStoreDAO.js");function l(e){return(l="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 c(e,t){return!t||"object"!==l(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 d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)})(e)}function f(e,t,r){return(f=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=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&&h(e,t)}(o,e);var t,r,n=(t=o,r=p(),function(){var e,n=m(t);if(r){var o=m(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return c(this,e)});function o(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="OGCError",r.code=t,r}return o}(d(Error)),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[a.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o.a.Observable.bindNodeCallback((function(e,r){return Object(i.parseString)(e,t,r)}))(e)},b=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o.a.Observable.bindNodeCallback((function(e,t){return Object(i.parseString)(e,{tagNameProcessors:[a.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=Object(s.get)(e,"ExceptionReport.Exception.ExceptionText");throw new _(t||"Undefined OGC Service Error",Object(s.get)(e,"ExceptionReport.Exception.exceptionCode"))})):o.a.Observable.of(e)}))},v=function(e,t){return e?u.a.deleteResource(e,t).then((function(e){return{data:e.data,resType:"success",error:null}})).catch((function(e){return{error:e,resType:"error"}})):o.a.Observable.of({resType:"success"})}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(n,r)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,r){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},r.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r.path)))}),{})}),(function(e,t){return t.reduce((function(t,r){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var r=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===r||e===r})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(r)&&0===r.indexOf("{")?parseExpression(e,t,r):r},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(n&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,r.requires,n)},isContainedInList=function(e,t,r,n){return e&&t&&-1!==handleExpression(r,n,t).indexOf(e)},showIn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,r.showIn,e,t)||isContainedInList(n,r.showIn,e,t)||!r.showIn&&s)&&!(isContainedInList(o,r.hideFrom,e,t)||isContainedInList(n,r.hideFrom,e,t))},includeLoaded=function(e,t,r){if(t[e]){var n=t[e],o=n.component||n;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,r,{loadPlugin:void 0},_objectSpread({},n.containers))}return r},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,r+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r+".priority")||0},getMorePrioritizedContainer=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 r.reduce((function(r,n){var o=n.name||n,s=getPriority(e,t,o);return s>r.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:r}),{plugin:null,priority:n})},parsePluginConfig=function e(t,r,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(n)?n.map((function(n){return e(t,r,n)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?Object.keys(n).reduce((function(o,s){var i=n[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,r,i)))}),{}):parseExpression(t,r,n)},canContain=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||r[e]||!1},isMorePrioritizedContainer=function(e,t,r,n){return null===getMorePrioritizedContainer(e,t,r,n).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,r){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[r])?_objectSpread(_objectSpread({},e),{},_defineProperty({},r,e[r](t))):e},getPluginItems=function e(t,r,n,o,s,i,a,u){return Object.keys(r).map((function(e){var t=getPluginConfiguration(n,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,r[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,r.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,n,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),u=includeLoaded(i,a,s.impl),l=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},l,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},u.cfg||{},parsePluginConfig(t,r.requires,s.config.cfg||{})||void 0)},{plugin:u,items:e(t,r,n,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,r)})).filter((function(e){return!u||u(e)}))},pluginsMergeProps=function(e,t,r){var n=r.pluginCfg,o=_objectWithoutProperties(r,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,n||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var r=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},r,e[r]?[].concat(_toConsumableArray(e[r]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.name:n,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.stateSelector:i||void 0,u=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)||(void 0===n.isDefault||n.isDefault),l=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.name:n)+"Plugin",c=t[l];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?parsePluginConfig(e,t.requires,n.cfg):{}),items:getPluginItems(e,t,r,s,i,u,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(e){var n=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(n,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):r};return a.loaded=!!n,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,r,n){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,r||pluginsMergeProps,n)},createPlugin=function(e,t){var r,n=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,u=t.reducers,l=void 0===u?{}:u,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,h=t.enabler,m=void 0===h?function(){return!0}:h,_=t.loader,y=normalizeName(e),b=p?{loadPlugin:function(e){_().then((function(t){var r=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0}))}))},enabler:m}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0});return _defineProperty(r={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(b,a,s)),_defineProperty(r,"reducers",l),_defineProperty(r,"epics",d),r},loadPlugin=function(e){return new Promise((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,r){return t({name:e,plugin:r})}))})).catch((function(e){r(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/ResourceUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=/rest\/geostore\/data\/(\d+)/,o=function(e){var t=decodeURIComponent(decodeURIComponent(e)),r=n.exec(t);return r&&!!r[0]&&r[1]}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return l}));var n=r("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=r.n(n),s=r("./MapStore2/web/client/product/assets/img/marker-shadow.png"),i=r.n(s),a={iconUrl:o.a,shadowUrl:i.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},l=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"setStore",(function(){return b})),r.d(t,"getSecurityInfo",(function(){return v})),r.d(t,"getUser",(function(){return g})),r.d(t,"getBasicAuthHeader",(function(){return j})),r.d(t,"getToken",(function(){return w})),r.d(t,"getRefreshToken",(function(){return x})),r.d(t,"getUserAttributes",(function(){return M})),r.d(t,"findUserAttribute",(function(){return S})),r.d(t,"findUserAttributeValue",(function(){return O})),r.d(t,"getAuthenticationRules",(function(){return E})),r.d(t,"isAuthenticationActivated",(function(){return k})),r.d(t,"getAuthenticationMethod",(function(){return T})),r.d(t,"getAuthenticationRule",(function(){return L})),r.d(t,"getAuthKeyParameter",(function(){return A})),r.d(t,"addAuthenticationParameter",(function(){return P})),r.d(t,"addAuthenticationToUrl",(function(){return D})),r.d(t,"clearNilValuesForParams",(function(){return C})),r.d(t,"addAuthenticationToSLD",(function(){return I})),r.d(t,"cleanAuthParamsFromURL",(function(){return R}));var n=r("./MapStore2/web/client/utils/ConfigUtils.js"),o=r("./node_modules/url/url.js"),s=r.n(o),i=r("./node_modules/object-assign/index.js"),a=r.n(i),u=r("./MapStore2/node_modules/lodash/head.js"),l=r.n(u),c=r("./MapStore2/node_modules/lodash/isNil.js"),d=r.n(c),f=r("./MapStore2/node_modules/lodash/isArray.js"),p=r.n(f),h=r("./MapStore2/web/client/utils/StateUtils.js");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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return d()(e[r])?t:_(_({},t),{},y({},r,e[r]))}),{})}function I(e,t){if(e.SLD){var r=s.a.parse(e.SLD,!0),n=P(e.SLD,r.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},r,{query:n,search:void 0}))})}return e}function R(e){return n.default.filterUrlParams(e,[A(e)].filter((function(e){return e})))}var Y={setStore:b,getSecurityInfo:v,getUser:g,getBasicAuthHeader:j,getToken:w,getRefreshToken:x,getUserAttributes:M,findUserAttribute:S,findUserAttributeValue:O,getAuthenticationRules:E,isAuthenticationActivated:k,getAuthenticationMethod:T,getAuthenticationRule:L,addAuthenticationToUrl:D,addAuthenticationParameter:P,clearNilValuesForParams:C,addAuthenticationToSLD:I,getAuthKeyParameter:A,cleanAuthParamsFromURL:R};t.default=Y},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,r){"use strict";r.d(t,"f",(function(){return g})),r.d(t,"e",(function(){return w})),r.d(t,"d",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return k})),r.d(t,"a",(function(){return T}));var n=r("./node_modules/redux/es/index.js"),o=r("./node_modules/redux-thunk/lib/index.js"),s=r.n(o),i=r("./node_modules/redux-logger/dist/redux-logger.js"),a=r.n(i),u=r("./node_modules/redux-observable/lib/esm/index.js"),l=r("./MapStore2/web/client/utils/EpicsUtils.js"),c=r("./MapStore2/web/client/utils/ConfigUtils.js"),d=r("./MapStore2/node_modules/lodash/isEmpty.js"),f=r.n(d),p=r("./node_modules/rxjs/Rx.js");function h(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 m(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+r,e),e},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+r,e),e},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",n=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+r,n),function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},E=function(e){var t;return!f()(j(e))&&(null===(t=j(e))||void 0===t?void 0:t.getState())||{}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,r=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,h=e.debug,m=void 0!==h&&h,_=e.enhancer,b=x(t||Object(n.c)(s)),j=r||u.a.apply(void 0,y(Object(l.a)(a))),M=j?[w(Object(u.b)(j))].concat(y(p)):p,S=n.a.apply(null,v(M,m)),O=(window.devToolsExtension&&m?Object(n.d)(S,window.devToolsExtension()):S)(n.e);return g(O(b,d,_))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,r=void 0===t?{}:t,n=e.epics,o=void 0===n?{}:n,s=arguments.length>1?arguments[1]:void 0,i=M(),a=function(e,t){var n=Object.keys(i({},{})),o=m(m({},e),i(e,t));return Object.keys(r).filter((function(e){return-1===n.indexOf(e)})).reduce((function(e,n){return m(m({},e),{},_({},n,r[n](e[n],t)))}),o)};(s||j()).replaceReducer(a);var u=O();Object(l.a)(o).forEach((function(e){u.next(e)}))}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/LayersUtils.js"),s=r("./MapStore2/web/client/utils/LocaleUtils.js"),i=function(e,t){var r=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||r.test(t))return null;var n=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:n}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var s=Object(n.isObject)(t.title)?t.title[r]||t.title.default:t.title,i=s||t.name||"";return i;case"description":var a=t.description||"";return a;case"both":var u=Object(n.isObject)(t.title)?t.title[r]||t.title.default:t.title,l=u||t.nam||"",c=t.description||"";return"".concat(l).concat(o&&c?o:"").concat(c);default:return t[e]}},u=function(e){var t=e.node,r=e.currentLocale,n=e.tooltipOptions,o=void 0===n?{separator:" - ",maxLength:807}:n,s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return a(e.tooltipOptions,e,t,r)}(t,r,o.separator)||"";return(s=s&&s.substring(0,o.maxLength)).length===o.maxLength&&(s+="..."),{title:a("title",t,r,o.separator),tooltipText:s}},l=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(n?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,r+1,n)):t}),[])},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.replace(/[^\.\/]+/g,(function(e){var r=Object(n.get)(Object(o.getGroupByName)(e,t),"title");return Object(n.isObject)(r)?r[Object(s.d)()]||r.default:t&&r||e}));return r=(r=r.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"validateStringAttribute",(function(){return s})),r.d(t,"getCleanTemplate",(function(){return i})),r.d(t,"parseCustomTemplate",(function(){return a})),r.d(t,"generateTemplateString",(function(){return u})),r.d(t,"parseTemplate",(function(){return l}));var n,o=r("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=Object(o.isString)(t)&&Object(o.trim)(t.substring(r,t.length-n))||"";return Object(o.has)(e,s)},i=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(r),l=u&&u.map((function(e){var r=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:s(t,r,n,i)?r:a(e)}}))||null;return l&&l.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(i(e||"",t,/\$\{.*?\}/g,2,1,r))(t)},u=(n={},function(e,t){var r=n[e];return r&&!t||(r=function(r){var n=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,n){return(t||function(e){return e})(n.trim().split(".").reduce((function(e,t){return e&&e[t]}),r))}));return Object(o.isString)(n)&&n||""},t||(n[e]=r)),r}),l=function(e,t){r.e(32).then(function(){var n=r("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var s=n.transform(o,{presets:["es2015","react","stage-0"]}).code;t(s)}catch(e){t(null,e)}}.bind(null,r)).catch(r.oe)},c={generateTemplateString:u,parseTemplate:l,validateStringAttribute:s,getCleanTemplate:i,parseCustomTemplate:a};t.default=c},"./MapStore2/web/client/utils/ThemeUtils.js":function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,a=o.end;if(!i||!a)return{count:c({start:t,end:r,duration:n}),start:t,end:r};var u=s.a.duration(n).asMilliseconds(),l=new Date(t).getTime(),d=new Date(r).getTime(),f=new Date(i).getTime(),p=new Date(a).getTime(),h=Math.ceil((f-l)/u),m=Math.floor((p-l)/u),_=Math.floor((d-l)/u);if(h>=0&&m<=_){var y=m-h;return{start:new Date(l+Math.max(0,h)*u),end:new Date(l+Math.min(_,m)*u),count:y}}return{count:c({start:t,end:r,duration:n}),start:t,end:r}},h=function(e){return e.match(a)[0]},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),a=Math.floor(i.getTime()-o.getTime())/n,u=s.a.duration(a).toISOString(),l=h(u);return{range:{start:t,end:r},resolution:l}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[l(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},b=function(e,t){var r=s()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},v=function(e){return 6e4*e.getTimezoneOffset()},g=function(e){var t=e;!Object(n.isDate)(e)&Object(n.isString)(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var s=t.getUTCSeconds();return s=s<10?"0"+s:s,"".concat(r,":").concat(o,":").concat(s)},j=function(e){var t=e;!Object(n.isDate)(e)&Object(n.isString)(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,o=t.getUTCDate();return r=r<10?"0"+r:r,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(o)},w=function(e,t){var r=Object(i.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return r;default:return r+" HH:mm:SS"}},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,r=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,s=Object(n.castArray)(r.DimensionDomain||[]).concat(),i=r["@version"]||r.version,a=Object(n.get)(r,"SpaceDomain.BoundingBox");return a&&s.push({Identifier:"space",Domain:a}),s.map((function(e){var t=e.Identifier,r=e.Domain;return{source:{type:"multidim-extension",version:i,url:o},name:t,domain:r}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"optionsToVendorParams",(function(){return a}));var n=r("./MapStore2/web/client/utils/FilterUtils.js");function o(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;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,i=t.filterObj,a=[Object(n.isFilterValid)(o)&&!o.disabled&&Object(n.toCQLFilter)(o),Object(n.isFilterValid)(i)&&Object(n.toCQLFilter)(i),t&&t.params&&t.params.CQL_FILTER,r];return(e=(a=a.filter((function(e){return!!e}))).length>1?a.map((function(e){return"(".concat(e,")")})).join(" AND "):a.pop())?s(s({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"needsReload",(function(){return c})),r.d(t,"toDescribeURL",(function(){return d})),r.d(t,"extractGeometryType",(function(){return f})),r.d(t,"extractGeometryAttributeName",(function(){return p}));var n=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=r("./node_modules/url/url.js"),s=r.n(o),i=r("./MapStore2/node_modules/lodash/lodash.js");function a(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 u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,o=e.url,i=e.describeFeatureTypeURL,a=s.a.parse(i||n.url||o,!0);return s.a.format(u(u({},a),{},{search:void 0,query:u(u({},a.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},f=function(e){var t=Object(i.get)(e,"featureTypes[0].properties")||[];return t&&Object(i.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},p=function(e){var t=Object(i.get)(e,"featureTypes[0].properties")||[];return t&&Object(i.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getDefaultMatrixId",(function(){return l})),r.d(t,"getMatrixIds",(function(){return c})),r.d(t,"limitMatrix",(function(){return d})),r.d(t,"getTileMatrixSet",(function(){return f})),r.d(t,"getRequestEncoding",(function(){return p})),r.d(t,"getOperations",(function(){return h})),r.d(t,"getOperation",(function(){return m})),r.d(t,"getGetTileURL",(function(){return _})),r.d(t,"getCapabilitiesURL",(function(){return y})),r.d(t,"getDefaultStyleIdentifier",(function(){return b})),r.d(t,"getDefaultFormat",(function(){return v})),r.d(t,"sortTileMatrix",(function(){return g})),r.d(t,"getTileMatrix",(function(){return j}));var n,o=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=r("./MapStore2/node_modules/lodash/lodash.js");function i(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 a(e){for(var t=1;tt?Object(s.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(s.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,r).reduce((function(t,r){if(Object(s.isArray)(e)){var i=Object(s.head)(e.filter((function(e){return(e["ows:Identifier"]===r||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===r)&&n[e["ows:Identifier"]]})));return i&&i["ows:Identifier"]?i["ows:Identifier"]:t}return Object(s.isObject)(e)&&e[r]||t}),i):i},p=function(e){var t=n.getOperations(e);return n.getOperation(t,"GetTile","KVP")?"KVP":n.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,r){return Object(s.head)(Object(s.castArray)(Object(s.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(s.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===r})).map((function(e){return e.$["xlink:href"]})))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,r=e.GetTileURL,n=e.requestEncoding;return"KVP"===n?r:t&&Object(s.castArray)(t).map((function(e){var t=e.$,r=void 0===t?{}:t;return r.template||r.value}))||r},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.head)(Object(s.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(s.head)(Object(s.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(s.head)(Object(s.castArray)(e.Format))},g=function(e,t){return e?a(a({},e),{},{TileMatrix:Object(s.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return a(a({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var r,n,o=f(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),i=e.matrixIds&&c(e.matrixIds,o||t),a=g(Object(s.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),i),u=null==a||null===(r=(n=a.TileMatrix).map)||void 0===r?void 0:r.call(n,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&i?i.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):i,tileMatrixSetName:o,tileMatrixSet:a}};n={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var r={},n={registerType:function(e,t){r[e]=t},createLayer:function(e,t,n){var o=r[e];return o&&o.create?o.create(t,n):o?o(t,n):null},renderLayer:function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},updateLayer:function(e,t,n,o,s){var i=r[e];return i&&i.update?i.update(t,n,o,s):null},isSupported:function(e){return!!r[e]}};e.exports=n},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var r={},n={registerType:function(e,t){r[e]=t},createLayer:function(e,t){var n=r[e];return n&&n.create?n.create(t):n?n(t):null},renderLayer:function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},updateLayer:function(e,t,n,o){var s=r[e];return s&&s.update?s.update(t,n,o):null},isValid:function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},isSupported:function(e){return!!r[e]}};e.exports=n},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var r,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(r=e.features)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&n(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,r){function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(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;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.map,n=void 0===r?{}:r,o=t.point,i=t.currentLocale,a=t.params,d=t.maxItems,f=void 0===d?10:d,p=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:_(s({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(n.projection)||"EPSG:4326",feature_count:f},y({params:a})),e),metadata:{title:c(e.title)?e.title[i]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:p,featureInfo:h},url:l(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,r){var o=r.point,s=n(r,["point"]),i=function(e){var t,r,n=null==e||null===(t=e.geometricFilter)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.geometry;if(n)return n;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return a.defer((function(){return p(e.url,e.name).then((function(r){var n=m(r),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:n,operation:"INTERSECTS",geometry:i}},params:y({},e.baseParams,e.params,s)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,r){function n(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 o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.sizeBBox,n=t.map,s=void 0===n?{}:n,a=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,g=void 0===v?10:v,j=t.env,w=arguments.length>2?arguments[2]:void 0,x=arguments.length>3?arguments[3]:void 0,M=arguments.length>4?arguments[4]:void 0,S=r&&r.height||101,O=r&&r.width||101,E=[S,O],k=0,T=i(Math.ceil(s.zoom),0,21,96),L=a.latlng.lng,A=L-360*Math.floor(L/360+.5),P={x:A,y:a.latlng.lat},D=u(P,"EPSG:4326",s.projection),C=l(D,T,k,E,null),I=e.name;e.queryLayers&&(I=e.queryLayers.join(","));var R=h(j),Y=p({layerFilter:e.layerFilter,filterObj:e.filterObj,params:_({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:I,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:S,width:O,srs:c(s.projection)||"EPSG:4326",bbox:C.minx+","+C.miny+","+C.maxx+","+C.maxy,feature_count:g,info_format:w,ENV:R},_({},Y)),e),metadata:{title:f(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:x,featureInfo:M},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,r){function n(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 o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var r=e.length,n=e.indexOf("(",t[0].length);if(n>-1)for(var o=1;n0;)switch(n++,e.charAt(n)){case"(":o++;break;case")":o--}return[e.substr(0,n+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},l={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},f=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},p=function(e,t){var r,n,o=t.length;for(r=0;r0&&d[t[t.length-1].type]<=f;)a.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)a.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&a.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)a.push(t.pop());var p=function e(){var t=a.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":a.pop();var d=e(),f=e();return{property:e(),lowerBoundary:f,upperBoundary:d,type:l.BETWEEN};case"COMPARISON":var p=e();return{property:e(),value:p,type:l[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:l[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),_=e(),y=e(),b=e(),v=e();return{type:n,property:v,value:[b,y,_,m]};case"INTERSECTS":var g=e(),j=e();return{type:r,property:j,value:g};case"WITHIN":var w=e(),x=e();return{type:i,property:x,value:w};case"CONTAINS":var M=e(),S=e();return{type:o,property:S,value:M};case"DWITHIN":var O=e(),E=e(),k=e();return{type:s,value:E,property:k,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(a.length>0){for(var h="Remaining tokens after building AST: \n",m=a.length-1;m>=0;m--)h+=a[m].type+": "+a[m].text+"\n";throw new Error(h)}return p};e.exports={read:function(e){return h(function(e){var t,r=[],n=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(n=(t=p(n,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);r.push(t)}while("END"!==t.type);return r}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,r){function n(e){return(n="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)}var o=r("./MapStore2/web/client/utils/ogc/Filter/operators.js"),s=o.logical,i=o.spatial,a=o.comparison,u=o.literal,l=o.propertyName,c=o.valueReference,d=o.distance,f=o.lower,p=o.upper,h=r("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,_=h.fidFilter,y=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,r=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",g=function(e){return y(v,e)},j=function(e){return"object"===n(e)&&Date,u(r,e)},w=0===b.indexOf("2.")?c:l;return{filter:m.bind(null,r),fidFilter:_.bind(null,r),and:s.and.bind(null,r),or:s.or.bind(null,r),not:s.not.bind(null,r),property:function(e){return{equalTo:function(t){return a.equal(r,w(r,e),j(t))},greaterThen:function(t){return a.greater(r,w(r,e),j(t))},greaterThenOrEqualTo:function(t){return a.greaterOrEqual(r,w(r,e),j(t))},lessThen:function(t){return a.less(r,w(r,e),j(t))},lessThenOrEqualTo:function(t){return a.lessOrEqual(r,w(r,e),j(t))},notEqualTo:function(t){return a.notEqual(r,w(r,e),j(t))},between:function(t,n){return a.between(r,w(r,e),f(r,j(t)),p(r,j(n)))},like:function(t,n){return a.like(r,w(r,e),j(t),n)},ilike:function(t,n){return a.ilike(r,w(r,e),j(t),n)},isNull:function(){return a.isNull(r,w(r,e))},intersects:function(t){return i.intersects(r,w(r,e),g(t))},within:function(t){return i.within(r,w(r,e),g(t))},dwithin:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return i.dwithin(r,w(r,e),g(t),d(r,n,o))},contains:function(t){return i.contains(r,w(r,e),g(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return r(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:r}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var o=r.type,s=r.filters,c=void 0===s?[]:s,d=r.value,f=r.property,p=r.lowerBoundary,h=r.upperBoundary;return i(u,o)?t[o].apply(t,n(c.map(e(t)))):t.property(f)[l[o]](a(d)?p:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var r={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},n={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},s=function(e,t,r){return t(e,Array.isArray(r)?r.join(""):r)},i={and:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.AND,[t].concat(o)):s(e,n.AND,t)},or:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.OR,[t].concat(o)):s(e,n.OR,t)},not:function(e,t){return s(e,n.NOT,t)},nor:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.NOR,[t].concat(o)):s(e,n.NOR,t)}},a={intersects:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),o=1;o"],n)},less:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],n)},lessOrEqual:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o"],n)},between:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<"],n)},like:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(r,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:i,spatial:a,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},s=function(e){if(e.length>=3){var t=e[0],r=e[e.length-1];if(t[0]!==r[0]||t[1]!==r[1])return e.concat([e[0]])}return e},i=function(e,t,r){var n='':">",n+=o(r)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",n+=""},a=function(e,t,r){var i=o(r),a="':">",(e.length&&n(e[0])&&e[0].length&&n(e[0][0])?e:[e]).forEach((function(e,t){var r=s(e).map((function(e){return e[0]+(i?",":" ")+e[1]})),n=i?"outerBoundaryIs":"exterior",o=i?"innerBoundaryIs":"exterior";a+=(t<1?"":"")+""+(i?"":"")+r.join(" ")+(i?"":"")+""+(t<1?"":"")})),a+=""},u=function(e,t,r){var n=o(r),s="':">";var i=e.map((function(e){return e[0]+(n?",":" ")+e[1]}));return s+=(n?"":"")+i.join(" ")+(n?"":""),s+=""};e.exports={closePolygon:s,pointElement:i,polygonElement:a,lineStringElement:u,processOGCGeometry:function(e,t){var r="",n=t.projection||"EPSG:4326";switch(t.type){case"Point":r+=i(t.coordinates,n,e);break;case"MultiPoint":r+='',t.coordinates.forEach((function(t){t&&(r+="",r+=i(t,n,e),r+="")})),r+="";break;case"LineString":r+=u(t.coordinates,n,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",s="3.2"===e?"curveMember":"lineStringMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=u(t,n,e),r+="")})),r+="";break;case"Polygon":r+=a(t.coordinates,n,e);break;case"MultiPolygon":var l="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=a(t,n,e),r+="")})),r+=""}return r}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=n.head,s=n.get,i=function(e){return/[<>&'"]/.test(e)?""):e},a=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},l=function(e){return s(e,"featureTypes[0].properties")},c=function(e,t){return o((l(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},f=function(e){return 0===e.type.indexOf("gml:")},p=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,r=e.properties,n=arguments.length>1?arguments[1]:void 0;return p(f(n)?t:r[n.name],n)};e.exports={schemaLocation:d,isGeometryType:f,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=f(c(t,r));return o?e?a(n,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?i(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((l(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:l,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:a,isValid:function(e,t){return l(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,r){return p(e,c(t,r))},isValidValue:p}},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,r){"use strict";r.r(t),r.d(t,"registerType",(function(){return o})),r.d(t,"createLayer",(function(){return s})),r.d(t,"updateLayer",(function(){return i})),r.d(t,"removeLayer",(function(){return a})),r.d(t,"renderLayer",(function(){return u})),r.d(t,"isValid",(function(){return l})),r.d(t,"isSupported",(function(){return c})),r.d(t,"isCompatible",(function(){return d}));var n={},o=function(e,t){n[e]=t},s=function(e,t,r,o){var s=n[e];return s?s.create(t,r,o):null},i=function(e,t,r,o,s,i){var a=n[e];if(a&&a.update)return a.update(t,r,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var u=!1;o.params&&r.params?u=Object.keys(o.params).reduce((function(e,t){return r.params[t]!==o.params[t]||e}),!1):!o.params&&r.params&&(u=!0),u&&t.getSource().updateParams(r.params)}return null},a=function(e,t,r,o,s){var i=n[e];return i&&i.remove?i.remove(t,r,o,s):null},u=function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},l=function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},c=function(e){return!!n[e]},d=function(e,t){var r=n[e];return!r||!r.isCompatible||r.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:u,isValid:l,isSupported:c,isCompatible:d}},"./js/api.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/object-assign/index.js"),o=r.n(n),s=r("./MapStore2/node_modules/lodash/keyBy.js"),i=r.n(s),a=r("./MapStore2/node_modules/lodash/values.js"),u=r.n(a),l=r("./MapStore2/web/client/utils/ConfigUtils.js"),c=r("./MapStore2/web/client/utils/LocaleUtils.js"),d=r("./MapStore2/web/client/utils/LayersUtils.js"),f=r("./MapStore2/web/client/api/persistence/index.js"),p=r("./js/api/geonode.js"),h=r("./MapStore2/web/client/jsapi/MapStore2.js");r("./node_modules/react-widgets/dist/css/react-widgets.css"),r("./node_modules/react-select/dist/react-select.css");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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return i()(e,(function(e){return e.name||e}))};window.squashMS2PlugCfg=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce((function(r,n){return _(_({},r),{},y({},n,e[n].filter((function(e){var r=e.name||e;return-1===t.indexOf(r)}))))}),{})}},"./js/api/geonode.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return h})),r.d(t,"d",(function(){return m}));var n=r("./node_modules/rxjs/Rx.js"),o=r.n(n),s=r("./MapStore2/web/client/libs/ajax.js"),i=r.n(s),a=r("./MapStore2/web/client/utils/ConfigUtils.js");function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=Object(a.getConfigProp)("geonode_url")||"./";return i.a.post("".concat(n).concat(e,"/").concat(t,"/thumbnail"),r,{timeout:1e4})}(e,t,r)}))};t.a={getResource:function(){return o.a.Observable.empty()},createResource:function(e){var t=e.data,r=e.metadata,n=e.linkedResources,s=void 0===n?{}:n;return o.a.Observable.defer((function(){return f(t,r,s)})).pluck("data").do((function(e){return window.location.href="".concat(Object(a.getConfigProp)("geonode_url"),"maps/").concat(e.id,"/edit")})).filter((function(){return!1}))},updateResource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.data;return o.a.Observable.defer((function(){return d(t,{id:t,data:r})})).switchMap((function(e){return o.a.Observable.of(e)})).pluck("data").map((function(e){return e.id}))},deleteResource:function(){return o.a.Observable.empty()},layerEditPermissions:p,styleEditPermissions:h,updateThumb:m}},"./js/components lazy recursive ^\\.\\/.*\\/ArcGisMapServer$":function(e,t,r){var n={"./leaflet/ArcGisMapServer":["./js/components/leaflet/ArcGisMapServer.js",26],"./openlayers/ArcGisMapServer":["./js/components/openlayers/ArcGisMapServer.js",3,5,25]};function o(e){if(!r.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then((function(){return r(o)}))}o.keys=function(){return Object.keys(n)},o.id="./js/components lazy recursive ^\\.\\/.*\\/ArcGisMapServer$",e.exports=o},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},"./node_modules/@carnesen/checks/lib/index.js":function(e,t,r){"use strict";function n(e,t,r){var n=/^[aeiou]$/i.test(r)?"an":"a";return new Error('Expected argument "'+t+'" to be '+n+" "+r+". Got "+e)}function o(e){return Array.isArray(e)}function s(e){return"boolean"==typeof e}function i(e){return!p(e)}function a(e){return c(e)&&0===Object.keys(e).length&&e.constructor===Object}function u(e){return"function"==typeof e}function l(e){return"number"==typeof e&&!isNaN(e)}function c(e){return e===Object(e)}function d(e){return l(e)&&e>0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=u,t.isNumber=l,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw n(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw n(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw n(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw n(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!u(e))throw n(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw n(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw n(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw n(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw n(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw n(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw n(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},j.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(v.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},j.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},j.prototype.number=function(e){if(!g.test(e)){if(v.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},j.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},j.prototype.keyword=function(e){if(b.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!v.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},j.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(g.test(e))return this.word=e,void(this.state=3);if(!v.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},j.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function n(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",M],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",M],["x0","false_easting",n],["y0","false_northing",n],["long0","central_meridian",M],["lat0","latitude_of_origin",M],["lat0","standard_parallel_1",M],["lat1","standard_parallel_1",M],["lat2","standard_parallel_2",M],["azimuth","Azimuth"],["alpha","azimuth",M],["srsCode","name"]].forEach((function(t){return r=e,o=(n=t)[0],s=n[1],void(!(o in r)&&s in r&&(r[o]=r[s],3===n.length&&(r[o]=n[2](r[o]))));var r,n,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=M(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function O(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?O[e]=h(arguments[1]):O[e]=S(arguments[1]):O[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?O.apply(t,e):O(e)}));if("string"==typeof e){if(e in O)return O[e]}else"EPSG"in e?O["EPSG:"+e.EPSG]=e:"ESRI"in e?O["ESRI:"+e.ESRI]=e:"IAU2000"in e?O["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(O);var E=O;var k=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var T=["3857","900913","3785","102113"];var L=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in E}(e))return E[e];if(function(e){return k.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=S(e);if(function(e){var t=p(e,"authority");if(t){var r=p(t,"epsg");return r&&T.indexOf(r)>-1}}(t))return E["EPSG:3857"];var r=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return r?h(r):t}return function(e){return"+"===e[0]}(e)?h(e):void 0},A=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},P=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},D=function(e){return e<0?-1:1},C=function(e){return Math.abs(e)<=l?e:e-D(e)*u},I=function(e,t,r){var n=e*r,s=.5*e;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(o-t))/n},R=function(e,t){for(var r,n,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(i),i+=n=o-2*Math.atan(t*Math.pow((1-r)/(1+r),s))-i,Math.abs(n)<=1e-10)return i;return-9999};function Y(e){return e}var N=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,s=e.y;if(s*i>90&&s*i<-90&&n*i>180&&n*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*C(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var u=Math.sin(s),l=I(this.e,s,u);t=this.x0+this.a*this.k0*C(n-this.long0),r=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,s=e.y-this.y0;if(this.sphere)r=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(r=R(this.e,i)))return null}return t=C(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Y,inverse:Y,names:["longlat","identity"]}],F={},U=[];function H(e,t){var r=U.length;return e.names?(U[r]=e,e.names.forEach((function(e){F[e.toLowerCase()]=r})),this):(console.log(t),!0)}var B={start:function(){N.forEach(H)},add:H,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==F[t]&&U[F[t]]?U[F[t]]:void 0}},W={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},z=W.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};W.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var G={};G.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},G.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},G.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},G.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},G.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},G.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},G.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},G.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},G.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},G.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},G.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},G.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},G.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},G.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},G.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},G.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},G.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var q=function(e,t,r,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=n,a.datum_params[4]*=n,a.datum_params[5]*=n,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=r,a.b=o,a.es=s,a.ep2=i,a};function V(e,t){if(!(this instanceof V))return new V(e);t=t||function(e){if(e)throw e};var r=L(e);if("object"==typeof r){var n=V.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var o=p(G,r.datumCode);o&&(r.datum_params=o.towgs84?o.towgs84.split(","):null,r.ellps=o.ellipse,r.datumName=o.datumName?o.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84";var s,i,a,u,l,c,d,f=function(e,t,r,n,o){if(!e){var s=p(W,n);s||(s=z),e=s.a,t=s.b,r=s.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:r,sphere:o}}(r.a,r.b,r.rf,r.ellps,r.sphere),h=(s=f.a,i=f.b,f.rf,a=r.R_A,c=((u=s*s)-(l=i*i))/u,d=0,a?(u=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(u-l)/l}),m=r.datum||q(r.datumCode,r.datum_params,f.a,f.b,h.es,h.ep2);A(this,r),A(this,n),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=h.es,this.e=h.e,this.ep2=h.ep2,this.datum=m,this.init(),t(null,this)}else t(e)}else t(e)}V.projections=B,V.projections.start();var K=V;function J(e){return 1===e||2===e}var $=function(e,t,r){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?r:e.es!==t.es||e.a!==t.a||J(e.datum_type)||J(t.datum_type)?(r=function(e,t,r){var n,s,i,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-o&&l>-1.001*o)l=-o;else if(l>o&&l<1.001*o)l=o;else if(l<-o||l>o)return null;return u>Math.PI&&(u-=2*Math.PI),s=Math.sin(l),a=Math.cos(l),i=s*s,{x:((n=r/Math.sqrt(1-t*i))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*s}}(r,e.es,e.a),J(e.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(2===t){var n=r[0],o=r[1],s=r[2],i=r[3],a=r[4],u=r[5],l=r[6];return{x:l*(e.x-u*e.y+a*e.z)+n,y:l*(u*e.x+e.y-i*e.z)+o,z:l*(-a*e.x+i*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),J(t.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(2===t){var n=r[0],o=r[1],s=r[2],i=r[3],a=r[4],u=r[5],l=r[6],c=(e.x-n)/l,d=(e.y-o)/l,f=(e.z-s)/l;return{x:c+u*d-a*f,y:-u*c+d+i*f,z:a*c-i*d+f}}}(r,t.datum_type,t.datum_params)),function(e,t,r,n){var s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g=e.x,j=e.y,w=e.z?e.z:0;if(s=Math.sqrt(g*g+j*j),i=Math.sqrt(g*g+j*j+w*w),s/r<1e-12){if(b=0,i/r<1e-12)return o,v=-n,{x:e.x,y:e.y,z:e.z}}else b=Math.atan2(j,g);a=w/i,f=(u=s/i)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=a*l,y=0;do{y++,c=t*(d=r/Math.sqrt(1-t*p*p))/(d+(v=s*f+w*p-d*(1-t*p*p))),_=(m=a*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*f-(h=u*(1-c)*l)*p,f=h,p=m}while(_*_>1e-24&&y<30);return{x:b,y:Math.atan(m/Math.abs(h)),z:v}}(r,t.es,t.a,t.b)):r},X=function(e,t,r){var n,o,s,i=r.x,a=r.y,u=r.z||0,l={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==r.z)switch(0===s?(n=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(n=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(n=u,o="z"),e.axis[s]){case"e":l[o]=n;break;case"w":l[o]=-n;break;case"n":l[o]=n;break;case"s":l[o]=-n;break;case"u":void 0!==r[o]&&(l.z=n);break;case"d":void 0!==r[o]&&(l.z=-n);break;default:return null}return l},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function Z(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,r){var n;return Array.isArray(r)&&(r=Q(r)),function(e){Z(e.x),Z(e.y)}(r),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(r=ee(e,n=new K("WGS84"),r),e=n),"enu"!==e.axis&&(r=X(e,!1,r)),"longlat"===e.projName?r={x:r.x*s,y:r.y*s}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=$(e.datum,t.datum,r),t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y}),"longlat"===t.projName?r={x:r.x*i,y:r.y*i}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter})),"enu"!==t.axis?X(t,!0,r):r}var te=K("WGS84");function re(e,t,r){var n,o,s;return Array.isArray(r)?(n=ee(e,t,r),3===r.length?[n.x,n.y,n.z]:[n.x,n.y]):(o=ee(e,t,r),2===(s=Object.keys(r)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=r[e])})),o)}function ne(e){return e instanceof K?e:e.oProj?e.oProj:K(e)}var oe=function(e,t,r){e=ne(e);var n,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=te,o=!0),t=ne(t),r?re(e,t,r):(n={forward:function(r){return re(e,t,r)},inverse:function(r){return re(t,e,r)}},o&&(n.oProj=t),n)},se=73,ie=79,ae={forward:ue,inverse:function(e){var t=fe(me(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:le};function ue(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,h=e.northing,m=e.zoneNumber,_=he(m),y=Math.floor(p/1e5),b=Math.floor(h/1e5)%20,o=y,s=b,i=_,a=i-1,u="AJSAJS".charCodeAt(a),l="AFAFAF".charCodeAt(a),c=u+o-1,d=l+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||use||(c>se||uie||(c>ie||u90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||lse||(d>se||lie||(d>ie||l86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+r.substr(r.length-5,t)+n.substr(n.length-5,t);var o,s,i,a,u,l,c,d,f;var p,h,m,_,y,b}(function(e){var t,r,n,o,s,i,a,u=e.lat,l=e.lon,c=6378137,d=ce(u),f=ce(l);a=Math.floor((l+180)/6)+1,180===l&&(a=60);u>=56&&u<64&&l>=3&&l<12&&(a=32);u>=72&&u<84&&(l>=0&&l<9?a=31:l>=9&&l<21?a=33:l>=21&&l<33?a=35:l>=33&&l<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),r=Math.tan(d)*Math.tan(d),n=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-r+n)*o*o*o/6+(5-18*r+r*r+72*n-.39089081163157013)*o*o*o*o*o/120)+5e5,h=.9996*(s+t*Math.tan(d)*(o*o/2+(5-r+9*n+4*n*n)*o*o*o*o/24+(61-58*r+r*r+600*n-2.2240339282485886)*o*o*o*o*o*o/720));u<0&&(h+=1e7);return{northing:Math.round(h),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(u)}}({lat:e[1],lon:e[0]}),t)}function le(e){var t=fe(me(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,r=e.easting,n=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,u,l,c,d,f,p=6378137,h=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=r-5e5,_=t;n<"N"&&(_-=1e7),c=6*(o-1)-180+3,f=(d=_/.9996/6367449.145945056)+(3*h/2-27*h*h*h/32)*Math.sin(2*d)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*d)+151*h*h*h/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=m/(.9996*s);var y=f-s*Math.tan(f)/u*(l*l/2-(5+3*i+10*a-4*a*a-.06065547077041606)*l*l*l*l/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*l*l*l*l*l*l/720);y=de(y);var b,v=(l-(1+2*i+a)*l*l*l/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*l*l*l*l*l/120)/Math.cos(f);if(v=c+de(v),e.accuracy){var g=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});b={top:g.lat,right:g.lon,bottom:y,left:v}}else b={lat:y,lon:v};return b}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function he(e){var t=e%6;return 0===t&&(t=6),t}function me(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>r)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;n=e.substring(s,s+=2);for(var u=he(i),l=function(e,t){var r="AJSAJS".charCodeAt(t-1),n=1e5,o=!1;for(;r!==e.charCodeAt(0);){if(++r===se&&r++,r===ie&&r++,r>90){if(o)throw"Bad character: "+e;r=65,o=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r="AFAFAF".charCodeAt(t-1),n=0,o=!1;for(;r!==e.charCodeAt(0);){if(++r===se&&r++,r===ie&&r++,r>86){if(o)throw"Bad character: "+e;r=65,o=!0}n+=1e5}return n}(n.charAt(1),u);c<_e(a);)c+=2e6;var d=r-s;if(d%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var f,p,h,m=d/2,_=0,y=0;return m>0&&(f=1e5/Math.pow(10,m),p=e.substring(s,s+m),_=parseFloat(p)*f,h=e.substring(s+m),y=parseFloat(h)*f),{easting:_+l,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function _e(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,r){if(!(this instanceof ye))return new ye(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(le(e))},ye.prototype.toMGRS=function(e){return ue([this.x,this.y],e)};var be=ye,ve=r("./node_modules/@geosolutions/proj4/package.json"),ge=.01068115234375,je=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*ge))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*ge)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},we=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},xe=function(e,t,r){for(var n=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(we(o,i,Math.cos(o),r)-e)*(a*Math.sqrt(a))*n,Math.abs(a)<1e-10)return o}return o};var Me={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=je(this.es),this.ml0=we(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,o=e.x,s=e.y,i=C(o-this.long0),a=Math.sin(s),u=Math.cos(s);if(this.es){var l=u*i,c=Math.pow(l,2),d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.abs(u)>1e-10?Math.tan(s):0,h=Math.pow(p,2),m=Math.pow(h,2);t=1-this.es*Math.pow(a,2),l/=Math.sqrt(t);var _=we(s,a,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-h+d+c/20*(5-18*h+m+14*d-58*h*d+c/42*(61+179*m-m*h-479*h)))))+this.x0,n=this.a*(this.k0*(_-this.ml0+a*i*l/2*(1+c/12*(5-h+9*d+4*f+c/30*(61+m-58*h+270*d-330*h*d+c/56*(1385+543*m-m*h-3111*h))))))+this.y0}else{var y=u*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(r=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,n=u*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(n))>=1){if(y-1>1e-10)return 93;n=0}else n=Math.acos(n);s<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=xe(t,this.es,this.en),Math.abs(r)1e-10?Math.tan(r):0,d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.pow(c,2),h=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var m=i*Math.sqrt(t)/this.k0,_=Math.pow(m,2);n=r-(t*=c)*_/(1-this.es)*.5*(1-_/12*(5+3*p-9*d*p+d-4*f-_/30*(61+90*p-252*d*p+45*h+46*d-_/56*(1385+3633*p+4095*h+1574*h*p)))),s=C(this.long0+m*(1-_/6*(1+2*p+d-_/20*(5+28*p+24*h+8*d*p+6*d-_/42*(61+662*p+1320*h+720*h*p))))/l)}else n=o*D(a),s=0;else{var y=Math.exp(i/this.k0),b=.5*(y-1/y),v=this.lat0+a/this.k0,g=Math.cos(v);t=Math.sqrt((1-Math.pow(g,2))/(1+Math.pow(b,2))),n=Math.asin(t),a<0&&(n=-n),s=0===b&&0===g?0:C(Math.atan2(b,g)+this.long0)}return e.x=s,e.y=n,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Se=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Oe=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},Ee=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/(Oe(1,t)+1))),e<0?-t:t},ke=function(e,t){for(var r,n=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)r=n*s-i+e[o],i=s,s=r;return t+r*Math.sin(2*t)},Te=function(e,t,r){for(var n,o,s=Math.sin(t),i=Math.cos(t),a=Se(r),u=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(r),l=2*i*u,c=-2*s*a,d=e.length-1,f=e[d],p=0,h=0,m=0;--d>=0;)n=h,o=p,f=l*(h=f)-n-c*(p=m)+e[d],m=c*h-o+l*p;return[(l=s*u)*f-(c=i*a)*m,l*m+c*f]};var Le={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=.6650675310896665*r;var n=ke(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)r=n*s-i+e[o],i=s,s=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=C(e.x-this.long0),r=e.y;r=ke(this.cbg,r);var n=Math.sin(r),o=Math.cos(r),s=Math.sin(t),i=Math.cos(t);r=Math.atan2(n,i*o),t=Math.atan2(s*o,Oe(n,o*i)),t=Ee(Math.tan(t));var a,u,l=Te(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(a=1/0,u=1/0),e.x=a,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var s=Te(this.utg,2*o,2*n);o+=s[0],n+=s[1],n=Math.atan(Se(n));var i=Math.sin(o),a=Math.cos(o),u=Math.sin(n),l=Math.cos(n);o=Math.atan2(i*l,Oe(u,l*a)),n=Math.atan2(u,l*a),t=C(n+this.long0),r=ke(this.cgb,o)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var Ae={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(C(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Le.init.apply(this),this.forward=Le.forward,this.inverse=Le.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Pe=function(e,t){return Math.pow((1-e)/(1+e),t)};var De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Pe(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+a),this.C)*Pe(this.e*Math.sin(r),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+a)/this.K,1/this.C),s=20;s>0&&(r=2*Math.atan(n*Pe(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(r-e.y)<1e-14));--s)e.y=r;return s?(e.x=t,e.y=r,e):null},names:["gauss"]};var Ce={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,o;return e.x=C(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=o*r*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),r=Math.cos(i),o=Math.asin(r*this.sinc0+e.y*t*this.cosc0/s),n=Math.atan2(e.x*t,s*this.cosc0*r-e.y*this.sinc0*t)}else o=this.phic0,n=0;return e.x=n,e.y=o,De.inverse.apply(this,[e]),e.x=C(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Ie={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+D(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/I(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=P(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,s,i,a,u=e.x,l=e.y,c=Math.sin(l),d=Math.cos(l),f=C(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=1e-10&&Math.abs(l+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(r=2*Math.atan(this.ssfn_(l,c,this.e))-o,s=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=1e-10?(i=I(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*n-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,r,n,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,r=this.lat0,a<=1e-10?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?C(this.long0+Math.atan2(e.x,-1*e.y)):C(this.long0+Math.atan2(e.x,e.y)):C(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*R(this.e,n),t=this.con*C(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=C(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),r=-1*R(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,r){return t*=r,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*r)}};var Re={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,o=2*n-Math.pow(n,2),s=this.e=Math.sqrt(o);this.R=this.k0*r*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,o=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,o=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(n)),i=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,u=0,l=s,c=-1e3,d=0;Math.abs(l-c)>1e-7;){if(++d>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=a,e.y=l,e},names:["somerc"]};var Ye={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),r=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-r*r);var n,o,s=I(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-r*r));if(i*i<1&&(i=1),isNaN(this.longc)){var a=I(this.e,this.lat1,Math.sin(this.lat1)),u=I(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var l=Math.pow(a,this.bl),c=Math.pow(u,this.bl);o=.5*((n=this.el/l)-1/n);var d=(this.el*this.el-c*l)/(this.el*this.el+c*l),f=(c-l)/(c+l),p=C(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=C(this.long0);var h=C(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*h)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else n=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=n*Math.pow(s,this.bl),o=.5*(n-1/n),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,r,n,s=e.x,i=e.y,u=C(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)n=i>0?-1:1,r=this.al/this.bl*Math.log(Math.tan(a+n*this.gamma0*.5)),t=-1*n*o*this.al/this.bl;else{var l=I(this.e,i,Math.sin(i)),c=this.el/Math.pow(l,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*u),h=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;r=Math.abs(Math.abs(h)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-h)/(1+h))/this.bl,t=Math.abs(Math.cos(this.bl*u))<=1e-10?this.al*this.bl*u:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*u))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+r):(t-=this.uc,e.x=this.x0+r*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-r*Math.sin(this.alpha)),e},inverse:function(e){var t,r;this.no_rot?(r=e.y-this.y0,t=e.x-this.x0):(r=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var n=Math.exp(-1*this.bl*r/this.al),s=.5*(n-1/n),i=.5*(n+1/n),a=Math.sin(this.bl*t/this.al),u=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,l=Math.pow(this.el/Math.sqrt((1+u)/(1-u)),1/this.bl);return Math.abs(u-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(u+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=R(this.e,l),e.x=C(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Ne={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=P(this.e,t,r),o=I(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=P(this.e,s,i),u=I(this.e,this.lat2,s),l=I(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(n/a)/Math.log(o/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=1e-10&&(r=D(r)*(o-2e-10));var n,s,i=Math.abs(Math.abs(r)-o);if(i>1e-10)n=I(this.e,r,Math.sin(r)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((i=r*this.ns)<=0)return null;s=0}var a=this.ns*C(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,s,i,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(s=R(this.e,n)))return null}else s=-o;return i=C(l/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Fe={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y,c=C(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),s=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,o,s,i,a,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(o)),r=Math.asin(Math.cos(n)*Math.sin(o)/Math.cos(t)),e.x=this.long0-r/this.alfa,i=t,a=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,l+=1}while(0===a&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},Ue=function(e,t,r,n,o){return e*o-t*Math.sin(2*o)+r*Math.sin(4*o)-n*Math.sin(6*o)},He=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},Be=function(e){return.375*e*(1+.25*e*(1+.46875*e))},We=function(e){return.05859375*e*e*(1+.75*e)},ze=function(e){return e*e*e*(35/3072)},Ge=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},qe=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t};var $e={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Je(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Je(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,s,i,u,l,c,d,f,p=e.x,h=e.y;if(p=C(p-this.long0),this.sphere){if(i=Math.sin(h),f=Math.cos(h),n=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+f*n:1+this.sinph0*i+this.cosph0*f*n)<=1e-10)return null;t=(r=Math.sqrt(2/r))*f*Math.sin(p),r*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.phi0)<1e-10)return null;r=a-.5*h,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(p),r*=n}}else{switch(l=0,c=0,d=0,n=Math.cos(p),s=Math.sin(p),i=Math.sin(h),u=Je(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=u/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:d=1+this.sinb1*l+this.cosb1*c*n;break;case this.EQUIT:d=1+c*n;break;case this.N_POLE:d=o+h,u=this.qp-u;break;case this.S_POLE:d=h-o,u=this.qp+u}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),r=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*l-this.sinb1*c*n):(d=Math.sqrt(2/(1+c*n)))*l*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:u>=0?(t=(d=Math.sqrt(u))*s,r=n*(this.mode===this.S_POLE?d:-d)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,s,i,a,u,l,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var h,m=0,_=0;if((r=.5*(h=Math.sqrt(f*f+p*p)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(_=Math.sin(r),m=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=1e-10?0:Math.asin(p*_/h),f*=_,p=m*h;break;case this.OBLIQ:r=Math.abs(h)<=1e-10?this.phi0:Math.asin(m*this.sinph0+p*_*this.cosph0/h),f*=_*this.cosph0,p=(m-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:p=-p,r=o-r;break;case this.S_POLE:r-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),n=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(u=n*this.sinb1+p*s*this.cosb1/a,i=this.qp*u,p=a*this.cosb1*n-p*this.sinb1*s):(u=p*s/a,i=this.qp*u,p=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;u=1-i/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(f,p),l=Math.asin(u),c=this.apa,d=l+l,r=l+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=C(this.long0+t),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Xe=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=P(this.e3,this.sin_po,this.cos_po),this.qs1=Je(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=P(this.e3,this.sin_po,this.cos_po),this.qs2=Je(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Je(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Je(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*C(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),o=0,0!==t&&(o=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,i=this.phi1z(this.e3,r)),s=C(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,o,s,i=Xe(.5*t);if(e<1e-10)return i;for(var a=e*e,u=1;u<=25;u++)if(i+=s=.5*(o=1-(n=e*(r=Math.sin(i)))*n)*o/Math.cos(i)*(t/(1-a)-r/o+.5/e*Math.log((1-n)/(1+n))),Math.abs(s)<=1e-7)return i;return null}};var Ze={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y;return n=C(u-this.long0),t=Math.sin(l),r=Math.cos(l),o=Math.cos(n),1,(s=this.sin_p14*t+this.cos_p14*r*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*r*Math.sin(n)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*o)/s):(i=this.x0+this.infinity_dist*r*Math.sin(n),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*o)),e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),r=Math.sin(o),n=Math.cos(o),i=Xe(n*this.sin_p14+e.y*r*this.cos_p14/t),s=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),s=C(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,o=e.y,s=C(n-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Je(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,r=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=C(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*o:o;for(var n,s,i,a,u=Math.asin(.5*t),l=0;l<30;l++)if(s=Math.sin(u),i=Math.cos(u),a=e*s,u+=n=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=C(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=C(t-this.long0),o=qe(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,r=e.y;return e.x=C(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=qe(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var rt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Be(this.es),this.e2=We(this.es),this.e3=ze(this.es),this.ml0=this.a*Ue(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,o=e.x,s=e.y,i=C(o-this.long0);if(n=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(s),r=this.a*(qe(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,r=-1*this.ml0;else{var a=Ge(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(n),r=this.a*Ue(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,o,s,i,a,u,l;if(n=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=C(n/this.a+this.long0),r=0;else{var c;for(i=this.lat0+o/this.a,a=n*n/this.a/this.a+i*i,u=i,s=20;s;--s)if(u+=l=-1*(i*(u*(c=Math.tan(u))+1)-u-.5*(u*u+a)*c)/((u-i)/c-1),Math.abs(l)<=1e-10){r=u;break}t=C(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(o+this.ml0)<=1e-10)r=0,t=C(this.long0+n/this.a);else{var d,f,p,h,m;for(i=(this.ml0+o)/this.a,a=n*n/this.a/this.a+i*i,u=i,s=20;s;--s)if(m=this.e*Math.sin(u),d=Math.sqrt(1-m*m)*Math.tan(u),f=this.a*Ue(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(i*(d*(h=f/this.a)+1)-h-.5*d*(h*h+a))/(this.es*Math.sin(2*u)*(h*h+a-2*i*h)/(4*d)+(i-h)*(d*p-2/Math.sin(2*u))-p),Math.abs(l)<=1e-10){r=u;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=C(this.long0+Math.asin(n*d/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},names:["Polyconic","poly"]};var nt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,o=e.y-this.lat0,s=r-this.long0,i=o/n*1e-5,a=s,u=1,l=0;for(t=1;t<=10;t++)u*=i,l+=this.A[t]*u;var c,d=l,f=a,p=1,h=0,m=0,_=0;for(t=1;t<=6;t++)c=h*d+p*f,p=p*d-h*f,h=c,m=m+this.B_re[t]*p-this.B_im[t]*h,_=_+this.B_im[t]*p+this.B_re[t]*h;return e.x=_*this.a+this.x0,e.y=m*this.a+this.y0,e},inverse:function(e){var t,r,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,u=i/this.a,l=1,c=0,d=0,f=0;for(t=1;t<=6;t++)r=c*a+l*u,l=l*a-c*u,c=r,d=d+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p.999999999999&&(r=.999999999999),t=Math.asin(r);var n=C(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var o=Math.asin(r);return e.x=n,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Be(this.es),this.e2=We(this.es),this.e3=ze(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=P(this.e,this.sinphi,this.cosphi),this.ml1=Ue(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=P(this.e,this.sinphi,this.cosphi),this.ml2=Ue(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ue(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var o=Ue(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-o)}var s=this.ns*C(r-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==r&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=C(this.long0+s/this.ns),n=qe(this.g-r/this.a),e.x=o,e.y=n,e;var i=this.g-r/this.a;return n=Ve(i,this.e0,this.e1,this.e2,this.e3),o=C(this.long0+s/this.ns),e.x=o,e.y=n,e},names:["Equidistant_Conic","eqdc"]};var ut={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,s=e.y,i=C(n-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,r=this.y0);var a=Xe(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,r=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/i-i/Math.PI),l=u*u,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,h=f*(2/c-1),m=h*h,_=Math.PI*this.R*(u*(f-m)+Math.sqrt(l*(f-m)*(f-m)-(m+l)*(p-m)))/(m+l);i<0&&(_=-_),t=this.x0+_;var y=l+f;return _=Math.PI*this.R*(h*y-u*Math.sqrt((m+l)*(l+1)-y*y))/(m+l),r=s>=0?this.y0+_:this.y0-_,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,o,s,i,a,u,l,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(n=e.x/d)*n+(o=e.y/d)*o,d=3*(o*o/(u=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+n*n)*a*a/u/u/u-9*i*a/u/u)/27)/(l=(i-a*a/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,r=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI,t=Math.abs(n)<1e-10?this.long0:C(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(n*n-o*o)+s*s))/2/n),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var lt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,r,n,s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g,j,w,x,M=e.x,S=e.y,O=Math.sin(e.y),E=Math.cos(e.y),k=C(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-S)*Math.sin(k),e.y=this.y0-this.a*(o-S)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+S)*Math.sin(k),e.y=this.y0+this.a*(o+S)*Math.cos(k),e):(v=this.sin_p12*O+this.cos_p12*E*Math.cos(k),b=(y=Math.acos(v))/Math.sin(y),e.x=this.x0+this.a*b*E*Math.sin(k),e.y=this.y0+this.a*b*(this.cos_p12*O-this.sin_p12*E*Math.cos(k)),e):(t=He(this.es),r=Be(this.es),n=We(this.es),s=ze(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*Ue(t,r,n,s,o),a=this.a*Ue(t,r,n,s,S),e.x=this.x0+(i-a)*Math.sin(k),e.y=this.y0-(i-a)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*Ue(t,r,n,s,o),a=this.a*Ue(t,r,n,s,S),e.x=this.x0+(i+a)*Math.sin(k),e.y=this.y0+(i+a)*Math.cos(k),e):(u=O/E,l=Ge(this.a,this.e,this.sin_p12),c=Ge(this.a,this.e,O),d=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*E)),g=0===(f=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(k)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(k)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=l*g*(1-(j=g*g)*(_=(h=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*h)*(1-_)/6+(w=j*g)/8*(m=p*h)*(1-2*_)+(x=w*g)/120*(_*(4-7*_)-3*p*p*(1-7*_))-x*g/48*m),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,r,n,s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g,j,w,x;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return r=t/this.a,n=Math.sin(r),s=Math.cos(r),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Xe(s*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-o,i=Math.abs(u)<=1e-10?this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)):C(this.long0+Math.atan2(e.x*n,t*this.cos_p12*s-e.y*this.sin_p12*n))),e.x=i,e.y=a,e}return l=He(this.es),c=Be(this.es),d=We(this.es),f=ze(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*Ue(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ve((p-t)/this.a,l,c,d,f),i=C(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*Ue(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ve((t-p)/this.a,l,c,d,f),i=C(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),_=Math.atan2(e.x,e.y),h=Ge(this.a,this.e,this.sin_p12),y=Math.cos(_),v=-(b=this.e*this.cos_p12*y)*b/(1-this.es),g=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),x=1-v*(w=(j=t/h)-v*(1+v)*Math.pow(j,3)/6-g*(1+3*v)*Math.pow(j,4)/24)*w/2-j*w*w*w/6,m=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*y),i=C(this.long0+Math.asin(Math.sin(_)*Math.sin(w)/Math.cos(m))),a=Math.atan((1-this.es*x*this.sin_p12/Math.sin(m))*Math.tan(m)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y;return n=C(u-this.long0),t=Math.sin(l),r=Math.cos(l),o=Math.cos(n),1,((s=this.sin_p14*t+this.cos_p14*r*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*r*Math.sin(n),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*o)),e.x=i,e.y=a,e},inverse:function(e){var t,r,n,s,i,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Xe(t/this.a),n=Math.sin(r),s=Math.cos(r),a=this.long0,Math.abs(t)<=1e-10?(u=this.lat0,e.x=a,e.y=u,e):(u=Xe(s*this.sin_p14+e.y*n*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=C(this.long0+Math.atan2(e.x*n,t*this.cos_p14*s-e.y*this.sin_p14*n)),e.x=a,e.y=u,e))},names:["ortho"]},dt=1,ft=2,pt=3,ht=4,mt=5,_t=6,yt=1,bt=2,vt=3,gt=4;function jt(e,t,r,n){var s;return e<1e-10?(n.value=yt,s=0):(s=Math.atan2(t,r),Math.abs(s)<=a?n.value=yt:s>a&&s<=o+a?(n.value=bt,s-=o):s>o+a||s<=-(o+a)?(n.value=vt,s=s>=0?s-l:s+l):(n.value=gt,s+=o)),s}function wt(e,t){var r=e+t;return r<-l?r+=u:r>+l&&(r-=u),r}var xt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=mt:this.lat0<=-(o-a/2)?this.face=_t:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:ht:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,s,i,u,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===mt)s=o-t,r>=a&&r<=o+a?(d.value=yt,n=r-o):r>o+a||r<=-(o+a)?(d.value=bt,n=r>0?r-l:r+l):r>-(o+a)&&r<=-a?(d.value=vt,n=r+o):(d.value=gt,n=r);else if(this.face===_t)s=o+t,r>=a&&r<=o+a?(d.value=yt,n=-r+o):r=-a?(d.value=bt,n=-r):r<-a&&r>=-(o+a)?(d.value=vt,n=-r-o):(d.value=gt,n=r>0?-r+l:-r-l);else{var f,p,h,m,_,y;this.face===ft?r=wt(r,+o):this.face===pt?r=wt(r,+l):this.face===ht&&(r=wt(r,-o)),m=Math.sin(t),_=Math.cos(t),y=Math.sin(r),f=_*Math.cos(r),p=_*y,h=m,this.face===dt?n=jt(s=Math.acos(f),h,p,d):this.face===ft?n=jt(s=Math.acos(p),h,-f,d):this.face===pt?n=jt(s=Math.acos(-f),h,-p,d):this.face===ht?n=jt(s=Math.acos(-p),h,f,d):(s=n=0,d.value=yt)}return u=Math.atan(12/l*(n+Math.acos(Math.sin(n)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(u)*Math.cos(u))/(1-Math.cos(Math.atan(1/Math.cos(n))))),d.value===bt?u+=o:d.value===vt?u+=l:d.value===gt&&(u+=1.5*l),c.x=i*Math.cos(u),c.y=i*Math.sin(u),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,r,n,s,i,a,u,c,d,f,p,h,m={lam:0,phi:0},_={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?_.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(_.value=bt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(_.value=vt,t=t<0?t+l:t-l):(_.value=gt,t+=o),d=l/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(u=1-(n=Math.cos(t))*n*(s=Math.tan(r))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===mt)c=Math.acos(u),m.phi=o-c,_.value===yt?m.lam=a+o:_.value===bt?m.lam=a<0?a+l:a-l:_.value===vt?m.lam=a-o:m.lam=a;else if(this.face===_t)c=Math.acos(u),m.phi=c-o,_.value===yt?m.lam=-a+o:_.value===bt?m.lam=-a:_.value===vt?m.lam=-a-o:m.lam=a<0?-a-l:-a+l;else{var y,b,v;d=(y=u)*y,b=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*v)>=1?0:Math.sqrt(1-d),_.value===bt?(d=b,b=-v,v=d):_.value===vt?(b=-b,v=-v):_.value===gt&&(d=b,b=v,v=-d),this.face===ft?(d=y,y=-b,b=d):this.face===pt?(y=-y,b=-b):this.face===ht&&(d=y,y=b,b=-d),m.phi=Math.acos(-v)-o,m.lam=Math.atan2(b,y),this.face===ft?m.lam=wt(m.lam,-o):this.face===pt?m.lam=wt(m.lam,-l):this.face===ht&&(m.lam=wt(m.lam,+o))}return 0!==this.es&&(f=m.phi<0?1:0,p=Math.tan(m.phi),h=this.b/Math.sqrt(p*p+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),f&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Mt=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],St=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ot=i/5,Et=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var kt,Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=C(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*Ot);n<0?n=0:n>=18&&(n=17);var o={x:Et(Mt[n],r=i*(r-.08726646259971647*n))*t,y:Et(St[n],r)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=Mt[18][0],t.y=e.y<0?-o:o;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(St[r][0]>t.y)--r;else{if(!(St[r+1][0]<=t.y))break;++r}var n=St[r],i=5*(t.y-n[0])/(St[r+1][0]-n[0]);i=function(e,t,r,n){for(var o=t;n;--n){var s=e(o);if(o-=s,Math.abs(s)e[1]!=l>e[1]&&e[0]<(u-i)*(e[1]-a)/(l-a)+i&&(n=!n)}return n}var s=function(e,t,r){if("object"!=typeof(r=r||{}))throw new Error("options is invalid");var s=r.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=Object(n.a)(e),a=Object(n.b)(t),u=t.geometry?t.geometry.type:t.type,l=t.bbox;if(l&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,l))return!1;"Polygon"===u&&(a=[a]);for(var c=0,d=!1;ce[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t[0])&&(!(e[2]t[1])&&!(e[3]t?1:0}var a=function(e,t,r,n,o){!function e(t,r,n,o,i){for(;o>n;){if(o-n>600){var a=o-n+1,u=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*c/a+d)),p=Math.min(o,Math.floor(r+(a-u)*c/a+d));e(t,r,f,p,i)}var h=t[r],m=n,_=o;for(s(t,n,r),i(t[o],h)>0&&s(t,n,o);m<_;){for(s(t,m,_),m++,_--;i(t[m],h)<0;)m++;for(;i(t[_],h)>0;)_--}0===i(t[n],h)?s(t,n,_):(_++,s(t,_,o)),_<=r&&(n=_+1),r<=_&&(o=_-1)}}(e,t,r||0,n||e.length-1,o||i)};function u(e,t){if(!(this instanceof u))return new u(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function l(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,t,r,n,o){for(var s,i=[t,r];i.length;)(r=i.pop())-(t=i.pop())<=n||(s=t+Math.ceil((r-t)/n/2)*n,a(e,s,t,r,o),i.push(t,s,s,r))}u.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!b(e,t))return r;for(var o,s,i,a,u=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var r=e[t],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);var s=this._chooseSplitIndex(r,o,n),i=v(r.children.splice(s,r.children.length-s));i.height=r.height,i.leaf=r.leaf,c(r,this.toBBox),c(i,this.toBBox),t?e[t-1].children.push(i):this._splitRoot(r,i)},_splitRoot:function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var n,o,s,i,a,u,l,c,f,p,h,_,y,b;for(u=l=1/0,n=t;n<=r-t;n++)o=d(e,0,n,this.toBBox),s=d(e,n,r,this.toBBox),f=o,p=s,h=void 0,_=void 0,y=void 0,b=void 0,h=Math.max(f.minX,p.minX),_=Math.max(f.minY,p.minY),y=Math.min(f.maxX,p.maxX),b=Math.min(f.maxY,p.maxY),i=Math.max(0,y-h)*Math.max(0,b-_),a=m(o)+m(s),i=t;o--)s=e.children[o],f(u,e.leaf?i(s):s),l+=_(u);return l},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)f(t[n],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():c(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var j=u;function w(e){var t=[e[0],e[1]],r=[e[0],e[3]],n=[e[2],e[3]];return{type:"Feature",bbox:e,properties:{},geometry:{type:"Polygon",coordinates:[[t,[e[2],e[1]],n,r,t]]}}}function x(e){var t=[1/0,1/0,-1/0,-1/0];return Object(n.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]u?i:u,a>l?a:l]),r.push(c),n})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),Object(S.c)(t)};function E(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");if(!0===r.final)return function(e,t){var r=E(t,e);return r=(r+180)%360}(e,t);var n=Object(o.a)(e),s=Object(o.a)(t),i=Object(S.a)(n[0]),a=Object(S.a)(s[0]),u=Object(S.a)(n[1]),l=Object(S.a)(s[1]),c=Math.sin(a-i)*Math.cos(l),d=Math.cos(u)*Math.sin(l)-Math.sin(u)*Math.cos(l)*Math.cos(a-i);return Object(S.j)(Math.atan2(c,d))}var k=E;var T=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var n=r.units,s=Object(o.a)(e),i=Object(o.a)(t),a=Object(S.a)(i[1]-s[1]),u=Object(S.a)(i[0]-s[0]),l=Object(S.a)(s[1]),c=Object(S.a)(i[1]),d=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(l)*Math.cos(c);return Object(S.k)(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),n)};var L=function(e,t,r,n){if(n=n||{},!Object(S.e)(n))throw new Error("options is invalid");var s=n.units,i=n.properties,a=Object(o.a)(e),u=Object(S.a)(a[0]),l=Object(S.a)(a[1]),c=Object(S.a)(r),d=Object(S.f)(t,s),f=Math.asin(Math.sin(l)*Math.cos(d)+Math.cos(l)*Math.sin(d)*Math.cos(c)),p=u+Math.atan2(Math.sin(c)*Math.sin(d)*Math.cos(l),Math.cos(d)-Math.sin(l)*Math.sin(f)),h=Object(S.j)(p),m=Object(S.j)(f);return Object(S.h)([h,m],i)};function A(e,t){var r=Object(o.b)(e),n=Object(o.b)(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var s=r[0][0],i=r[0][1],a=r[1][0],u=r[1][1],l=n[0][0],c=n[0][1],d=n[1][0],f=n[1][1],p=(f-c)*(a-s)-(d-l)*(u-i),h=(d-l)*(i-c)-(f-c)*(s-l),m=(a-s)*(i-c)-(u-i)*(s-l);if(0===p)return null;var _=h/p,y=m/p;if(_>=0&&_<=1&&y>=0&&y<=1){var b=s+_*(a-s),v=i+_*(u-i);return Object(S.h)([b,v])}return null}var P=function(e,t){var r={},s=[];if("LineString"===e.type&&(e=Object(S.b)(e)),"LineString"===t.type&&(t=Object(S.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=A(e,t);return i&&s.push(i),Object(S.c)(s)}var a=M();return a.load(O(t)),Object(n.c)(O(e),(function(e){Object(n.c)(a.search(e),(function(t){var n=A(e,t);if(n){var i=Object(o.b)(n).join(",");r[i]||(r[i]=!0,s.push(n))}}))})),Object(S.c)(s)};var D=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var s=e.geometry?e.geometry.type:e.type;if("LineString"!==s&&"MultiLineString"!==s)throw new Error("lines must be LineString or MultiLineString");var i=Object(S.h)([1/0,1/0],{dist:1/0}),a=0;return Object(n.d)(e,(function(e){for(var n=Object(o.b)(e),s=0;s0&&((_=m.features[0]).properties.dist=T(t,_,r),_.properties.location=a+T(u,_,r)),u.properties.dist=0;n--)if(s[n]!==i[n])return!1;for(n=s.length-1;n>=0;n--)if(o=s[n],!Y(e[o],t[o],r))return!1;return typeof e==typeof t}(e,t,r))}function N(e){return null==e}function F(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function U(e,t){var r=Object(o.b)(t),n=Object(o.b)(e),s=n[0],i=n[n.length-1],a=e.geometry.coordinates;return Y(r[0],s)?a.unshift(r[1]):Y(r[0],i)?a.push(r[1]):Y(r[1],s)?a.unshift(r[0]):Y(r[1],i)&&a.push(r[0]),e}var H=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var s,i=r.tolerance||0,a=[],u=M();return u.load(O(e)),Object(n.e)(t,(function(e){var t=!1;Object(n.c)(u.search(e),(function(r){if(!1===t){var n=Object(o.b)(e).sort(),a=Object(o.b)(r).sort();Y(n,a)||(0===i?Object(C.a)(n[0],r)&&Object(C.a)(n[1],r):D(r,n[0]).properties.dist<=i&&D(r,n[1]).properties.dist<=i)?(t=!0,s=s?U(s,e):e):(0===i?Object(C.a)(a[0],e)&&Object(C.a)(a[1],e):D(e,a[0]).properties.dist<=i&&D(e,a[1]).properties.dist<=i)&&(s=s?U(s,r):r)}})),!1===t&&s&&(a.push(s),s=void 0)})),s&&a.push(s),Object(S.c)(a)};function B(e,t){var r=Object(o.b)(e),n=Object(o.b)(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var s=r[0][0],i=r[0][1],a=r[1][0],u=r[1][1],l=n[0][0],c=n[0][1],d=n[1][0],f=n[1][1],p=(f-c)*(a-s)-(d-l)*(u-i),h=(d-l)*(i-c)-(f-c)*(s-l),m=(a-s)*(i-c)-(u-i)*(s-l);if(0===p)return null;var _=h/p,y=m/p;if(_>=0&&_<=1&&y>=0&&y<=1){var b=s+_*(a-s),v=i+_*(u-i);return Object(S.h)([b,v])}return null}var W=function(e,t){var r={},s=[];if("LineString"===e.type&&(e=Object(S.b)(e)),"LineString"===t.type&&(t=Object(S.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=B(e,t);return i&&s.push(i),Object(S.c)(s)}var a=M();return a.load(O(t)),Object(n.c)(O(e),(function(e){Object(n.c)(a.search(e),(function(t){var n=B(e,t);if(n){var i=Object(o.b)(n).join(",");r[i]||(r[i]=!0,s.push(n))}}))})),Object(S.c)(s)},z=r("./node_modules/geojson-equality/index.js"),G=r.n(z);t.a=function(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");var r=Object(o.d)(e);if(r!==Object(o.d)(t))throw new Error("features must be of the same type");if("Point"===r)throw new Error("Point geometry not supported");if(new G.a({precision:6}).compare(e,t))return!1;var s=0;switch(r){case"MultiPoint":var i=Object(n.a)(e),a=Object(n.a)(t);i.forEach((function(e){a.forEach((function(t){e[0]===t[0]&&e[1]===t[1]&&s++}))}));break;case"LineString":case"MultiLineString":Object(n.e)(e,(function(e){Object(n.e)(t,(function(t){H(e,t).features.length&&s++}))}));break;case"Polygon":case"MultiPolygon":Object(n.e)(e,(function(e){Object(n.e)(t,(function(t){W(e,t).features.length&&s++}))}))}return s>0}},"./node_modules/@turf/boolean-point-on-line/main.es.js":function(e,t,r){"use strict";var n=r("./node_modules/@turf/invariant/main.es.js"),o=r("./node_modules/@turf/helpers/main.es.js");function s(e,t,r,n){var o=r[0],s=r[1],i=e[0],a=e[1],u=t[0],l=t[1],c=u-i,d=l-a;return 0==(r[0]-i)*d-(r[1]-a)*c&&(n?"start"===n?Math.abs(c)>=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o0?a<=s&&s=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o<=u:u<=o&&o<=i:d>0?a<=s&&s<=l:l<=s&&s<=a)}t.a=function(e,t,r){var i=(r=r||{}).ignoreEndVertices;if(!Object(o.e)(r))throw new Error("invalid options");if(!e)throw new Error("pt is required");if(!t)throw new Error("line is required");for(var a=Object(n.a)(e),u=Object(n.b)(t),l=0;lh&&(y>f&&_f&&yc&&(c=b)}var v=[];if(l&&c0&&Math.abs(w-r[j-1][0])>h){var x=parseFloat(r[j-1][0]),M=parseFloat(r[j-1][1]),S=parseFloat(r[j][0]),O=parseFloat(r[j][1]);if(x>-180&&x-180&&r[j-1][0]f&&x<180&&-180===S&&j+1f&&r[j-1][0]<180){g.push([180,r[j][1]]),j++,g.push([r[j][0],r[j][1]]);continue}if(xf){var E=x;x=S,S=E;var k=M;M=O,O=k}if(x>f&&S=180&&xf?180:-180,L]),(g=[]).push([r[j-1][0]>f?-180:180,L]),v.push(g)}else g=[],v.push(g);g.push([w,r[j][1]])}else g.push([r[j][0],r[j][1]])}}else{var A=[];v.push(A);for(var P=0;P1&&Object(n.d)(t[0])&&Object(n.d)(t[1]))return t;throw new Error("Coordinate is not a valid Point")}function s(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return function e(t){if(t.length>1&&Object(n.d)(t[0])&&Object(n.d)(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")}(t),t;throw new Error("No valid coordinates")}function i(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function a(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}},"./node_modules/@turf/line-intersect/index.js":function(e,t,r){var n=r("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=r("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js"),s=r("./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js"),i=r("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,a=r("./node_modules/@turf/line-intersect/node_modules/geojson-rbush/index.js"),u=n.point,l=n.featureCollection,c=o.featureEach;function d(e,t){var r=i(e),n=i(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var o=r[0][0],s=r[0][1],a=r[1][0],l=r[1][1],c=n[0][0],d=n[0][1],f=n[1][0],p=n[1][1],h=(p-d)*(a-o)-(f-c)*(l-s),m=(f-c)*(s-d)-(p-d)*(o-c),_=(a-o)*(s-d)-(l-s)*(o-c);if(0===h)return null;var y=m/h,b=_/h;return y>=0&&y<=1&&b>=0&&b<=1?u([o+y*(a-o),s+y*(l-s)]):null}e.exports=function(e,t){var r=[];if("LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var n=d(e,t);return n&&r.push(n),l(r)}var o=a();return o.load(s(t)),c(s(e),(function(e){c(o.search(e),(function(t){var n=d(e,t);n&&r.push(n)}))})),l(r)}},"./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js":function(e,t){function r(e,t,r,n){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(r&&4!==r.length)throw new Error("bbox must be an Array of 4 numbers");if(n&&-1===["string","number"].indexOf(typeof n))throw new Error("id must be a number or a string");var o={type:"Feature"};return n&&(o.id=n),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function n(e,t,n,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("Coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n,o)}function o(e,t,n,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),r||"kilometers")},convertArea:function(e,t,r){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var n=c[t||"meters"];if(!n)throw new Error("invalid original units");var o=c[r||"kilometers"];if(!o)throw new Error("invalid final units");return e/n*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},isNumber:h}},"./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js":function(e,t){function r(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return n(t),t;throw new Error("No valid coordinates")}function n(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return n(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,r){if(!t||!r)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0;n1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:r,containsNumber:n,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js":function(e,t,r){var n=r("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=r("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,s=r("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js").flattenEach,i=n.lineString,a=n.featureCollection;e.exports=function(e){if(!e)throw new Error("geojson is required");var t=[];return s(e,(function(e){!function(e,t){var r=[],n=e.geometry;switch(n.type){case"Polygon":r=o(n);break;case"LineString":r=[o(n)]}r.forEach((function(r){(function(e,t){var r=[];return e.reduce((function(e,n){var o,s,a,u,l,c,d=i([e,n],t);return d.bbox=(s=n,a=(o=e)[0],u=o[1],l=s[0],c=s[1],[al?a:l,u>c?u:c]),r.push(d),n})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),a(t)}},"./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js":function(e,t,r){"use strict";function n(e,t,r){if(null!==e){var o,s,i,a,u,l,c,d,f,p,h=0,m=0,_=e.type,y="FeatureCollection"===_,b="Feature"===_,v=y?e.features.length:1;for(o=0;oe[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t?1:0}return function(r,n,o,s,i){!function t(r,n,o,s,i){for(;s>o;){if(s-o>600){var a=s-o+1,u=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(o,Math.floor(n-u*c/a+d)),p=Math.min(s,Math.floor(n+(a-u)*c/a+d));t(r,n,f,p,i)}var h=r[n],m=o,_=s;for(e(r,o,n),i(r[s],h)>0&&e(r,o,s);m<_;){for(e(r,m,_),m++,_--;i(r[m],h)<0;)m++;for(;i(r[_],h)>0;)_--}0===i(r[o],h)?e(r,o,_):(_++,e(r,_,s)),_<=n&&(o=_+1),n<=_&&(s=_-1)}}(r,n,o||0,s||r.length-1,i||t)}}()},"./node_modules/@turf/line-intersect/node_modules/rbush/index.js":function(e,t,r){"use strict";e.exports=o,e.exports.default=o;var n=r("./node_modules/@turf/line-intersect/node_modules/quickselect/quickselect.js");function o(e,t){if(!(this instanceof o))return new o(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function s(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,t,r,o,s){for(var i,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=o||(i=t+Math.ceil((r-t)/o/2)*o,n(e,i,t,r,s),a.push(t,i,i,r))}o.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!h(e,t))return r;for(var o,s,i,a,u=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var r=e[t],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);var s=this._chooseSplitIndex(r,o,n),a=m(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,i(r,this.toBBox),i(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,i(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var n,o,s,i,u,l,c,f,p,h,m,_,y,b;for(l=c=1/0,n=t;n<=r-t;n++)o=a(e,0,n,this.toBBox),s=a(e,n,r,this.toBBox),p=o,h=s,m=void 0,_=void 0,y=void 0,b=void 0,m=Math.max(p.minX,h.minX),_=Math.max(p.minY,h.minY),y=Math.min(p.maxX,h.maxX),b=Math.min(p.maxY,h.maxY),i=Math.max(0,y-m)*Math.max(0,b-_),u=d(o)+d(s),i=t;o--)s=e.children[o],u(c,e.leaf?i(s):s),d+=f(c);return d},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)u(t[n],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():i(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},"./node_modules/@turf/meta/main.es.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return l}));var n=r("./node_modules/@turf/helpers/main.es.js");function o(e,t,r){if(null!==e)for(var n,s,i,a,u,l,c,d,f=0,p=0,h=e.type,m="FeatureCollection"===h,_="Feature"===h,y=m?e.features.length:1,b=0;b1?i(e,t):s(e[0],t)}e.exports=function(e){var t,r=(t=e).geometry?t.geometry.type:t.type,o=n(e),s=e.properties;if(!o.length)throw new Error("polygon must contain coordinates");switch(r){case"Polygon":return a([u(o,s)]);case"MultiPolygon":var i=[];return o.forEach((function(e){i.push(u(e,s))})),a(i);default:throw new Error("geom "+r+" not supported")}}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/helpers/index.js":function(e,t){function r(e,t,r,n){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(r&&4!==r.length)throw new Error("bbox must be an Array of 4 numbers");if(n&&-1===["string","number"].indexOf(typeof n))throw new Error("id must be a number or a string");var o={type:"Feature"};return n&&(o.id=n),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function n(e,t,n,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("Coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n,o)}function o(e,t,n,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),r||"kilometers")},convertArea:function(e,t,r){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var n=c[t||"meters"];if(!n)throw new Error("invalid original units");var o=c[r||"kilometers"];if(!o)throw new Error("invalid final units");return e/n*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},isNumber:h}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/invariant/index.js":function(e,t){function r(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return n(t),t;throw new Error("No valid coordinates")}function n(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return n(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,r){if(!t||!r)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0;n1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:r,containsNumber:n,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/asap/browser-asap.js":function(e,t,r){"use strict";var n=r("./node_modules/asap/browser-raw.js"),o=[],s=[],i=n.makeRequestCallFromTimer((function(){if(s.length)throw s.shift()}));function a(e){var t;(t=o.length?o.pop():new u).task=e,n(t)}function u(){this.task=null}e.exports=a,u.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(s.push(e),i())}finally{this.task=null,o[o.length]=this}}},"./node_modules/asap/browser-raw.js":function(e,t,r){"use strict";(function(t){function r(e){o.length||(n(),!0),o[o.length]=e}e.exports=r;var n,o=[],s=0;function i(){for(;s1024){for(var t=0,r=o.length-s;t=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(s)})),e.exports=u}).call(this,r("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,r){"use strict";var n=r("./node_modules/axios/lib/helpers/bind.js"),o=r("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r"']/g,N=RegExp(R.source),F=RegExp(Y.source),U=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,V=RegExp(q.source),K=/^\s+|\s+$/g,J=/^\s+/,$=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",me="["+pe+"]",_e="["+fe+"]",ye="\\d+",be="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",ge="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",je="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+ve+"|"+ge+")",Ee="(?:"+Se+"|"+ge+")",ke="(?:"+_e+"|"+je+")"+"?",Te="[\\ufe0e\\ufe0f]?"+ke+("(?:\\u200d(?:"+[we,xe,Me].join("|")+")[\\ufe0e\\ufe0f]?"+ke+")*"),Le="(?:"+[be,xe,Me].join("|")+")"+Te,Ae="(?:"+[we+_e+"?",_e,xe,Me,he].join("|")+")",Pe=RegExp("['’]","g"),De=RegExp(_e,"g"),Ce=RegExp(je+"(?="+je+")|"+Ae+Te,"g"),Ie=RegExp([Se+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Se,"$"].join("|")+")",Ee+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Se+Oe,"$"].join("|")+")",Se+"?"+Oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Le].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Ue={};Ue[S]=Ue[O]=Ue[E]=Ue[k]=Ue[T]=Ue[L]=Ue["[object Uint8ClampedArray]"]=Ue[A]=Ue[P]=!0,Ue[u]=Ue[l]=Ue[x]=Ue[c]=Ue[M]=Ue[d]=Ue[f]=Ue[p]=Ue[m]=Ue[_]=Ue[y]=Ue[b]=Ue[v]=Ue[g]=Ue[w]=!1;var He={};He[u]=He[l]=He[x]=He[M]=He[c]=He[d]=He[S]=He[O]=He[E]=He[k]=He[T]=He[m]=He[_]=He[y]=He[b]=He[v]=He[g]=He[j]=He[L]=He["[object Uint8ClampedArray]"]=He[A]=He[P]=!0,He[f]=He[p]=He[w]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,ze=parseInt,Ge="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ve=Ge||qe||Function("return this")(),Ke=t&&!t.nodeType&&t,Je=Ke&&"object"==typeof n&&n&&!n.nodeType&&n,$e=Je&&Je.exports===Ke,Xe=$e&&Ge.process,Qe=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,rt=Qe&&Qe.isRegExp,nt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function st(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function it(e,t,r,n){for(var o=-1,s=null==e?0:e.length;++o-1}function ft(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function Ct(e,t){for(var r=e.length;r--&&jt(t,e[r],0)>-1;);return r}function It(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Rt=Ot({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Yt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function Ft(e){return Re.test(e)}function Ut(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Ht(e,t){return function(r){return e(t(r))}}function Bt(e,t){for(var r=-1,n=e.length,o=0,s=[];++r",""":'"',"'":"'"});var Kt=function e(t){var r,n=(t=null==t?Ve:Kt.defaults(Ve.Object(),t,Kt.pick(Ve,Ne))).Array,o=t.Date,fe=t.Error,pe=t.Function,he=t.Math,me=t.Object,_e=t.RegExp,ye=t.String,be=t.TypeError,ve=n.prototype,ge=pe.prototype,je=me.prototype,we=t["__core-js_shared__"],xe=ge.toString,Me=je.hasOwnProperty,Se=0,Oe=(r=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ee=je.toString,ke=xe.call(me),Te=Ve._,Le=_e("^"+xe.call(Me).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=$e?t.Buffer:void 0,Ce=t.Symbol,Re=t.Uint8Array,Be=Ae?Ae.allocUnsafe:void 0,Ge=Ht(me.getPrototypeOf,me),qe=me.create,Ke=je.propertyIsEnumerable,Je=ve.splice,Xe=Ce?Ce.isConcatSpreadable:void 0,Qe=Ce?Ce.iterator:void 0,bt=Ce?Ce.toStringTag:void 0,Ot=function(){try{var e=es(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Jt=t.clearTimeout!==Ve.clearTimeout&&t.clearTimeout,$t=o&&o.now!==Ve.Date.now&&o.now,Xt=t.setTimeout!==Ve.setTimeout&&t.setTimeout,Qt=he.ceil,Zt=he.floor,er=me.getOwnPropertySymbols,tr=Ae?Ae.isBuffer:void 0,rr=t.isFinite,nr=ve.join,or=Ht(me.keys,me),sr=he.max,ir=he.min,ar=o.now,ur=t.parseInt,lr=he.random,cr=ve.reverse,dr=es(t,"DataView"),fr=es(t,"Map"),pr=es(t,"Promise"),hr=es(t,"Set"),mr=es(t,"WeakMap"),_r=es(me,"create"),yr=mr&&new mr,br={},vr=Es(dr),gr=Es(fr),jr=Es(pr),wr=Es(hr),xr=Es(mr),Mr=Ce?Ce.prototype:void 0,Sr=Mr?Mr.valueOf:void 0,Or=Mr?Mr.toString:void 0;function Er(e){if(zi(e)&&!Di(e)&&!(e instanceof Ar)){if(e instanceof Lr)return e;if(Me.call(e,"__wrapped__"))return ks(e)}return new Lr(e)}var kr=function(){function e(){}return function(t){if(!Wi(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Tr(){}function Lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jr(e,t,r,n,o,s){var i,a=1&t,l=2&t,f=4&t;if(r&&(i=o?r(e,n,o,s):r(e)),void 0!==i)return i;if(!Wi(e))return e;var w=Di(e);if(w){if(i=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!a)return bo(e,i)}else{var D=ns(e),C=D==p||D==h;if(Yi(e))return fo(e,a);if(D==y||D==u||C&&!o){if(i=l||C?{}:ss(e),!a)return l?function(e,t){return vo(e,rs(e),t)}(e,function(e,t){return e&&vo(t,ja(t),e)}(i,e)):function(e,t){return vo(e,ts(e),t)}(e,Gr(i,e))}else{if(!He[D])return o?e:{};i=function(e,t,r){var n=e.constructor;switch(t){case x:return po(e);case c:case d:return new n(+e);case M:return function(e,t){var r=t?po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case S:case O:case E:case k:case T:case L:case"[object Uint8ClampedArray]":case A:case P:return ho(e,r);case m:return new n;case _:case g:return new n(e);case b:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new n;case j:return o=e,Sr?me(Sr.call(o)):{}}var o}(e,D,a)}}s||(s=new Rr);var I=s.get(e);if(I)return I;s.set(e,i),Ji(e)?e.forEach((function(n){i.add(Jr(n,t,r,n,e,s))})):Gi(e)&&e.forEach((function(n,o){i.set(o,Jr(n,t,r,o,e,s))}));var R=w?void 0:(f?l?Vo:qo:l?ja:ga)(e);return at(R||e,(function(n,o){R&&(n=e[o=n]),Br(i,o,Jr(n,t,r,o,e,s))})),i}function $r(e,t,r){var n=r.length;if(null==e)return!n;for(e=me(e);n--;){var o=r[n],s=t[o],i=e[o];if(void 0===i&&!(o in e)||!s(i))return!1}return!0}function Xr(e,t,r){if("function"!=typeof e)throw new be(s);return gs((function(){e.apply(void 0,r)}),t)}function Qr(e,t,r,n){var o=-1,s=dt,i=!0,a=e.length,u=[],l=t.length;if(!a)return u;r&&(t=pt(t,Lt(r))),n?(s=ft,i=!1):t.length>=200&&(s=Pt,i=!1,t=new Ir(t));e:for(;++o-1},Dr.prototype.set=function(e,t){var r=this.__data__,n=Wr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new Pr,map:new(fr||Dr),string:new Pr}},Cr.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Cr.prototype.get=function(e){return Qo(this,e).get(e)},Cr.prototype.has=function(e){return Qo(this,e).has(e)},Cr.prototype.set=function(e,t){var r=Qo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Ir.prototype.add=Ir.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ir.prototype.has=function(e){return this.__data__.has(e)},Rr.prototype.clear=function(){this.__data__=new Dr,this.size=0},Rr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Rr.prototype.get=function(e){return this.__data__.get(e)},Rr.prototype.has=function(e){return this.__data__.has(e)},Rr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Dr){var n=r.__data__;if(!fr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Cr(n)}return r.set(e,t),this.size=r.size,this};var Zr=wo(un),en=wo(ln,!0);function tn(e,t){var r=!0;return Zr(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function rn(e,t,r){for(var n=-1,o=e.length;++n0&&r(a)?t>1?on(a,t-1,r,n,o):ht(o,a):n||(o[o.length]=a)}return o}var sn=xo(),an=xo(!0);function un(e,t){return e&&sn(e,t,ga)}function ln(e,t){return e&&an(e,t,ga)}function cn(e,t){return ct(t,(function(t){return Ui(e[t])}))}function dn(e,t){for(var r=0,n=(t=ao(t,e)).length;null!=e&&rt}function mn(e,t){return null!=e&&Me.call(e,t)}function _n(e,t){return null!=e&&t in me(e)}function yn(e,t,r){for(var o=r?ft:dt,s=e[0].length,i=e.length,a=i,u=n(i),l=1/0,c=[];a--;){var d=e[a];a&&t&&(d=pt(d,Lt(t))),l=ir(d.length,l),u[a]=!r&&(t||s>=120&&d.length>=120)?new Ir(a&&d):void 0}d=e[0];var f=-1,p=u[0];e:for(;++f=a)return u;var l=r[n];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,r)}))}function Dn(e,t,r){for(var n=-1,o=t.length,s={};++n-1;)a!==e&&Je.call(a,u,1),Je.call(e,u,1);return e}function In(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==s){var s=o;as(o)?Je.call(e,o,1):Zn(e,o)}}return e}function Rn(e,t){return e+Zt(lr()*(t-e+1))}function Yn(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Zt(t/2))&&(e+=e)}while(t);return r}function Nn(e,t){return js(ms(e,t,qa),e+"")}function Fn(e){return Nr(Ta(e))}function Un(e,t){var r=Ta(e);return Ms(r,Kr(t,0,r.length))}function Hn(e,t,r,n){if(!Wi(e))return e;for(var o=-1,s=(t=ao(t,e)).length,i=s-1,a=e;null!=a&&++os?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=n(s);++o>>1,i=e[s];null!==i&&!Xi(i)&&(r?i<=t:i=200){var l=t?null:No(e);if(l)return Wt(l);i=!1,o=Pt,u=new Ir}else u=t?[]:a;e:for(;++n=n?e:Gn(e,t,r)}var co=Jt||function(e){return Ve.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var r=e.length,n=Be?Be(r):new e.constructor(r);return e.copy(n),n}function po(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function ho(e,t){var r=t?po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function mo(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,s=Xi(e),i=void 0!==t,a=null===t,u=t==t,l=Xi(t);if(!a&&!l&&!s&&e>t||s&&i&&u&&!a&&!l||n&&i&&u||!r&&u||!o)return 1;if(!n&&!s&&!l&&e1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,i&&us(r[0],r[1],i)&&(s=o<3?void 0:s,o=1),t=me(t);++n-1?o[s?t[i]:i]:void 0}}function ko(e){return Go((function(t){var r=t.length,n=r,o=Lr.prototype.thru;for(e&&t.reverse();n--;){var i=t[n];if("function"!=typeof i)throw new be(s);if(o&&!a&&"wrapper"==Jo(i))var a=new Lr([],!0)}for(n=a?n:r;++n1&&v.reverse(),d&&la))return!1;var l=s.get(e),c=s.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,p=2&r?new Ir:void 0;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return at(a,(function(r){var n="_."+r[0];t&r[1]&&!dt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(Z):[]}(n),r)))}function xs(e){var t=0,r=0;return function(){var n=ar(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ms(e,t){var r=-1,n=e.length,o=n-1;for(t=void 0===t?n:t;++r1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Ks(e,r)}));function ti(e){var t=Er(e);return t.__chain__=!0,t}function ri(e,t){return t(e)}var ni=Go((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return Vr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Ar&&as(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ri,args:[o],thisArg:void 0}),new Lr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=go((function(e,t,r){Me.call(e,r)?++e[r]:qr(e,r,1)}));var si=Eo(Ps),ii=Eo(Ds);function ai(e,t){return(Di(e)?at:Zr)(e,Xo(t,3))}function ui(e,t){return(Di(e)?ut:en)(e,Xo(t,3))}var li=go((function(e,t,r){Me.call(e,r)?e[r].push(t):qr(e,r,[t])}));var ci=Nn((function(e,t,r){var o=-1,s="function"==typeof t,i=Ii(e)?n(e.length):[];return Zr(e,(function(e){i[++o]=s?st(t,e,r):bn(e,t,r)})),i})),di=go((function(e,t,r){qr(e,r,t)}));function fi(e,t){return(Di(e)?pt:En)(e,Xo(t,3))}var pi=go((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var hi=Nn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&us(e,t[0],t[1])?t=[]:r>2&&us(t[0],t[1],t[2])&&(t=[t[0]]),Pn(e,on(t,1),[])})),mi=$t||function(){return Ve.Date.now()};function _i(e,t,r){return t=r?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var r;if("function"!=typeof t)throw new be(s);return e=na(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var bi=Nn((function(e,t,r){var n=1;if(r.length){var o=Bt(r,$o(bi));n|=32}return Uo(e,n,t,r,o)})),vi=Nn((function(e,t,r){var n=3;if(r.length){var o=Bt(r,$o(vi));n|=32}return Uo(t,n,e,r,o)}));function gi(e,t,r){var n,o,i,a,u,l,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new be(s);function h(t){var r=n,s=o;return n=o=void 0,c=t,a=e.apply(s,r)}function m(e){return c=e,u=gs(y,t),d?h(e):a}function _(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=i}function y(){var e=mi();if(_(e))return b(e);u=gs(y,function(e){var r=t-(e-l);return f?ir(r,i-(e-c)):r}(e))}function b(e){return u=void 0,p&&n?h(e):(n=o=void 0,a)}function v(){var e=mi(),r=_(e);if(n=arguments,o=this,l=e,r){if(void 0===u)return m(l);if(f)return co(u),u=gs(y,t),h(l)}return void 0===u&&(u=gs(y,t)),a}return t=sa(t)||0,Wi(r)&&(d=!!r.leading,i=(f="maxWait"in r)?sr(sa(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==u&&co(u),c=0,n=l=o=u=void 0},v.flush=function(){return void 0===u?a:b(mi())},v}var ji=Nn((function(e,t){return Xr(e,1,t)})),wi=Nn((function(e,t,r){return Xr(e,sa(t)||0,r)}));function xi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(s);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i)||s,i};return r.cache=new(xi.Cache||Cr),r}function Mi(e){if("function"!=typeof e)throw new be(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xi.Cache=Cr;var Si=uo((function(e,t){var r=(t=1==t.length&&Di(t[0])?pt(t[0],Lt(Xo())):pt(on(t,1),Lt(Xo()))).length;return Nn((function(n){for(var o=-1,s=ir(n.length,r);++o=t})),Pi=vn(function(){return arguments}())?vn:function(e){return zi(e)&&Me.call(e,"callee")&&!Ke.call(e,"callee")},Di=n.isArray,Ci=Ze?Lt(Ze):function(e){return zi(e)&&pn(e)==x};function Ii(e){return null!=e&&Bi(e.length)&&!Ui(e)}function Ri(e){return zi(e)&&Ii(e)}var Yi=tr||su,Ni=et?Lt(et):function(e){return zi(e)&&pn(e)==d};function Fi(e){if(!zi(e))return!1;var t=pn(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Vi(e)}function Ui(e){if(!Wi(e))return!1;var t=pn(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Hi(e){return"number"==typeof e&&e==na(e)}function Bi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zi(e){return null!=e&&"object"==typeof e}var Gi=tt?Lt(tt):function(e){return zi(e)&&ns(e)==m};function qi(e){return"number"==typeof e||zi(e)&&pn(e)==_}function Vi(e){if(!zi(e)||pn(e)!=y)return!1;var t=Ge(e);if(null===t)return!0;var r=Me.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xe.call(r)==ke}var Ki=rt?Lt(rt):function(e){return zi(e)&&pn(e)==b};var Ji=nt?Lt(nt):function(e){return zi(e)&&ns(e)==v};function $i(e){return"string"==typeof e||!Di(e)&&zi(e)&&pn(e)==g}function Xi(e){return"symbol"==typeof e||zi(e)&&pn(e)==j}var Qi=ot?Lt(ot):function(e){return zi(e)&&Bi(e.length)&&!!Ue[pn(e)]};var Zi=Io(On),ea=Io((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Ii(e))return $i(e)?qt(e):bo(e);if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Qe]());var t=ns(e);return(t==m?Ut:t==v?Wt:Ta)(e)}function ra(e){return e?(e=sa(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function na(e){var t=ra(e),r=t%1;return t==t?r?t-r:t:0}function oa(e){return e?Kr(na(e),0,4294967295):0}function sa(e){if("number"==typeof e)return e;if(Xi(e))return NaN;if(Wi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var r=se.test(e);return r||ae.test(e)?ze(e.slice(2),r?2:8):oe.test(e)?NaN:+e}function ia(e){return vo(e,ja(e))}function aa(e){return null==e?"":Xn(e)}var ua=jo((function(e,t){if(fs(t)||Ii(t))vo(t,ga(t),e);else for(var r in t)Me.call(t,r)&&Br(e,r,t[r])})),la=jo((function(e,t){vo(t,ja(t),e)})),ca=jo((function(e,t,r,n){vo(t,ja(t),e,n)})),da=jo((function(e,t,r,n){vo(t,ga(t),e,n)})),fa=Go(Vr);var pa=Nn((function(e,t){e=me(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&us(t[0],t[1],o)&&(n=1);++r1),t})),vo(e,Vo(e),r),n&&(r=Jr(r,7,Wo));for(var o=t.length;o--;)Zn(r,t[o]);return r}));var Sa=Go((function(e,t){return null==e?{}:function(e,t){return Dn(e,t,(function(t,r){return _a(e,r)}))}(e,t)}));function Oa(e,t){if(null==e)return{};var r=pt(Vo(e),(function(e){return[e]}));return t=Xo(t),Dn(e,r,(function(e,r){return t(e,r[0])}))}var Ea=Fo(ga),ka=Fo(ja);function Ta(e){return null==e?[]:At(e,ga(e))}var La=So((function(e,t,r){return t=t.toLowerCase(),e+(r?Aa(t):t)}));function Aa(e){return Fa(aa(e).toLowerCase())}function Pa(e){return(e=aa(e))&&e.replace(le,Rt).replace(De,"")}var Da=So((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ca=So((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ia=Mo("toLowerCase");var Ra=So((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ya=So((function(e,t,r){return e+(r?" ":"")+Fa(t)}));var Na=So((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Fa=Mo("toUpperCase");function Ua(e,t,r){return e=aa(e),void 0===(t=r?void 0:t)?function(e){return Ye.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ha=Nn((function(e,t){try{return st(e,void 0,t)}catch(e){return Fi(e)?e:new fe(e)}})),Ba=Go((function(e,t){return at(t,(function(t){t=Os(t),qr(e,t,bi(e[t],e))})),e}));function Wa(e){return function(){return e}}var za=ko(),Ga=ko(!0);function qa(e){return e}function Va(e){return xn("function"==typeof e?e:Jr(e,1))}var Ka=Nn((function(e,t){return function(r){return bn(r,e,t)}})),Ja=Nn((function(e,t){return function(r){return bn(e,r,t)}}));function $a(e,t,r){var n=ga(t),o=cn(t,n);null!=r||Wi(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=cn(t,ga(t)));var s=!(Wi(r)&&"chain"in r&&!r.chain),i=Ui(e);return at(o,(function(r){var n=t[r];e[r]=n,i&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__),o=r.__actions__=bo(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,ht([this.value()],arguments))})})),e}function Xa(){}var Qa=Po(pt),Za=Po(lt),eu=Po(yt);function tu(e){return ls(e)?St(Os(e)):function(e){return function(t){return dn(t,e)}}(e)}var ru=Co(),nu=Co(!0);function ou(){return[]}function su(){return!1}var iu=Ao((function(e,t){return e+t}),0),au=Yo("ceil"),uu=Ao((function(e,t){return e/t}),1),lu=Yo("floor");var cu,du=Ao((function(e,t){return e*t}),1),fu=Yo("round"),pu=Ao((function(e,t){return e-t}),0);return Er.after=function(e,t){if("function"!=typeof t)throw new be(s);return e=na(e),function(){if(--e<1)return t.apply(this,arguments)}},Er.ary=_i,Er.assign=ua,Er.assignIn=la,Er.assignInWith=ca,Er.assignWith=da,Er.at=fa,Er.before=yi,Er.bind=bi,Er.bindAll=Ba,Er.bindKey=vi,Er.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Di(e)?e:[e]},Er.chain=ti,Er.chunk=function(e,t,r){t=(r?us(e,t,r):void 0===t)?1:sr(na(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,i=0,a=n(Qt(o/t));so?0:o+r),(n=void 0===n||n>o?o:na(n))<0&&(n+=o),n=r>n?0:oa(n);r>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!Ki(t))&&!(t=Xn(t))&&Ft(e)?lo(qt(e),0,r):e.split(t,r):[]},Er.spread=function(e,t){if("function"!=typeof e)throw new be(s);return t=null==t?0:sr(na(t),0),Nn((function(r){var n=r[t],o=lo(r,0,t);return n&&ht(o,n),st(e,this,o)}))},Er.tail=function(e){var t=null==e?0:e.length;return t?Gn(e,1,t):[]},Er.take=function(e,t,r){return e&&e.length?Gn(e,0,(t=r||void 0===t?1:na(t))<0?0:t):[]},Er.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Gn(e,(t=n-(t=r||void 0===t?1:na(t)))<0?0:t,n):[]},Er.takeRightWhile=function(e,t){return e&&e.length?to(e,Xo(t,3),!1,!0):[]},Er.takeWhile=function(e,t){return e&&e.length?to(e,Xo(t,3)):[]},Er.tap=function(e,t){return t(e),e},Er.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new be(s);return Wi(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),gi(e,t,{leading:n,maxWait:t,trailing:o})},Er.thru=ri,Er.toArray=ta,Er.toPairs=Ea,Er.toPairsIn=ka,Er.toPath=function(e){return Di(e)?pt(e,Os):Xi(e)?[e]:bo(Ss(aa(e)))},Er.toPlainObject=ia,Er.transform=function(e,t,r){var n=Di(e),o=n||Yi(e)||Qi(e);if(t=Xo(t,4),null==r){var s=e&&e.constructor;r=o?n?new s:[]:Wi(e)&&Ui(s)?kr(Ge(e)):{}}return(o?at:un)(e,(function(e,n,o){return t(r,e,n,o)})),r},Er.unary=function(e){return _i(e,1)},Er.union=zs,Er.unionBy=Gs,Er.unionWith=qs,Er.uniq=function(e){return e&&e.length?Qn(e):[]},Er.uniqBy=function(e,t){return e&&e.length?Qn(e,Xo(t,2)):[]},Er.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qn(e,void 0,t):[]},Er.unset=function(e,t){return null==e||Zn(e,t)},Er.unzip=Vs,Er.unzipWith=Ks,Er.update=function(e,t,r){return null==e?e:eo(e,t,io(r))},Er.updateWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:eo(e,t,io(r),n)},Er.values=Ta,Er.valuesIn=function(e){return null==e?[]:At(e,ja(e))},Er.without=Js,Er.words=Ua,Er.wrap=function(e,t){return Oi(io(t),e)},Er.xor=$s,Er.xorBy=Xs,Er.xorWith=Qs,Er.zip=Zs,Er.zipObject=function(e,t){return oo(e||[],t||[],Br)},Er.zipObjectDeep=function(e,t){return oo(e||[],t||[],Hn)},Er.zipWith=ei,Er.entries=Ea,Er.entriesIn=ka,Er.extend=la,Er.extendWith=ca,$a(Er,Er),Er.add=iu,Er.attempt=Ha,Er.camelCase=La,Er.capitalize=Aa,Er.ceil=au,Er.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=sa(r))==r?r:0),void 0!==t&&(t=(t=sa(t))==t?t:0),Kr(sa(e),t,r)},Er.clone=function(e){return Jr(e,4)},Er.cloneDeep=function(e){return Jr(e,5)},Er.cloneDeepWith=function(e,t){return Jr(e,5,t="function"==typeof t?t:void 0)},Er.cloneWith=function(e,t){return Jr(e,4,t="function"==typeof t?t:void 0)},Er.conformsTo=function(e,t){return null==t||$r(e,t,ga(t))},Er.deburr=Pa,Er.defaultTo=function(e,t){return null==e||e!=e?t:e},Er.divide=uu,Er.endsWith=function(e,t,r){e=aa(e),t=Xn(t);var n=e.length,o=r=void 0===r?n:Kr(na(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Er.eq=Ti,Er.escape=function(e){return(e=aa(e))&&F.test(e)?e.replace(Y,Yt):e},Er.escapeRegExp=function(e){return(e=aa(e))&&V.test(e)?e.replace(q,"\\$&"):e},Er.every=function(e,t,r){var n=Di(e)?lt:tn;return r&&us(e,t,r)&&(t=void 0),n(e,Xo(t,3))},Er.find=si,Er.findIndex=Ps,Er.findKey=function(e,t){return vt(e,Xo(t,3),un)},Er.findLast=ii,Er.findLastIndex=Ds,Er.findLastKey=function(e,t){return vt(e,Xo(t,3),ln)},Er.floor=lu,Er.forEach=ai,Er.forEachRight=ui,Er.forIn=function(e,t){return null==e?e:sn(e,Xo(t,3),ja)},Er.forInRight=function(e,t){return null==e?e:an(e,Xo(t,3),ja)},Er.forOwn=function(e,t){return e&&un(e,Xo(t,3))},Er.forOwnRight=function(e,t){return e&&ln(e,Xo(t,3))},Er.get=ma,Er.gt=Li,Er.gte=Ai,Er.has=function(e,t){return null!=e&&os(e,t,mn)},Er.hasIn=_a,Er.head=Is,Er.identity=qa,Er.includes=function(e,t,r,n){e=Ii(e)?e:Ta(e),r=r&&!n?na(r):0;var o=e.length;return r<0&&(r=sr(o+r,0)),$i(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&jt(e,t,r)>-1},Er.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:na(r);return o<0&&(o=sr(n+o,0)),jt(e,t,o)},Er.inRange=function(e,t,r){return t=ra(t),void 0===r?(r=t,t=0):r=ra(r),function(e,t,r){return e>=ir(t,r)&&e=-9007199254740991&&e<=9007199254740991},Er.isSet=Ji,Er.isString=$i,Er.isSymbol=Xi,Er.isTypedArray=Qi,Er.isUndefined=function(e){return void 0===e},Er.isWeakMap=function(e){return zi(e)&&ns(e)==w},Er.isWeakSet=function(e){return zi(e)&&"[object WeakSet]"==pn(e)},Er.join=function(e,t){return null==e?"":nr.call(e,t)},Er.kebabCase=Da,Er.last=Fs,Er.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return void 0!==r&&(o=(o=na(r))<0?sr(n+o,0):ir(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):gt(e,xt,o,!0)},Er.lowerCase=Ca,Er.lowerFirst=Ia,Er.lt=Zi,Er.lte=ea,Er.max=function(e){return e&&e.length?rn(e,qa,hn):void 0},Er.maxBy=function(e,t){return e&&e.length?rn(e,Xo(t,2),hn):void 0},Er.mean=function(e){return Mt(e,qa)},Er.meanBy=function(e,t){return Mt(e,Xo(t,2))},Er.min=function(e){return e&&e.length?rn(e,qa,On):void 0},Er.minBy=function(e,t){return e&&e.length?rn(e,Xo(t,2),On):void 0},Er.stubArray=ou,Er.stubFalse=su,Er.stubObject=function(){return{}},Er.stubString=function(){return""},Er.stubTrue=function(){return!0},Er.multiply=du,Er.nth=function(e,t){return e&&e.length?An(e,na(t)):void 0},Er.noConflict=function(){return Ve._===this&&(Ve._=Te),this},Er.noop=Xa,Er.now=mi,Er.pad=function(e,t,r){e=aa(e);var n=(t=na(t))?Gt(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Do(Zt(o),r)+e+Do(Qt(o),r)},Er.padEnd=function(e,t,r){e=aa(e);var n=(t=na(t))?Gt(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=lr();return ir(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Rn(e,t)},Er.reduce=function(e,t,r){var n=Di(e)?mt:Et,o=arguments.length<3;return n(e,Xo(t,4),r,o,Zr)},Er.reduceRight=function(e,t,r){var n=Di(e)?_t:Et,o=arguments.length<3;return n(e,Xo(t,4),r,o,en)},Er.repeat=function(e,t,r){return t=(r?us(e,t,r):void 0===t)?1:na(t),Yn(aa(e),t)},Er.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Er.result=function(e,t,r){var n=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++n9007199254740991)return[];var r=4294967295,n=ir(e,4294967295);e-=4294967295;for(var o=Tt(n,t=Xo(t));++r=s)return e;var a=r-Gt(n);if(a<1)return n;var u=i?lo(i,0,a).join(""):e.slice(0,a);if(void 0===o)return u+n;if(i&&(a+=u.length-a),Ki(o)){if(e.slice(a).search(o)){var l,c=u;for(o.global||(o=_e(o.source,aa(ne.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var d=l.index;u=u.slice(0,void 0===d?a:d)}}else if(e.indexOf(Xn(o),a)!=a){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+n},Er.unescape=function(e){return(e=aa(e))&&N.test(e)?e.replace(R,Vt):e},Er.uniqueId=function(e){var t=++Se;return aa(e)+t},Er.upperCase=Na,Er.upperFirst=Fa,Er.each=ai,Er.eachRight=ui,Er.first=Is,$a(Er,(cu={},un(Er,(function(e,t){Me.call(Er.prototype,t)||(cu[t]=e)})),cu),{chain:!1}),Er.VERSION="4.17.19",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Er[e].placeholder=Er})),at(["drop","take"],(function(e,t){Ar.prototype[e]=function(r){r=void 0===r?1:sr(na(r),0);var n=this.__filtered__&&!t?new Ar(this):this.clone();return n.__filtered__?n.__takeCount__=ir(r,n.__takeCount__):n.__views__.push({size:ir(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},Ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),at(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ar.prototype[e]=function(){return this[r](1).value()[0]}})),at(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ar.prototype[e]=function(){return this.__filtered__?new Ar(this):this[r](1)}})),Ar.prototype.compact=function(){return this.filter(qa)},Ar.prototype.find=function(e){return this.filter(e).head()},Ar.prototype.findLast=function(e){return this.reverse().find(e)},Ar.prototype.invokeMap=Nn((function(e,t){return"function"==typeof e?new Ar(this):this.map((function(r){return bn(r,e,t)}))})),Ar.prototype.reject=function(e){return this.filter(Mi(Xo(e)))},Ar.prototype.slice=function(e,t){e=na(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ar(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=na(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ar.prototype.toArray=function(){return this.take(4294967295)},un(Ar.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Er[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Er.prototype[t]=function(){var t=this.__wrapped__,i=n?[1]:arguments,a=t instanceof Ar,u=i[0],l=a||Di(t),c=function(e){var t=o.apply(Er,ht([e],i));return n&&d?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(a=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,h=a&&!f;if(!s&&l){t=h?t:new Ar(this);var m=e.apply(t,i);return m.__actions__.push({func:ri,args:[c],thisArg:void 0}),new Lr(m,d)}return p&&h?e.apply(this,i):(m=this.thru(c),p?n?m.value()[0]:m.value():m)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Er.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Di(o)?o:[],e)}return this[r]((function(r){return t.apply(Di(r)?r:[],e)}))}})),un(Ar.prototype,(function(e,t){var r=Er[t];if(r){var n=r.name+"";Me.call(br,n)||(br[n]=[]),br[n].push({name:t,func:r})}})),br[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Ar.prototype.clone=function(){var e=new Ar(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Ar.prototype.reverse=function(){if(this.__filtered__){var e=new Ar(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ar.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Di(e),n=t<0,o=r?e.length:0,s=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Er.prototype.plant=function(e){for(var t,r=this;r instanceof Tr;){var n=ks(r);n.__index__=0,n.__values__=void 0,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Er.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ar){var t=e;return this.__actions__.length&&(t=new Ar(this)),(t=t.reverse()).__actions__.push({func:ri,args:[Ws],thisArg:void 0}),new Lr(t,this.__chain__)}return this.thru(Ws)},Er.prototype.toJSON=Er.prototype.valueOf=Er.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Er.prototype.first=Er.prototype.head,Qe&&(Er.prototype[Qe]=function(){return this}),Er}();Ve._=Kt,void 0===(o=function(){return Kt}.call(t,r,t,n))||(n.exports=o)}).call(this)}).call(this,r("./node_modules/webpack/buildin/global.js"),r("./node_modules/webpack/buildin/module.js")(e))},"./MapStore2/node_modules/lodash/mapValues.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseAssignValue.js"),o=r("./MapStore2/node_modules/lodash/_baseForOwn.js"),s=r("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var r={};return t=s(t,3),o(e,(function(e,o,s){n(r,o,t(e,o,s))})),r}},"./MapStore2/node_modules/lodash/memoize.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i)||s,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},"./MapStore2/node_modules/lodash/noop.js":function(e,t){e.exports=function(){}},"./MapStore2/node_modules/lodash/pick.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_basePick.js"),o=r("./MapStore2/node_modules/lodash/_flatRest.js")((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},"./MapStore2/node_modules/lodash/property.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseProperty.js"),o=r("./MapStore2/node_modules/lodash/_basePropertyDeep.js"),s=r("./MapStore2/node_modules/lodash/_isKey.js"),i=r("./MapStore2/node_modules/lodash/_toKey.js");e.exports=function(e){return s(e)?n(i(e)):o(e)}},"./MapStore2/node_modules/lodash/rearg.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_createWrap.js"),o=r("./MapStore2/node_modules/lodash/_flatRest.js"),s=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=s},"./MapStore2/node_modules/lodash/set.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseSet.js");e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},"./MapStore2/node_modules/lodash/stubArray.js":function(e,t){e.exports=function(){return[]}},"./MapStore2/node_modules/lodash/stubFalse.js":function(e,t){e.exports=function(){return!1}},"./MapStore2/node_modules/lodash/toFinite.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=n(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./MapStore2/node_modules/lodash/toInteger.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/toFinite.js");e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},"./MapStore2/node_modules/lodash/toNumber.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/isObject.js"),o=r("./MapStore2/node_modules/lodash/isSymbol.js"),s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var r=a.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):i.test(e)?NaN:+e}},"./MapStore2/node_modules/lodash/toPath.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_arrayMap.js"),o=r("./MapStore2/node_modules/lodash/_copyArray.js"),s=r("./MapStore2/node_modules/lodash/isArray.js"),i=r("./MapStore2/node_modules/lodash/isSymbol.js"),a=r("./MapStore2/node_modules/lodash/_stringToPath.js"),u=r("./MapStore2/node_modules/lodash/_toKey.js"),l=r("./MapStore2/node_modules/lodash/toString.js");e.exports=function(e){return s(e)?n(e,u):i(e)?[e]:o(a(l(e)))}},"./MapStore2/node_modules/lodash/toString.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":n(e)}},"./MapStore2/node_modules/lodash/union.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseFlatten.js"),o=r("./MapStore2/node_modules/lodash/_baseRest.js"),s=r("./MapStore2/node_modules/lodash/_baseUniq.js"),i=r("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(n(e,1,i,!0))}));e.exports=a},"./MapStore2/node_modules/lodash/unset.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseUnset.js");e.exports=function(e,t){return null==e||n(e,t)}},"./MapStore2/node_modules/lodash/values.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseValues.js"),o=r("./MapStore2/node_modules/lodash/keys.js");e.exports=function(e){return null==e?[]:n(e,o(e))}},"./MapStore2/node_modules/lodash/without.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_baseDifference.js"),o=r("./MapStore2/node_modules/lodash/_baseRest.js"),s=r("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),i=o((function(e,t){return s(e)?n(e,t):[]}));e.exports=i},"./MapStore2/node_modules/lodash/wrapperLodash.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_LazyWrapper.js"),o=r("./MapStore2/node_modules/lodash/_LodashWrapper.js"),s=r("./MapStore2/node_modules/lodash/_baseLodash.js"),i=r("./MapStore2/node_modules/lodash/isArray.js"),a=r("./MapStore2/node_modules/lodash/isObjectLike.js"),u=r("./MapStore2/node_modules/lodash/_wrapperClone.js"),l=Object.prototype.hasOwnProperty;function c(e){if(a(e)&&!i(e)&&!(e instanceof n)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return u(e)}return new o(e)}c.prototype=s.prototype,c.prototype.constructor=c,e.exports=c},"./MapStore2/node_modules/lodash/xor.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/_arrayFilter.js"),o=r("./MapStore2/node_modules/lodash/_baseRest.js"),s=r("./MapStore2/node_modules/lodash/_baseXor.js"),i=r("./MapStore2/node_modules/lodash/isArrayLikeObject.js"),a=o((function(e){return s(n(e,i))}));e.exports=a},"./MapStore2/web/client/actions/browser.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n="CHANGE_BROWSER_PROPERTIES",o=function(e){return{type:n,newProperties:e}}},"./MapStore2/web/client/actions/config.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"f",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"j",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"k",(function(){return p})),r.d(t,"m",(function(){return h})),r.d(t,"l",(function(){return m})),r.d(t,"n",(function(){return _})),r.d(t,"r",(function(){return y})),r.d(t,"p",(function(){return b})),r.d(t,"q",(function(){return v})),r.d(t,"o",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"t",(function(){return w}));var n="MAP:LOAD_NEW_MAP",o="MAP_LOAD_MAP_CONFIG",s="MAP_CONFIG_LOADED",i="MAP_CONFIG_LOAD_ERROR",a="MAP_LOAD_INFO",u="MAP_INFO_LOAD_START",l="MAP_INFO_LOADED",c="MAP_INFO_LOAD_ERROR",d="MAP:MAP_SAVE_ERROR",f="MAP:MAP_SAVED",p="MAP:RESET_MAP_SAVE_ERROR";function h(e,t,r){return{type:s,config:e,legacy:!!t,mapId:t,zoomToExtent:r}}function m(e,t){return{type:i,error:e,mapId:t}}function _(e,t,r,n,s){return{type:o,configName:e,mapId:t,config:r,mapInfo:n,overrideConfig:s}}function y(e,t){return{type:l,mapId:t,info:e}}function b(e,t){return{type:c,mapId:e,error:t}}function v(e){return{type:u,mapId:e}}function g(e){return{type:a,mapId:e}}var j=function(e){return{type:d,error:e}},w=function(e){return{type:f,resourceId:e}}},"./MapStore2/web/client/actions/controls.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return d}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o="TOGGLE_CONTROL",s="SET_CONTROL_PROPERTY",i="SET_CONTROL_PROPERTIES",a="RESET_CONTROLS";function u(e,t){return{type:o,control:e,property:t}}function l(e,t,r,n){return{type:s,control:e,property:t,value:r,toggle:n}}function c(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[];return{type:a,skip:e}}},"./MapStore2/web/client/actions/dimension.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return u})),r.d(t,"f",(function(){return l})),r.d(t,"e",(function(){return c}));var n="DIMENSION:UPDATE_LAYER_DIMENSION_DATA",o="TIME_MANAGER:SET_CURRENT_TIME",s="TIME_MANAGER:SET_OFFSET_TIME",i="TIME_MANAGER:MOVE_TIME",a=function(e,t,r){return{type:n,dimension:t,layerId:e,data:r}},u=function(e){return{type:o,time:e}},l=function(e){return{type:s,offsetTime:e}},c=function(e){return{type:i,time:e}}},"./MapStore2/web/client/actions/help.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return a}));var n="CHANGE_HELP_STATE",o="CHANGE_HELP_TEXT",s="CHANGE_HELPWIN_VIZ";function i(e){return{type:o,helpText:e}}function a(e){return{type:s,helpwinViz:e}}},"./MapStore2/web/client/actions/layers.js":function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"e",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"y",(function(){return i})),r.d(t,"x",(function(){return a})),r.d(t,"t",(function(){return u})),r.d(t,"A",(function(){return l})),r.d(t,"q",(function(){return c})),r.d(t,"p",(function(){return d})),r.d(t,"o",(function(){return f})),r.d(t,"n",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return m})),r.d(t,"s",(function(){return _})),r.d(t,"w",(function(){return y})),r.d(t,"k",(function(){return b})),r.d(t,"B",(function(){return v})),r.d(t,"r",(function(){return g})),r.d(t,"z",(function(){return j})),r.d(t,"l",(function(){return w})),r.d(t,"m",(function(){return x})),r.d(t,"c",(function(){return M})),r.d(t,"h",(function(){return S})),r.d(t,"g",(function(){return O})),r.d(t,"u",(function(){return E})),r.d(t,"i",(function(){return k})),r.d(t,"v",(function(){return T})),r.d(t,"j",(function(){return L})),r.d(t,"C",(function(){return A})),r.d(t,"Z",(function(){return P})),r.d(t,"O",(function(){return D})),r.d(t,"eb",(function(){return C})),r.d(t,"I",(function(){return I})),r.d(t,"H",(function(){return R})),r.d(t,"G",(function(){return Y})),r.d(t,"bb",(function(){return N})),r.d(t,"K",(function(){return F})),r.d(t,"ab",(function(){return U})),r.d(t,"W",(function(){return H})),r.d(t,"db",(function(){return B})),r.d(t,"U",(function(){return W})),r.d(t,"R",(function(){return z})),r.d(t,"Q",(function(){return G})),r.d(t,"P",(function(){return q})),r.d(t,"E",(function(){return V})),r.d(t,"D",(function(){return K})),r.d(t,"V",(function(){return J})),r.d(t,"T",(function(){return $})),r.d(t,"S",(function(){return X})),r.d(t,"cb",(function(){return Q})),r.d(t,"F",(function(){return Z})),r.d(t,"L",(function(){return ee})),r.d(t,"J",(function(){return te})),r.d(t,"X",(function(){return re})),r.d(t,"M",(function(){return ne})),r.d(t,"Y",(function(){return oe})),r.d(t,"N",(function(){return se})),r.d(t,"fb",(function(){return ie}));var n="CHANGE_LAYER_PROPERTIES",o="LAYERS:CHANGE_LAYER_PARAMS",s="CHANGE_GROUP_PROPERTIES",i="TOGGLE_NODE",a="SORT_NODE",u="REMOVE_NODE",l="UPDATE_NODE",c="MOVE_NODE",d="LAYER_LOADING",f="LAYER_LOAD",p="LAYER_ERROR",h="ADD_LAYER",m="ADD_GROUP",_="REMOVE_LAYER",y="SHOW_SETTINGS",b="HIDE_SETTINGS",v="UPDATE_SETTINGS",g="REFRESH_LAYERS",j="LAYERS:UPDATE_LAYERS_DIMENSION",w="LAYERS_REFRESHED",x="LAYERS_REFRESH_ERROR",M="LAYERS:BROWSE_DATA",S="LAYERS:DOWNLOAD",O="LAYERS:CLEAR_LAYERS",E="LAYERS:SELECT_NODE",k="LAYERS:FILTER_LAYERS",T="LAYERS:SHOW_LAYER_METADATA",L="LAYERS:HIDE_LAYER_METADATA",A="LAYERS:UPDATE_SETTINGS_PARAMS";function P(e,t,r){return{type:y,node:e,nodeType:t,options:r}}function D(){return{type:b}}function C(e){return{type:v,options:e}}function I(e,t){return{type:n,newProperties:t,layer:e}}function R(e,t){return{type:o,layer:e,params:t}}function Y(e,t){return{type:s,newProperties:t,group:e}}function N(e,t,r){return{type:i,node:e,nodeType:t,status:!r}}function F(e){return{type:"CONTEXT_NODE",node:e}}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:a,node:e,order:t,sortLayers:r}}function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:u,node:e,nodeType:t,removeEmpty:r}}function B(e,t,r){return{type:l,node:e,nodeType:t,options:r}}function W(e,t,r){return{type:c,node:e,groupId:t,index:r}}function z(e){return{type:d,layerId:e}}function G(e,t){return{type:f,layerId:e,error:t}}function q(e,t,r){return{type:p,layerId:e,tilesCount:t,tilesErrorCount:r}}function V(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:h,layer:e,foreground:t}}function K(e,t,r){return{type:m,group:e,parent:t,options:r}}function J(e,t){return{type:n,layer:e,newProperties:{_v_:t||(new Date).getTime()}}}function $(e){return{type:w,layers:e}}function X(e,t){return{type:x,layers:e,error:t}}function Q(e,t,r,n){return{type:j,dimension:e,value:t,options:r,layers:n}}function Z(e){return{type:M,layer:e}}function ee(e){return{type:S,layer:e}}function te(){return{type:O}}function re(e,t,r){return{type:E,id:e,nodeType:t,ctrlKey:r}}function ne(e){return{type:k,text:e}}function oe(e,t){return{type:T,metadataRecord:e,maskLoading:t}}function se(){return{type:L}}function ie(e,t){return{type:A,newParams:e,update:t}}},"./MapStore2/web/client/actions/localConfig.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n="LOCAL_CONFIG_LOADED";function o(e){return{type:n,config:e}}},"./MapStore2/web/client/actions/locale.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return h}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/es6-promise/dist/es6-promise.js"),s=r("./MapStore2/web/client/libs/ajax.js"),i=r.n(s),a=r("./MapStore2/web/client/actions/notifications.js"),u=r("./MapStore2/web/client/utils/LocaleUtils.js"),l=r("./MapStore2/web/client/utils/ConfigUtils.js"),c="CHANGE_LOCALE",d="LOCALE_LOAD_ERROR";function f(e){return{type:c,messages:e.messages,locale:e.locale}}function p(e){return{type:d,error:e}}function h(e,t){return function(r){var s=t;s||(s=Object(u.h)());var c=Object(n.castArray)(e||l.default.getConfigProp("translationsPath"));o.Promise.all(c.map((function(e){return i.a.get(e+"/data.".concat(s,".json")).catch((function(e){return e}))}))).then((function(e){var o=e.filter((function(e){return 200===e.status}));if(e.filter((function(e){return 404!==e.status&&200!==e.status})).length>0||0===o.length){var s=e[0];r(p(s)),r(Object(a.f)({title:"notification.warning",message:0===o.length?"localeErrors.404":"Error loading locale",action:{label:"notification.warning"},position:"tc"}))}else r(f(o.reduce((function(e,o){if("string"==typeof o.data){try{JSON.parse(o.data)}catch(e){r(p("Locale file broken for ("+t+"): "+e.message))}return e}return Object(n.merge)(e,o.data)}),{})))}))}}},"./MapStore2/web/client/actions/map.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return o})),r.d(t,"i",(function(){return s})),r.d(t,"f",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"n",(function(){return u})),r.d(t,"t",(function(){return l})),r.d(t,"u",(function(){return c})),r.d(t,"a",(function(){return d})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return p})),r.d(t,"g",(function(){return h})),r.d(t,"j",(function(){return m})),r.d(t,"s",(function(){return _})),r.d(t,"k",(function(){return y})),r.d(t,"p",(function(){return b})),r.d(t,"b",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"o",(function(){return j})),r.d(t,"r",(function(){return w})),r.d(t,"l",(function(){return x})),r.d(t,"m",(function(){return M})),r.d(t,"B",(function(){return S})),r.d(t,"J",(function(){return O})),r.d(t,"x",(function(){return E})),r.d(t,"A",(function(){return k})),r.d(t,"y",(function(){return T})),r.d(t,"z",(function(){return L})),r.d(t,"I",(function(){return A})),r.d(t,"w",(function(){return P})),r.d(t,"C",(function(){return D})),r.d(t,"v",(function(){return C})),r.d(t,"G",(function(){return I})),r.d(t,"F",(function(){return R})),r.d(t,"H",(function(){return Y})),r.d(t,"D",(function(){return N})),r.d(t,"E",(function(){return F}));var n=r("./MapStore2/web/client/actions/notifications.js"),o="CHANGE_MAP_VIEW",s="CLICK_ON_MAP",i="CHANGE_MOUSE_POINTER",a="CHANGE_ZOOM_LVL",u="PAN_TO",l="ZOOM_TO_EXTENT",c="ZOOM_TO_POINT",d="CHANGE_MAP_CRS",f="CHANGE_MAP_SCALES",p="CHANGE_MAP_STYLE",h="CHANGE_ROTATION",m="CREATION_ERROR_LAYER",_="UPDATE_VERSION",y="INIT_MAP",b="RESIZE_MAP",v="CHANGE_MAP_LIMITS",g="SET_MAP_RESOLUTIONS",j="REGISTER_EVENT_LISTENER",w="UNREGISTER_EVENT_LISTENER",x="MOUSE_MOVE",M="MOUSE_OUT";function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{family:""};return Object(n.f)({title:"warning",message:"map.errorLoadingFont",values:e,position:"tc",autoDismiss:10})}function O(e,t,r){return{type:c,pos:e,zoom:t,crs:r}}function E(e,t,r,n,s,i,a){return{type:o,center:e,zoom:t,bbox:r,size:n,mapStateSource:s,projection:i,viewerOptions:a}}function k(e,t){return{type:s,point:e,layer:t}}function T(e){return{type:i,pointer:e}}function L(e,t){return{type:a,zoom:e,mapStateSource:t}}function A(e,t,r){return{type:l,extent:e,crs:t,maxZoom:r}}function P(e,t){return{type:p,style:e,mapStateSource:t}}function D(e){return{type:y,disableFeedbackMask:e}}function C(e){var t=e.restrictedExtent,r=e.crs,n=e.minZoom;return{type:v,restrictedExtent:t,crs:r,minZoom:n}}function I(e){return{type:g,resolutions:e}}var R=function(e,t){return{type:j,eventName:e,toolName:t}},Y=function(e,t){return{type:w,eventName:e,toolName:t}},N=function(e){return{type:x,position:e}},F=function(){return{type:M}}},"./MapStore2/web/client/actions/maps.js":function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"g",(function(){return o})),r.d(t,"h",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"i",(function(){return a})),r.d(t,"o",(function(){return u})),r.d(t,"k",(function(){return l})),r.d(t,"m",(function(){return c})),r.d(t,"l",(function(){return d})),r.d(t,"a",(function(){return f})),r.d(t,"y",(function(){return p})),r.d(t,"n",(function(){return h})),r.d(t,"t",(function(){return m})),r.d(t,"q",(function(){return _})),r.d(t,"j",(function(){return y})),r.d(t,"u",(function(){return b})),r.d(t,"x",(function(){return v})),r.d(t,"v",(function(){return g})),r.d(t,"d",(function(){return j})),r.d(t,"w",(function(){return w})),r.d(t,"c",(function(){return x})),r.d(t,"p",(function(){return M})),r.d(t,"b",(function(){return S})),r.d(t,"s",(function(){return O})),r.d(t,"r",(function(){return E})),r.d(t,"K",(function(){return k})),r.d(t,"D",(function(){return T})),r.d(t,"z",(function(){return L})),r.d(t,"N",(function(){return A})),r.d(t,"B",(function(){return P})),r.d(t,"M",(function(){return D})),r.d(t,"E",(function(){return C})),r.d(t,"J",(function(){return I})),r.d(t,"C",(function(){return R})),r.d(t,"F",(function(){return Y})),r.d(t,"I",(function(){return N})),r.d(t,"G",(function(){return F})),r.d(t,"H",(function(){return U})),r.d(t,"L",(function(){return H})),r.d(t,"A",(function(){return B}));r("./MapStore2/web/client/api/GeoStoreDAO.js");var n="MAPS_LIST_LOADED",o="MAPS_LIST_LOADING",s="MAPS_LIST_LOAD_ERROR",i="MAPS_GET_MAP_RESOURCES_BY_CATEGORY",a="MAPS_LOAD_MAP",u="MAP_UPDATING",l="MAP_CREATED",c="MAP_DELETING",d="MAP_DELETED",f="ATTRIBUTE_UPDATED",p="THUMBNAIL_ERROR",h="MAP_ERROR",m="SAVING_MAP",_="PERMISSIONS_LIST_LOADING",y="MAPS_SEARCH_TEXT_CHANGED",b="MAPS:SEARCH_FILTER_CHANGED",v="MAPS:SET_SEARCH_FILTER",g="MAPS:SEARCH_FILTER_CLEAR_ALL",j="MAPS:LOAD_CONTEXTS",w="MAPS:SET_CONTEXTS",x="MAPS:LOADING",M="METADATA_CHANGED",S="MAPS:DELETE_MAP",O="SAVE_MAP_RESOURCE",E="MAPS:RELOAD_MAPS";function k(e,t){return{type:o,searchText:e,params:t}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,limit:12};return{type:a,geoStoreUrl:e,searchText:t,params:r}}function L(e,t,r,n){return{type:i,map:e,searchText:t,opts:r,searchFilter:n}}function A(e){return{type:v,searchFilter:e}}function P(e,t,r,n){return{type:j,searchText:e,options:t,delayLoad:r,force:n}}function D(e){return{type:w,contexts:e}}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:x,name:t,value:e}}function I(e,t,r){return{type:n,params:t,maps:e,searchText:r}}function R(e){return{type:s,error:e}}function Y(e,t,r,n){return{type:l,resourceId:e,metadata:t,content:r,error:n}}function N(e){return{type:u,resourceId:e}}function F(e,t,r){return{type:d,resourceId:e,result:t,error:r}}function U(e,t,r){return{type:c,resourceId:e,result:t,error:r}}function H(e){return{type:m,metadata:e}}var B=function(){return{type:"FEATURED_MAPS:INVALIDATE"}}},"./MapStore2/web/client/actions/notifications.js":function(e,t,r){"use strict";function n(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 o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";return o(o({type:i},e),{},{uid:e.uid||Date.now(),level:t})}function c(e){return{type:a,uid:e}}function d(e){return l(e,"success")}function f(e){return l(e,"error")}function p(e){return l(e,"warning")}function h(e){return l(e,"info")}function m(){return{type:u}}function _(e){return e}},"./MapStore2/web/client/actions/print.js":function(e,t,r){"use strict";r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return a})),r.d(t,"j",(function(){return u})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"h",(function(){return p})),r.d(t,"g",(function(){return h})),r.d(t,"d",(function(){return m})),r.d(t,"r",(function(){return _})),r.d(t,"o",(function(){return y})),r.d(t,"p",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"n",(function(){return j})),r.d(t,"s",(function(){return w})),r.d(t,"m",(function(){return x})),r.d(t,"l",(function(){return M})),r.d(t,"k",(function(){return S}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n);function s(e){return(s="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)}var i="PRINT_CAPABILITIES_LOADED",a="PRINT_CAPABILITIES_ERROR",u="SET_PRINT_PARAMETER",l="CONFIGURE_PRINT_MAP",c="CHANGE_PRINT_ZOOM_LEVEL",d="CHANGE_MAP_PRINT_PREVIEW",f="PRINT_SUBMITTING",p="PRINT_ERROR",h="PRINT_CREATED",m="PRINT_CANCEL";function _(){return{type:f}}function y(){return{type:m}}function b(e){return{type:a,error:e}}function v(e){return{type:p,error:e}}function g(e,t){return function(r){return o.a.post(e,t).then((function(e){if("object"===s(e.data))r(function(e){return{type:h,url:e}}(e.data&&e.data.getURL));else try{JSON.parse(e.data)}catch(e){r(v("Error on reading print result: "+e.data))}})).catch((function(e){r(v("Error on printing: "+e.data))}))}}function j(e){return function(t){return o.a.get(e).then((function(r){if("object"===s(r.data))t((n=r.data,{type:i,capabilities:n}));else try{JSON.parse(r.data)}catch(r){t(b("Print configuration broken ("+e+"): "+r.data))}var n})).catch((function(r){t(b("Print configuration not available ("+e+"): "+r.data))}))}}function w(e,t){return{type:u,name:e,value:t}}function x(e,t,r,n,o,s,i){return{type:l,center:e,zoom:t,scaleZoom:r,scale:n,layers:o,projection:s,currentLocale:i}}function M(e,t){return{type:c,zoom:e,scale:t}}function S(e,t,r,n,o,s){return{type:d,center:e,zoom:t,bbox:r,size:n,mapStateSource:o,projection:s}}},"./MapStore2/web/client/actions/security.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"g",(function(){return s})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return l})),r.d(t,"h",(function(){return c}));r("./MapStore2/web/client/api/GeoStoreDAO.js"),r("./MapStore2/web/client/utils/SecurityUtils.js"),r("./MapStore2/web/client/actions/maps.js"),r("./MapStore2/web/client/utils/ConfigUtils.js");var n="LOGIN_SUCCESS",o="LOGIN_FAIL",s="RESET_ERROR",i="CHANGE_PASSWORD_SUCCESS",a="CHANGE_PASSWORD_FAIL",u="LOGOUT",l="REFRESH_SUCCESS",c="SESSION_VALID"},"./MapStore2/web/client/actions/timeline.js":function(e,t,r){"use strict";r.d(t,"g",(function(){return n})),r.d(t,"o",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"l",(function(){return i})),r.d(t,"e",(function(){return a})),r.d(t,"m",(function(){return u})),r.d(t,"c",(function(){return l})),r.d(t,"r",(function(){return c})),r.d(t,"f",(function(){return d})),r.d(t,"n",(function(){return f})),r.d(t,"b",(function(){return p})),r.d(t,"k",(function(){return h})),r.d(t,"a",(function(){return m})),r.d(t,"j",(function(){return _})),r.d(t,"h",(function(){return y})),r.d(t,"p",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"q",(function(){return g}));var n="TIMELINE:SELECT_TIME",o=function(e,t,r,o){return{type:n,time:e,group:t,what:r,item:o}},s="TIMELINE:RANGE_CHANGE",i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end;return{type:s,start:t,end:r}},a="TIMELINE:RANGE_DATA_LOADED",u=function(e,t,r,n){return{type:a,layerId:e,range:t,histogram:r,domain:n}},l="TIMELINE:LOADING",c=function(e,t){return{type:l,layerId:e,loading:t}},d="TIMELINE:SELECT_LAYER",f=function(e){return{type:d,layerId:e}},p="TIMELINE:ENABLE_OFFSET",h=function(e){return{type:p,enabled:e}},m="TIMELINE:AUTOSELECT",_=function(){return{type:m}},y="TIMELINE:SET_COLLAPSED",b=function(e){return{type:y,collapsed:e}},v="TIMELINE:SET_MAP_SYNC",g=function(e){return{type:v,mapSync:e}}},"./MapStore2/web/client/actions/version.js":function(e,t,r){"use strict";r.r(t),r.d(t,"CHANGE_VERSION",(function(){return s})),r.d(t,"LOAD_VERSION_ERROR",(function(){return i})),r.d(t,"changeVersion",(function(){return a})),r.d(t,"loadVersionError",(function(){return u})),r.d(t,"loadVersion",(function(){return l}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),s="CHANGE_VERSION",i="LOAD_VERSION_ERROR";function a(e){return{type:s,version:e}}function u(e){return{type:i,error:e}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"version.txt";return function(t){return o.a.get(e).then((function(e){t(a(e.data))})).catch((function(e){t(u(e))}))}}},"./MapStore2/web/client/api/GeoStoreDAO.js":function(e,t,r){"use strict";var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/object-assign/index.js"),s=r.n(o),i=r("./node_modules/uuid/v1.js"),a=r.n(i),u=r("./node_modules/xml2js/lib/xml2js.js"),l=r.n(u),c=r("./MapStore2/web/client/libs/ajax.js"),d=r.n(c),f=r("./MapStore2/web/client/utils/ConfigUtils.js"),p=r("./MapStore2/web/client/utils/LocaleUtils.js");function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attributes||Object(n.omit)(e,["name","description","id"]),r=Object.keys(t).map((function(e){return""+e+""+t[e]+"STRING"})),o="";return r.length>0&&(o=""+r.join("")+""),o},x=function(e){return e?"true":"false"},M={mapsError:function(e){return 403===e.status||404===e.status||409===e.status||500===e.status?{title:"map.mapError.errorTitle",message:"map.mapError.error"+e.status}:{title:"map.mapError.errorTitle",message:"map.mapError.errorDefault"}}};Object(p.i)("geostore",b({},M));var S={createAttributeList:w,generateMetadata:j,authProviderName:"geostore",addBaseUrl:function(e){return s()({},e,{baseURL:e&&e.baseURL||f.default.getDefaults().geoStoreUrl})},getData:function(e,t){var r="data/"+e;return d.a.get(r,this.addBaseUrl(t)).then((function(e){return e.data}))},getResource:function(e,t){return d.a.get("resources/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourceIdByName:function(e,t,r){return d.a.get("misc/category/name/"+e+"/resource/name/"+t,this.addBaseUrl(r)).then((function(e){return Object(n.get)(e,"data.Resource.id")}))},getResourceDataByName:function(e,t,r){return d.a.get("misc/category/name/"+e+"/resource/name/"+t+"/data",this.addBaseUrl(r)).then((function(e){return Object(n.get)(e,"data")}))},getShortResource:function(e,t){return d.a.get("extjs/resource/"+e,this.addBaseUrl(t)).then((function(e){return e.data}))},getResourcesByCategory:function(e,t,r){var n="extjs/search/category/"+e+"/*"+(t||"*")+"*/thumbnail,details,featured";return d.a.get(n,this.addBaseUrl(r)).then((function(e){return e.data}))},createCategory:function(e){return d.a.post("categories","".concat(e,""),this.addBaseUrl({headers:{"Content-Type":"application/xml"}})).then((function(e){return e.data}))},getUserDetails:function(e,t,r){return d.a.get("users/user/details",this.addBaseUrl(Object(n.merge)({auth:{username:e,password:t},params:{includeattributes:!0}},r))).then((function(e){return e.data}))},login:function(e,t,r){var o,s=this;return d.a.post("session/login",null,this.addBaseUrl(Object(n.merge)(e&&t?{auth:{username:e,password:t}}:{},r))).then((function(e){return o=e.data,d.a.get("users/user/details",s.addBaseUrl(Object(n.merge)({headers:{Authorization:"Bearer "+e.data.access_token},params:{includeattributes:!0}},r)))})).then((function(e){return b(b({},e.data),o)}))},changePassword:function(e,t,r){return d.a.put("users/user/"+e.id,""+t+"",this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/xml"}},r)))},updateResourceAttribute:function(e,t,r,o,s){return d.a.put("resources/resource/"+e+"/attributes/",{restAttribute:{name:t,value:r}},this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/json"}},s)))},getResourceAttribute:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.a.get("resources/resource/"+e+"/attributes/"+t,this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/xml"}},r)))},getResourceAttributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d.a.get("resources/resource/"+e+"/attributes",this.addBaseUrl(b({headers:{Accept:"application/json"}},t))).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data;return t})).then((function(e){return Object(n.castArray)(Object(n.get)(e,"AttributeList.Attribute")||[])})).then((function(e){return e||[]}))},getResourcePermissions:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return S.getPermissions(e,t).then((function(e){return Object(n.castArray)(r?Object(n.get)(e,"SecurityRuleList.SecurityRule"):e)})).then((function(e){return e&&e[0]&&""!==e[0]?e:[]}))},putResourceMetadata:function(e,t,r,o){return d.a.put("resources/resource/"+e,""+j(t,r)+"",this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/xml"}},o)))},putResourceMetadataAndAttributes:function(e,t,r){return d.a.put("resources/resource/"+e,""+j(t.name,t.description)+w(t)+"",this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/xml"}},r)))},putResource:function(e,t,r){return d.a.put("data/"+e,t,this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"string"==typeof t?"text/plain; charset=utf-8":'application/json; charset=utf-8"'}},r)))},writeSecurityRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return""+(Object(n.castArray)(e.SecurityRule)||[]).map((function(e){if(e.canRead||e.canWrite){if(e.user)return""+x(e.canRead||e.canWrite)+""+x(e.canWrite)+""+(e.user.id||"")+""+(e.user.name||"")+"";if(e.group)return""+x(e.canRead||e.canWrite)+""+x(e.canWrite)+""+(e.group.id||"")+""+(e.group.groupName||"")+""}return""})).join("")+""},updateResourcePermissions:function(e,t){var r=S.writeSecurityRules(t.SecurityRuleList);return d.a.post("resources/resource/"+e+"/permissions",r,this.addBaseUrl({headers:{"Content-Type":"application/xml"}}))},createResource:function(e,t,r,o){var s=e.name,i=e.description||"",a=w(e);return d.a.post("resources/",""+j(s,i)+""+(r||"")+""+a+"",this.addBaseUrl(Object(n.merge)({headers:{"Content-Type":"application/xml"}},o)))},deleteResource:function(e,t){return d.a.delete("resources/resource/"+e,this.addBaseUrl(Object(n.merge)({},t)))},getUserGroups:function(e){return d.a.get("usergroups/",this.addBaseUrl(e)).then((function(e){return e.data}))},getPermissions:function(e,t){var r="resources/resource/"+e+"/permissions";return d.a.get(r,this.addBaseUrl(t)).then((function(e){return e.data}))},getAvailableGroups:function(e){return e&&"ADMIN"===e.role?d.a.get("usergroups/?all=true&users=false",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return function(e){if(!e||!e.UserGroupList||!e.UserGroupList.UserGroup)return[];var t=function(e){return Object(n.pick)(e,["id","groupName","description"])};return Object(n.isArray)(e.UserGroupList.UserGroup)?e.UserGroupList.UserGroup.filter((function(e){return!!e.id})).map(t):[t(e.UserGroupList.UserGroup)]}(e.data)})):d.a.get("users/user/details",this.addBaseUrl({headers:{Accept:"application/json"}})).then((function(e){return(t=e.data)&&t.User&&t.User.groups&&t.User.groups.group&&Object(n.isArray)(t.User.groups.group)?t.User.groups.group.filter((function(e){return!!e.id})).map((function(e){return Object(n.pick)(e,["id","groupName","description"])})):Object(n.has)(t.User.groups.group,"id","groupName")?[t.User.groups.group]:[];var t}))},getUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="extjs/search/users"+(e?"/"+e:"");return d.a.get(r,this.addBaseUrl(t)).then((function(e){return e.data}))},getUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{params:{includeattributes:!0}},r="users/user/"+e;return d.a.get(r,this.addBaseUrl(t)).then((function(e){return e.data}))},updateUser:function(e,t,r){var n="users/user/"+e,o=s()({},t);return""===o.newPassword&&delete o.newPassword,d.a.put(n,{User:o},this.addBaseUrl(r)).then((function(e){return e.data}))},createUser:function(e,t){return d.a.post("users/",{User:S.utils.initUser(e)},this.addBaseUrl(t)).then((function(e){return e.data}))},deleteUser:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="users/user/"+e;return d.a.delete(r,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroups:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="extjs/search/groups"+(e?"/"+e:"");return d.a.get(r,this.addBaseUrl(t)).then((function(e){return e.data}))},getGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="usergroups/group/"+e;return d.a.get(r,this.addBaseUrl(t)).then((function(e){var t=e.data.UserGroup,r=t&&t.restUsers&&t.restUsers.User;return b(b({},t),{},{users:r&&(Array.isArray(r)?r:[r])||[]})}))},createGroup:function(e,t){var r;return d.a.post("usergroups/",{UserGroup:b({},e)},this.addBaseUrl(t)).then((function(n){return r=n.data,S.updateGroupMembers(b(b({},e),{},{id:r}),t)})).then((function(){return r}))},updateGroupMembers:function(e,t){var r=this;if(e.newUsers){var o=e.users||e.restUsers&&e.restUsers.User||[],s=(o=Array.isArray(o)?o:[o]).filter((function(t){return Object(n.findIndex)(e.newUsers,(function(e){return e.id===t.id}))<0})),i=e.newUsers.filter((function(e){return Object(n.findIndex)(o,(function(t){return t.id===e.id}))<0})),a=s.map((function(n){return function(){return r.removeUserFromGroup(n.id,e.id,t)}})),u=i.map((function(t){return function(){return r.addUserToGroup(t.id,e.id)}}),t),l=[].concat(h(a.map((function(e){return e.call(r)}))),h(u.map((function(e){return e()}))));return d.a.all(l).then((function(){return b(b({},e),{},{newUsers:null,restUsers:{User:e.newUsers},users:e.newUsers})}))}return new Promise((function(t){t(b({},e))}))},deleteGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="usergroups/group/"+e;return d.a.delete(r,this.addBaseUrl(t)).then((function(e){return e.data}))},addUserToGroup:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="/usergroups/group/"+e+"/"+t+"/";return d.a.post(n,null,this.addBaseUrl(r))},removeUserFromGroup:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="/usergroups/group/"+e+"/"+t+"/";return d.a.delete(n,this.addBaseUrl(r))},verifySession:function(e){return d.a.get("users/user/details",this.addBaseUrl(Object(n.merge)({params:{includeattributes:!0}},e))).then((function(e){return e.data}))},refreshToken:function(e,t,r){var n="session/refresh/"+e+"/"+t;return d.a.post(n,null,this.addBaseUrl(r)).then((function(e){return e.data}))},searchListByAttributes:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/extjs/search/list",n=g.buildObject(e);return d.a.post(r,n,S.addBaseUrl(b(b({},t),{},{headers:{"Content-Type":"application/xml",Accept:"application/json"}}))).then((function(e){return e.data}))},utils:{initUser:function(e){var t=s()({},e);t.newPassword&&(t.password=t.newPassword);var r={name:"UUID",value:a()()};return t.attribute=t.attribute&&t.attribute.length>0?[].concat(h(t.attribute),[r]):[r],t}},errorParser:M};t.a=S},"./MapStore2/web/client/api/MultiDim.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"d",(function(){return m}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/rxjs/Rx.js"),s=r("./MapStore2/web/client/libs/ajax.js"),i=r.n(s),a=r("./MapStore2/web/client/utils/ObservableUtils.js");function u(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 l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=n.service,u=void 0===s?"WMTS":s,c=n.version,f=void 0===c?"1.0.0":c,p=n.tileMatrixSet,h=void 0===p?"EPSG:4326":p,m=n.bbox,_=n.domains,y=n.expandLimit;return o.Observable.defer((function(){return i.a.get(e,{params:d(l({service:u,REQUEST:"DescribeDomains",version:f,layer:t,tileMatrixSet:h,bbox:m,domains:_,expandLimit:y},r))})})).let(a.b).switchMap((function(e){return Object(a.c)(e.data)}))},p=function(e,t,r,n,s){var u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=u.service,f=void 0===c?"WMTS":c,p=u.version,h=void 0===p?"1.1.0":p,m=u.tileMatrixSet,_=void 0===m?"EPSG:4326":m,y=u.bbox;return o.Observable.defer((function(){return i.a.get(e,{params:d(l({service:f,REQUEST:"GetHistogram",resolution:s,histogram:r,version:h,layer:t,tileMatrixSet:_,bbox:y},n))})})).let(a.b).switchMap((function(e){return Object(a.c)(e.data)}))},h=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=n.time,u=n.fromValue,l=n.sort,c=void 0===l?"asc":l,f=n.limit,p=void 0===f?20:f,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},m=h.bbox,_=h.tileMatrixSet,y=void 0===_?"EPSG:4326":_,b=h.service,v=void 0===b?"WMTS":b,g=h.version,j=void 0===g?"1.0.0":g;return o.Observable.defer((function(){return i.a.get(e,{params:d({service:v,version:j,request:"GetDomainValues",tileMatrixSet:y,bbox:m,layer:t,domain:r,fromValue:u,sort:c,limit:p,time:s})})})).let(a.b).switchMap((function(e){return Object(a.c)(e.data)}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;return Object(n.endsWith)(t,"/wms")?Object(n.replace)(t,/\/wms$/,"/gwc/service/wmts"):Object(n.endsWith)(t,"/ows")?Object(n.replace)(t,/\/ows$/,"/gwc/service/wmts"):t}},"./MapStore2/web/client/api/WFS.js":function(e,t,r){"use strict";r.r(t),r.d(t,"toDescribeURL",(function(){return h})),r.d(t,"getFeatureSimple",(function(){return m})),r.d(t,"getCapabilitiesURL",(function(){return _})),r.d(t,"getFeatureURL",(function(){return y})),r.d(t,"getFeature",(function(){return b})),r.d(t,"getCapabilities",(function(){return v})),r.d(t,"describeFeatureTypeOGCSchemas",(function(){return g})),r.d(t,"describeFeatureType",(function(){return j}));var n=r("./MapStore2/web/client/libs/ajax.js"),o=r.n(n),s=r("./node_modules/url/url.js"),i=r.n(s),a=r("./node_modules/object-assign/index.js"),u=r.n(a);function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 d(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 f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.version,n=void 0===r?"1.1.0":r,o=i.a.parse(e,!0);return i.a.format(u()({},o,{query:u()({service:"WFS",version:n,request:"GetCapabilities"},o.query)}))},y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.version,o=void 0===n?"1.1.0":n,s=l(r,["version"]),a=i.a.parse(e,!0);return i.a.format(u()({},a,{query:u()(f({service:"WFS",typeName:t,version:o,request:"GetFeature"},s),a.query)}))},b=function(e,t,r){return o.a.get(y(e,t,r))},v=function(e){return o.a.get(_(e))},g=function(e,t){var n=i.a.parse(e,!0),s=i.a.format(u()({},n,{query:u()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},n.query)}));return new Promise((function(e){Promise.all([r.e(1),r.e(31)]).then(function(){var t=r("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(s).then((function(e){var r=t.unmarshalString(e.data);return r&&r.value})))}.bind(null,r)).catch(r.oe)}))},j=function(e,t){return o.a.get(h(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/api/WMS.js":function(e,t,r){"use strict";var n=r("./node_modules/url/url.js"),o=r.n(n),s=r("./MapStore2/node_modules/lodash/lodash.js"),i=r.n(s),a=r("./node_modules/object-assign/index.js"),u=r.n(a),l=r("./node_modules/xml2js/lib/xml2js.js"),c=r.n(l),d=r("./MapStore2/web/client/libs/ajax.js"),f=r.n(d),p=r("./MapStore2/web/client/utils/ConfigUtils.js"),h=r("./MapStore2/web/client/utils/CoordinatesUtils.js");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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,a=(r.WMS_Capabilities||r.WMT_MS_Capabilities||{}).Capability,l=(r.WMS_Capabilities||r.WMT_MS_Capabilities||{}).Service,c=w(a),d=a.Layer&&(a.Layer.SRS||a.Layer.CRS)||[],f=a.Layer&&a.Layer.Attribution&&g(a.Layer.Attribution),p=a.Request&&a.Request.GetMap&&a.Request.GetMap.Format||[],h=j(a),m=i.a.isArray(h)?h:[h],_=m.filter((function(e){return!s||-1!==e.Name.toLowerCase().indexOf(s.toLowerCase())||e.Title&&-1!==e.Title.toLowerCase().indexOf(s.toLowerCase())||e.Abstract&&-1!==e.Abstract.toLowerCase().indexOf(s.toLowerCase())}));return{numberOfRecordsMatched:_.length,numberOfRecordsReturned:Math.min(o,_.length),nextRecord:n+Math.min(o,_.length)+1,service:l,layerOptions:{version:(null===(e=r.WMS_Capabilities||r.WMT_MS_Capabilities)||void 0===e||null===(t=e.$)||void 0===t?void 0:t.version)||"1.3.0"},records:_.filter((function(e,t){return t>=n-1&&t2&&void 0!==arguments[2]?arguments[2]:{},s=o.a.parse(e,!0),i=o.a.format(u()({},s,{query:u()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},s.query,n.query||{})}));return new Promise((function(e){Promise.all([r.e(1),r.e(14)]).then(function(){var t=r("./MapStore2/web/client/utils/ogc/WMS.js").unmarshaller;e(f.a.get(v(i)).then((function(e){var r=t.unmarshalString(e.data);return r&&r.value&&r.value.layerDescription&&r.value.layerDescription[0]})))}.bind(null,r)).catch(r.oe)}))},getRecords:M,describeLayers:function(e,t){var r=o.a.parse(e,!0),n=o.a.format(u()({},r,{query:u()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},r.query)}));return f.a.get(v(n)).then((function(e){var t;return c.a.parseString(e.data,{explicitArray:!1},(function(e,r){t=r&&r.WMS_DescribeLayerResponse&&r.WMS_DescribeLayerResponse.LayerDescription})),(t=Array.isArray(t)?t:[t]).map((function(e){return _(_({},e&&e.$||{}),{},{layerName:e&&e.$&&e.$.name,query:_({},e&&e.query&&e.query.$||{})})}))}))},textSearch:function(e,t,r,n){return M(e,t,r,n)},parseLayerCapabilities:function e(t,r,n){return i.a.castArray(n||i.a.get(t,"capability.layer.layer")).reduce((function(n,o){return n||(!o.name&&o.layer?e(t,r,i.a.castArray(o.layer)):2===r.name.split(":").length&&o.name&&2===o.name.split(":").length?r.name===o.name&&o:o.name&&2===o.name.split(":").length?r.name===o.name.split(":")[1]&&o:2===r.name.split(":").length?r.name.split(":")[1]===o.name&&o:r.name===o.name&&o)}),null)},getBBox:function(e,t){for(var r=e,n=r.EX_GeographicBoundingBox||r.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(r.BoundingBox)||r.LatLonBoundingBox&&r.LatLonBoundingBox.$||r.latLonBoundingBox;!n&&r.Layer&&r.Layer.length;)n=(r=r.Layer[0]).EX_GeographicBoundingBox||r.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(r.BoundingBox)||r.LatLonBoundingBox&&r.LatLonBoundingBox.$||r.latLonBoundingBox;n||(n={westBoundLongitude:-180,southBoundLatitude:-90,eastBoundLongitude:180,northBoundLatitude:90});var o={extent:[n.westBoundLongitude||n.minx,n.southBoundLatitude||n.miny,n.eastBoundLongitude||n.maxx,n.northBoundLatitude||n.maxy],crs:"EPSG:4326"};return t?{crs:o.crs,bounds:{minx:o.extent[0],miny:o.extent[1],maxx:o.extent[2],maxy:o.extent[3]}}:o},reset:function(){Object.keys(b).forEach((function(e){delete b[e]}))}};t.a=S},"./MapStore2/web/client/api/persistence/index.js":function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"getResource",(function(){return O})),r.d(n,"getResourceIdByName",(function(){return E})),r.d(n,"getResourceDataByName",(function(){return k})),r.d(n,"getResources",(function(){return T})),r.d(n,"createResource",(function(){return L})),r.d(n,"createCategory",(function(){return A})),r.d(n,"updateResource",(function(){return P})),r.d(n,"deleteResource",(function(){return D})),r.d(n,"searchListByAttributes",(function(){return C})),r.d(n,"updateResourceAttribute",(function(){return I}));var o=r("./node_modules/rxjs/Rx.js"),s=r("./node_modules/uuid/v1.js"),i=r.n(s),a=r("./MapStore2/node_modules/lodash/lodash.js"),u=r("./MapStore2/web/client/api/GeoStoreDAO.js"),l=r("./MapStore2/web/client/utils/ResourceUtils.js");function c(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 d(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"";return"rest/geostore/data/".concat(e).concat(t)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return r.getResourceAttributes(e)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name;return t(r)})).map((function(e){var t=e.value;return Object(l.a)(t)})).filter((function(e){return!Object(a.isNil)(e)}))}))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.concat(t)},j=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return t?o.Observable.defer((function(){return r.updateResourcePermissions(e,{SecurityRuleList:{SecurityRule:t}})})):o.Observable.empty()},w=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return"NODATA"===r.data?o.Observable.fromPromise(i.deleteResource(n)).catch((function(){return o.Observable.of("DUMMY")})).switchMap((function(){return o.Observable.fromPromise(i.updateResourceAttribute(e,t,"NODATA"))})):o.Observable.forkJoin([i.putResource(n,r.data).switchMap((function(){return o.Observable.defer((function(){return i.updateResourceAttribute(e,t,b(n,r.tail))}))}))].concat(h(s?[j(n,s,i)]:[])))},x=function(e,t,r,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return"NODATA"!==r.data?o.Observable.defer((function(){return s.createResource({name:"".concat(e,"-").concat(t,"-").concat(i()())},r.data,r.category)})).pluck("data").switchMap((function(i){return o.Observable.forkJoin([o.Observable.defer((function(){return s.updateResourceAttribute(e,t,b(i,r.tail))}))].concat(h(n?[j(i,n,s)]:[]))).map((function(){return i}))})):o.Observable.of(-1)},M=function(e,t,r,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.a;return o.Observable.defer((function(){return s.getResourceAttributes(e)})).switchMap((function(o){var i,u=null===(i=Object(a.find)(o,{name:t}))||void 0===i?void 0:i.value;return Object(l.a)(u)?w(e,t,r,Object(l.a)(u),n,s):x(e,t,r,n,s)})).catch((function(o){return x(e,t,r,n,s,o)}))},S=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.a;return v(e,(function(e){return!Object(a.includes)(Object.keys(t),e)})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?o.Observable.of([]):o.Observable.forkJoin(e.map((function(e){return j(e,r,n)})))}))},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.includeAttributes,n=void 0===r||r,s=t.withData,i=void 0===s||s,a=t.withPermissions,l=void 0!==a&&a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.forkJoin([o.Observable.defer((function(){return c.getShortResource(e)})).pluck("ShortResource")].concat(h(n?[o.Observable.defer((function(){return c.getResourceAttributes(e)}))]:[]),h(i?[o.Observable.defer((function(){return c.getData(e)}))]:[]),h(l?[o.Observable.defer((function(){return c.getResourcePermissions(e,{},!0)}))]:[]))).map((function(e){var t=p(e,4),r=t[0],n=t[1],o=t[2],s=t[3];return d(d({},r),{},{attributes:(n||[]).reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{}),data:o,permissions:s})}))},E=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return r.getResourceIdByName(e,t)}))},k=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return r.getResourceDataByName(e,t)}))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?"*":t,n=e.category,s=e.options,i=void 0===s?{params:{start:0,limit:10},includeAttributes:!1,withData:!1,withPermission:!1}:s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return a.getResourcesByCategory(n,r,i)})).map((function(e){var t=e.results,r=void 0===t?[]:t,n=e.totalCount,o=void 0===n?0:n,s=i.includeAttributes,u=i.withData,l=i.withPermission;return s||u||l?{totalCount:o,results:r.map((function(e){var t=e.id;return O(t,i,a)}))}:{totalCount:o,results:r}}))},L=function(e){var t=e.data,r=e.category,n=e.metadata,s=e.permission,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return l.createResource(n,t,r)})).pluck("data").switchMap((function(e){return o.Observable.defer((function(){return l.getResourcePermissions(e)})).map((function(e){return g(e,s)})).switchMap((function(t){return j(e,t,l).map((function(){return{id:e,permission:t}}))}))})).switchMap((function(e){var t=e.id,r=e.permission;return Object.keys(a).length>0?o.Observable.forkJoin(Object.keys(a).filter((function(e){return a[e].data&&"NODATA"!==a[e].data})).map((function(e){return x(t,e,a[e],r,l)}))).map((function(){return t})):o.Observable.of(t)}))},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return t.createCategory(e)}))},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.data,n=e.permission,s=e.metadata,i=e.linkedResources,a=void 0===i?{}:i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a,c=Object.keys(a);return o.Observable.forkJoin([o.Observable.defer((function(){return l.putResourceMetadataAndAttributes(t,s)})).switchMap((function(e){return r?o.Observable.defer((function(){return l.putResource(t,r)})):o.Observable.of(e)})).switchMap((function(e){return n?o.Observable.defer((function(){return j(t,n,l)})):o.Observable.of(e)})),(c.length>0?o.Observable.forkJoin.apply(o.Observable,h(c.map((function(e){return M(t,e,a[e],n,l)})))):o.Observable.of([])).switchMap((function(){return n?o.Observable.defer((function(){return S(t,a,n,l)})):o.Observable.of(-1)}))]).map((function(){return t}))},D=function(e){var t=e.id,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.deleteLinkedResources,s=void 0===n||n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return(s?v(t,(function(){return!0}),i):o.Observable.of([])).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return o.Observable.forkJoin([t].concat(h(e)).map((function(e){return i.deleteResource(e)})))}))},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return o.Observable.defer((function(){return r.searchListByAttributes(e,t)})).switchMap((function(e){if(!e||!Object(a.get)(e,"ExtResourceList.Resource"))return o.Observable.of({results:[],totalCount:0});var n=Object(a.get)(e,"ExtResourceList.Resource",[]),s=(Object(a.isArray)(n)?n:[n]).map((function(e){return d(d({},Object(a.omit)(e,"Attributes")),{},{attributes:(t=e,r=Object(a.get)(t,"Attributes.attribute"),n=Object(a.isArray)(r)&&r||Object(a.isObject)(r)&&[r],n&&n.reduce((function(e,t){return d(d({},e),{},f({},t.name,t.value))}),{})||{})});var t,r,n}));return(t.withPermissions?o.Observable.forkJoin(s.map((function(e){return o.Observable.defer((function(){return r.getResourcePermissions(e.id,{},!0)})).map((function(t){return d(d({},e),{},{permissions:t})}))}))):o.Observable.of(s)).map((function(t){return{results:t,totalCount:Object(a.get)(e,"ExtResourceList.ResourceCount")}}))}))},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.name,n=e.value,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return o.Observable.defer((function(){return s.updateResourceAttribute(t,r,n)})).switchMap((function(){return o.Observable.of(t)}))},R=r("./MapStore2/web/client/utils/ConfigUtils.js");r.d(t,"a",(function(){return N})),r.d(t,"g",(function(){return F})),r.d(t,"d",(function(){return U})),r.d(t,"b",(function(){return H})),r.d(t,"e",(function(){return B})),r.d(t,"h",(function(){return W})),r.d(t,"i",(function(){return z})),r.d(t,"f",(function(){return G}));var Y={geostore:n},N=function(e,t){Y[e]=t},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"geostore";y.api=e},U=function(){var e;return(e=y.getApi()).getResource.apply(e,arguments)},H=function(){var e;return(e=y.getApi()).createResource.apply(e,arguments)},B=function(){var e;return(e=y.getApi()).getResources.apply(e,arguments)},W=function(){var e;return(e=y.getApi()).updateResource.apply(e,arguments)},z=function(){var e;return(e=y.getApi()).updateResourceAttribute.apply(e,arguments)},G=function(){var e;return(e=y.getApi()).searchListByAttributes.apply(e,arguments)};y={api:"geostore",addApi:N,setApi:F,getApi:function(){return Y[R.default.getConfigProp("persistenceApi")||y.api]},getResource:U,getResourceIdByName:function(){var e;return(e=y.getApi()).getResourceIdByName.apply(e,arguments)},getResourceDataByName:function(){var e;return(e=y.getApi()).getResourceDataByName.apply(e,arguments)},createResource:H,createCategory:function(){var e;return(e=y.getApi()).createCategory.apply(e,arguments)},getResources:B,updateResource:W,updateResourceAttribute:z,deleteResource:function(){var e;return(e=y.getApi()).deleteResource.apply(e,arguments)},searchListByAttributes:G};t.c=y},"./MapStore2/web/client/components/I18N/Localized.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),s=r("./node_modules/react/index.js"),i=r.n(s),a=r("./node_modules/react-intl/lib/index.es.js");function u(e){return(u="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){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 c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(n,o){return"string"==typeof t[o]?c(b({},r+o,t[o]),n):c(c({},e.flattenMessages(t[o],r+o+".")),n)}),{})})),e}return t=s,(r=[{key:"getChildContext",value:function(){return{locale:this.props.locale,messages:this.props.messages}}},{key:"render",value:function(){var e=this.props.children;return this.props.messages&&this.props.locale?("function"==typeof e&&(e=e()),i.a.createElement(a.IntlProvider,{key:this.props.locale,locale:this.props.locale,messages:this.flattenMessages(this.props.messages)},e)):this.props.loadingError?i.a.createElement("div",{className:"loading-locale-error"},this.props.loadingError):null}}])&&f(t.prototype,r),n&&f(t,n),s}(i.a.Component);b(v,"propTypes",{locale:o.a.string,messages:o.a.object,loadingError:o.a.string}),b(v,"childContextTypes",{locale:o.a.string,messages:o.a.object}),t.a=v},"./MapStore2/web/client/components/app/StandardApp.jsx":function(e,t,r){"use strict";(function(e){var n=r("./node_modules/react/index.js"),o=r.n(n),s=r("./node_modules/react-redux/es/index.js"),i=r("./node_modules/prop-types/index.js"),a=r.n(i),u=r("./node_modules/react-dnd/lib/index.js"),l=r("./node_modules/react-dnd-html5-backend/lib/index.js"),c=r.n(l),d=r("./MapStore2/web/client/actions/browser.js"),f=r("./MapStore2/web/client/actions/locale.js"),p=r("./MapStore2/web/client/actions/localConfig.js"),h=r("./MapStore2/web/client/actions/print.js"),m=r("./MapStore2/web/client/utils/ConfigUtils.js"),_=r("./MapStore2/web/client/utils/PluginsUtils.js"),y=r("./node_modules/url/url.js"),b=r.n(y),v=r("./MapStore2/node_modules/lodash/isObject.js"),g=r.n(v),j=r("./MapStore2/node_modules/lodash/isArray.js"),w=r.n(j);r("./MapStore2/web/client/components/app/appPolyfill.js");function x(e){return(x="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 M(){return(M=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function O(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 E(e){for(var t=1;t([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,g=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&&d(e,t)}(i,e);var t,r,n,s=f(i);function i(){return l(this,i),s.apply(this,arguments)}return t=i,(r=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),r=t&&2===t.length?v.exec(e)[1]:"";r=r.replace(/body[,]+/g,"");var n=e.replace(b,"$1").trim();return o.a.createElement(a.a,{html:r+n})}}])&&c(t.prototype,r),n&&c(t,n),i}(o.a.Component);m=g,_="propTypes",y={response:i.a.string},_ in m?Object.defineProperty(m,_,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[_]=y,t.a=g},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/react/index.js"),o=r.n(n),s=r("./node_modules/recompose/es/Recompose.js"),i=r("./MapStore2/node_modules/lodash/lodash.js"),a=r("./MapStore2/web/client/utils/TemplateUtils.js"),u=r("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),l=r("./node_modules/prop-types/index.js"),c=r.n(l),d=r("./MapStore2/web/client/utils/StringUtils.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",r=S[t]||S.PROPERTIES;return o.a.createElement(r,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),s=r("./node_modules/react/index.js"),i=r.n(s);function a(e){return(a="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}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 g(e){for(var t=1;t0){var r=a.e.mapPluginsPosition(t),n=r.bodyPlugins,s=b(r,["bodyPlugins"]),i=Object.keys(s).reduce((function(t,r){return g(g({},t),{},T({},r,e.renderPlugins(s[r])))}),{});return o.a.createElement(L,j({id:this.props.id,className:this.props.className,style:this.props.style,component:this.props.component},i),this.renderPlugins(n))}return null}}])&&x(t.prototype,r),n&&x(t,n),i}(o.a.Component);T(A,"propTypes",{mode:i.a.string,params:i.a.object,plugins:i.a.object,pluginsConfig:i.a.oneOfType([i.a.object,i.a.array]),id:i.a.string,className:i.a.string,component:i.a.any,style:i.a.object,pluginsState:i.a.object,monitoredState:i.a.object,defaultMode:i.a.string,onPluginLoaded:i.a.func,onPluginsLoaded:i.a.func}),T(A,"contextTypes",{store:i.a.object}),T(A,"childContextTypes",{locale:i.a.string,messages:i.a.object,plugins:i.a.object,pluginsConfig:i.a.array,loadedPlugins:i.a.object}),T(A,"defaultProps",{mode:"desktop",defaultMode:"desktop",component:"div",params:{},plugins:{},pluginsConfig:{},id:"plugins-container",className:"plugins-container",style:{},pluginsState:{},monitoredState:{},onPluginLoaded:function(){},onPluginsLoaded:function(){}}),t.default=A},"./MapStore2/web/client/components/theme/Theme.jsx":function(e,t,r){"use strict";var n=r("./node_modules/prop-types/index.js"),o=r.n(n),s=r("./node_modules/react/index.js"),i=r.n(s),a=r("./node_modules/react-side-effect/lib/index.js"),u=r.n(a),l=r("./MapStore2/web/client/utils/ConfigUtils.js"),c=r("./MapStore2/web/client/selectors/version.js"),d=r("./MapStore2/node_modules/lodash/lodash.js");function f(e){return(f="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"mapstore.embedded";if(e){var t=localStorage.getItem(e);if(t)return JSON.parse(t)}return null},onAction:function(e,t){var r=P[e]||[];r.push(t),P[e]=r},offAction:function(e,t){var r=(P[e]||[]).filter((function(e){return e!==t}));P[e]=r},onStateChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};D.push({listener:e,selector:t})},offStateChange:function(e){D=D.filter((function(t){return t!==e}))},withPlugins:function(e,t){return a()({},C,{create:Object(s.partialRight)(C.create,s.partialRight.placeholder,s.partialRight.placeholder,e),defaultOptions:t||{}})},triggerAction:function(e){return T(e)}};e.Intl||Object(j.a)(),t.a=C}).call(this,r("./node_modules/webpack/buildin/global.js"))},"./MapStore2/web/client/libs/ajax.js":function(e,t,r){function n(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 o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.d:var r=t.property||"enabled";return s()({},e,i({},t.control,s()({},e[t.control],i({},r,!(e[t.control]||{})[r]))));case n.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?s()({},e,i({},t.control,s()({},e[t.control],i({},t.property,void 0)))):s()({},e,i({},t.control,s()({},e[t.control],i({},t.property,t.value))));case n.b:return s()({},e,i({},t.control,s()({},e[t.control],t.properties)));case n.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),a=o.reduce((function(t,r){return s()(t,i({},r,s()({},e[r],!0===e[r].enabled?{enabled:!1}:{})))}),{});return s()({},e,a);default:return e}}},"./MapStore2/web/client/reducers/layers.js":function(e,t,r){"use strict";var n=r("./MapStore2/web/client/actions/layers.js"),o=r("./MapStore2/web/client/actions/controls.js"),s=r("./node_modules/object-assign/index.js"),i=r.n(s),a=r("./node_modules/uuid/v1.js"),u=r.n(a),l=r("./MapStore2/node_modules/lodash/lodash.js"),c=r("./MapStore2/web/client/utils/LayersUtils.js");function d(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 f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?t.filter((function(e){return e.id&&e.id!==r||Object(l.isString)(e)&&e!==r})).map((function(t){return Object(l.isObject)(t)?i()({},t,t.nodes?{nodes:e(t.nodes,r)}:{}):t})):t},b=function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=y(e,t),i=Object(c.getNode)(s,r);if(i)s=Object(c.deepChange)(s,i.id,"nodes",o?[t].concat(i.nodes.slice(0)):i.nodes.concat(t));else{i=Object(l.head)(Object(c.getLayersByGroup)([Object(c.getNode)(n,t)]));var a=r.split(".").reduce((function(e,t,n){var o=r.split(".",n+1).join("."),i=Object(c.getNode)(s,o);return i?e.concat(i):e}),[]).pop();a?(i=Object(c.getNode)([i],a.id).nodes[0],s=Object(c.deepChange)(s,a.id,"nodes",o?[i].concat(a.nodes):a.nodes.concat(i))):s=[i].concat(s)}return s},v=function e(t,r,n){return n?t.map((function(t){return Object(l.isString)(t)?t:t.id===n?f(f({},t),{},{nodes:[].concat(h(t.nodes),[r])}):f(f({},t),{},{nodes:e(t.nodes,r,n)})})):[].concat(h(t),[r])},g=function e(t,r,n){if(t){if(Object(l.isString)(t.id)){var o=t.id.lastIndexOf("."),s=-1!==o?r+t.id.slice(o+(""===r?1:0)):r+(""===r?"":".")+t.id;return i()({},t,{id:s,nodes:t.nodes.map((function(t){return e(t,s,n)}))})}if(Object(l.isString)(t)){var a,u=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=m(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw s}}}}(n);try{for(u.s();!(a=u.n()).done;){var c=a.value;c.id===t&&(c.group=r)}}catch(e){u.e(e)}finally{u.f()}return t}}return t};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flat:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.d:return"RefreshLayers"===t.control?i()({},e,{refreshError:[]}):e;case n.p:var r=(e.flat||[]).map((function(e){return e.id===t.layerId?i()({},e,{loading:!0}):e}));return i()({},e,{flat:r});case n.o:var s=(e.flat||[]).map((function(e){return e.id===t.layerId?i()({},e,{loading:!1,previousLoadingError:e.loadingError,loadingError:!!t.error&&"Error"}):e}));return i()({},e,{flat:s});case n.n:var a=t.tilesCount===t.tilesErrorCount,d=(e.flat||[]).map((function(e){return e.id===t.layerId?i()({},e,{previousLoadingError:e.loadingError,loadingError:a?"Error":"Warning"}):e}));return i()({},e,{flat:d});case n.r:return i()({},e,{refreshing:t.layers,refreshError:[]});case n.m:var m=(e.refreshing||[]).filter((function(e){return 0===t.layers.filter((function(t){return t.layer===e.id})).length})),_=t.layers.map((function(e){return{layer:e.fullLayer.title,error:t.error}}));return i()({},e,{refreshing:m,refreshError:[].concat(h(e.refreshError||[]),h(_))});case n.l:var j=(e.refreshing||[]).filter((function(e){return 0===t.layers.filter((function(t){return t.layer===e.id})).length}));return i()({},e,{refreshing:j});case n.e:case n.f:var w=e.flat||[],x=w.reduce((function(e,r){return e||r.id===t.layer&&"background"===r.group}),!1),M=w.map((function(e){return Object(l.includes)(Object(l.castArray)(t.layer),e.id)?i()({},e,t.newProperties,t.params?{params:i()({},e.params,t.params)}:{}):"background"===e.group&&x&&t.newProperties&&t.newProperties.visibility?i()({},e,{visibility:!1}):i()({},e)}));return i()({},e,{flat:M});case n.d:var S=e.flat.map((function(e){var r=e.group||"Default";return r===t.group||0===r.indexOf("".concat(t.group,"."))?i()({},e,t.newProperties):i()({},e)}));return i()({},e,{flat:S});case n.y:var O="layers"===t.nodeType?"flat":"groups",E=e[O]||[],k=Object(c.deepChange)(E,t.node,"expanded",t.status);return i()({},e,p({},O,k));case n.x:var T=Object(c.getNode)(e.groups||[],t.node),L=T&&T.nodes||"root"===t.node&&e.groups||null;if(L){var A=t.order.map((function(e){return L[e]})),P="root"===t.node?A:Object(c.deepChange)(e.groups,t.node,"nodes",A),D=t.sortLayers?t.sortLayers(P,e.flat):e.flat;return i()({},e,{groups:P,flat:D})}return e;case n.A:var C="groups"===t.nodeType?"group":"id";if("group"===C){var I=e.groups?[].concat(e.groups):[],R=Object(c.deepChange)(I,t.node,t.options);return i()({},e,{groups:R})}var Y=e.flat||[],N=!t.options.hasOwnProperty("group"),F=Y.map((function(e){return e[C]===t.node||0===e[C].indexOf(t.node+".")?(e.group===(t.options.group||"Default")&&(N=!0),i()({},e,t.options)):i()({},e)})),U=Object(l.head)(Y.filter((function(e){return e[C]===t.node||0===e[C].indexOf(t.node+".")})));if(!N&&U){var H=t.options.group||"Default",B=b(e.groups,t.node,H,F),W=c.sortLayers?Object(c.sortLayers)(B,F):F;return i()({},e,{flat:W,groups:B})}return i()({},e,{flat:F});case n.q:var z=Object(c.getNode)(e.groups||[],t.node),G=Object(c.getNode)(e.flat,t.node);if(z&&t.index>=0&&"root"!==z.id&&"Default"!==z.id&&(!G||"root"!==t.groupId)){var q=t.groupId||"Default",V=G?G.group||"Default":function(){var e=z.id.split(".");return e[e.length-2]||"root"}();if(q===V){var K="root"===V?{nodes:e.groups}:Object(c.getNode)(e.groups,V),J=(K&&K.nodes||[]).slice(),$=J.findIndex((function(e){return(e.id||e)===(z.id||z)}));if(-1!==$&&$!==t.index){for(var X=Math.abs(t.index-$),Q=$1?[t.id]:[]:Oe=[];return i()({},e,{selected:Oe,settings:{expanded:!1,node:null,nodeType:null,options:{}},layerMetadata:{expanded:!1,metadataRecord:{},maskLoading:!1}});case n.i:return i()({},e,{filter:t.text||""});case n.v:var Le=i()({},e.layerMetadata,{metadataRecord:t.metadataRecord,expanded:!0,maskLoading:t.maskLoading});return i()({},e,{layerMetadata:Le});case n.j:var Ae=i()({},e.layerMetadata,{metadataRecord:{},expanded:!1});return i()({},e,{layerMetadata:Ae});default:return e}}},"./MapStore2/web/client/reducers/map.js":function(e,t,r){"use strict";var n=r("./MapStore2/web/client/actions/map.js"),o=r("./node_modules/object-assign/index.js"),s=r.n(o),i=r("./MapStore2/web/client/utils/MapUtils.js"),a=r("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eventListeners:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.e:t.type;var r=d(t,["type"]);return s()({},e,r);case n.f:return s()({},e,{mousePointer:t.pointer});case n.h:return s()({},e,{zoom:t.zoom,mapStateSource:t.mapStateSource});case n.b:return s()({},e,{limits:{restrictedExtent:t.restrictedExtent,crs:t.crs,minZoom:t.minZoom}});case n.a:return s()({},e,{projection:t.crs});case n.c:if(t.scales){var o=e&&e.mapOptions&&e.mapOptions.view&&e.mapOptions.view.DPI||null,c=i.default.getResolutionsForScales(t.scales,e&&e.projection||"EPSG:4326",o);return s()({},e,{mapOptions:s()({},e&&e.mapOptions,{view:s()({},e&&e.mapOptions&&e.mapOptions.view,{resolutions:c,scales:t.scales})})})}if(e&&e.mapOptions&&e.mapOptions.view&&e.mapOptions.view&&e.mapOptions.view.resolutions){var f=s()({},e);return f.mapOptions=s()({},f.mapOptions),f.mapOptions.view=s()({},f.mapOptions.view),delete f.mapOptions.view.resolutions,0===Object.keys(f.mapOptions.view).length&&delete f.mapOptions.view,0===Object.keys(f.mapOptions).length&&delete f.mapOptions,f}return e;case n.q:return s()({},e,{resolutions:t.resolutions});case n.u:return s()({},e,{center:a.default.reproject(t.pos,t.crs,"EPSG:4326"),zoom:t.zoom,mapStateSource:null});case n.n:var p=a.default.reproject(t.center,t.center.crs||"EPSG:4326","EPSG:4326");return s()({},e,{center:p,mapStateSource:null});case n.d:return s()({},e,{mapStateSource:t.mapStateSource,style:t.style,resize:e.resize?e.resize+1:1});case n.p:return s()({},e,{resize:e.resize?e.resize+1:1});case n.g:var h=s()({},e.bbox,{rotation:t.rotation});return s()({},e,{bbox:h,mapStateSource:t.mapStateSource});case n.s:return s()({},e,{version:t.version});case n.o:return s()({},e,{eventListeners:s()({},e.eventListeners||{},u({},t.eventName,[].concat(l(e.eventListeners&&e.eventListeners[t.eventName]||[]),[t.toolName])))});case n.r:var m=e;if(e.eventListeners){var _=e.eventListeners[t.eventName].filter((function(e){return e!==t.toolName}))||[];m=s()({},e,{eventListeners:s()({},e.eventListeners,u({},t.eventName,_))})}return m;default:return e}}},"./MapStore2/web/client/reducers/security.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/actions/security.js"),o=r("./MapStore2/web/client/actions/controls.js"),s=(r("./MapStore2/web/client/api/GeoStoreDAO.js"),r("./MapStore2/node_modules/lodash/lodash.js"));var i=r("./MapStore2/web/client/utils/SecurityUtils.js"),a=r("./node_modules/object-assign/index.js"),u=r.n(a);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{user:null,errorCause:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"USERMANAGER_UPDATE_USER":return e.user&&t.user&&e.user.id===t.user.id?u()({},e,{user:Object(s.cloneDeep)(t.user)}):e;case o.c:return"ResetPassword"===t.control&&"enabled"===t.property?u()({},e,{passwordChanged:!1,passwordError:null}):e;case n.d:var r=Object(i.getUserAttributes)(t.userDetails.User),a=Object(s.head)(r.filter((function(e){return"uuid"===e.name.toLowerCase()}))),l=new Date/1e3|0;return u()({},e,{user:t.userDetails.User,token:t.userDetails&&t.userDetails.access_token||a&&a.value,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?l+t.userDetails.expires:l+172800,authHeader:t.authHeader,loginError:null});case n.f:var c=new Date/1e3|0;return u()({},e,{token:t.userDetails&&t.userDetails.access_token,refresh_token:t.userDetails&&t.userDetails.refresh_token,expires:t.userDetails&&t.userDetails.expires?c+t.userDetails.expires:c+172800});case n.c:return u()({},e,{loginError:t.error});case n.g:return u()({},e,{loginError:null});case n.e:return u()({},e,{user:null,token:null,refresh_token:null,expires:null,authHeader:null,loginError:null});case n.b:return u()({},e,{user:u()({},e.user,u()({},t.user,{date:(new Date).getTime()})),authHeader:t.authHeader,passwordChanged:!0,passwordError:null});case n.a:return u()({},e,{passwordError:t.error,passwordChanged:!1});case n.h:return u()({},e,{user:t.userDetails.User,loginError:null});default:return e}}},"./MapStore2/web/client/reducers/version.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/actions/version.js"),o=r("./node_modules/object-assign/index.js"),s=r.n(o);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.CHANGE_VERSION:return s()({},e,{current:t.version});case n.LOAD_VERSION_ERROR:return s()({},e,{current:"no-version"});default:return e}}},"./MapStore2/web/client/selectors/config.js":function(e,t,r){"use strict";r.r(t),r.d(t,"loadAfterThemeSelector",(function(){return n}));var n=function(e){return e.localConfig&&e.localConfig.loadAfterTheme}},"./MapStore2/web/client/selectors/context.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return _}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/web/client/selectors/localConfig.js"),s=r("./MapStore2/node_modules/lodash/lodash.js"),i=r("./MapStore2/web/client/utils/ConfigUtils.js"),a=r("./MapStore2/web/client/utils/PluginsUtils.js");function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(u(e),["Context"])}})),p=function(e){return f(e)},h=Object(n.a)((function(e){return Object(s.get)(c(e),"plugins")}),(function(e){return Object(s.get)(c(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(u(Object(s.get)(e,"desktop",[])),u(t.filter((function(e){return e.active}))))}})),m=(Object(n.a)(c,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(s.get)(e,"context.loading")}(e)?p(e):h(e)||f(e)}),_=function(e){return Object(n.a)(c,m,(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(s.findIndex)(Object(s.get)(r,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(n.a)((function(e){return Object(a.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/controls.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"h",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"i",(function(){return u})),r.d(t,"j",(function(){return l})),r.d(t,"k",(function(){return c})),r.d(t,"l",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"f",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return m}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return function(e,t){return function(r){return Object(n.get)(r,"controls[".concat(e,"][").concat(t,"]"))}}(e,"enabled")},s=function(e){return Object(n.get)(e,"controls.measure.showCoordinateEditor")},i=function(e){return Object(n.get)(e,"controls.measure.enabled")},a=function(e){return Object(n.get)(e,"controls.queryPanel.enabled")},u=function(e){return!!Object(n.get)(e,"controls.layerdownload.available")},l=function(e){return!!Object(n.get)(e,"controls.layerdownload.enabled")},c=function(e){return Object(n.get)(e,"controls.widgetBuilder.available",!1)},d=function(e){return Object(n.get)(e,"controls.widgetBuilder.enabled")},f=function(e){return Object(n.get)(e,"controls.layersettings.initialSettings")||{}},p=function(e){return Object(n.get)(e,"controls.layersettings.originalSettings")||{}},h=function(e){return Object(n.get)(e,"controls.layersettings.activeTab")||"general"},m=function(e){return Object(n.get)(e,"controls.drawer.enabled",!1)}},"./MapStore2/web/client/selectors/dimension.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"d",(function(){return p})),r.d(t,"i",(function(){return h})),r.d(t,"f",(function(){return m})),r.d(t,"a",(function(){return _})),r.d(t,"h",(function(){return y})),r.d(t,"g",(function(){return b})),r.d(t,"e",(function(){return v})),r.d(t,"c",(function(){return g}));var n=r("./MapStore2/web/client/selectors/layers.js"),o=r("./node_modules/reselect/es/index.js"),s=r("./MapStore2/node_modules/lodash/lodash.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(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);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Object(s.find)(e.dimensions||[],{name:t})},p=function(e,t){return function(r){return d(e.id,t)(r)||f(e,t)}},h=function(e){return Object(n.p)(e).reduce((function(t,r){var n=p(r,"time")(e);return n?l(l({},t),{},c({},r.id,n)):t}),{})},m=function(e){return Object(n.p)(e).filter((function(e){return f(e,"time")}))},_=function(e){var t=Object(s.get)(e,"dimension.currentTime");return t&&t.split("/")[0]},y=function(e){return Object(s.get)(e,"dimension.offsetTime")},b=function(e){return!!y(e)},v=(Object(o.a)(h,(function(e){return Object.keys(e).reduce((function(t,r){return[].concat(i(t),i(e[r]&&e[r].values||[]))}),[]).sort()||[]})),function(e){return function(t){return i(Object(s.get)(p(e,"time")(t),"values",[])).sort()}}),g=function(e,t){var r=d(t,"time")(e),n=r&&r.domain&&r.domain.split("--");if(n&&2===n.length)return n&&{start:n[0],end:n[1]};var o=r&&r.domain&&r.domain.split(",");return o&&o.length>0?{start:o[0],end:o[o.length-1]}:null}},"./MapStore2/web/client/selectors/layers.js":function(e,t,r){"use strict";r.d(t,"p",(function(){return h})),r.d(t,"d",(function(){return m})),r.d(t,"g",(function(){return _})),r.d(t,"h",(function(){return y})),r.d(t,"a",(function(){return b})),r.d(t,"c",(function(){return v})),r.d(t,"n",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"k",(function(){return w})),r.d(t,"u",(function(){return x})),r.d(t,"j",(function(){return S})),r.d(t,"l",(function(){return O})),r.d(t,"o",(function(){return E})),r.d(t,"m",(function(){return k})),r.d(t,"w",(function(){return T})),r.d(t,"b",(function(){return L})),r.d(t,"e",(function(){return A})),r.d(t,"v",(function(){return P})),r.d(t,"i",(function(){return D})),r.d(t,"f",(function(){return C})),r.d(t,"q",(function(){return I})),r.d(t,"t",(function(){return R})),r.d(t,"r",(function(){return Y}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/web/client/utils/MapInfoUtils.js"),s=r("./MapStore2/web/client/utils/LayersUtils.js"),i=r("./MapStore2/web/client/utils/SearchUtils.js"),a=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=r("./MapStore2/web/client/selectors/mapInfo.js"),l=r("./MapStore2/node_modules/lodash/lodash.js"),c=r("./MapStore2/web/client/utils/TOCUtils.js");function d(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 f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,r=e.config;return t&&Object(l.isArray)(t)?t:t&&t.flat||r&&r.layers||[]},m=function(e){return Object(l.head)(h(e).filter((function(e){return e&&e.visibility&&"background"===e.group})))},_=function(e,t){return Object(l.head)(h(e).filter((function(e){return e.id===t})))},y=function(e,t){return Object(l.head)(h(e).filter((function(e){return e.name===t})))},b=function(e){return h(e).filter((function(e){return"background"===e.group}))},v=function(e){return Object(l.get)(e,"mapInfo.centerToMarker","")},g=Object(n.a)([h,u.c,function(e){return e.search&&e.search},v,function(e){return Object(l.get)(e,"additionallayers",[])},function(e){return e.annotations&&e.annotations.showMarker&&e.annotations.clickPoint}],(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,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,c=s.filter((function(e){return"override"===e.actionType})),d=s.filter((function(e){return"overlay"===e.actionType})).map((function(e){return e.options})),p=e.map((function(e){var t=(Object(l.head)(c.filter((function(t){return t.id===e.id})))||{}).options;return t?f(f({},e),t):f({},e)}));if(p=p.concat(d),t){p.push(Object(o.h)("GetFeatureInfoHighLight",{features:t.features},void 0,{overrideOLStyle:!0,featuresCrs:t.featuresCrs,style:f(f({},i.a),{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}));var h="enabled"===n?Object(a.getNormalizedLatLon)(t.latlng):t.latlng;p.push(Object(o.h)("GetFeatureInfo",h))}if(u){var m="enabled"===n?Object(a.getNormalizedLatLon)(u.latlng):u.latlng;p.push(Object(o.h)("Annotations",m)),p.push(Object(o.h)("GetFeatureInfo",f({},m)))}if(r&&r.markerPosition){var _=Object(l.isObject)(r.style)&&r.style||{};p.push(Object(o.h)("GeoCoder",r.markerPosition,"marker",{overrideOLStyle:!0,style:f(f({},i.a),_)},r.markerLabel))}return p})),j=function(e){return e.layers&&e.layers.flat&&e.layers.groups||[]},w=function(e){return e.layers&&e.layers.flat&&e.layers.groups&&Object(s.denormalizeGroups)(e.layers.flat,e.layers.groups).groups||[]},x=function(e){return e.layers&&e.layers.selected||[]},M=function(e){return x(e).map((function(t){return Object(l.find)(h(e),{id:t})}))},S=function(e){var t=M(e)||[];return t&&t[0]},O=function(e){return e.layers&&e.layers.filter||""},E=function(e){return e.layers&&e.layers.settings||{expanded:!1,options:{opacity:1}}},k=function(e){return e.layers&&e.layers.layerMetadata||{expanded:!1,metadataRecord:{},maskLoading:!1}},T=function(e){return e.controls&&e.controls.layerdownload?{expanded:e.controls.layerdownload.enabled}:{expanded:!1}},L=function(e){return e.controls&&e.controls.backgroundSelector||{}},A=function(e){var t=L(e),r=b(e)||[];return t.currentLayer&&!Object(l.isEmpty)(t.currentLayer)?t.currentLayer:Object(l.head)(r.filter((function(e){return e.visibility})))||{}},P=function(e){var t=L(e),r=b(e)||[];return t.tempLayer&&!Object(l.isEmpty)(t.tempLayer)?t.tempLayer:Object(l.head)(r.filter((function(e){return e.visibility})))||{}},D=function(e,t){return(h(e)||[]).filter((function(e){return e&&e.dimensions&&Object(l.find)(Object(l.castArray)(e.dimensions),{name:t})}))},C=function(e){var t=E(e),r=h(e),n=w(e);return"layers"===t.nodeType&&Object(l.isArray)(r)&&Object(l.head)(r.filter((function(e){return e.id===t.node})))||"groups"===t.nodeType&&Object(l.isArray)(n)&&Object(l.head)(Object(c.b)(n,0,!0).filter((function(e){return e.id===t.node})))||{}},I=function(e){return h(e).filter(o.b)},R=function(e){return"Error"===(S(e)||{}).loadingError},Y=function(e){return M(e).filter(o.b)}},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},s=function(e){return(o(e)||{}).monitorState},i=function(e){return function(t){return Object(n.get)(function(e){return Object(n.get)(o(e),"plugins")}(t),e)}},a=function(e){return Object(n.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r("./node_modules/reselect/es/index.js"),o=r("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.locale&&e.locale.current||"en-US"},i=function(e){return e.locale&&e.locale.messages||{}},a=Object(n.a)([s],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,r){"use strict";r.d(t,"l",(function(){return i})),r.d(t,"o",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return l})),r.d(t,"j",(function(){return c})),r.d(t,"n",(function(){return d})),r.d(t,"c",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return m})),r.d(t,"g",(function(){return _})),r.d(t,"m",(function(){return y})),r.d(t,"p",(function(){return b})),r.d(t,"k",(function(){return v})),r.d(t,"d",(function(){return j})),r.d(t,"e",(function(){return w})),r.d(t,"f",(function(){return x}));var n=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=r("./node_modules/reselect/es/index.js"),s=r("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},a=Object(o.a)([i],(function(e){return e&&e.projection})),u=function(e){return Object(s.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(s.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(s.get)(i(e),"mapId")&&parseInt(Object(s.get)(i(e),"mapId"),10)||null}(e)},l=function(e){return Object(s.get)(i(e),"info")},c=function(e){var t=Object(s.get)(l(e),"canEdit");return void 0===t?Object(s.get)(e,"context.resource.canEdit"):t},d=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},f=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},p=function(e){return f(e).restrictedExtent},h=function(e){return f(e).crs},m=function(e){var t=f(e),r=a(e);return r&&Object(s.get)(t,'projectionsConstraints["'.concat(r,'"].minZoom'))||Object(s.get)(t,"minZoom")},_=function(e){return Object(s.get)(i(e),"bbox")},y=function(e){return Object(s.get)(function(e){return Object(s.get)(i(e),"limits")}(e),"minZoom")},b=Object(o.a)([function(e){return Object(s.get)(i(e),"resolutions")},a],(function(e,t){if(e&&t){var r=n.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===r?111194.87428468118:1)}))}return[]})),v=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},g=function(e){return Object(s.get)(i(e),"eventListeners.mousemove",[])},j=function(e){return!!g(e).length},w=function(e){return g(e).includes("mouseposition")},x=function(e){return g(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,r){"use strict";r.d(t,"n",(function(){return h})),r.d(t,"m",(function(){return m})),r.d(t,"h",(function(){return _})),r.d(t,"u",(function(){return y})),r.d(t,"p",(function(){return b})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return g})),r.d(t,"o",(function(){return j})),r.d(t,"r",(function(){return w})),r.d(t,"g",(function(){return x})),r.d(t,"v",(function(){return M})),r.d(t,"i",(function(){return S})),r.d(t,"k",(function(){return O})),r.d(t,"j",(function(){return E})),r.d(t,"t",(function(){return k})),r.d(t,"s",(function(){return T})),r.d(t,"l",(function(){return L})),r.d(t,"w",(function(){return A})),r.d(t,"f",(function(){return D})),r.d(t,"e",(function(){return C})),r.d(t,"c",(function(){return Y})),r.d(t,"d",(function(){return N})),r.d(t,"q",(function(){return F}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/reselect/es/index.js"),s=r("./MapStore2/web/client/selectors/map.js"),i=r("./MapStore2/web/client/selectors/context.js"),a=r("./MapStore2/web/client/selectors/locale.js"),u=r("./MapStore2/web/client/utils/MapInfoUtils.js"),l=r("./MapStore2/web/client/selectors/maptype.js"),c=r("./MapStore2/web/client/selectors/localConfig.js");function d(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 f(e){for(var t=1;t0&&t})),_=function(e){return Object(n.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(n.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},b=function(e){return Object(n.get)(e,"mapInfo.configuration",{})},v=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},g=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},j=function(e){return Object(n.get)(e,"mapInfo.itemId",null)},w=function(e){return Object(n.get)(e,"mapInfo.overrideParams",{})},x=function(e){return Object(n.get)(e,"mapInfo.filterNameList",[])},M=Object(o.a)((function(e){return!Object(n.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(n.get)(e,"controls.measure.enabled")&&(Object(n.get)(e,"measurement.lineMeasureEnabled")||Object(n.get)(e,"measurement.areaMeasureEnabled")||Object(n.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(n.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(n.get)(e,"annotations.editing")}),Object(i.b)("Identify"),(function(e,t,r,n,o){return e||!!t||r||!!n||!o})),S=Object(o.c)({format:_,map:s.l,point:v,currentLocale:a.b,maxItems:function(e){return Object(n.get)(e,"mapInfo.configuration.maxItems")}}),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},k=function(e){return e.mapInfo&&e.mapInfo.responses||[]},T=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},L=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},A=Object(o.a)(T,k,_,s.f,(function(e,t,r,n){var o=Object(u.i)(r);return e.length===t.length&&o.getValidResponses(t,n)})),P=Object(o.a)(A,E,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),D=function(e){var t=P(e)||{};return Object(n.get)(t,"layerMetadata.features")},C=function(e){var t=P(e)||{};return Object(n.get)(t,"layerMetadata.featuresCrs")},I=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(n.omit)(e,"radius")}},R=function(e){return function(t){return f(f({},t),{},{style:I(e)(t)})}},Y=Object(o.a)(v,O,D,C,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(n.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,r,o,s,i){return s&&e?t?f(f({},e),{},{featuresCrs:o,features:r&&Object(n.isArray)(r)&&r.map(R(i))}):e:void 0})),N=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},F=function(e){var t,r;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(r=t.configuration)||void 0===r?void 0:r.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===n(e)},s=function(e){return"openlayers"===n(e)}},"./MapStore2/web/client/selectors/security.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));r("./node_modules/object-assign/index.js"),r("./MapStore2/node_modules/lodash/lodash.js");var n=function(e){return e&&e.security&&e.security.user},o=function(e){return n(e)&&n(e).role},s=function(e){return e&&e.security&&e.security.user},i=function(e){return e.security&&e.security.token},a=function(e){return"ADMIN"===o(e)}},"./MapStore2/web/client/selectors/version.js":function(e,t,r){"use strict";r.r(t),r.d(t,"versionSelector",(function(){return n})),r.d(t,"validateVersion",(function(){return o}));var n=function(e){return e.version&&e.version.current||""},o=function(e){return!(!e||-1!==e.indexOf("${mapstore2.version}")||-1!==e.indexOf("no-version"))}},"./MapStore2/web/client/stores/History.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/history/index.js"),o=Object(n.createHashHistory)();t.default=o},"./MapStore2/web/client/stores/StandardStore.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/StateUtils.js"),o=r("./node_modules/url/url.js"),s=r.n(o).a.parse(window.location.href,!0).query;var i={createDebugStore:function(e,t,r,o){return Object(n.b)({rootReducer:e,state:t,middlewares:r,enhancer:o,debug:s&&s.debug&&!1})},checkForMissingPlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(t){return e[t].default}));t.length>0&&console.error("plugin not correctly loaded: ",t)}},a=r("./MapStore2/web/client/utils/PluginsUtils.js"),u=r("./node_modules/redux-observable/lib/esm/index.js"),l=r("./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js"),c=r.n(l),d=r("./node_modules/connected-react-router/esm/index.js"),f=r("./node_modules/connected-react-router/esm/middleware.js"),p=r("./MapStore2/web/client/actions/localConfig.js"),h=r("./node_modules/object-assign/index.js"),m=r.n(h),_=r("./MapStore2/web/client/utils/ConfigUtils.js").default.getDefaults();var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.a:return m()({},e,t.config);default:return e}},b=r("./MapStore2/web/client/actions/locale.js");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 g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b.a:return{messages:t.messages,current:t.locale};case b.b:return g(g({},e),{},{loadingError:t.error});default:return e}},x=r("./MapStore2/web/client/actions/browser.js");var M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x.a:return m()({},e,t.newProperties);default:return e}};function S(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},j=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=j.noRouter?null:r("./MapStore2/web/client/stores/History.js").default,O=Object(a.b)(g,k(k({},h),{},{localConfig:y,locale:w,locales:function(){return null},browser:M},!j.noRouter&&{router:Object(d.b)(x)})),E=Object(n.d)(Object(a.a)(g,k(k({},L),_))),T=j.initialState||{defaultState:{},mobile:{}},A=k(k({},l.defaultState),T.defaultState),P=k(k({},l.mobile),T.mobile),D=Object(n.e)(Object(u.b)(E)),C=function(e,t){return v({state:e,action:t,allReducers:O,mobileOverride:P})};j&&!1!==j.notify&&(o=c.a),j&&j.persist&&(j.persist.whitelist.forEach((function(e){var t=localStorage.getItem("mapstore2.persist."+e);t&&(A[e]=JSON.parse(t))})),j.onPersist&&setTimeout((function(){j.onPersist()}),0));var I=[D];if(!j.noRouter){var R=Object(f.a)(x);I=[].concat(S(I),[R])}if(t=i.createDebugStore(C,A,I,o),j&&j.persist){var Y={};t.subscribe((function(){j.persist.whitelist.forEach((function(e){var r=t.getState()[e];r&&Y[e]!==r&&(Y[e]=r,localStorage.setItem("mapstore2.persist."+e,JSON.stringify(r)))}))}))}return t}},"./MapStore2/web/client/stores/defaultOptions.js":function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"loadNewMapEpic",(function(){return B})),r.d(n,"loadMapConfigAndConfigureMap",(function(){return z})),r.d(n,"zoomToMaxExtentOnConfigureMap",(function(){return G})),r.d(n,"loadMapInfoEpic",(function(){return q}));var o=r("./MapStore2/web/client/actions/browser.js"),s=r("./node_modules/rxjs/Rx.js"),i=r.n(s),a=r("./MapStore2/web/client/api/WMS.js"),u=r("./MapStore2/web/client/actions/layers.js"),l=r("./MapStore2/web/client/selectors/layers.js"),c=r("./MapStore2/web/client/actions/controls.js"),d=r("./MapStore2/web/client/selectors/controls.js"),f=r("./MapStore2/web/client/utils/NotificationUtils.js"),p=r("./MapStore2/web/client/utils/LayersUtils.js"),h=r("./node_modules/object-assign/index.js"),m=r.n(h),_=r("./MapStore2/node_modules/lodash/lodash.js");function y(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(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 b(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 v(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return r}(e,t)||w(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 w(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,r=void 0===t?500:t;return i.a.Observable.timer(r)})).switchMap((function(e){return i.a.Observable.from(e.layers.map((function(e){return i.a.Observable.forkJoin(a.a.getCapabilities(Object(p.getCapabilitiesUrl)(e),!0).then((function(t){var r=(t.WMS_Capabilities||t.WMT_MS_Capabilities).Capability,n=a.a.flatLayers(r),o=Object(_.isArray)(n)?n:[n];return Object(_.head)(o.filter((function(t){return t.Name===function(e){return-1!==e.indexOf(":")?e.split(":")[1]:e}(e.name)||t.Name===e.name})))})).catch((function(t){return{layer:e.id,fullLayer:e,error:t}})),a.a.describeLayer(e.url,e.name).then((function(t){return t&&t.name===e.name&&"WFS"===t.owsType?{url:t.owsURL,type:"wfs"}:null})).catch((function(t){return{layer:e.id,fullLayer:e,error:t}}))).concatMap((function(t){var r=j(t,2),n=r[0],o=r[1];return n?n.error?i.a.Observable.of(n.error&&n):i.a.Observable.of(m()({layer:e.id,title:Object(p.getLayerTitleTranslations)(n),bbox:a.a.getBBox(n,!0),dimensions:a.a.getDimensions(n)},o&&!o.error?{search:o}:{})):i.a.Observable.of({layer:e.id,fullLayer:e,error:"Missing layer"})}))}))).mergeAll().map((function(t){return t.error?i.a.Observable.of(Object(u.S)([t],t.error.message)):i.a.Observable.from([Object(u.T)([t]),Object(u.db)(t.layer,"id",(r={bbox:t.bbox,search:t.search,title:t.title,dimensions:t.dimensions},n=e.options,Object.keys(n).filter((function(e){return n[e]})).reduce((function(e,t){return m()(e,M({},t,r[t]))}),{})))]);var r,n})).mergeAll()}))},updateDimension: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(u.z).map((function(e){var t=e.layers,r=e.dimension;return v(v({},g(e,["layers","dimension"])),{},{dimension:r,layers:t||Object(l.i)(n(),r)})})).switchMap((function(e){var t=e.layers,r=e.dimension,n=e.value;return i.a.Observable.of(Object(u.H)(t.map((function(e){return e.id})),M({},r,n)))}))},updateSettingsParamsEpic:function(e,t){return e.ofType(u.C).switchMap((function(r){var n,o=r.newParams,s=void 0===o?{}:o,a=r.update,p=t.getState(),h=Object(l.o)(p),m=Object(d.d)(p),_=Object(d.f)(p),b="layers"===(null==h?void 0:h.nodeType)?Object(l.g)(p,null==h?void 0:h.node):null,g=v({},_||{});return Object.keys(s).forEach((function(e){g[e]=m&&m[e]})),(n=i.a.Observable).of.apply(n,[Object(u.eb)(s),Object(c.g)("layersettings","originalSettings",g)].concat(y(a?[Object(u.db)(h.node,h.nodeType,v(v({},h.options),s))]:[]))).concat(s.name&&b&&b.name!==s.name?e.ofType(u.o).filter((function(e){return e.layerId===(null==b?void 0:b.id)})).take(1).flatMap((function(e){return e.error?i.a.Observable.of(Object(f.a)({title:"layerNameChangeError.title",message:"layerNameChangeError.message",autoDismiss:5})):i.a.Observable.empty()})):i.a.Observable.empty())}))}},O={onEpic:function(e,t){return e.filter((function(e){return 0===e.type.indexOf("IF:")})).switchMap((function(e){return e.condition(t.getState())?i.a.Observable.of(e.action):i.a.Observable.of(e.elseAction.call())}))}},E=r("./MapStore2/web/client/libs/ajax.js"),k=r.n(E),T=r("./MapStore2/web/client/actions/config.js"),L=r("./MapStore2/web/client/actions/map.js"),A=r("./MapStore2/web/client/api/persistence/index.js"),P=r("./MapStore2/web/client/selectors/security.js"),D=r("./MapStore2/web/client/selectors/map.js"),C=function(e){return{type:"USER_SESSION:ORIGINAL_CONFIG",config:e}},I=r("./MapStore2/web/client/utils/ConfigUtils.js"),R=r("./node_modules/reselect/es/index.js"),Y=r("./MapStore2/web/client/selectors/context.js"),N=(Object(R.a)([D.l,l.p,l.s],(function(e,t,r){return{map:{center:e.center,zoom:e.zoom,layers:t,groups:r}}})),function(e,t,r){return function(e,t){var r;return null!==(r=I.default.getConfigProp("userSessions"))&&void 0!==r&&r.contextOnly?null!=e?e:"default":(null!=e?e:"default")+(t?"."+t:"")}(e,t)+"."+r});Object(R.a)([Y.a,function(e){var t;return null===(t=e.mapInitialConfig)||void 0===t?void 0:t.mapId},P.e],(function(e,t,r){return N(null==e?void 0:e.id,t,null==r?void 0:r.name)}));function F(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U(e,t)}(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 U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r5&&void 0!==arguments[5]?arguments[5]:{},a=!Object(_.isNaN)(parseFloat(t));return(r?s.Observable.of({data:Object(_.merge)({},r,i),staticConfig:!0}).delay(100):s.Observable.defer((function(){return k.a.get(e)}))).switchMap((function(u){if("new.json"===e&&!r&&!Object(P.b)(o))return s.Observable.of(Object(T.l)({status:403}));if("object"===H(u.data)){var l=Object(D.n)(o),c=Object(_.get)(u,"data.map.projection","EPSG:3857");if(0===l.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===c})).length)return s.Observable.of(Object(T.l)({messageId:"map.errors.loading.projectionError",errorMessageParams:{projection:c}},t));var d=Object(_.merge)({},u.data,i);return a?s.Observable.of.apply(s.Observable,[Object(T.m)(d,t),n?Object(T.r)(n):Object(T.o)(t)].concat(F(u.staticConfig?[]:[C(u.data)]))):s.Observable.of.apply(s.Observable,[Object(T.m)(d,t)].concat(F(n?[Object(T.r)(n)]:[]),F(u.staticConfig?[]:[C(u.data)])))}try{var f=JSON.parse(u.data),p=Object(_.merge)({},f,i);return a?s.Observable.of(Object(T.m)(p,t),n?Object(T.r)(n):Object(T.o)(t)):s.Observable.of.apply(s.Observable,[Object(T.m)(p,t)].concat(F(n?[Object(T.r)(n)]:[]),F(u.staticConfig?[]:C(f))))}catch(r){return s.Observable.of(Object(T.l)("Configuration file broken ("+e+"): "+r.message,t))}})).catch((function(e){return s.Observable.of(Object(T.l)(e,t))}))},z=function(e,t){return e.ofType(T.a).switchMap((function(r){var n,o=r.configName,i=r.mapId,a=r.config,u=r.mapInfo,l=r.overrideConfig,c=function(e){var t,r;return!(!(null===(t=I.default.getConfigProp("userSessions"))||void 0===t?void 0:t.enabled)||!(null===(r=Object(P.e)(e))||void 0===r?void 0:r.name))}(t.getState());if(l||!c)return W(o,i,a,u,t.getState(),l);var d=null===(n=Object(P.e)(t.getState()))||void 0===n?void 0:n.name;return s.Observable.of(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:"USER_SESSION:LOAD",name:e}}(N(null,i,d))).merge(e.ofType("USER_SESSION:LOADED").switchMap((function(e){var r=e.session,n=(null==r?void 0:r.map)&&{map:r.map};return s.Observable.merge(W(o,i,a,u,t.getState(),n),s.Observable.of({type:"USER_SESSION:START_SAVING"}))})))}))},G=function(e){return e.ofType(T.d).filter((function(e){return!!e.zoomToExtent})).delay(300).map((function(e){var t=e.config,r=e.zoomToExtent;return Object(L.I)(r.bounds,r.crs||Object(_.get)(t,"map.projection"))}))},q=function(e){return e.ofType(T.b).switchMap((function(e){var t=e.mapId;return s.Observable.defer((function(){return A.c.getResource(t)})).map((function(e){return Object(T.r)(e,t)})).catch((function(e){return s.Observable.of(Object(T.p)(t,e))})).startWith(Object(T.q)(t))}))},V=r("./MapStore2/web/client/actions/notifications.js"),K=r("./MapStore2/web/client/actions/dimension.js"),J=r("./MapStore2/web/client/actions/timeline.js"),$=r("./MapStore2/web/client/selectors/dimension.js"),X=r("./MapStore2/web/client/api/MultiDim.js"),Q=r("./MapStore2/web/client/utils/TimeUtils.js");function Z(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}(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 ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};return Object(_.get)(Object(_.find)(e.dimensions||[],(function(e){return e&&e.source&&"multidim-extension"===e.source.type})),"source.url")},ne={updateLayerDimensionOnCurrentTimeSelection: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(K.b,K.c,K.a).switchMap((function(){var e=Object($.a)(n()),t=Object($.h)(n()),r=t?"".concat(e,"/").concat(t):e;return s.Observable.of(Object(u.cb)("time",r))}))},queryMultidimensionalAPIExtensionOnAddLayer:function(e){return e.ofType(u.b).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,r=void 0===t?{}:t;return r.id&&r.url&&r.name&&"wms"===r.type})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,r=void 0===t?{}:t;return{layer:r,multidimURL:Object(X.d)(r)}})).flatMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,r=void 0===t?{}:t,n=e.multidimURL;return Object(X.a)(n,r.name,void 0,te).switchMap((function(e){var t=Object(Q.b)(e,n)||[];if(t&&t.length>0){var o=Object(_.find)(t,(function(e){return"time"===e.name}));if(o){var i=[].concat(Z((r.dimensions||[]).filter((function(e){return"time"!==e.name}))),[Object(_.pick)(o,["source","name"])]);return s.Observable.of.apply(s.Observable,[Object(u.I)(r.id,{dimensions:i})].concat(Z(Object(_.flatten)(t.map((function(e){return[Object(K.h)(r.id,e.name,e),Object(J.j)()]}))))))}}return s.Observable.empty()})).catch((function(){return s.Observable.empty()}))}))},updateLayerDimensionDataOnMapLoad: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(T.d).switchMap((function(e){var t,r,o,i=e.config,a=void 0===i?{}:i,u=Object($.f)(n()).filter((function(e){return e&&e.dimensions&&Object(_.find)(e.dimensions,(function(e){return e&&e.source&&"multidim-extension"===e.source.type}))})),l=null===(t=a.timelineData)||void 0===t?void 0:t.selectedLayer,c=null===(r=a.dimensionData)||void 0===r?void 0:r.currentTime,d=null===(o=a.dimensionData)||void 0===o?void 0:o.offsetTime;return(c?s.Observable.of.apply(s.Observable,Z(l?[Object(J.n)(l)]:[]).concat([Object(K.g)(c),Object(K.f)(d)])):s.Observable.empty()).concat(s.Observable.from(u).mergeMap((function(e){return Object(X.a)(re(e),e.name,void 0,te).switchMap((function(t){return s.Observable.from(Object(_.flatten)(Object(Q.b)(t,re(e)).map((function(t){return[Object(K.h)(e.id,t.name,t)].concat(Z(c?[]:[Object(J.j)()]))}))))})).catch((function(){return s.Observable.of(Object(V.f)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"})).delay(2e3)}))})))}))}},oe=r("./MapStore2/web/client/reducers/layers.js"),se=r("./MapStore2/web/client/actions/maps.js"),ie=r("./MapStore2/web/client/utils/ImmutableUtils.js"),ae=r("./MapStore2/web/client/utils/CoordinatesUtils.js");function ue(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 le(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case T.d:var o=r&&r.map&&r.map.present&&r.map.present.size||r&&r.map&&r.map.size,s=n.config&&n.config.version>=2,i=n.legacy&&!s?I.default.convertFromLegacy(n.config):I.default.normalizeConfig(n.config.map),a=Object(_.findIndex)(i.layers,(function(e){return"annotations"===e.id}));if(-1!==a){var u=i.layers[a].features.map((function(e){return"FeatureCollection"===e.type?le(le({},e),{},{features:e.features.map((function(e){return e.properties.useGeodesicLines?Object(ie.e)("properties.geometryGeodesic",{type:"LineString",coordinates:Object(ae.transformLineToArcs)(e.geometry.coordinates)},e):e}))}):e.properties.geometryGeodesic?Object(ie.e)("properties.geometryGeodesic",{type:"LineString",coordinates:Object(ae.transformLineToArcs)(e.geometry.coordinates)},e):r}));i.layers[a]=Object(ie.e)("features",u,i.layers[a])}var l=le(le({},i),{},{layers:i.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e})),mapConfigRawData:le({},n.config)});return l.map=m()({},l.map,{mapId:n.mapId,size:o,version:s?n.config.version:1}),m()({},l,{mapInitialConfig:le(le({},l.map),{},{mapId:n.mapId})});case T.e:return{loadingError:le(le({},n.error),{},{mapId:n.mapId})};case T.h:return(t=r&&r.map&&r.map.present?r.map.present:r&&r.map)&&t.mapId===n.mapId?(t=m()({},t,{loadingInfo:!0}),m()({},r,{map:t})):r;case T.g:return(t=r&&r.map&&r.map.present?r.map.present:r&&r.map)&&t.mapId===n.mapId?(t=m()({},t,{loadingInfoError:n.error,loadingInfo:!1}),m()({},r,{map:t})):r;case T.f:return!(t=r&&r.map&&r.map.present?r.map.present:r&&r.map)||"".concat(t.mapId)!=="".concat(n.mapId)&&(t.mapId||n.mapId)?r:(t=m()({},t,{info:n.info,loadingInfo:!1}),m()({},r,{map:t}));case"DETAILS:DETAILS_LOADED":return(t=r&&r.map&&r.map.present?r.map.present:r&&r.map)&&t.mapId.toString()===n.mapId.toString()?(t=m()({},t,{info:m()({},t.info,{details:n.detailsUri,detailsSettings:n.detailsSettings})}),m()({},r,{map:t})):r;case se.k:if(t=r&&r.map&&r.map.present?r.map.present:r&&r.map){var c=n.metadata||{},d=c.name,f=c.description,p=c.canDelete,h=void 0!==p&&p,y=c.canCopy,b=void 0!==y&&y,v=c.canEdit,g=void 0!==v&&v;return t=m()({},t,{mapId:n.resourceId,info:le(le({},t.info),{},{name:d,description:f,canEdit:g,canDelete:h,canCopy:b}),version:2}),m()({},r,{map:t})}return r;case T.j:return t=r&&r.map&&r.map.present?r.map.present:r&&r.map,t=Object(ie.e)("mapSaveErrors",Object(_.castArray)(n.error),t),m()({},r,{map:t});case T.i:return t=r&&r.map&&r.map.present?r.map.present:r&&r.map,t=Object(ie.f)("mapSaveErrors",t),m()({},r,{map:t});case T.k:return t=(null==r||null===(e=r.map)||void 0===e?void 0:e.present)||(null==r?void 0:r.map),t=Object(ie.f)("mapSaveErrors",t),le(le({},r),{},{map:t});default:return r}},fe=r("./MapStore2/web/client/reducers/controls.js");function pe(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 he(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"THEME_SELECTED":return he(he({},e),{},{selectedTheme:t.theme});case"THEME_LOADED":return he(he({},e),{},{loaded:!0});default:return e}},ye=r("./MapStore2/web/client/actions/help.js");var be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ye.b:return m()({},e,{enabled:t.enabled});case ye.c:return m()({},e,{helpText:t.helpText});case ye.a:return m()({},e,{helpwinViz:t.helpwinViz});default:return e}},ve=r("./MapStore2/web/client/reducers/map.js"),ge=r("./node_modules/redux-undo/lib/index.js"),je=r.n(ge);function we(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 xe(e){for(var t=1;t0){var s=m()({},o.present,{mapStateSource:"undoredo",style:t.present.style,resize:t.present.resize});n=m()({},o,{present:s})}else if(r.type===ge.ActionTypes.REDO&&t.future.length>0){var i=m()({},o.present,{mapStateSource:"undoredo",style:t.present.style,resize:t.present.resize});n=m()({},o,{present:i})}return n||{past:o.past,present:o.present,future:o.future}}}(je()(Se,{filter:function(e,t,r){var n=!1;return r&&r.mapStateSource&&"map"===r.mapStateSource&&r.center&&void 0!==r.zoom&&(n=!(Object(_.isEqual)(t.center,r.center)&&t.zoom===r.zoom)),n}}))),Ee={controls:fe.default,theme:_e,help:be,map:function(){return null},mapInitialConfig:function(){return null},mapConfigRawData:function(){return null},layers:function(){return null}},ke=xe(xe(xe(xe({},S),O),ne),n),Te=function(e){var t=e.state,r=e.action,n=e.allReducers,s=e.mobileOverride,i=function(e){return e&&e.map&&e.map.center?m()({},e,{map:{past:[],present:e.map,future:[]}}):e}(Object(p.splitMapAndLayers)(de(t,r))),a=xe(xe({},n(t,r)),{},{map:i&&i.map?Oe(i.map,r):null,mapInitialConfig:i&&i.mapInitialConfig||i&&i.loadingError&&{loadingError:i.loadingError,mapId:i.loadingError.mapId}||null,mapConfigRawData:i&&i.mapConfigRawData||null,layers:i?Object(oe.a)(i.layers,r):null});return r&&r.type===o.a&&a.browser.mobile&&(a=xe(xe({},a),s)),a}},"./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$":function(e,t,r){var n={"./cesium/Layers":"./MapStore2/web/client/utils/cesium/Layers.js","./leaflet/Layers":"./MapStore2/web/client/utils/leaflet/Layers.js","./openlayers/Layers":"./MapStore2/web/client/utils/openlayers/Layers.js"};function o(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./MapStore2/web/client/utils sync recursive ^\\.\\/.*\\/Layers$"},"./MapStore2/web/client/utils/ConfigUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getConfigurationOptions",(function(){return E})),r.d(t,"cleanDuplicatedQuestionMarks",(function(){return k})),r.d(t,"getUrlWithoutParameters",(function(){return T})),r.d(t,"filterUrlParams",(function(){return L})),r.d(t,"getParsedUrl",(function(){return A})),r.d(t,"getDefaults",(function(){return P})),r.d(t,"setLocalConfigurationFile",(function(){return D})),r.d(t,"loadConfiguration",(function(){return C})),r.d(t,"getCenter",(function(){return I})),r.d(t,"setApiKeys",(function(){return R})),r.d(t,"setLayerId",(function(){return Y})),r.d(t,"replacePlaceholders",(function(){return N})),r.d(t,"setUrlPlaceholders",(function(){return F})),r.d(t,"normalizeConfig",(function(){return U})),r.d(t,"getUserConfiguration",(function(){return H})),r.d(t,"getConfigUrl",(function(){return B})),r.d(t,"setupSources",(function(){return W})),r.d(t,"normalizeSourceUrl",(function(){return z})),r.d(t,"copySourceOptions",(function(){return G})),r.d(t,"setupLayers",(function(){return q})),r.d(t,"convertFromLegacy",(function(){return V})),r.d(t,"mergeConfigs",(function(){return K})),r.d(t,"getProxyUrl",(function(){return J})),r.d(t,"getProxiedUrl",(function(){return $})),r.d(t,"getBrowserProperties",(function(){return X})),r.d(t,"getConfigProp",(function(){return Q})),r.d(t,"setConfigProp",(function(){return Z})),r.d(t,"removeConfigProp",(function(){return ee}));var n=r("./MapStore2/web/client/libs/proj4.js"),o=r.n(n),s=r("./node_modules/prop-types/index.js"),i=r.n(s),a=r("./node_modules/url/url.js"),u=r.n(a),l=r("./node_modules/axios/index.js"),c=r.n(l),d=r("./MapStore2/node_modules/lodash/lodash.js"),f=r("./node_modules/object-assign/index.js"),p=r.n(f),h=r("./node_modules/es6-promise/dist/es6-promise.js"),m=r("./node_modules/ismobilejs/src/isMobile.js"),_=r.n(m);function y(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e){return(b="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 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 g(e){for(var t=1;t2){var r=t.slice(1);return t[0]+"?"+r.join("&")}return e},T=function(e,t){var r=k(e).split("?"),n="";if(r.length>=2&&r[1]){var o=r[1].split(/[&;]/g).filter((function(e){return!!e}));o.forEach((function(e,r){var s=e.split("=");if(-1===t.indexOf(s[0].toLowerCase())){var i=r===o.length-1?"":"&";n+=s.join("=")+i}}))}return n?r[0]+"?"+n:r[0]},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(d.isNil)(e)||""===e?null:T(k(e),t)},A=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e){var n=u.a.parse(L(e,r),!0),o=null;if(Object(d.endsWith)(n.pathname,"wfs")||Object(d.endsWith)(n.pathname,"wms")||Object(d.endsWith)(n.pathname,"ows"))return o=n.pathname.replace(/(wms|ows|wfs|wps)$/,"wps"),u.a.format(p()({},n,{search:null,pathname:o},{query:p()(g({service:"WPS"},t),n.query)}))}return null},P=function(){return g({},O)},D=function(e){S=e},C=function(){return S?c.a.get(S).then((function(e){return"object"===b(e.data)&&(O=p()({},O,e.data)),g({},O)})):new h.Promise((function(e){e(g({},O))}))},I=function(e,t){var r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,n=e.crs||t||"EPSG:4326",s="EPSG:4326"!==n?o.a.transform(new o.a.Proj(n),w,r):r;return p()({},s,{crs:"EPSG:4326"})},R=function(e){return"bing"===e.type&&(e.apiKey=O.bingApiKey),"mapquest"===e.type&&(e.apiKey=O.mapquestApiKey),e},Y=function(e,t){return e.id||(e.id=e.name+"__"+t),e},N=function(e){var t=e;return(t.match(/\{.*?\}/g)||[]).forEach((function(e){var r=O[e.substring(1,e.length-1)];void 0!==r&&(t=t.replace(e,r||""))})),t},F=function(e){return e.url&&(Object(d.isArray)(e.url)?e.url=e.url.map((function(e){return N(e)})):e.url=N(e.url)),e},U=function(e){var t=e.layers,r=e.groups,n=e.plugins,o=y(e,["layers","groups","plugins"]);return o.center=I(o.center),{map:o,layers:t.map(R,e).map(Y).map(F),groups:r,plugins:n}},H=function(e,t,r){return E(M,e,t,r)},B=function(e){var t=e.mapId,r=t,n=e.config;try{var o=parseInt(r,10);isNaN(o)&&(n=t,r=null)}catch(e){n=t,r=null}return E({mapId:r,config:n})},W=function(e,t){var r,n=t;for(r in t||(n=O.defaultSourceType),e)e.hasOwnProperty(r)&&(e[r].ptype||(e[r].ptype=n))},z=function(e){return e&&-1!==e.indexOf("?")?e.split("?")[0]:e},G=function(e,t){if(e.baseParams=t.baseParams,t.url){var r=u.a.parse(t.url,!0);for(var n in r.query)"REQUEST"===n.toUpperCase()&&delete r.query[n];e.baseParams=p()({},e.baseParams,r.query)}e.url=z(t.url)},q=function(e,t,r){var n,o,s,i;for(o=0;o=0?s.group===O.backgroundGroup&&(s.visibility=s.visibility||!1,n&&n.visibility?s.visibility&&(n.visibility=!1,n=s):n=s):s.visibility=!1)}n&&(n.visibility=!0)},V=function(e){var t=e.map,r=e.gsSources||e.sources,n=t.layers.filter((function(e){return r[e.source]})),o=I(t.center,t.projection),s=t.zoom,i=t.maxExtent||t.extent;return W(r,e.defaultSourceType),q(n,r,["gxp_osmsource","gxp_wmssource","gxp_googlesource","gxp_bingsource","gxp_mapquestsource","gxp_olsource"]),U({center:o,zoom:s,maxExtent:i,layers:n,projection:t.projection||"EPSG:3857"})},K=function(e,t){return e.map=t.map,e.gsSources=t.gsSources||t.sources,e},J=function(e){return e.proxyUrl?e.proxyUrl:O.proxyUrl},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(0===e.indexOf("http")),n=!r&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(n){var o=window.location;r=n[1]===o.protocol&&n[3]===o.hostname;var s=n[4],i=o.port,a=0===o.protocol.indexOf("https")?443:80;s=""===s?a+"":s+"",i=""===i?a+"":i+"",r=r&&s===i}if(!r){var u=J(t);if(u){var l=[];Object(d.isObject)(u)&&(l=u.useCORS||[],u=u.url);var c=l.reduce((function(t,r){return t||0===e.indexOf(r)}),!1);if(!c)return u+encodeURIComponent(e)}}return e},X=function(){var e="ActiveXObject"in window,t=e&&!document.addEventListener,r=e&&window.location.hash===!!window.MSInputMethodContext&&!!document.documentMode,n=navigator.userAgent.toLowerCase(),o=-1!==n.indexOf("webkit"),s=-1!==n.indexOf("chrome"),i=-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"),a=-1!==n.indexOf("phantom"),u=-1!==n.indexOf("android"),l=-1!==n.search("android [23]"),c=-1!==n.indexOf("gecko"),d=_.a.any,f=!window.PointerEvent&&window.MSPointerEvent,p=window.PointerEvent&&window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||f,h="devicePixelRatio"in window&&window.devicePixelRatio>1||"matchMedia"in window&&window.matchMedia("(min-resolution:144dpi)")&&window.matchMedia("(min-resolution:144dpi)").matches,m=document.documentElement,y=e&&"transition"in m.style,b="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!l,v="MozPerspective"in m.style,g="OTransition"in m.style,j=!window.L_DISABLE_3D&&(y||b||v||g)&&!a,w=!window.L_NO_TOUCH&&!a&&(p||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);return{ie:e,ie11:r,ielt9:t,webkit:o,gecko:c&&!o&&!window.opera&&!e,android:u,android23:l,chrome:s,safari:i,ie3d:y,webkit3d:b,gecko3d:v,opera3d:g,any3d:j,mobile:d,mobileWebkit:d&&o,mobileWebkit3d:d&&b,mobileOpera:d&&window.opera,touch:w,msPointer:f,pointer:p,retina:h}},Q=function(e){return O[e]},Z=function(e,t){O[e]=t},ee=function(e){delete O[e]},te={PropTypes:{center:x,config:i.a.shape({center:x,zoom:i.a.number.isRequired}),mapStateSource:i.a.string},getParsedUrl:A,getDefaults:P,setLocalConfigurationFile:D,loadConfiguration:C,getCenter:I,normalizeConfig:U,getUserConfiguration:H,getConfigurationOptions:E,getConfigUrl:B,convertFromLegacy:V,setupSources:W,normalizeSourceUrl:z,copySourceOptions:G,setupLayers:q,mergeConfigs:K,getProxyUrl:J,cleanDuplicatedQuestionMarks:k,getUrlWithoutParameters:T,filterUrlParams:L,getProxiedUrl:$,getBrowserProperties:X,setApiKeys:R,setUrlPlaceholders:F,replacePlaceholders:N,setLayerId:Y,getConfigProp:Q,setConfigProp:Z,removeConfigProp:ee};t.default=te},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"FORMULAS",(function(){return A})),r.d(t,"getProjUrl",(function(){return D})),r.d(t,"determineCrs",(function(){return I})),r.d(t,"normalizePoint",(function(){return Y})),r.d(t,"reproject",(function(){return F})),r.d(t,"reprojectExtent",(function(){return H})),r.d(t,"getPolygonFromExtent",(function(){return B})),r.d(t,"getExtentFromNormalized",(function(){return W})),r.d(t,"crsCodeTable",(function(){return z})),r.d(t,"setCrsLabels",(function(){return G})),r.d(t,"getUnits",(function(){return q})),r.d(t,"getProjectedBBox",(function(){return V})),r.d(t,"createBBox",(function(){return K})),r.d(t,"reprojectGeoJson",(function(){return J})),r.d(t,"lineIntersectPolygon",(function(){return $})),r.d(t,"normalizeLng",(function(){return X})),r.d(t,"reprojectBbox",(function(){return Q})),r.d(t,"bboxToFeatureGeometry",(function(){return Z})),r.d(t,"getCompatibleSRS",(function(){return ee})),r.d(t,"getEquivalentSRS",(function(){return te})),r.d(t,"getEPSGCode",(function(){return re})),r.d(t,"normalizeSRS",(function(){return ne})),r.d(t,"isAllowedSRS",(function(){return oe})),r.d(t,"getAvailableCRS",(function(){return se})),r.d(t,"filterCRSList",(function(){return ie})),r.d(t,"calculateAzimuth",(function(){return ae})),r.d(t,"calculateDistance",(function(){return ue})),r.d(t,"extendExtent",(function(){return le})),r.d(t,"getGeoJSONExtent",(function(){return ce})),r.d(t,"isValidExtent",(function(){return de})),r.d(t,"calculateCircleCoordinates",(function(){return fe})),r.d(t,"transformLineToArcs",(function(){return pe})),r.d(t,"transformArcsToLine",(function(){return he})),r.d(t,"coordsOLtoLeaflet",(function(){return me})),r.d(t,"mergeToPolyGeom",(function(){return _e})),r.d(t,"getViewportGeometry",(function(){return ye})),r.d(t,"getExtentFromViewport",(function(){return be})),r.d(t,"fetchProjRemotely",(function(){return ve})),r.d(t,"parseURN",(function(){return ge})),r.d(t,"parseString",(function(){return je})),r.d(t,"getWMSBoundingBox",(function(){return we})),r.d(t,"isSRSAllowed",(function(){return xe})),r.d(t,"getNormalizedLatLon",(function(){return Me})),r.d(t,"isInsideVisibleArea",(function(){return Se})),r.d(t,"centerToVisibleArea",(function(){return Oe})),r.d(t,"calculateCircleRadiusFromPixel",(function(){return Ee})),r.d(t,"roundCoord",(function(){return ke})),r.d(t,"midpoint",(function(){return Te})),r.d(t,"pointObjectToArray",(function(){return Le})),r.d(t,"isPointInsideExtent",(function(){return Ae})),r.d(t,"isBboxCompatible",(function(){return Pe})),r.d(t,"extractCrsFromURN",(function(){return De})),r.d(t,"makeNumericEPSG",(function(){return Ce})),r.d(t,"makeBboxFromOWS",(function(){return Ie}));var n=r("./node_modules/node-geo-distance/index.js"),o=r.n(n),s=r("./MapStore2/web/client/libs/proj4.js"),i=r.n(s),a=r("./MapStore2/web/client/libs/ajax.js"),u=r.n(a),l=r("./node_modules/object-assign/index.js"),c=r.n(l),d=r("./MapStore2/node_modules/lodash/lodash.js"),f=r("./node_modules/@turf/line-intersect/index.js"),p=r.n(f),h=r("./node_modules/@turf/polygon-to-linestring/index.js"),m=r.n(h),_=r("./node_modules/@turf/great-circle/main.es.js"),y=r("./node_modules/turf-point/index.js"),b=r.n(y),v=r("./node_modules/@turf/bbox-polygon/main.es.js"),g=r("./node_modules/@turf/boolean-overlap/main.es.js"),j=r("./node_modules/@turf/boolean-contains/main.es.js");function w(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 x(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&"number"==typeof r[0]&&"number"==typeof r[1]?t(e):e.map((function(e){return P(e,t)}));var r}var D=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function C(e,t,r){if(null===e)return e;var n=Object(d.cloneDeep)(e);return"Feature"===e.type?n.geometry=C(e.geometry,t,r):"FeatureCollection"===e.type?n.features=n.features.map((function(e){return C(e,t,r)})):"GeometryCollection"===e.type?n.geometries=n.geometries.map((function(e){return C(e,t,r)})):t&&t(n),r&&r(n),n}function I(e){return"string"==typeof e||e instanceof String?i.a.defs(e)?new i.a.Proj(e):null:e}var R={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},Y=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},N=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},F=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&i.a.defs(t)?new i.a.Proj(t):null,s=r&&i.a.defs(r)?new i.a.Proj(r):null;if(o&&s){var a=Object(d.isArray)(e)?i.a.toPoint(e):i.a.toPoint([e.x,e.y]),u=c()({},t===r?N(a):i.a.transform(o,s,N(a)),{srs:r});return n?Y(u):u}return null},U=["EPSG:900913","EPSG:4326","EPSG:3857"],H=function(e,t,r){return"EPSG:4326"===t?e:r?e.map((function(e){return[F([e[0],e[1]],"EPSG:4326",t),F([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(S(e),[t.x,t.y])}),[])})):[F([e[0],e[1]],"EPSG:4326",t),F([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(S(e),[t.x,t.y])}),[])},B=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},W=function(e,t){var r=function(e,t){var r="EPSG:4326"!==t?[F([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),F([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(S(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],n=!1;return"EPSG:4326"===t?n=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(n=Math.abs(e.maxx-e.minx)>=40075016.68557849),n?[0,r[1],360,r[3]]:[(r[0]+180)%360,r[1],(r[2]+180)%360,r[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),n=r[2]2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,o=t*n[0]/2,s=t*n[1]/2,i=Math.cos(r),a=Math.sin(r),u=o*i,l=o*a,c=s*i,d=s*a,f=e.x,p=e.y,h=f-u+d,m=f-u-d,_=f+u-d,y=f+u+d,b=p-l-c,v=p-l+c,g=p+l+c,j=p+l-c,w=T.createBBox(Math.min(h,m,_,y),Math.min(b,v,g,j),Math.max(h,m,_,y),Math.max(b,v,g,j));return w},K=function(e,t,r,n){return{minx:e,miny:t,maxx:r,maxy:n}},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",n=t,o=r;"string"==typeof n&&(n=I(n)),"string"==typeof o&&(o=I(o));var s=L(n,o);return C(e,(function(e){e.crs&&delete e.crs,e.coordinates=P(e.coordinates,(function(e){var t=O(e,2),r=t[0],n=t[1];return s.forward([r,n])}))}),(function(e){var t,r;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],r=[-Number.MAX_VALUE,-Number.MAX_VALUE],C(e,(function(e){P(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),r[0]=Math.max(r[0],e[0]),r[1]=Math.max(r[1],e[1])}))})),[t[0],t[1],r[0],r[1]]))}))},$=function(e,t){var r=m()(t).features[0];return 0!==p()(e,r).features.length},X=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,r){var n,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var s=[];for(var i in n)if(n.hasOwnProperty(i)){var a=T.reproject(n[i],t,r,o);if(!a)return null;var u=a.x,l=a.y;s.push(u),s.push(l)}return s},Z=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,r=t.minx,n=t.miny,o=t.maxx,s=t.maxy;return{type:"Polygon",coordinates:[[[r,n],[r,s],[o,s],[o,n],[r,n]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},re=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},ne=function(e,t){var r="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[r]?T.getCompatibleSRS(r,t):r},oe=function(e,t){return t[T.getCompatibleSRS(e,t)]},se=function(){var e={};for(var t in i.a.defs)i.a.defs.hasOwnProperty(t)&&(e[t]={label:R[t]||t});return e},ie=function(e,t,r,n){var o=Object.keys(e).reduce((function(r,n){return c()({},-1===t.indexOf(n)?r:x(x({},r),{},M({},n,e[n])))}),{}),s=n.map((function(e){return e.code})),i=Object.keys(r).reduce((function(e,t){return c()({},-1===s.indexOf(t)?e:x(x({},e),{},M({},t,r[t])))}),{});return c()({},o,i)},ae=function(e,t,r){var n=T.reproject(e,r,"EPSG:4326"),o=T.reproject(t,r,"EPSG:4326"),s=n.x*Math.PI/180,i=n.y*Math.PI/180,a=o.x*Math.PI/180,u=o.y*Math.PI/180,l=a-s,c=Math.sin(l)*Math.cos(u),d=Math.cos(i)*Math.sin(u)-Math.sin(i)*Math.cos(u)*Math.cos(l);return(180*Math.atan2(c,d)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(A).indexOf(t)?A[t](e):0},le=function(e,t){var r=e.slice();return t[0]e[2]&&(r[2]=t[2]),t[1]e[3]&&(r[3]=t[3]),r},ce=function(e){var t=this,r=[1/0,1/0,-1/0,-1/0],n=function(e,r){var n=T.getGeoJSONExtent(r);return t.isValidExtent(n)?t.extendExtent(n,e):n};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;r[0]=o[0]-.01*o[0],r[1]=o[1]-.01*o[1],r[2]=o[0]+.01*o[0],r[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),r)}if("GeometryCollection"===e.type)return e.geometries.reduce(n,r);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(n,r);if("Feature"===e.type&&e.geometry)return T.getGeoJSONExtent(e.geometry)}return r},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},fe=function(e,t,r,n){var o,s,i,a=Math.PI*(1/r-.5);n&&(a+=n/180*Math.PI);for(var u=[[]],l=0;l1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},r=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(T.transformArcsToLine(Object(d.slice)(e,t))):[]},me=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},_e=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(U.filter((function(e){return e===t})))){var r=W(e,t),n=r.extent,o=r.isIDL,s=(o?n:[n]).map((function(e){var t=[e[0],e[1]],r=[e[2],e[3]];return[[t,[t[0],r[1]],r,[r[0],t[1]],t]]}));if(o){var i=n[1][0]+(Math.abs(n[0][0]-n[0][2])+Math.abs(n[1][0]-n[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:s,extent:n,center:[i=i>180?i-360:i,(n[0][1]+n[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:s[0],extent:n,center:[(n[0]+n[2])/2,(n[1]+n[3])/2]}}var a=[e.minx,e.miny,e.maxx,e.maxy],u=[a[0],a[1]],l=[a[2],a[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],l[1]],l,[l[0],u[1]],u]],extent:a,center:[(a[0]+a[2])/2,(a[1]+a[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,r=e.crs,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!r)return null;var o=T.getViewportGeometry(t,r),s=o.extent;if(4===s.length)return T.reprojectBbox(s,r,n);var i=s.map((function(e){return e[2]-e[0]})),a=O(i,2),u=a[0],l=a[1];return u>l?T.reprojectBbox(s[0],r,n):T.reprojectBbox(s[1],r,n)},ve=function(e,t){var r=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||D(r),null,{timeout:2e3})},ge=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,r=t&&Object(d.last)(t.split(":"));return"WGS 1984"===r||"WGS84"===r?"EPSG:4326":r?"EPSG:"+r:null},je=function(e){var t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return!isNaN(r)&&!isNaN(n)&&{x:r,y:n}||null},we=function(e,t){var r=t||"EPSG:3857",n=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===r&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&T.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],r,"EPSG:4326")})));return Object(d.isArray)(n)&&{minx:n[0],miny:n[1],maxx:n[2],maxy:n[3]}||null},xe=function(e){return!!i.a.defs(e)},Me=function(e){var t=e.lng,r=void 0===t?1:t,n=e.lat;return{lat:void 0===n?1:n,lng:T.normalizeLng(r)}},Se=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=F([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var i=T.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),a=x({left:0,right:0,top:0,bottom:0},r),u={minx:i[0]+a.left*n,miny:i[1]+a.bottom*n,maxx:i[2]-a.right*n,maxy:i[3]-a.top*n},l=T.getViewportGeometry(u,t.projection),c=4===l.extent.length?[S(l.extent)]:S(l.extent);return Object(d.head)(c.map((function(e){return s.x>=e[0]&&s.y>=e[1]&&s.x<=e[2]&&s.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=T.getNormalizedLatLon(e),s=F([o.lng,o.lat],"EPSG:4326",t.projection),i=x({left:0,right:0,top:0,bottom:0},r),a={width:(t.size.width-i.right-i.left)*n,height:(t.size.height-i.top-i.bottom)*n},u={minx:s.x-a.width/2-i.left*n,miny:s.y-a.height/2-i.bottom*n,maxx:s.x+a.width/2+i.right*n,maxy:s.y+a.height/2+i.top*n},l=T.getViewportGeometry(u,t.projection);if(4===l.extent.length)return{pos:F([l.extent[0]+t.size.width/2*n,l.extent[1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(l.extent[0][2]-l.extent[0][0])>Math.abs(l.extent[1][2]-l.extent[1][0])){var c=F([l.extent[0][2]-t.size.width/2*n,l.extent[0][3]-t.size.height/2*n],t.projection,"EPSG:4326"),d=x(x({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:F([l.extent[1][0]+t.size.width/2*n,l.extent[1][1]+t.size.height/2*n],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,s=Object(d.isArray)(r)?r:[r.x,r.y];if(Object(d.isNumber)(s[0])&&!isNaN(s[0])&&Object(d.isNumber)(s[1])&&!isNaN(s[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var i=Object(d.isFunction)(e)?e([t.x,t.y>=n?t.y-n:t.y+n]):null,a=i&&(Object(d.isArray)(i)?i:[i.x,i.y]);return Object(d.isArray)(a)?Math.sqrt((s[0]-a[0])*(s[0]-a[0])+(s[1]-a[1])*(s[1]-a[1])):o}return o},ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,r=void 0===t?"round":t,n=e.value,o=void 0===n?0:n,s=e.maximumFractionDigits,i=void 0===s?0:s;return 0===i&&Math[r]?Math[r](o):o},Te=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,s={x:.5*(n.x+o.x),y:.5*(n.y+o.y)};return r?[s.x,s.y]:s},Le=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(B(t),b()([e.lng,e.lat]))},Pe=function(e,t){return Object(g.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},De=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var r=t[4],n=t[6];return r?"".concat(r,":").concat(n):n}}return null},Ce=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),r=parseInt(t,10);if(r>=1024&&r<=32767)return e;var n=t.replace(" ","").replace(":","").toLowerCase(),o=z[n];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ie=function(e,t){var r=[e[0],e[1]],n=[t[0],t[1]];if(r[1]>n[1]){var o=r;r=n,n=o}if(r[0]>n[0]){var s=r.slice(),i=n.slice();r=[i[0],s[1]],n=[s[0],i[1]]}return[r[0],r[1],n[0],n[1]]};T={setCrsLabels:G,getUnits:q,reproject:F,getProjectedBBox:V,createBBox:K,reprojectGeoJson:J,lineIntersectPolygon:$,normalizePoint:Y,normalizeLng:X,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:re,normalizeSRS:ne,isAllowedSRS:oe,getAvailableCRS:se,filterCRSList:ie,calculateAzimuth:ae,calculateDistance:ue,FORMULAS:A,extendExtent:le,getGeoJSONExtent:ce,isValidExtent:de,calculateCircleCoordinates:fe,transformLineToArcs:pe,transformArcsToLine:he,coordsOLtoLeaflet:me,mergeToPolyGeom:_e,getViewportGeometry:ye,getProjUrl:D,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:ge,determineCrs:I,parseString:je,getWMSBoundingBox:we,isSRSAllowed:xe,getNormalizedLatLon:Me,isInsideVisibleArea:Se,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:Ee,roundCoord:ke,midpoint:Te,pointObjectToArray:Le,getExtentFromNormalized:W,getPolygonFromExtent:B,isPointInsideExtent:Ae,isBboxCompatible:Pe,extractCrsFromURN:De,crsCodeTable:z,makeNumericEPSG:Ce,makeBboxFromOWS:Ie},t.default=T},"./MapStore2/web/client/utils/EpicsUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--unknown--";return function(){return e.apply(void 0,arguments).catch((function(e,r){return console.error('Error in epic "'.concat(t,'". Original error:'),e),setTimeout((function(){throw e}),0),r}))}},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return Object.keys(e).map((function(r){return t(e[r],r)}))}},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return l}));var n={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},s=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,i=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function a(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function u(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var l={HTML:{getValidResponses:function(e,t){return t?e.filter(a):e},getNoValidResponses:function(e){return e.filter((function(e){return!a(e)}))}},TEXT:{getValidResponses:function(e,t){var r=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var r=0,n=new Array(t);r",endTag:""},fes:{startTag:"",endTag:""}},E=function(e,t,r,n){var o;if("><"===t){if(r.startDate&&r.endDate){var i=r.startDate.toISOString?r.startDate.toISOString():r.startDate,a=r.endDate.toISOString?r.endDate.toISOString():r.endDate;o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+i+"<"+n+":UpperBoundary><"+n+":Literal>"+a+"")}}else if(r.startDate){var u=r.startDate.toISOString?r.startDate.toISOString():r.startDate;o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+u+"")}return o},k=function(e,t,r,n){var o;return Object(f.isNil)(r)||(o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+r+"")),o},T=function(e,t,r,n){var o;return j(r,t)&&(o="isNull"===t?s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag):"="===t?s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+r+""):s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>*"+r+"*")),o},L=function(e,t,r,n){var o="";return j(r,t)&&"="===t&&""!==r&&(o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+r+"")),o},A=function(e,t,r,n){var o;if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":LowerBoundary><"+n+":Literal>"+r.lowBound+"<"+n+":UpperBoundary><"+n+":Literal>"+r.upBound+"")):o=s.ogcComparisonOperators["<="](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+r.upBound+""):o=s.ogcComparisonOperators[">="](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+r.lowBound+"");else{var i=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(i)||(o=s.ogcComparisonOperators[t](n,O[n].startTag+e+O[n].endTag+"<"+n+":Literal>"+i+""))}return o},P=function(e,t){var r="";switch(e.type){case"date":r=E(e.attribute,e.operator,e.values,t);break;case"number":r=A(e.attribute,e.operator,e.values,t);break;case"string":r=T(e.attribute,e.operator,e.values,t);break;case"boolean":r=L(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){r=e.values.reduce((function(r,n){var o=null===n||"null"===n?"isNull":"=";return r+T(e.attribute,o,n,t)}),""),r=s.ogcLogicalOperators.OR(t,r)}}return r},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,r=e.geometryName,n=e.cqlFilter,o=void 0===n?"INCLUDE":n;return"queryCollection('".concat(t,"', '").concat(r,"','").concat(g(o),"')")},C=function(e){return"collectGeometries(".concat(e,")")},I=function(e,t,r){var n,i,a,u,l=[];if(e.filterFields&&e.filterFields.length>0)""!==(n=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,r):b.processOGCFilterFields(null,e,r))&&l.push(n);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var c=s.ogcLogicalOperators.AND(r,e.simpleFilterFields.map((function(e){return P(e,r)})).join(""));l.push(c)}if(Object(f.isArray)(e.spatialField)?(u=Object(f.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(a=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?u=e.spatialField:a=[e.spatialField]),u){if(Object(f.isArray)(u.geometry&&u.geometry.extent[0])){var d=u.geometry.extent.reduce((function(e,n){var o=Object.assign({},u);return u.geometry.extent=n,e+b.processOGCSpatialFilter(t,o,r)}),"");i=s.ogcLogicalOperators.OR(r,d)}l.push(i)}else if(a&&(a=a.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var p=a.map((function(e){return b.processOGCSpatialFilter(t,e,r)})).join("");i=a.length>1?s.ogcLogicalOperators[e.spatialFieldOperator||"AND"](r,p):p,l.push(i)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var h=_(_({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?h.forEach((function(e){return l.push(b.processOGCCrossLayerFilter(e,r))})):l.push(b.processOGCCrossLayerFilter(h,r))}return e.options&&e.options.cqlFilter&&l.push(v(e.options.cqlFilter,{filterNS:r,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),l},R=function(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{n=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var l=S(r||"2.0"),c="2.0"===l?"fes":"ogc",d=b.getGetFeatureBase(l,n.pagination,s,i,t&&t.options),f=b.toOGCFilterParts(n,l,c),p="";return f.length>0&&(p="<"+c+":Filter>",1===f.length?p+=f[0]:(p+="<"+c+":And>",f.forEach((function(e){p+=e})),p+=""),p+=""),d+=""),d+=p,a&&(d+=a.map((function(e){return O[c].startTag+e+O[c].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(d+="<"+c+":SortBy><"+c+":SortProperty>"+O[c].startTag+o.sortBy+O[c].endTag+"<"+c+":SortOrder>"+o.sortOrder+""),d+="
"},Y=function(e,t,r){var n=b.processOGCFilterFields(e,t,r),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){n+=b.processOGCFilterGroup(e,t,r)})),""!==n?s.ogcLogicalOperators[e.logic](r,n):""},N=function(e,t,r){var n=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return n.length?n.reduce((function(e,t){var n;switch(t.type){case"date":case"date-time":case"time":n=E(t.attribute,t.operator,t.value,r);break;case"number":n=A(t.attribute,t.operator,t.value,r);break;case"string":n=T(t.attribute,t.operator,t.value,r);break;case"boolean":n=L(t.attribute,t.operator,t.value,r);break;case"list":n=k(t.attribute,t.operator,t.value,r)}return"isNull"===t.operator&&(n=T(t.attribute,t.operator,t.operator,r)),n&&e.push(n),e}),[]).join(""):""},F=function(e,t,r){return Object(n.pointElement)(e,t,Object(o.wfsToGmlVersion)(r))},U=function(e,t,r){return Object(n.polygonElement)(e,t,Object(o.wfsToGmlVersion)(r))},H=function(e,t,r){return Object(n.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(r))},B=function(e,t){return Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},W=function(e,t,r){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var i=O[r].startTag+t.attribute+O[r].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":i+=Object(n.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(i+="<"+r+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var a=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];i+=''+a+""+u+""}return s.ogcSpatialOperators[t.operation](r,i)},z=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=S(e),i="";break;case"1.1.0":i+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",i=r?i+' resultType="hits"':i,i+='service="WFS" version="'+s+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:i+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",i=r&&!t?i+' resultType="hits"':i,i+='service="WFS" version="'+s+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return i},G=function(e){return Object(f.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(f.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(f.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},q=function(e,t){var r=t||"ogc",n=O[r].startTag+e.attribute+O[r].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);n+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(n+="<"+r+':Distance units="m">'+(e.distance||0)+""),s.ogcSpatialOperators[e.operation](r,n)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var r,n,o=[];if(t.filterFields&&t.filterFields.length>0)(r=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(r);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var s=t.simpleFilterFields.reduce((function(e,t){var r=e,n=b.processCQLSimpleFilterField(t);return!1!==n&&(r=e.length>0?e+" AND ("+n+")":"("+n+")"),r}),"");s=s.length>0?s:"INCLUDE",o.push(s)}if(t.spatialField&&(n=b.processCQLSpatialFilter(t))&&o.push(n),t.crossLayerFilter){var i=t.crossLayerFilter,a=i.operation,u=i.attribute,l=i.collectGeometries&&i.collectGeometries.queryCollection;if(a&&u&&l){var c=l.typeName,d=l.geometryName,f=b.getCrossLayerCqlFilter(i),p=C(D({typeName:c,geometryName:d,cqlFilter:f}));o.push("".concat(a,"(").concat(u,",").concat(p,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},K=function(e,t){var r="NOR"===e.logic?_(_({},e),{},{logic:"AND",negateAll:!0}):e,n=b.processCQLFilterFields(r,t),o=b.findSubGroups(r,t.groupFields);if(o.length>0){var s=o.map((function(e){return(r.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+r.logic+" ");return n?[n,s].join(" "+r.logic+" "):s}return n},J=function(e,t){var r=t+"(";switch(t){case"Point":r+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,n){r+=t.join(" "),r+=n<"===t?r.startDate&&r.endDate&&(n="("+e+">='"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"' AND "+e+"<='"+(r.endDate.toISOString?r.endDate.toISOString():r.endDate)+"')"):r.startDate&&(n=e+t+"'"+(r.startDate.toISOString?r.startDate.toISOString():r.startDate)+"'");return n},Q=function(e,t,r){var n,o=x(e);if(!Object(f.isNil)(r))if("isNull"===t)n="isNull("+o+")=true";else if("="===t){n=o+t+("'"+g(r)+"'")}else if("ilike"===t){n="strToLowerCase("+o+") LIKE "+("'%"+g(r).toLowerCase()+"%'")}else{n=o+" LIKE "+("'%"+g(r)+"%'")}return n},Z=function(e,t,r){var n="";Object(f.isNil)(r)||""===r||"="===t&&(n='"'+e+'"'+t+("'"+r+"'"));return n},ee=function(e,t,r){var n,o=x(e);if("><"===t)Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound||null!==r.upBound&&void 0!==r.upBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null!==r.lowBound&&void 0!==r.lowBound?Object(f.isNil)(r)||null===r.upBound||void 0===r.upBound||null===r.lowBound||void 0===r.lowBound||(n="("+o+">='"+r.lowBound+"' AND "+o+"<='"+r.upBound+"')"):n="("+o+"<='"+r.upBound+"')":n="("+o+">='"+r.lowBound+"')";else{var s=Object(f.isNil)(r)||null===r.lowBound||void 0===r.lowBound?r:r.lowBound;Object(f.isNil)(s)||(n=o+" "+t+" '"+s+"'")}return n},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},re=function(e,t,r){return b.cqlStringField(e,t,r)},ne=function(e,t){var r=t.filterFields.filter((function(t){return t.groupId===e.id})),n=[];return r&&(r.forEach((function(t){var r;switch(t.type){case"date":case"time":case"date-time":r=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":r=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":r=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":r=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":r=b.cqlListField(t.attribute,t.operator,t.value)}r&&n.push(e.negateAll?"NOT ("+r+")":r)})),n=n.join(" "+e.logic+" ")),n},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var r=!1,n=e.values.reduce((function(e,t){return null===t||"null"===t?r=!0:e.push("'"+t+"'"),e}),[]);t=n.length>0?e.attribute+" IN("+n.join(",")+")":t,r&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},se=function(e,t){return'\n \n ')},ie=function(e,t,r){var n=b.toOGCFilter(e,t,r),o=n.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var s=n.search("");n=n.substr(o,s-o)}else n="";return''.concat(e,"").concat(n,'circle#0000FF20')},ae=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,_(_({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,r=void 0===t?[]:t,n=e.spatialField,o=void 0===n?{}:n,s=e.crossLayerFilter,i=void 0===s?{}:s;return!(r.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||i&&i.attribute&&i.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(f.isArray)(e.spatialField)&&Object(f.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"AND",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",n={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,s=void 0===o?[]:o,i=t.groupFields,a=void 0===i?[]:i,u=t.spatialField,l=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(s.length>0&&a.map((function(e){return{groupId:0===e.index&&n.id||"".concat(e.groupId,"_").concat(l),logic:e.logic,id:"".concat(e.id,"_").concat(l),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(s.map((function(e){return _(_({},e),{},{groupId:"".concat(e.groupId,"_").concat(l)})}))),spatialField:de(e.spatialField,u),spatialFieldOperator:r}}),{groupFields:[n],filterFields:[],spatialField:[]})},pe=function(e,t){var r,n=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,s=e.spatialField.geometry.radius,i=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,a=o&&[(r=Object(d.reproject)(o,n,t)).x,r.y],u=s&&Object(d.reproject)([s,0],n,t).x;return _(_({},e),{},{spatialField:_(_({},e.spatialField),{},{geometry:_(_({},e.spatialField.geometry),{},{center:a,radius:u,coordinates:i,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):_(_({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,r=void 0===t?"ogc":t,n=e.ogcVersion,s=void 0===n?"2.0":n,a=e.addXmlnsToRoot,l=void 0!==a&&a,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=c()({filterNS:r,wfsVersion:s,gmlVersion:Object(o.wfsToGmlVersion)(s)}),_=u()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(g.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(g.slice(j))}return g};b={processOGCFilterGroup:Y,processOGCFilterFields:N,processOGCCrossLayerFilter:q,getGetFeatureBase:z,toOGCFilterParts:I,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:G,processCQLFilterGroup:K,processCQLSimpleFilterField:oe,processCQLSpatialFilter:$,processCQLFilterFields:ne,getCQLGeometryElement:J,cqlStringField:Q,cqlDateField:X,cqlNumberField:ee,cqlBooleanField:Z,cqlListField:re,toOGCFilter:R,reprojectFilterInNativeCrs:pe,processOGCSpatialFilter:W,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/ImmutableUtils.js":function(e,t,r){"use strict";r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return m}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/node_modules/lodash/fp/set.js"),s=r.n(o),i=r("./MapStore2/node_modules/lodash/fp/unset.js"),a=r.n(i),u=r("./MapStore2/node_modules/lodash/fp/compose.js"),l=r.n(u),c=s.a,d=a.a,f=l.a,p=function(e,t,r,o){var s=e?Object(n.get)(o,e)||[]:o,i=Object(n.findIndex)(s,r);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return e?c(e,s.concat(t),o):s.concat(t)},h=function(e,t,r,o){var s=e?Object(n.get)(o,e)||[]:o,i=Object(n.findIndex)(s,r);if(i>=0){var a=s.slice();return a.splice(i,1,t),e?c(e,a,o):a}return o},m=function(e,t,r){var o=e?Object(n.get)(r,e)||[]:r,s=Object(n.findIndex)(o,t);if(s>=0){var i=o.slice();return i.splice(s,1),e?c(e,i,r):i()}return r}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"generateEnvString",(function(){return n}));var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,r=e.value;return"".concat(t,":").concat(r)})).join(";"):""}},"./MapStore2/web/client/utils/LayersUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getWpsUrl",(function(){return R})),r.d(t,"getNode",(function(){return U})),r.d(t,"getGroupNodes",(function(){return H})),r.d(t,"getNestedGroupTitle",(function(){return B})),r.d(t,"deepChange",(function(){return W})),r.d(t,"getSourceId",(function(){return z})),r.d(t,"extractTileMatrixFromSources",(function(){return G})),r.d(t,"extractTileMatrixSetFromLayers",(function(){return q})),r.d(t,"extractSourcesFromLayers",(function(){return V})),r.d(t,"extractDataFromSources",(function(){return K})),r.d(t,"getURLs",(function(){return J})),r.d(t,"getLayerUrl",(function(){return X})),r.d(t,"getGroupByName",(function(){return Q})),r.d(t,"getDimension",(function(){return Z})),r.d(t,"getLayerId",(function(){return ee})),r.d(t,"normalizeLayer",(function(){return te})),r.d(t,"normalizeMap",(function(){return re})),r.d(t,"belongsToGroup",(function(){return ne})),r.d(t,"getLayersByGroup",(function(){return oe})),r.d(t,"removeEmptyGroups",(function(){return se})),r.d(t,"getNotEmptyGroup",(function(){return ie})),r.d(t,"reorderFunc",(function(){return ae})),r.d(t,"denormalizeGroups",(function(){return ue})),r.d(t,"sortLayers",(function(){return le})),r.d(t,"toggleByType",(function(){return ce})),r.d(t,"sortUsing",(function(){return de})),r.d(t,"splitMapAndLayers",(function(){return fe})),r.d(t,"geoJSONToLayer",(function(){return pe})),r.d(t,"saveLayer",(function(){return he})),r.d(t,"REG_GEOSERVER_RULE",(function(){return me})),r.d(t,"setRegGeoserverRule",(function(){return _e})),r.d(t,"getRegGeoserverRule",(function(){return ye})),r.d(t,"findGeoServerName",(function(){return be})),r.d(t,"getCapabilitiesUrl",(function(){return ve})),r.d(t,"getSearchUrl",(function(){return ge})),r.d(t,"invalidateUnsupportedLayer",(function(){return je})),r.d(t,"isSupportedLayer",(function(){return we})),r.d(t,"getLayerTitleTranslations",(function(){return xe})),r.d(t,"setCustomUtils",(function(){return Me})),r.d(t,"getAuthenticationParam",(function(){return Se})),r.d(t,"excludeGoogleBackground",(function(){return Oe})),r.d(t,"creditsToAttribution",(function(){return Ee})),r.d(t,"formatCapabitiliesOptions",(function(){return ke})),r.d(t,"getLayerTitle",(function(){return Te}));var n,o=r("./node_modules/object-assign/index.js"),s=r.n(o),i=r("./node_modules/turf-bbox/index.js"),a=r.n(i),u=r("./node_modules/uuid/v1.js"),l=r.n(u),c=r("./MapStore2/node_modules/lodash/isString.js"),d=r.n(c),f=r("./MapStore2/node_modules/lodash/isObject.js"),p=r.n(f),h=r("./MapStore2/node_modules/lodash/isArray.js"),m=r.n(h),_=r("./MapStore2/node_modules/lodash/head.js"),y=r.n(_),b=r("./MapStore2/node_modules/lodash/castArray.js"),v=r.n(b),g=r("./MapStore2/node_modules/lodash/isEmpty.js"),j=r.n(g),w=r("./MapStore2/node_modules/lodash/findIndex.js"),x=r.n(w),M=r("./MapStore2/node_modules/lodash/pick.js"),S=r.n(M),O=r("./MapStore2/node_modules/lodash/isNil.js"),E=r.n(O),k=r("./MapStore2/web/client/utils/SecurityUtils.js");function T(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 L(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?e(n.nodes,r):t:n)}),null):null},H=function e(t){return t&&t.nodes?t.nodes.reduce((function(t,r){var n=[].concat(t);return r.nodes&&(n=t.concat(e(r))),d()(r)?[].concat(P(n),[r]):[].concat(P(n),[r.id])}),[]):[]},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return m()(t)&&y()(t.map((function(t){var r=t.id===e?t:null;if(r)return r.title;var n=U(t.nodes,e);return n?n.title:null})))},W=function e(t,r,n,o){return t&&m()(t)&&t.length>0?t.map((function(t){if(p()(t)){if(t.id===r)return L(L({},t),p()(n)?n:A({},n,o));if(t.nodes)return L(L({},t),{},{nodes:e(t.nodes,r,n,o)})}return t})):[]},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.capabilitiesURL||y()(v()(e.url))},G=function(e,t){if(!e||!t)return{};!m()(t.matrixIds)&&p()(t.matrixIds)&&(t.matrixIds=P(Object.keys(t.matrixIds)));var r=z(t),n=t.matrixIds&&t.matrixIds.reduce((function(t,n){var o=e[r]&&e[r].tileMatrixSet&&e[r].tileMatrixSet[n]&&e[r].tileMatrixSet[n].TileMatrix.map((function(e){return{identifier:e["ows:Identifier"],ranges:e.ranges}}))||[];return 0===o.length?s()({},t):s()({},t,A({},n,P(o)))}),{})||null,o=t.tileMatrixSet&&t.matrixIds.map((function(t){return e[r].tileMatrixSet[t]})).filter((function(e){return e}))||null;return o&&n&&{tileMatrixSet:o,matrixIds:n}||{}},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&Object.keys(e).reduce((function(r,n){var o=e[n].reduce((function(e,t){return s()(e,A({},t.id||t.name,{srs:P(Object.keys(t.matrixIds)),matrixIds:s()({},t.matrixIds)}))}),{}),i=e[n].reduce((function(e,t){var r=t.tileMatrixSet.reduce((function(e,t){return s()({},e,A({},t["ows:Identifier"],s()({},t)))}),{}),n=Object.keys(r).reduce((function(e,t){var n=Object.keys(o).filter((function(e){return y()(o[e].srs.filter((function(e){return e===t})))})).map((function(e){return o[e].matrixIds[t]})),i=n[0]&&r[t].TileMatrix.map((function(e,t){return n[0][t]&&n[0][t].ranges?s()({},e,{ranges:n[0][t].ranges}):s()({},e)}));return y()(n)?s()({},e,A({},t,s()({},r[t],{TileMatrix:i}))):s()({},e)}),{});return s()({},e,n)}),{});return s()({},r,A({},n,s()({},t[n]||{},{tileMatrixSet:s()({},r[n]&&r[n].tileMatrixSet||{},i)})))}),s()({},t))||t},V=function(e){var t=e.filter((function(e){return e.tileMatrixSet})).reduce((function(e,t){var r=z(t);return e[r]?s()({},e,A({},r,[].concat(P(e[r]),[t]))):s()({},e,A({},r,[t]))}),{});return q(t)},K=function(e){if(!e||!e.layers||!m()(e.layers))return null;var t=e.mapInitialConfig&&e.mapInitialConfig.sources&&s()({},e.mapInitialConfig.sources)||{};return j()(t)?P(e.layers):e.layers.map((function(e){var r=G(t,e);return s()({},e,r)}))},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((function(e){return e.split("?")[0]+t}))},$={},X=function(e){return m()(e.url)?e.url[0]:e.url},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=y()(t.filter((function(t){return t.name===e})));return r||t.reduce((function(t,r){return t||!!r.nodes&&n.getGroupByName(e,r.nodes)}),void 0)},Z=function(e,t){switch(t.toLowerCase()){case"elevation":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"elevation"===t.name.toLowerCase()||"depth"===t.name.toLowerCase()?s()({positive:"elevation"===t.name.toLowerCase()},t,{name:"elevation"===t.name.toLowerCase()?t.name:"DIM_"+t.name}):e}),null)}(e);default:return null}},ee=function(e,t){return e&&e.id||e.name+"__"+(t?t.length:Math.random().toString(36).substring(2,15))},te=function(e){return e.id?e:L(L({},e),{},{id:n.getLayerId(e)})},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[function(e){return(e.layers||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return!t})).length>0?L(L({},e),{},{layers:(e.layers||[]).map((function(e){return n.normalizeLayer(e)}))}):e},function(e){return e.groups?e:L(L({},e),{},{groups:{id:"Default",expanded:!0}})}].reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))(e)},ne=function(e){return function(t){return(t.group||"Default")===e||0===(t.group||"").indexOf("".concat(e,"."))}},oe=function(e,t){var r=0,n=e.map((function(e){return s()({},e,{storeIndex:r++})}));return n.reduce((function(e,t){return-1===e.indexOf(t.group||"Default")?e.concat([t.group||"Default"]):e}),[]).filter((function(e){return"background"!==e})).reverse().reduce((function(e,r){var o=r||"Default";return o.split(".").reduce((function(e,r,i,a){var u=o.split(".",i+1).join("."),l=function(e,t){return y()(t.filter((function(t){return p()(t)&&t.id===e})))}(u,e),c=i===a.length-1;l?c&&(l.nodes=l.nodes.concat(I(u,n))):(l=function(e,t,r,n){return s()({},{id:e,title:(t||"").replace(/\${dot}/g,"."),name:t,nodes:n?I(e,r):[],expanded:!0})}(u,B(u,t)||r,n,c),e.push(l));return l.nodes}),e),e}),[])},se=function(e){return e.reduce((function(e,t){return e.concat(n.getNotEmptyGroup(t))}),[])},ie=function(e){var t=e.nodes.reduce((function(e,t){return t.nodes?e.concat(n.getNotEmptyGroup(t)):e.concat(t)}),[]);return t.length>0?s()({},e,{nodes:t}):[]},ae=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(N(e,t))},ue=function(e,t){var r=function(e){var t=!0;return e.forEach((function(e){e.visibility||(t=!1)})),t},n=e.map((function(e){return s()({},e,{expanded:e.expanded||!1})}));return{flat:n,groups:t.map((function(e){return function e(t,n){var o=t.nodes.map((function(t){return p()(t)?e(t,n):n.filter((function(e){return e.id===t}))[0]}));return s()({},t,{nodes:o,visibility:r(o)})}(e,n)}))}},le=function(e,t){return t.filter((function(e){return"background"===e.group})).concat(N(e,t))},ce=function(e,t){return function(r,n){return t(r,e,n)}},de=function(e,t){return function(r,n){return t(r,n,e)}},fe=function(e){if(e&&m()(e.layers)){var t=n.getLayersByGroup(e.layers,e.groups);m()(e.groups)&&(t=e.groups.reduce((function(e,t){var r=e;if(t.title){var o={title:t.title,description:t.description,tooltipOptions:t.tooltipOptions,tooltipPlacement:t.tooltipPlacement};r=n.deepChange(r,t.id,o)}return r=n.deepChange(r,t.id,"expanded",t.expanded)}),[].concat(t)));var r=K(e);return s()({},e,{layers:{flat:n.reorder(t,r),groups:t}})}return e},pe=function(e,t){var r=a()(e),n=[];return n="FeatureCollection"===e.type?e.features.map((function(e,t){return e.id||(e.id=t),e.geometry&&e.geometry.bbox&&isNaN(e.geometry.bbox[0])&&(e.geometry.bbox=[null,null,null,null]),e})):[S()(L(L({},e),{},{id:E()(e.id)?l()():e.id}),["geometry","type","style","id"])],{type:"vector",visibility:!0,group:"Local shape",id:t,name:e.fileName,hideLoading:!0,bbox:{bounds:{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]},crs:"EPSG:4326"},features:n}},he=function(e){return s()({id:e.id,features:e.features,format:e.format,thumbURL:e.thumbURL&&"blob"===e.thumbURL.split(":")[0]?void 0:e.thumbURL,group:e.group,search:e.search,source:e.source,name:e.name,opacity:e.opacity,provider:e.provider,description:e.description,styles:e.styles,style:e.style,styleName:e.styleName,availableStyles:e.availableStyles,layerFilter:e.layerFilter,title:e.title,transparent:e.transparent,tiled:e.tiled,type:e.type,url:e.url,bbox:e.bbox,visibility:e.visibility,singleTile:e.singleTile||!1,allowedSRS:e.allowedSRS,matrixIds:e.matrixIds,tileMatrixSet:e.tileMatrixSet,requestEncoding:e.requestEncoding,dimensions:e.dimensions||[],maxZoom:e.maxZoom,maxNativeZoom:e.maxNativeZoom,hideLoading:e.hideLoading||!1,handleClickOnLayer:e.handleClickOnLayer||!1,queryable:e.queryable,featureInfo:e.featureInfo,catalogURL:e.catalogURL,capabilitiesURL:e.capabilitiesURL,useForElevation:e.useForElevation||!1,hidden:e.hidden||!1,origin:e.origin,thematic:e.thematic,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,legendOptions:e.legendOptions,tileSize:e.tileSize,version:e.version},e.params?{params:e.params}:{},e.credits?{credits:e.credits}:{},e.localizedLayerStyles?{localizedLayerStyles:e.localizedLayerStyles}:{})},me=C,_e=function(e){C=e},ye=function(){return C},be=function(e){var t=e.url,r=e.regexRule||n.getRegGeoserverRule(),o=m()(t)?t[0]:t;return r.test(o)&&o.match(r)[0]||null},ve=function(e){var t=n.findGeoServerName({url:e.url}),r=X(e);if(t){var o=r.split(t);if(2===o.length){var s=e.name.split(":");2===s.length&&(r=o[0]+t+s[0]+"/"+s[1]+"/"+o[1])}}return function(e,t){var r=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return-1===e.indexOf("?")?e+"?"+r:e+"&"+r}(r,L(L({},e.baseParams),e.params))},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.search&&e.search.url||e.url},je=function(e,t){return F(e,t)?function(e){return e&&e.invalid?s()({},e,{invalid:!1}):e}(e):s()({},e,{invalid:!0})},we=function(e,t){return!!F(e,t)},xe=function(e){return $.getLayerTitleTranslations?$.getLayerTitleTranslations(e):e.Title},Me=function(e,t){$[e]=t},Se=function(e){var t=J(m()(e.url)?e.url:[e.url]),r={};return t.forEach((function(t){Object(k.addAuthenticationParameter)(t,r,e.securityToken)})),r},Oe=function(e){var t=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.group,n=e.visibility;return"background"===r&&"google"===t&&n})).length>0,r=e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"google"!==t})),n=r.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.group;return"background"===t}));if(t&&0===n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibility;return t})).length){if(n.length>0){var o=x()(r,{group:"background"});return r.map((function(e,t){return t===o?L(L({},e),{},{visibility:!0}):e}))}return[{type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0}].concat(P(r))}return r},Ee=function(e){var t=e.imageUrl,r=e.link,n=e.title,o=t?'"):n;return r&&o?'').concat(o,""):o},ke=function(e){return p()(e)?{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}:{}},Te=function(e){var t=e.title,r=e.name,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(null==t?void 0:t[n])||(null==t?void 0:t.default)||t||r};n={getGroupByName:Q,getLayerId:ee,normalizeLayer:te,getNotEmptyGroup:ie,getLayersByGroup:oe,deepChange:W,reorder:ae,getRegGeoserverRule:ye,findGeoServerName:be}},"./MapStore2/web/client/utils/LocaleUtils.js":function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(g)[0],r=g.en?{key:"en",locale:g.en}:{key:t,locale:g[t]},n=g[v.normalizeLocaleCode(e.locale||(navigator?navigator.language||navigator.browserLanguage:r.key))];return n?n.code:r.locale.code},E=function(){return g},k=function(e){return j[e]||j.default},T=function(e,t){var r=e;return t.split(".").forEach((function(e){r=r?r[e]:null})),r||t},L=function(e,t){w[e]=t},A=function(e,t,r){return t&&r&&w[t]&&w[t][r]&&w[t][r](e)||{title:"errorTitleDefault",message:"errorDefault"}},P=function(e,t){return i(t)?t[e]||t.default:t||""};v={getLocale:O,normalizeLocaleCode:function(e){var t;if(null==e)t=void 0;else{var r=/^[a-z]+/i.exec(e);t=r&&r.length>0?r[0].toLowerCase():void 0}return t}}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,r){"use strict";r.d(t,"d",(function(){return O})),r.d(t,"e",(function(){return E})),r.d(t,"f",(function(){return k})),r.d(t,"h",(function(){return T})),r.d(t,"a",(function(){return L})),r.d(t,"g",(function(){return A})),r.d(t,"i",(function(){return P})),r.d(t,"k",(function(){return D})),r.d(t,"b",(function(){return C})),r.d(t,"j",(function(){return R})),r.d(t,"c",(function(){return Y}));var n,o=r("./MapStore2/web/client/utils/FeatureInfoUtils.js"),s=r("./node_modules/turf-point-on-surface/index.js"),i=r.n(s),a=r("./MapStore2/node_modules/lodash/lodash.js"),u=r("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),l=r.n(u),c=r("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=r("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),f=r("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),p=r("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=r.n(p),m=r("./MapStore2/web/client/utils/mapinfo/wms.js"),_=r.n(m),y=r("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=r.n(y),v=r("./MapStore2/web/client/utils/mapinfo/vector.js"),g=r.n(v);function j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(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);r1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,s){if(s){var i;s.queryParams&&s.queryParams.hasOwnProperty("info_format")&&(i=s.queryParams.info_format),s.queryParams&&s.queryParams.hasOwnProperty("outputFormat")&&(i=s.queryParams.outputFormat);var a=(o.c[s.format||o.b[i]||o.b[e]]||t).getValidResponses([s],n);return[].concat(j(r),j(a))}return j(r)}),[])},getNoValidResponses:function(r){return r.reduce((function(r,n){if(n){var s;n.queryParams&&n.queryParams.hasOwnProperty("info_format")&&(s=n.queryParams.info_format),n.queryParams&&n.queryParams.hasOwnProperty("outputFormat")&&(s=n.queryParams.outputFormat);var i=(o.c[n.format||o.b[s]||o.b[e]]||t).getNoValidResponses([n]);return[].concat(j(r),j(i))}return j(r)}),[])}}},D=function(){var e;return S(e={},o.a.PROPERTIES,c.a),S(e,o.a.JSON,c.a),S(e,o.a.HTML,d.a),S(e,o.a.TEXT,f.a),e},C=function(e){var t;return e.visibility&&n.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},I={wfs:h.a,wms:_.a,wmts:b.a,vector:g.a},R=function(e){return n.VIEWERS[e]?n.VIEWERS[e]:null},Y=function(e,t,r){var n=t||[],o=r||[];return Object.keys(e).reduce((function(t,r){if("params"!==r&&-1!==n.indexOf(r))t[r]=e[r];else if("params"===r&&o.length>0){var s=e[r];Object.keys(s).forEach((function(e){-1===Object(a.findIndex)(o,(function(t){return t===e}))&&(t[e]=s[e])}),{})}return t}),{})};n={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(n.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:k,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[i()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:l.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:I,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||n.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&M({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),r.d(t,"METERS_PER_UNIT",(function(){return v})),r.d(t,"GOOGLE_MERCATOR",(function(){return g})),r.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),r.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return w})),r.d(t,"RESOLUTIONS_HOOK",(function(){return x})),r.d(t,"RESOLUTION_HOOK",(function(){return M})),r.d(t,"COMPUTE_BBOX_HOOK",(function(){return S})),r.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),r.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return E})),r.d(t,"registerHook",(function(){return T})),r.d(t,"getHook",(function(){return L})),r.d(t,"executeHook",(function(){return A})),r.d(t,"clearHooks",(function(){return P})),r.d(t,"dpi2dpm",(function(){return D})),r.d(t,"dpi2dpu",(function(){return C})),r.d(t,"getSphericalMercatorScale",(function(){return I})),r.d(t,"getGoogleMercatorScale",(function(){return R})),r.d(t,"getSphericalMercatorScales",(function(){return Y})),r.d(t,"getGoogleMercatorScales",(function(){return N})),r.d(t,"getResolutionsForScales",(function(){return F})),r.d(t,"getGoogleMercatorResolutions",(function(){return U})),r.d(t,"getResolutions",(function(){return H})),r.d(t,"getScales",(function(){return B})),r.d(t,"defaultGetZoomForExtent",(function(){return W})),r.d(t,"getZoomForExtent",(function(){return z})),r.d(t,"getCurrentResolution",(function(){return G})),r.d(t,"getCenterForExtent",(function(){return q})),r.d(t,"getBbox",(function(){return V})),r.d(t,"isNearlyEqual",(function(){return K})),r.d(t,"mapUpdated",(function(){return J})),r.d(t,"transformExtent",(function(){return $})),r.d(t,"groupSaveFormatted",(function(){return X})),r.d(t,"saveMapConfiguration",(function(){return Q})),r.d(t,"generateNewUUIDs",(function(){return Z})),r.d(t,"mergeMapConfigs",(function(){return ee})),r.d(t,"addRootParentGroup",(function(){return te})),r.d(t,"isSimpleGeomType",(function(){return re})),r.d(t,"getSimpleGeomType",(function(){return ne})),r.d(t,"getIdFromUri",(function(){return oe})),r.d(t,"parseLayoutValue",(function(){return se})),r.d(t,"prepareMapObjectToCompare",(function(){return ie})),r.d(t,"updateObjectFieldKey",(function(){return ae})),r.d(t,"compareMapChanges",(function(){return ue})),r.d(t,"createRegisterHooks",(function(){return le}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./node_modules/uuid/v1.js"),s=r.n(o),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r("./MapStore2/web/client/utils/ImmutableUtils.js"),u=r("./MapStore2/web/client/utils/LayersUtils.js"),l=r("./node_modules/object-assign/index.js"),c=r.n(l);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(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.diff?e:{diff:n,zoom:r}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,n))}function z(e,t,r,n,o){return L("EXTENT_TO_ZOOM_HOOK")?L("EXTENT_TO_ZOOM_HOOK")(e,t,r,n,o):W(e,t,r,n,o,L("RESOLUTIONS_HOOK")?L("RESOLUTIONS_HOOK")(e,t,r,n,o,D(o||b)):null)}function G(e,t,r,n){return L("RESOLUTION_HOOK")?L("RESOLUTION_HOOK")(e,t,r,n):U(t,r,n)[e]}function q(e,t){var r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return{x:e[0]+r,y:e[1]+n,crs:t}}function V(e,t){return A("COMPUTE_BBOX_HOOK",(function(r){return r(e,t)}))}var K=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function J(e,t){var r,o,s,i;return!(!e||Object(n.isEmpty)(e)||!t||Object(n.isEmpty)(t))&&(!(K(null==t||null===(r=t.center)||void 0===r?void 0:r.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&K(null==t||null===(s=t.center)||void 0===s?void 0:s.y,null==e||null===(i=e.center)||void 0===i?void 0:i.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function $(e,t,r,n){var o=Object(i.getUnits)(e);return"ft"===o?{width:r/v.ft,height:n/v.ft}:"us-ft"===o?{width:r/v["us-ft"],height:n/v["us-ft"]}:"degrees"===o?{width:r/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:n/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:r,height:n}}var X=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function Q(e,t,r,o,s,i,l){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},f=t.map((function(e){return Object(u.saveLayer)(e)})),p=r.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(r.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(r,e);return t&&t.nodes?X(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(u.extractSourcesFromLayers)(f),y=f.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(n.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?_(_({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(a.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(a.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(a.e)("features",v,y[b])}return _({version:2,map:c()({},d,{layers:y,groups:p,backgrounds:h,text_search_config:s,bookmark_search_config:i},!Object(n.isEmpty)(m)&&{sources:m}||{})},l)}var Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(n.cloneDeep)(e),r=_(_({},Object(n.get)(e,"map.layers",[]).reduce((function(e,t){return _(_({},e),{},y({},t.id,"annotations"===t.id?t.id:s()()))}),{})),Object(n.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return _(_({},e),{},y({},t.id,s()()))}),{}));return Object(a.e)("map.backgrounds",Object(n.get)(e,"map.backgrounds",[]).map((function(e){return _(_({},e),{},{id:r[e.id]})})),Object(a.e)("widgetsConfig",{collapsed:Object(n.mapValues)(Object(n.mapKeys)(Object(n.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return r[t]})),(function(e){return _(_({},e),{},{layouts:Object(n.mapValues)(e.layouts,(function(e){return _(_({},e),{},{i:r[e.i]})}))})})),layouts:Object(n.mapValues)(Object(n.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return _(_({},e),{},{i:r[e.i]})}))})),widgets:Object(n.get)(e,"widgetsConfig.widgets",[]).map((function(e){return _(_({},e),{},{id:r[e.id],layer:_(_({},Object(n.get)(e,"layer",{})),{},{id:r[Object(n.get)(e,"layer.id")]})})}))},Object(a.e)("map.layers",Object(n.get)(e,"map.layers",[]).map((function(e){return _(_({},e),{},{id:r[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(n.pick)(e,Object(n.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=Z(t),s=[].concat(p(Object(n.get)(e,"map.backgrounds",[])),p(Object(n.get)(o,"map.backgrounds",[]))),i=r(Object(n.get)(e,"map.layers",[])),a=r(Object(n.get)(o,"map.layers",[])),u=Object(n.find)(i,(function(e){return"annotations"===e.id})),l=Object(n.find)(a,(function(e){return"annotations"===e.id})),c=[].concat(p(a.filter((function(e){return"annotations"!==e.id}))),p(i.filter((function(e){return"annotations"!==e.id}))),p(u||l?[_(_(_({},u||{}),l||{}),{},{features:[].concat(p(Object(n.get)(u,"features",[])),p(Object(n.get)(l,"features",[])))})]:[])),d=c.filter((function(e){return"background"===e.group})),f=Object(n.findIndex)(d,(function(e){return e.visibility})),h=Object(n.get)(e,"map.sources",{}),m=Object(n.get)(o,"map.sources",{}),b=_(_({},h),m),v=Object(n.get)(e,"widgetsConfig",{}),g=Object(n.get)(o,"widgetsConfig",{});return _(_(_({},o),e),{},{catalogServices:_(_({},Object(n.get)(e,"catalogServices",{})),{},{services:_(_({},Object(n.get)(e,"catalogServices.services",{})),Object(n.get)(o,"catalogServices.services",{}))}),map:_(_(_({},o.map),e.map),{},{backgrounds:s,groups:Object(n.uniqWith)([].concat(p(Object(n.get)(e,"map.groups",[])),p(Object(n.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(p(d.slice(0,f+1)),p(d.slice(f+1).map((function(e){return _(_({},e),{},{visibility:!1})}))),p(c.filter((function(e){return"background"!==e.group})))),sources:Object(n.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:_(_({},v.collapsed),g.collapsed),layouts:Object(n.uniq)([].concat(p(Object(n.keys)(v.layouts)),p(Object(n.keys)(g.layouts)))).reduce((function(e,t){return _(_({},e),{},y({},t,[].concat(p(Object(n.get)(v,"layouts.".concat(t),[])),p(Object(n.get)(g,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(p(Object(n.get)(v,"widgets",[])),p(Object(n.get)(g,"widgets",[])))},timelineData:_(_({},Object(n.get)(e,"timelineData",{})),Object(n.get)(o,"timelineData",{})),dimensionData:_(_({},Object(n.get)(e,"dimensionData",{})),Object(n.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",r=Object(n.get)(e,"map.groups",[]),o=r.filter((function(e){return"Default"!==e.id})),i=Object(n.find)(r,(function(e){return"Default"===e.id})),a=i&&{id:s()(),title:t,expanded:i.expanded},u=i?[].concat(p(o.map((function(e){var t=e.id,r=f(e,["id"]);return _({id:"".concat(a.id,".").concat(t)},r)}))),[a]):o;return _(_({},e),{},{map:_(_({},e.map),{},{groups:u,layers:Object(n.get)(e,"map.layers",[]).map((function(e){var t,r=e.group;return _(_({},f(e,["group"])),{},{group:!i||"background"===r||"Default"!==r&&r?i&&(null===(t=Object(n.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===r})))||void 0===t?void 0:t.id)||r:a.id})}))})})};function re(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,r=decodeURIComponent(e),n=t.exec(r);return n&&n.length&&n.length>1?n[1]:null},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(n.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(n.trim)(e))*t/100:Object(n.isNumber)(e)?e:0},ie=function e(t){var r=["apiKey","time","args","fixed"],n=function(e){return r.reduce((function(t,r){return t||e===r}),!1)};Object.keys(t).forEach((function(r){var o=t[r],s=d(o);"object"!==s||null===o||n(r)?"undefined"!==s&&o&&!n(r)||delete t[r]:(e(o),Object.keys(o).length||delete t[r])}))},ae=function(e,t,r){e[t]&&(Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(n.pick)(Object(n.cloneDeep)(e),r),s=Object(n.pick)(Object(n.cloneDeep)(t),r);return ae(o.map,"text_serch_config","text_search_config"),ae(s.map,"text_serch_config","text_search_config"),ie(o),ie(s),Object(n.isEqual)(o,s)},le=function(){var e={};return{registerHook:function(t,r){e[t]=r},getHook:function(t){return e[t]},executeHook:function(t,r,n){var o=e[t];return o?r(o):n?n():null}}};t.default={createRegisterHooks:le,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:x,RESOLUTION_HOOK:M,COMPUTE_BBOX_HOOK:S,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:E,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:w,registerHook:T,getHook:L,dpi2dpm:D,getSphericalMercatorScales:Y,getSphericalMercatorScale:I,getGoogleMercatorScales:N,getGoogleMercatorResolutions:U,getGoogleMercatorScale:R,getResolutionsForScales:F,getZoomForExtent:z,defaultGetZoomForExtent:W,getCenterForExtent:q,getResolutions:H,getScales:B,getBbox:V,mapUpdated:J,getCurrentResolution:G,transformExtent:$,saveMapConfiguration:Q,generateNewUUIDs:Z,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:re,getSimpleGeomType:ne,getIdFromUri:oe,parseLayoutValue:se,prepareMapObjectToCompare:ie,updateObjectFieldKey:ae,compareMapChanges:ue,clearHooks:P}},"./MapStore2/web/client/utils/NotificationUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r("./MapStore2/web/client/actions/notifications.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"notification.warning":t,o=e.autoDismiss,s=void 0===o?6:o,i=e.position,a=void 0===i?"tc":i,u=e.message,l=void 0===u?"Error":u;return Object(n.f)({title:r,autoDismiss:s,position:a,message:l})},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"notification.success":t,o=e.autoDismiss,s=void 0===o?6:o,i=e.position,a=void 0===i?"tc":i,u=e.message,l=void 0===u?"Success":u;return Object(n.j)({title:r,autoDismiss:s,position:a,message:l})}},"./MapStore2/web/client/utils/ObservableUtils.js":function(e,t,r){"use strict";r.d(t,"c",(function(){return y})),r.d(t,"b",(function(){return b})),r.d(t,"a",(function(){return v}));var n=r("./node_modules/rxjs/Rx.js"),o=r.n(n),s=r("./MapStore2/node_modules/lodash/lodash.js"),i=r("./node_modules/xml2js/lib/xml2js.js"),a=r("./node_modules/xml2js/lib/processors.js"),u=r("./MapStore2/web/client/api/GeoStoreDAO.js");function l(e){return(l="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 c(e,t){return!t||"object"!==l(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 d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)})(e)}function f(e,t,r){return(f=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=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&&h(e,t)}(o,e);var t,r,n=(t=o,r=p(),function(){var e,n=m(t);if(r){var o=m(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return c(this,e)});function o(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="OGCError",r.code=t,r}return o}(d(Error)),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[a.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o.a.Observable.bindNodeCallback((function(e,r){return Object(i.parseString)(e,t,r)}))(e)},b=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o.a.Observable.bindNodeCallback((function(e,t){return Object(i.parseString)(e,{tagNameProcessors:[a.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=Object(s.get)(e,"ExceptionReport.Exception.ExceptionText");throw new _(t||"Undefined OGC Service Error",Object(s.get)(e,"ExceptionReport.Exception.exceptionCode"))})):o.a.Observable.of(e)}))},v=function(e,t){return e?u.a.deleteResource(e,t).then((function(e){return{data:e.data,resType:"success",error:null}})).catch((function(e){return{error:e,resType:"error"}})):o.a.Observable.of({resType:"success"})}},"./MapStore2/web/client/utils/PluginsUtils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return combineReducers})),__webpack_require__.d(__webpack_exports__,"a",(function(){return combineEpics})),__webpack_require__.d(__webpack_exports__,"g",(function(){return getMonitoredState})),__webpack_require__.d(__webpack_exports__,"h",(function(){return getPlugins})),__webpack_require__.d(__webpack_exports__,"f",(function(){return getConfiguredPlugin})),__webpack_require__.d(__webpack_exports__,"c",(function(){return connect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createPlugin}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/object-assign/index.js"),object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_1__),lodash__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./MapStore2/node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__),react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/es/index.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./MapStore2/web/client/libs/ajax.js"),_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_libs_ajax__WEBPACK_IMPORTED_MODULE_4__),url__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/url/url.js"),url__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_5__),lodash_curry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./MapStore2/node_modules/lodash/curry.js"),lodash_curry__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_curry__WEBPACK_IMPORTED_MODULE_6__),redux_observable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/redux-observable/lib/esm/index.js"),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/redux/es/index.js"),_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./MapStore2/web/client/utils/EpicsUtils.js"),_arguments=arguments;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=_objectSpread(_objectSpread({},getEpics(e)),t);return redux_observable__WEBPACK_IMPORTED_MODULE_7__.a.apply(void 0,_toConsumableArray(Object(_EpicsUtils__WEBPACK_IMPORTED_MODULE_9__.a)(n,r)))},filterState=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.memoize)((function(e,t){return t.reduce((function(t,r){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(t,_defineProperty({},r.name,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r.path)))}),{})}),(function(e,t){return t.reduce((function(t,r){return t+JSON.stringify(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r.path))}),"")})),getPluginSimpleName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e.substring(0,e.length-6)||e},normalizeName=function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.endsWith)(e,"Plugin")&&e||e+"Plugin"},getPluginConfiguration=function(e,t){var r=getPluginSimpleName(t);return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.head)(e.filter((function(e){return e.name===r||e===r})).map((function(e){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)?{name:e}:e})))||{}},parseExpression=function parseExpression(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},value=arguments.length>2?arguments[2]:void 0,searchExpression=/^\{(.*)\}$/,expression=searchExpression.exec(value),request=url__WEBPACK_IMPORTED_MODULE_5___default.a.parse(location.href,!0),dispatch=function(e){return function(){return state("store").dispatch(e.apply(null,_arguments))}};return null!==expression?eval(expression[1]):value},handleExpression=function(e,t,r){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(r)&&0===r.indexOf("{")?parseExpression(e,t,r):r},filterDisabledPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.disablePluginIf")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"plugin.disablePluginIf");return!(n&&!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,"cfg.skipAutoDisable"))||!handleExpression(t,r.requires,n)},isContainedInList=function(e,t,r,n){return e&&t&&-1!==handleExpression(r,n,t).indexOf(e)},showIn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return(isContainedInList(o,r.showIn,e,t)||isContainedInList(n,r.showIn,e,t)||!r.showIn&&s)&&!(isContainedInList(o,r.hideFrom,e,t)||isContainedInList(n,r.hideFrom,e,t))},includeLoaded=function(e,t,r){if(t[e]){var n=t[e],o=n.component||n;return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,r,{loadPlugin:void 0},_objectSpread({},n.containers))}return r},getPriority=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(t,r+".priority")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(e,r+".priority")||0},getMorePrioritizedContainer=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 r.reduce((function(r,n){var o=n.name||n,s=getPriority(e,t,o);return s>r.priority?{plugin:{name:o,impl:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e[o],t[o])},priority:s}:r}),{plugin:null,priority:n})},parsePluginConfig=function e(t,r,n){return Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isArray)(n)?n.map((function(n){return e(t,r,n)})):Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?Object.keys(n).reduce((function(o,s){var i=n[s];return object_assign__WEBPACK_IMPORTED_MODULE_1___default()(o,_defineProperty({},s,e(t,r,i)))}),{}):parseExpression(t,r,n)},canContain=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t[e]||r[e]||!1},isMorePrioritizedContainer=function(e,t,r,n){return null===getMorePrioritizedContainer(e,t,r,n).plugin},isValidConfiguration=function(e){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isString)(e)||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e.name},executeDeferredProp=function(e,t,r){return e&&Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e[r])?_objectSpread(_objectSpread({},e),{},_defineProperty({},r,e[r](t))):e},getPluginItems=function e(t,r,n,o,s,i,a,u){return Object.keys(r).map((function(e){var t=getPluginConfiguration(n,e);return{name:e,impl:executeDeferredProp(includeLoaded(getPluginSimpleName(e),a,r[e]),t,o),config:t}})).filter((function(e){return isValidConfiguration(e.config)})).filter((function(e){return canContain(o,e.impl,e.config.override)})).filter((function(e){return showIn(t,r.requires,e.config,o,s,i)})).filter((function(e){return isMorePrioritizedContainer(e.impl,e.config.override,n,getPriority(e.impl,e.config.override,o))})).map((function(s){var i=getPluginSimpleName(s.name),u=includeLoaded(i,a,s.impl),l=object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o+".impl")||Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(u,o),Object(lodash__WEBPACK_IMPORTED_MODULE_2__.get)(s.config,"override."+o));return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({name:i},l,{cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},u.cfg||{},parsePluginConfig(t,r.requires,s.config.cfg||{})||void 0)},{plugin:u,items:e(t,r,n,i,null,!0,a)})})).filter((function(e){return filterDisabledPlugins(e,t,r)})).filter((function(e){return!u||u(e)}))},pluginsMergeProps=function(e,t,r){var n=r.pluginCfg,o=_objectWithoutProperties(r,["pluginCfg"]);return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},o,e,t,n||{})},isMapStorePlugin=function(e){return e.loadPlugin||e.displayName||e.prototype.isReactComponent||e.isMapStorePlugin},getPluginImplementation=function(e,t){return isMapStorePlugin(e)?e:e(t)},importPlugin=function importPlugin(source,callback){var r=__webpack_require__;eval(source);var lastLoaded=window.webpackJsonp[window.webpackJsonp.length-1][1];Object.keys(lastLoaded).forEach((function(e){var t={};lastLoaded[e](null,t,r);var n=t.default||t,o={loadPlugin:function(e){if(!e)return Promise.resolve(n);e(n)}};callback(n.name,o)})),window.webpackJsonp.pop()},getMonitoredState=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return filterState(e,defaultMonitoredState.concat(t))},mapPluginsPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var r=t.cfg&&t.cfg.containerPosition||"bodyPlugins";return _objectSpread(_objectSpread({},e),{},_defineProperty({},r,e[r]?[].concat(_toConsumableArray(e[r]),[t]):[t]))}),{})},getPlugins=function(e){return Object.keys(e).map((function(t){return e[t]})).reduce((function(e,t){return object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},e,Object(lodash__WEBPACK_IMPORTED_MODULE_2__.omit)(t,"reducers","epics"))}),{})},getPluginDescriptor=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.name:n,i=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.id:null,a=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.stateSelector:i||void 0,u=!Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)||(void 0===n.isDefault||n.isDefault),l=(Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?n.name:n)+"Plugin",c=t[l];return c?{id:i||s,name:s,impl:includeLoaded(s,o,getPluginImplementation(c,a)),cfg:object_assign__WEBPACK_IMPORTED_MODULE_1___default()({},c.cfg||{},Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(n)?parsePluginConfig(e,t.requires,n.cfg):{}),items:getPluginItems(e,t,r,s,i,u,o)}:null},getConfiguredPlugin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(e){var n=t[e.name]||!e.plugin.loadPlugin&&e.plugin,o=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.id:null,s=Object(lodash__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)?e.stateSelector:o||void 0,i=getPluginImplementation(n,s),a=function(t){return i?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(i,_extends({key:e.id},t,e.cfg,{pluginCfg:e.cfg,items:e.items||[]})):r};return a.loaded=!!n,a}return e},setRefToWrappedComponent=function(e){return function(t){t&&(window["".concat(e,"Plugin")]=t)}},connect=function(e,t,r,n){return Object(react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)(e,t,r||pluginsMergeProps,n)},createPlugin=function(e,t){var r,n=t.component,o=t.options,s=void 0===o?{}:o,i=t.containers,a=void 0===i?{}:i,u=t.reducers,l=void 0===u?{}:u,c=t.epics,d=void 0===c?{}:c,f=t.lazy,p=void 0!==f&&f,h=t.enabler,m=void 0===h?function(){return!0}:h,_=t.loader,y=normalizeName(e),b=p?{loadPlugin:function(e){_().then((function(t){var r=t.default||t;e(object_assign__WEBPACK_IMPORTED_MODULE_1___default()(r,{isMapStorePlugin:!0}))}))},enabler:m}:object_assign__WEBPACK_IMPORTED_MODULE_1___default()(n,{isMapStorePlugin:!0});return _defineProperty(r={},y,object_assign__WEBPACK_IMPORTED_MODULE_1___default()(b,a,s)),_defineProperty(r,"reducers",l),_defineProperty(r,"epics",d),r},loadPlugin=function(e){return new Promise((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};_libs_ajax__WEBPACK_IMPORTED_MODULE_4___default.a.get(e).then((function(e){importPlugin(e.data,(function(e,r){return t({name:e,plugin:r})}))})).catch((function(e){r(e)}))}))};__webpack_exports__.e={combineReducers:combineReducers,combineEpics:combineEpics,filterState:filterState,filterDisabledPlugins:filterDisabledPlugins,getMonitoredState:getMonitoredState,mapPluginsPosition:mapPluginsPosition,getPlugins:getPlugins,getPluginDescriptor:getPluginDescriptor,getPluginItems:getPluginItems,getConfiguredPlugin:getConfiguredPlugin,setRefToWrappedComponent:setRefToWrappedComponent,connect:connect,createPlugin:createPlugin,importPlugin:importPlugin,loadPlugin:loadPlugin,handleExpression:handleExpression,getMorePrioritizedContainer:getMorePrioritizedContainer,getPluginConfiguration:getPluginConfiguration,isMapStorePlugin:isMapStorePlugin}},"./MapStore2/web/client/utils/ResourceUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=/rest\/geostore\/data\/(\d+)/,o=function(e){var t=decodeURIComponent(decodeURIComponent(e)),r=n.exec(t);return r&&!!r[0]&&r[1]}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return l}));var n=r("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=r.n(n),s=r("./MapStore2/web/client/product/assets/img/marker-shadow.png"),i=r.n(s),a={iconUrl:o.a,shadowUrl:i.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},l=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/SecurityUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"setStore",(function(){return b})),r.d(t,"getSecurityInfo",(function(){return v})),r.d(t,"getUser",(function(){return g})),r.d(t,"getBasicAuthHeader",(function(){return j})),r.d(t,"getToken",(function(){return w})),r.d(t,"getRefreshToken",(function(){return x})),r.d(t,"getUserAttributes",(function(){return M})),r.d(t,"findUserAttribute",(function(){return S})),r.d(t,"findUserAttributeValue",(function(){return O})),r.d(t,"getAuthenticationRules",(function(){return E})),r.d(t,"isAuthenticationActivated",(function(){return k})),r.d(t,"getAuthenticationMethod",(function(){return T})),r.d(t,"getAuthenticationRule",(function(){return L})),r.d(t,"getAuthKeyParameter",(function(){return A})),r.d(t,"addAuthenticationParameter",(function(){return P})),r.d(t,"addAuthenticationToUrl",(function(){return D})),r.d(t,"clearNilValuesForParams",(function(){return C})),r.d(t,"addAuthenticationToSLD",(function(){return I})),r.d(t,"cleanAuthParamsFromURL",(function(){return R}));var n=r("./MapStore2/web/client/utils/ConfigUtils.js"),o=r("./node_modules/url/url.js"),s=r.n(o),i=r("./node_modules/object-assign/index.js"),a=r.n(i),u=r("./MapStore2/node_modules/lodash/head.js"),l=r.n(u),c=r("./MapStore2/node_modules/lodash/isNil.js"),d=r.n(c),f=r("./MapStore2/node_modules/lodash/isArray.js"),p=r.n(f),h=r("./MapStore2/web/client/utils/StateUtils.js");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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return d()(e[r])?t:_(_({},t),{},y({},r,e[r]))}),{})}function I(e,t){if(e.SLD){var r=s.a.parse(e.SLD,!0),n=P(e.SLD,r.query,t.securityToken);return a()({},e,{SLD:s.a.format(a()({},r,{query:n,search:void 0}))})}return e}function R(e){return n.default.filterUrlParams(e,[A(e)].filter((function(e){return e})))}var Y={setStore:b,getSecurityInfo:v,getUser:g,getBasicAuthHeader:j,getToken:w,getRefreshToken:x,getUserAttributes:M,findUserAttribute:S,findUserAttributeValue:O,getAuthenticationRules:E,isAuthenticationActivated:k,getAuthenticationMethod:T,getAuthenticationRule:L,addAuthenticationToUrl:D,addAuthenticationParameter:P,clearNilValuesForParams:C,addAuthenticationToSLD:I,getAuthKeyParameter:A,cleanAuthParamsFromURL:R};t.default=Y},"./MapStore2/web/client/utils/StateUtils.js":function(e,t,r){"use strict";r.d(t,"f",(function(){return g})),r.d(t,"e",(function(){return w})),r.d(t,"d",(function(){return S})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return k})),r.d(t,"a",(function(){return T}));var n=r("./node_modules/redux/es/index.js"),o=r("./node_modules/redux-thunk/lib/index.js"),s=r.n(o),i=r("./node_modules/redux-logger/dist/redux-logger.js"),a=r.n(i),u=r("./node_modules/redux-observable/lib/esm/index.js"),l=r("./MapStore2/web/client/utils/EpicsUtils.js"),c=r("./MapStore2/web/client/utils/ConfigUtils.js"),d=r("./MapStore2/node_modules/lodash/isEmpty.js"),f=r.n(d),p=r("./node_modules/rxjs/Rx.js");function h(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 m(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?[s.a,a.a].concat(y(e)):[s.a].concat(y(e))},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore";return c.default.setConfigProp(t,e),e},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore";return c.default.getConfigProp(e)||{}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"epicMiddleware";return c.default.setConfigProp(t+"."+r,e),e},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootReducer";return c.default.setConfigProp(t+"."+r,e),e},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootReducer";return c.default.getConfigProp(e+"."+t)||{}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"persisted.reduxStore",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rootEpic",n=new p.BehaviorSubject(e);return c.default.setConfigProp(t+"."+r,n),function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"persisted.reduxStore",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rootEpic";return c.default.getConfigProp(e+"."+t)||{}},E=function(e){var t;return!f()(j(e))&&(null===(t=j(e))||void 0===t?void 0:t.getState())||{}},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootReducer,r=e.rootEpic,o=e.reducers,s=void 0===o?{}:o,i=e.epics,a=void 0===i?{}:i,c=e.state,d=void 0===c?{}:c,f=e.middlewares,p=void 0===f?[]:f,h=e.debug,m=void 0!==h&&h,_=e.enhancer,b=x(t||Object(n.c)(s)),j=r||u.a.apply(void 0,y(Object(l.a)(a))),M=j?[w(Object(u.b)(j))].concat(y(p)):p,S=n.a.apply(null,v(M,m)),O=(window.devToolsExtension&&m?Object(n.d)(S,window.devToolsExtension()):S)(n.e);return g(O(b,d,_))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducers,r=void 0===t?{}:t,n=e.epics,o=void 0===n?{}:n,s=arguments.length>1?arguments[1]:void 0,i=M(),a=function(e,t){var n=Object.keys(i({},{})),o=m(m({},e),i(e,t));return Object.keys(r).filter((function(e){return-1===n.indexOf(e)})).reduce((function(e,n){return m(m({},e),{},_({},n,r[n](e[n],t)))}),o)};(s||j()).replaceReducer(a);var u=O();Object(l.a)(o).forEach((function(e){u.next(e)}))}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var n=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c}));var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/LayersUtils.js"),s=r("./MapStore2/web/client/utils/LocaleUtils.js"),i=function(e,t){var r=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||r.test(t))return null;var n=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:n}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var s=Object(n.isObject)(t.title)?t.title[r]||t.title.default:t.title,i=s||t.name||"";return i;case"description":var a=t.description||"";return a;case"both":var u=Object(n.isObject)(t.title)?t.title[r]||t.title.default:t.title,l=u||t.nam||"",c=t.description||"";return"".concat(l).concat(o&&c?o:"").concat(c);default:return t[e]}},u=function(e){var t=e.node,r=e.currentLocale,n=e.tooltipOptions,o=void 0===n?{separator:" - ",maxLength:807}:n,s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return a(e.tooltipOptions,e,t,r)}(t,r,o.separator)||"";return(s=s&&s.substring(0,o.maxLength)).length===o.maxLength&&(s+="..."),{title:a("title",t,r,o.separator),tooltipText:s}},l=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(n?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,r+1,n)):t}),[])},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.replace(/[^\.\/]+/g,(function(e){var r=Object(n.get)(Object(o.getGroupByName)(e,t),"title");return Object(n.isObject)(r)?r[Object(s.d)()]||r.default:t&&r||e}));return r=(r=r.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"validateStringAttribute",(function(){return s})),r.d(t,"getCleanTemplate",(function(){return i})),r.d(t,"parseCustomTemplate",(function(){return a})),r.d(t,"generateTemplateString",(function(){return u})),r.d(t,"parseTemplate",(function(){return l}));var n,o=r("./MapStore2/node_modules/lodash/lodash.js"),s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=Object(o.isString)(t)&&Object(o.trim)(t.substring(r,t.length-n))||"";return Object(o.has)(e,s)},i=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(r),l=u&&u.map((function(e){var r=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:s(t,r,n,i)?r:a(e)}}))||null;return l&&l.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(i(e||"",t,/\$\{.*?\}/g,2,1,r))(t)},u=(n={},function(e,t){var r=n[e];return r&&!t||(r=function(r){var n=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,n){return(t||function(e){return e})(n.trim().split(".").reduce((function(e,t){return e&&e[t]}),r))}));return Object(o.isString)(n)&&n||""},t||(n[e]=r)),r}),l=function(e,t){r.e(32).then(function(){var n=r("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var s=n.transform(o,{presets:["es2015","react","stage-0"]}).code;t(s)}catch(e){t(null,e)}}.bind(null,r)).catch(r.oe)},c={generateTemplateString:u,parseTemplate:l,validateStringAttribute:s,getCleanTemplate:i,parseCustomTemplate:a};t.default=c},"./MapStore2/web/client/utils/ThemeUtils.js":function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,a=o.end;if(!i||!a)return{count:c({start:t,end:r,duration:n}),start:t,end:r};var u=s.a.duration(n).asMilliseconds(),l=new Date(t).getTime(),d=new Date(r).getTime(),f=new Date(i).getTime(),p=new Date(a).getTime(),h=Math.ceil((f-l)/u),m=Math.floor((p-l)/u),_=Math.floor((d-l)/u);if(h>=0&&m<=_){var y=m-h;return{start:new Date(l+Math.max(0,h)*u),end:new Date(l+Math.min(_,m)*u),count:y}}return{count:c({start:t,end:r,duration:n}),start:t,end:r}},h=function(e){return e.match(a)[0]},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),a=Math.floor(i.getTime()-o.getTime())/n,u=s.a.duration(a).toISOString(),l=h(u);return{range:{start:t,end:r},resolution:l}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[l(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},b=function(e,t){var r=s()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},v=function(e){return 6e4*e.getTimezoneOffset()},g=function(e){var t=e;!Object(n.isDate)(e)&Object(n.isString)(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var s=t.getUTCSeconds();return s=s<10?"0"+s:s,"".concat(r,":").concat(o,":").concat(s)},j=function(e){var t=e;!Object(n.isDate)(e)&Object(n.isString)(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,o=t.getUTCDate();return r=r<10?"0"+r:r,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(o)},w=function(e,t){var r=Object(i.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return r;default:return r+" HH:mm:SS"}},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,r=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,s=Object(n.castArray)(r.DimensionDomain||[]).concat(),i=r["@version"]||r.version,a=Object(n.get)(r,"SpaceDomain.BoundingBox");return a&&s.push({Identifier:"space",Domain:a}),s.map((function(e){var t=e.Identifier,r=e.Domain;return{source:{type:"multidim-extension",version:i,url:o},name:t,domain:r}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"optionsToVendorParams",(function(){return a}));var n=r("./MapStore2/web/client/utils/FilterUtils.js");function o(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;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,i=t.filterObj,a=[Object(n.isFilterValid)(o)&&!o.disabled&&Object(n.toCQLFilter)(o),Object(n.isFilterValid)(i)&&Object(n.toCQLFilter)(i),t&&t.params&&t.params.CQL_FILTER,r];return(e=(a=a.filter((function(e){return!!e}))).length>1?a.map((function(e){return"(".concat(e,")")})).join(" AND "):a.pop())?s(s({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"needsReload",(function(){return c})),r.d(t,"toDescribeURL",(function(){return d})),r.d(t,"extractGeometryType",(function(){return f})),r.d(t,"extractGeometryAttributeName",(function(){return p}));var n=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=r("./node_modules/url/url.js"),s=r.n(o),i=r("./MapStore2/node_modules/lodash/lodash.js");function a(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 u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.search,n=void 0===r?{}:r,o=e.url,i=e.describeFeatureTypeURL,a=s.a.parse(i||n.url||o,!0);return s.a.format(u(u({},a),{},{search:void 0,query:u(u({},a.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},f=function(e){var t=Object(i.get)(e,"featureTypes[0].properties")||[];return t&&Object(i.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},p=function(e){var t=Object(i.get)(e,"featureTypes[0].properties")||[];return t&&Object(i.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"getDefaultMatrixId",(function(){return l})),r.d(t,"getMatrixIds",(function(){return c})),r.d(t,"limitMatrix",(function(){return d})),r.d(t,"getTileMatrixSet",(function(){return f})),r.d(t,"getRequestEncoding",(function(){return p})),r.d(t,"getOperations",(function(){return h})),r.d(t,"getOperation",(function(){return m})),r.d(t,"getGetTileURL",(function(){return _})),r.d(t,"getCapabilitiesURL",(function(){return y})),r.d(t,"getDefaultStyleIdentifier",(function(){return b})),r.d(t,"getDefaultFormat",(function(){return v})),r.d(t,"sortTileMatrix",(function(){return g})),r.d(t,"getTileMatrix",(function(){return j}));var n,o=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=r("./MapStore2/node_modules/lodash/lodash.js");function i(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 a(e){for(var t=1;tt?Object(s.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(s.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,r).reduce((function(t,r){if(Object(s.isArray)(e)){var i=Object(s.head)(e.filter((function(e){return(e["ows:Identifier"]===r||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===r)&&n[e["ows:Identifier"]]})));return i&&i["ows:Identifier"]?i["ows:Identifier"]:t}return Object(s.isObject)(e)&&e[r]||t}),i):i},p=function(e){var t=n.getOperations(e);return n.getOperation(t,"GetTile","KVP")?"KVP":n.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,r){return Object(s.head)(Object(s.castArray)(Object(s.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(s.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===r})).map((function(e){return e.$["xlink:href"]})))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,r=e.GetTileURL,n=e.requestEncoding;return"KVP"===n?r:t&&Object(s.castArray)(t).map((function(e){var t=e.$,r=void 0===t?{}:t;return r.template||r.value}))||r},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.head)(Object(s.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(s.head)(Object(s.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(s.head)(Object(s.castArray)(e.Format))},g=function(e,t){return e?a(a({},e),{},{TileMatrix:Object(s.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return a(a({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var r,n,o=f(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),i=e.matrixIds&&c(e.matrixIds,o||t),a=g(Object(s.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),i),u=null==a||null===(r=(n=a.TileMatrix).map)||void 0===r?void 0:r.call(n,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&i?i.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):i,tileMatrixSetName:o,tileMatrixSet:a}};n={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/cesium/Layers.js":function(e,t){var r={},n={registerType:function(e,t){r[e]=t},createLayer:function(e,t,n){var o=r[e];return o&&o.create?o.create(t,n):o?o(t,n):null},renderLayer:function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},updateLayer:function(e,t,n,o,s){var i=r[e];return i&&i.update?i.update(t,n,o,s):null},isSupported:function(e){return!!r[e]}};e.exports=n},"./MapStore2/web/client/utils/leaflet/Layers.js":function(e,t){var r={},n={registerType:function(e,t){r[e]=t},createLayer:function(e,t){var n=r[e];return n&&n.create?n.create(t):n?n(t):null},renderLayer:function(e,t,n,o,s){var i=r[e];return i&&i.render?i.render(t,n,o,s):null},updateLayer:function(e,t,n,o){var s=r[e];return s&&s.update?s.update(t,n,o):null},isValid:function(e,t){var n=r[e];return!n||!n.isValid||n.isValid(t)},isSupported:function(e){return!!r[e]}};e.exports=n},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var r,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(r=e.features)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&n(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,r){function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(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;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.map,n=void 0===r?{}:r,o=t.point,i=t.currentLocale,a=t.params,d=t.maxItems,f=void 0===d?10:d,p=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:_(s({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(n.projection)||"EPSG:4326",feature_count:f},y({params:a})),e),metadata:{title:c(e.title)?e.title[i]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:p,featureInfo:h},url:l(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,r){var o=r.point,s=n(r,["point"]),i=function(e){var t,r,n=null==e||null===(t=e.geometricFilter)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.geometry;if(n)return n;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return a.defer((function(){return p(e.url,e.name).then((function(r){var n=m(r),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:n,operation:"INTERSECTS",geometry:i}},params:y({},e.baseParams,e.params,s)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,r){function n(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 o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.sizeBBox,n=t.map,s=void 0===n?{}:n,a=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,g=void 0===v?10:v,j=t.env,w=arguments.length>2?arguments[2]:void 0,x=arguments.length>3?arguments[3]:void 0,M=arguments.length>4?arguments[4]:void 0,S=r&&r.height||101,O=r&&r.width||101,E=[S,O],k=0,T=i(Math.ceil(s.zoom),0,21,96),L=a.latlng.lng,A=L-360*Math.floor(L/360+.5),P={x:A,y:a.latlng.lat},D=u(P,"EPSG:4326",s.projection),C=l(D,T,k,E,null),I=e.name;e.queryLayers&&(I=e.queryLayers.join(","));var R=h(j),Y=p({layerFilter:e.layerFilter,filterObj:e.filterObj,params:_({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:I,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:S,width:O,srs:c(s.projection)||"EPSG:4326",bbox:C.minx+","+C.miny+","+C.maxx+","+C.maxy,feature_count:g,info_format:w,ENV:R},_({},Y)),e),metadata:{title:f(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:x,featureInfo:M},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,r){function n(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 o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var r=e.length,n=e.indexOf("(",t[0].length);if(n>-1)for(var o=1;n0;)switch(n++,e.charAt(n)){case"(":o++;break;case")":o--}return[e.substr(0,n+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},l={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},f=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},p=function(e,t){var r,n,o=t.length;for(r=0;r0&&d[t[t.length-1].type]<=f;)a.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)a.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&a.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)a.push(t.pop());var p=function e(){var t=a.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":a.pop();var d=e(),f=e();return{property:e(),lowerBoundary:f,upperBoundary:d,type:l.BETWEEN};case"COMPARISON":var p=e();return{property:e(),value:p,type:l[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:l[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),_=e(),y=e(),b=e(),v=e();return{type:n,property:v,value:[b,y,_,m]};case"INTERSECTS":var g=e(),j=e();return{type:r,property:j,value:g};case"WITHIN":var w=e(),x=e();return{type:i,property:x,value:w};case"CONTAINS":var M=e(),S=e();return{type:o,property:S,value:M};case"DWITHIN":var O=e(),E=e(),k=e();return{type:s,value:E,property:k,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(a.length>0){for(var h="Remaining tokens after building AST: \n",m=a.length-1;m>=0;m--)h+=a[m].type+": "+a[m].text+"\n";throw new Error(h)}return p};e.exports={read:function(e){return h(function(e){var t,r=[],n=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(n=(t=p(n,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);r.push(t)}while("END"!==t.type);return r}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,r){function n(e){return(n="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)}var o=r("./MapStore2/web/client/utils/ogc/Filter/operators.js"),s=o.logical,i=o.spatial,a=o.comparison,u=o.literal,l=o.propertyName,c=o.valueReference,d=o.distance,f=o.lower,p=o.upper,h=r("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,_=h.fidFilter,y=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,r=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",g=function(e){return y(v,e)},j=function(e){return"object"===n(e)&&Date,u(r,e)},w=0===b.indexOf("2.")?c:l;return{filter:m.bind(null,r),fidFilter:_.bind(null,r),and:s.and.bind(null,r),or:s.or.bind(null,r),not:s.not.bind(null,r),property:function(e){return{equalTo:function(t){return a.equal(r,w(r,e),j(t))},greaterThen:function(t){return a.greater(r,w(r,e),j(t))},greaterThenOrEqualTo:function(t){return a.greaterOrEqual(r,w(r,e),j(t))},lessThen:function(t){return a.less(r,w(r,e),j(t))},lessThenOrEqualTo:function(t){return a.lessOrEqual(r,w(r,e),j(t))},notEqualTo:function(t){return a.notEqual(r,w(r,e),j(t))},between:function(t,n){return a.between(r,w(r,e),f(r,j(t)),p(r,j(n)))},like:function(t,n){return a.like(r,w(r,e),j(t),n)},ilike:function(t,n){return a.ilike(r,w(r,e),j(t),n)},isNull:function(){return a.isNull(r,w(r,e))},intersects:function(t){return i.intersects(r,w(r,e),g(t))},within:function(t){return i.within(r,w(r,e),g(t))},dwithin:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return i.dwithin(r,w(r,e),g(t),d(r,n,o))},contains:function(t){return i.contains(r,w(r,e),g(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return r(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:r}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var o=r.type,s=r.filters,c=void 0===s?[]:s,d=r.value,f=r.property,p=r.lowerBoundary,h=r.upperBoundary;return i(u,o)?t[o].apply(t,n(c.map(e(t)))):t.property(f)[l[o]](a(d)?p:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var r={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},n={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},s=function(e,t,r){return t(e,Array.isArray(r)?r.join(""):r)},i={and:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.AND,[t].concat(o)):s(e,n.AND,t)},or:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.OR,[t].concat(o)):s(e,n.OR,t)},not:function(e,t){return s(e,n.NOT,t)},nor:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i0?s(e,n.NOR,[t].concat(o)):s(e,n.NOR,t)}},a={intersects:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),o=1;o"],n)},less:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],n)},lessOrEqual:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o"],n)},between:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<"],n)},like:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(r,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:i,spatial:a,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},s=function(e){if(e.length>=3){var t=e[0],r=e[e.length-1];if(t[0]!==r[0]||t[1]!==r[1])return e.concat([e[0]])}return e},i=function(e,t,r){var n='':">",n+=o(r)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",n+=""},a=function(e,t,r){var i=o(r),a="':">",(e.length&&n(e[0])&&e[0].length&&n(e[0][0])?e:[e]).forEach((function(e,t){var r=s(e).map((function(e){return e[0]+(i?",":" ")+e[1]})),n=i?"outerBoundaryIs":"exterior",o=i?"innerBoundaryIs":"exterior";a+=(t<1?"":"")+""+(i?"":"")+r.join(" ")+(i?"":"")+""+(t<1?"":"")})),a+=""},u=function(e,t,r){var n=o(r),s="':">";var i=e.map((function(e){return e[0]+(n?",":" ")+e[1]}));return s+=(n?"":"")+i.join(" ")+(n?"":""),s+=""};e.exports={closePolygon:s,pointElement:i,polygonElement:a,lineStringElement:u,processOGCGeometry:function(e,t){var r="",n=t.projection||"EPSG:4326";switch(t.type){case"Point":r+=i(t.coordinates,n,e);break;case"MultiPoint":r+='',t.coordinates.forEach((function(t){t&&(r+="",r+=i(t,n,e),r+="")})),r+="";break;case"LineString":r+=u(t.coordinates,n,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",s="3.2"===e?"curveMember":"lineStringMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=u(t,n,e),r+="")})),r+="";break;case"Polygon":r+=a(t.coordinates,n,e);break;case"MultiPolygon":var l="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";r+="'),t.coordinates.forEach((function(t){t&&(r+="",r+=a(t,n,e),r+="")})),r+=""}return r}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,r){var n=r("./MapStore2/node_modules/lodash/lodash.js"),o=n.head,s=n.get,i=function(e){return/[<>&'"]/.test(e)?""):e},a=r("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},l=function(e){return s(e,"featureTypes[0].properties")},c=function(e,t){return o((l(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},f=function(e){return 0===e.type.indexOf("gml:")},p=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,r=e.properties,n=arguments.length>1?arguments[1]:void 0;return p(f(n)?t:r[n.name],n)};e.exports={schemaLocation:d,isGeometryType:f,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=f(c(t,r));return o?e?a(n,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?i(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((l(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:l,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:a,isValid:function(e,t){return l(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,r){return p(e,c(t,r))},isValidValue:p}},"./MapStore2/web/client/utils/openlayers/Layers.js":function(e,t,r){"use strict";r.r(t),r.d(t,"registerType",(function(){return o})),r.d(t,"createLayer",(function(){return s})),r.d(t,"updateLayer",(function(){return i})),r.d(t,"removeLayer",(function(){return a})),r.d(t,"renderLayer",(function(){return u})),r.d(t,"isValid",(function(){return l})),r.d(t,"isSupported",(function(){return c})),r.d(t,"isCompatible",(function(){return d}));var n={},o=function(e,t){n[e]=t},s=function(e,t,r,o){var s=n[e];return s?s.create(t,r,o):null},i=function(e,t,r,o,s,i){var a=n[e];if(a&&a.update)return a.update(t,r,o,s,i);if(o&&t&&t.getSource()&&t.getSource().updateParams){var u=!1;o.params&&r.params?u=Object.keys(o.params).reduce((function(e,t){return r.params[t]!==o.params[t]||e}),!1):!o.params&&r.params&&(u=!0),u&&t.getSource().updateParams(r.params)}return null},a=function(e,t,r,o,s){var i=n[e];return i&&i.remove?i.remove(t,r,o,s):null},u=function(e,t,r,o,s){var i=n[e];return i&&i.render?i.render(t,r,o,s):null},l=function(e,t){var r=n[e];return!r||!r.isValid||r.isValid(t)},c=function(e){return!!n[e]},d=function(e,t){var r=n[e];return!r||!r.isCompatible||r.isCompatible(t)};t.default={registerType:o,createLayer:s,updateLayer:i,removeLayer:a,renderLayer:u,isValid:l,isSupported:c,isCompatible:d}},"./js/api.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/object-assign/index.js"),o=r.n(n),s=r("./MapStore2/node_modules/lodash/keyBy.js"),i=r.n(s),a=r("./MapStore2/node_modules/lodash/values.js"),u=r.n(a),l=r("./MapStore2/web/client/utils/ConfigUtils.js"),c=r("./MapStore2/web/client/utils/LocaleUtils.js"),d=r("./MapStore2/web/client/utils/LayersUtils.js"),f=r("./MapStore2/web/client/api/persistence/index.js"),p=r("./js/api/geonode.js"),h=r("./MapStore2/web/client/jsapi/MapStore2.js");r("./node_modules/react-widgets/dist/css/react-widgets.css"),r("./node_modules/react-select/dist/react-select.css");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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return i()(e,(function(e){return e.name||e}))};window.squashMS2PlugCfg=function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce((function(r,n){return _(_({},r),{},y({},n,e[n].filter((function(e){var r=e.name||e;return-1===t.indexOf(r)}))))}),{})}},"./js/api/geonode.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return h})),r.d(t,"d",(function(){return m}));var n=r("./node_modules/rxjs/Rx.js"),o=r.n(n),s=r("./MapStore2/web/client/libs/ajax.js"),i=r.n(s),a=r("./MapStore2/web/client/utils/ConfigUtils.js");function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=Object(a.getConfigProp)("geonode_url")||"./";return i.a.post("".concat(n).concat(e,"/").concat(t,"/thumbnail"),r,{timeout:1e4})}(e,t,r)}))};t.a={getResource:function(){return o.a.Observable.empty()},createResource:function(e){var t=e.data,r=e.metadata,n=e.linkedResources,s=void 0===n?{}:n;return o.a.Observable.defer((function(){return f(t,r,s)})).pluck("data").do((function(e){return window.location.href="".concat(Object(a.getConfigProp)("geonode_url"),"maps/").concat(e.id,"/edit")})).filter((function(){return!1}))},updateResource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.data;return o.a.Observable.defer((function(){return d(t,{id:t,data:r})})).switchMap((function(e){return o.a.Observable.of(e)})).pluck("data").map((function(e){return e.id}))},deleteResource:function(){return o.a.Observable.empty()},layerEditPermissions:p,styleEditPermissions:h,updateThumb:m}},"./js/components lazy recursive ^\\.\\/.*\\/ArcGisMapServer$":function(e,t,r){var n={"./leaflet/ArcGisMapServer":["./js/components/leaflet/ArcGisMapServer.js",26],"./openlayers/ArcGisMapServer":["./js/components/openlayers/ArcGisMapServer.js",3,5,25]};function o(e){if(!r.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then((function(){return r(o)}))}o.keys=function(){return Object.keys(n)},o.id="./js/components lazy recursive ^\\.\\/.*\\/ArcGisMapServer$",e.exports=o},"./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},"./node_modules/@carnesen/checks/lib/index.js":function(e,t,r){"use strict";function n(e,t,r){var n=/^[aeiou]$/i.test(r)?"an":"a";return new Error('Expected argument "'+t+'" to be '+n+" "+r+". Got "+e)}function o(e){return Array.isArray(e)}function s(e){return"boolean"==typeof e}function i(e){return!p(e)}function a(e){return c(e)&&0===Object.keys(e).length&&e.constructor===Object}function u(e){return"function"==typeof e}function l(e){return"number"==typeof e&&!isNaN(e)}function c(e){return e===Object(e)}function d(e){return l(e)&&e>0}function f(e){return"string"==typeof e}function p(e){return void 0===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=o,t.isBoolean=s,t.isDefined=i,t.isEmptyObject=a,t.isFunction=u,t.isNumber=l,t.isObject=c,t.isPositiveNumber=d,t.isString=f,t.isUndefined=p,t.throwIfNotNonEmptyString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!(f(e)&&e.length>0))throw n(e,t,"non-empty string")},t.throwIf=function(e,t){if(e)throw new Error(t)},t.throwIfEmptyObject=function(e,t){if(a(e))throw n(e,t,"not to be an empty object")},t.throwIfNot=function(e,t){if(!e)throw new Error(t)},t.throwIfNotArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!o(e))throw n(e,t,"array")},t.throwIfNotBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!s(e))throw n(e,t,"boolean")},t.throwIfNotFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!u(e))throw n(e,t,"function")},t.throwIfNotObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e))throw n(e,t,"object")},t.throwIfNotPositiveNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!d(e))throw n(e,t,"positive number")},t.throwIfNotString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!f(e))throw n(e,t,"string")},t.throwIfNotNonEmptyObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(!c(e)||a(e))throw n(e,t,"non-empty object")},t.throwIfDefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(i(e))throw n(e,t,"undefined value")},t.throwIfUndefined=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(p(e))throw n(e,t,"defined value")}},"./node_modules/@carnesen/redux-add-action-listener-enhancer/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},j.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(v.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},j.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},j.prototype.number=function(e){if(!g.test(e)){if(v.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},j.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},j.prototype.keyword=function(e){if(b.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!v.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},j.prototype.neutral=function(e){if(y.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(g.test(e))return this.word=e,void(this.state=3);if(!v.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},j.prototype.output=function(){for(;this.place=2&&(t+=e[1].substring(0,1).toLowerCase())})),2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var r=e.GEOGCS;function n(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(r=e),r&&(r.DATUM?e.datumCode=r.DATUM.name.toLowerCase():e.datumCode=r.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(e.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=r.DATUM.SPHEROID.a,e.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(e.datum_params=r.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",M],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",M],["x0","false_easting",n],["y0","false_northing",n],["long0","central_meridian",M],["lat0","latitude_of_origin",M],["lat0","standard_parallel_1",M],["lat1","standard_parallel_1",M],["lat2","standard_parallel_2",M],["azimuth","Azimuth"],["alpha","azimuth",M],["srsCode","name"]].forEach((function(t){return r=e,o=(n=t)[0],s=n[1],void(!(o in r)&&s in r&&(r[o]=r[s],3===n.length&&(r[o]=n[2](r[o]))));var r,n,o,s})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=M(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(o),o};function O(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?O[e]=h(arguments[1]):O[e]=S(arguments[1]):O[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?O.apply(t,e):O(e)}));if("string"==typeof e){if(e in O)return O[e]}else"EPSG"in e?O["EPSG:"+e.EPSG]=e:"ESRI"in e?O["ESRI:"+e.ESRI]=e:"IAU2000"in e?O["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(O);var E=O;var k=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var T=["3857","900913","3785","102113"];var L=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in E}(e))return E[e];if(function(e){return k.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=S(e);if(function(e){var t=p(e,"authority");if(t){var r=p(t,"epsg");return r&&T.indexOf(r)>-1}}(t))return E["EPSG:3857"];var r=function(e){var t=p(e,"extension");if(t)return p(t,"proj4")}(t);return r?h(r):t}return function(e){return"+"===e[0]}(e)?h(e):void 0},A=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},P=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},D=function(e){return e<0?-1:1},C=function(e){return Math.abs(e)<=l?e:e-D(e)*u},I=function(e,t,r){var n=e*r,s=.5*e;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(o-t))/n},R=function(e,t){for(var r,n,s=.5*e,i=o-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(i),i+=n=o-2*Math.atan(t*Math.pow((1-r)/(1+r),s))-i,Math.abs(n)<=1e-10)return i;return-9999};function Y(e){return e}var N=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,s=e.y;if(s*i>90&&s*i<-90&&n*i>180&&n*i<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*C(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*s));else{var u=Math.sin(s),l=I(this.e,s,u);t=this.x0+this.a*this.k0*C(n-this.long0),r=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,s=e.y-this.y0;if(this.sphere)r=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var i=Math.exp(-s/(this.a*this.k0));if(-9999===(r=R(this.e,i)))return null}return t=C(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Y,inverse:Y,names:["longlat","identity"]}],F={},U=[];function H(e,t){var r=U.length;return e.names?(U[r]=e,e.names.forEach((function(e){F[e.toLowerCase()]=r})),this):(console.log(t),!0)}var B={start:function(){N.forEach(H)},add:H,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==F[t]&&U[F[t]]?U[F[t]]:void 0}},W={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},z=W.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};W.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var G={};G.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},G.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},G.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},G.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},G.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},G.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},G.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},G.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},G.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},G.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},G.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},G.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},G.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},G.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},G.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},G.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},G.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var q=function(e,t,r,o,s,i){var a={};return a.datum_type=void 0===e||"none"===e?5:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=n,a.datum_params[4]*=n,a.datum_params[5]*=n,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=r,a.b=o,a.es=s,a.ep2=i,a};function V(e,t){if(!(this instanceof V))return new V(e);t=t||function(e){if(e)throw e};var r=L(e);if("object"==typeof r){var n=V.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var o=p(G,r.datumCode);o&&(r.datum_params=o.towgs84?o.towgs84.split(","):null,r.ellps=o.ellipse,r.datumName=o.datumName?o.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84";var s,i,a,u,l,c,d,f=function(e,t,r,n,o){if(!e){var s=p(W,n);s||(s=z),e=s.a,t=s.b,r=s.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<1e-10)&&(o=!0,t=e),{a:e,b:t,rf:r,sphere:o}}(r.a,r.b,r.rf,r.ellps,r.sphere),h=(s=f.a,i=f.b,f.rf,a=r.R_A,c=((u=s*s)-(l=i*i))/u,d=0,a?(u=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):d=Math.sqrt(c),{es:c,e:d,ep2:(u-l)/l}),m=r.datum||q(r.datumCode,r.datum_params,f.a,f.b,h.es,h.ep2);A(this,r),A(this,n),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=h.es,this.e=h.e,this.ep2=h.ep2,this.datum=m,this.init(),t(null,this)}else t(e)}else t(e)}V.projections=B,V.projections.start();var K=V;function J(e){return 1===e||2===e}var $=function(e,t,r){return function(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}(e,t)||5===e.datum_type||5===t.datum_type?r:e.es!==t.es||e.a!==t.a||J(e.datum_type)||J(t.datum_type)?(r=function(e,t,r){var n,s,i,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-o&&l>-1.001*o)l=-o;else if(l>o&&l<1.001*o)l=o;else if(l<-o||l>o)return null;return u>Math.PI&&(u-=2*Math.PI),s=Math.sin(l),a=Math.cos(l),i=s*s,{x:((n=r/Math.sqrt(1-t*i))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*s}}(r,e.es,e.a),J(e.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(2===t){var n=r[0],o=r[1],s=r[2],i=r[3],a=r[4],u=r[5],l=r[6];return{x:l*(e.x-u*e.y+a*e.z)+n,y:l*(u*e.x+e.y-i*e.z)+o,z:l*(-a*e.x+i*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),J(t.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(2===t){var n=r[0],o=r[1],s=r[2],i=r[3],a=r[4],u=r[5],l=r[6],c=(e.x-n)/l,d=(e.y-o)/l,f=(e.z-s)/l;return{x:c+u*d-a*f,y:-u*c+d+i*f,z:a*c-i*d+f}}}(r,t.datum_type,t.datum_params)),function(e,t,r,n){var s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g=e.x,j=e.y,w=e.z?e.z:0;if(s=Math.sqrt(g*g+j*j),i=Math.sqrt(g*g+j*j+w*w),s/r<1e-12){if(b=0,i/r<1e-12)return o,v=-n,{x:e.x,y:e.y,z:e.z}}else b=Math.atan2(j,g);a=w/i,f=(u=s/i)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=a*l,y=0;do{y++,c=t*(d=r/Math.sqrt(1-t*p*p))/(d+(v=s*f+w*p-d*(1-t*p*p))),_=(m=a*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*f-(h=u*(1-c)*l)*p,f=h,p=m}while(_*_>1e-24&&y<30);return{x:b,y:Math.atan(m/Math.abs(h)),z:v}}(r,t.es,t.a,t.b)):r},X=function(e,t,r){var n,o,s,i=r.x,a=r.y,u=r.z||0,l={};for(s=0;s<3;s++)if(!t||2!==s||void 0!==r.z)switch(0===s?(n=i,o=-1!=="ew".indexOf(e.axis[s])?"x":"y"):1===s?(n=a,o=-1!=="ns".indexOf(e.axis[s])?"y":"x"):(n=u,o="z"),e.axis[s]){case"e":l[o]=n;break;case"w":l[o]=-n;break;case"n":l[o]=n;break;case"s":l[o]=-n;break;case"u":void 0!==r[o]&&(l.z=n);break;case"d":void 0!==r[o]&&(l.z=-n);break;default:return null}return l},Q=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function Z(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function ee(e,t,r){var n;return Array.isArray(r)&&(r=Q(r)),function(e){Z(e.x),Z(e.y)}(r),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(r=ee(e,n=new K("WGS84"),r),e=n),"enu"!==e.axis&&(r=X(e,!1,r)),"longlat"===e.projName?r={x:r.x*s,y:r.y*s}:(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter}),r=e.inverse(r)),e.from_greenwich&&(r.x+=e.from_greenwich),r=$(e.datum,t.datum,r),t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y}),"longlat"===t.projName?r={x:r.x*i,y:r.y*i}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter})),"enu"!==t.axis?X(t,!0,r):r}var te=K("WGS84");function re(e,t,r){var n,o,s;return Array.isArray(r)?(n=ee(e,t,r),3===r.length?[n.x,n.y,n.z]:[n.x,n.y]):(o=ee(e,t,r),2===(s=Object.keys(r)).length||s.forEach((function(e){"x"!==e&&"y"!==e&&(o[e]=r[e])})),o)}function ne(e){return e instanceof K?e:e.oProj?e.oProj:K(e)}var oe=function(e,t,r){e=ne(e);var n,o=!1;return void 0===t?(t=e,e=te,o=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=te,o=!0),t=ne(t),r?re(e,t,r):(n={forward:function(r){return re(e,t,r)},inverse:function(r){return re(t,e,r)}},o&&(n.oProj=t),n)},se=73,ie=79,ae={forward:ue,inverse:function(e){var t=fe(me(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:le};function ue(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,h=e.northing,m=e.zoneNumber,_=he(m),y=Math.floor(p/1e5),b=Math.floor(h/1e5)%20,o=y,s=b,i=_,a=i-1,u="AJSAJS".charCodeAt(a),l="AFAFAF".charCodeAt(a),c=u+o-1,d=l+s,f=!1,c>90&&(c=c-90+65-1,f=!0),(c===se||use||(c>se||uie||(c>ie||u90&&(c=c-90+65-1),d>86?(d=d-86+65-1,f=!0):f=!1,(d===se||lse||(d>se||lie||(d>ie||l86&&(d=d-86+65-1),String.fromCharCode(c)+String.fromCharCode(d))+r.substr(r.length-5,t)+n.substr(n.length-5,t);var o,s,i,a,u,l,c,d,f;var p,h,m,_,y,b}(function(e){var t,r,n,o,s,i,a,u=e.lat,l=e.lon,c=6378137,d=ce(u),f=ce(l);a=Math.floor((l+180)/6)+1,180===l&&(a=60);u>=56&&u<64&&l>=3&&l<12&&(a=32);u>=72&&u<84&&(l>=0&&l<9?a=31:l>=9&&l<21?a=33:l>=21&&l<33?a=35:l>=33&&l<42&&(a=37));i=ce(6*(a-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),r=Math.tan(d)*Math.tan(d),n=.006739496752268451*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(f-i),s=c*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var p=.9996*t*(o+(1-r+n)*o*o*o/6+(5-18*r+r*r+72*n-.39089081163157013)*o*o*o*o*o/120)+5e5,h=.9996*(s+t*Math.tan(d)*(o*o/2+(5-r+9*n+4*n*n)*o*o*o*o/24+(61-58*r+r*r+600*n-2.2240339282485886)*o*o*o*o*o*o/720));u<0&&(h+=1e7);return{northing:Math.round(h),easting:Math.round(p),zoneNumber:a,zoneLetter:pe(u)}}({lat:e[1],lon:e[0]}),t)}function le(e){var t=fe(me(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ce(e){return e*(Math.PI/180)}function de(e){return e/Math.PI*180}function fe(e){var t=e.northing,r=e.easting,n=e.zoneLetter,o=e.zoneNumber;if(o<0||o>60)return null;var s,i,a,u,l,c,d,f,p=6378137,h=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=r-5e5,_=t;n<"N"&&(_-=1e7),c=6*(o-1)-180+3,f=(d=_/.9996/6367449.145945056)+(3*h/2-27*h*h*h/32)*Math.sin(2*d)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*d)+151*h*h*h/96*Math.sin(6*d),s=p/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),a=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*p/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=m/(.9996*s);var y=f-s*Math.tan(f)/u*(l*l/2-(5+3*i+10*a-4*a*a-.06065547077041606)*l*l*l*l/24+(61+90*i+298*a+45*i*i-1.6983531815716497-3*a*a)*l*l*l*l*l*l/720);y=de(y);var b,v=(l-(1+2*i+a)*l*l*l/6+(5-2*a+28*i-3*a*a+.05391597401814761+24*i*i)*l*l*l*l*l/120)/Math.cos(f);if(v=c+de(v),e.accuracy){var g=fe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});b={top:g.lat,right:g.lon,bottom:y,left:v}}else b={lat:y,lon:v};return b}function pe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function he(e){var t=e%6;return 0===t&&(t=6),t}function me(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,o="",s=0;!/[A-Z]/.test(t=e.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+e;o+=t,s++}var i=parseInt(o,10);if(0===s||s+3>r)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;n=e.substring(s,s+=2);for(var u=he(i),l=function(e,t){var r="AJSAJS".charCodeAt(t-1),n=1e5,o=!1;for(;r!==e.charCodeAt(0);){if(++r===se&&r++,r===ie&&r++,r>90){if(o)throw"Bad character: "+e;r=65,o=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r="AFAFAF".charCodeAt(t-1),n=0,o=!1;for(;r!==e.charCodeAt(0);){if(++r===se&&r++,r===ie&&r++,r>86){if(o)throw"Bad character: "+e;r=65,o=!0}n+=1e5}return n}(n.charAt(1),u);c<_e(a);)c+=2e6;var d=r-s;if(d%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var f,p,h,m=d/2,_=0,y=0;return m>0&&(f=1e5/Math.pow(10,m),p=e.substring(s,s+m),_=parseFloat(p)*f,h=e.substring(s+m),y=parseFloat(h)*f),{easting:_+l,northing:y+c,zoneLetter:a,zoneNumber:i,accuracy:f}}function _e(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ye(e,t,r){if(!(this instanceof ye))return new ye(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ye.fromMGRS=function(e){return new ye(le(e))},ye.prototype.toMGRS=function(e){return ue([this.x,this.y],e)};var be=ye,ve=r("./node_modules/@geosolutions/proj4/package.json"),ge=.01068115234375,je=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*ge))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*ge)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},we=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},xe=function(e,t,r){for(var n=1/(1-t),o=e,s=20;s;--s){var i=Math.sin(o),a=1-t*i*i;if(o-=a=(we(o,i,Math.cos(o),r)-e)*(a*Math.sqrt(a))*n,Math.abs(a)<1e-10)return o}return o};var Me={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=je(this.es),this.ml0=we(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,o=e.x,s=e.y,i=C(o-this.long0),a=Math.sin(s),u=Math.cos(s);if(this.es){var l=u*i,c=Math.pow(l,2),d=this.ep2*Math.pow(u,2),f=Math.pow(d,2),p=Math.abs(u)>1e-10?Math.tan(s):0,h=Math.pow(p,2),m=Math.pow(h,2);t=1-this.es*Math.pow(a,2),l/=Math.sqrt(t);var _=we(s,a,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-h+d+c/20*(5-18*h+m+14*d-58*h*d+c/42*(61+179*m-m*h-479*h)))))+this.x0,n=this.a*(this.k0*(_-this.ml0+a*i*l/2*(1+c/12*(5-h+9*d+4*f+c/30*(61+m-58*h+270*d-330*h*d+c/56*(1385+543*m-m*h-3111*h))))))+this.y0}else{var y=u*Math.sin(i);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(r=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,n=u*Math.cos(i)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(n))>=1){if(y-1>1e-10)return 93;n=0}else n=Math.acos(n);s<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,s,i=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=xe(t,this.es,this.en),Math.abs(r)1e-10?Math.tan(r):0,d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),p=Math.pow(c,2),h=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var m=i*Math.sqrt(t)/this.k0,_=Math.pow(m,2);n=r-(t*=c)*_/(1-this.es)*.5*(1-_/12*(5+3*p-9*d*p+d-4*f-_/30*(61+90*p-252*d*p+45*h+46*d-_/56*(1385+3633*p+4095*h+1574*h*p)))),s=C(this.long0+m*(1-_/6*(1+2*p+d-_/20*(5+28*p+24*h+8*d*p+6*d-_/42*(61+662*p+1320*h+720*h*p))))/l)}else n=o*D(a),s=0;else{var y=Math.exp(i/this.k0),b=.5*(y-1/y),v=this.lat0+a/this.k0,g=Math.cos(v);t=Math.sqrt((1-Math.pow(g,2))/(1+Math.pow(b,2))),n=Math.asin(t),a<0&&(n=-n),s=0===b&&0===g?0:C(Math.atan2(b,g)+this.long0)}return e.x=s,e.y=n,e},names:["Transverse_Mercator","Transverse Mercator","tmerc"]},Se=function(e){var t=Math.exp(e);return t=(t-1/t)/2},Oe=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},Ee=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/(Oe(1,t)+1))),e<0?-t:t},ke=function(e,t){for(var r,n=2*Math.cos(2*t),o=e.length-1,s=e[o],i=0;--o>=0;)r=n*s-i+e[o],i=s,s=r;return t+r*Math.sin(2*t)},Te=function(e,t,r){for(var n,o,s=Math.sin(t),i=Math.cos(t),a=Se(r),u=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(r),l=2*i*u,c=-2*s*a,d=e.length-1,f=e[d],p=0,h=0,m=0;--d>=0;)n=h,o=p,f=l*(h=f)-n-c*(p=m)+e[d],m=c*h-o+l*p;return[(l=s*u)*f-(c=i*a)*m,l*m+c*f]};var Le={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=.6650675310896665*r;var n=ke(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),o=e.length-1,s=e[o],i=0;--o>=0;)r=n*s-i+e[o],i=s,s=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=C(e.x-this.long0),r=e.y;r=ke(this.cbg,r);var n=Math.sin(r),o=Math.cos(r),s=Math.sin(t),i=Math.cos(t);r=Math.atan2(n,i*o),t=Math.atan2(s*o,Oe(n,o*i)),t=Ee(Math.tan(t));var a,u,l=Te(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(a=1/0,u=1/0),e.x=a,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var s=Te(this.utg,2*o,2*n);o+=s[0],n+=s[1],n=Math.atan(Se(n));var i=Math.sin(o),a=Math.cos(o),u=Math.sin(n),l=Math.cos(n);o=Math.atan2(i*l,Oe(u,l*a)),n=Math.atan2(u,l*a),t=C(n+this.long0),r=ke(this.cgb,o)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]};var Ae={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(C(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Le.init.apply(this),this.forward=Le.forward,this.inverse=Le.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Pe=function(e,t){return Math.pow((1-e)/(1+e),t)};var De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*Pe(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+a),this.C)*Pe(this.e*Math.sin(r),this.ratexp))-o,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+a)/this.K,1/this.C),s=20;s>0&&(r=2*Math.atan(n*Pe(this.e*Math.sin(e.y),-.5*this.e))-o,!(Math.abs(r-e.y)<1e-14));--s)e.y=r;return s?(e.x=t,e.y=r,e):null},names:["gauss"]};var Ce={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,o;return e.x=C(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=o*r*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var i=2*Math.atan2(s,this.R2);t=Math.sin(i),r=Math.cos(i),o=Math.asin(r*this.sinc0+e.y*t*this.cosc0/s),n=Math.atan2(e.x*t,s*this.cosc0*r-e.y*this.sinc0*t)}else o=this.phic0,n=0;return e.x=n,e.y=o,De.inverse.apply(this,[e]),e.x=C(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var Ie={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+D(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/I(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=P(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,s,i,a,u=e.x,l=e.y,c=Math.sin(l),d=Math.cos(l),f=C(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=1e-10&&Math.abs(l+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*d*Math.cos(f)),e.x=this.a*t*d*Math.sin(f)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*d*Math.cos(f))+this.y0,e):(r=2*Math.atan(this.ssfn_(l,c,this.e))-o,s=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=1e-10?(i=I(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*i/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+s*Math.cos(f)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*s*Math.cos(f))),e.y=t*(this.cosX0*n-this.sinX0*s*Math.cos(f))+this.y0),e.x=t*s*Math.sin(f)+this.x0,e))},inverse:function(e){var t,r,n,s,i;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(.5*this.a*this.k0));return t=this.long0,r=this.lat0,a<=1e-10?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?C(this.long0+Math.atan2(e.x,-1*e.y)):C(this.long0+Math.atan2(e.x,e.y)):C(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=1e-10){if(a<=1e-10)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*R(this.e,n),t=this.con*C(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=1e-10?i=this.X0:(i=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=C(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),r=-1*R(this.e,Math.tan(.5*(o+i)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,r){return t*=r,Math.tan(.5*(o+e))*Math.pow((1-t)/(1+t),.5*r)}};var Re={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,o=2*n-Math.pow(n,2),s=this.e=Math.sqrt(o);this.R=this.k0*r*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var i=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+s*t)/(1-s*t));this.K=i-this.alpha*a+this.alpha*s/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,o=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(e.x-this.lambda0),i=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*i+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,o=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(n)),i=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(o))),a=this.lambda0+i/this.alpha,u=0,l=s,c=-1e3,d=0;Math.abs(l-c)>1e-7;){if(++d>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=a,e.y=l,e},names:["somerc"]};var Ye={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),r=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-r*r);var n,o,s=I(this.e,this.lat0,e),i=this.bl/t*Math.sqrt((1-this.es)/(1-r*r));if(i*i<1&&(i=1),isNaN(this.longc)){var a=I(this.e,this.lat1,Math.sin(this.lat1)),u=I(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(i+Math.sqrt(i*i-1))*Math.pow(s,this.bl):this.el=(i-Math.sqrt(i*i-1))*Math.pow(s,this.bl);var l=Math.pow(a,this.bl),c=Math.pow(u,this.bl);o=.5*((n=this.el/l)-1/n);var d=(this.el*this.el-c*l)/(this.el*this.el+c*l),f=(c-l)/(c+l),p=C(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=C(this.long0);var h=C(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*h)/o),this.alpha=Math.asin(i*Math.sin(this.gamma0))}else n=this.lat0>=0?i+Math.sqrt(i*i-1):i-Math.sqrt(i*i-1),this.el=n*Math.pow(s,this.bl),o=.5*(n-1/n),this.gamma0=Math.asin(Math.sin(this.alpha)/i),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(i*i-1),Math.cos(this.alpha))},forward:function(e){var t,r,n,s=e.x,i=e.y,u=C(s-this.long0);if(Math.abs(Math.abs(i)-o)<=1e-10)n=i>0?-1:1,r=this.al/this.bl*Math.log(Math.tan(a+n*this.gamma0*.5)),t=-1*n*o*this.al/this.bl;else{var l=I(this.e,i,Math.sin(i)),c=this.el/Math.pow(l,this.bl),d=.5*(c-1/c),f=.5*(c+1/c),p=Math.sin(this.bl*u),h=(d*Math.sin(this.gamma0)-p*Math.cos(this.gamma0))/f;r=Math.abs(Math.abs(h)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-h)/(1+h))/this.bl,t=Math.abs(Math.cos(this.bl*u))<=1e-10?this.al*this.bl*u:this.al*Math.atan2(d*Math.cos(this.gamma0)+p*Math.sin(this.gamma0),Math.cos(this.bl*u))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+r):(t-=this.uc,e.x=this.x0+r*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-r*Math.sin(this.alpha)),e},inverse:function(e){var t,r;this.no_rot?(r=e.y-this.y0,t=e.x-this.x0):(r=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var n=Math.exp(-1*this.bl*r/this.al),s=.5*(n-1/n),i=.5*(n+1/n),a=Math.sin(this.bl*t/this.al),u=(a*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/i,l=Math.pow(this.el/Math.sqrt((1+u)/(1-u)),1/this.bl);return Math.abs(u-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(u+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=R(this.e,l),e.x=C(this.long0-Math.atan2(s*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]};var Ne={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=P(this.e,t,r),o=I(this.e,this.lat1,t),s=Math.sin(this.lat2),i=Math.cos(this.lat2),a=P(this.e,s,i),u=I(this.e,this.lat2,s),l=I(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(n/a)/Math.log(o/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=1e-10&&(r=D(r)*(o-2e-10));var n,s,i=Math.abs(Math.abs(r)-o);if(i>1e-10)n=I(this.e,r,Math.sin(r)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((i=r*this.ns)<=0)return null;s=0}var a=this.ns*C(t-this.long0);return e.x=this.k0*(s*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,s,i,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(s=R(this.e,n)))return null}else s=-o;return i=C(l/this.ns+this.long0),e.x=i,e.y=s,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]};var Fe={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y,c=C(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),s=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(o)),i=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=a*Math.cos(i)/1,e.x=a*Math.sin(i)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,o,s,i,a,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),s=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(o)),r=Math.asin(Math.cos(n)*Math.sin(o)/Math.cos(t)),e.x=this.long0-r/this.alfa,i=t,a=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(i))/(1-this.e*Math.sin(i)),this.e/2))-this.s45),Math.abs(i-e.y)<1e-10&&(a=1),i=e.y,l+=1}while(0===a&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},Ue=function(e,t,r,n,o){return e*o-t*Math.sin(2*o)+r*Math.sin(4*o)-n*Math.sin(6*o)},He=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},Be=function(e){return.375*e*(1+.25*e*(1+.46875*e))},We=function(e){return.05859375*e*e*(1+.75*e)},ze=function(e){return e*e*e*(35/3072)},Ge=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},qe=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t};var $e={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-o)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Je(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Je(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,s,i,u,l,c,d,f,p=e.x,h=e.y;if(p=C(p-this.long0),this.sphere){if(i=Math.sin(h),f=Math.cos(h),n=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+f*n:1+this.sinph0*i+this.cosph0*f*n)<=1e-10)return null;t=(r=Math.sqrt(2/r))*f*Math.sin(p),r*=this.mode===this.EQUIT?i:this.cosph0*i-this.sinph0*f*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.phi0)<1e-10)return null;r=a-.5*h,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(p),r*=n}}else{switch(l=0,c=0,d=0,n=Math.cos(p),s=Math.sin(p),i=Math.sin(h),u=Je(this.e,i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=u/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:d=1+this.sinb1*l+this.cosb1*c*n;break;case this.EQUIT:d=1+c*n;break;case this.N_POLE:d=o+h,u=this.qp-u;break;case this.S_POLE:d=h-o,u=this.qp+u}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),r=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*l-this.sinb1*c*n):(d=Math.sqrt(2/(1+c*n)))*l*this.ymf,t=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:u>=0?(t=(d=Math.sqrt(u))*s,r=n*(this.mode===this.S_POLE?d:-d)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,s,i,a,u,l,c,d,f=e.x/this.a,p=e.y/this.a;if(this.sphere){var h,m=0,_=0;if((r=.5*(h=Math.sqrt(f*f+p*p)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(_=Math.sin(r),m=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=1e-10?0:Math.asin(p*_/h),f*=_,p=m*h;break;case this.OBLIQ:r=Math.abs(h)<=1e-10?this.phi0:Math.asin(m*this.sinph0+p*_*this.cosph0/h),f*=_*this.cosph0,p=(m-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:p=-p,r=o-r;break;case this.S_POLE:r-=o}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(f,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(f/=this.dd,p*=this.dd,(a=Math.sqrt(f*f+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;s=2*Math.asin(.5*a/this.rq),n=Math.cos(s),f*=s=Math.sin(s),this.mode===this.OBLIQ?(u=n*this.sinb1+p*s*this.cosb1/a,i=this.qp*u,p=a*this.cosb1*n-p*this.sinb1*s):(u=p*s/a,i=this.qp*u,p=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(i=f*f+p*p))return e.x=0,e.y=this.phi0,e;u=1-i/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(f,p),l=Math.asin(u),c=this.apa,d=l+l,r=l+c[0]*Math.sin(d)+c[1]*Math.sin(d+d)+c[2]*Math.sin(d+d+d)}return e.x=C(this.long0+t),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Xe=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};var Qe={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=P(this.e3,this.sin_po,this.cos_po),this.qs1=Je(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=P(this.e3,this.sin_po,this.cos_po),this.qs2=Je(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Je(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Je(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*C(t-this.long0),i=o*Math.sin(s)+this.x0,a=this.rh-o*Math.cos(s)+this.y0;return e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o,s,i;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),o=0,0!==t&&(o=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?i=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,i=this.phi1z(this.e3,r)),s=C(o/this.ns0+this.long0),e.x=s,e.y=i,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,o,s,i=Xe(.5*t);if(e<1e-10)return i;for(var a=e*e,u=1;u<=25;u++)if(i+=s=.5*(o=1-(n=e*(r=Math.sin(i)))*n)*o/Math.cos(i)*(t/(1-a)-r/o+.5/e*Math.log((1-n)/(1+n))),Math.abs(s)<=1e-7)return i;return null}};var Ze={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y;return n=C(u-this.long0),t=Math.sin(l),r=Math.cos(l),o=Math.cos(n),1,(s=this.sin_p14*t+this.cos_p14*r*o)>0||Math.abs(s)<=1e-10?(i=this.x0+1*this.a*r*Math.sin(n)/s,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*o)/s):(i=this.x0+this.infinity_dist*r*Math.sin(n),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*o)),e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o,s,i;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),r=Math.sin(o),n=Math.cos(o),i=Xe(n*this.sin_p14+e.y*r*this.cos_p14/t),s=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),s=C(this.long0+s)):(i=this.phic0,s=0),e.x=s,e.y=i,e},names:["gnom"]};var et={init:function(){this.sphere||(this.k0=P(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,o=e.y,s=C(n-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var i=Je(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,r=this.y0+this.a*i*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=C(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*o:o;for(var n,s,i,a,u=Math.asin(.5*t),l=0;l<30;l++)if(s=Math.sin(u),i=Math.cos(u),a=e*s,u+=n=Math.pow(1-a*a,2)/(2*i)*(t/(1-e*e)-s/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=C(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},names:["cea"]};var tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=C(t-this.long0),o=qe(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*o,e},inverse:function(e){var t=e.x,r=e.y;return e.x=C(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=qe(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var rt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Be(this.es),this.e2=We(this.es),this.e3=ze(this.es),this.ml0=this.a*Ue(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,o=e.x,s=e.y,i=C(o-this.long0);if(n=i*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(t=this.a*i,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(s),r=this.a*(qe(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)<=1e-10)t=this.a*i,r=-1*this.ml0;else{var a=Ge(this.a,this.e,Math.sin(s))/Math.tan(s);t=a*Math.sin(n),r=this.a*Ue(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,o,s,i,a,u,l;if(n=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)t=C(n/this.a+this.long0),r=0;else{var c;for(i=this.lat0+o/this.a,a=n*n/this.a/this.a+i*i,u=i,s=20;s;--s)if(u+=l=-1*(i*(u*(c=Math.tan(u))+1)-u-.5*(u*u+a)*c)/((u-i)/c-1),Math.abs(l)<=1e-10){r=u;break}t=C(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(o+this.ml0)<=1e-10)r=0,t=C(this.long0+n/this.a);else{var d,f,p,h,m;for(i=(this.ml0+o)/this.a,a=n*n/this.a/this.a+i*i,u=i,s=20;s;--s)if(m=this.e*Math.sin(u),d=Math.sqrt(1-m*m)*Math.tan(u),f=this.a*Ue(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(i*(d*(h=f/this.a)+1)-h-.5*d*(h*h+a))/(this.es*Math.sin(2*u)*(h*h+a-2*i*h)/(4*d)+(i-h)*(d*p-2/Math.sin(2*u))-p),Math.abs(l)<=1e-10){r=u;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=C(this.long0+Math.asin(n*d/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},names:["Polyconic","poly"]};var nt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,o=e.y-this.lat0,s=r-this.long0,i=o/n*1e-5,a=s,u=1,l=0;for(t=1;t<=10;t++)u*=i,l+=this.A[t]*u;var c,d=l,f=a,p=1,h=0,m=0,_=0;for(t=1;t<=6;t++)c=h*d+p*f,p=p*d-h*f,h=c,m=m+this.B_re[t]*p-this.B_im[t]*h,_=_+this.B_im[t]*p+this.B_re[t]*h;return e.x=_*this.a+this.x0,e.y=m*this.a+this.y0,e},inverse:function(e){var t,r,o=e.x,s=e.y,i=o-this.x0,a=(s-this.y0)/this.a,u=i/this.a,l=1,c=0,d=0,f=0;for(t=1;t<=6;t++)r=c*a+l*u,l=l*a-c*u,c=r,d=d+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p.999999999999&&(r=.999999999999),t=Math.asin(r);var n=C(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var o=Math.asin(r);return e.x=n,e.y=o,e},names:["Mollweide","moll"]};var at={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=He(this.es),this.e1=Be(this.es),this.e2=We(this.es),this.e3=ze(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=P(this.e,this.sinphi,this.cosphi),this.ml1=Ue(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=P(this.e,this.sinphi,this.cosphi),this.ml2=Ue(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ue(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var o=Ue(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-o)}var s=this.ns*C(r-this.long0),i=this.x0+t*Math.sin(s),a=this.y0+this.rh-t*Math.cos(s);return e.x=i,e.y=a,e},inverse:function(e){var t,r,n,o;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var s=0;if(0!==r&&(s=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=C(this.long0+s/this.ns),n=qe(this.g-r/this.a),e.x=o,e.y=n,e;var i=this.g-r/this.a;return n=Ve(i,this.e0,this.e1,this.e2,this.e3),o=C(this.long0+s/this.ns),e.x=o,e.y=n,e},names:["Equidistant_Conic","eqdc"]};var ut={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,s=e.y,i=C(n-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*i,r=this.y0);var a=Xe(2*Math.abs(s/Math.PI));(Math.abs(i)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(t=this.x0,r=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/i-i/Math.PI),l=u*u,c=Math.sin(a),d=Math.cos(a),f=d/(c+d-1),p=f*f,h=f*(2/c-1),m=h*h,_=Math.PI*this.R*(u*(f-m)+Math.sqrt(l*(f-m)*(f-m)-(m+l)*(p-m)))/(m+l);i<0&&(_=-_),t=this.x0+_;var y=l+f;return _=Math.PI*this.R*(h*y-u*Math.sqrt((m+l)*(l+1)-y*y))/(m+l),r=s>=0?this.y0+_:this.y0-_,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,o,s,i,a,u,l,c,d,f;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,s=(n=e.x/d)*n+(o=e.y/d)*o,d=3*(o*o/(u=-2*(i=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(a=i-2*o*o+n*n)*a*a/u/u/u-9*i*a/u/u)/27)/(l=(i-a*a/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,r=e.y>=0?(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI:-(-c*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI,t=Math.abs(n)<1e-10?this.long0:C(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(n*n-o*o)+s*s))/2/n),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var lt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,r,n,s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g,j,w,x,M=e.x,S=e.y,O=Math.sin(e.y),E=Math.cos(e.y),k=C(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(o-S)*Math.sin(k),e.y=this.y0-this.a*(o-S)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(o+S)*Math.sin(k),e.y=this.y0+this.a*(o+S)*Math.cos(k),e):(v=this.sin_p12*O+this.cos_p12*E*Math.cos(k),b=(y=Math.acos(v))/Math.sin(y),e.x=this.x0+this.a*b*E*Math.sin(k),e.y=this.y0+this.a*b*(this.cos_p12*O-this.sin_p12*E*Math.cos(k)),e):(t=He(this.es),r=Be(this.es),n=We(this.es),s=ze(this.es),Math.abs(this.sin_p12-1)<=1e-10?(i=this.a*Ue(t,r,n,s,o),a=this.a*Ue(t,r,n,s,S),e.x=this.x0+(i-a)*Math.sin(k),e.y=this.y0-(i-a)*Math.cos(k),e):Math.abs(this.sin_p12+1)<=1e-10?(i=this.a*Ue(t,r,n,s,o),a=this.a*Ue(t,r,n,s,S),e.x=this.x0+(i+a)*Math.sin(k),e.y=this.y0+(i+a)*Math.cos(k),e):(u=O/E,l=Ge(this.a,this.e,this.sin_p12),c=Ge(this.a,this.e,O),d=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*E)),g=0===(f=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(k)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(f)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(k)*Math.cos(d)/Math.sin(f)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=l*g*(1-(j=g*g)*(_=(h=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es))*h)*(1-_)/6+(w=j*g)/8*(m=p*h)*(1-2*_)+(x=w*g)/120*(_*(4-7*_)-3*p*p*(1-7*_))-x*g/48*m),e.x=this.x0+y*Math.sin(f),e.y=this.y0+y*Math.cos(f),e))},inverse:function(e){var t,r,n,s,i,a,u,l,c,d,f,p,h,m,_,y,b,v,g,j,w,x;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*o*this.a)return;return r=t/this.a,n=Math.sin(r),s=Math.cos(r),i=this.long0,Math.abs(t)<=1e-10?a=this.lat0:(a=Xe(s*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-o,i=Math.abs(u)<=1e-10?this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)):C(this.long0+Math.atan2(e.x*n,t*this.cos_p12*s-e.y*this.sin_p12*n))),e.x=i,e.y=a,e}return l=He(this.es),c=Be(this.es),d=We(this.es),f=ze(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*Ue(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ve((p-t)/this.a,l,c,d,f),i=C(this.long0+Math.atan2(e.x,-1*e.y)),e.x=i,e.y=a,e):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*Ue(l,c,d,f,o),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Ve((t-p)/this.a,l,c,d,f),i=C(this.long0+Math.atan2(e.x,e.y)),e.x=i,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),_=Math.atan2(e.x,e.y),h=Ge(this.a,this.e,this.sin_p12),y=Math.cos(_),v=-(b=this.e*this.cos_p12*y)*b/(1-this.es),g=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),x=1-v*(w=(j=t/h)-v*(1+v)*Math.pow(j,3)/6-g*(1+3*v)*Math.pow(j,4)/24)*w/2-j*w*w*w/6,m=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*y),i=C(this.long0+Math.asin(Math.sin(_)*Math.sin(w)/Math.cos(m))),a=Math.atan((1-this.es*x*this.sin_p12/Math.sin(m))*Math.tan(m)/(1-this.es)),e.x=i,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};var ct={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,o,s,i,a,u=e.x,l=e.y;return n=C(u-this.long0),t=Math.sin(l),r=Math.cos(l),o=Math.cos(n),1,((s=this.sin_p14*t+this.cos_p14*r*o)>0||Math.abs(s)<=1e-10)&&(i=1*this.a*r*Math.sin(n),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*o)),e.x=i,e.y=a,e},inverse:function(e){var t,r,n,s,i,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Xe(t/this.a),n=Math.sin(r),s=Math.cos(r),a=this.long0,Math.abs(t)<=1e-10?(u=this.lat0,e.x=a,e.y=u,e):(u=Xe(s*this.sin_p14+e.y*n*this.cos_p14/t),i=Math.abs(this.lat0)-o,Math.abs(i)<=1e-10?(a=this.lat0>=0?C(this.long0+Math.atan2(e.x,-e.y)):C(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=C(this.long0+Math.atan2(e.x*n,t*this.cos_p14*s-e.y*this.sin_p14*n)),e.x=a,e.y=u,e))},names:["ortho"]},dt=1,ft=2,pt=3,ht=4,mt=5,_t=6,yt=1,bt=2,vt=3,gt=4;function jt(e,t,r,n){var s;return e<1e-10?(n.value=yt,s=0):(s=Math.atan2(t,r),Math.abs(s)<=a?n.value=yt:s>a&&s<=o+a?(n.value=bt,s-=o):s>o+a||s<=-(o+a)?(n.value=vt,s=s>=0?s-l:s+l):(n.value=gt,s+=o)),s}function wt(e,t){var r=e+t;return r<-l?r+=u:r>+l&&(r-=u),r}var xt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-a/2?this.face=mt:this.lat0<=-(o-a/2)?this.face=_t:Math.abs(this.long0)<=a?this.face=dt:Math.abs(this.long0)<=o+a?this.face=this.long0>0?ft:ht:this.face=pt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,s,i,u,c={x:0,y:0},d={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===mt)s=o-t,r>=a&&r<=o+a?(d.value=yt,n=r-o):r>o+a||r<=-(o+a)?(d.value=bt,n=r>0?r-l:r+l):r>-(o+a)&&r<=-a?(d.value=vt,n=r+o):(d.value=gt,n=r);else if(this.face===_t)s=o+t,r>=a&&r<=o+a?(d.value=yt,n=-r+o):r=-a?(d.value=bt,n=-r):r<-a&&r>=-(o+a)?(d.value=vt,n=-r-o):(d.value=gt,n=r>0?-r+l:-r-l);else{var f,p,h,m,_,y;this.face===ft?r=wt(r,+o):this.face===pt?r=wt(r,+l):this.face===ht&&(r=wt(r,-o)),m=Math.sin(t),_=Math.cos(t),y=Math.sin(r),f=_*Math.cos(r),p=_*y,h=m,this.face===dt?n=jt(s=Math.acos(f),h,p,d):this.face===ft?n=jt(s=Math.acos(p),h,-f,d):this.face===pt?n=jt(s=Math.acos(-f),h,-p,d):this.face===ht?n=jt(s=Math.acos(-p),h,f,d):(s=n=0,d.value=yt)}return u=Math.atan(12/l*(n+Math.acos(Math.sin(n)*Math.cos(a))-o)),i=Math.sqrt((1-Math.cos(s))/(Math.cos(u)*Math.cos(u))/(1-Math.cos(Math.atan(1/Math.cos(n))))),d.value===bt?u+=o:d.value===vt?u+=l:d.value===gt&&(u+=1.5*l),c.x=i*Math.cos(u),c.y=i*Math.sin(u),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,e.x=c.x,e.y=c.y,e},inverse:function(e){var t,r,n,s,i,a,u,c,d,f,p,h,m={lam:0,phi:0},_={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?_.value=yt:e.y>=0&&e.y>=Math.abs(e.x)?(_.value=bt,t-=o):e.x<0&&-e.x>=Math.abs(e.y)?(_.value=vt,t=t<0?t+l:t-l):(_.value=gt,t+=o),d=l/12*Math.tan(t),i=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),a=Math.atan(i),(u=1-(n=Math.cos(t))*n*(s=Math.tan(r))*s*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===mt)c=Math.acos(u),m.phi=o-c,_.value===yt?m.lam=a+o:_.value===bt?m.lam=a<0?a+l:a-l:_.value===vt?m.lam=a-o:m.lam=a;else if(this.face===_t)c=Math.acos(u),m.phi=c-o,_.value===yt?m.lam=-a+o:_.value===bt?m.lam=-a:_.value===vt?m.lam=-a-o:m.lam=a<0?-a-l:-a+l;else{var y,b,v;d=(y=u)*y,b=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(a))*v)>=1?0:Math.sqrt(1-d),_.value===bt?(d=b,b=-v,v=d):_.value===vt?(b=-b,v=-v):_.value===gt&&(d=b,b=v,v=-d),this.face===ft?(d=y,y=-b,b=d):this.face===pt?(y=-y,b=-b):this.face===ht&&(d=y,y=b,b=-d),m.phi=Math.acos(-v)-o,m.lam=Math.atan2(b,y),this.face===ft?m.lam=wt(m.lam,-o):this.face===pt?m.lam=wt(m.lam,-l):this.face===ht&&(m.lam=wt(m.lam,+o))}return 0!==this.es&&(f=m.phi<0?1:0,p=Math.tan(m.phi),h=this.b/Math.sqrt(p*p+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),f&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Mt=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],St=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Ot=i/5,Et=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var kt,Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=C(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*Ot);n<0?n=0:n>=18&&(n=17);var o={x:Et(Mt[n],r=i*(r-.08726646259971647*n))*t,y:Et(St[n],r)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=Mt[18][0],t.y=e.y<0?-o:o;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(St[r][0]>t.y)--r;else{if(!(St[r+1][0]<=t.y))break;++r}var n=St[r],i=5*(t.y-n[0])/(St[r+1][0]-n[0]);i=function(e,t,r,n){for(var o=t;n;--n){var s=e(o);if(o-=s,Math.abs(s)e[1]!=l>e[1]&&e[0]<(u-i)*(e[1]-a)/(l-a)+i&&(n=!n)}return n}var s=function(e,t,r){if("object"!=typeof(r=r||{}))throw new Error("options is invalid");var s=r.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=Object(n.a)(e),a=Object(n.b)(t),u=t.geometry?t.geometry.type:t.type,l=t.bbox;if(l&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,l))return!1;"Polygon"===u&&(a=[a]);for(var c=0,d=!1;ce[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t[0])&&(!(e[2]t[1])&&!(e[3]t?1:0}var a=function(e,t,r,n,o){!function e(t,r,n,o,i){for(;o>n;){if(o-n>600){var a=o-n+1,u=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*c/a+d)),p=Math.min(o,Math.floor(r+(a-u)*c/a+d));e(t,r,f,p,i)}var h=t[r],m=n,_=o;for(s(t,n,r),i(t[o],h)>0&&s(t,n,o);m<_;){for(s(t,m,_),m++,_--;i(t[m],h)<0;)m++;for(;i(t[_],h)>0;)_--}0===i(t[n],h)?s(t,n,_):(_++,s(t,_,o)),_<=r&&(n=_+1),r<=_&&(o=_-1)}}(e,t,r||0,n||e.length-1,o||i)};function u(e,t){if(!(this instanceof u))return new u(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function l(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,t,r,n,o){for(var s,i=[t,r];i.length;)(r=i.pop())-(t=i.pop())<=n||(s=t+Math.ceil((r-t)/n/2)*n,a(e,s,t,r,o),i.push(t,s,s,r))}u.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!b(e,t))return r;for(var o,s,i,a,u=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var r=e[t],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);var s=this._chooseSplitIndex(r,o,n),i=v(r.children.splice(s,r.children.length-s));i.height=r.height,i.leaf=r.leaf,c(r,this.toBBox),c(i,this.toBBox),t?e[t-1].children.push(i):this._splitRoot(r,i)},_splitRoot:function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var n,o,s,i,a,u,l,c,f,p,h,_,y,b;for(u=l=1/0,n=t;n<=r-t;n++)o=d(e,0,n,this.toBBox),s=d(e,n,r,this.toBBox),f=o,p=s,h=void 0,_=void 0,y=void 0,b=void 0,h=Math.max(f.minX,p.minX),_=Math.max(f.minY,p.minY),y=Math.min(f.maxX,p.maxX),b=Math.min(f.maxY,p.maxY),i=Math.max(0,y-h)*Math.max(0,b-_),a=m(o)+m(s),i=t;o--)s=e.children[o],f(u,e.leaf?i(s):s),l+=_(u);return l},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)f(t[n],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():c(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var j=u;function w(e){var t=[e[0],e[1]],r=[e[0],e[3]],n=[e[2],e[3]];return{type:"Feature",bbox:e,properties:{},geometry:{type:"Polygon",coordinates:[[t,[e[2],e[1]],n,r,t]]}}}function x(e){var t=[1/0,1/0,-1/0,-1/0];return Object(n.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]u?i:u,a>l?a:l]),r.push(c),n})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),Object(S.c)(t)};function E(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");if(!0===r.final)return function(e,t){var r=E(t,e);return r=(r+180)%360}(e,t);var n=Object(o.a)(e),s=Object(o.a)(t),i=Object(S.a)(n[0]),a=Object(S.a)(s[0]),u=Object(S.a)(n[1]),l=Object(S.a)(s[1]),c=Math.sin(a-i)*Math.cos(l),d=Math.cos(u)*Math.sin(l)-Math.sin(u)*Math.cos(l)*Math.cos(a-i);return Object(S.j)(Math.atan2(c,d))}var k=E;var T=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var n=r.units,s=Object(o.a)(e),i=Object(o.a)(t),a=Object(S.a)(i[1]-s[1]),u=Object(S.a)(i[0]-s[0]),l=Object(S.a)(s[1]),c=Object(S.a)(i[1]),d=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(l)*Math.cos(c);return Object(S.k)(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),n)};var L=function(e,t,r,n){if(n=n||{},!Object(S.e)(n))throw new Error("options is invalid");var s=n.units,i=n.properties,a=Object(o.a)(e),u=Object(S.a)(a[0]),l=Object(S.a)(a[1]),c=Object(S.a)(r),d=Object(S.f)(t,s),f=Math.asin(Math.sin(l)*Math.cos(d)+Math.cos(l)*Math.sin(d)*Math.cos(c)),p=u+Math.atan2(Math.sin(c)*Math.sin(d)*Math.cos(l),Math.cos(d)-Math.sin(l)*Math.sin(f)),h=Object(S.j)(p),m=Object(S.j)(f);return Object(S.h)([h,m],i)};function A(e,t){var r=Object(o.b)(e),n=Object(o.b)(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var s=r[0][0],i=r[0][1],a=r[1][0],u=r[1][1],l=n[0][0],c=n[0][1],d=n[1][0],f=n[1][1],p=(f-c)*(a-s)-(d-l)*(u-i),h=(d-l)*(i-c)-(f-c)*(s-l),m=(a-s)*(i-c)-(u-i)*(s-l);if(0===p)return null;var _=h/p,y=m/p;if(_>=0&&_<=1&&y>=0&&y<=1){var b=s+_*(a-s),v=i+_*(u-i);return Object(S.h)([b,v])}return null}var P=function(e,t){var r={},s=[];if("LineString"===e.type&&(e=Object(S.b)(e)),"LineString"===t.type&&(t=Object(S.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=A(e,t);return i&&s.push(i),Object(S.c)(s)}var a=M();return a.load(O(t)),Object(n.c)(O(e),(function(e){Object(n.c)(a.search(e),(function(t){var n=A(e,t);if(n){var i=Object(o.b)(n).join(",");r[i]||(r[i]=!0,s.push(n))}}))})),Object(S.c)(s)};var D=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var s=e.geometry?e.geometry.type:e.type;if("LineString"!==s&&"MultiLineString"!==s)throw new Error("lines must be LineString or MultiLineString");var i=Object(S.h)([1/0,1/0],{dist:1/0}),a=0;return Object(n.d)(e,(function(e){for(var n=Object(o.b)(e),s=0;s0&&((_=m.features[0]).properties.dist=T(t,_,r),_.properties.location=a+T(u,_,r)),u.properties.dist=0;n--)if(s[n]!==i[n])return!1;for(n=s.length-1;n>=0;n--)if(o=s[n],!Y(e[o],t[o],r))return!1;return typeof e==typeof t}(e,t,r))}function N(e){return null==e}function F(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function U(e,t){var r=Object(o.b)(t),n=Object(o.b)(e),s=n[0],i=n[n.length-1],a=e.geometry.coordinates;return Y(r[0],s)?a.unshift(r[1]):Y(r[0],i)?a.push(r[1]):Y(r[1],s)?a.unshift(r[0]):Y(r[1],i)&&a.push(r[0]),e}var H=function(e,t,r){if(r=r||{},!Object(S.e)(r))throw new Error("options is invalid");var s,i=r.tolerance||0,a=[],u=M();return u.load(O(e)),Object(n.e)(t,(function(e){var t=!1;Object(n.c)(u.search(e),(function(r){if(!1===t){var n=Object(o.b)(e).sort(),a=Object(o.b)(r).sort();Y(n,a)||(0===i?Object(C.a)(n[0],r)&&Object(C.a)(n[1],r):D(r,n[0]).properties.dist<=i&&D(r,n[1]).properties.dist<=i)?(t=!0,s=s?U(s,e):e):(0===i?Object(C.a)(a[0],e)&&Object(C.a)(a[1],e):D(e,a[0]).properties.dist<=i&&D(e,a[1]).properties.dist<=i)&&(s=s?U(s,r):r)}})),!1===t&&s&&(a.push(s),s=void 0)})),s&&a.push(s),Object(S.c)(a)};function B(e,t){var r=Object(o.b)(e),n=Object(o.b)(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var s=r[0][0],i=r[0][1],a=r[1][0],u=r[1][1],l=n[0][0],c=n[0][1],d=n[1][0],f=n[1][1],p=(f-c)*(a-s)-(d-l)*(u-i),h=(d-l)*(i-c)-(f-c)*(s-l),m=(a-s)*(i-c)-(u-i)*(s-l);if(0===p)return null;var _=h/p,y=m/p;if(_>=0&&_<=1&&y>=0&&y<=1){var b=s+_*(a-s),v=i+_*(u-i);return Object(S.h)([b,v])}return null}var W=function(e,t){var r={},s=[];if("LineString"===e.type&&(e=Object(S.b)(e)),"LineString"===t.type&&(t=Object(S.b)(t)),"Feature"===e.type&&"Feature"===t.type&&"LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var i=B(e,t);return i&&s.push(i),Object(S.c)(s)}var a=M();return a.load(O(t)),Object(n.c)(O(e),(function(e){Object(n.c)(a.search(e),(function(t){var n=B(e,t);if(n){var i=Object(o.b)(n).join(",");r[i]||(r[i]=!0,s.push(n))}}))})),Object(S.c)(s)},z=r("./node_modules/geojson-equality/index.js"),G=r.n(z);t.a=function(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");var r=Object(o.d)(e);if(r!==Object(o.d)(t))throw new Error("features must be of the same type");if("Point"===r)throw new Error("Point geometry not supported");if(new G.a({precision:6}).compare(e,t))return!1;var s=0;switch(r){case"MultiPoint":var i=Object(n.a)(e),a=Object(n.a)(t);i.forEach((function(e){a.forEach((function(t){e[0]===t[0]&&e[1]===t[1]&&s++}))}));break;case"LineString":case"MultiLineString":Object(n.e)(e,(function(e){Object(n.e)(t,(function(t){H(e,t).features.length&&s++}))}));break;case"Polygon":case"MultiPolygon":Object(n.e)(e,(function(e){Object(n.e)(t,(function(t){W(e,t).features.length&&s++}))}))}return s>0}},"./node_modules/@turf/boolean-point-on-line/main.es.js":function(e,t,r){"use strict";var n=r("./node_modules/@turf/invariant/main.es.js"),o=r("./node_modules/@turf/helpers/main.es.js");function s(e,t,r,n){var o=r[0],s=r[1],i=e[0],a=e[1],u=t[0],l=t[1],c=u-i,d=l-a;return 0==(r[0]-i)*d-(r[1]-a)*c&&(n?"start"===n?Math.abs(c)>=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o0?a<=s&&s=Math.abs(d)?c>0?i0?a=Math.abs(d)?c>0?i<=o&&o<=u:u<=o&&o<=i:d>0?a<=s&&s<=l:l<=s&&s<=a)}t.a=function(e,t,r){var i=(r=r||{}).ignoreEndVertices;if(!Object(o.e)(r))throw new Error("invalid options");if(!e)throw new Error("pt is required");if(!t)throw new Error("line is required");for(var a=Object(n.a)(e),u=Object(n.b)(t),l=0;lh&&(y>f&&_f&&yc&&(c=b)}var v=[];if(l&&c0&&Math.abs(w-r[j-1][0])>h){var x=parseFloat(r[j-1][0]),M=parseFloat(r[j-1][1]),S=parseFloat(r[j][0]),O=parseFloat(r[j][1]);if(x>-180&&x-180&&r[j-1][0]f&&x<180&&-180===S&&j+1f&&r[j-1][0]<180){g.push([180,r[j][1]]),j++,g.push([r[j][0],r[j][1]]);continue}if(xf){var E=x;x=S,S=E;var k=M;M=O,O=k}if(x>f&&S=180&&xf?180:-180,L]),(g=[]).push([r[j-1][0]>f?-180:180,L]),v.push(g)}else g=[],v.push(g);g.push([w,r[j][1]])}else g.push([r[j][0],r[j][1]])}}else{var A=[];v.push(A);for(var P=0;P1&&Object(n.d)(t[0])&&Object(n.d)(t[1]))return t;throw new Error("Coordinate is not a valid Point")}function s(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return function e(t){if(t.length>1&&Object(n.d)(t[0])&&Object(n.d)(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")}(t),t;throw new Error("No valid coordinates")}function i(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function a(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}},"./node_modules/@turf/line-intersect/index.js":function(e,t,r){var n=r("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=r("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js"),s=r("./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js"),i=r("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,a=r("./node_modules/@turf/line-intersect/node_modules/geojson-rbush/index.js"),u=n.point,l=n.featureCollection,c=o.featureEach;function d(e,t){var r=i(e),n=i(t);if(2!==r.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==n.length)throw new Error(" line2 must only contain 2 coordinates");var o=r[0][0],s=r[0][1],a=r[1][0],l=r[1][1],c=n[0][0],d=n[0][1],f=n[1][0],p=n[1][1],h=(p-d)*(a-o)-(f-c)*(l-s),m=(f-c)*(s-d)-(p-d)*(o-c),_=(a-o)*(s-d)-(l-s)*(o-c);if(0===h)return null;var y=m/h,b=_/h;return y>=0&&y<=1&&b>=0&&b<=1?u([o+y*(a-o),s+y*(l-s)]):null}e.exports=function(e,t){var r=[];if("LineString"===e.geometry.type&&"LineString"===t.geometry.type&&2===e.geometry.coordinates.length&&2===t.geometry.coordinates.length){var n=d(e,t);return n&&r.push(n),l(r)}var o=a();return o.load(s(t)),c(s(e),(function(e){c(o.search(e),(function(t){var n=d(e,t);n&&r.push(n)}))})),l(r)}},"./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js":function(e,t){function r(e,t,r,n){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(r&&4!==r.length)throw new Error("bbox must be an Array of 4 numbers");if(n&&-1===["string","number"].indexOf(typeof n))throw new Error("id must be a number or a string");var o={type:"Feature"};return n&&(o.id=n),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function n(e,t,n,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("Coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n,o)}function o(e,t,n,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),r||"kilometers")},convertArea:function(e,t,r){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var n=c[t||"meters"];if(!n)throw new Error("invalid original units");var o=c[r||"kilometers"];if(!o)throw new Error("invalid final units");return e/n*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},isNumber:h}},"./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js":function(e,t){function r(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return n(t),t;throw new Error("No valid coordinates")}function n(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return n(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,r){if(!t||!r)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0;n1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:r,containsNumber:n,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/@turf/line-intersect/node_modules/@turf/line-segment/index.js":function(e,t,r){var n=r("./node_modules/@turf/line-intersect/node_modules/@turf/helpers/index.js"),o=r("./node_modules/@turf/line-intersect/node_modules/@turf/invariant/index.js").getCoords,s=r("./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js").flattenEach,i=n.lineString,a=n.featureCollection;e.exports=function(e){if(!e)throw new Error("geojson is required");var t=[];return s(e,(function(e){!function(e,t){var r=[],n=e.geometry;switch(n.type){case"Polygon":r=o(n);break;case"LineString":r=[o(n)]}r.forEach((function(r){(function(e,t){var r=[];return e.reduce((function(e,n){var o,s,a,u,l,c,d=i([e,n],t);return d.bbox=(s=n,a=(o=e)[0],u=o[1],l=s[0],c=s[1],[al?a:l,u>c?u:c]),r.push(d),n})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),a(t)}},"./node_modules/@turf/line-intersect/node_modules/@turf/meta/index.js":function(e,t,r){"use strict";function n(e,t,r){if(null!==e){var o,s,i,a,u,l,c,d,f,p,h=0,m=0,_=e.type,y="FeatureCollection"===_,b="Feature"===_,v=y?e.features.length:1;for(o=0;oe[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]t?1:0}return function(r,n,o,s,i){!function t(r,n,o,s,i){for(;s>o;){if(s-o>600){var a=s-o+1,u=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(o,Math.floor(n-u*c/a+d)),p=Math.min(s,Math.floor(n+(a-u)*c/a+d));t(r,n,f,p,i)}var h=r[n],m=o,_=s;for(e(r,o,n),i(r[s],h)>0&&e(r,o,s);m<_;){for(e(r,m,_),m++,_--;i(r[m],h)<0;)m++;for(;i(r[_],h)>0;)_--}0===i(r[o],h)?e(r,o,_):(_++,e(r,_,s)),_<=n&&(o=_+1),n<=_&&(s=_-1)}}(r,n,o||0,s||r.length-1,i||t)}}()},"./node_modules/@turf/line-intersect/node_modules/rbush/index.js":function(e,t,r){"use strict";e.exports=o,e.exports.default=o;var n=r("./node_modules/@turf/line-intersect/node_modules/quickselect/quickselect.js");function o(e,t){if(!(this instanceof o))return new o(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function s(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,t,r,o,s){for(var i,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=o||(i=t+Math.ceil((r-t)/o/2)*o,n(e,i,t,r,s),a.push(t,i,i,r))}o.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!h(e,t))return r;for(var o,s,i,a,u=[];t;){for(o=0,s=t.children.length;o=0&&s[t].children.length>this._maxEntries;)this._split(s,t),t--;this._adjustParentBBoxes(o,s,t)},_split:function(e,t){var r=e[t],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);var s=this._chooseSplitIndex(r,o,n),a=m(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,i(r,this.toBBox),i(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,i(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var n,o,s,i,u,l,c,f,p,h,m,_,y,b;for(l=c=1/0,n=t;n<=r-t;n++)o=a(e,0,n,this.toBBox),s=a(e,n,r,this.toBBox),p=o,h=s,m=void 0,_=void 0,y=void 0,b=void 0,m=Math.max(p.minX,h.minX),_=Math.max(p.minY,h.minY),y=Math.min(p.maxX,h.maxX),b=Math.min(p.maxY,h.maxY),i=Math.max(0,y-m)*Math.max(0,b-_),u=d(o)+d(s),i=t;o--)s=e.children[o],u(c,e.leaf?i(s):s),d+=f(c);return d},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)u(t[n],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():i(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},"./node_modules/@turf/meta/main.es.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return l}));var n=r("./node_modules/@turf/helpers/main.es.js");function o(e,t,r){if(null!==e)for(var n,s,i,a,u,l,c,d,f=0,p=0,h=e.type,m="FeatureCollection"===h,_="Feature"===h,y=m?e.features.length:1,b=0;b1?i(e,t):s(e[0],t)}e.exports=function(e){var t,r=(t=e).geometry?t.geometry.type:t.type,o=n(e),s=e.properties;if(!o.length)throw new Error("polygon must contain coordinates");switch(r){case"Polygon":return a([u(o,s)]);case"MultiPolygon":var i=[];return o.forEach((function(e){i.push(u(e,s))})),a(i);default:throw new Error("geom "+r+" not supported")}}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/helpers/index.js":function(e,t){function r(e,t,r,n){if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");if(r&&4!==r.length)throw new Error("bbox must be an Array of 4 numbers");if(n&&-1===["string","number"].indexOf(typeof n))throw new Error("id must be a number or a string");var o={type:"Feature"};return n&&(o.id=n),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function n(e,t,n,o){if(!e)throw new Error("No coordinates passed");if(void 0===e.length)throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("Coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n,o)}function o(e,t,n,o){if(!e)throw new Error("No coordinates passed");for(var s=0;s=0))throw new Error("distance must be a positive number");return d(f(e,t),r||"kilometers")},convertArea:function(e,t,r){if(null==e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var n=c[t||"meters"];if(!n)throw new Error("invalid original units");var o=c[r||"kilometers"];if(!o)throw new Error("invalid final units");return e/n*o},round:function(e,t){if(null==e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},isNumber:h}},"./node_modules/@turf/polygon-to-linestring/node_modules/@turf/invariant/index.js":function(e,t){function r(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return n(t),t;throw new Error("No valid coordinates")}function n(e){if(e.length>1&&"number"==typeof e[0]&&"number"==typeof e[1])return!0;if(Array.isArray(e[0])&&e[0].length)return n(e[0]);throw new Error("coordinates must only contain numbers")}function o(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}e.exports={geojsonType:function(e,t,r){if(!t||!r)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+r+": must be a "+t+", given "+e.type)},collectionOf:function(e,t,r){if(!e)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0;n1&&"number"==typeof t[0]&&"number"==typeof t[1])return t;throw new Error("Coordinate is not a valid Point")},getCoords:r,containsNumber:n,getGeom:o,getGeomType:function(e){if(!e)throw new Error("geojson is required");var t=o(e);if(t)return t.type}}},"./node_modules/asap/browser-asap.js":function(e,t,r){"use strict";var n=r("./node_modules/asap/browser-raw.js"),o=[],s=[],i=n.makeRequestCallFromTimer((function(){if(s.length)throw s.shift()}));function a(e){var t;(t=o.length?o.pop():new u).task=e,n(t)}function u(){this.task=null}e.exports=a,u.prototype.call=function(){try{this.task.call()}catch(e){a.onerror?a.onerror(e):(s.push(e),i())}finally{this.task=null,o[o.length]=this}}},"./node_modules/asap/browser-raw.js":function(e,t,r){"use strict";(function(t){function r(e){o.length||(n(),!0),o[o.length]=e}e.exports=r;var n,o=[],s=0;function i(){for(;s1024){for(var t=0,r=o.length-s;t=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(s)})),e.exports=u}).call(this,r("./node_modules/node-libs-browser/node_modules/process/browser.js"))},"./node_modules/axios/lib/helpers/bind.js":function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i}},"./node_modules/axios/lib/helpers/spread.js":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./node_modules/axios/lib/utils.js":function(e,t,r){"use strict";var n=r("./node_modules/axios/lib/helpers/bind.js"),o=r("./node_modules/axios/node_modules/is-buffer/index.js"),s=Object.prototype.toString;function i(e){return"[object Array]"===s.call(e)}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===s.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(c=e).__index__=-1,c.__text_cache__=""}function d(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),c(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return mr})),n.d(t,"Option",(function(){return P})),n.d(t,"Dropdown",(function(){return F})),n.d(t,"DropdownOption",(function(){return W})),n.d(t,"stopPropagation",(function(){return O})),n.d(t,"getFirstIcon",(function(){return S})),n.d(t,"openlink",(function(){return Tn}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),l=n(4),u=n(2),c=n.n(u);function d(){var e=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach((function(e){e(t)}))},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",(function(){e.editorFlag=!0})),document&&(document.addEventListener("click",(function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.closeAllModals()})))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter((function(e){return e!==t}))},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}}function p(){var e=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}}var f,h=[],m={onKeyDown:function(e){h.forEach((function(t){t(e)}))},registerCallBack:function(e){h.push(e)},deregisterCallBack:function(e){h=h.filter((function(t){return t!==e}))}},g=function(){f=!0},y=function(){f=!1},b=function(){return f};function v(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function w(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function j(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function O(e){e.stopPropagation()}function _(e,t){if(e&&void 0===t)return e;var n={};return w(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=_(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var S=function(e){return e[e.options[0]].icon},x=n(6),E=n.n(x),C=n(5);function M(e){return(M="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 A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"merge";return{type:y,item:e,mode:t}},k=function(e){return{type:i,adding:e}},D=function(e){return{type:h,id:Object(r.isObject)(e)?e.value:e}},T=function(e){return{type:f,mediaType:e}},P=function(e){return{type:s,editing:e}},I=function(e,t){return{type:g,owner:e,settings:t}},N=function(e){var t=e.path,n=e.owner;return{type:l,path:t,owner:void 0===n?"geostory":n}},L=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?o.a.GEOSTORY:n,i=e.owner;return{type:b,resource:t,sourceType:r,owner:void 0===i?"geostory":i}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory";return{type:v,mediaType:e,owner:t}},F=function(e){return{type:w,loading:e}},z=function(){return{type:j}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return h})),n.d(t,"getFeatureSimple",(function(){return m})),n.d(t,"getCapabilitiesURL",(function(){return g})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return b})),n.d(t,"getCapabilities",(function(){return v})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return w})),n.d(t,"describeFeatureType",(function(){return j}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./node_modules/url/url.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s);function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=a.a.parse(e,!0);return a.a.format(l()({},o,{query:l()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,i=u(n,["version"]),s=a.a.parse(e,!0);return a.a.format(l()({},s,{query:l()(p({service:"WFS",typeName:t,version:o,request:"GetFeature"},i),s.query)}))},b=function(e,t,n){return o.a.get(y(e,t,n))},v=function(e){return o.a.get(g(e))},w=function(e,t){var r=a.a.parse(e,!0),i=a.a.format(l()({},r,{query:l()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(i).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},j=function(e,t){return o.a.get(h(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/api/WMS.js":function(e,t,n){"use strict";var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./node_modules/xml2js/lib/xml2js.js"),c=n.n(u),d=n("./MapStore2/web/client/libs/ajax.js"),p=n.n(d),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),h=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=(n.WMS_Capabilities||n.WMT_MS_Capabilities||{}).Capability,u=(n.WMS_Capabilities||n.WMT_MS_Capabilities||{}).Service,c=O(s),d=s.Layer&&(s.Layer.SRS||s.Layer.CRS)||[],p=s.Layer&&s.Layer.Attribution&&w(s.Layer.Attribution),f=s.Request&&s.Request.GetMap&&s.Request.GetMap.Format||[],h=j(s),m=a.a.isArray(h)?h:[h],g=m.filter((function(e){return!i||-1!==e.Name.toLowerCase().indexOf(i.toLowerCase())||e.Title&&-1!==e.Title.toLowerCase().indexOf(i.toLowerCase())||e.Abstract&&-1!==e.Abstract.toLowerCase().indexOf(i.toLowerCase())}));return{numberOfRecordsMatched:g.length,numberOfRecordsReturned:Math.min(o,g.length),nextRecord:r+Math.min(o,g.length)+1,service:u,layerOptions:{version:(null===(e=n.WMS_Capabilities||n.WMT_MS_Capabilities)||void 0===e||null===(t=e.$)||void 0===t?void 0:t.version)||"1.3.0"},records:g.filter((function(e,t){return t>=r-1&&t2&&void 0!==arguments[2]?arguments[2]:{},i=o.a.parse(e,!0),a=o.a.format(l()({},i,{query:l()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},i.query,r.query||{})}));return new Promise((function(e){Promise.all([n.e(1),n.e(14)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WMS.js").unmarshaller;e(p.a.get(v(a)).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value&&n.value.layerDescription&&n.value.layerDescription[0]})))}.bind(null,n)).catch(n.oe)}))},getRecords:S,describeLayers:function(e,t){var n=o.a.parse(e,!0),r=o.a.format(l()({},n,{query:l()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},n.query)}));return p.a.get(v(r)).then((function(e){var t;return c.a.parseString(e.data,{explicitArray:!1},(function(e,n){t=n&&n.WMS_DescribeLayerResponse&&n.WMS_DescribeLayerResponse.LayerDescription})),(t=Array.isArray(t)?t:[t]).map((function(e){return g(g({},e&&e.$||{}),{},{layerName:e&&e.$&&e.$.name,query:g({},e&&e.query&&e.query.$||{})})}))}))},textSearch:function(e,t,n,r){return S(e,t,n,r)},parseLayerCapabilities:function e(t,n,r){return a.a.castArray(r||a.a.get(t,"capability.layer.layer")).reduce((function(r,o){return r||(!o.name&&o.layer?e(t,n,a.a.castArray(o.layer)):2===n.name.split(":").length&&o.name&&2===o.name.split(":").length?n.name===o.name&&o:o.name&&2===o.name.split(":").length?n.name===o.name.split(":")[1]&&o:2===n.name.split(":").length?n.name.split(":")[1]===o.name&&o:n.name===o.name&&o)}),null)},getBBox:function(e,t){for(var n=e,r=n.EX_GeographicBoundingBox||n.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(n.BoundingBox)||n.LatLonBoundingBox&&n.LatLonBoundingBox.$||n.latLonBoundingBox;!r&&n.Layer&&n.Layer.length;)r=(n=n.Layer[0]).EX_GeographicBoundingBox||n.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(n.BoundingBox)||n.LatLonBoundingBox&&n.LatLonBoundingBox.$||n.latLonBoundingBox;r||(r={westBoundLongitude:-180,southBoundLatitude:-90,eastBoundLongitude:180,northBoundLatitude:90});var o={extent:[r.westBoundLongitude||r.minx,r.southBoundLatitude||r.miny,r.eastBoundLongitude||r.maxx,r.northBoundLatitude||r.maxy],crs:"EPSG:4326"};return t?{crs:o.crs,bounds:{minx:o.extent[0],miny:o.extent[1],maxx:o.extent[2],maxy:o.extent[3]}}:o},reset:function(){Object.keys(b).forEach((function(e){delete b[e]}))}};t.a=x},"./MapStore2/web/client/api/identify.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:{},c=a.attachJSON,d=a.itemId,f=void 0===d?null:d,h=function(t){return o.Observable.defer((function(){return s.a.get(e,{params:t})}))},m=function(t){return Object(i.g)(n,e,t)},g=Object(i.g)(n,e,t)?m:h;return c&&"application/json"!==t.info_format&&"application/json"!==t.outputFormat?o.Observable.forkJoin(g(t),g(p(p({},t),{},{info_format:"application/json"})).map((function(e){return e.data})).catch((function(){return o.Observable.of({})}))).map((function(e){var t=u(e,2),n=t[0],o=t[1];return p(p({},n),{},{features:o&&o.features&&o.features.filter((function(e){return!!Object(r.isNil)(f)||e.id===f})),featuresCrs:o&&o.crs&&Object(l.parseURN)(o.crs)})})):g(t).map((function(e){return e.data})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(e)?e:p(p({},e),{},{features:e.features&&e.features.filter((function(e){return!f||e.id===f}))}),features:e.features&&e.features.filter((function(e){return!f||e.id===f})),featuresCrs:e&&e.crs&&Object(l.parseURN)(e.crs)}}))}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n0?" selected":"",u=this.props.node.loadingError?" group-error":"",c=s.isDraggable?o.a.createElement(W.a,{key:"grabTool",tooltip:"toc.grabGroupIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=o.a.createElement("div",{className:"toc-default-group-head"},c,this.renderVisibility(u),o.a.createElement(T,{tooltipOptions:this.props.tooltipOptions,tooltip:this.props.titleTooltip,node:this.props.node,currentLocale:this.props.currentLocale,onClick:this.props.onToggle,onSelect:this.props.onSelect})),p=o.a.createElement(H,{level:this.props.level+1,onSort:this.props.onSort,onError:this.props.onError,setDndState:this.props.setDndState,position:"collapsible"},this.props.children);return this.props.node.showComponent&&!this.props.node.hide?o.a.createElement(i.a,G({className:(this.props.isDragging||this.props.node.placeholder?"is-placeholder ":"")+"toc-default-group toc-group-"+this.props.level+l+u,sortableStyle:this.props.sortableStyle,style:this.props.style,type:"group"},s),n(a(this.props.isDraggable?r(d):d)),this.props.isDragging||this.props.node.placeholder?null:p):null}}])&&Q(t.prototype,n),r&&Q(t,r),s}(o.a.Component);te(ne,"propTypes",{node:s.a.object,style:s.a.object,sortableStyle:s.a.object,onToggle:s.a.func,level:s.a.number,onSort:s.a.func,onError:s.a.func,propertiesChangeHandler:s.a.func,groupVisibilityCheckbox:s.a.bool,visibilityCheckType:s.a.string,currentLocale:s.a.string,selectedNodes:s.a.array,onSelect:s.a.func,titleTooltip:s.a.bool,tooltipOptions:s.a.object,setDndState:s.a.func,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDraggable:s.a.bool,isDragging:s.a.bool,isOver:s.a.bool}),te(ne,"defaultProps",{node:{},onToggle:function(){},style:{marginBottom:"16px",cursor:"pointer"},sortableStyle:{},propertiesChangeHandler:function(){},groupVisibilityCheckbox:!1,visibilityCheckType:"glyph",level:1,currentLocale:"en-US",joinStr:" - ",selectedNodes:[],onSelect:function(){},titleTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e},isDraggable:!1,isDragging:!1,isOver:!1});t.a=Object(l.a)("LayerOrGroup",ne)},"./MapStore2/web/client/components/TOC/DefaultLayer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/TOC/Node.jsx"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/TOC/enhancers/draggableComponent.jsx"),d=n("./MapStore2/web/client/components/TOC/fragments/VisibilityCheck.jsx"),p=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),f=n("./MapStore2/web/client/utils/TOCUtils.js");n("./MapStore2/web/client/components/TOC/fragments/css/toctitle.css");function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var te=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function ne(e){return(ne="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 re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(){return(oe=Object.assign||function(e){for(var t=1;t0?" selected":"",l="Error"===this.props.node.loadingError?" layer-error":"",u="Warning"===this.props.node.loadingError?" layer-warning":"",c=i.isDraggable?o.a.createElement(M.a,{key:"grabTool",tooltip:"toc.grabLayerIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=!!this.props.node.dummy,p=!d&&this.filterLayers(this.props.node)?this.renderNode(c,a,s,l,u,d,i):null,f=o.a.createElement("div",{style:d?{opacity:0,boxShadow:"none"}:{},className:"toc-list-item"},!this.props.filterText||this.props.filterText&&d?this.renderNode(c,a,s,l,u,d,i):p);return!1!==i.node.showComponent&&!i.node.hide&&this.props.filter(this.props.node)?r(i.isDraggable&&!d?n(f):f):null}}])&&ae(t.prototype,n),r&&ae(t,r),a}(o.a.Component);pe(me,"propTypes",{node:a.a.object,propertiesChangeHandler:a.a.func,onToggle:a.a.func,onContextMenu:a.a.func,onSelect:a.a.func,style:a.a.object,sortableStyle:a.a.object,activateLegendTool:a.a.bool,activateOpacityTool:a.a.bool,indicators:a.a.array,visibilityCheckType:a.a.string,currentZoomLvl:a.a.number,scales:a.a.array,additionalTools:a.a.array,legendOptions:a.a.object,currentLocale:a.a.string,selectedNodes:a.a.array,filterText:a.a.string,onUpdateNode:a.a.func,titleTooltip:a.a.bool,filter:a.a.func,showFullTitleOnExpand:a.a.bool,hideOpacityTooltip:a.a.bool,tooltipOptions:a.a.object,connectDragPreview:a.a.func,connectDragSource:a.a.func,connectDropTarget:a.a.func,isDraggable:a.a.bool,isDragging:a.a.bool,isOver:a.a.bool,language:a.a.string}),pe(me,"defaultProps",{style:{},sortableStyle:{},propertiesChangeHandler:function(){},onToggle:function(){},onContextMenu:function(){},onSelect:function(){},activateLegendTool:!1,activateOpacityTool:!0,indicators:[],visibilityCheckType:"glyph",additionalTools:[],currentLocale:"en-US",joinStr:" - ",selectedNodes:[],filterText:"",onUpdateNode:function(){},filter:function(){return!0},titleTooltip:!1,showFullTitleOnExpand:!1,hideOpacityTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e}});t.a=Object(c.a)("LayerOrGroup",me)},"./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return a.a.Children.map(this.props.children,(function(n){if(t(n)){var r=(n.type.inheritedPropTypes||["node"]).reduce((function(t,n){return e.props[n]?c()(t,p({},n,e.props[n])):t}),{});return a.a.cloneElement(n,r)}return null}))},render:function(){var e=void 0===this.props.node.expanded||this.props.node.expanded,t=this.props.type,n=c()({},this.props.style,this.props.styler(this.props.node)),r=e&&"Error"!==this.props.node.loadingError?this.renderChildren((function(e){return e&&"collapsible"===e.props.position})):[];return this.props.animateCollapse&&(r=a.a.createElement(d.CSSTransitionGroup,{transitionName:"TOC-Node",transitionEnterTimeout:250,transitionLeaveTimeout:250},r)),a.a.createElement("div",{key:this.props.node.name,className:(e?t+"-expanded":t+"-collapsed")+" "+this.props.className,style:this.props.node.dummy?{padding:0}:n},this.renderChildren((function(e){return e&&"collapsible"!==e.props.position})),r)}});t.a=f},"./MapStore2/web/client/components/TOC/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/flatten.js"),d=n.n(c);function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;ta&&d>2*p)return;da&&d>f)return;r.sortIndex=e.sortIndex,r.newParentNodeId=e.parentNodeId,r.illegalDrop=null}e.setDndState&&e.setDndState(r)}}}},p=function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver({shallow:!0})}};t.a=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)(e,u,c),Object(i.DropTarget)(e,d,p)),Object(a.compose)(Object(i.DropTarget)(e,d,p))).apply(void 0,n)}},"./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],o=Object.keys(d.options).reduce((function(e,t){return a(a({},e),{},s({},t,"opacity"!==t||c[t]?c[t]:1))}),{});Object(r.isEqual)(o,d.options)||e?(Object(r.isArray)(t)&&t.forEach((function(e){Object(r.isFunction)(e)&&e()})),u(d.node,d.nodeType,a(a({},d.options),c)),f(),m(!1),i({}),n({})):m(!0)}},onSave:function(e){var t=e.onUpdateInitialSettings,n=void 0===t?function(){}:t,o=e.onUpdateOriginalSettings,i=void 0===o?function(){}:o,a=e.onHideSettings,s=void 0===a?function(){}:a,l=e.onShowAlertModal,u=void 0===l?function(){}:l;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(r.isArray)(e)&&e.forEach((function(e){Object(r.isFunction)(e)&&e()})),s(),u(!1),i({}),n({})}}}),Object(o.lifecycle)({componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,s=void 0===i?function(){}:i;o({}),s(a({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,o=void 0===n?{}:n,i=t.onRetrieveLayerData,a=void 0===i?function(){}:i;!o.expanded&&e.settings&&e.settings.expanded&&Object(r.isNil)(e.element.description)&&"wms"===e.element.type&&a(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,s=t.onUpdateOriginalSettings,l=void 0===s?function(){}:s,u=t.onUpdateInitialSettings,c=void 0===u?function(){}:u,d=t.onSetTab,p=void 0===d?function(){}:d;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),c(a({},e.element)),p(r))}})),c=Object(o.compose)(l,u)},"./MapStore2/web/client/components/TOC/fragments/LayersTool.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nt.state.containerWidth})),t.containerRef=o.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.containerRef.current&&this.containerRef.current.clientWidth;this.setState(function(e){for(var t=1;t=12?n:""))})})),_(j(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),_(j(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(g(g({},t.state),{},{opacity:Object(r.isNil)(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:g(g({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),_(j(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),_(j(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&Object(r.isNumber)(t.state.legendOptions.legendHeight)&&Object(r.isNumber)(t.state.legendOptions.legendWidth)})),t.containerRef=s.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e=this;return s.a.createElement(l.Grid,{fluid:!0,className:"fluid-container "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.format"})),s.a.createElement(u.DropdownList,{key:"format-dropdown",data:this.props.formats||["image/png","image/png8","image/jpeg","image/vnd.jpeg-png","image/gif"],value:this.props.element&&this.props.element.format||"image/png",onChange:function(t){e.props.onChange("format",t)}}))),s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"WMS Layer tile size"})),s.a.createElement(u.DropdownList,{key:"wsm-layersize-dropdown",data:[256,512],value:this.props.element&&this.props.element.tileSize||256,onChange:function(t){e.props.onChange("tileSize",t)}})))),s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,this.props.opacityText," %"),s.a.createElement(c.a,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(t){return e.onChange("opacity",t)}})))),"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement("hr",null),s.a.createElement(l.FormGroup,null,s.a.createElement(l.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(t){e.props.onChange("transparent",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.transparent"})),s.a.createElement(l.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(t){return e.props.onChange("tiled",t.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},s.a.createElement(d.default,{msgId:"layerProperties.cached"})),s.a.createElement(l.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(t){return e.props.onChange("singleTile",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&s.a.createElement(l.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(t){return e.props.onChange("localizedLayerStyles",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",s.a.createElement(p.a,{text:s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})))),s.a.createElement("div",{className:"legend-options"},s.a.createElement(l.Col,{xs:12,className:"legend-label"},s.a.createElement("label",{key:"legend-options-title",className:"control-label"},s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.title"}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"first-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendWidth")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendWidth"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendWidth",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"second-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendHeight")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendHeight"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendHeight",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,className:"legend-preview"},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendPreview"})),s.a.createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},s.a.createElement(f.a,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&y(t.prototype,n),o&&y(t,o),a}(s.a.Component);_(S,"propTypes",{opacityText:i.a.node,element:i.a.object,formats:i.a.array,settings:i.a.object,onChange:i.a.func,containerWidth:i.a.number,currentLocaleLanguage:i.a.string,isLocalizedLayerStylesEnabled:i.a.bool}),_(S,"defaultProps",{onChange:function(){},opacityText:s.a.createElement(d.default,{msgId:"opacity"})})},"./MapStore2/web/client/components/TOC/fragments/settings/General.jsx":function(e,t,n){"use strict";n("./node_modules/react-selectize/themes/index.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-selectize/src/index.js"),p=n("./node_modules/react-spinkit/dist/index.js"),f=n.n(p),h=n("./MapStore2/web/client/utils/LocaleUtils.js"),m=n("./MapStore2/web/client/utils/TOCUtils.js"),g=n("./MapStore2/web/client/components/I18N/Message.jsx"),y=n("./node_modules/recompose/es/Recompose.js"),b=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),v=Object(y.compose)(Object(y.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),Object(y.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),Object(y.withState)("layerName","setLayerName",""),Object(y.withState)("editingLayerName","setEditingLayerName",!1),Object(y.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),Object(y.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),Object(y.withState)("layerError","setLayerError"),Object(y.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,a=e.setOverlayTriggerDelayID,s=void 0===a?function(){}:a,l=e.setEnableOverlayTrigger,u=void 0===l?function(){}:l;return function(e){n!==e&&(r&&clearTimeout(r),u(!1),s(setTimeout((function(){u(!0)}),250))),i(e)}}}),Object(y.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,a=void 0===i?function(){}:i,s=e.setWaitingForLayerLoading,l=void 0===s?function(){}:s,u=e.setEditingLayerName,c=void 0===u?function(){}:u,d=e.setLayerError,p=void 0===d?function(){}:d;r&&n.loading?(l(!1),a(!0)):o&&!n.loading&&(a(!1),p(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,a=void 0!==i&&i,s=e.layerName,l=void 0===s?"":s,d=e.editingLayerName,p=void 0!==d&&d,h=e.layerError,m=e.waitingForLayerLoading,y=void 0!==m&&m,v=e.waitingForLayerLoad,w=void 0!==v&&v,j=e.setLayerName,O=void 0===j?function(){}:j,_=e.setWaitingForLayerLoading,S=void 0===_?function(){}:_,x=e.setEditingLayerName,E=void 0===x?function(){}:x,C=e.onUpdateEntry,M=void 0===C?function(){}:C,A=u.a.createElement(c.InputGroup.Addon,{className:"btn",onClick:function(){p?l!==o.name?(M("name",{target:{value:l}}),a?S(!0):E(!1)):E(!1):E(!0)}},y||w?u.a.createElement(f.a,{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):u.a.createElement(c.Glyphicon,{glyph:p?"ok":"pencil"}));return u.a.createElement(c.FormGroup,{validationState:!h||w||y?null:"error"},u.a.createElement(c.ControlLabel,null,u.a.createElement(g.default,{msgId:"layerProperties.name"})),u.a.createElement(c.InputGroup,null,u.a.createElement(c.FormControl,{value:l,key:"name",type:"text",disabled:!p,onChange:function(e){return O(e.target.value)}}),n?(t=A,u.a.createElement(b.a,{placement:"top",overlay:u.a.createElement(c.Tooltip,{id:"tooltip-layer-name-edit"},u.a.createElement(g.default,{msgId:"layerProperties.tooltip.".concat(p?"confirm":"edit","LayerName")}))},t)):A))}));function w(e){return(w="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 j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;tMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(t.prototype,n),r&&d(t,r),i}(a.a.Component);y(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),y(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(r.withHandlers)({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),a=Object(r.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,w=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&&d(e,t)}(a,e);var t,n,r,i=p(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),n=t&&2===t.length?v.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(b,"$1").trim();return o.a.createElement(s.a,{html:n+r})}}])&&c(t.prototype,n),r&&c(t,r),a}(o.a.Component);m=w,g="propTypes",y={response:a.a.string},g in m?Object.defineProperty(m,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[g]=y,t.a=w},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/utils/TemplateUtils.js"),l=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),u=n("./node_modules/prop-types/index.js"),c=n.n(u),d=n("./MapStore2/web/client/utils/StringUtils.js");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=x[t]||x.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!F&&o.a.createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:L[0],height:L[1]}}))}));t.a=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,s=e.autoplay,l=e.inView,u=e.description,d=e.showCaption,p=e.caption,f=void 0===p?u:p,m=e.thumbnail,y=e.credits,b=e.controls,v=void 0===b||b,w=e.fit,j=e.loop,O=e.muted,_=e.onPlay,S=void 0===_?function(){}:_,x=e.mode,E=e.containerInView,C=(void 0===E||E)&&l,M=h(Object(r.useState)(!1),2),A=M[0],k=M[1],D=function(e){k(e),S(e)};return Object(r.useEffect)((function(){x===c.f.EDIT&&D(!1)}),[x]),Object(r.useEffect)((function(){x===c.f.VIEW&&C&&(s||"cover"===w)&&D(!0)}),[C,s,w,x]),Object(r.useEffect)((function(){x===c.f.VIEW&&!C&&A&&D(!1)}),[C,A,x]),o.a.createElement("div",{id:t,key:"".concat(t,"-").concat(w,"-").concat(x),className:"ms-media ms-media-video"},o.a.createElement(g,{src:n,play:A&&x===c.f.VIEW,resolution:a,thumbnail:m,controls:v&&x===c.f.VIEW,onPlay:D,fit:w,loop:j,muted:O}),y&&o.a.createElement("div",{className:"ms-media-credits"},o.a.createElement("small",null,y)),d&&f&&o.a.createElement("div",{className:"ms-media-caption"},o.a.createElement("small",null,f)))}},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js");function l(e){return(l="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 u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(u,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?l.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:s.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:s.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/openlayers/img/marker-icon.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaIxErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/misc/Button.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/classnames/index.js"),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return i.a.createElement(c,l({ref:t,className:n?s()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0})),S(O(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=l.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},l.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),l.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?l.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):l.a.createElement("span",null)),n=this.props.draggable?l.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?l.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&b(t.prototype,n),r&&b(t,r),a}(l.a.Component);S(x,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),S(x,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=x},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./node_modules/react-select/dist/react-select.es.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?"full":e>40?"medium":"small"},d=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};d.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=d},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-container-dimensions/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Loader.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0?Math.min(i,l):i),p=n||(l>0?Math.min(i,l):i),f=Math.min(d,p);return o.a.createElement(s.a,{size:f,style:u({padding:f/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Overlay.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx");t.a=Object(r.a)(n("./node_modules/react-bootstrap/es/index.js").Overlay)},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-overlays/es/index.js"),i=Object(r.a)(o.a);t.a=i},"./MapStore2/web/client/components/misc/Slider.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");t.a=Object(o.shouldUpdate)((function(e,t){return!Object(r.isEqual)(e.start,t.start)||e.disabled!==t.disabled}))(n("./node_modules/react-nouislider/dist/react-nouislider.common.js"))},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),s.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,i=void 0===r?{}:r,a=e.contentStyle,l=void 0===a?{}:a,c=e.imageStyle,d=void 0===c?{}:c,p=e.glyph,f=void 0===p?"info-sign":p,h=e.iconFit,m=e.title,g=e.tooltip,y=e.tooltipId,b=e.description,v=e.content;return o.a.createElement("div",{className:"empty-state-container",style:u({height:h?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:u({height:h?"100%":void 0},i)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:u({height:h?"100%":void 0},d)},o.a.createElement(s.a,{iconFit:h,tooltip:g,tooltipId:y,glyph:f})):null,m?o.a.createElement("h1",{key:"title"},m):null,b?o.a.createElement("p",{key:"description",className:"empty-state-description"},b):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:l},v))};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var r=e.loaderProps;return o.a.createElement(n,s({},t,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return c(c({},n),{},d({},r,e[r]&&Object(s.e)(t,e[r])))}}(r,n),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&p(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(s.compose)(Object(s.getContext)({messages:i.a.object}),Object(s.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,u=void 0===i?"top":i,d=t.tooltipTrigger,p=t.keyProp,f=t.idDropDown,h=t.args,m=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(s.a,{trigger:d,id:f,key:p,placement:u,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+p},r?o.a.createElement(l.default,{msgId:r,msgParams:{data:h}}):n)},o.a.createElement(e,m))}}),(function(e){return function(t){return o.a.createElement(e,Object(u.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withControllableState.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=function(e,t,n){return Object(r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e[t]}),Object(r.withState)(e,t,n))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,l;return l=r=function(r){m(l,r);var s=y(l);function l(e){var r;return p(this,l),j(v(r=s.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=u.a.findDOMNode(v(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return h(l,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),l}(o.a.Component),j(r,"propTypes",{handleWidth:s.a.bool,handleHeight:s.a.bool,onResize:s.a.func}),j(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),l}}},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,d=e.btnDefaultProps,p=void 0===d?{}:d,f=e.transitionProps,h=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,m=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,s=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,u({key:s.key||t},s))||o.a.createElement(l.a,u({key:s.key||t},p,s))):null}))};return o.a.createElement(s.ButtonGroup,i,h?o.a.createElement(a.a,h,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,d.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,d=e.glyphClassName,m=void 0===d?"":d,g=e.loaderProps,y=void 0===g?{}:g,b=e.children,v=h(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(p.a,Object(s.omit)(v,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:m}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,f({className:"ms-loader".concat(v.bsStyle&&" ms-loader-"+v.bsStyle||"").concat(v.bsSize&&" ms-loader-"+v.bsSize||"")},y)):null,b)}))},"./MapStore2/web/client/components/misc/withConfirm.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),a=n("./MapStore2/web/client/components/misc/Portal.jsx"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(l.compose)(Object(l.withProps)((function(e){var t=e.setConfirming;return{onClose:function(){return t(!1)}}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmYes,n=void 0===t?o.a.createElement(s.default,{msgId:"yes"}):t,r=e.confirmNo,l=void 0===r?o.a.createElement(s.default,{msgId:"no"}):r,u=e.confirmTitle,c=void 0===u?o.a.createElement(s.default,{msgId:"confirm"}):u,d=e.confirmContent,p=e.confirmButtonBSStyle,f=void 0===p?"primary":p,h=e.show,m=void 0!==h&&h,g=e.confirmModal,y=void 0===g||g,b=e.draggable,v=void 0!==b&&b,w=e.onClose,j=void 0===w?function(){}:w,O=e.onConfirm,_=void 0===O?function(){}:O;return m?o.a.createElement(a.a,null,o.a.createElement("div",{className:"with-confirm-modal"},o.a.createElement(i.a,{draggable:v,show:m,modal:y,onClose:j,onConfirm:_,title:c,confirmButtonContent:n,closeText:l,confirmButtonBSStyle:f,closeGlyph:"1-close"},d))):null})),d=function(e){return function(t){var n=t.confirming,r=t.confirmYes,i=t.confirmNo,a=t.confirmTitle,s=t.confirmContent,l=t.confirmModal,d=t.draggable,p=t.onConfirm,f=t.setConfirming,h=u(t,["confirming","confirmYes","confirmNo","confirmTitle","confirmContent","confirmModal","draggable","onConfirm","setConfirming"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(c,{show:n,setConfirming:f,confirmYes:r,confirmNo:i,confirmTitle:a,confirmContent:s,confirmModal:l,draggable:d,onConfirm:p}),o.a.createElement(e,h))}};t.a=function(e){return Object(l.compose)(Object(l.withState)("confirming","setConfirming",!1),Object(l.withHandlers)({onClick:function(e){var t=e.setConfirming,n=void 0===t?function(){}:t,r=e.onClick,o=void 0===r?function(){}:r,i=e.confirmPredicate,a=void 0===i||i;return function(){a?n(!0):o.apply(void 0,arguments)}},onConfirm:function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.setConfirming,o=void 0===r?function(){}:r;return function(){o(!1),n.apply(void 0,arguments)}}}),d)(e)}},"./MapStore2/web/client/components/style/ColorPicker.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isFunction.js"),l=n.n(s),u=n("./node_modules/react-color/lib/index.js"),c=n("./node_modules/tinycolor2/tinycolor.js"),d=n.n(c),p=n("./node_modules/react-dom/index.js"),f=n("./MapStore2/web/client/utils/ConfigUtils.js");function h(){return(h=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nm/2+10&&b+w-E[0]>m/2+10,M=E[1]-y>g/2+10&&y+j-E[1]>g/2+10,A={top:{filter:function(){return C&&O-y>g+10},styles:function(){return{picker:{position:"absolute",top:O-g-10-y,left:_+S/2-m/2-b},overlay:{},arrow:{top:O+2,left:_+S/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return M&&b+w-(_+S)>m+10},styles:function(){return{picker:{position:"absolute",top:O-g/2-y,left:_+S+10-b},overlay:{},arrow:{top:O+x/2,left:_+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+j-(O+x)>g+10},styles:function(){return{picker:{position:"absolute",top:O+x+10-y,left:_+S/2-m/2-b},overlay:{},arrow:{top:O+x-2,left:_+S/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return M&&_-b>m+10},styles:function(){return{picker:{position:"absolute",top:O-g/2-y,left:_-m-10-b},overlay:{},arrow:{top:O+x/2,left:_+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=A&&null!==(d=A[v])&&void 0!==d&&null!==(p=d.filter)&&void 0!==p&&p.call(d))return null==A||null===(f=A[v])||void 0===f||null===(h=f.styles)||void 0===h?void 0:h.call(f);if("top"!==v&&A.top.filter())return A.top.styles();if("right"!==v&&A.right.filter())return A.right.styles();if("bottom"!==v&&A.bottom.filter())return A.bottom.styles();if("left"!==v&&A.left.filter())return A.left.styles()}return{picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}}}Object(r.useEffect)((function(){var e=function(){return E(I())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){M&&E(I())}),[M]);var N,L,R=c?" ms-disabled":"",F=o.a.createElement("div",{ref:P,className:"ms-color-picker-overlay",style:g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0},null==x?void 0:x.overlay)},o.a.createElement("div",{className:"ms-color-picker-cover",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0},onClick:function(){A(!1),O&&i(n?d()(O).toString(n):O)}}),o.a.createElement(u.SketchPicker,h({},f,{className:"ms-sketch-picker",styles:{picker:g({width:200,padding:"10px 10px 0",boxSizing:"initial"},null==x?void 0:x.picker)},color:d()(O||t).toRgb(),onChange:function(e){return _(e.rgb)}})),o.a.createElement("div",{className:"ms-sketch-picker-arrow",style:g({position:"absolute",borderWidth:12},null==x?void 0:x.arrow)})),z=D?Object(p.createPortal)(F,D):F;return o.a.createElement("div",{className:"ms-color-picker".concat(R)},o.a.createElement("div",{className:"ms-color-picker-swatch",ref:T,style:(N=O||t||"transparent",L=d()(N).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(L),backgroundColor:"transparent"}:{color:"transparent"===N?"#000000":d.a.mostReadable(L,["#000000"],{includeFallbackColors:!0}).toHexString(),backgroundColor:L}),onClick:function(){c||(A(!M),O&&i(n?d()(O).toString(n):O))}},a),M?z:null)}w.propTypes={value:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,onChangeColor:a.a.func,text:a.a.string,line:a.a.bool,disabled:a.a.bool,pickerProps:a.a.object,containerNode:a.a.oneOfType([a.a.node,a.a.func]),onOpen:a.a.function,placement:a.a.string},w.defaultProps={disabled:!1,line:!1,onChangeColor:function(){},pickerProps:{},onOpen:function(){},containerNode:function(){return document.querySelector("."+(Object(f.getConfigProp)("themePrefix")||"ms2")+" > div")||document.body}},t.a=w},"./MapStore2/web/client/components/style/ColorSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/style/ColorPicker.jsx");function u(e){var t=e.color,n=e.format,r=e.line,i=e.onChangeColor,a=e.disableAlpha,u=e.containerNode,c=e.onOpen,d=e.presetColors,p=e.placement;return o.a.createElement("div",{className:"ms-color-selector"},o.a.createElement(l.a,{text:o.a.createElement(s.Glyphicon,{glyph:"dropper"}),format:n,line:r,value:t,onChangeColor:i,pickerProps:{disableAlpha:a,presetColors:d},containerNode:u,onOpen:c,placement:p}))}u.propTypes={color:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,line:a.a.bool,onChangeColor:a.a.func,disableAlpha:a.a.bool,containerNode:a.a.node,onOpen:a.a.func,presetColors:a.a.array,placement:a.a.string},u.defaultProps={line:!1,onChangeColor:function(){},onOpen:function(){}},t.a=u},"./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(l.a)(a.NavItem);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=e.element,o=void 0===n?{}:n,l=e.tabs,f=void 0===l?[]:l,h=e.activeTab,m=e.width,g=e.groups,y=e.isLocalizedLayerStylesEnabled,b=e.setActiveTab,v=void 0===b?function(){}:b,w=e.onUpdateParams,j=void 0===w?function(){}:w,O=e.onRetrieveLayerData,_=void 0===O?function(){}:O,S=e.realtimeUpdate,x=d(e,["settings","element","tabs","activeTab","width","groups","isLocalizedLayerStylesEnabled","setActiveTab","onUpdateParams","onRetrieveLayerData","realtimeUpdate"]);return i.a.createElement(a.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},i.a.createElement(a.Col,{xs:12},i.a.createElement(a.Nav,{bsStyle:"tabs",activeKey:h,justified:!0},f.map((function(e){return i.a.createElement(p,{key:"ms-tab-settings-"+e.id,tooltip:i.a.createElement(s.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){return v(e.id)}},i.a.createElement(a.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement(a.Col,{xs:12},f.filter((function(e){return e.id&&e.id===h})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,u({},x,{key:"ms-tab-settings-body-"+e.id,containerWidth:m,element:o,groups:g,nodeType:t.nodeType,settings:t,retrieveLayerData:_,isLocalizedLayerStylesEnabled:y,onChange:function(e,t){return Object(r.isObject)(e)?j(e,S):j(c({},e,t),S)}}))}))))}},"./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),s=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),l=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),u=n("./MapStore2/web/client/components/TOC/TOC.jsx"),c=n("./MapStore2/node_modules/lodash/lodash.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.changeLayerPropertyByGroup,n=void 0===t?function(){}:t,r=e.changeLayerProperty,i=void 0===r?function(){}:r,c=e.changeGroupProperty,d=void 0===c?function(){}:c,p=e.onSort,f=e.onSelect,h=e.selectedNodes,m=e.nodes,g=void 0===m?[]:m;return o.a.createElement(u.a,{onSort:p,selectedNodes:h,onSelect:f,nodes:g},o.a.createElement(l.a,{groupElement:o.a.createElement(a.a,{onSort:p,selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(r){return n(e,r,t[r])}))},onToggle:function(e,t){return d(e,"expanded",!t)},groupVisibilityCheckbox:!0}),layerElement:o.a.createElement(s.a,{selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(n){return i(e,n,t[n])}))},onUpdateNode:function(e,t,n){return Object.keys(n).map((function(t){return i(e,t,n[t])}))},onToggle:function(e,t){return i(e,"expanded",!t)}})}))}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(o.withHandlers)({changeLayerProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?{}:o;return function(e,t,o){var a=Object(r.findIndex)(i.layers||[],{id:e});n("map.layers[".concat(a,"].").concat(t),o)}},changeLayerPropertyByGroup:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,a=void 0===o?{}:o;return function(e,t,o){return a.layers.filter(Object(i.belongsToGroup)(e)).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return Object(r.findIndex)(a.layers||[],{id:t})})).filter((function(e){return e>=0})).map((function(e){return n("map.layers[".concat(e,"].").concat(t),o)}))}},changeGroupProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?[]:o;return function(e,t,o){var a,s=i.groups?Object(r.castArray)(i.groups):[],l=Object(r.findIndex)(s,(function(t){return e===t.id})),u=-1===l?s.length:l;"expanded"!==t||null!=s&&null!==(a=s[u])&&void 0!==a&&a.id||n("map.groups[".concat(u,"].id"),e),n("map.groups[".concat(u,"].").concat(t),o)}},updateMapEntries:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return n("map[".concat(t,"]"),e[t])}))}}})},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.group,r=void 0===n?"Default":n;return r===e})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t}))};t.a=Object(o.compose)(Object(o.withStateHandlers)((function(){return{selectedLayers:[],selectedGroups:[]}}),{onNodeSelect:function(e,t){var n=e.selectedLayers,o=void 0===n?[]:n,a=e.selectedGroups,l=void 0===a?[]:a,u=t.map,c=void 0===u?{}:u;return function(e,t,n){return{selectedLayers:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?o.filter((function(t){return Object(r.findIndex)(s(e,c),(function(e){return e===t}))<0})):n?[].concat(i(o),i(s(e,c))):i(s(e,c)):Object(r.findIndex)(o,(function(t){return t===e}))>=0?o.filter((function(t){return t!==e})):n?[].concat(i(o),[e]):[e],selectedGroups:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?l.filter((function(t){return t!==e})):n?[].concat(i(l),[e]):[e]:n?l:[]}}}}),Object(o.withProps)((function(e){var t=e.selectedLayers,n=e.selectedGroups;return{selectedNodes:[].concat(i(t),i(n))}})))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(r.withProps)((function(e){var t,n,r,i=e.map;return{nodes:(t=Object(o.splitMapAndLayers)(i),n=t.layers,r=void 0===n?{}:n,Object(o.denormalizeGroups)(r.flat||[],r.groups||[]).groups)}}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),s=n("./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js"),l=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),u=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),c=n("./node_modules/prop-types/index.js"),d=n.n(c),p=n("./node_modules/react/index.js"),f=n.n(p),h=n("./node_modules/react-bootstrap/es/index.js"),m=n("./node_modules/react-select/dist/react-select.es.js"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),y=n("./MapStore2/web/client/components/I18N/Message.jsx");function b(e){return(b="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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n=0||!this.props.element.style||t.push({label:this.props.element.style,value:this.props.element.style}),f.a.createElement(h.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},f.a.createElement("form",{ref:"style"},f.a.createElement(m.default.Creatable,{key:"styles-dropdown",options:t,isLoading:this.props.element&&this.props.element.capabilitiesLoading,value:this.props.element.style||"",onOpen:function(){!e.props.element||e.props.element.capabilities&&e.props.element.availableStyles||e.props.retrieveLayerData(e.props.element)},promptTextCreator:function(e){return f.a.createElement(y.default,{msgId:"layerProperties.styleCustom",msgParams:{value:e}})},onChange:function(t){e.updateEntry("style",{target:{value:t&&t.value||""}})}}),f.a.createElement("br",null),this.renderLegend(),this.renderError(),f.a.createElement(g.a,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(y.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&w(t.prototype,n),o&&w(t,o),a}(f.a.Component);E(C,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(C,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var M=C,A=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js"),k=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js"),D=n("./node_modules/rxjs/Rx.js"),T=n.n(D),P=n("./MapStore2/web/client/observables/wms.js");function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.id===t.id})).switchMap((function(){return n.switchMap((function(e){return Object(P.b)(e).map((function(e){return{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}})).startWith({capabilitiesLoading:!0})})).catch((function(e){return T.a.Observable.of({capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:e},description:null})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(N({},t),{},{retrieveLayerData:r,element:N(N({},t.element),e)})}))}));function F(e){return(F="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)}var z=Object(o.withProps)((function(e){var t=e.nodes,n=void 0===t?{}:t,o=e.editNode,i={};return o&&function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;for(var i in t)null!==t[i]&&"object"===F(t[i])&&(Object(r.isMatch)(t[i],n)&&o.apply(void 0,[t[i]]),e(t[i],n,o))}(n,{id:o},(function(e){i=e})),{selectedNode:i}}));function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t,o=e.selectedNode,a=e.settings,s=void 0===a?{}:a;return{element:o,settings:U(U({},s),{},{nodeType:o&&o.nodes?"groups":"layers",options:{opacity:s.opacity>=0?s.opacity:o.opacity>=0?o.opacity:1}}),groups:Object(r.get)(Object(i.splitMapAndLayers)(n),"layers.groups")}})),Object(o.compose)(A.a,Object(o.withHandlers)({onUpdateNode:function(e){var t=e.changeLayerProperty,n=void 0===t?function(){}:t,r=e.changeGroupProperty,o=void 0===r?function(){}:r,i=e.editNode;return function(e,t,r){"layers"===t&&Object.keys(r).map((function(e){return n(i,e,r[e])})),"groups"===t&&Object.keys(r).map((function(e){return o(i,e,r[e])}))}}}),Object(o.withHandlers)({onUpdateParams:function(e){var t=e.settings,n=void 0===t?{}:t,r=e.onUpdateNode,o=void 0===r?function(){}:r;return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&o(n.node,n.nodeType,U(U({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),W)},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n.n(i),s=n("./node_modules/prop-types/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,a(t))},u=function(e,t,n){return function(o){return(n?l(o,Object(r.castArray)(e)).catch(n):l(o,Object(r.castArray)(e))).concat(i.a.Observable.from(Object(r.castArray)(t)))}}},"./MapStore2/web/client/observables/wms.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),a=n.n(i),s=n("./node_modules/rxjs/Rx.js"),l=n("./MapStore2/web/client/api/WMS.js"),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=o.a.parse(r.url||i,!0);return o.a.format(m(m({},a),{},{search:void 0,query:m(m({},a.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(p.b)},b=function(e){return s.Observable.defer((function(){return l.a.getCapabilities(Object(d.getCapabilitiesUrl)(e))})).let(p.b).map((function(t){return l.a.parseLayerCapabilities(t,e)}))},v=function(e){return y(e).map((function(e){var t=e.data,n=void 0===t?{}:t;return n&&n.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.owsURL;return m(m({},e),{},{params:{},search:n?{type:"wfs",url:Object(f.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/plugins/GeoStory.jsx":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"openMediaEditorForNewMedia",(function(){return ie})),n.d(r,"openWebPageComponentCreator",(function(){return se})),n.d(r,"editWebPageComponent",(function(){return le})),n.d(r,"saveGeoStoryResource",(function(){return ue})),n.d(r,"scrollToContentEpic",(function(){return ce})),n.d(r,"editMediaForBackgroundEpic",(function(){return de})),n.d(r,"loadGeostoryEpic",(function(){return pe})),n.d(r,"reloadGeoStoryOnLoginLogout",(function(){return fe})),n.d(r,"cleanUpEmptyStoryContainers",(function(){return he})),n.d(r,"sortContentEpic",(function(){return me})),n.d(r,"setFocusOnMapEditing",(function(){return ge})),n.d(r,"inlineEditorEditMap",(function(){return ye})),n.d(r,"closeShareOnGeostoryChangeMode",(function(){return be})),n.d(r,"handlePendingGeoStoryChanges",(function(){return ve})),n.d(r,"urlUpdateOnScroll",(function(){return we})),n.d(r,"scrollOnLoad",(function(){return je})),n.d(r,"loadStoryOnHistoryPop",(function(){return Oe})),n.d(r,"scrollSideBar",(function(){return _e}));var o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-redux/es/index.js"),s=n("./node_modules/reselect/es/index.js"),l=n("./node_modules/webfontloader/webfontloader.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/PluginsUtils.js"),d=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js"),f=n("./MapStore2/web/client/utils/NotificationUtils.js"),h=n("./MapStore2/web/client/actions/geostory.js"),m=n("./MapStore2/web/client/actions/mediaEditor.js"),g=n("./node_modules/rxjs/Rx.js"),y=n("./MapStore2/node_modules/lodash/head.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isNaN.js"),w=n.n(v),j=n("./MapStore2/node_modules/lodash/isString.js"),O=n.n(j),_=n("./MapStore2/node_modules/lodash/isNil.js"),S=n.n(_),x=n("./MapStore2/node_modules/lodash/lastIndexOf.js"),E=n.n(x),C=n("./MapStore2/node_modules/lodash/words.js"),M=n.n(C),A=n("./MapStore2/node_modules/lodash/get.js"),k=n.n(A),D=n("./MapStore2/node_modules/lodash/isArray.js"),T=n.n(D),P=n("./MapStore2/node_modules/lodash/isEmpty.js"),I=n.n(P),N=n("./node_modules/connected-react-router/esm/actions.js"),L=n("./node_modules/uuid/v1.js"),R=n.n(L),F=n("./MapStore2/web/client/libs/ajax.js"),z=n.n(F),B=n("./MapStore2/web/client/api/persistence/index.js"),U=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/actions/notifications.js"),K=n("./MapStore2/web/client/actions/security.js"),W=n("./MapStore2/web/client/selectors/security.js"),V=n("./MapStore2/web/client/selectors/geostory.js"),G=n("./MapStore2/web/client/selectors/mediaEditor.js"),q=n("./MapStore2/web/client/observables/epics.js"),Y=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),Q=n("./MapStore2/web/client/actions/mapEditor.js");function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||ne(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 J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function te(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ne(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 ne(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.resource,n=e.delay,r=void 0===n?1e3:n;return(t.id?Object(B.h)(t):Object(B.b)(t)).switchMap((function(e){return g.Observable.of(Object(h.X)(e),Object(h.Q)(d.b.SHOW_SAVE,!1),t.id?Object(h.I)(e):Object(N.d)("/geostory/".concat(e))).merge(g.Observable.of(Object(H.i)({id:"STORY_SAVE_SUCCESS",title:"saveDialog.saveSuccessTitle",message:"saveDialog.saveSuccessMessage"})).delay(t.id?0:r))})).let(Object(q.a)(Object(h.K)(!0,"loading"),Object(h.K)(!1,"loading"))).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.status,n=e.statusText,r=e.data,o=e.message,i=ee(e,["status","statusText","data","message"]);return g.Observable.of(Object(h.O)(t?{status:t,statusText:n,data:r}:o||i),Object(h.K)(!1,"loading"))}))}))},ce=function(e){return e.ofType(h.a).switchMap((function(e){var t=e.element;return g.Observable.of(t).switchMap((function(){if(document.getElementById(t.id))return Object(d.z)(t.id,{behavior:"auto",block:"center"}),g.Observable.empty();throw new Error("Item not mounted yet")})).retryWhen((function(e){return e.delay(200).take(10)}))}))},de=function(e,t){return e.ofType(m.d).switchMap((function(n){var r=n.path,o=n.owner,i=Object(V.s)(r)(t.getState()),a=Object(V.r)(i)(t.getState());return g.Observable.of(Object(G.c)(t.getState())).filter((function(e){return a&&a.type!==e})).map((function(){return Object(m.G)(a.type)})).merge(g.Observable.of(Object(m.H)(o,Object(V.h)(t.getState())),Object(m.C)(i)).merge(e.let(oe(t,r)).takeUntil(e.ofType(m.e,h.a))))}))},pe=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.h).switchMap((function(e){var t=e.id;return g.Observable.defer((function(){return t&&w()(parseInt(t,10))?z.a.get("configs/".concat(t,".json")).then((function(e){var t=e.data,n=t.sections,r=T()(n)&&n.map((function(e){return X(X({},e),{},{id:R()()})}));return{data:r.length?X(X({},t),{},{sections:r}):t,isStatic:!0,canEdit:!0}})):Object(B.d)(t)})).do((function(e){if(!e.data)throw Error("Wrong data format");return!0})).switchMap((function(e){var n=e.data,o=e.isStatic,i=void 0!==o&&o,a=ee(e,["data","isStatic"]),s=r(),l=Object(W.a)(s),u=Object(W.b)(s),c=O()(n)?JSON.parse(n):n;if(!u&&w()(parseInt(t,10)))return g.Observable.of(Object(h.J)({status:403}));var p=Object(V.p)(s)===d.f.EDIT;return g.Observable.from([].concat(te(i||p?[Object(h.S)(a&&a.canEdit||l)]:[]),[Object(h.H)(t),Object(h.R)(c),Object(h.V)(a)]))})).let(Object(q.a)(Object(h.K)(!0,"loading"),Object(h.K)(!1,"loading"),(function(e){var t="geostory.errors.loading.unknownError";return 403===e.status?(t="geostory.errors.loading.pleaseLogin",(Object(W.b)(r())||Object(V.n)(r()))&&(t="geostory.errors.loading.geostoryNotAccessible")):404===e.status?t="geostory.errors.loading.geostoryDoesNotExist":S()(e.status)&&(t=e.message),g.Observable.of(Object(H.f)({title:"geostory.errors.loading.title",message:t}),Object(h.R)({}),Object(h.J)(X(X({},e),{},{messageId:t})))}))).startWith(Object(h.R)({}))}))},fe=function(e){return e.ofType(h.h).switchMap((function(t){var n=t.id;return e.ofType(K.d,K.e).switchMap((function(){return g.Observable.of(Object(h.I)(n)).delay(500)})).takeUntil(e.ofType(N.b))}))},he=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.j).switchMap((function(e){var t=e.path,n=Object(d.r)(t,Object(V.e)(r())),o=E()(n,"contents");if(o>0){var i=n.splice(0,o),a=Object(V.a)(i.join("."))(r());if(a&&a.contents&&0===a.contents.length)return g.Observable.of(Object(h.M)(i.join(".")))}return g.Observable.empty()}))},me=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.i).switchMap((function(e){var t=e.source,n=e.target,o=e.position,i=r(),a=Object(V.a)(t)(i);return g.Observable.of(Object(h.M)(t),Object(h.D)(n,o,a))}))},ge=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.z).filter((function(e){var t=e.path;return(void 0===t?"":t).endsWith("editMap")})).map((function(e){var t=e.path,n=e.element,o=Object(d.s)(t,Object(V.e)(r())),i=o.flatPath,a=o.path,s=i.pop(),l=i.shift(),u="background"===a[a.length-2],c=u&&"#".concat(l.id," .ms-section-background-container")||"#".concat(s.id);return Object(d.z)(s.id),Object(h.T)(n,s,c,u,t.replace(".editMap",""))}))},ye=function(e,t){var n=t.getState;return e.ofType(Q.c).filter((function(e){var t=e.owner,n=e.map;return"inlineEditor"===t&&!!n})).switchMap((function(){return e.ofType(Q.b).switchMap((function(t){var r=t.map,o=Object(V.g)(n()).path;return g.Observable.of(Object(h.bb)("".concat(o,".map"),r),Object(h.bb)("".concat(o,".editMap"),!1),Object(Q.d)()).takeUntil(e.ofType(Q.a))}))}))},be=function(e){return e.ofType(h.c).switchMap((function(){return g.Observable.of(Object(U.g)("share","enabled",!1))}))},ve=function(e){return g.Observable.merge(e.ofType(h.h).switchMap((function(){return e.ofType(h.s)}))).switchMap((function(){return e.ofType(h.a,h.z,h.j,h.b,h.e,h.C).take(1).switchMap((function(){return g.Observable.of(Object(h.U)(!0)).concat(e.ofType(h.m,N.b,K.e).take(1).switchMap((function(){return g.Observable.of(Object(h.U)(!1))})))}))}))},we=function(e,t){var n=t.getState;return e.ofType(h.A).debounceTime(50).switchMap((function(e){var t=e.sectionId,r=e.columnId;if("edit"!==Object(V.p)(n())&&(r||t)&&Object(V.z)(n())){var o,i,a=k()(n(),"geostory.resource.id"),s=Object(d.y)(window.location.href,null===(o=window)||void 0===o||null===(i=o.location)||void 0===i?void 0:i.hash,a,t,r);s&&history.pushState(null,"",s)}return g.Observable.empty()}))},je=function(e){return e.ofType(h.q).switchMap((function(){var e,t,n,r,o,i,a=null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.hash)||void 0===n?void 0:n.split("/");return null!==(r=window)&&void 0!==r&&null!==(o=r.location)&&void 0!==o&&null!==(i=o.hash)&&void 0!==i&&i.includes("shared")?Object(d.z)(a[7]||a[5],{block:"start",behavior:"auto"}):a.length>5?Object(d.z)(a[6],{block:"start",behavior:"auto"}):5===a.length&&Object(d.z)(a[4],{block:"start",behavior:"auto"}),g.Observable.empty()}))},Oe=function(e){return e.ofType(N.b).switchMap((function(e){var t,n=e.payload;if((null==n||null===(t=n.location)||void 0===t?void 0:t.pathname.includes("/geostory/"))&&"POP"===n.action){var r,o=M()(null==n||null===(r=n.location)||void 0===r?void 0:r.pathname);return o.find((function(e){return"shared"===e}))?g.Observable.of(Object(h.I)(o[2])).delay(500):g.Observable.of(Object(h.I)(o[1])).delay(500)}return g.Observable.empty()}))},_e=function(e,t){var n=t.getState;return e.ofType(h.A).filter((function(e){var t=e.columnId,r=e.sectionId;return!("edit"!==Object(V.p)(n())||!t&&!r)})).debounceTime(50).switchMap((function(){return g.Observable.of(Array.from(document.querySelectorAll(".ms-geostory-builder .mapstore-side-card.ms-highlight")).pop()).filter((function(e){return!!e})).withLatestFrom(g.Observable.of(document.querySelector(".ms-geostory-builder .ms2-border-layout-body")).filter((function(e){return!!e}))).map((function(e){var t=Z(e,2),n=t[0],r=t[1];return function(){var e=n.getBoundingClientRect(),t=e.top,o=e.bottom,i=r.getBoundingClientRect(),a=i.top,s=i.bottom;ts&&r.scrollBy({top:o-s+10,behavior:"smooth"})}})).do((function(e){return window.requestAnimationFrame(e)})).ignoreElements()}))},Se=n("./MapStore2/web/client/selectors/locale.js"),xe=n("./MapStore2/web/client/reducers/geostory.js"),Ee=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),Ce=n("./node_modules/react-container-dimensions/lib/index.js"),Me=n.n(Ce),Ae=n("./node_modules/recompose/es/Recompose.js"),ke=n("./node_modules/recompose/rxjsObservableConfig.js"),De=n.n(ke);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Pe(Pe({},e),t)}),{})),{},{updateCurrentPage:n})}))}))),Fe=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),ze=n("./MapStore2/node_modules/lodash/lodash.js");function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.interceptorTime,n=e.updateCurrentPage;return{interceptorTime:t,updateCurrentPage:n}})).distinctUntilKeyChanged("interceptorTime").switchMap((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.interceptorTime,r=void 0===n?100:n,o=t.updateCurrentPage;return e.scan((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.visible,o=t.entry;return Ue(Ue({},e),{},He({},n,{visible:r,entry:o}))}),{}).debounceTime(r).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(ze.minBy)(Object.keys(e),(function(t){return e[t].visible?Object(ze.get)(e[t],"entry.boundingClientRect.top"):1/0}));return t})).do((function(e){o&&o({sectionId:e})})).ignoreElements()}))}(r,e).startWith({}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Ue(Ue({},e),t)}),{})),{},{onVisibilityChange:n})}))}))),We=n("./node_modules/prop-types/index.js"),Ve=n.n(We),Ge=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js"),qe=(n("./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css"),n("./node_modules/draft-js/lib/Draft.js")),Ye=n("./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js"),Qe=n("./node_modules/classnames/index.js"),Ze=n.n(Qe);function Je(e){return(Je="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 Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){for(var n=0;n0&&(s="External Link"),null!=o&&o.attributes["data-geostory-interaction-name"]&&(s=o.attributes["data-geostory-interaction-name"]),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i,attributes:o&&o.attributes||{},currentSelectOption:s})})),st(it(e),"forceExpandAndShowModal",(function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n();var s="Select link target";null!=o&&o.target&&o.target.length>0&&(s="External Link"),null!=o&&o.attributes["data-geostory-interaction-name"]&&(s=o.attributes["data-geostory-interaction-name"]),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i,attributes:o&&o.attributes||{},currentSelectOption:s})})),e}return et(n,[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",attributes:{},linkTargetOption:this.props.config.defaultTargetOption,currentSelectOption:"Select link target"})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,o=e.availableStorySections,a=this.state,s=a.linkTitle,l=a.linkTarget,u=a.linkTargetOption,c=a.currentSelectOption;return i.a.createElement("div",{className:Ze()("rdw-link-modal",t),onClick:Ye.stopPropagation},i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),i.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:s}),i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),i.a.createElement(lt,{externalLinkOption:"External Link",currentSelectOption:c,onSelectionChange:this.onSelectionChange,availableStorySections:o}),"External Link"===c&&i.a.createElement(i.a.Fragment,null,i.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:l}),i.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},i.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===u,value:"_blank",onChange:this.updateTargetOption}),i.a.createElement("span",null,r["components.controls.link.linkTargetOption"]))),i.a.createElement("span",{className:"rdw-link-modal-buttonsection"},i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!l||!s},r["generic.add"]),i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,o=t.unlink,a=t.className,s=e.currentState,l=e.expanded,u=e.translations,c=this.state.showModal;return i.a.createElement("div",{className:Ze()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},n.indexOf("link")>=0&&i.a.createElement(Ye.Option,{value:"unordered-list-item",className:Ze()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":c,title:r.title||u["components.controls.link.link"]},i.a.createElement("img",{src:r.icon,alt:""})),n.indexOf("unlink")>=0&&i.a.createElement(Ye.Option,{disabled:!s.link,value:"ordered-list-item",className:Ze()(o.className),onClick:this.removeLink,title:o.title||u["components.controls.link.unlink"]},i.a.createElement("img",{src:o.icon,alt:""})),l&&c?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,o=e.doExpand,a=e.onChange,s=e.config,l=e.currentState,u=e.translations,c=s.options,d=s.link,p=s.unlink,f=s.className,h=s.dropdownClassName,m=s.title,g=this.state.showModal;return i.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:m},i.a.createElement(Ye.Dropdown,{className:Ze()("rdw-link-dropdown",f),optionWrapperClassName:Ze()(h),onChange:a,expanded:t&&!g,doExpand:o,doCollapse:r,onExpandEvent:n},i.a.createElement("img",{src:Object(Ye.getFirstIcon)(s),alt:""}),c.indexOf("link")>=0&&i.a.createElement(Ye.DropdownOption,{onClick:this.forceExpandAndShowModal,className:Ze()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.link"]},i.a.createElement("img",{src:d.icon,alt:""})),c.indexOf("unlink")>=0&&i.a.createElement(Ye.DropdownOption,{onClick:this.removeLink,disabled:!l.link,className:Ze()("rdw-link-dropdownoption",p.className),title:p.title||u["components.controls.link.unlink"]},i.a.createElement("img",{src:p.icon,alt:""}))),t&&g?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}]),n}(o.Component);st(ut,"propTypes",{expanded:Ve.a.bool,doExpand:Ve.a.func,doCollapse:Ve.a.func,onExpandEvent:Ve.a.func,config:Ve.a.object,onChange:Ve.a.func,currentState:Ve.a.object,translations:Ve.a.object,modalHandler:Ve.a.any});var ct=ut;function dt(e){return(dt="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 pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n').concat(t,"");if("LINK"===e.type){var n=e.data.targetOption||"_self",r=e.data.attributes;return r&&r["data-geostory-interaction-type"]?'").concat(t,""):'').concat(t,"")}if("IMAGE"===e.type){var o=e.data.alignment,i=o&&"none"!==o?"float: ".concat(o,";"):"display: block; margin: 0 auto 0 auto;";return'').concat(e.data.alt,'')}return"EMBEDDED_LINK"===e.type?''):t};function At(){return(At=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n:d.c,className:void 0,component:void 0,dropdownClassName:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{className:"".concat(s,"-toolbar-btn")},italic:{className:"".concat(s,"-toolbar-btn")},underline:{className:"".concat(s,"-toolbar-btn")},strikethrough:{className:"".concat(s,"-toolbar-btn")},code:{className:"".concat(s,"-toolbar-btn")}},textAlign:{left:{className:"".concat(s,"-toolbar-btn")},center:{className:"".concat(s,"-toolbar-btn")},right:{className:"".concat(s,"-toolbar-btn")},justify:{className:"".concat(s,"-toolbar-btn")}},colorPicker:{className:"".concat(s,"-toolbar-btn")},remove:{className:"".concat(s,"-toolbar-btn")}},u),toolbarClassName:"".concat(s,"-toolbar"),wrapperClassName:"".concat(s,"-wrapper"),editorClassName:"".concat(s,"-main")}})),Object(Ae.renderComponent)(Ye.Editor)),Lt=Object(Ae.compose)(Object(Ae.lifecycle)({componentWillUnmount:function(){var e=this.props,t=e.editorState,n=e.save;(void 0===n?function(){}:n)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e){var n=Object(qe.convertToRaw)(e.getCurrentContent()).blocks,r=1!==n.length||Object(qe.convertToRaw)(e.getCurrentContent()).blocks[0].text,o=St()(Object(qe.convertToRaw)(e.getCurrentContent()),null,null,Mt);return r?o:t}return t}(t,d.d))}}),Object(Ae.withHandlers)({onBlur:function(e){var t=e.toggleEditing,n=void 0===t?function(){}:t;return function(){n(!1)}}}),Object(Ae.withProps)((function(e){var t=e.sections;return{availableStorySections:(void 0===t?[]:t).reduce((function(e,t){var n=[];t.type===d.h.IMMERSIVE?t.contents.forEach((function(e){n.push(e)})):n.push(t);return[].concat(kt(e),n)}),[])}})),Object(Ae.withProps)((function(e){var t=e.availableStorySections,n=void 0===t?[]:t;return{toolbar:{link:{inDropdown:!1,className:void 0,component:function(e){return i.a.createElement(ct,At({},e,{availableStorySections:n}))},popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0,getLinkDecorator:Ot}}}})),Nt),Rt=Object(Ae.compose)(Object(Ae.withState)("contentEditing","setContentEditing",!1),Object(Ae.withState)("editorState","onEditorStateChange"),Object(Ae.withHandlers)({toggleEditing:function(e){var t=e.bubblingTextEditing,n=void 0===t?function(){}:t,r=e.sectionType,o=e.onEditorStateChange,i=void 0===o?function(){}:o,a=e.setContentEditing,s=void 0===a?function(){}:a;return function(e,t){if(e){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Et()(e,null,Ct),n=qe.ContentState.createFromBlockArray(t.contentBlocks);return qe.EditorState.createWithContent(n)}(t);if(r===d.h.TITLE&&"unstyled"===qe.RichUtils.getCurrentBlockType(o)){var a=o.getCurrentContent();a=qe.Modifier.setBlockType(a,qe.EditorState.createWithContent(a).getSelection(),"header-one"),o=qe.EditorState.createWithContent(a)}i(o),s(!0),n(!0)}else s(!1),n(!1)}}}),Object(Ae.branch)((function(e){return!!e.contentEditing}),Lt)),Ft=Object(Ae.compose)(Object(Ae.withHandlers)({save:function(e){var t=e.update,n=void 0===t?function(){}:t;return function(e){return n("html",e)}}}),Object(Ae.branch)((function(e){return e.mode===d.f.EDIT}),Rt),Object(Ae.compose)(Object(Ae.withPropsOnChange)(["sectionType"],(function(e){var t=e.sectionType;return{placeholder:d.h.TITLE===t?"geostory.builder.defaults.htmlTitlePlaceholder":"geostory.builder.defaults.htmlPlaceholder",placeholderTag:d.h.TITLE===t?"h1":"p"}})),Object(Ge.a)("placeholder")))((function(e){var t=e.placeholder,n=e.placeholderTag,r=void 0===n?"p":n,o=e.id,a=e.toggleEditing,s=void 0===a?function(){}:a,l=e.html,u=e.mode;return i.a.createElement("div",{className:"ms-text-wrapper"},l!==d.d&&i.a.createElement("div",{id:o,onClick:function(){return s(!0,l)},dangerouslySetInnerHTML:{__html:l}}),(!l||l===d.d)&&u===d.f.EDIT&&i.a.createElement("div",{className:"ms-text-placeholder",id:"placeholder"+o,onClick:function(){return s(!0,l===d.d?"":l)},dangerouslySetInnerHTML:{__html:"<".concat(r,">").concat(t,"")}}))})),zt=n("./node_modules/react-image-lightbox/dist/umd/react-image-lightbox.js"),Bt=n.n(zt),Ut=n("./node_modules/object-fit-images/dist/ofi.common-js.js"),Ht=n.n(Ut);function Kt(e){return(Kt="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 Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return vn(vn({},t),{},{mapInfo:e,getFeatureInfoHandler:r})}))})),xn=Object(Ae.branch)((function(e){var t=e.map,n=(t=void 0===t?{}:t).mapInfoControl;return void 0!==n&&n}),Object(Ae.compose)(Sn,Object(Ae.withStateHandlers)({popups:[]},{onClick:function(e,t){var n=t.getFeatureInfoHandler,r=void 0===n?function(){}:n;return function(e,t){var n=e.rawPos,o=void 0===n?[]:n,i=yn(e,["rawPos"]);return r({point:i,layerInfo:t}),{popups:[{position:{coordinates:o},id:R()()}]}}},onPopupClose:function(){return function(){return{popups:[]}}}}),Object(Ae.withPropsOnChange)(["mapInfo","popups"],(function(e){var t=e.mapInfo,n=e.popups,r=e.options,o=(r=void 0===r?{}:r).mapOptions,a=(o=void 0===o?{}:o).mapInfoFormat,s=void 0===a?_n():a,l=t.responses,u=t.requests,c=t.validResponses,d=function(){return i.a.createElement(fn,{renderEmpty:!0,responses:l,requests:u,validResponses:c,format:s,showEmptyMessageGFI:!0,missingResponses:(u||[]).length-(l||[]).length})};return{popups:n.map((function(e){return vn(vn({},e),{},{component:d})}))}})),Object(Ae.withPropsOnChange)(["plugins","onPopupClose","popups"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=e.popups,r=e.onPopupClose,o=t.PopupSupport,a=t.tools,s=void 0===a?{}:a,l=yn(t,["PopupSupport","tools"]);if(!o)return{};var u=function(e){return i.a.createElement(o,gn({},e,{popups:n,onPopupClose:r}))};return{plugins:vn(vn({},l),{},{tools:vn(vn({},s),{},{popup:u})})}})))),En=Object(Ae.withPropsOnChange)(["onClick","eventHandlers"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:vn(vn({},o),{},{onClick:n})}})),Cn=n("./MapStore2/web/client/components/map/BaseMap.jsx"),Mn=Object(Ae.compose)(an.a,Object(rn.a)(0),nn.a,xn,En,on.a,sn.a)(Cn.a),An=n("./MapStore2/web/client/components/misc/Portal.jsx"),kn=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),Dn=n("./node_modules/react-resize-detector/lib/esm/hoc/withResizeDetector.js"),Tn=n("./MapStore2/web/client/components/misc/Button.jsx");function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rn=Object(kn.a)(Tn.a),Fn=Object(Ae.compose)(Object(Ae.withState)("active","setActive",!1),Dn.a)((function(e){var t=e.id,n=e.map,r=void 0===n?{layers:[Y.b]}:n,o=e.fit,a=e.editMap,s=void 0!==a&&a,l=e.onMapViewChanges,u=e.eventHandlers,c=e.expandable,p=void 0!==c&&c,f=e.active,h=e.setActive,m=e.width,g=e.height,y=e.size,b=e.showCaption,v=e.caption,w=e.mapType,j=void 0===w?"leaflet":w,O=e.onMapTypeLoaded,_=r.data?r.data:r,S=_.layers,x=void 0===S?[]:S,E=_.mapOptions,C=void 0===E?{}:E,M=_.description,A=Ln(_,["layers","mapOptions","description"]),k=v||M,D=p?f?{zoomControl:!1,interactive:!0,mapOptions:{scrollWheelZoom:!0,interactions:{mouseWheelZoom:!0,dragPan:!0}}}:{zoomControl:!1,interactive:!1,mapOptions:{scrollWheelZoom:!1,interactions:{mouseWheelZoom:!1,dragPan:!1}}}:{mapOptions:C},T=s?{mapOptions:In(In({},C),{},{interactions:In(In({},C.interactions),{},{mouseWheelZoom:A.zoomControl})})}:D,P=A.mapInfoControl&&!(p&&!f),I=i.a.createElement(i.a.Fragment,null,i.a.createElement(Mn,{key:p?"overlay":"block",onMapViewChanges:l,eventHandlers:u,map:In(In({},A),{},{id:"media-".concat(t),resize:m+"-"+g+"_"+y,className:"aaaa",style:{cursor:P?"pointer":"default"}}),layers:x,tools:P?["popup"]:[],options:Object(d.j)(T),mapType:j,onMapTypeLoaded:O}),p&&!s&&i.a.createElement(Rn,{className:"ms-expand-media-button",onClick:function(){return h(!f)},tooltipId:f?"geostory.closeFullscreenMap":"geostory.showFullscreenMap",tooltipPosition:"left"},i.a.createElement(tn.Glyphicon,{glyph:f?"1-close":"1-full-screen"})));return i.a.createElement("div",{className:"ms-media ms-media-map ".concat(C.zoomPosition||""),style:{objectFit:o}},f&&p?i.a.createElement(An.a,null,i.a.createElement("div",{className:"ms-expanded-media-container"},I)):I,b&&k&&i.a.createElement("div",{className:"ms-media-caption"},i.a.createElement("small",null,k)))})),zn=n("./MapStore2/web/client/components/geostory/media/Video.jsx");function Bn(){return(Bn=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=en,Vn={image:en,map:Fn,video:zn.a},Gn=function(e){var t=e.debounceTime,n=e.mediaViewer,r=Kn(e,["debounceTime","mediaViewer"]),a="".concat(r.id).concat(r.resourceId?"-".concat(r.resourceId):""),s=Un(Object(o.useState)({}),2),l=s[0],u=s[1],c=void 0===l[a]||l[a],d=n||Vn[r.mediaType||r.type]||Wn;return i.a.createElement(d,Bn({sectionType:r.sectionType,debounceTime:t,loading:l,isLoading:c,onLoad:u,loadingId:a},r))};Gn.propTypes={id:Ve.a.string,lazy:Ve.a.bool,mediaType:Ve.a.string,type:Ve.a.string,debounceTime:Ve.a.number},Gn.defaultProps={id:"",lazy:!0,mediaType:"",type:""};var qn=Gn,Yn=n("./MapStore2/web/client/components/misc/Dialog.jsx");function Qn(){return(Qn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var er=function(e){var t=e.show,n=e.style,r=void 0===n?{}:n,o=e.modal,a=e.draggable,s=void 0!==a&&a,l=e.closeGlyph,u=void 0===l?"1-close":l,c=e.closable,d=void 0===c||c,p=e.onClose,f=void 0===p?function(){}:p,h=e.title,m=e.header,g=e.footer,y=e.children,b=$n(e,["show","style","modal","draggable","closeGlyph","closable","onClose","title","header","footer","children"]);return t?i.a.createElement(Yn.a,Qn({modal:o,onClickOut:d&&o?function(){return f()}:null,style:Jn(Jn({},r),{},{display:t?"block":"none"}),draggable:s},b),i.a.createElement("span",{role:"header"},h||(m||i.a.createElement("span",null," ")),d?i.a.createElement("button",{onClick:function(){return f()},className:"settings-panel-close close"},i.a.createElement(tn.Glyphicon,{glyph:u})):null),i.a.createElement("span",{role:"body"},y),g?i.a.createElement("span",{role:"footer"},g):null):null},tr=n("./MapStore2/web/client/components/I18N/Message.jsx"),nr=Object(Ae.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.viewHeight,o=e.size;return!n||!r||!o}),Object(Fe.a)((function(){return!0}),(function(){return{glyph:"code"}}))),rr=Object(Ae.compose)(nr)((function(e){var t=e.src,n=e.size,r=e.viewHeight;return i.a.createElement("div",{className:"ms-webpage-wrapper"},i.a.createElement("iframe",{src:t,height:"".concat(Object(d.u)(n,r),"px")}))})),or=n("./MapStore2/web/client/utils/URLUtils.js"),ir=n("./MapStore2/web/client/utils/ConfigUtils.js"),ar=n("./node_modules/react-intersection-observer/react-intersection-observer.esm.js"),sr=n("./MapStore2/node_modules/lodash/debounce.js"),lr=n.n(sr);function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Tr=function(e){var t=e.type;return i.a.createElement("div",{className:"ms-content ms-content-unknown"},'warning: unknown content type "'.concat(t,'"'))},Pr=function(e){var t=e.type,n=Dr(e,["type"]),r=function(e){switch(e){case d.a.TEXT:return Ft;case d.a.MEDIA:case d.e.IMAGE:case d.e.MAP:case d.e.VIDEO:return qn;case d.a.WEBPAGE:return Ar;default:return Tr}}(t);return i.a.createElement(r,kr({type:t},n))},Ir=n("./MapStore2/web/client/components/geostory/common/ToolbarPopover.jsx"),Nr=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function Lr(e){return(Lr="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 Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var no=function(e){var t=e.viewWidth,n=e.viewHeight,r=e.className,o=e.contentProps,a=void 0===o?{}:o,s=e.addButtons,l=void 0===s?[]:s,u=e.tools,c=void 0===u?[]:u,p=e.contents,f=void 0===p?[]:p,h=e.ContentComponent,m=void 0===h?Pr:h,g=e.mode,y=e.sectionType,b=e.editMedia,v=void 0===b?function(){}:b,w=e.editWebPage,j=void 0===w?function(){}:w,O=e.add,_=void 0===O?function(){}:O,S=e.update,x=void 0===S?function(){}:S,E=e.remove,C=void 0===E?function(){}:E,M=e.bubblingTextEditing,A=void 0===M?function(){}:M,k=e.storyTheme,D=e.sections,T=void 0===D?[]:D,P=e.storyFonts;return i.a.createElement("div",{className:r},f.reduce((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,o=r.id,s=to(r,["id"]),u=[i.a.createElement(m,eo({id:o,key:"".concat(o,"-content"),mode:g,viewWidth:t,sectionType:y,viewHeight:n,editMedia:function(e){for(var t=e.path,n=void 0===t?"":t,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r0&&u.push(i.a.createElement(Yr,{key:"".concat(o,"-content-add-buttons"),containerWidth:t,containerHeight:n,buttons:l.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xr(Xr({},e),{},{onClick:function(){return _("contents",o,e.template)}})}))})),[].concat(Qr(e),u)}),[]))};n("./node_modules/intersection-observer/intersection-observer.js");function ro(){return(ro=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var io=function(e){return Object(Ae.compose)(Object(Ae.withHandlers)({onVisibilityChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.onVisibilityChange,r=void 0===n?function(){}:n;return function(e,n){return r({id:t,visible:e,entry:n})}}}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onVisibilityChange,n=(e.rootSelector,oo(e,["onVisibilityChange","rootSelector"]));return function(e){return function(r){var o=r.intersectionObserverOptions,a=void 0===o?{}:o,s=r.onVisibilityChange,l=oo(r,["intersectionObserverOptions","onVisibilityChange"]),u=t||s;return i.a.createElement(ar.a,ro({},n,a,{onChange:u}),(function(t){var n=t.inView,r=t.ref,o=t.entry;return i.a.createElement(e,ro({},l,{inView:n,inViewRef:r,inViewEntry:o}))}))}}}(e))},ao=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),so=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),lo=n("./MapStore2/node_modules/lodash/find.js"),uo=n.n(lo),co=n("./MapStore2/node_modules/lodash/isFunction.js"),po=n.n(co),fo=n("./MapStore2/node_modules/lodash/isEqual.js"),ho=n.n(fo);function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return go(e,t)}(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 go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=(null==e?void 0:e.Component)||tn.MenuItem;return v(t,e)?null:i.a.createElement(n,{key:e.value,selected:t,value:e.value,active:po()(null==e?void 0:e.isActive)&&e.isActive(t)||!S()(t)&&t===e.value,onClick:null!=e&&e.Component?s:function(){return s(e.value)},onActive:function(e){return C(e)}},e.label)})))}var vo=n("./MapStore2/web/client/components/misc/withConfirm.jsx"),wo=n("./MapStore2/web/client/components/geostory/common/CustomThemePicker.jsx"),jo=n("./MapStore2/node_modules/lodash/isObject.js"),Oo=n.n(jo);function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Lo={size:function(e){return{renderButton:i.a.createElement(Mo,e)}},align:function(e){return{renderButton:i.a.createElement(Ao,e)}},theme:function(e){return{renderButton:i.a.createElement(ko,e)}},fit:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.fit,o=e.update,i=void 0===o?function(){}:o;return{value:r,glyph:"contain"===r?"fit-cover":"fit-contain",disabled:n,visible:!0,tooltipId:"contain"===r?"geostory.contentToolbar.cover":"geostory.contentToolbar.fit",onClick:function(){return i("fit","contain"===r?"cover":"contain")}}},cover:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.cover,o=e.updateSection,i=void 0===o?function(){}:o;return{value:r,glyph:r?"height-auto":"height-view",visible:!0,disabled:n,tooltipId:r?"geostory.contentToolbar.contentHeightAuto":"geostory.contentToolbar.contentHeightView",onClick:function(){return i({cover:!r},"merge")}}},editMedia:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.path,o=e.editMedia,i=void 0===o?function(){}:o;return{glyph:"pencil","data-button":"pencil",visible:!0,disabled:n,tooltipId:"geostory.contentToolbar.editMedia",onClick:function(){i({path:r})}}},remove:function(e){return{renderButton:i.a.createElement(Do,e)}},editMap:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.update,o=void 0===r?function(){}:r;return{glyph:"map-edit",visible:!0,disabled:n,bsStyle:n?"success":"default",tooltipId:"geostory.contentToolbar.editMap",onClick:function(){o("editMap",!n)}}},editURL:function(e){var t=e.editURL,n=void 0!==t&&t,r=e.path,o=e.editWebPage,i=void 0===o?function(){}:o;return{glyph:"pencil",visible:!0,disabled:n,bsStyle:n?"success":"default",tooltipId:"geostory.contentToolbar.editURL",onClick:function(){i({path:r})}}},muted:function(e){var t=e.update,n=e.muted;return{glyph:n?"muted":"audio",visible:!0,active:!n,tooltipId:n?"geostory.contentToolbar.enableAudio":"geostory.contentToolbar.disableAudio",onClick:function(){t("muted",!n)}}},autoplay:function(e){var t=e.update,n=e.autoplay;return{glyph:"play-circle",visible:!("cover"===e.fit),active:n,tooltipId:n?"geostory.contentToolbar.disableAutoplay":"geostory.contentToolbar.enableAutoplay",onClick:function(){t("autoplay",!n)}}},loop:function(e){var t=e.update,n=e.loop;return{glyph:"loop",visible:!("cover"===e.fit),active:n,tooltipId:n?"geostory.contentToolbar.disableLoop":"geostory.contentToolbar.enableLoop",onClick:function(){t("loop",!n)}}},showCaption:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.update,o=e.showCaption,i=e.caption,a=e.description;return{glyph:"caption",visible:!(!i&&!a),disabled:n,active:!(!o||n),tooltipId:o?"geostory.contentToolbar.hideCaption":"geostory.contentToolbar.showCaption",onClick:function(){r("showCaption",!o)}}}};function Ro(e){var t=e.tools,n=void 0===t?[]:t,r=No(e,["tools"]);return i.a.createElement("div",{className:"ms-content-toolbar"},i.a.createElement(Nr.a,{btnDefaultProps:{className:"square-button-md no-border",noTooltipWhenDisabled:!0},buttons:n.filter((function(e){return(null==e?void 0:e.id)&&Lo[e.id]||Lo[e]})).map((function(e){return(null==e?void 0:e.id)&&Lo[e.id](Po(Po({},r),e))||Lo[e](r)}))}))}function Fo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var zo=function(e){var t=e.id,n=e.inViewRef,r=e.children,o=e.type,a=e.contentWrapperStyle,s=e.contentToolbar,l=e.mode,u=Fo(e,["id","inViewRef","children","type","contentWrapperStyle","contentToolbar","mode"]),c=s||Ro;return i.a.createElement("div",{id:t,ref:n,style:a,className:"ms-content ms-content-".concat(o).concat(Object(d.p)(u))},i.a.createElement("div",{className:"ms-content-body",style:Object(d.t)(u)},l===d.f.EDIT&&i.a.createElement(c,u),r))};function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t1?o-1:0),a=1;a1?o-1:0),a=1;a1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.visible,o=t.entry;return Zo(Zo({},e),{},Jo({},n,{visible:r,entry:o}))}),{}).debounceTime(100).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(ze.maxBy)(Object.keys(e),(function(t){return e[t].visible?Object(ze.get)(e[t],"entry.intersectionRatio"):-1/0}));return{maxItem:t,items:e}}));return g.Observable.merge(n.pluck("maxItem").distinctUntilChanged().map((function(e){return{backgroundId:e}})),n.map((function(e){var t=e.maxItem,n=e.items;return 0===Object(ze.get)(n[t],"entry.intersectionRatio")?"EMPTY":t})).withLatestFrom(t.pluck("updateCurrentPage")).do((function(e){var t=qo(e,2),n=t[0],r=t[1];return r&&r({columnId:n})})).ignoreElements())}(r,e).startWith({}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Zo(Zo({},e),t)}),{})),{},{onVisibilityChange:n})}))})),ei),ni=function(){function e(e,t){var n=void 0!==t?t:{};this.version="3.6.6",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:n.customStickyChangeNumber||null,noStyles:n.noStyles||!1,stickyBitStickyOffset:n.stickyBitStickyOffset||0,parentClass:n.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof n.scrollEl?document.querySelector(n.scrollEl):n.scrollEl||window,stickyClass:n.stickyClass||"js-is-sticky",stuckClass:n.stuckClass||"js-is-stuck",stickyChangeClass:n.stickyChangeClass||"js-is-sticky--change",useStickyClasses:n.useStickyClasses||!1,useFixed:n.useFixed||!1,useGetBoundingClientRect:n.useGetBoundingClientRect||!1,verticalPosition:n.verticalPosition||"top"},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var r=this.props,o=r.positionVal,i=r.verticalPosition,a=r.noStyles,s=r.stickyBitStickyOffset,l="top"!==i||a?"":s+"px",u="fixed"!==o?o:"";this.els="string"==typeof e?document.querySelectorAll(e):e,"length"in this.els||(this.els=[this.els]);for(var c=0;c=s&&"sticky"===o;w>i&&w=a&&w<=s;ws?b((function(){v(n,f)})):_&&b((function(){v(n,"stub",f)}))},t.update=function(e){void 0===e&&(e=null);for(var t=0;t=h?h:n,storyTheme:G,mediaViewer:L,contentToolbar:R,inView:F}))})),i.a.createElement(Go,{className:"ms-section-contents".concat(T),contents:a,mode:s,add:y,sectionType:c,update:v,remove:_,sectionId:t,contentProps:{contentWrapperStyle:p?{minHeight:h,visibility:K}:{visibility:K},mediaViewer:L,contentToolbar:R},tools:Vi({},d.a.TEXT,["size","align","theme","remove"]),focusedContent:M,bubblingTextEditing:k,storyTheme:V,sections:B,storyFonts:U}),s===d.f.EDIT&&!H&&i.a.createElement(Yr,{containerWidth:f,containerHeight:h,buttons:[{glyph:"story-title-section",tooltipId:"geostory.addTitleSection",onClick:function(){y("sections",t,d.h.TITLE)}},{glyph:"story-banner-section",tooltipId:"geostory.addBannerSection",onClick:function(){y("sections",t,d.h.BANNER)}},{glyph:"story-paragraph-section",tooltipId:"geostory.addParagraphSection",onClick:function(){y("sections",t,d.h.PARAGRAPH)}},{glyph:"story-immersive-section",tooltipId:"geostory.addImmersiveSection",onClick:function(){y("sections",t,d.h.IMMERSIVE)}},{glyph:"story-media-section",tooltipId:"geostory.addMediaSection",onClick:function(){y("sections",t,d.g.MEDIA)}},{glyph:"story-webpage-section",tooltipId:"geostory.addWebPageSection",onClick:function(){y("sections",t,d.g.WEBPAGE)}}]}))}));function qi(){return(qi=Object.assign||function(e){for(var t=1;t=f?f:n,storyTheme:M,mediaViewer:A,contentToolbar:k,inView:D}))})),i.a.createElement("div",{style:{minHeight:c?f:300,pointerEvents:"none"}}),o===d.f.EDIT&&!T&&i.a.createElement(Yr,{containerWidth:p,containerHeight:f,buttons:[{glyph:"story-title-section",tooltipId:"geostory.addTitleSection",onClick:function(){g("sections",t,d.h.TITLE)}},{glyph:"story-banner-section",tooltipId:"geostory.addBannerSection",onClick:function(){g("sections",t,d.h.BANNER)}},{glyph:"story-paragraph-section",tooltipId:"geostory.addParagraphSection",onClick:function(){g("sections",t,d.h.PARAGRAPH)}},{glyph:"story-immersive-section",tooltipId:"geostory.addImmersiveSection",onClick:function(){g("sections",t,d.h.IMMERSIVE)}},{glyph:"story-media-section",tooltipId:"geostory.addMediaSection",onClick:function(){g("sections",t,d.g.MEDIA)}},{glyph:"story-webpage-section",tooltipId:"geostory.addWebPageSection",onClick:function(){g("sections",t,d.g.WEBPAGE)}}]}))}));function Ji(e){return(Ji="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 Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/#\d|^#-\d/g,(function(e,t){return t?"#\\"+t[1]+t[2]:"#\\3"+e[1]+" "}))})),ya(ma(e),"getFocusedTarget",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.targets,n=e.props.padding,r=void 0===n?{}:n;return t.map((function(t){var n=t.selector,o=null;try{var i=window.document.querySelector(e.getAdjustedSelector(n));if(i){var a=i.getBoundingClientRect(),s=a.top,l=a.right,u=a.bottom,c=a.left;o={x:c-r,y:s-r,w:l-c+2*r,h:u-s+2*r}}}catch(e){console.warn(e)}finally{return o}})).filter((function(e){return e}))})),ya(ma(e),"getHolePath",(function(t){var n=t.x,r=t.y,o=t.w,i=t.h,a=e.props.borderRadius,s=void 0===a?8:a;return"M ".concat(n," ").concat(r+s," q 0 -").concat(s," ").concat(s," -").concat(s," h ").concat(o-2*s," q ").concat(s," 0 ").concat(s," ").concat(s," v ").concat(i-2*s," q 0 ").concat(s," -").concat(s," ").concat(s," h-").concat(o-2*s," q -").concat(s," 0 -").concat(s," -").concat(s," v-").concat(i-2*s)})),ya(ma(e),"getPath",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getFocusedTarget(),o="M 0 0 h ".concat(n," v ").concat(t," h -").concat(n," v -").concat(t),i=r.map(e.getHolePath);return o+i.join(" ")})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.onMaskClicked,r=t.stopEventsOnTargets,o=void 0!==r&&r,a=t.targets,s=this.getFocusedTarget(a.filter((function(e){var t=e.stopEventsOnTarget;return o||t})));return i.a.createElement("div",{style:{position:"fixed",height:"100vh",width:"100vw",top:0,left:0,zIndex:1e6,pointerEvents:"none"}},i.a.createElement(Me.a,null,(function(t){var r=t.width,o=t.height;return i.a.createElement("svg",{width:r,height:o,xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{d:e.getPath(o,r),fill:"rgba(0,0,0,0.7)",fillRule:"evenodd",pointerEvents:"visiblePainted",onClick:n}),s.map((function(t,n){return i.a.createElement("path",{key:n,d:e.getHolePath(t),fill:"transparent",pointerEvents:"visiblePainted"})})))})))}}])&&da(t.prototype,n),r&&da(t,r),a}(i.a.Component);ya(ba,"propTypes",{targets:Ve.a.arrayOf(Ve.a.shape({selector:Ve.a.string,stopEventsOnTarget:Ve.a.bool})),padding:Ve.a.number,borderRadius:Ve.a.number,onMaskClicked:Ve.a.func,stopEventsOnTargets:Ve.a.bool}),ya(ba,"defaultProps",{targets:[],padding:0,borderRadius:8,onMaskClicked:function(){},stopEventsOnTargets:!1});function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t=640&&t<1024?"md":""},Sa=Object(Ae.compose)(Re,Ke,function(e){var t=e.showFocusMask,n=void 0===t?function(){}:t,r=e.defaultTargets,o=void 0===r?{selector:".ms-geostory-map-editor"}:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.padding,l=void 0===s?0:s,u=a.borderRadius,c=void 0===u?8:u,d=a.stopEventsOnTargets,p=void 0!==d&&d,f=a.onMaskClicked,h=void 0===f?function(){}:f;return Object(Ae.branch)(n,(function(e){return Object(Ae.nest)((function(e){var t=e.focusedContent,n=e.children;return i.a.createElement(i.a.Fragment,null,n,i.a.createElement(ba,{targets:[t,o],padding:l,borderRadius:c,stopEventsOnTargets:p,onMaskClicked:h}))}),e)}))}({showFocusMask:function(e){var t=e.focusedContent,n=(t=void 0===t?{}:t).target;return(void 0===n?{}:n).id}}))((function(e){var t=e.mode,n=void 0===t?d.f.VIEW:t,r=e.sections,o=void 0===r?[]:r,a=e.add,s=void 0===a?function(){}:a,l=e.onVisibilityChange,u=void 0===l?function(){}:l,c=e.updateCurrentPage,p=void 0===c?function(){}:c,f=e.editMedia,h=void 0===f?function(){}:f,m=e.editWebPage,g=void 0===m?function(){}:m,y=e.update,b=void 0===y?function(){}:y,v=e.remove,w=void 0===v?function(){}:v,j=e.focusedContent,O=e.isContentFocused,_=void 0!==O&&O,S=e.getSize,x=void 0===S?_a:S,E=e.theme,C=void 0===E?{}:E,M=e.mediaViewer,A=e.contentToolbar,k=e.storyFonts;return i.a.createElement(Ee.a,{className:"ms-cascade-story ms-".concat(n)},i.a.createElement(Oa,{sections:o,add:s},(function(e){var t,r=e.width,a=e.height,l=x({width:r,height:a,mode:n}),c=l?" ms-".concat(l):"",d="sm"===l,f=C&&Oo()(C)&&C||{};return i.a.createElement("div",{id:"ms-sections-container",className:"ms-sections-container".concat(c," ms-sections-hyperlinks"),style:wa(wa({},null==f?void 0:f.general),_&&{overflow:"hidden"})},(null==f||null===(t=f.link)||void 0===t?void 0:t.color)&&i.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .ms-sections-hyperlinks .ms-text-editor-main a,\n .ms-sections-hyperlinks .ms-text-wrapper a,\n .ms-sections-hyperlinks .ms-text-editor-main a:link,\n .ms-sections-hyperlinks .ms-text-wrapper a:link,\n .ms-sections-hyperlinks .ms-text-editor-main a:visited,\n .ms-sections-hyperlinks .ms-text-wrapper a:visited,\n .ms-sections-hyperlinks .ms-text-editor-main a:active,\n .ms-sections-hyperlinks .ms-text-wrapper a:active {\n color: ".concat(f.link.color,";\n opacity: 1;\n }\n .ms-sections-hyperlinks .ms-text-editor-main a:hover,\n .ms-sections-hyperlinks .ms-text-wrapper a:hover {\n color: ").concat(f.link.color,";\n opacity: 0.75;\n }\n ")}}),o.map((function(e){var t=e.contents,l=void 0===t?[]:t,c=e.id,m=e.type,y=e.cover;return i.a.createElement(la,{focusedContent:j,onVisibilityChange:u,add:s,editMedia:h,expandableMedia:d,editWebPage:g,updateCurrentPage:p,update:b,remove:w,key:c,id:c,viewHeight:a,viewWidth:r,type:m,mode:n,contents:l,cover:y,storyTheme:f,mediaViewer:M,contentToolbar:A,sections:o,storyFonts:k})})))})))})),xa=n("./node_modules/uuid/index.js"),Ea=n.n(xa),Ca=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js");function Ma(e){return function(e){if(Array.isArray(e))return Aa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aa(e,t)}(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 Aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{focusedEl:e}}))),Object(Ae.withProps)((function(e){var t=e.focusedEl,n=(t=void 0===t?{}:t).resourceId,r=t.map;return{map:r||{},resourceId:n,disableReset:!r}}))),Fa=Object(Ae.withHandlers)({onChangeMap:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e,n){t("".concat(r.path,".map.").concat(e),n,"merge")}},onChange:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e,n){t(r.path+".".concat(e),n,"merge")}}}),za=Object(Ae.compose)(Object(a.connect)(null,{toggleAdvancedEditing:Q.e}),Object(Ae.withHandlers)({toggleAdvancedEditing:function(e){var t=e.toggleAdvancedEditing,n=void 0===t?function(){}:t,r=e.map,o=void 0===r?{}:r;return function(){var e=o.id,t=Da(o,["id"]);n("inlineEditor",{data:t,id:e})}}})),Ba=Object(Ae.withHandlers)({toggleEditing:function(e){var t=e.editMap,n=e.update,r=e.focusedContent;return function(){return n(r.path+".editMap",!t)}},onReset:function(e){var t=e.update,n=e.focusedContent,r=(n=void 0===n?{}:n).path,o=void 0===r?"":r;return function(){t(o+".map",void 0)}},discardAndClose:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e){t(r.path+".map",e),t(r.path+".editMap",!1)}}}),Ua=function(e){return i.a.createElement(Na,ka({glyph:"repeat",bsStyle:"primary",className:"square-button-md no-border",tooltipId:"geostory.contentToolbar.resetMap",confirmTitle:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.resetMapConfirm"}),confirmContent:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.resetConfirmContent"})},e))},Ha=Object(Ae.compose)(Object(Ae.withProps)((function(e){var t=e.pendingChanges,n=e.toggleEditing,r=e.disableReset,o=e.onReset,a=e.toggleAdvancedEditing,s=void 0===a?function(){}:a;return{buttons:[{glyph:"floppy-disk",disabled:!t,tooltipId:"geostory.contentToolbar.saveChanges",onClick:n},{renderButton:i.a.createElement(Ua,{disabled:r,onClick:o})},{glyph:"pencil",tooltipId:"geostory.contentToolbar.advancedMapEditor",onClick:s}]}})),Ca.a,Object(Ae.withStateHandlers)((function(){return{editNode:void 0}}),{setEditNode:function(){return function(e){return{editNode:e}}},closeNodeEditor:function(){return function(){return{editNode:void 0}}}}),Object(Ae.branch)((function(e){return!!e.editNode}),Object(Ae.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.closeNodeEditor,o=void 0===r?function(){}:r;return{buttons:[{visible:1===n.length,tooltipId:"close",glyph:"1-close",onClick:o}]}})),Object(Ae.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.setEditNode,o=void 0===r?function(){}:r,i=e.buttons,a=void 0===i?[]:i;return{buttons:[{visible:1===n.length,glyph:"wrench",tooltipId:"toc.toolLayerSettingsTooltip",onClick:function(){o(n[0])}}].concat(Ma(a))}})))),Ka=Object(Ae.compose)(Object(Ae.withPropsOnChange)(["focusedContent"],(function(e){var t=e.map,n=e.focusedEl;return{contentMap:(n=void 0===n?{}:n).map,lastSavedMap:t}})),Object(Ae.withPropsOnChange)(["map"],(function(e){var t=e.map,n=e.lastSavedMap;return{pendingChanges:!Object(ze.isEqual)(n,t)}}))),Wa=Object(Ae.compose)(Object(Ae.withProps)((function(e){var t=e.toggleEditing;return{CloseBtn:function(e){return i.a.createElement(ao.a,ka({onClick:t},e))}}})),Object(Ae.branch)((function(e){return e.pendingChanges}),Object(Ae.withProps)((function(e){var t=e.discardAndClose,n=e.contentMap;return{CloseBtn:function(e){return i.a.createElement(Na,ka({onClick:function(){return t(n)},confirmTitle:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.confirmCloseMapEditing"}),confirmContent:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.pendingChangesDiscardConfirm"})},e))}}})))),Va=Object(Ae.mapPropsStream)((function(e){var t=Object(Ae.createEventHandler)(),n=t.stream,r=t.handler;return e.pluck("map").distinctUntilChanged((function(e,t){return Object(ze.isEqual)(e,t)})).switchMap((function(e){return n.map((function(t){return{map:Pa(Pa({},e),t)}})).startWith({map:e})})).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pa(Pa({},n),{},{onMapViewLocalChanges:r,map:t})}))})),Ga=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0},qa=Object(Ae.withHandlers)({onMapViewChanges:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.update,n=e.editMap,r=void 0!==n&&n,o=e.onMapViewLocalChanges,i=e.map,a=(i=void 0===i?{}:i).center,s=void 0===a?{}:a,l=i.zoom;return function(e){var n=e.center,i=void 0===n?{}:n,a=e.zoom,u=e.mapStateSource,c=Ga(s.x,i.x)&&Ga(s.y,i.y);!r||c&&l===a?o({center:i,zoom:a,mapStateSource:u}):t("map",{center:i,zoom:a,mapStateSource:Ea()()},"merge")}}}),Ya=n("./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js"),Qa=n("./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx"),Za=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js");function Ja(){return(Ja=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $a=Object(kn.a)(tn.NavItem),es=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tabs,n=void 0===t?[]:t,r=e.activeTab,o=(e.width,e.setActiveTab),a=void 0===o?function(){}:o,s=Xa(e,["tabs","activeTab","width","setActiveTab"]);return i.a.createElement("div",{key:"ms-geostory-map-settings-navbar",className:"ms-row-tab"},i.a.createElement("div",null,i.a.createElement(tn.Nav,{bsStyle:"tabs",activeKey:r,justified:!0},n.map((function(e){return i.a.createElement($a,{key:"ms-tab-settings-"+e.id,tooltipId:e.tooltipId,eventKey:e.id,onClick:function(){return a(e.id)}},i.a.createElement(tn.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement("div",null,n.filter((function(e){return e.id&&e.id===r})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,Ja({},s,{key:"ms-geostory-tab-settings-body-"+e.id}))}))))},ts=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),ns=n("./node_modules/react-select/dist/react-select.es.js"),rs=n("./MapStore2/web/client/components/misc/switch/SwitchButton.jsx"),os=n("./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx"),is=Object(Ge.a)(["placeholder","options"])(ns.default),as=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{zoomControl:!0,mapInfoControl:!1}:t,r=e.onChangeMap,o=void 0===r?function(){}:r,a=n&&n.mapOptions||{},s=Object(d.j)({mapOptions:a,zoomControl:!!Object(ze.isNil)(n.zoomControl)||n.zoomControl,mapInfoControl:!Object(ze.isNil)(n.mapInfoControl)&&n.mapInfoControl});return i.a.createElement(tn.Form,{className:"ms-geostory-map-controls"},i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.zoom"})),i.a.createElement(rs.a,{onChange:function(){var e=!s.zoomControl;o("zoomControl",e),o("mapOptions.interactions",{doubleClickZoom:e,shiftDragZoom:e,pinchZoom:e})},className:"ms-geostory-map-controls-switch",checked:s.zoomControl}),i.a.createElement(is,{options:[{label:"geostory.mapEditor.topLeft",value:"topLeft"},{label:"geostory.mapEditor.topRight",value:"topRight"},{label:"geostory.mapEditor.bottomLeft",value:"bottomLeft"},{label:"geostory.mapEditor.bottomRight",value:"bottomRight"}],wrapperStyle:{marginTop:"10px"},value:s.mapOptions&&s.mapOptions.zoomPosition||"topLeft",clearable:!1,disabled:!s.zoomControl,onChange:function(e){return o("mapOptions.zoomPosition",e&&e.value?e.value:"topLeft")},placeholder:"geostory.builder.settings.titlePlaceholder"})),i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.pan"})),i.a.createElement(rs.a,{onChange:function(){var e=!(s.mapOptions&&s.mapOptions.interactions&&s.mapOptions.interactions.dragPan);o("mapOptions.interactions",{dragPan:e,keyboardPan:e})},className:"ms-geostory-map-controls-switch",checked:s.mapOptions&&s.mapOptions.interactions&&s.mapOptions.interactions.dragPan})),i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.identify"})),i.a.createElement(rs.a,{onChange:function(){var e=!s.mapInfoControl;o("mapInfoControl",e)},className:"ms-geostory-map-controls-switch",checked:s.mapInfoControl}),s.mapInfoControl&&i.a.createElement(os.a,{disabled:!s.mapInfoControl,popoverMessage:"geostory.builder.settings.templateTooltip",infoFormat:s.mapOptions&&s.mapOptions.mapInfoFormat||"application/json",onInfoFormatChange:function(e){return o("mapOptions.mapInfoFormat",e)},selectProps:{wrapperStyle:{marginTop:10}}})))},ss=n("./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx"),ls=Object(Ae.withProps)((function(e){return{tabs:e.tabs||[{id:"toc",titleId:"geostory.mapEditor.toc",tooltipId:"geostory.mapEditor.toc",glyph:"1-layer",visible:!0,Component:ss.a},{id:"settings",titleId:"geostory.mapEditor.settings",tooltipId:"geostory.mapEditor.settings",glyph:"wrench",visible:!0,Component:as}]}})),us=Object(Ae.compose)(Object(ts.a)("activeTab","setActiveTab","toc"),ls),cs=Object(Ae.compose)(Za.a,Object(Ae.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),Object(Ya.a)("title"))((function(e){var t=e.title,n=e.description;return i.a.createElement("div",{className:"text-center"},i.a.createElement("div",{className:"mapstore-step-title"},t),i.a.createElement("div",{className:"mapstore-step-description"},n))})),ds=Object(Za.a)(Qa.a),ps=us(es),fs=Object(Ae.branch)((function(e){var t=e.focusedContent;return(t=void 0===t?{}:t).path}),Object(Ae.compose)(Object(Ae.defaultProps)({isFocused:!0,editMap:!0}),Ra,La,Ka,Fa,Ba,za,Ha,Wa))((function(e){var t=e.mode,n=void 0===t?d.f.VIEW:t,r=e.isFocused,o=void 0!==r&&r,a=e.map,s=void 0===a?{}:a,l=e.onChange,u=void 0===l?function(){}:l,c=e.onChangeMap,p=void 0===c?function(){}:c,f=e.onNodeSelect,h=void 0===f?function(){}:f,m=e.selectedNodes,g=e.buttons,y=void 0===g?[]:g,b=e.editNode,v=e.closeNodeEditor,w=e.CloseBtn,j=void 0===w?function(){return null}:w;return n===d.f.EDIT&&o?i.a.createElement("div",{key:"left-column",style:{order:-1,width:400,position:"relative"}},i.a.createElement(Ee.a,{className:"ms-geostory-map-editor",header:i.a.createElement("div",{className:"ms-geostory-map-editor-header text-center"},i.a.createElement(tn.Row,null,i.a.createElement(tn.Col,{md:12,className:"text-center",style:{overflow:"hidden",lineHeight:"52px"}},i.a.createElement(j,{glyph:"1-close",className:"pull-left on-close-btn square-button no-border ",tooltipId:"geostory.contentToolbar.closeMapEditing"}),i.a.createElement("div",{className:"mapstore-step-title"},i.a.createElement(tr.default,{msgId:"geostory.mapEditor.configureMapOptions"})))),i.a.createElement(Nr.a,{transitionProps:!1,btnGroupProps:{className:"ms-geostory-map-editor-toolbar"},btnDefaultProps:{className:"square-button-md no-border",bsStyle:"primary",noTooltipWhenDisabled:!0},buttons:y}))},!!b&&[i.a.createElement(cs,{map:s,editNode:b}),i.a.createElement(ds,{closeNodeEditor:v,editNode:b,map:s,onChange:u})]||[i.a.createElement(ps,{map:s,onChange:u,onChangeMap:p,selectedNodes:m,onSelect:h})])):null}));function hs(){return(hs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xs={image:Object(Ae.branch)((function(e){return e.resourceId}),Object(Ae.compose)(Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}}))),Object(Ae.withProps)((function(e){var t=e.resources,n=e.resourceId;return(uo()(t,{id:n})||{}).data}))),Object(Fe.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.sectionType;return!n&&r!==d.h.TITLE&&r!==d.h.IMMERSIVE}),(function(){return{glyph:"picture"}})))(bs(en)),map:Object(Ae.compose)(Object(Ae.branch)((function(e){return e.resourceId}),La),vs.a,Va,qa)(bs(Fn)),video:Object(Ae.branch)((function(e){return e.resourceId}),Object(Ae.compose)(Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}}))),Object(Ae.withProps)((function(e){var t=e.resources,n=e.resourceId,r=e.autoplay,o=(uo()(t,{id:n})||{}).data||{},i=o.autoplay;return Os(Os({},Ss(o,["autoplay"])),{},{autoplay:void 0!==r?r:i})}))),Object(Fe.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.sectionType;return!n&&r!==d.h.TITLE&&r!==d.h.IMMERSIVE}),(function(){return{glyph:"play"}})))(bs(zn.a))},Es=function(e){var t=e.type,n=Ss(e,["type"]),r=xs[t];return r?i.a.createElement(r,ws({type:t},n)):null};function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var As=Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}})))((function(e){var t=e.resources,n=Ms(e,["resources"]);if(n.resourceId){var r=(uo()(t,{id:n.resourceId})||{}).data||{};return i.a.createElement(Ro,Cs({},r,n))}return i.a.createElement(Ro,n)}));function ks(){return(ks=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ts=function(e){var t=e.story,n=e.mode,r=void 0===n?d.f.VIEW:n,a=e.onAdd,s=e.messages,l=e.fontFamilies,c=void 0===l?[]:l,f=e.storyFonts,h=void 0===f?[]:f,m=e.webFont,g=void 0===m?u.a:m,y=e.onUpdate,b=void 0===y?function(){}:y,v=e.onBasicError,w=void 0===v?function(){}:v,j=e.onUpdateMediaEditorSetting,O=e.mediaEditorSettings,_=Ds(e,["story","mode","onAdd","messages","fontFamilies","storyFonts","webFont","onUpdate","onBasicError","onUpdateMediaEditorSetting","mediaEditorSettings"]),S=Object(o.useCallback)((function(e){return Object(p.f)(s,e)}),[s]),x=function(e,t,n){return a(e,t,n,S)};return Object(o.useEffect)((function(){window.__geostory_interaction=function(e,t){"scrollTo"===e&&Object(d.z)(t,{behavior:"smooth"})}}),[]),Object(o.useEffect)((function(){b("settings.theme.fontFamilies",c,"merge"),O&&j(O)}),[]),Object(o.useEffect)((function(){h.length>0&&(h.filter((function(e){var t=e.src;return t&&!document.head.querySelector("link[href='".concat(t,"']"))})).length>0&&g.load(Object(d.l)(h,(function(){}),(function(){return w({message:"geostory.builder.settings.webFontLoadError"})}))))}),[h]),i.a.createElement(Ee.a,{className:"ms-geostory",columns:[i.a.createElement(fs,ks({},_,{add:x,update:b,mode:r}))]},i.a.createElement(Sa,ks({},t,_,{storyFonts:Object(d.m)(h),add:x,update:b,mode:r,mediaViewer:Es,contentToolbar:As})))};Ts.defaultProps={storyFonts:[],fontFamilies:[],onUpdateMediaEditorSetting:function(){}};t.default=Object(c.d)("GeoStory",{component:Object(a.connect)(Object(s.c)({mode:V.p,story:V.e,messages:Se.c,focusedContent:V.g,isContentFocused:V.k,theme:function(e){var t;return(null===(t=Object(V.x)(e))||void 0===t?void 0:t.theme)||{}},storyFonts:V.d}),{onAdd:h.D,onUpdate:h.bb,updateCurrentPage:h.cb,onUpdateSetting:h.eb,remove:h.M,editMedia:m.s,editWebPage:h.G,onBasicError:f.a,onUpdateMediaEditorSetting:h.db})(Ts),reducers:{geostory:xe.a},epics:r})},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.locale&&e.locale.current||"en-US"},a=function(e){return e.locale&&e.locale.messages||{}},s=Object(r.a)([i],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},i=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return D})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return N})),n.d(t,"normalizePoint",(function(){return R})),n.d(t,"reproject",(function(){return z})),n.d(t,"reprojectExtent",(function(){return U})),n.d(t,"getPolygonFromExtent",(function(){return H})),n.d(t,"getExtentFromNormalized",(function(){return K})),n.d(t,"crsCodeTable",(function(){return W})),n.d(t,"setCrsLabels",(function(){return V})),n.d(t,"getUnits",(function(){return G})),n.d(t,"getProjectedBBox",(function(){return q})),n.d(t,"createBBox",(function(){return Y})),n.d(t,"reprojectGeoJson",(function(){return Q})),n.d(t,"lineIntersectPolygon",(function(){return Z})),n.d(t,"normalizeLng",(function(){return J})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ie})),n.d(t,"filterCRSList",(function(){return ae})),n.d(t,"calculateAzimuth",(function(){return se})),n.d(t,"calculateDistance",(function(){return le})),n.d(t,"extendExtent",(function(){return ue})),n.d(t,"getGeoJSONExtent",(function(){return ce})),n.d(t,"isValidExtent",(function(){return de})),n.d(t,"calculateCircleCoordinates",(function(){return pe})),n.d(t,"transformLineToArcs",(function(){return fe})),n.d(t,"transformArcsToLine",(function(){return he})),n.d(t,"coordsOLtoLeaflet",(function(){return me})),n.d(t,"mergeToPolyGeom",(function(){return ge})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return be})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return we})),n.d(t,"parseString",(function(){return je})),n.d(t,"getWMSBoundingBox",(function(){return Oe})),n.d(t,"isSRSAllowed",(function(){return _e})),n.d(t,"getNormalizedLatLon",(function(){return Se})),n.d(t,"isInsideVisibleArea",(function(){return xe})),n.d(t,"centerToVisibleArea",(function(){return Ee})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return Ce})),n.d(t,"roundCoord",(function(){return Me})),n.d(t,"midpoint",(function(){return Ae})),n.d(t,"pointObjectToArray",(function(){return ke})),n.d(t,"isPointInsideExtent",(function(){return De})),n.d(t,"isBboxCompatible",(function(){return Te})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return Ie})),n.d(t,"makeBboxFromOWS",(function(){return Ne}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/proj4.js"),a=n.n(i),s=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(s),u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./node_modules/@turf/line-intersect/index.js"),f=n.n(p),h=n("./node_modules/@turf/polygon-to-linestring/index.js"),m=n.n(h),g=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),b=n.n(y),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),w=n("./node_modules/@turf/boolean-overlap/main.es.js"),j=n("./node_modules/@turf/boolean-contains/main.es.js");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return T(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function I(e,t,n){if(null===e)return e;var r=Object(d.cloneDeep)(e);return"Feature"===e.type?r.geometry=I(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return I(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return I(e,t,n)})):t&&t(r),n&&n(r),r}function N(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var L={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},R=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},F=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},z=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=n&&a.a.defs(n)?new a.a.Proj(n):null;if(o&&i){var s=Object(d.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),l=c()({},t===n?F(s):a.a.transform(o,i,F(s)),{srs:n});return r?R(l):l}return null},B=["EPSG:900913","EPSG:4326","EPSG:3857"],U=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[z([e[0],e[1]],"EPSG:4326",t),z([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])})):[z([e[0],e[1]],"EPSG:4326",t),z([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])},H=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},K=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[z([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),z([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,i=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=o*a,u=o*s,c=i*a,d=i*s,p=e.x,f=e.y,h=p-l+d,m=p-l-d,g=p+l-d,y=p+l+d,b=f-u-c,v=f-u+c,w=f+u+c,j=f+u-c,O=A.createBBox(Math.min(h,m,g,y),Math.min(b,v,w,j),Math.max(h,m,g,y),Math.max(b,v,w,j));return O},Y=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=N(r)),"string"==typeof o&&(o=N(o));var i=k(r,o);return I(e,(function(e){e.crs&&delete e.crs,e.coordinates=T(e.coordinates,(function(e){var t=E(e,2),n=t[0],r=t[1];return i.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],I(e,(function(e){T(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Z=function(e,t){var n=m()(t).features[0];return 0!==f()(e,n).features.length},J=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in r)if(r.hasOwnProperty(a)){var s=A.reproject(r[a],t,n,o);if(!s)return null;var l=s.x,u=s.y;i.push(l),i.push(u)}return i},$=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,i],[o,i],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?A.getCompatibleSRS(n,t):n},oe=function(e,t){return t[A.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:L[t]||t});return e},ae=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return c()({},-1===t.indexOf(r)?n:_(_({},n),{},S({},r,e[r])))}),{}),i=r.map((function(e){return e.code})),a=Object.keys(n).reduce((function(e,t){return c()({},-1===i.indexOf(t)?e:_(_({},e),{},S({},t,n[t])))}),{});return c()({},o,a)},se=function(e,t,n){var r=A.reproject(e,n,"EPSG:4326"),o=A.reproject(t,n,"EPSG:4326"),i=r.x*Math.PI/180,a=r.y*Math.PI/180,s=o.x*Math.PI/180,l=o.y*Math.PI/180,u=s-i,c=Math.sin(u)*Math.cos(l),d=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,d)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(D).indexOf(t)?D[t](e):0},ue=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},ce=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=A.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return A.getGeoJSONExtent(e.geometry)}return n},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},pe=function(e,t,n,r){var o,i,a,s=Math.PI*(1/n-.5);r&&(s+=r/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(A.transformArcsToLine(Object(d.slice)(e,t))):[]},me=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},ge=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(B.filter((function(e){return e===t})))){var n=K(e,t),r=n.extent,o=n.isIDL,i=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var a=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:r,center:[a=a>180?a-360:a,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var s=[e.minx,e.miny,e.maxx,e.maxy],l=[s[0],s[1]],u=[s[2],s[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:s,center:[(s[0]+s[2])/2,(s[1]+s[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=A.getViewportGeometry(t,n),i=o.extent;if(4===i.length)return A.reprojectBbox(i,n,r);var a=i.map((function(e){return e[2]-e[0]})),s=E(a,2),l=s[0],u=s[1];return l>u?A.reprojectBbox(i[0],n,r):A.reprojectBbox(i[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||P(n),null,{timeout:2e3})},we=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(d.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},je=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},Oe=function(e,t){var n=t||"EPSG:3857",r=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&A.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(d.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},_e=function(e){return!!a.a.defs(e)},Se=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:A.normalizeLng(n)}},xe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=A.getNormalizedLatLon(e),i=z([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=A.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),s=_({left:0,right:0,top:0,bottom:0},n),l={minx:a[0]+s.left*r,miny:a[1]+s.bottom*r,maxx:a[2]-s.right*r,maxy:a[3]-s.top*r},u=A.getViewportGeometry(l,t.projection),c=4===u.extent.length?[x(u.extent)]:x(u.extent);return Object(d.head)(c.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=A.getNormalizedLatLon(e),i=z([o.lng,o.lat],"EPSG:4326",t.projection),a=_({left:0,right:0,top:0,bottom:0},n),s={width:(t.size.width-a.right-a.left)*r,height:(t.size.height-a.top-a.bottom)*r},l={minx:i.x-s.width/2-a.left*r,miny:i.y-s.height/2-a.bottom*r,maxx:i.x+s.width/2+a.right*r,maxy:i.y+s.height/2+a.top*r},u=A.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:z([u.extent[0]+t.size.width/2*r,u.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=z([u.extent[0][2]-t.size.width/2*r,u.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),d=_(_({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:z([u.extent[1][0]+t.size.width/2*r,u.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(d.isArray)(n)?n:[n.x,n.y];if(Object(d.isNumber)(i[0])&&!isNaN(i[0])&&Object(d.isNumber)(i[1])&&!isNaN(i[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(d.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,s=a&&(Object(d.isArray)(a)?a:[a.x,a.y]);return Object(d.isArray)(s)?Math.sqrt((i[0]-s[0])*(i[0]-s[0])+(i[1]-s[1])*(i[1]-s[1])):o}return o},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[n]?Math[n](o):o},Ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[i.x,i.y]:i},ke=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(H(t),b()([e.lng,e.lat]))},Te=function(e,t){return Object(w.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Ie=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=W[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ne=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var i=n.slice(),a=r.slice();n=[a[0],i[1]],r=[i[0],a[1]]}return[n[0],n[1],r[0],r[1]]};A={setCrsLabels:V,getUnits:G,reproject:z,getProjectedBBox:q,createBBox:Y,reprojectGeoJson:Q,lineIntersectPolygon:Z,normalizePoint:R,normalizeLng:J,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:se,calculateDistance:le,FORMULAS:D,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:de,calculateCircleCoordinates:pe,transformLineToArcs:fe,transformArcsToLine:he,coordsOLtoLeaflet:me,mergeToPolyGeom:ge,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:we,determineCrs:N,parseString:je,getWMSBoundingBox:Oe,isSRSAllowed:_e,getNormalizedLatLon:Se,isInsideVisibleArea:xe,centerToVisibleArea:Ee,calculateCircleRadiusFromPixel:Ce,roundCoord:Me,midpoint:Ae,pointObjectToArray:ke,getExtentFromNormalized:K,getPolygonFromExtent:H,isPointInsideExtent:De,isBboxCompatible:Te,extractCrsFromURN:Pe,crsCodeTable:W,makeNumericEPSG:Ie,makeBboxFromOWS:Ne},t.default=A},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},i=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,a=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function s(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function l(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var u={HTML:{getValidResponses:function(e,t){return t?e.filter(s):e},getNoValidResponses:function(e){return e.filter((function(e){return!s(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},C=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var a=n.startDate.toISOString?n.startDate.toISOString():n.startDate,s=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+a+"<"+r+":UpperBoundary><"+r+":Literal>"+s+"")}}else if(n.startDate){var l=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+l+"")}return o},M=function(e,t,n,r){var o;return Object(p.isNil)(n)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},A=function(e,t,n,r){var o;return j(n,t)&&(o="isNull"===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag):"="===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+""):i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>*"+n+"*")),o},k=function(e,t,n,r){var o="";return j(n,t)&&"="===t&&""!==n&&(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},D=function(e,t,n,r){var o;if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=i.ogcComparisonOperators["<="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=i.ogcComparisonOperators[">="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var a=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(a)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+a+""))}return o},T=function(e,t){var n="";switch(e.type){case"date":n=C(e.attribute,e.operator,e.values,t);break;case"number":n=D(e.attribute,e.operator,e.values,t);break;case"string":n=A(e.attribute,e.operator,e.values,t);break;case"boolean":n=k(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+A(e.attribute,o,r,t)}),""),n=i.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(w(o),"')")},I=function(e){return"collectGeometries(".concat(e,")")},N=function(e,t,n){var r,a,s,l,u=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,n):b.processOGCFilterFields(null,e,n))&&u.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var c=i.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return T(e,n)})).join(""));u.push(c)}if(Object(p.isArray)(e.spatialField)?(l=Object(p.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(s=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?l=e.spatialField:s=[e.spatialField]),l){if(Object(p.isArray)(l.geometry&&l.geometry.extent[0])){var d=l.geometry.extent.reduce((function(e,r){var o=Object.assign({},l);return l.geometry.extent=r,e+b.processOGCSpatialFilter(t,o,n)}),"");a=i.ogcLogicalOperators.OR(n,d)}u.push(a)}else if(s&&(s=s.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var f=s.map((function(e){return b.processOGCSpatialFilter(t,e,n)})).join("");a=s.length>1?i.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,f):f,u.push(a)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var h=g(g({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?h.forEach((function(e){return u.push(b.processOGCCrossLayerFilter(e,n))})):u.push(b.processOGCCrossLayerFilter(h,n))}return e.options&&e.options.cqlFilter&&u.push(v(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),u},L=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var u=x(n||"2.0"),c="2.0"===u?"fes":"ogc",d=b.getGetFeatureBase(u,r.pagination,i,a,t&&t.options),p=b.toOGCFilterParts(r,u,c),f="";return p.length>0&&(f="<"+c+":Filter>",1===p.length?f+=p[0]:(f+="<"+c+":And>",p.forEach((function(e){f+=e})),f+=""),f+=""),d+=""),d+=f,s&&(d+=s.map((function(e){return E[c].startTag+e+E[c].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(d+="<"+c+":SortBy><"+c+":SortProperty>"+E[c].startTag+o.sortBy+E[c].endTag+"<"+c+":SortOrder>"+o.sortOrder+""),d+="
"},R=function(e,t,n){var r=b.processOGCFilterFields(e,t,n),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=b.processOGCFilterGroup(e,t,n)})),""!==r?i.ogcLogicalOperators[e.logic](n,r):""},F=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=C(t.attribute,t.operator,t.value,n);break;case"number":r=D(t.attribute,t.operator,t.value,n);break;case"string":r=A(t.attribute,t.operator,t.value,n);break;case"boolean":r=k(t.attribute,t.operator,t.value,n);break;case"list":r=M(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=A(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},z=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},B=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},U=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},H=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},K=function(e,t,n){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=E[n].startTag+t.attribute+E[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](n,a)},W=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=n?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=n&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},V=function(e){return Object(p.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(p.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(p.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},G=function(e,t){var n=t||"ogc",r=E[n].startTag+e.attribute+E[n].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](n,r)},q=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var n=e,r=b.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(r=b.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,u=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&u){var c=u.typeName,d=u.geometryName,p=b.getCrossLayerCqlFilter(a),f=I(P({typeName:c,geometryName:d,cqlFilter:p}));o.push("".concat(s,"(").concat(l,",").concat(f,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},Y=function(e,t){var n="NOR"===e.logic?g(g({},e),{},{logic:"AND",negateAll:!0}):e,r=b.processCQLFilterFields(n,t),o=b.findSubGroups(n,t.groupFields);if(o.length>0){var i=o.map((function(e){return(n.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,i].join(" "+n.logic+" "):i}return r},Q=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=_(e);if(!Object(p.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+w(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+w(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+w(n)+"%'")}return r},$=function(e,t,n){var r="";Object(p.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=_(e);if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var i=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(i)||(r=o+" "+t+" '"+i+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return b.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=b.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,n){var r=b.toOGCFilter(e,t,n),o=r.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=r.search("");r=r.substr(o,i-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,g(g({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(p.isArray)(e.spatialField)&&Object(p.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,u=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(u),logic:e.logic,id:"".concat(e.id,"_").concat(u),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return g(g({},e),{},{groupId:"".concat(e.groupId,"_").concat(u)})}))),spatialField:de(e.spatialField,l),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},fe=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(n=Object(d.reproject)(o,r,t)).x,n.y],l=i&&Object(d.reproject)([i,0],r,t).x;return g(g({},e),{},{spatialField:g(g({},e.spatialField),{},{geometry:g(g({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):g(g({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,i=void 0===r?"2.0":r,s=e.addXmlnsToRoot,u=void 0!==s&&s,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=c()({filterNS:n,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),g=l()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(w.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(w.slice(j))}return w};b={processOGCFilterGroup:R,processOGCFilterFields:F,processOGCCrossLayerFilter:G,getGetFeatureBase:W,toOGCFilterParts:N,findSubGroups:te,toCQLFilter:q,getCrossLayerCqlFilter:V,processCQLFilterGroup:Y,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Z,processCQLFilterFields:re,getCQLGeometryElement:Q,cqlStringField:X,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:L,reprojectFilterInNativeCrs:fe,processOGCSpatialFilter:K,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return M})),n.d(t,"h",(function(){return A})),n.d(t,"a",(function(){return k})),n.d(t,"g",(function(){return D})),n.d(t,"i",(function(){return T})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return I})),n.d(t,"j",(function(){return L})),n.d(t,"c",(function(){return R}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=n("./node_modules/turf-point-on-surface/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),u=n.n(l),c=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),p=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),f=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=n.n(f),m=n("./MapStore2/web/client/utils/mapinfo/wms.js"),g=n.n(m),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=n.n(y),v=n("./MapStore2/web/client/utils/mapinfo/vector.js"),w=n.n(v);function j(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],r);return[].concat(j(n),j(s))}return j(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var i;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(i=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(i=r.queryParams.outputFormat);var a=(o.c[r.format||o.b[i]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(j(n),j(a))}return j(n)}),[])}}},P=function(){var e;return x(e={},o.a.PROPERTIES,c.a),x(e,o.a.JSON,c.a),x(e,o.a.HTML,d.a),x(e,o.a.TEXT,p.a),e},I=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},N={wfs:h.a,wms:g.a,wmts:b.a,vector:w.a},L=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},R=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var i=e[n];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:E,getDefaultInfoFormatValue:M,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:u.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:N,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&S({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),n.d(t,"METERS_PER_UNIT",(function(){return v})),n.d(t,"GOOGLE_MERCATOR",(function(){return w})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return O})),n.d(t,"RESOLUTIONS_HOOK",(function(){return _})),n.d(t,"RESOLUTION_HOOK",(function(){return S})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return E})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return C})),n.d(t,"registerHook",(function(){return A})),n.d(t,"getHook",(function(){return k})),n.d(t,"executeHook",(function(){return D})),n.d(t,"clearHooks",(function(){return T})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return I})),n.d(t,"getSphericalMercatorScale",(function(){return N})),n.d(t,"getGoogleMercatorScale",(function(){return L})),n.d(t,"getSphericalMercatorScales",(function(){return R})),n.d(t,"getGoogleMercatorScales",(function(){return F})),n.d(t,"getResolutionsForScales",(function(){return z})),n.d(t,"getGoogleMercatorResolutions",(function(){return B})),n.d(t,"getResolutions",(function(){return U})),n.d(t,"getScales",(function(){return H})),n.d(t,"defaultGetZoomForExtent",(function(){return K})),n.d(t,"getZoomForExtent",(function(){return W})),n.d(t,"getCurrentResolution",(function(){return V})),n.d(t,"getCenterForExtent",(function(){return G})),n.d(t,"getBbox",(function(){return q})),n.d(t,"isNearlyEqual",(function(){return Y})),n.d(t,"mapUpdated",(function(){return Q})),n.d(t,"transformExtent",(function(){return Z})),n.d(t,"groupSaveFormatted",(function(){return J})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ie})),n.d(t,"prepareMapObjectToCompare",(function(){return ae})),n.d(t,"updateObjectFieldKey",(function(){return se})),n.d(t,"compareMapChanges",(function(){return le})),n.d(t,"createRegisterHooks",(function(){return ue}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),u=n("./node_modules/object-assign/index.js"),c=n.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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,r))}function W(e,t,n,r,o){return k("EXTENT_TO_ZOOM_HOOK")?k("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):K(e,t,n,r,o,k("RESOLUTIONS_HOOK")?k("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||b)):null)}function V(e,t,n,r){return k("RESOLUTION_HOOK")?k("RESOLUTION_HOOK")(e,t,n,r):B(t,n,r)[e]}function G(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function q(e,t){return D("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var Y=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Q(e,t){var n,o,i,a;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(Y(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&Y(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Z(e,t,n,r){var o=Object(a.getUnits)(e);return"ft"===o?{width:n/v.ft,height:r/v.ft}:"us-ft"===o?{width:n/v["us-ft"],height:r/v["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,i,a,u){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},p=t.map((function(e){return Object(l.saveLayer)(e)})),f=n.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(n,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(l.extractSourcesFromLayers)(p),y=p.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?g(g({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(s.e)("features",v,y[b])}return g({version:2,map:c()({},d,{layers:y,groups:f,backgrounds:h,text_search_config:i,bookmark_search_config:a},!Object(r.isEmpty)(m)&&{sources:m}||{})},u)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=g(g({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return g(g({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return g(g({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return g(g({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return g(g({},e),{},{id:n[e.id],layer:g(g({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(f(Object(r.get)(e,"map.backgrounds",[])),f(Object(r.get)(o,"map.backgrounds",[]))),a=n(Object(r.get)(e,"map.layers",[])),s=n(Object(r.get)(o,"map.layers",[])),l=Object(r.find)(a,(function(e){return"annotations"===e.id})),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),c=[].concat(f(s.filter((function(e){return"annotations"!==e.id}))),f(a.filter((function(e){return"annotations"!==e.id}))),f(l||u?[g(g(g({},l||{}),u||{}),{},{features:[].concat(f(Object(r.get)(l,"features",[])),f(Object(r.get)(u,"features",[])))})]:[])),d=c.filter((function(e){return"background"===e.group})),p=Object(r.findIndex)(d,(function(e){return e.visibility})),h=Object(r.get)(e,"map.sources",{}),m=Object(r.get)(o,"map.sources",{}),b=g(g({},h),m),v=Object(r.get)(e,"widgetsConfig",{}),w=Object(r.get)(o,"widgetsConfig",{});return g(g(g({},o),e),{},{catalogServices:g(g({},Object(r.get)(e,"catalogServices",{})),{},{services:g(g({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:g(g(g({},o.map),e.map),{},{backgrounds:i,groups:Object(r.uniqWith)([].concat(f(Object(r.get)(e,"map.groups",[])),f(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(f(d.slice(0,p+1)),f(d.slice(p+1).map((function(e){return g(g({},e),{},{visibility:!1})}))),f(c.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:g(g({},v.collapsed),w.collapsed),layouts:Object(r.uniq)([].concat(f(Object(r.keys)(v.layouts)),f(Object(r.keys)(w.layouts)))).reduce((function(e,t){return g(g({},e),{},y({},t,[].concat(f(Object(r.get)(v,"layouts.".concat(t),[])),f(Object(r.get)(w,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(f(Object(r.get)(v,"widgets",[])),f(Object(r.get)(w,"widgets",[])))},timelineData:g(g({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:g(g({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),a=Object(r.find)(n,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(f(o.map((function(e){var t=e.id,n=p(e,["id"]);return g({id:"".concat(s.id,".").concat(t)},n)}))),[s]):o;return g(g({},e),{},{map:g(g({},e.map),{},{groups:l,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return g(g({},p(e,["group"])),{},{group:!a||"background"===n||"Default"!==n&&n?a&&(null===(t=Object(r.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:s.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},ae=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],i=d(o);"object"!==i||null===o||r(n)?"undefined"!==i&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},se=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),i=Object(r.pick)(Object(r.cloneDeep)(t),n);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(r.isEqual)(o,i)},ue=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:ue,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:_,RESOLUTION_HOOK:S,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:E,GET_COORDINATES_FROM_PIXEL_HOOK:C,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:O,registerHook:A,getHook:k,dpi2dpm:P,getSphericalMercatorScales:R,getSphericalMercatorScale:N,getGoogleMercatorScales:F,getGoogleMercatorResolutions:B,getGoogleMercatorScale:L,getResolutionsForScales:z,getZoomForExtent:W,defaultGetZoomForExtent:K,getCenterForExtent:G,getResolutions:U,getScales:H,getBbox:q,mapUpdated:Q,getCurrentResolution:V,transformExtent:Z,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:T}},"./MapStore2/web/client/utils/MediaEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}},"./MapStore2/web/client/utils/NotificationUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("./MapStore2/web/client/actions/notifications.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"notification.warning":t,o=e.autoDismiss,i=void 0===o?6:o,a=e.position,s=void 0===a?"tc":a,l=e.message,u=void 0===l?"Error":l;return Object(r.f)({title:n,autoDismiss:i,position:s,message:u})},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"notification.success":t,o=e.autoDismiss,i=void 0===o?6:o,a=e.position,s=void 0===a?"tc":a,l=e.message,u=void 0===l?"Success":l;return Object(r.j)({title:n,autoDismiss:i,position:s,message:u})}},"./MapStore2/web/client/utils/ObservableUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/xml2js/lib/xml2js.js"),s=n("./node_modules/xml2js/lib/processors.js"),l=n("./MapStore2/web/client/api/GeoStoreDAO.js");function u(e){return(u="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 c(e,t){return!t||"object"!==u(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 d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function p(e,t,n){return(p=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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&&h(e,t)}(o,e);var t,n,r=(t=o,n=f(),function(){var e,r=m(t);if(n){var o=m(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this,e)).name="OGCError",n.code=t,n}return o}(d(Error)),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[s.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o.a.Observable.bindNodeCallback((function(e,n){return Object(a.parseString)(e,t,n)}))(e)},b=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o.a.Observable.bindNodeCallback((function(e,t){return Object(a.parseString)(e,{tagNameProcessors:[s.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=Object(i.get)(e,"ExceptionReport.Exception.ExceptionText");throw new g(t||"Undefined OGC Service Error",Object(i.get)(e,"ExceptionReport.Exception.exceptionCode"))})):o.a.Observable.of(e)}))},v=function(e,t){return e?l.a.deleteResource(e,t).then((function(e){return{data:e.data,resType:"success",error:null}})).catch((function(e){return{error:e,resType:"error"}})):o.a.Observable.of({resType:"success"})}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),i=n("./MapStore2/web/client/utils/LocaleUtils.js"),a=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var i=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,a=i||t.name||"";return a;case"description":var s=t.description||"";return s;case"both":var l=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,u=l||t.nam||"",c=t.description||"";return"".concat(u).concat(o&&c?o:"").concat(c);default:return t[e]}},l=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return s(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(i=i&&i.substring(0,o.maxLength)).length===o.maxLength&&(i+="..."),{title:s("title",t,n,o.separator),tooltipText:i}},u=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(i.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return i})),n.d(t,"getCleanTemplate",(function(){return a})),n.d(t,"parseCustomTemplate",(function(){return s})),n.d(t,"generateTemplateString",(function(){return l})),n.d(t,"parseTemplate",(function(){return u}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,i)},a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(n),u=l&&l.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,n,r,a)?n:s(e)}}))||null;return u&&u.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},l=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),u=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},c={generateTemplateString:l,parseTemplate:u,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=c},"./MapStore2/web/client/utils/URLUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/query-string/index.js"),s=n.n(a);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var n=e?e.split("&").filter((function(e){return!!e})):[],r=t?t.split("&").filter((function(e){return!!e})):[];return Object(i.isEqual)(Object(i.sortBy)(n),Object(i.sortBy)(r))}(a.query,s.query);return d&&f&&p&&h&&m},p=function(e){return s.a.parse(e)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,n=new RegExp(t);return n.test(e)},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/,r=new RegExp(n),o=r.test(e);if(!o)return!1;if(o&&!t)return!0;if(o&&t){var a=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return Object(i.find)(a,e)})).length}return!1}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return s}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(a)&&Object(r.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,n];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return c})),n.d(t,"toDescribeURL",(function(){return d})),n.d(t,"extractGeometryType",(function(){return p})),n.d(t,"extractGeometryAttributeName",(function(){return f}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||r.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},p=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return u})),n.d(t,"getMatrixIds",(function(){return c})),n.d(t,"limitMatrix",(function(){return d})),n.d(t,"getTileMatrixSet",(function(){return p})),n.d(t,"getRequestEncoding",(function(){return f})),n.d(t,"getOperations",(function(){return h})),n.d(t,"getOperation",(function(){return m})),n.d(t,"getGetTileURL",(function(){return g})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return b})),n.d(t,"getDefaultFormat",(function(){return v})),n.d(t,"sortTileMatrix",(function(){return w})),n.d(t,"getTileMatrix",(function(){return j}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[n]||t}),a):a},f=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,n){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(i.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},w=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var n,r,o=p(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&c(e.matrixIds,o||t),s=w(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(n=(r=s.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};r={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,a=t.currentLocale,s=t.params,d=t.maxItems,p=void 0===d?10:d,f=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:g(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(r.projection)||"EPSG:4326",feature_count:p},y({params:s})),e),metadata:{title:c(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:f,featureInfo:h},url:u(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,i=r(n,["point"]),a=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return f(e.url,e.name).then((function(n){var r=m(n),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:a}},params:y({},e.baseParams,e.params,i)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,i=void 0===r?{}:r,s=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,w=void 0===v?10:v,j=t.env,O=arguments.length>2?arguments[2]:void 0,_=arguments.length>3?arguments[3]:void 0,S=arguments.length>4?arguments[4]:void 0,x=n&&n.height||101,E=n&&n.width||101,C=[x,E],M=0,A=a(Math.ceil(i.zoom),0,21,96),k=s.latlng.lng,D=k-360*Math.floor(k/360+.5),T={x:D,y:s.latlng.lat},P=l(T,"EPSG:4326",i.projection),I=u(P,A,M,C,null),N=e.name;e.queryLayers&&(N=e.queryLayers.join(","));var L=h(j),R=f({layerFilter:e.layerFilter,filterObj:e.filterObj,params:g({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:N,styles:e.style,x:E%2==1?Math.ceil(E/2):E/2,y:E%2==1?Math.ceil(E/2):E/2,height:x,width:E,srs:c(i.projection)||"EPSG:4326",bbox:I.minx+","+I.miny+","+I.maxx+","+I.maxy,feature_count:w,info_format:O,ENV:L},g({},R)),e),metadata:{title:p(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:S},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},u={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},p=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},f=function(e,t){var n,r,o=t.length;for(n=0;n0&&d[t[t.length-1].type]<=p;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var f=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":s.pop();var d=e(),p=e();return{property:e(),lowerBoundary:p,upperBoundary:d,type:u.BETWEEN};case"COMPARISON":var f=e();return{property:e(),value:f,type:u[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:u[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),g=e(),y=e(),b=e(),v=e();return{type:r,property:v,value:[b,y,g,m]};case"INTERSECTS":var w=e(),j=e();return{type:n,property:j,value:w};case"WITHIN":var O=e(),_=e();return{type:a,property:_,value:O};case"CONTAINS":var S=e(),x=e();return{type:o,property:x,value:S};case"DWITHIN":var E=e(),C=e(),M=e();return{type:i,value:C,property:M,distance:Number(E)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var h="Remaining tokens after building AST: \n",m=s.length-1;m>=0;m--)h+=s[m].type+": "+s[m].text+"\n";throw new Error(h)}return f};e.exports={read:function(e){return h(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=f(r,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,u=o.propertyName,c=o.valueReference,d=o.distance,p=o.lower,f=o.upper,h=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,g=h.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",w=function(e){return y(v,e)},j=function(e){return"object"===r(e)&&Date,l(n,e)},O=0===b.indexOf("2.")?c:u;return{filter:m.bind(null,n),fidFilter:g.bind(null,n),and:i.and.bind(null,n),or:i.or.bind(null,n),not:i.not.bind(null,n),property:function(e){return{equalTo:function(t){return s.equal(n,O(n,e),j(t))},greaterThen:function(t){return s.greater(n,O(n,e),j(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(n,O(n,e),j(t))},lessThen:function(t){return s.less(n,O(n,e),j(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(n,O(n,e),j(t))},notEqualTo:function(t){return s.notEqual(n,O(n,e),j(t))},between:function(t,r){return s.between(n,O(n,e),p(n,j(t)),f(n,j(r)))},like:function(t,r){return s.like(n,O(n,e),j(t),r)},ilike:function(t,r){return s.ilike(n,O(n,e),j(t),r)},isNull:function(){return s.isNull(n,O(n,e))},intersects:function(t){return a.intersects(n,O(n,e),w(t))},within:function(t){return a.within(n,O(n,e),w(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(n,O(n,e),w(t),d(n,r,o))},contains:function(t){return a.contains(n,O(n,e),w(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,i=n.filters,c=void 0===i?[]:i,d=n.value,p=n.property,f=n.lowerBoundary,h=n.upperBoundary;return a(l,o)?t[o].apply(t,r(c.map(e(t)))):t.property(p)[u[o]](s(d)?f:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},a={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.AND,[t].concat(o)):i(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.OR,[t].concat(o)):i(e,r.OR,t)},not:function(e,t){return i(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.NOR,[t].concat(o)):i(e,r.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},a=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},s=function(e,t,n){var a=o(n),s="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),r=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+n.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,n){var r=o(n),i="':">";var a=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return i+=(r?"":"")+a.join(" ")+(r?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=a(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=a(t,r,e),n+="")})),n+="";break;case"LineString":n+=l(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=l(t,r,e),n+="")})),n+="";break;case"Polygon":n+=s(t.coordinates,r,e);break;case"MultiPolygon":var u="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,i=r.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},u=function(e){return i(e,"featureTypes[0].properties")},c=function(e,t){return o((u(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},p=function(e){return 0===e.type.indexOf("gml:")},f=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return f(p(r)?t:n[r.name],r)};e.exports={schemaLocation:d,isGeometryType:p,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=p(c(t,n));return o?e?s(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((u(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:u,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return u(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,n){return f(e,c(t,n))},isValidValue:f}},"./node_modules/@icons/material/CheckIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/babel-runtime/core-js/json/stringify.js":function(e,t,n){e.exports={default:n("./node_modules/core-js/library/fn/json/stringify.js"),__esModule:!0}},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o .rw-input {\n width: 100%;\n border: none;\n outline: none;\n}\n.rw-filter-input > span {\n margin-top: -2px;\n}\n.rw-i.rw-loading {\n background: url("+n("./node_modules/react-widgets/lib/img/loading.gif")+") no-repeat center;\n width: 16px;\n height: 100%;\n}\n.rw-i.rw-loading:before {\n content: \"\";\n}\n.rw-loading-mask {\n border-radius: 4px;\n position: relative;\n}\n.rw-loading-mask:after {\n content: '';\n background: url("+n("./node_modules/react-widgets/lib/img/loader-big.gif")+') no-repeat center;\n position: absolute;\n background-color: #fff;\n opacity: 0.7;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n.rw-now {\n font-weight: 600;\n}\n.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\n.rw-state-selected {\n background-color: #adadad;\n border: #adadad 1px solid;\n color: #333;\n}\n.rw-state-disabled {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n opacity: 1;\n}\n.rw-btn,\n.rw-dropdownlist {\n cursor: pointer;\n}\n.rw-btn[disabled],\n.rw-state-disabled .rw-btn,\n.rw-state-readonly .rw-btn {\n -webkit-box-shadow: none;\n box-shadow: none;\n pointer-events: none;\n cursor: not-allowed;\n filter: alpha(opacity=65);\n opacity: .65;\n}\nul.rw-list,\n.rw-selectlist {\n margin: 0;\n padding-left: 0;\n list-style: none;\n padding: 5px 0;\n overflow: auto;\n outline: 0;\n height: 100%;\n}\nul.rw-list > li,\n.rw-selectlist > li {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\nul.rw-list > li.rw-list-optgroup,\n.rw-selectlist > li.rw-list-optgroup {\n font-weight: bold;\n}\nul.rw-list > li.rw-list-option,\nul.rw-list > li.rw-list-empty,\n.rw-selectlist > li.rw-list-option,\n.rw-selectlist > li.rw-list-empty {\n padding-left: 10px;\n padding-right: 10px;\n}\nul.rw-list > li.rw-list-option,\n.rw-selectlist > li.rw-list-option {\n cursor: pointer;\n border: 1px solid transparent;\n border-radius: 3px;\n}\nul.rw-list > li.rw-list-option:hover,\n.rw-selectlist > li.rw-list-option:hover {\n background-color: #e6e6e6;\n border-color: #adadad;\n}\nul.rw-list > li.rw-list-option.rw-state-focus,\n.rw-selectlist > li.rw-list-option.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\nul.rw-list > li.rw-list-option.rw-state-selected,\n.rw-selectlist > li.rw-list-option.rw-state-selected {\n background-color: #adadad;\n border: #adadad 1px solid;\n color: #333;\n}\nul.rw-list > li.rw-list-option.rw-state-disabled,\nul.rw-list > li.rw-list-option.rw-state-readonly,\n.rw-selectlist > li.rw-list-option.rw-state-disabled,\n.rw-selectlist > li.rw-list-option.rw-state-readonly {\n color: #777777;\n cursor: not-allowed;\n}\nul.rw-list > li.rw-list-option.rw-state-disabled:hover,\nul.rw-list > li.rw-list-option.rw-state-readonly:hover,\n.rw-selectlist > li.rw-list-option.rw-state-disabled:hover,\n.rw-selectlist > li.rw-list-option.rw-state-readonly:hover {\n background: none;\n border-color: transparent;\n}\nul.rw-list.rw-list-grouped > li.rw-list-optgroup,\n.rw-selectlist.rw-list-grouped > li.rw-list-optgroup {\n padding-left: 10px;\n}\nul.rw-list.rw-list-grouped > li.rw-list-option,\n.rw-selectlist.rw-list-grouped > li.rw-list-option {\n padding-left: 20px;\n}\n.rw-widget {\n position: relative;\n}\n.rw-open.rw-widget,\n.rw-open > .rw-multiselect-wrapper {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.rw-open-up.rw-widget,\n.rw-open-up > .rw-multiselect-wrapper {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.rw-combobox .rw-list,\n.rw-datetimepicker .rw-list,\n.rw-numberpicker .rw-list,\n.rw-dropdownlist .rw-list,\n.rw-multiselect .rw-list {\n max-height: 200px;\n height: auto;\n}\n.rw-widget {\n background-color: #fff;\n border: #ccc 1px solid;\n border-radius: 4px;\n}\n.rw-widget .rw-input {\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.rw-rtl .rw-widget .rw-input {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.rw-widget > .rw-select {\n border-left: #ccc 1px solid;\n}\n.rw-widget.rw-rtl > .rw-select {\n border-right: #ccc 1px solid;\n border-left: none;\n}\n.rw-widget.rw-state-focus,\n.rw-widget.rw-state-focus:hover {\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n border-color: #66afe9;\n outline: 0;\n}\n.rw-widget.rw-state-readonly,\n.rw-widget.rw-state-readonly > .rw-multiselect-wrapper {\n cursor: not-allowed;\n}\n.rw-widget.rw-state-disabled,\n.rw-widget.rw-state-disabled:hover,\n.rw-widget.rw-state-disabled:active {\n -webkit-box-shadow: none;\n box-shadow: none;\n background-color: #eeeeee;\n border-color: #ccc;\n}\n.rw-combobox,\n.rw-datetimepicker,\n.rw-numberpicker,\n.rw-dropdownlist {\n padding-right: 1.9em;\n}\n.rw-combobox.rw-rtl,\n.rw-datetimepicker.rw-rtl,\n.rw-numberpicker.rw-rtl,\n.rw-dropdownlist.rw-rtl {\n padding-right: 0;\n padding-left: 1.9em;\n}\n.rw-combobox > .rw-input,\n.rw-datetimepicker > .rw-input,\n.rw-numberpicker > .rw-input,\n.rw-dropdownlist > .rw-input {\n width: 100%;\n border: none;\n outline: 0;\n}\n.rw-combobox > .rw-input::-moz-placeholder,\n.rw-datetimepicker > .rw-input::-moz-placeholder,\n.rw-numberpicker > .rw-input::-moz-placeholder,\n.rw-dropdownlist > .rw-input::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.rw-combobox > .rw-input:-ms-input-placeholder,\n.rw-datetimepicker > .rw-input:-ms-input-placeholder,\n.rw-numberpicker > .rw-input:-ms-input-placeholder,\n.rw-dropdownlist > .rw-input:-ms-input-placeholder {\n color: #999;\n}\n.rw-combobox > .rw-input::-webkit-input-placeholder,\n.rw-datetimepicker > .rw-input::-webkit-input-placeholder,\n.rw-numberpicker > .rw-input::-webkit-input-placeholder,\n.rw-dropdownlist > .rw-input::-webkit-input-placeholder {\n color: #999;\n}\n.rw-placeholder {\n color: #999;\n}\n.rw-select {\n position: absolute;\n width: 1.9em;\n height: 100%;\n right: 0;\n top: 0;\n}\n.rw-select.rw-btn,\n.rw-select > .rw-btn {\n height: 100%;\n vertical-align: middle;\n outline: 0;\n}\n.rw-rtl .rw-select {\n left: 0;\n right: auto;\n}\n.rw-multiselect,\n.rw-combobox input.rw-input,\n.rw-datetimepicker input.rw-input,\n.rw-numberpicker input.rw-input {\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.rw-combobox:active,\n.rw-datetimepicker:active,\n.rw-dropdownlist:active,\n.rw-header > .rw-btn:active,\n.rw-numberpicker .rw-btn.rw-state-active,\n.rw-combobox:active.rw-state-focus,\n.rw-datetimepicker:active.rw-state-focus,\n.rw-dropdownlist:active.rw-state-focus,\n.rw-header > .rw-btn:active.rw-state-focus,\n.rw-numberpicker .rw-btn.rw-state-active.rw-state-focus {\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.rw-combobox:hover,\n.rw-datetimepicker:hover,\n.rw-numberpicker:hover,\n.rw-dropdownlist:hover {\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.rw-dropdownlist.rw-state-disabled,\n.rw-dropdownlist.rw-state-readonly {\n cursor: not-allowed;\n}\n.rw-dropdownlist > .rw-input {\n line-height: 2.286em;\n background-color: transparent;\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rw-dropdownlist.rw-rtl > .rw-input {\n padding: 0.429em 0.857em;\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.rw-dropdownlist > .rw-select,\n.rw-dropdownlist.rw-rtl > .rw-select {\n border-width: 0;\n}\n.rw-numberpicker .rw-btn {\n display: block;\n height: 1.143em;\n line-height: 1.143em;\n width: 100%;\n border-width: 0;\n}\n.rw-popup {\n position: absolute;\n -webkit-box-shadow: 0 5px 6px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 6px rgba(0, 0, 0, 0.2);\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n border: #ccc 1px solid;\n background: #fff;\n padding: 2px;\n overflow: auto;\n margin-bottom: 10px;\n left: 10px;\n right: 10px;\n}\n.rw-dropup > .rw-popup {\n margin-bottom: 0;\n margin-top: 10px;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);\n}\n.rw-popup-container {\n position: absolute;\n top: 100%;\n margin-top: 1px;\n z-index: 1005;\n left: -11px;\n right: -11px;\n}\n.rw-widget.rw-state-focus .rw-popup-container {\n z-index: 1015;\n}\n.rw-popup-container.rw-dropup {\n top: auto;\n bottom: 100%;\n}\n.rw-popup-container.rw-calendar-popup {\n right: auto;\n width: 18em;\n}\n.rw-datetimepicker .rw-btn {\n width: 1.8em;\n}\n.rw-datetimepicker.rw-has-neither {\n padding-left: 0;\n padding-right: 0;\n}\n.rw-datetimepicker.rw-has-neither .rw-input {\n border-radius: 4px;\n}\n.rw-datetimepicker.rw-has-both {\n padding-right: 3.8em;\n}\n.rw-datetimepicker.rw-has-both.rw-rtl {\n padding-right: 0;\n padding-left: 3.8em;\n}\n.rw-datetimepicker.rw-has-both > .rw-select {\n width: 3.8em;\n height: 100%;\n}\n.rw-calendar {\n background-color: #fff;\n}\n.rw-calendar thead > tr {\n border-bottom: 2px solid #ccc;\n}\n.rw-calendar .rw-header {\n padding-bottom: 5px;\n}\n.rw-calendar .rw-header .rw-btn-left,\n.rw-calendar .rw-header .rw-btn-right {\n width: 12.5%;\n}\n.rw-calendar .rw-header .rw-btn-view {\n width: 75%;\n background-color: #eeeeee;\n border-radius: 4px;\n}\n.rw-calendar .rw-header .rw-btn-view[disabled] {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n}\n.rw-calendar .rw-footer {\n border-top: 1px solid #ccc;\n}\n.rw-calendar .rw-footer .rw-btn {\n width: 100%;\n white-space: normal;\n}\n.rw-calendar .rw-footer .rw-btn:hover {\n background-color: #e6e6e6;\n}\n.rw-calendar .rw-footer .rw-btn[disabled] {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n}\n.rw-calendar-grid {\n outline: none;\n height: 14.28571429em;\n table-layout: fixed;\n width: 100%;\n}\n.rw-calendar-grid th {\n text-align: right;\n padding: 0 .4em 0 .1em;\n}\n.rw-calendar-grid .rw-btn {\n width: 100%;\n text-align: right;\n}\n.rw-calendar-grid td .rw-btn {\n border-radius: 4px;\n padding: 0 .4em 0 .1em;\n outline: 0;\n}\n.rw-calendar-grid td .rw-btn:hover {\n background-color: #e6e6e6;\n}\n.rw-calendar-grid td .rw-btn.rw-off-range {\n color: #b3b3b3;\n}\n.rw-calendar-grid.rw-nav-view .rw-btn {\n padding: .25em 0 .3em;\n display: block;\n overflow: hidden;\n text-align: center;\n white-space: normal;\n}\n.rw-selectlist {\n padding: 2px;\n}\n.rw-selectlist > ul {\n height: 100%;\n overflow: auto;\n}\n.rw-selectlist > ul > li.rw-list-option {\n position: relative;\n min-height: 27px;\n cursor: auto;\n outline: none;\n padding-left: 5px;\n}\n.rw-selectlist > ul > li.rw-list-option > label > input {\n position: absolute;\n margin: 4px 0 0 -20px;\n}\n.rw-selectlist > ul > li.rw-list-option > label {\n padding-left: 20px;\n line-height: 1.423em;\n display: inline-block;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option {\n padding-left: 0;\n padding-right: 5px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label > input {\n margin: 4px -20px 0 0px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label {\n padding-left: 0;\n padding-right: 20px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option {\n padding-left: 0;\n padding-right: 5px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label > input {\n margin: 4px -20px 0 0px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label {\n padding-left: 0;\n padding-right: 20px;\n}\n.rw-selectlist.rw-state-disabled > ul > li:hover,\n.rw-selectlist.rw-state-readonly > ul > li:hover {\n background: none;\n border-color: transparent;\n}\n.rw-multiselect {\n background-color: #fff;\n}\n.rw-multiselect:hover {\n border-color: #adadad;\n}\n.rw-multiselect-wrapper {\n border-radius: 4px;\n position: relative;\n cursor: text;\n}\n.rw-multiselect-wrapper:before,\n.rw-multiselect-wrapper:after {\n content: " ";\n display: table;\n}\n.rw-multiselect-wrapper:after {\n clear: both;\n}\n.rw-multiselect-wrapper span.rw-loading {\n position: absolute;\n right: 3px;\n}\n.rw-multiselect-wrapper > .rw-input {\n outline: 0;\n border-width: 0;\n line-height: normal;\n width: auto;\n max-width: 100%;\n}\n.rw-multiselect-wrapper > .rw-input::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.rw-multiselect-wrapper > .rw-input:-ms-input-placeholder {\n color: #999;\n}\n.rw-multiselect-wrapper > .rw-input::-webkit-input-placeholder {\n color: #999;\n}\n.rw-state-readonly > .rw-multiselect-wrapper,\n.rw-state-disabled > .rw-multiselect-wrapper {\n cursor: not-allowed;\n}\n.rw-rtl .rw-multiselect-wrapper > .rw-input {\n float: right;\n}\n.rw-multiselect-create-tag {\n border-top: 1px #ccc solid;\n padding-top: 5px;\n margin-top: 5px;\n}\n.rw-multiselect-taglist {\n margin: 0;\n padding-left: 0;\n list-style: none;\n display: inline;\n padding-right: 0;\n}\n.rw-multiselect-taglist > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\n.rw-multiselect-taglist > li {\n display: inline-block;\n margin: 1px;\n padding: 0.214em 0.15em 0.214em 0.4em;\n line-height: 1.4em;\n text-align: center;\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #ccc;\n background-color: #ccc;\n cursor: pointer;\n}\n.rw-multiselect-taglist > li.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\n.rw-multiselect-taglist > li.rw-state-readonly,\n.rw-multiselect-taglist > li.rw-state-disabled,\n.rw-multiselect.rw-state-readonly .rw-multiselect-taglist > li,\n.rw-multiselect.rw-state-disabled .rw-multiselect-taglist > li {\n cursor: not-allowed;\n filter: alpha(opacity=65);\n opacity: .65;\n}\n.rw-multiselect-taglist > li .rw-btn {\n outline: 0;\n font-size: 115%;\n line-height: normal;\n}\n.rw-rtl .rw-multiselect-taglist > li {\n float: right;\n}\n',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .rdw-option-wrapper {\r\n border: 1px solid #F1F1F1;\r\n padding: 5px;\r\n min-width: 25px;\r\n height: 20px;\r\n border-radius: 2px;\r\n margin: 0 4px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-option-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-option-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-dropdown-wrapper {\r\n height: 30px;\r\n background: white;\r\n cursor: pointer;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n margin: 0 3px;\r\n text-transform: capitalize;\r\n background: white;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-dropdown-carettoopen {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-top: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-carettoclose {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-bottom: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-selectedtext {\r\n display: flex;\r\n position: relative;\r\n height: 100%;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper {\r\n z-index: 100;\r\n position: relative;\r\n border: 1px solid #F1F1F1;\r\n width: 98%;\r\n background: white;\r\n border-radius: 2px;\r\n margin: 0;\r\n padding: 0;\r\n max-height: 250px;\r\n overflow-y: scroll;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n\r\n.msgapi .rdw-dropdownoption-default {\r\n min-height: 25px;\r\n display: flex;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdownoption-highlighted {\r\n background: #F1F1F1;\r\n}\r\n.msgapi .rdw-dropdownoption-active {\r\n background: #f5f5f5;\r\n}\r\n.msgapi .rdw-dropdownoption-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-inline-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-inline-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-inline-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-block-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-block-dropdown {\r\n width: 110px;\r\n}\r\n\r\n.msgapi .rdw-fontsize-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontsize-dropdown {\r\n min-width: 40px;\r\n}\r\n.msgapi .rdw-fontsize-option {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-fontfamily-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontfamily-dropdown {\r\n width: 115px;\r\n}\r\n.msgapi .rdw-fontfamily-placeholder {\r\n white-space: nowrap;\r\n max-width: 90px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n.msgapi .rdw-fontfamily-optionwrapper {\r\n width: 140px;\r\n}\r\n\r\n.msgapi .rdw-list-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-list-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-list-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-text-align-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-text-align-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-text-align-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-right-aligned-block {\r\n text-align: right;\r\n}\r\n.msgapi .rdw-left-aligned-block {\r\n text-align: left !important;\r\n}\r\n.msgapi .rdw-center-aligned-block {\r\n text-align: center !important;\r\n}\r\n.msgapi .rdw-justify-aligned-block {\r\n text-align: justify !important;\r\n}\r\n.msgapi .rdw-right-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-left-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-center-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-justify-aligned-block > div {\r\n display: inline-block;\r\n}\r\n\r\n.msgapi .rdw-colorpicker-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-colorpicker-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 175px;\r\n height: 175px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-modal-header {\r\n display: flex;\r\n padding-bottom: 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label {\r\n font-size: 15px;\r\n width: 50%;\r\n text-align: center;\r\n cursor: pointer;\r\n padding: 0 10px 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label-active {\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-colorpicker-modal-options {\r\n margin: 5px auto;\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n flex-wrap: wrap;\r\n overflow: scroll;\r\n}\r\n.msgapi .rdw-colorpicker-cube {\r\n width: 22px;\r\n height: 22px;\r\n border: 1px solid #F1F1F1;\r\n}\r\n.msgapi .rdw-colorpicker-option {\r\n margin: 3px;\r\n padding: 0;\r\n min-height: 20px;\r\n border: none;\r\n width: 22px;\r\n height: 22px;\r\n min-width: 22px;\r\n box-shadow: 1px 2px 1px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-colorpicker-option:hover {\r\n box-shadow: 1px 2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option:active {\r\n box-shadow: -1px -2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option-active {\r\n box-shadow: 0px 0px 2px 2px #BFBDBD;\r\n}\r\n\r\n.msgapi .rdw-link-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-link-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-link-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-link-dropdownPlaceholder {\r\n margin-left: 8px;\r\n}\r\n.msgapi .rdw-link-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 205px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-label {\r\n font-size: 15px;\r\n}\r\n.msgapi .rdw-link-modal-input {\r\n margin-top: 5px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n height: 25px;\r\n margin-bottom: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-link-modal-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-link-modal-buttonsection {\r\n margin: 0 auto;\r\n}\r\n.msgapi .rdw-link-modal-target-option {\r\n margin-bottom: 20px;\r\n}\r\n.msgapi .rdw-link-modal-target-option > span {\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-link-modal-btn {\r\n margin-left: 10px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-link-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-link-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-link-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-link-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-embedded-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-embedded-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n justify-content: space-between;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-header {\r\n font-size: 15px;\r\n display: flex;\r\n}\r\n.msgapi .rdw-embedded-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-header-label {\r\n width: 95px;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-embedded-modal-link-section {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input {\r\n width: 88%;\r\n height: 35px;\r\n margin: 10px 0;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input-wrapper {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-embedded-modal-btn-section {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-embedded-modal-btn {\r\n margin: 0 3px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-embedded-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input {\r\n width: 80%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input:focus {\r\n outline: none;\r\n}\r\n\r\n.msgapi .rdw-emoji-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-emoji-modal {\r\n overflow: auto;\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-emoji-icon {\r\n margin: 2.5px;\r\n height: 24px;\r\n width: 24px;\r\n cursor: pointer;\r\n font-size: 22px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.msgapi .rdw-spinner {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n.msgapi .rdw-spinner > div {\r\n width: 12px;\r\n height: 12px;\r\n background-color: #333;\r\n\r\n border-radius: 100%;\r\n display: inline-block;\r\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce1 {\r\n -webkit-animation-delay: -0.32s;\r\n animation-delay: -0.32s;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce2 {\r\n -webkit-animation-delay: -0.16s;\r\n animation-delay: -0.16s;\r\n}\r\n@-webkit-keyframes sk-bouncedelay {\r\n .msgapi 0%, .msgapi 80%, .msgapi 100% { -webkit-transform: scale(0) }\r\n .msgapi 40% { -webkit-transform: scale(1.0) }\r\n}\r\n@keyframes sk-bouncedelay {\r\n 0%, 80%, 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n } 40% {\r\n -webkit-transform: scale(1.0);\r\n transform: scale(1.0);\r\n }\r\n}\r\n\r\n.msgapi .rdw-image-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-image-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-header {\r\n font-size: 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-image-modal-header-label {\r\n width: 80px;\r\n background: #f1f1f1;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n}\r\n.msgapi .rdw-image-modal-header-label-highlighted {\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option {\r\n width: 100%;\r\n color: gray;\r\n cursor: pointer;\r\n display: flex;\r\n border: none;\r\n font-size: 15px;\r\n align-items: center;\r\n justify-content: center;\r\n background-color: #f1f1f1;\r\n outline: 2px dashed gray;\r\n outline-offset: -10px;\r\n margin: 10px 0;\r\n padding: 9px 0;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-highlighted {\r\n outline: 2px dashed #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label {\r\n cursor: pointer;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 15px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label span{\r\n padding: 0 20px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-image-preview {\r\n max-width: 100%;\r\n max-height: 200px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-input {\r\n\twidth: 0.1px;\r\n\theight: 0.1px;\r\n\topacity: 0;\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\tz-index: -1;\r\n}\r\n.msgapi .rdw-image-modal-url-section {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-image-modal-url-input {\r\n width: 90%;\r\n height: 35px;\r\n margin: 15px 0 12px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-image-modal-btn-section {\r\n margin: 10px auto 0;\r\n}\r\n.msgapi .rdw-image-modal-url-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-btn {\r\n margin: 0 5px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-image-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-image-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-image-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-image-modal-spinner {\r\n position: absolute;\r\n top: -3px;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0.5;\r\n}\r\n.msgapi .rdw-image-modal-alt-input {\r\n width: 70%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-image-modal-alt-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-alt-lbl {\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-image-modal-size-input {\r\n width: 40%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-mandatory-sign {\r\n color: red;\r\n margin-left: 3px;\r\n margin-right: 3px;\r\n}\r\n\r\n.msgapi .rdw-remove-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n\r\n.msgapi .rdw-history-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-history-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-link-decorator-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-link-decorator-icon {\r\n position: absolute;\r\n left: 40%;\r\n top: 0;\r\n cursor: pointer;\r\n background-color: white;\r\n}\r\n\r\n.msgapi .rdw-mention-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-suggestion-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-suggestion-dropdown {\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n border: 1px solid #F1F1F1;\r\n min-width: 100px;\r\n max-height: 150px;\r\n overflow: auto;\r\n background: white;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-suggestion-option {\r\n padding: 7px 5px;\r\n border-bottom: 1px solid #f1f1f1;\r\n}\r\n.msgapi .rdw-suggestion-option-active {\r\n background-color: #F1F1F1;\r\n}\r\n\r\n.msgapi .rdw-hashtag-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-image-alignment-options-popup {\r\n position: absolute;\r\n background: white;\r\n display: flex;\r\n padding: 5px 2px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n width: 105px;\r\n cursor: pointer;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-alignment-option-left {\r\n justify-content: flex-start;\r\n}\r\n.msgapi .rdw-image-alignment-option {\r\n height: 15px;\r\n width: 15px;\r\n min-width: 15px;\r\n}\r\n.msgapi .rdw-image-alignment {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-imagewrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-center {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-image-left {\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-right {\r\n display: flex;\r\n justify-content: flex-end;\r\n}\r\n.msgapi .rdw-image-alignment-options-popup-right {\r\n right: 0;\r\n}\r\n\r\n.msgapi .rdw-editor-main {\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n}\r\n.msgapi .rdw-editor-toolbar {\r\n padding: 6px 5px 0;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n display: flex;\r\n justify-content: flex-start;\r\n background: white;\r\n flex-wrap: wrap;\r\n font-size: 15px;\r\n margin-bottom: 5px;\r\n user-select: none;\r\n}\r\n.msgapi .public-DraftStyleDefault-block {\r\n margin: 1em 0;\r\n}\r\n.msgapi .rdw-editor-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-editor-wrapper {\r\n box-sizing: content-box;\r\n}\r\n.msgapi .rdw-editor-main blockquote {\r\n border-left: 5px solid #f1f1f1;\r\n padding-left: 5px;\r\n}\r\n.msgapi .rdw-editor-main pre {\r\n background: #f1f1f1;\r\n border-radius: 3px;\r\n padding: 1px 10px;\r\n}\r\n/**\r\n * Draft v0.9.1\r\n *\r\n * Copyright (c) 2013-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n */\r\n.msgapi .DraftEditor-editorContainer,.msgapi .DraftEditor-root,.msgapi .public-DraftEditor-content{height:inherit;text-align:initial}.msgapi .public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.msgapi .DraftEditor-root{position:relative}.msgapi .DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.msgapi .public-DraftEditor-block{position:relative}.msgapi .DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.msgapi .DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.msgapi .DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.msgapi .DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.msgapi .DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.msgapi .DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.msgapi .public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;z-index:0}.msgapi .public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.msgapi .DraftEditorPlaceholder-hidden{display:none}.msgapi .public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.msgapi .public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.msgapi .public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.msgapi .public-DraftStyleDefault-listLTR{direction:ltr}.msgapi .public-DraftStyleDefault-listRTL{direction:rtl}.msgapi .public-DraftStyleDefault-ol,.msgapi .public-DraftStyleDefault-ul{margin:16px 0;padding:0}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.msgapi .public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.msgapi .public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1) ". ";counter-increment:ol1}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2) ". ";counter-increment:ol2}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4) ". ";counter-increment:ol4}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/I18N/css/formControlIntl.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .form-control-intl {\r\n background-color: unset !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/css/toc.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/fragments/css/groupchildren.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .toc-group-children {\r\n margin-left: 15px;\r\n}\r\n\r\n.msgapi .TOC-Node-enter, .msgapi .TOC-Node-leave {\r\n transition: all 250ms ease-out;\r\n -o-transition: all 250ms ease-out;\r\n -moz-transition: all 250ms ease-out;\r\n -webkit-transition: all 250ms ease-out;\r\n overflow: hidden;\r\n}\r\n.msgapi .TOC-Node-enter,.msgapi .TOC-Node-leave.TOC-Node-leave-active {\r\n opacity: 0;\r\n transform: scale(1, 0);\r\n transform-origin: top;\r\n}\r\n.msgapi .TOC-Node-leave, .msgapi .TOC-Node-enter.TOC-Node-enter-active {\r\n opacity: 1;\r\n transform: scale(1, 1);\r\n transform-origin: top;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/fragments/css/toctitle.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .toc-title {\r\n display: inline-block;\r\n max-width: 150px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-selectize/themes/index.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .react-selectize {\n color: #000;\n}\n.msgapi .react-selectize.root-node {\n position: relative;\n width: 300px;\n}\n.msgapi .react-selectize.root-node.disabled {\n pointer-events: none;\n}\n.msgapi .react-selectize.root-node .react-selectize-control {\n cursor: pointer;\n display: flex;\n align-items: flex-start;\n position: relative;\n padding: 2px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-placeholder {\n display: block;\n line-height: 30px;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n white-space: nowrap;\n position: absolute;\n max-width: calc(100% - 56px);\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n display: flex;\n min-height: 30px;\n flex-grow: 1;\n flex-wrap: wrap;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values .resizable-input {\n background: none;\n border: none;\n outline: none;\n font-size: 1em;\n margin: 2px;\n padding: 4px 0px;\n vertical-align: middle;\n width: 0px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values .value-wrapper {\n display: flex;\n align-items: center;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container,\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button-container {\n flex-grow: 0;\n flex-shrink: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container {\n width: 16px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button-container {\n width: 32px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container:hover .react-selectize-reset-button path {\n stroke: #c0392b;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button path {\n transition: stroke 0.5s 0s ease;\n stroke: #999;\n stroke-linecap: square;\n stroke-linejoin: mitter;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button path {\n fill: #999;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper {\n position: absolute;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.tethered {\n min-width: 300px;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper:not(.tethered) {\n width: 100%;\n}\n.msgapi .react-selectize.dropdown-menu {\n box-sizing: border-box;\n overflow: auto;\n position: absolute;\n max-height: 200px;\n z-index: 10;\n}\n.msgapi .react-selectize.dropdown-menu.tethered {\n min-width: 300px;\n}\n.msgapi .react-selectize.dropdown-menu:not(.tethered) {\n width: 100%;\n}\n.msgapi .react-selectize.dropdown-menu .groups.as-columns {\n display: flex;\n}\n.msgapi .react-selectize.dropdown-menu .groups.as-columns > div {\n flex: 1;\n}\n.msgapi .react-selectize.dropdown-menu .option-wrapper {\n cursor: pointer;\n outline: none;\n}\n.msgapi .multi-select.react-selectize.root-node .simple-value {\n display: inline-block;\n margin: 2px;\n vertical-align: middle;\n}\n.msgapi .multi-select.react-selectize.root-node .simple-value span {\n display: inline-block;\n padding: 2px 5px 4px;\n vertical-align: center;\n}\n.msgapi .simple-select.react-selectize.root-node .simple-value {\n margin: 2px;\n}\n.msgapi .simple-select.react-selectize.root-node .simple-value span {\n display: inline-block;\n vertical-align: center;\n}\n.msgapi .react-selectize.default {\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control {\n background-color: #fff;\n border: 1px solid;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n font-size: 1em;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control .react-selectize-placeholder {\n color: #aaa;\n text-indent: 8px;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n padding-left: 5px;\n}\n.msgapi .react-selectize.default.root-node.open.flipped .react-selectize-control {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.msgapi .react-selectize.default.root-node.open:not(.flipped) .react-selectize-control {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default {\n overflow: hidden;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.custom-leave-active {\n transition: transform 0.2s 0s ease;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-enter {\n transform: translateY(100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-enter-active {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-leave {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-leave-active {\n transform: translateY(100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-enter {\n transform: translateY(-100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-enter-active {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-leave {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-leave-active {\n transform: translateY(-100%);\n}\n.msgapi .react-selectize.dropdown-menu.default {\n background: #fff;\n border: 1px solid #ccc;\n margin-top: -1px;\n}\n.msgapi .react-selectize.dropdown-menu.default.flipped {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu.default:not(.flipped) {\n border-color: #b3b3b3 #ccc #d9d9d9;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu.default .no-results-found {\n color: #aaa !important;\n font-style: oblique;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.dropdown-menu.default .simple-group-title {\n background-color: #fafafa;\n padding: 8px 8px;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper.highlight {\n background: #f2f9fc;\n color: #333;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper .simple-option {\n color: #666;\n cursor: pointer;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.default.root-node .simple-value {\n background: #f2f9fc;\n border: 1px solid #c9e6f2;\n border-radius: 2px;\n color: #08c;\n}\n.msgapi .simple-select.react-selectize.default.root-node.open .react-selectize-control {\n background-color: #fff;\n}\n.msgapi .simple-select.react-selectize.default.root-node:not(.open) .react-selectize-control {\n background-color: #f9f9f9;\n background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);\n}\n.msgapi .react-selectize.bootstrap3 {\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n}\n.msgapi .react-selectize.bootstrap3.root-node.open .react-selectize-control {\n background-color: #fff;\n border: 1px solid #66afe9;\n box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102,175,233,0.6);\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control {\n border: 1px solid;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n font-size: 1em;\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control .react-selectize-placeholder {\n color: #aaa;\n text-indent: 8px;\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n padding-left: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper.flipped {\n margin-bottom: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper:not(.flipped) {\n margin-top: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n transition: opacity 0.2s 0s ease;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter-active {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu {\n background: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0,0,0,0.175);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu.flipped {\n margin-bottom: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu:not(.flipped) {\n margin-top: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .no-results-found {\n color: #aaa !important;\n font-style: oblique;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .groups:not(.as-columns) > div:not(:first-child) {\n border-top: 1px solid #e5e5e5;\n margin: 12px 0px 0px 0px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .simple-group-title {\n background-color: #fff;\n color: #999;\n padding: 8px 8px;\n text-shadow: 0px 1px 0px rgba(0,0,0,0.05);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper.highlight {\n background: #428bca;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper.highlight .simple-option {\n color: #fff;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper .simple-option {\n color: #333;\n cursor: pointer;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.bootstrap3.root-node .simple-value {\n background: #efefef;\n border-radius: 4px;\n color: #333;\n}\n.msgapi .react-selectize.material {\n font-family: Roboto, sans-serif;\n}\n.msgapi .react-selectize.material.root-node.open .react-selectize-control:after {\n transform: scaleX(1);\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control {\n border-bottom: 1px solid rgba(0,0,0,0.3);\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control:after {\n background-color: #00bcd4;\n content: "";\n transform: scaleX(0);\n transition: transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n position: absolute;\n left: 0px;\n bottom: -1px;\n width: 100%;\n height: 2px;\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control .react-selectize-placeholder {\n color: rgba(0,0,0,0.3);\n text-indent: 4px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper.flipped {\n margin-bottom: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper.flipped .dropdown-menu {\n transform-origin: 100% 100%;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper:not(.flipped) {\n margin-top: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper:not(.flipped) .dropdown-menu {\n transform-origin: 0% 0%;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n transform: scale(0, 0);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter-active {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n transform: scale(1, 1);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n transform: scale(1, 1);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.material.dropdown-menu {\n background-color: #fff;\n border-radius: 2px;\n box-shadow: rgba(0,0,0,0.118) 0px 1px 6px, rgba(0,0,0,0.118) 0px 1px 4px;\n max-height: 250px;\n padding: 8px 0px;\n}\n.msgapi .react-selectize.material.dropdown-menu.flipped {\n margin-bottom: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu:not(.flipped) {\n margin-top: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu .no-results-found {\n font-style: oblique;\n font-size: 16px;\n height: 32px;\n padding: 0px 16px;\n display: flex;\n align-items: center;\n}\n.msgapi .react-selectize.material.dropdown-menu .groups:not(.as-columns) > div:not(:last-child) {\n border-bottom: 1px solid #e5e5e5;\n}\n.msgapi .react-selectize.material.dropdown-menu .simple-group-title {\n color: #8f8f8f;\n display: flex;\n align-items: center;\n font-size: 14px;\n height: 48px;\n padding: 0px 10px;\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper.highlight {\n background-color: rgba(0,0,0,0.098);\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper .simple-option {\n color: rgba(0,0,0,0.875);\n cursor: pointer;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n font-size: 16px;\n height: 48px;\n padding: 0px 16px;\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.material.root-node .simple-value span {\n padding: 0px;\n}\n.msgapi .multi-select.react-selectize.material.root-node .simple-value span:after {\n content: ",";\n}\n.msgapi .simple-select.react-selectize.material.root-node .simple-value {\n margin: 4px 3px 3px 2px;\n}\n',""])},"./node_modules/date-arithmetic/index.js":function(e,t){var n="milliseconds",r=e.exports={add:function(e,t,o){switch(e=new Date(e),o){case n:case"seconds":case"minutes":case"hours":case"year":return r[o](e,r[o](e)+t);case"day":return r.date(e,r.date(e)+t);case"week":return r.date(e,r.date(e)+7*t);case"month":return function(e,t){var n=r.month(e)+t;e=r.month(e,n);for(;n<0;)n=12+n;r.month(e)!==n%12&&(e=r.date(e,0));return e}(e,t);case"decade":return r.year(e,r.year(e)+10*t);case"century":return r.year(e,r.year(e)+100*t)}throw new TypeError('Invalid units: "'+o+'"')},subtract:function(e,t,n){return r.add(e,-t,n)},startOf:function(e,t,n){switch(e=new Date(e),t){case"century":case"decade":case"year":e=r.month(e,0);case"month":e=r.date(e,1);case"week":case"day":e=r.hours(e,0);case"hours":e=r.minutes(e,0);case"minutes":e=r.seconds(e,0);case"seconds":e=r.milliseconds(e,0)}return"decade"===t&&(e=r.subtract(e,r.year(e)%10,"year")),"century"===t&&(e=r.subtract(e,r.year(e)%100,"year")),"week"===t&&(e=r.weekday(e,0,n)),e},endOf:function(e,t,o){return e=new Date(e),e=r.startOf(e,t,o),e=r.add(e,1,t),e=r.subtract(e,1,n)},eq:i((function(e,t){return e===t})),neq:i((function(e,t){return e!==t})),gt:i((function(e,t){return e>t})),gte:i((function(e,t){return e>=t})),lt:i((function(e,t){return e0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,m(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},i.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},r}(u(p));e.exports=g},"./node_modules/draft-js/lib/ContentState.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/BlockMapBuilder.js"),o=n("./node_modules/draft-js/lib/CharacterMetadata.js"),i=n("./node_modules/draft-js/lib/ContentBlock.js"),a=n("./node_modules/draft-js/lib/ContentBlockNode.js"),s=n("./node_modules/draft-js/lib/DraftEntity.js"),l=n("./node_modules/draft-js/lib/SelectionState.js"),u=n("./node_modules/draft-js/lib/generateRandomKey.js"),c=n("./node_modules/draft-js/lib/gkx.js"),d=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),p=n("./node_modules/draft-js/lib/sanitizeDraftText.js"),f=d.List,h=d.Record,m=d.Repeat,g=function(e){var t,n;function d(){return e.apply(this,arguments)||this}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=d.prototype;return h.getEntityMap=function(){return s},h.getBlockMap=function(){return this.get("blockMap")},h.getSelectionBefore=function(){return this.get("selectionBefore")},h.getSelectionAfter=function(){return this.get("selectionAfter")},h.getBlockForKey=function(e){return this.getBlockMap().get(e)},h.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},h.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},h.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},h.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},h.getBlocksAsArray=function(){return this.getBlockMap().toArray()},h.getFirstBlock=function(){return this.getBlockMap().first()},h.getLastBlock=function(){return this.getBlockMap().last()},h.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},h.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},h.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},h.createEntity=function(e,t,n){return s.__create(e,t,n),this},h.mergeEntityData=function(e,t){return s.__mergeData(e,t),this},h.replaceEntityData=function(e,t){return s.__replaceData(e,t),this},h.addEntity=function(e){return s.__add(e),this},h.getEntity=function(e){return s.__get(e)},d.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=r.createFromArray(n),i=o.isEmpty()?new l:l.createEmpty(o.first().getKey());return new d({blockMap:o,entityMap:t||s,selectionBefore:i,selectionAfter:i})},d.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),r=n.map((function(e){return e=p(e),new(c("draft_tree_data_support")?a:i)({key:u(),text:e,type:"unstyled",characterList:f(m(o.EMPTY,e.length))})}));return d.createFromBlockArray(r)},d}(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=g},"./node_modules/draft-js/lib/ContentStateInlineStyle.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),u=t.getEndKey(),c=t.getEndOffset(),d=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;s===u?(o=l,a=c):(o=t===s?l:0,a=t===u?c:e.getLength());for(var d,p=e.getCharacterList();o0&&window.scrollTo(i.x,i.y+r+10)}else{n instanceof HTMLElement||b(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},j._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,a=w(this.props.selection,n);return this.props.tree.map((function(c,d){var h=c.get("leaves"),m=h.size-1,g=h.map((function(o,c){var p=l.encode(n,d,c),f=o.get("start"),h=o.get("end");return u.createElement(s,{key:p,offsetKey:p,block:t,start:f,selection:a?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===i&&c===m})})).toArray(),y=c.get("decoratorKey");if(null==y)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return g;var j=b.getPropsForKey(y),O=l.encode(n,d,0),_=h.first().get("start"),S=h.last().get("end"),x=r.slice(_,S),E=t.getEntityAt(c.get("start")),C=f.getHTMLDirIfDifferent(p.getDirection(x),e.props.direction),M={contentState:e.props.contentState,decoratedText:x,dir:C,key:O,start:_,end:S,blockKey:n,entityKey:E,offsetKey:O};return u.createElement(w,o({},j,M),g)})).toArray()},j.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return u.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(u.Component);e.exports=j},"./node_modules/draft-js/lib/DraftEditorBlockNode.react.js":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js");function o(){return(o=r||function(e){for(var t=1;t0&&window.scrollTo(i.x,i.y+n+10)}else{r instanceof HTMLElement||y(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&d.setTop(o,d.getTop(o)+n+10)}}},a.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,c=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,f=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,O=t.direction,_=t.forceSelection,S=t.selection,x=t.tree,E=null;n.children.size&&(E=n.children.reduce((function(t,n){var o=l.encode(n,0,0),s=p.getBlockForKey(n),f=w(s,c),g=f.CustomComponent||r,y=v(s,a),b=y.Element,O=y.wrapperTemplate,_=j(s,h,o,d,f),S=i({},e.props,{tree:m.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:s});return t.push(u.createElement(b,_,u.createElement(g,S))),!O||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.reverse()[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var d=s.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),f=p[0].key;n.push(u.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":l.encode(f,0,0)},p))}(O,b,t),t}),[]));var C=n.getKey(),M=l.encode(C,0,0),A=w(n,c),k=A.CustomComponent,D=null!=k?u.createElement(k,o({},this.props,{tree:m.getBlockTree(C),blockProps:A.customProps,offsetKey:M,block:n})):u.createElement(s,{block:n,children:E,contentState:p,customStyleFn:g,customStyleMap:y,decorator:f,direction:O,forceSelection:_,hasSelection:b(S,C),selection:S,tree:x});if(n.getParentKey())return D;var T=v(n,a).Element,P=j(n,h,M,d,A);return u.createElement(T,P,D)},r}(u.Component);e.exports=O},"./node_modules/draft-js/lib/DraftEditorCompositionHandler.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DOMObserver.js"),o=n("./node_modules/draft-js/lib/DraftModifier.js"),i=n("./node_modules/draft-js/lib/DraftOffsetKey.js"),a=n("./node_modules/draft-js/lib/EditorState.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),l=n("./node_modules/draft-js/lib/editOnSelect.js"),u=n("./node_modules/draft-js/lib/getContentEditableContainer.js"),c=n("./node_modules/draft-js/lib/getDraftEditorSelection.js"),d=n("./node_modules/draft-js/lib/getEntityKeyForSelection.js"),p=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),f=!1,h=!1,m=null;var g={onCompositionStart:function(e){h=!0,function(e){m||(m=new r(u(e))).start()}(e)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout((function(){f||g.resolveComposition(e)}),20)},onSelect:l,onKeyDown:function(e,t){if(!h)return g.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!h){var t=p(m).stopAndFlushMutations();m=null,f=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),l=s.blockKey,u=s.decoratorKey,c=s.leafKey,p=n.getBlockTree(l).getIn([u,"leaves",c]),f=p.start,h=p.end,m=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:f,focusOffset:h,isBackward:!1}),g=d(r,m),y=r.getBlockForKey(l).getInlineStyleAt(f);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=c(n,u(e)).selectionState;e.restoreEditorDOM();var l=a.acceptSelection(n,s);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=g},"./node_modules/draft-js/lib/DraftEditorContents-core.react.js":function(e,t,n){"use strict";function r(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=o.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||l!==u||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,o=e.blockStyleFn,l=e.customStyleMap,p=e.customStyleFn,f=e.editorState,h=e.editorKey,m=e.textDirectionality,g=f.getCurrentContent(),y=f.getSelection(),b=f.mustForceSelection(),v=f.getDecorator(),w=c(f.getDirectionMap()),j=g.getBlocksAsArray(),O=[],_=null,S=null,x=0;x_,P));var U=k||i,H={className:B,"data-block":!0,"data-editor":h,"data-offset-key":I,key:C};void 0!==T&&(H=r({},H,{contentEditable:T,suppressContentEditableWarning:!0}));var K=s.createElement(F,H,s.createElement(U,N));O.push({block:K,wrapperTemplate:R,key:C,offsetKey:I}),_=R?E.getDepth():null,S=R}for(var W=[],V=0;V0){if(e.props.handleDroppedFiles&&c(e.props.handleDroppedFiles(p,m)))return;l(m,(function(t){t&&e.update(h(a,p,t))}))}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&c(e.props.handleDrop(p,n,g))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(a,p)):e.update(h(a,p,n.getText()))),f(e)}}}};function f(e){e._internalDrag=!1;var t=a.findDOMNode(e);if(t){var n=new MouseEvent("mouseup",{view:window,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=p},"./node_modules/draft-js/lib/DraftEditorEditHandler.js":function(e,t,n){"use strict";var r={onBeforeInput:n("./node_modules/draft-js/lib/editOnBeforeInput.js"),onBlur:n("./node_modules/draft-js/lib/editOnBlur.js"),onCompositionStart:n("./node_modules/draft-js/lib/editOnCompositionStart.js"),onCopy:n("./node_modules/draft-js/lib/editOnCopy.js"),onCut:n("./node_modules/draft-js/lib/editOnCut.js"),onDragOver:n("./node_modules/draft-js/lib/editOnDragOver.js"),onDragStart:n("./node_modules/draft-js/lib/editOnDragStart.js"),onFocus:n("./node_modules/draft-js/lib/editOnFocus.js"),onInput:n("./node_modules/draft-js/lib/editOnInput.js"),onKeyDown:n("./node_modules/draft-js/lib/editOnKeyDown.js"),onPaste:n("./node_modules/draft-js/lib/editOnPaste.js"),onSelect:n("./node_modules/draft-js/lib/editOnSelect.js")};e.exports=r},"./node_modules/draft-js/lib/DraftEditorLeaf.react.js":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js");function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n("./node_modules/draft-js/lib/DraftEditorTextNode.react.js"),s=n("./node_modules/react/index.js"),l=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),u=n("./node_modules/draft-js/lib/setDraftEditorSelection.js"),c=function(e){var t,n;function c(){for(var t,n=arguments.length,r=new Array(n),a=0;a0)return" "+e}else if(t0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,l=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(l);else if(null==u||u.depth=a;)n.shift(),u=n[0];a>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},"./node_modules/draft-js/lib/DraftTreeInvariants.js":function(e,t,n){"use strict";n("./node_modules/draft-js/node_modules/fbjs/lib/warning.js");var r={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}};e.exports=r},"./node_modules/draft-js/lib/EditorBidiService.js":function(e,t,n){"use strict";var r,o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiService.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),s=i.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=s(n.keySeq().zip(l));return null!=t&&i.is(t,u)?t:u}};e.exports=l},"./node_modules/draft-js/lib/EditorState.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("./node_modules/draft-js/lib/BlockTree.js"),i=n("./node_modules/draft-js/lib/ContentState.js"),a=n("./node_modules/draft-js/lib/EditorBidiService.js"),s=n("./node_modules/draft-js/lib/SelectionState.js"),l=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),u=l.OrderedSet,c=l.Record,d=l.Stack,p=c({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),f=function(){t.createEmpty=function(e){return t.createWithContent(i.createFromText(""),e)},t.createWithContent=function(e,n){var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:n||null,selection:s.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=function(e){for(var t=1;t0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return y(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return h(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=a.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),c=n;s!==l.getSelectionAfter()||g(e,r)?(u=u.push(l),c=c.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var p=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(p=null);var h={currentContent:c,directionMap:i,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function h(e,t,n){return f.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function g(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function y(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=f},"./node_modules/draft-js/lib/KeyBindingUtil.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),o=n("./node_modules/draft-js/lib/isSoftNewlineEvent.js"),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},"./node_modules/draft-js/lib/RawDraftContentState.js":function(e,t,n){},"./node_modules/draft-js/lib/RichTextEditorUtil.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/adjustBlockDepthForContentState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},"./node_modules/draft-js/lib/adjustBlockDepthForContentState.js":function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},"./node_modules/draft-js/lib/applyEntityToContentBlock.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js");e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(D).some((function(n){e.classList.contains(n)&&(t=D[n])})),t},N=function(e){return!(!(e instanceof HTMLAnchorElement&&e.href)||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol)},L=function(e){return!!(e instanceof HTMLImageElement&&e.attributes.getNamedItem("src")&&e.attributes.getNamedItem("src").value)},R=function(e){var t=v();if(!(e instanceof HTMLElement))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){C.indexOf(r)>=0?e.add("BOLD"):M.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},F=function(e){return"ul"===e||"ol"===e},z=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentStyle",v()),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",c),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentStyle=v(),this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e])),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t.addStyle=function(e){this.currentStyle=this.currentStyle.union(e)},t.removeStyle=function(e){this.currentStyle=this.currentStyle.subtract(e)},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||f(),n=o({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e){for(var t=[],n=0;n(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e){var t=e.textContent;""===t.trim()&&"pre"!==this.wrapper&&(t=" "),"pre"!==this.wrapper&&(t=(t=t.replace(_,"")).replace(O," ")),this._appendText(t)},t._addBreakNode=function(e){e instanceof HTMLBRElement&&this._appendText("\n")},t._addImgNode=function(e){if(e instanceof HTMLImageElement){var t=e,n={};k.forEach((function(e){var r=t.getAttribute(e);r&&(n[e]=r)})),this.currentEntity=this.entityMap.__create("IMAGE","MUTABLE",n),m("draftjs_fix_paste_for_img")?"presentation"!==e.getAttribute("role")&&this._appendText("📷"):this._appendText("📷"),this.currentEntity=null}},t._addAnchorNode=function(e,t){if(e instanceof HTMLAnchorElement){var n=e,r={};A.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),r.url=new d(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes))),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=t(e=e.trim().replace(j,"").replace(S," ").replace(x,"").replace(E,""));if(!r)return null;var o=P(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new z(o,i).addDOMNode(r).getContentBlocks()}},"./node_modules/draft-js/lib/convertFromRawToDraftState.js":function(e,t,n){"use strict";function r(e){for(var t=1;t0})),o=b&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return b?function(e,t){return e.map(S).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(S),l=new a(r({},O(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:v(s.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var u=x([],s,l);u.length>0;){var c=u.pop(),d=c.parentRef,p=d.getChildKeys(),f=p.indexOf(c.key),h=Array.isArray(c.children);if(!h){h||y(!1);break}var m=c.children.map(S),g=new a(r({},O(c,t),{parent:d.getKey(),children:v(m.map((function(e){return e.key}))),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));n=n.set(g.getKey(),g),u=x(u,m,g)}return n}),j())}(o,t):function(e,t){return j(e.map((function(e){var n=new i(O(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t)};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=E(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},"./node_modules/draft-js/lib/createCharacterList.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},"./node_modules/draft-js/lib/decodeEntityRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js").substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a=h?i.length:0),a=t.get("end"),s=a+(a>=h?i.length:0);return t.get("decoratorKey")!==n.get("decoratorKey")||t.get("leaves").size!==n.get("leaves").size||o!==n.get("start")||s!==n.get("end")}))}if(b||(g=i,b=d&&("'"==g||"/"==g)),b||(b=u(y.getDirectionMap()).get(m)!==u(r.getDirectionMap()).get(m)),b)return n.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,c((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnBlur.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/EditorState.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/getActiveElement.js");e.exports=function(e,n){if(i()===document.body){var a=t.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,u=l.getSelection();if(u.getHasFocus()){var c=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(n),e.update(r.acceptSelection(l,c))}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnCompositionStart.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/EditorState.js");e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},"./node_modules/draft-js/lib/editOnCopy.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getFragmentFromSelection.js");e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},"./node_modules/draft-js/lib/editOnCut.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/Style.js"),a=n("./node_modules/draft-js/lib/getFragmentFromSelection.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/getScrollPosition.js");e.exports=function(e,t){var n,l=e._latestEditorState,u=l.getSelection(),c=t.target;if(u.isCollapsed())t.preventDefault();else{c instanceof Node&&(n=s(i.getScrollParent(c)));var d=a(l);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(l))}),0)}}},"./node_modules/draft-js/lib/editOnDragOver.js":function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},"./node_modules/draft-js/lib/editOnDragStart.js":function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},"./node_modules/draft-js/lib/editOnFocus.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/EditorState.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js");e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},"./node_modules/draft-js/lib/editOnInput.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/DraftOffsetKey.js"),i=n("./node_modules/draft-js/lib/EditorState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),s=n("./node_modules/draft-js/lib/findAncestorOffsetKey.js"),l=n("./node_modules/draft-js/lib/gkx.js"),u=n("./node_modules/draft-js/lib/keyCommandPlainBackspace.js"),c=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),d=a.isEngine("Gecko");e.exports=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var a=t.getSelection(),p=a.anchorNode,f=a.isCollapsed,h=p.nodeType!==Node.TEXT_NODE,m=p.nodeType!==Node.TEXT_NODE&&p.nodeType!==Node.ELEMENT_NODE;if(l("draft_killswitch_allow_nontextnodes")){if(h)return}else if(m)return;if(p.nodeType===Node.TEXT_NODE&&(null!==p.previousSibling||null!==p.nextSibling)){var g=p.parentNode;p.nodeValue=g.textContent;for(var y=g.firstChild;null!==y;y=y.nextSibling)y!==p&&g.removeChild(y)}var b=p.textContent,v=e._latestEditorState,w=c(s(p)),j=o.decode(w),O=j.blockKey,_=j.decoratorKey,S=j.leafKey,x=v.getBlockTree(O).getIn([_,"leaves",S]),E=x.start,C=x.end,M=v.getCurrentContent(),A=M.getBlockForKey(O),k=A.getText().slice(E,C);if(b.endsWith("\n\n")&&(b=b.slice(0,-1)),b!==k){var D,T,P,I,N=v.getSelection(),L=N.merge({anchorOffset:E,focusOffset:C,isBackward:!1}),R=A.getEntityAt(E),F=R&&M.getEntity(R),z="MUTABLE"===(F&&F.getMutability()),B=z?"spellcheck-change":"apply-entity",U=r.replaceText(M,L,b,A.getInlineStyleAt(E),z?A.getEntityAt(E):null);if(d)D=a.anchorOffset,T=a.focusOffset,I=(P=E+Math.min(D,T))+Math.abs(D-T),D=P,T=I;else{var H=b.length-k.length;P=N.getStartOffset(),I=N.getEndOffset(),D=f?I+H:P,T=I+H}var K=U.merge({selectionBefore:M.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:D,focusOffset:T})});e.update(i.push(v,K,B))}else{var W=n.nativeEvent.inputType;if(W){var V=function(e,t){switch(e){case"deleteContentBackward":return u(t)}return t}(W,v);if(V!==v)return e.restoreEditorDOM(),void e.update(V)}}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnKeyDown.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/KeyBindingUtil.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),s=n("./node_modules/draft-js/lib/SecondaryClipboard.js"),l=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),u=n("./node_modules/draft-js/lib/isEventHandled.js"),c=n("./node_modules/draft-js/lib/keyCommandBackspaceToStartOfLine.js"),d=n("./node_modules/draft-js/lib/keyCommandBackspaceWord.js"),p=n("./node_modules/draft-js/lib/keyCommandDeleteWord.js"),f=n("./node_modules/draft-js/lib/keyCommandInsertNewline.js"),h=n("./node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js"),m=n("./node_modules/draft-js/lib/keyCommandMoveSelectionToStartOfBlock.js"),g=n("./node_modules/draft-js/lib/keyCommandPlainBackspace.js"),y=n("./node_modules/draft-js/lib/keyCommandPlainDelete.js"),b=n("./node_modules/draft-js/lib/keyCommandTransposeCharacters.js"),v=n("./node_modules/draft-js/lib/keyCommandUndo.js"),w=i.isOptionKeyCommand,j=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:j&&w(t)&&t.preventDefault()}var O=e.props.keyBindingFn(t);if(O)if("undo"!==O){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(O,i,t.timeStamp))){var _=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return c(t);case"split-block":return f(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(O,i);_!==i&&e.update(_)}}else v(t,i,e.update);else if(n===a.SPACE&&j&&w(t)){var S=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,S,"insert-characters"))}}},"./node_modules/draft-js/lib/editOnPaste.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/BlockMapBuilder.js"),o=n("./node_modules/draft-js/lib/CharacterMetadata.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/DataTransfer.js"),a=n("./node_modules/draft-js/lib/DraftModifier.js"),s=n("./node_modules/draft-js/lib/DraftPasteProcessor.js"),l=n("./node_modules/draft-js/lib/EditorState.js"),u=n("./node_modules/draft-js/lib/RichTextEditorUtil.js"),c=n("./node_modules/draft-js/lib/getEntityKeyForSelection.js"),d=n("./node_modules/draft-js/lib/getTextContentFromFiles.js"),p=n("./node_modules/draft-js/lib/isEventHandled.js"),f=n("./node_modules/draft-js/lib/splitTextIntoTextBlocks.js");function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(m)))return;return void d(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=f(t),d=o.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=s.processText(i,d,p),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(l.push(n,y,"insert-fragment"))}}))}}var y=[],b=n.getText(),v=n.getHTML(),w=e._latestEditorState;if(!e.props.handlePastedText||!p(e.props.handlePastedText(b,v,w))){if(b&&(y=f(b)),!e.props.stripPastedStyles){var j=e.getClipboard();if(n.isRichText()&&j){if(-1!==v.indexOf(e.getEditorKey())||1===y.length&&1===j.size&&j.first().getText()===b)return void e.update(h(e._latestEditorState,j))}else if(j&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,j))return void e.update(h(e._latestEditorState,j));if(v){var O=s.processHTML(v,e.props.blockRenderMap);if(O){var _=O.contentBlocks,S=O.entityMap;if(_){var x=r.createFromArray(_);return void e.update(h(e._latestEditorState,x,S))}}}e.setClipboard(null)}if(y.length){var E=o.create({style:w.getCurrentInlineStyle(),entity:c(w.getCurrentContent(),w.getSelection())}),C=u.getCurrentBlockType(w),M=s.processText(y,E,C),A=r.createFromArray(M);e.update(h(e._latestEditorState,A))}}}},"./node_modules/draft-js/lib/editOnSelect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftJsDebugLogging.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/getContentEditableContainer.js"),a=n("./node_modules/draft-js/lib/getDraftEditorSelection.js");e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,i(e)),l=s.selectionState;l!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},"./node_modules/draft-js/lib/encodeEntityRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftStringKey.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js").strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),l=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(l)])})})),n}},"./node_modules/draft-js/lib/encodeInlineStyleRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js"),o=n("./node_modules/draft-js/lib/findRangesImmutable.js"),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},"./node_modules/draft-js/lib/expandRangeToStartOfLine.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js"),o=n("./node_modules/draft-js/lib/getRangeClientRects.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;f--)if(!(null!=p&&f>0&&r.isSurrogatePair(p,f-1))){if(e.setStart(c,f),!a(o(e),n))break;l=c,u=f}if(-1===f||0===c.childNodes.length)break;d=s(c=c.childNodes[f])}return e.setStart(l,u),e}},"./node_modules/draft-js/lib/findAncestorOffsetKey.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js");e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},"./node_modules/draft-js/lib/findRangesImmutable.js":function(e,t,n){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},"./node_modules/draft-js/lib/generateRandomKey.js":function(e,t,n){"use strict";var r={},o=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||r.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return r[e]=!0,e}},"./node_modules/draft-js/lib/getCharacterRemovalRange.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftEntitySegments.js"),o=n("./node_modules/draft-js/lib/getRangesForDraftEntity.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t,n,a,s,l,u){var c=n.getStartOffset(),d=n.getEndOffset(),p=e.__get(s).getMutability(),f=u?c:d;if("MUTABLE"===p)return n;var h=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});l||(u?d=m.end:c=m.start);var g=r.getRemovalRange(c,d,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),l=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!l&&!u)return r;var c=r;if(l&&l===u)c=a(e,t,c,o,l,!0,!0);else if(l&&u){var d=a(e,t,c,o,l,!1,!0),p=a(e,n,c,o,u,!1,!1);c=c.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var f=a(e,t,c,o,l,!1,!0);c=c.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,c,o,u,!1,!1);c=c.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return c}},"./node_modules/draft-js/lib/getContentEditableContainer.js":function(e,t,n){"use strict";var r=n("./node_modules/react-dom/index.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");e.exports=function(e){var t=r.findDOMNode(e.editorContainer);return t||o(!1),t.firstChild instanceof HTMLElement||o(!1),t.firstChild}},"./node_modules/draft-js/lib/getContentStateFragment.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/randomizeBlockMapKeys.js"),o=n("./node_modules/draft-js/lib/removeEntitiesAtEdges.js");e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=o(e,t).getBlockMap(),u=l.keySeq(),c=u.indexOf(n),d=u.indexOf(a)+1;return r(l.slice(c,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},"./node_modules/draft-js/lib/getDefaultKeyBinding.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/KeyBindingUtil.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function c(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},"./node_modules/draft-js/lib/getDraftEditorSelection.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js");e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/findAncestorOffsetKey.js"),o=n("./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js"),i=n("./node_modules/draft-js/lib/getUpdatedSelectionState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js");function l(e,t,n){var i=t,l=r(i);if(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var c=null;if(null!=l)c=l;else{var d=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);c=s(o(d))}return{key:c,offset:0}}var p=i.childNodes[n-1],f=null,h=null;if(o(p)){var m=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(p);f=s(o(m)),h=u(m)}else f=s(l),h=u(p);return{key:f,offset:h}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,u){var c=n.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(c&&d)return{selectionState:i(e,s(r(n)),o,s(r(a)),u),needsRecovery:!1};var p=null,f=null,h=!0;return c?(p={key:s(r(n)),offset:o},f=l(t,a,u)):d?(f={key:s(r(a)),offset:u},p=l(t,n,o)):(p=l(t,n,o),f=l(t,a,u),n===a&&o===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,f.key,f.offset),needsRecovery:h}}},"./node_modules/draft-js/lib/getEntityKeyForSelection.js":function(e,t,n){"use strict";function r(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var o=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:r(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(a);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},"./node_modules/draft-js/lib/getFragmentFromSelection.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getContentStateFragment.js");e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},"./node_modules/draft-js/lib/getNextDelimiterBlockKey.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js");e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},"./node_modules/draft-js/lib/getRangeBoundingClientRect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getRangeClientRects.js");e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var l=t[0];n=l.top,o=l.right,i=l.bottom,a=l.left}for(var u=1;ui){var l=r.getKeyBefore(o);if(null==l)a=o;else a=l,s=r.getBlockForKey(l).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},"./node_modules/draft-js/lib/moveSelectionForward.js":function(e,t,n){"use strict";n("./node_modules/draft-js/node_modules/fbjs/lib/warning.js");e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},"./node_modules/draft-js/lib/randomizeBlockMapKeys.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js"),o=n("./node_modules/draft-js/lib/generateRandomKey.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),u=r.getChildKeys(),c=r.getParentKey(),d=o();(n[a]=d,s)&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null));l&&(e.get(l)?e.setIn([l,"nextSibling"],d):e.setIn([a,"prevSibling"],null));if(c&&e.get(c)){var p=e.get(c).getChildKeys();e.setIn([c,"children"],p.set(p.indexOf(r.getKey()),d))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},"./node_modules/draft-js/lib/removeEntitiesAtEdges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/lib/findRangesImmutable.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,l=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,c,n),f=p.start,h=p.end;ft;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),c=t.getEndKey(),f=t.getEndOffset(),h=i.get(s),m=i.get(c),g=h instanceof r,y=[];if(g){var b=m.getChildKeys(),v=l(c,i);m.getNextSiblingKey()&&(y=y.concat(v)),b.isEmpty()||(y=y.concat(v.concat([c]))),y=y.concat(l(o(m,i),i))}n=h===m?p(h.getCharacterList(),u,f):h.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(f));var w=h.merge({text:h.getText().slice(0,u)+m.getText().slice(f),characterList:n}),j=g&&0===u&&0===f&&m.getParentKey()===s&&null==m.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===c})).filter((function(e,t){return-1===y.indexOf(t)})).concat(a([[c,null]])).map((function(e,t){return t===s?w:null})),O=i.merge(j).filter((function(e){return!!e}));return g&&h!==m&&(O=d(O,h,m,i)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},"./node_modules/draft-js/lib/removeTextWithStrategy.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/gkx.js")("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),s=i,l=i.getAnchorKey(),u=i.getFocusKey(),c=a.getBlockForKey(l);if(o&&"forward"===n&&l!==u)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o)if(i.getAnchorOffset()===a.getBlockForKey(l).getLength()){var d=a.getBlockForKey(c.nextSibling);if(!d||0===d.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,s,n)}},"./node_modules/draft-js/lib/sanitizeDraftText.js":function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},"./node_modules/draft-js/lib/setDraftEditorSelection.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/DraftEffects.js"),o=n("./node_modules/draft-js/lib/DraftJsDebugLogging.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/getActiveElement.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function l(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return document.createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,s=0;sc(t)&&o.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.extend(t,n)}catch(i){throw o.logSelectionStateFailure({anonymizedDom:u(t,(function(t){var n=[];return t===s&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),i}}else{var d=e.getRangeAt(0);d.setEnd(t,n),e.addRange(d.cloneRange())}}function p(e,t,n,i){var a=document.createRange();n>c(t)&&(o.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),e.addRange(a)}e.exports=function(e,n,r,o,a){if(i(document.documentElement,n)){var s=t.getSelection(),l=e.getAnchorKey(),u=e.getAnchorOffset(),c=e.getFocusKey(),f=e.getFocusOffset(),h=e.getIsBackward();if(!s.extend&&h){var m=l,g=u;l=c,u=f,c=m,f=g,h=!1}var y=l===r&&o<=u&&a>=u,b=c===r&&o<=f&&a>=f;if(y&&b)return s.removeAllRanges(),p(s,n,u-o,e),void d(s,n,f-o,e);if(h){if(b&&(s.removeAllRanges(),p(s,n,f-o,e)),y){var v=s.focusNode,w=s.focusOffset;s.removeAllRanges(),p(s,n,u-o,e),d(s,v,w,e)}}else y&&(s.removeAllRanges(),p(s,n,u-o,e)),b&&d(s,n,f-o,e)}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/splitBlockInContentState.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js"),o=n("./node_modules/draft-js/lib/generateRandomKey.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=n("./node_modules/draft-js/lib/modifyBlockForContentState.js"),l=i.List,u=i.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),d=i.get(n),p=d.getText();if(!p){var f=d.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=d.getCharacterList(),g=o(),y=d instanceof r,b=d.merge({text:p.slice(0,h),characterList:m.slice(0,h)}),v=b.merge({key:g,text:p.slice(h),characterList:m.slice(h),data:u()}),w=i.toSeq().takeUntil((function(e){return e===d})),j=i.toSeq().skipUntil((function(e){return e===d})).rest(),O=w.concat([[n,b],[g,v]],j).toOrderedMap();return y&&(d.getChildKeys().isEmpty()||a(!1),O=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:l(i)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),c(r,e,(function(e){return e.merge({nextSibling:o})})),c(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(O,b,v)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},"./node_modules/draft-js/lib/splitTextIntoTextBlocks.js":function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},"./node_modules/draft-js/node_modules/fbjs/lib/DataTransfer.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/PhotosMimeType.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/createArrayFromMixed.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/emptyFunction.js"),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},"./node_modules/draft-js/node_modules/fbjs/lib/Keys.js":function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},"./node_modules/draft-js/node_modules/fbjs/lib/PhotosMimeType.js":function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},"./node_modules/draft-js/node_modules/fbjs/lib/Scroll.js":function(e,t,n){"use strict";function r(e,t){return!!t&&(e===t.documentElement||e===t.body)}var o={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=o},"./node_modules/draft-js/node_modules/fbjs/lib/Style.js":function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n("./node_modules/draft-js/node_modules/fbjs/lib/getStyleProperty.js"),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},"./node_modules/draft-js/node_modules/fbjs/lib/TokenizeUtil.js":function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},"./node_modules/draft-js/node_modules/fbjs/lib/URI.js":function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidi.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),l=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function c(e){var t=u(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=c(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var f={firstStrongChar:u,firstStrongCharDir:c,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=f},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1),"LTR"===e?"ltr":"rtl"}function s(e){o=e}var l={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:a(e)},setGlobalDir:s,initGlobalDir:function(){s("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}};e.exports=l},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiService.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidi.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&i=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return c(n[0],t);var o=n[0],i=n[1];return m(o)&&m(i)||r(!1),c(">="+o,t)&&c("<="+i,t)}(e=n[0].trim(),t)}function c(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return d(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(r,s);case">":return function(e,t){return 1===v(e,t)}(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return p(e,n)&&d(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function d(e,t){return-1===v(e,t)}function p(e,t){var n=v(e,t);return 1===n||0===n}function f(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function m(e){return!f(e).modifier}function g(e,t){for(var n=e.length;nt?1:e-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},"./node_modules/draft-js/node_modules/fbjs/lib/getElementPosition.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/getElementRect.js");e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},"./node_modules/draft-js/node_modules/fbjs/lib/getElementRect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js");e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},"./node_modules/draft-js/node_modules/fbjs/lib/getScrollPosition.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/getDocumentScrollElement.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/getUnboundedScrollPosition.js");e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},"./node_modules/draft-js/node_modules/fbjs/lib/getStyleProperty.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/camelize.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/hyphenate.js");function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},"./node_modules/draft-js/node_modules/fbjs/lib/getUnboundedScrollPosition.js":function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},"./node_modules/draft-js/node_modules/fbjs/lib/getViewportDimensions.js":function(e,t,n){"use strict";function r(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function o(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}i.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=i},"./node_modules/draft-js/node_modules/fbjs/lib/hyphenate.js":function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},"./node_modules/draft-js/node_modules/fbjs/lib/invariant.js":function(e,t,n){"use strict";var r=function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};e.exports=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i1)for(var r=1;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function S(){return!0}function x(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function E(e,t){return M(e,t,0)}function C(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A,k,D,T="function"==typeof Symbol&&Symbol.iterator,P=T||"@@iterator";function I(e){this.next=e}function N(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function L(){return{value:void 0,done:!0}}function R(e){return!!B(e)}function F(e){return e&&"function"==typeof e.next}function z(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(T&&e[T]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function H(e){return null==e?J():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?J().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():X(e)}function W(e){return null==e?J():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():$(e)}function V(e){return(null==e?J():a(e)?s(e)?e.entrySeq():e:$(e)).toSetSeq()}function G(e){this._array=e,this.size=e.length}function q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Y(e){this._iterable=e,this.size=e.length||e.size}function Q(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function J(){return A||(A=new G([]))}function X(e){var t=Array.isArray(e)?new G(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():R(e)?new Y(e).fromEntrySeq():"object"==typeof e?new q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function $(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new G(e):F(e)?new Q(e):R(e)?new Y(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new I((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:N(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,W(n).map((function(r,o){return e(t,r,o,n)}))):ie(n)?t.call(o,r,K(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?W(e).map(oe).toList():ie(e)?K(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ae(o[1],e)&&(n||ae(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ae(t,e.get(r,m)):!ae(e.get(r,m),t))return d=!1,!1}));return d&&e.size===p}function le(e,t){if(!(this instanceof le))return new le(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(k)return k;k=this}}function ue(e,t){if(!e)throw new Error(t)}function ce(e,t,n){if(!(this instanceof ce))return new ce(e,t,n);if(ue(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:N(e,o,n[t?r-o++:o++])}))},t(q,K),q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},q.prototype.has=function(e){return this._object.hasOwnProperty(e)},q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new I((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:N(e,a,n[a])}))},q.prototype[h]=!0,t(Y,W),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._iterable),r=0;if(F(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._iterable);if(!F(n))return new I(L);var r=0;return new I((function(){var t=n.next();return t.done?t:N(e,r++,t.value)}))},t(Q,W),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return N(e,o,r[o++])}))},t(le,W),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,t){return this.has(e)?this._value:t},le.prototype.includes=function(e){return ae(this._value,e)},le.prototype.slice=function(e,t){var n=this.size;return x(e,t,n)?this:new le(this._value,C(t,n)-E(e,n))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ce.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:N(e,i++,a)}))},ce.prototype.equals=function(e){return e instanceof ce?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(pe,de),t(fe,de),t(he,de),de.Keyed=pe,de.Indexed=fe,de.Set=he;var me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ge(n)}if("string"===t)return e.length>xe?function(e){var t=Me[e];return void 0===t&&(t=be(e),Ce===Ee&&(Ce=0,Me={}),Ce++,Me[e]=t),t}(e):be(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Oe&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++_e,1073741824&_e&&(_e=0),Oe)ve.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(e);if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function be(e){for(var t=0,n=0;n>>n),s=31&(0===n?r:r>>>n);return new Le(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:j(e);return o[t]=n,o}Ie[Pe]=!0,Ie.delete=Ie.remove,Ie.removeIn=Ie.deleteIn,Ne.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=tt)return function(e,t,n,r){e||(e=new w);for(var o=new ze(e,ye(n),[n,r]),i=0;i>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[$e(i&o-1)].get(e+5,t,n,r)},Le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),l=1<=nt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Re(e,i+1,a)}(e,p,u,s,h);if(c&&!h&&2===p.length&&qe(p[1^d]))return p[1^d];if(c&&h&&1===p.length&&qe(h))return h;var g=e&&e===this.ownerID,y=c?h?u:u^l:u|l,b=c?h?et(p,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Re.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),l=o===m,u=this.nodes,c=u[s];if(l&&!c)return this;var d=Ge(c,e,t+5,n,r,o,i,a);if(d===c)return this;var p=this.count;if(c){if(!d&&--p0&&r<32?ft(0,r,5,null,new lt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(ot,fe),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=_(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?bt(e,t).set(0,n):bt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=b(y);return t>=wt(e._capacity)?r=mt(r,e.__ownerID,0,t,n,i):o=mt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ft(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){bt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new lt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=gt(this,e);if(!i)for(var l=0;l>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=gt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ut,ct,dt={};function pt(e,t){var n=e._origin,r=e._capacity,o=wt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(l===u)return dt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>32&&(c=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(u===c)return dt;var n=t?--c:u++;s=a(l&&l[n],o-5,i+(n<>>n&31,l=e&&s0){var u=e&&e.array[s],c=mt(u,t,n-5,r,o,i);return c===u?e:((a=gt(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(v(i),a=gt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function gt(e,t){return t&&e&&t===e.ownerID?e:new lt(e?e.array.slice():[],t)}function yt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function bt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new lt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=5);c&&(a+=c,o+=c,s+=c,i+=c);for(var d=wt(i),p=wt(s);p>=1<d?new lt([],r):f;if(f&&p>d&&a5;g-=5){var y=d>>>g&31;m=m.array[y]=gt(m.array[y],r)}m.array[d>>>5&31]=f}if(s=p)a-=p,s-=p,l=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p>>l&31;if(b!==p>>>l&31)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&pi&&(i=u.size),a(l)||(u=u.map((function(e){return re(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),Xe(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function jt(e){return null==e?St():Ot(e)?e:St().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ot(e){return De(e)&&c(e)}function _t(e,t,n,r){var o=Object.create(jt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function St(){return ct||(ct=_t(We(),ht()))}function xt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===m){if(!l)return e;a.size>=32&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):_t(r,o)}function Et(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function kt(e){var t=Gt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new I((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Dt(e,t,n){var r=Gt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,m);return i===m?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new I((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return N(r,s,t.call(n,a[1],s,e),o)}))},r}function Tt(e,t){var n=Gt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=kt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=qt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Pt(e,t,n,r){var o=Gt(e);return r&&(o.has=function(r){var o=e.get(r,m);return o!==m&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,m);return i!==m&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new I((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return N(o,r?u:s++,c,i)}}))},o}function It(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),x(t,n,o))return e;var i=E(t,o),a=C(n,o);if(i!=i||a!=a)return It(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Gt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Z(e)&&s>=0&&(u.get=function(t,n){return(t=_(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:N(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Nt(e,t,n,r){var o=Gt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,u=0;return new I((function(){var e,i,c;do{if((e=s.next()).done)return r||1===o?e:N(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],l&&(l=t.call(n,c,i,a))}while(l);return 2===o?e:N(o,i,c,e)}))},o}function Lt(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?X(e):$(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||l(e)&&l(i))return i}var u=new G(o);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Rt(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(l,u){var c=this;l.__iterate((function(o,l){return(!t||u0}function Ut(e,t,r){var o=Gt(e);return o.size=new G(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),z(o?e.reverse():e)})),a=0,s=!1;return new I((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:N(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ht(e,t){return Z(e)?t:e.constructor(t)}function Kt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return Ae(e.size),O(e)}function Vt(e){return s(e)?r:l(e)?o:i}function Gt(e){return Object.create((s(e)?K:l(e)?W:V).prototype)}function qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function Yt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):jn(e,t)},gn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ae(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},gn.prototype.pop=function(){return this.slice(1)},gn.prototype.unshift=function(){return this.push.apply(this,arguments)},gn.prototype.unshiftAll=function(e){return this.pushAll(e)},gn.prototype.shift=function(){return this.pop.apply(this,arguments)},gn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):On()},gn.prototype.slice=function(e,t){if(x(e,t,this.size))return this;var n=E(e,this.size);if(C(t,this.size)!==this.size)return fe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(r,o)},gn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},gn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},gn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new I((function(){if(r){var t=r.value;return r=r.next,N(e,n++,t)}return{value:void 0,done:!0}}))},gn.isStack=yn;var bn,vn="@@__IMMUTABLE_STACK__@@",wn=gn.prototype;function jn(e,t,n,r){var o=Object.create(wn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function On(){return bn||(bn=jn(0))}function _n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}wn[vn]=!0,wn.withMutations=Ie.withMutations,wn.asMutable=Ie.asMutable,wn.asImmutable=Ie.asImmutable,wn.wasAltered=Ie.wasAltered,n.Iterator=I,_n(n,{toArray:function(){Ae(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ct(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Et(this,!0)},toMap:function(){return ke(this.toKeyedSeq())},toObject:function(){Ae(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return cn(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(s(this)?this.valueSeq():this)},toList:function(){return ot(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Ht(this,Lt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ae(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Ht(this,Pt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ae(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ae(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ht(this,Dt(this,e,t))},reduce:function(e,t,n){var r,o;return Ae(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ht(this,Tt(this,!0))},slice:function(e,t){return Ht(this,It(this,e,t,!0))},some:function(e,t){return!this.every(Mn(e),t)},sort:function(e){return Ht(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new G(e._cache);var t=e.toSeq().map(Cn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Mn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(S)},flatMap:function(e,t){return Ht(this,function(e,t,n){var r=Vt(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ht(this,Rt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Qt(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,m):m)===m)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(c(e)?jt():ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Vt(e);return o.map((function(t){return Ht(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,m)!==m},hasIn:function(e){return this.getIn(e,m)!==m},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(En).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?An(e):Tn)},minBy:function(e,t){return zt(this,t?An(t):Tn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ht(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ht(this,Nt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Mn(e),t)},sortBy:function(e,t){return Ht(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ht(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ht(this,function(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new I((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?2===r?e:N(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Mn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=me(t,3432918353),t=me(t<<15|t>>>-15,461845907),t=me(t<<13|t>>>-13,5),t=me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ge((t=me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Pn(ye(e),ye(t))|0}:function(e,t){r=r+Pn(ye(e),ye(t))|0}:t?function(e){r=31*r+ye(e)|0}:function(e){r=r+ye(e)|0}),r)}(this))}});var Sn=n.prototype;Sn[d]=!0,Sn[P]=Sn.values,Sn.__toJS=Sn.toArray,Sn.__toStringMapper=kn,Sn.inspect=Sn.toSource=function(){return this.toString()},Sn.chain=Sn.flatMap,Sn.contains=Sn.includes,function(){try{Object.defineProperty(Sn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),_n(r,{flip:function(){return Ht(this,kt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ae(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Ht(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ht(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var xn=r.prototype;function En(e,t){return t}function Cn(e,t){return[t,e]}function Mn(e){return function(){return!e.apply(this,arguments)}}function An(e){return function(){return-e.apply(this,arguments)}}function kn(e){return"string"==typeof e?JSON.stringify(e):e}function Dn(){return j(arguments)}function Tn(e,t){return et?-1:0}function Pn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return xn[p]=!0,xn[P]=Sn.entries,xn.__toJS=Sn.toObject,xn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+kn(e)},_n(o,{toKeyedSeq:function(){return new Et(this,!1)},filter:function(e,t){return Ht(this,Pt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Ht(this,Tt(this,!1))},slice:function(e,t){return Ht(this,It(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=E(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ht(this,1===n?r:r.concat(j(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Ht(this,Rt(this,e,!1))},get:function(e,t){return(e=_(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=_(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0&&n'+n+"";if("LINK"===o.type){var a=o.data.targetOption||"_self";return''+n+""}return"IMAGE"===o.type?''+o.data.alt+'':"EMBEDDED_LINK"===o.type?'':n}function s(e,t,n,r){var a=[],s=e.text;if(s.length>0)for(var l=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o0?e.map((function(e){switch(e){case"\n":return"
";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):""}(t.text);return e(n,(function(e,t){r=function(e,t){return"BOLD"===e?""+t+"":"ITALIC"===e?""+t+"":"UNDERLINE"===e?""+t+"":"STRIKETHROUGH"===e?""+t+"":"CODE"===e?""+t+"":"SUPERSCRIPT"===e?""+t+"":"SUBSCRIPT"===e?""+t+"":t}(e,r)})),r}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: "+e.COLOR+";"),e.BGCOLOR&&(n+="background-color: "+e.BGCOLOR+";"),e.FONTSIZE&&(n+="font-size: "+e.FONTSIZE+(/^\d+$/.test(e.FONTSIZE)?"px":"")+";"),e.FONTFAMILY&&(n+="font-family: "+e.FONTFAMILY+";"),""+t+""}return t}(n.styles,o)}function u(e,t,n,r){var o=[],i=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var l=i.indexOf(s)>=0?i.indexOf(s):i.length,u=i.substr(0,l);u&&u.length>0&&n.push({offset:r,length:u.length+a.length,type:"HASHTAG"}),r+=a.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r'+i+""),i}(e,t,n,r);0===u&&(c=function(e){if(e){for(var t=e,n=0;n=0&&" "===t[n];n-=1)t=t.substring(0,n)+" "+t.substring(n+1);return t}return e}(c)),o.push(c)})),o.join("")}function c(e,t,o,i,a){var s=[],l=[],d=void 0;return e.forEach((function(e){var p=!1;if(d?d.type!==e.type?(s.push("\n"),s.push("<"+n(e.type)+">\n")):d.depth===e.depth?l&&l.length>0&&(s.push(c(l,t,o,i,a)),l=[]):(p=!0,l.push(e)):s.push("<"+n(e.type)+">\n"),!p){s.push(""),s.push(u(e,t,o,a)),s.push("\n"),d=e}})),l&&l.length>0&&s.push(c(l,t,o,i,a)),s.push("\n"),s.join("")}return function(e,t,o,i){var s=[];if(e){var l=e.blocks,d=e.entityMap;if(l&&l.length>0){var p=[];if(l.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)p.push(e);else{if(p.length>0){var l=c(p,d,t,i);s.push(l),p=[]}var f=function(e,t,o,i,s){var l=[];if(function(e){return e.entityRanges.length>0&&(null==(t=e.text)||0===t.length||0===t.trim().length||"atomic"===e.type);var t}(e))l.push(a(t,e.entityRanges[0].key,void 0,s));else{var c=n(e.type);if(c){l.push("<"+c);var d=r(e.data);d&&l.push(' style="'+d+'"'),i&&l.push(' dir = "auto"'),l.push(">"),l.push(u(e,t,o,s)),l.push("")}}return l.push("\n"),l.join("")}(e,d,t,o,i);s.push(f)}var h})),p.length>0){var f=c(p,d,t,o,i);s.push(f),p=[]}}}return s.join("")}}()},"./node_modules/element-class/index.js":function(e,t){function n(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1||(r.push(e),t.className=r.join(" ")),r}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),o=n(r,e);return o>-1&&r.splice(o,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t)return n(t.className.split(" "),e)>-1},r.prototype.toggle=function(e){this.el&&(this.has(e)?this.remove(e):this.add(e))}},"./node_modules/element-resize-detector/src/browser-detector.js":function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]>4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},"./node_modules/element-resize-detector/src/collection-utils.js":function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",i+="."+o+" { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function l(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return s(window.document),{makeDetectable:function(e,s,c){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(c=e).__index__=-1,c.__text_cache__=""}function d(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),c(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return mr})),n.d(t,"Option",(function(){return P})),n.d(t,"Dropdown",(function(){return F})),n.d(t,"DropdownOption",(function(){return W})),n.d(t,"stopPropagation",(function(){return O})),n.d(t,"getFirstIcon",(function(){return S})),n.d(t,"openlink",(function(){return Tn}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),l=n(4),u=n(2),c=n.n(u);function d(){var e=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach((function(e){e(t)}))},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",(function(){e.editorFlag=!0})),document&&(document.addEventListener("click",(function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.closeAllModals()})))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter((function(e){return e!==t}))},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}}function p(){var e=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}}var f,h=[],m={onKeyDown:function(e){h.forEach((function(t){t(e)}))},registerCallBack:function(e){h.push(e)},deregisterCallBack:function(e){h=h.filter((function(t){return t!==e}))}},g=function(){f=!0},y=function(){f=!1},b=function(){return f};function v(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function w(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function j(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function O(e){e.stopPropagation()}function _(e,t){if(e&&void 0===t)return e;var n={};return w(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=_(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var S=function(e){return e[e.options[0]].icon},x=n(6),E=n.n(x),C=n(5);function M(e){return(M="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 A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"merge";return{type:y,item:e,mode:t}},k=function(e){return{type:i,adding:e}},D=function(e){return{type:h,id:Object(r.isObject)(e)?e.value:e}},T=function(e){return{type:f,mediaType:e}},P=function(e){return{type:s,editing:e}},I=function(e,t){return{type:g,owner:e,settings:t}},N=function(e){var t=e.path,n=e.owner;return{type:l,path:t,owner:void 0===n?"geostory":n}},L=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?o.a.GEOSTORY:n,i=e.owner;return{type:b,resource:t,sourceType:r,owner:void 0===i?"geostory":i}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory";return{type:v,mediaType:e,owner:t}},F=function(e){return{type:w,loading:e}},z=function(){return{type:j}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return h})),n.d(t,"getFeatureSimple",(function(){return m})),n.d(t,"getCapabilitiesURL",(function(){return g})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return b})),n.d(t,"getCapabilities",(function(){return v})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return w})),n.d(t,"describeFeatureType",(function(){return j}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./node_modules/url/url.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s);function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=a.a.parse(e,!0);return a.a.format(l()({},o,{query:l()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,i=u(n,["version"]),s=a.a.parse(e,!0);return a.a.format(l()({},s,{query:l()(p({service:"WFS",typeName:t,version:o,request:"GetFeature"},i),s.query)}))},b=function(e,t,n){return o.a.get(y(e,t,n))},v=function(e){return o.a.get(g(e))},w=function(e,t){var r=a.a.parse(e,!0),i=a.a.format(l()({},r,{query:l()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(i).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},j=function(e,t){return o.a.get(h(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/api/WMS.js":function(e,t,n){"use strict";var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n.n(i),s=n("./node_modules/object-assign/index.js"),l=n.n(s),u=n("./node_modules/xml2js/lib/xml2js.js"),c=n.n(u),d=n("./MapStore2/web/client/libs/ajax.js"),p=n.n(d),f=n("./MapStore2/web/client/utils/ConfigUtils.js"),h=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=(n.WMS_Capabilities||n.WMT_MS_Capabilities||{}).Capability,u=(n.WMS_Capabilities||n.WMT_MS_Capabilities||{}).Service,c=O(s),d=s.Layer&&(s.Layer.SRS||s.Layer.CRS)||[],p=s.Layer&&s.Layer.Attribution&&w(s.Layer.Attribution),f=s.Request&&s.Request.GetMap&&s.Request.GetMap.Format||[],h=j(s),m=a.a.isArray(h)?h:[h],g=m.filter((function(e){return!i||-1!==e.Name.toLowerCase().indexOf(i.toLowerCase())||e.Title&&-1!==e.Title.toLowerCase().indexOf(i.toLowerCase())||e.Abstract&&-1!==e.Abstract.toLowerCase().indexOf(i.toLowerCase())}));return{numberOfRecordsMatched:g.length,numberOfRecordsReturned:Math.min(o,g.length),nextRecord:r+Math.min(o,g.length)+1,service:u,layerOptions:{version:(null===(e=n.WMS_Capabilities||n.WMT_MS_Capabilities)||void 0===e||null===(t=e.$)||void 0===t?void 0:t.version)||"1.3.0"},records:g.filter((function(e,t){return t>=r-1&&t2&&void 0!==arguments[2]?arguments[2]:{},i=o.a.parse(e,!0),a=o.a.format(l()({},i,{query:l()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},i.query,r.query||{})}));return new Promise((function(e){Promise.all([n.e(1),n.e(14)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WMS.js").unmarshaller;e(p.a.get(v(a)).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value&&n.value.layerDescription&&n.value.layerDescription[0]})))}.bind(null,n)).catch(n.oe)}))},getRecords:S,describeLayers:function(e,t){var n=o.a.parse(e,!0),r=o.a.format(l()({},n,{query:l()({service:"WMS",version:"1.1.1",layers:t,request:"DescribeLayer"},n.query)}));return p.a.get(v(r)).then((function(e){var t;return c.a.parseString(e.data,{explicitArray:!1},(function(e,n){t=n&&n.WMS_DescribeLayerResponse&&n.WMS_DescribeLayerResponse.LayerDescription})),(t=Array.isArray(t)?t:[t]).map((function(e){return g(g({},e&&e.$||{}),{},{layerName:e&&e.$&&e.$.name,query:g({},e&&e.query&&e.query.$||{})})}))}))},textSearch:function(e,t,n,r){return S(e,t,n,r)},parseLayerCapabilities:function e(t,n,r){return a.a.castArray(r||a.a.get(t,"capability.layer.layer")).reduce((function(r,o){return r||(!o.name&&o.layer?e(t,n,a.a.castArray(o.layer)):2===n.name.split(":").length&&o.name&&2===o.name.split(":").length?n.name===o.name&&o:o.name&&2===o.name.split(":").length?n.name===o.name.split(":")[1]&&o:2===n.name.split(":").length?n.name.split(":")[1]===o.name&&o:n.name===o.name&&o)}),null)},getBBox:function(e,t){for(var n=e,r=n.EX_GeographicBoundingBox||n.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(n.BoundingBox)||n.LatLonBoundingBox&&n.LatLonBoundingBox.$||n.latLonBoundingBox;!r&&n.Layer&&n.Layer.length;)r=(n=n.Layer[0]).EX_GeographicBoundingBox||n.exGeographicBoundingBox||Object(h.getWMSBoundingBox)(n.BoundingBox)||n.LatLonBoundingBox&&n.LatLonBoundingBox.$||n.latLonBoundingBox;r||(r={westBoundLongitude:-180,southBoundLatitude:-90,eastBoundLongitude:180,northBoundLatitude:90});var o={extent:[r.westBoundLongitude||r.minx,r.southBoundLatitude||r.miny,r.eastBoundLongitude||r.maxx,r.northBoundLatitude||r.maxy],crs:"EPSG:4326"};return t?{crs:o.crs,bounds:{minx:o.extent[0],miny:o.extent[1],maxx:o.extent[2],maxy:o.extent[3]}}:o},reset:function(){Object.keys(b).forEach((function(e){delete b[e]}))}};t.a=x},"./MapStore2/web/client/api/identify.jsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/rxjs/Rx.js"),i=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/libs/ajax.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/CoordinatesUtils.js");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:{},c=a.attachJSON,d=a.itemId,f=void 0===d?null:d,h=function(t){return o.Observable.defer((function(){return s.a.get(e,{params:t})}))},m=function(t){return Object(i.g)(n,e,t)},g=Object(i.g)(n,e,t)?m:h;return c&&"application/json"!==t.info_format&&"application/json"!==t.outputFormat?o.Observable.forkJoin(g(t),g(p(p({},t),{},{info_format:"application/json"})).map((function(e){return e.data})).catch((function(){return o.Observable.of({})}))).map((function(e){var t=u(e,2),n=t[0],o=t[1];return p(p({},n),{},{features:o&&o.features&&o.features.filter((function(e){return!!Object(r.isNil)(f)||e.id===f})),featuresCrs:o&&o.crs&&Object(l.parseURN)(o.crs)})})):g(t).map((function(e){return e.data})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(r.isString)(e)?e:p(p({},e),{},{features:e.features&&e.features.filter((function(e){return!f||e.id===f}))}),features:e.features&&e.features.filter((function(e){return!f||e.id===f})),featuresCrs:e&&e.crs&&Object(l.parseURN)(e.crs)}}))}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n0?" selected":"",u=this.props.node.loadingError?" group-error":"",c=s.isDraggable?o.a.createElement(W.a,{key:"grabTool",tooltip:"toc.grabGroupIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=o.a.createElement("div",{className:"toc-default-group-head"},c,this.renderVisibility(u),o.a.createElement(T,{tooltipOptions:this.props.tooltipOptions,tooltip:this.props.titleTooltip,node:this.props.node,currentLocale:this.props.currentLocale,onClick:this.props.onToggle,onSelect:this.props.onSelect})),p=o.a.createElement(H,{level:this.props.level+1,onSort:this.props.onSort,onError:this.props.onError,setDndState:this.props.setDndState,position:"collapsible"},this.props.children);return this.props.node.showComponent&&!this.props.node.hide?o.a.createElement(i.a,G({className:(this.props.isDragging||this.props.node.placeholder?"is-placeholder ":"")+"toc-default-group toc-group-"+this.props.level+l+u,sortableStyle:this.props.sortableStyle,style:this.props.style,type:"group"},s),n(a(this.props.isDraggable?r(d):d)),this.props.isDragging||this.props.node.placeholder?null:p):null}}])&&Q(t.prototype,n),r&&Q(t,r),s}(o.a.Component);te(ne,"propTypes",{node:s.a.object,style:s.a.object,sortableStyle:s.a.object,onToggle:s.a.func,level:s.a.number,onSort:s.a.func,onError:s.a.func,propertiesChangeHandler:s.a.func,groupVisibilityCheckbox:s.a.bool,visibilityCheckType:s.a.string,currentLocale:s.a.string,selectedNodes:s.a.array,onSelect:s.a.func,titleTooltip:s.a.bool,tooltipOptions:s.a.object,setDndState:s.a.func,connectDragSource:s.a.func,connectDragPreview:s.a.func,connectDropTarget:s.a.func,isDraggable:s.a.bool,isDragging:s.a.bool,isOver:s.a.bool}),te(ne,"defaultProps",{node:{},onToggle:function(){},style:{marginBottom:"16px",cursor:"pointer"},sortableStyle:{},propertiesChangeHandler:function(){},groupVisibilityCheckbox:!1,visibilityCheckType:"glyph",level:1,currentLocale:"en-US",joinStr:" - ",selectedNodes:[],onSelect:function(){},titleTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e},isDraggable:!1,isDragging:!1,isOver:!1});t.a=Object(l.a)("LayerOrGroup",ne)},"./MapStore2/web/client/components/TOC/DefaultLayer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/TOC/Node.jsx"),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/TOC/enhancers/draggableComponent.jsx"),d=n("./MapStore2/web/client/components/TOC/fragments/VisibilityCheck.jsx"),p=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),f=n("./MapStore2/web/client/utils/TOCUtils.js");n("./MapStore2/web/client/components/TOC/fragments/css/toctitle.css");function h(e){return(h="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 m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var te=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js");function ne(e){return(ne="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 re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(){return(oe=Object.assign||function(e){for(var t=1;t0?" selected":"",l="Error"===this.props.node.loadingError?" layer-error":"",u="Warning"===this.props.node.loadingError?" layer-warning":"",c=i.isDraggable?o.a.createElement(M.a,{key:"grabTool",tooltip:"toc.grabLayerIcon",className:"toc-grab",ref:"target",glyph:"menu-hamburger"}):o.a.createElement("span",{className:"toc-layer-tool toc-grab"}),d=!!this.props.node.dummy,p=!d&&this.filterLayers(this.props.node)?this.renderNode(c,a,s,l,u,d,i):null,f=o.a.createElement("div",{style:d?{opacity:0,boxShadow:"none"}:{},className:"toc-list-item"},!this.props.filterText||this.props.filterText&&d?this.renderNode(c,a,s,l,u,d,i):p);return!1!==i.node.showComponent&&!i.node.hide&&this.props.filter(this.props.node)?r(i.isDraggable&&!d?n(f):f):null}}])&&ae(t.prototype,n),r&&ae(t,r),a}(o.a.Component);pe(me,"propTypes",{node:a.a.object,propertiesChangeHandler:a.a.func,onToggle:a.a.func,onContextMenu:a.a.func,onSelect:a.a.func,style:a.a.object,sortableStyle:a.a.object,activateLegendTool:a.a.bool,activateOpacityTool:a.a.bool,indicators:a.a.array,visibilityCheckType:a.a.string,currentZoomLvl:a.a.number,scales:a.a.array,additionalTools:a.a.array,legendOptions:a.a.object,currentLocale:a.a.string,selectedNodes:a.a.array,filterText:a.a.string,onUpdateNode:a.a.func,titleTooltip:a.a.bool,filter:a.a.func,showFullTitleOnExpand:a.a.bool,hideOpacityTooltip:a.a.bool,tooltipOptions:a.a.object,connectDragPreview:a.a.func,connectDragSource:a.a.func,connectDropTarget:a.a.func,isDraggable:a.a.bool,isDragging:a.a.bool,isOver:a.a.bool,language:a.a.string}),pe(me,"defaultProps",{style:{},sortableStyle:{},propertiesChangeHandler:function(){},onToggle:function(){},onContextMenu:function(){},onSelect:function(){},activateLegendTool:!1,activateOpacityTool:!0,indicators:[],visibilityCheckType:"glyph",additionalTools:[],currentLocale:"en-US",joinStr:" - ",selectedNodes:[],filterText:"",onUpdateNode:function(){},filter:function(){return!0},titleTooltip:!1,showFullTitleOnExpand:!1,hideOpacityTooltip:!1,connectDragPreview:function(e){return e},connectDragSource:function(e){return e},connectDropTarget:function(e){return e}});t.a=Object(c.a)("LayerOrGroup",me)},"./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return a.a.Children.map(this.props.children,(function(n){if(t(n)){var r=(n.type.inheritedPropTypes||["node"]).reduce((function(t,n){return e.props[n]?c()(t,p({},n,e.props[n])):t}),{});return a.a.cloneElement(n,r)}return null}))},render:function(){var e=void 0===this.props.node.expanded||this.props.node.expanded,t=this.props.type,n=c()({},this.props.style,this.props.styler(this.props.node)),r=e&&"Error"!==this.props.node.loadingError?this.renderChildren((function(e){return e&&"collapsible"===e.props.position})):[];return this.props.animateCollapse&&(r=a.a.createElement(d.CSSTransitionGroup,{transitionName:"TOC-Node",transitionEnterTimeout:250,transitionLeaveTimeout:250},r)),a.a.createElement("div",{key:this.props.node.name,className:(e?t+"-expanded":t+"-collapsed")+" "+this.props.className,style:this.props.node.dummy?{padding:0}:n},this.renderChildren((function(e){return e&&"collapsible"!==e.props.position})),r)}});t.a=f},"./MapStore2/web/client/components/TOC/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./MapStore2/node_modules/lodash/isArray.js"),u=n.n(l),c=n("./MapStore2/node_modules/lodash/flatten.js"),d=n.n(c);function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;ta&&d>2*p)return;da&&d>f)return;r.sortIndex=e.sortIndex,r.newParentNodeId=e.parentNodeId,r.illegalDrop=null}e.setDndState&&e.setDndState(r)}}}},p=function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver({shallow:!0})}};t.a=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),Object(a.compose)(Object(i.DragSource)(e,u,c),Object(i.DropTarget)(e,d,p)),Object(a.compose)(Object(i.DropTarget)(e,d,p))).apply(void 0,n)}},"./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],o=Object.keys(d.options).reduce((function(e,t){return a(a({},e),{},s({},t,"opacity"!==t||c[t]?c[t]:1))}),{});Object(r.isEqual)(o,d.options)||e?(Object(r.isArray)(t)&&t.forEach((function(e){Object(r.isFunction)(e)&&e()})),u(d.node,d.nodeType,a(a({},d.options),c)),f(),m(!1),i({}),n({})):m(!0)}},onSave:function(e){var t=e.onUpdateInitialSettings,n=void 0===t?function(){}:t,o=e.onUpdateOriginalSettings,i=void 0===o?function(){}:o,a=e.onHideSettings,s=void 0===a?function(){}:a,l=e.onShowAlertModal,u=void 0===l?function(){}:l;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(r.isArray)(e)&&e.forEach((function(e){Object(r.isFunction)(e)&&e()})),s(),u(!1),i({}),n({})}}}),Object(o.lifecycle)({componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,s=void 0===i?function(){}:i;o({}),s(a({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,o=void 0===n?{}:n,i=t.onRetrieveLayerData,a=void 0===i?function(){}:i;!o.expanded&&e.settings&&e.settings.expanded&&Object(r.isNil)(e.element.description)&&"wms"===e.element.type&&a(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,s=t.onUpdateOriginalSettings,l=void 0===s?function(){}:s,u=t.onUpdateInitialSettings,c=void 0===u?function(){}:u,d=t.onSetTab,p=void 0===d?function(){}:d;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),c(a({},e.element)),p(r))}})),c=Object(o.compose)(l,u)},"./MapStore2/web/client/components/TOC/fragments/LayersTool.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx");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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;nt.state.containerWidth})),t.containerRef=o.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.containerRef.current&&this.containerRef.current.clientWidth;this.setState(function(e){for(var t=1;t=12?n:""))})})),_(j(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),_(j(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(g(g({},t.state),{},{opacity:Object(r.isNil)(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:g(g({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!Object(r.isNil)(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),_(j(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),_(j(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&Object(r.isNumber)(t.state.legendOptions.legendHeight)&&Object(r.isNumber)(t.state.legendOptions.legendWidth)})),t.containerRef=s.a.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e=this;return s.a.createElement(l.Grid,{fluid:!0,className:"fluid-container "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.format"})),s.a.createElement(u.DropdownList,{key:"format-dropdown",data:this.props.formats||["image/png","image/png8","image/jpeg","image/vnd.jpeg-png","image/gif"],value:this.props.element&&this.props.element.format||"image/png",onChange:function(t){e.props.onChange("format",t)}}))),s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"WMS Layer tile size"})),s.a.createElement(u.DropdownList,{key:"wsm-layersize-dropdown",data:[256,512],value:this.props.element&&this.props.element.tileSize||256,onChange:function(t){e.props.onChange("tileSize",t)}})))),s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement(l.FormGroup,null,s.a.createElement(l.ControlLabel,null,this.props.opacityText," %"),s.a.createElement(c.a,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(t){return e.onChange("opacity",t)}})))),"wms"===this.props.element.type&&s.a.createElement(l.Row,null,s.a.createElement(l.Col,{xs:12},s.a.createElement("hr",null),s.a.createElement(l.FormGroup,null,s.a.createElement(l.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(t){e.props.onChange("transparent",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.transparent"})),s.a.createElement(l.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(t){return e.props.onChange("tiled",t.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},s.a.createElement(d.default,{msgId:"layerProperties.cached"})),s.a.createElement(l.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(t){return e.props.onChange("singleTile",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&s.a.createElement(l.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(t){return e.props.onChange("localizedLayerStyles",t.target.checked)}},s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",s.a.createElement(p.a,{text:s.a.createElement(d.default,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})))),s.a.createElement("div",{className:"legend-options"},s.a.createElement(l.Col,{xs:12,className:"legend-label"},s.a.createElement("label",{key:"legend-options-title",className:"control-label"},s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.title"}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"first-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendWidth")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendWidth"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendWidth",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,sm:6,className:"second-selectize"},s.a.createElement(l.FormGroup,{validationState:this.getValidationState("legendHeight")},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendHeight"})),s.a.createElement(c.a,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(t){return e.onChange("legendHeight",t)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),s.a.createElement(l.Col,{xs:12,className:"legend-preview"},s.a.createElement(l.ControlLabel,null,s.a.createElement(d.default,{msgId:"layerProperties.legendOptions.legendPreview"})),s.a.createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},s.a.createElement(f.a,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&y(t.prototype,n),o&&y(t,o),a}(s.a.Component);_(S,"propTypes",{opacityText:i.a.node,element:i.a.object,formats:i.a.array,settings:i.a.object,onChange:i.a.func,containerWidth:i.a.number,currentLocaleLanguage:i.a.string,isLocalizedLayerStylesEnabled:i.a.bool}),_(S,"defaultProps",{onChange:function(){},opacityText:s.a.createElement(d.default,{msgId:"opacity"})})},"./MapStore2/web/client/components/TOC/fragments/settings/General.jsx":function(e,t,n){"use strict";n("./node_modules/react-selectize/themes/index.css");var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react/index.js"),u=n.n(l),c=n("./node_modules/react-bootstrap/es/index.js"),d=n("./node_modules/react-selectize/src/index.js"),p=n("./node_modules/react-spinkit/dist/index.js"),f=n.n(p),h=n("./MapStore2/web/client/utils/LocaleUtils.js"),m=n("./MapStore2/web/client/utils/TOCUtils.js"),g=n("./MapStore2/web/client/components/I18N/Message.jsx"),y=n("./node_modules/recompose/es/Recompose.js"),b=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),v=Object(y.compose)(Object(y.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),Object(y.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),Object(y.withState)("layerName","setLayerName",""),Object(y.withState)("editingLayerName","setEditingLayerName",!1),Object(y.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),Object(y.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),Object(y.withState)("layerError","setLayerError"),Object(y.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,a=e.setOverlayTriggerDelayID,s=void 0===a?function(){}:a,l=e.setEnableOverlayTrigger,u=void 0===l?function(){}:l;return function(e){n!==e&&(r&&clearTimeout(r),u(!1),s(setTimeout((function(){u(!0)}),250))),i(e)}}}),Object(y.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,a=void 0===i?function(){}:i,s=e.setWaitingForLayerLoading,l=void 0===s?function(){}:s,u=e.setEditingLayerName,c=void 0===u?function(){}:u,d=e.setLayerError,p=void 0===d?function(){}:d;r&&n.loading?(l(!1),a(!0)):o&&!n.loading&&(a(!1),p(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,a=void 0!==i&&i,s=e.layerName,l=void 0===s?"":s,d=e.editingLayerName,p=void 0!==d&&d,h=e.layerError,m=e.waitingForLayerLoading,y=void 0!==m&&m,v=e.waitingForLayerLoad,w=void 0!==v&&v,j=e.setLayerName,O=void 0===j?function(){}:j,_=e.setWaitingForLayerLoading,S=void 0===_?function(){}:_,x=e.setEditingLayerName,E=void 0===x?function(){}:x,C=e.onUpdateEntry,M=void 0===C?function(){}:C,A=u.a.createElement(c.InputGroup.Addon,{className:"btn",onClick:function(){p?l!==o.name?(M("name",{target:{value:l}}),a?S(!0):E(!1)):E(!1):E(!0)}},y||w?u.a.createElement(f.a,{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):u.a.createElement(c.Glyphicon,{glyph:p?"ok":"pencil"}));return u.a.createElement(c.FormGroup,{validationState:!h||w||y?null:"error"},u.a.createElement(c.ControlLabel,null,u.a.createElement(g.default,{msgId:"layerProperties.name"})),u.a.createElement(c.InputGroup,null,u.a.createElement(c.FormControl,{value:l,key:"name",type:"text",disabled:!p,onChange:function(e){return O(e.target.value)}}),n?(t=A,u.a.createElement(b.a,{placement:"top",overlay:u.a.createElement(c.Tooltip,{id:"tooltip-layer-name-edit"},u.a.createElement(g.default,{msgId:"layerProperties.tooltip.".concat(p?"confirm":"edit","LayerName")}))},t)):A))}));function w(e){return(w="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 j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;tMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),a.a.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&a.a.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&d(t.prototype,n),r&&d(t,r),i}(a.a.Component);y(b,"propTypes",{title:o.a.string,index:o.a.number,size:o.a.number,container:o.a.oneOfType([o.a.object,o.a.func]),useButtons:o.a.bool,onPrevious:o.a.func,onNext:o.a.func,btnClassName:o.a.string}),y(b,"defaultProps",{useButtons:!0}),t.a=b},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),i=Object(r.withHandlers)({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),a=Object(r.defaultProps)({format:Object(o.f)(),validator:o.i})},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function l(e){return(l="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,v=/([^<]*<\/style>)/i,w=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&&d(e,t)}(a,e);var t,n,r,i=p(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=v.exec(e),n=t&&2===t.length?v.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(b,"$1").trim();return o.a.createElement(s.a,{html:n+r})}}])&&c(t.prototype,n),r&&c(t,r),a}(o.a.Component);m=w,g="propTypes",y={response:a.a.string},g in m?Object.defineProperty(m,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[g]=y,t.a=w},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/utils/TemplateUtils.js"),l=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),u=n("./node_modules/prop-types/index.js"),c=n.n(u),d=n("./MapStore2/web/client/utils/StringUtils.js");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=x[t]||x.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!F&&o.a.createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:L[0],height:L[1]}}))}));t.a=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,s=e.autoplay,l=e.inView,u=e.description,d=e.showCaption,p=e.caption,f=void 0===p?u:p,m=e.thumbnail,y=e.credits,b=e.controls,v=void 0===b||b,w=e.fit,j=e.loop,O=e.muted,_=e.onPlay,S=void 0===_?function(){}:_,x=e.mode,E=e.containerInView,C=(void 0===E||E)&&l,M=h(Object(r.useState)(!1),2),A=M[0],k=M[1],D=function(e){k(e),S(e)};return Object(r.useEffect)((function(){x===c.f.EDIT&&D(!1)}),[x]),Object(r.useEffect)((function(){x===c.f.VIEW&&C&&(s||"cover"===w)&&D(!0)}),[C,s,w,x]),Object(r.useEffect)((function(){x===c.f.VIEW&&!C&&A&&D(!1)}),[C,A,x]),o.a.createElement("div",{id:t,key:"".concat(t,"-").concat(w,"-").concat(x),className:"ms-media ms-media-video"},o.a.createElement(g,{src:n,play:A&&x===c.f.VIEW,resolution:a,thumbnail:m,controls:v&&x===c.f.VIEW,onPlay:D,fit:w,loop:j,muted:O}),y&&o.a.createElement("div",{className:"ms-media-credits"},o.a.createElement("small",null,y)),d&&f&&o.a.createElement("div",{className:"ms-media-caption"},o.a.createElement("small",null,f)))}},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js");function l(e){return(l="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 u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),s=n.n(a),l=n("./MapStore2/web/client/utils/ConfigUtils.js"),u=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(u,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?l.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:s.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:s.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/openlayers/img/marker-icon.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAGmklEQVRYw7VXeUyTZxjvNnfELFuyIzOabermMZEeQC/OclkO49CpOHXOLJl/CAURuYbQi3KLgEhbrhZ1aDwmaoGqKII6odATmH/scDFbdC7LvFqOCc+e95s2VG50X/LLm/f4/Z7neY/ne18aANCmAr5E/xZf1uDOkTcGcWR6hl9247tT5U7Y6SNvWsKT63P58qbfeLJG8M5qcgTknrvvrdDbsT7Ml+tv82X6vVxJE33aRmgSyYtcWVMqX97Yv2JvW39UhRE2HuyBL+t+gK1116ly06EeWFNlAmHxlQE0OMiV6mQCScusKRlhS3QLeVJdl1+23h5dY4FNB3thrbYboqptEFlphTC1hSpJnbRvxP4NWgsE5Jyz86QNNi/5qSUTGuFk1gu54tN9wuK2wc3o+Wc13RCmsoBwEqzGcZsxsvCSy/9wJKf7UWf1mEY8JWfewc67UUoDbDjQC+FqK4QqLVMGGR9d2wurKzqBk3nqIT/9zLxRRjgZ9bqQgub+DdoeCC03Q8j+0QhFhBHR/eP3U/zCln7Uu+hihJ1+bBNffLIvmkyP0gpBZWYXhKussK6mBz5HT6M1Nqpcp+mBCPXosYQfrekGvrjewd59/GvKCE7TbK/04/ZV5QZYVWmDwH1mF3xa2Q3ra3DBC5vBT1oP7PTj4C0+CcL8c7C2CtejqhuCnuIQHaKHzvcRfZpnylFfXsYJx3pNLwhKzRAwAhEqG0SpusBHfAKkxw3w4627MPhoCH798z7s0ZnBJ/MEJbZSbXPhER2ih7p2ok/zSj2cEJDd4CAe+5WYnBCgR2uruyEw6zRoW6/DWJ/OeAP8pd/BGtzOZKpG8oke0SX6GMmRk6GFlyAc59K32OTEinILRJRchah8HQwND8N435Z9Z0FY1EqtxUg+0SO6RJ/mmXz4VuS+DpxXC3gXmZwIL7dBSH4zKE50wESf8qwVgrP1EIlTO5JP9Igu0aexdh28F1lmAEGJGfh7jE6ElyM5Rw/FDcYJjWhbeiBYoYNIpc2FT/SILivp0F1ipDWk4BIEo2VuodEJUifhbiltnNBIXPUFCMpthtAyqws/BPlEF/VbaIxErdxPphsU7rcCp8DohC+GvBIPJS/tW2jtvTmmAeuNO8BNOYQeG8G/2OzCJ3q+soYB5i6NhMaKr17FSal7GIHheuV3uSCY8qYVuEm1cOzqdWr7ku/R0BDoTT+DT+ohCM6/CCvKLKO4RI+dXPeAuaMqksaKrZ7L3FE5FIFbkIceeOZ2OcHO6wIhTkNo0ffgjRGxEqogXHYUPHfWAC/lADpwGcLRY3aeK4/oRGCKYcZXPVoeX/kelVYY8dUGf8V5EBRbgJXT5QIPhP9ePJi428JKOiEYhYXFBqou2Guh+p/mEB1/RfMw6rY7cxcjTrneI1FrDyuzUSRm9miwEJx8E/gUmqlyvHGkneiwErR21F3tNOK5Tf0yXaT+O7DgCvALTUBXdM4YhC/IawPU+2PduqMvuaR6eoxSwUk75ggqsYJ7VicsnwGIkZBSXKOUww73WGXyqP+J2/b9c+gi1YAg/xpwck3gJuucNrh5JvDPvQr0WFXf0piyt8f8/WI0hV4pRxxkQZdJDfDJNOAmM0Ag8jyT6hz0WGXWuP94Yh2jcfjmXAGvHCMslRimDHYuHuDsy2QtHuIavznhbYURq5R57KpzBBRZKPJi8eQg48h4j8SDdowifdIrEVdU+gbO6QNvRRt4ZBthUaZhUnjlYObNagV3keoeru3rU7rcuceqU1mJBxy+BWZYlNEBH+0eH4vRiB+OYybU2hnblYlTvkHinM4m54YnxSyaZYSF6R3jwgP7udKLGIX6r/lbNa9N6y5MFynjWDtrHd75ZvTYAPO/6RgF0k76mQla3FGq7dO+cH8sKn0Vo7nDllwAhqwLPkxrHwWmHJOo+AKJ4rab5OgrM7rVu8eWb2Pu0Dh4eDgXoOfvp7Y7QeqknRmvcTBEyq9m/HQQSCSz6LHq3z0yzsNySRfMS253wl2KyRDbcZPcfJKjZmSEOjcxyi+Y8dUOtsIEH6R2wNykdqrkYJ0RV92H0W58pkfQk7cKevsLK10Py8SdMGfXNXATY+pPbyJR/ET6n9nIfztNtZYRV9XniQu9IA2vOVgy4ir7GCLVmmd+zjkH0eAF9Po6K61pmCXHxU5rHMYd1ftc3owjwRSVRzLjKvqZEty6cRUD7jGqiOdu5HG6MdHjNcNYGqfDm5YRzLBBCCDl/2bk8a8gdbqcfwECu62Fg/HrggAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/misc/Button.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/classnames/index.js"),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,d=u(e,["disabled","className","onClick"]);return i.a.createElement(c,l({ref:t,className:n?s()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},d),d.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),d=n("./MapStore2/web/client/components/I18N/Message.jsx"),p=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0})),S(O(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=l.a.createElement("div",{id:this.props.id,style:g({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},l.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),l.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?l.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):l.a.createElement("span",null)),n=this.props.draggable?l.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?l.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&b(t.prototype,n),r&&b(t,r),a}(l.a.Component);S(x,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),S(x,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=x},"./MapStore2/web/client/components/misc/EmptyView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,a=void 0===r?{}:r,l=e.contentStyle,u=void 0===l?{}:l,c=e.imageStyle,d=void 0===c?{}:c,p=e.glyph,f=void 0===p?"info-sign":p,h=e.iconFit,m=e.title,g=e.tooltip,y=e.tooltipId,b=e.description,v=e.content;return o.a.createElement("div",{className:"empty-state-container",style:s({height:h?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:s({height:h?"100%":void 0},a)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:s({height:h?"100%":void 0},d)},o.a.createElement(i.a,{iconFit:h,tooltip:g,tooltipId:y,glyph:f})):null,m?o.a.createElement("h1",{key:"title"},m):null,b?o.a.createElement("p",{key:"description",className:"empty-state-description"},b):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:u},v))}},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/web/client/utils/MapInfoUtils.js"),l=n("./node_modules/react-select/dist/react-select.es.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?"full":e>40?"medium":"small"},d=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:l({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};d.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=d},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-container-dimensions/lib/index.js"),a=n.n(i),s=n("./MapStore2/web/client/components/misc/Loader.jsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0?Math.min(i,l):i),p=n||(l>0?Math.min(i,l):i),f=Math.min(d,p);return o.a.createElement(s.a,{size:f,style:u({padding:f/10,margin:"auto",display:"flex"},c)})})))}},"./MapStore2/web/client/components/misc/Overlay.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx");t.a=Object(r.a)(n("./node_modules/react-bootstrap/es/index.js").Overlay)},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-overlays/es/index.js"),i=Object(r.a)(o.a);t.a=i},"./MapStore2/web/client/components/misc/Slider.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");t.a=Object(o.shouldUpdate)((function(e,t){return!Object(r.isEqual)(e.start,t.start)||e.disabled!==t.disabled}))(n("./node_modules/react-nouislider/dist/react-nouislider.common.js"))},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),s.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/misc/EmptyView.jsx");t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/loadingState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/misc/LoadingView.jsx");function s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a;return Object(i.branch)(e,(function(){return function(e){var r=e.loaderProps;return o.a.createElement(n,s({},t,r))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/utils/LocaleUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return c(c({},n),{},d({},r,e[r]&&Object(s.e)(t,e[r])))}}(r,n),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},d({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},d({},o,e[o]&&p(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(s.compose)(Object(s.getContext)({messages:i.a.object}),Object(s.mapProps)((function(n){var r=n.messages,o=l(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,u=void 0===i?"top":i,d=t.tooltipTrigger,p=t.keyProp,f=t.idDropDown,h=t.args,m=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(s.a,{trigger:d,id:f,key:p,placement:u,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+p},r?o.a.createElement(l.default,{msgId:r,msgParams:{data:h}}):n)},o.a.createElement(e,m))}}),(function(e){return function(t){return o.a.createElement(e,Object(u.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withControllableState.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js");t.a=function(e,t,n){return Object(r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e[t]}),Object(r.withState)(e,t,n))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),s=n.n(a),l=n("./node_modules/react-dom/index.js"),u=n.n(l),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,l;return l=r=function(r){m(l,r);var s=y(l);function l(e){var r;return p(this,l),j(v(r=s.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=u.a.findDOMNode(v(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return h(l,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),l}(o.a.Component),j(r,"propTypes",{handleWidth:s.a.bool,handleHeight:s.a.bool,onResize:s.a.func}),j(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),l}}},"./MapStore2/web/client/components/misc/switch/SwitchButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function s(e){return(s="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 n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,d=e.btnDefaultProps,p=void 0===d?{}:d,f=e.transitionProps,h=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,m=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,s=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,u({key:s.key||t},s))||o.a.createElement(l.a,u({key:s.key||t},p,s))):null}))};return o.a.createElement(s.ButtonGroup,i,h?o.a.createElement(a.a,h,m()):m())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),p=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,d.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,d=e.glyphClassName,m=void 0===d?"":d,g=e.loaderProps,y=void 0===g?{}:g,b=e.children,v=h(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(p.a,Object(s.omit)(v,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:m}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,f({className:"ms-loader".concat(v.bsStyle&&" ms-loader-"+v.bsStyle||"").concat(v.bsSize&&" ms-loader-"+v.bsSize||"")},y)):null,b)}))},"./MapStore2/web/client/components/misc/withConfirm.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),a=n("./MapStore2/web/client/components/misc/Portal.jsx"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(l.compose)(Object(l.withProps)((function(e){var t=e.setConfirming;return{onClose:function(){return t(!1)}}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmYes,n=void 0===t?o.a.createElement(s.default,{msgId:"yes"}):t,r=e.confirmNo,l=void 0===r?o.a.createElement(s.default,{msgId:"no"}):r,u=e.confirmTitle,c=void 0===u?o.a.createElement(s.default,{msgId:"confirm"}):u,d=e.confirmContent,p=e.confirmButtonBSStyle,f=void 0===p?"primary":p,h=e.show,m=void 0!==h&&h,g=e.confirmModal,y=void 0===g||g,b=e.draggable,v=void 0!==b&&b,w=e.onClose,j=void 0===w?function(){}:w,O=e.onConfirm,_=void 0===O?function(){}:O;return m?o.a.createElement(a.a,null,o.a.createElement("div",{className:"with-confirm-modal"},o.a.createElement(i.a,{draggable:v,show:m,modal:y,onClose:j,onConfirm:_,title:c,confirmButtonContent:n,closeText:l,confirmButtonBSStyle:f,closeGlyph:"1-close"},d))):null})),d=function(e){return function(t){var n=t.confirming,r=t.confirmYes,i=t.confirmNo,a=t.confirmTitle,s=t.confirmContent,l=t.confirmModal,d=t.draggable,p=t.onConfirm,f=t.setConfirming,h=u(t,["confirming","confirmYes","confirmNo","confirmTitle","confirmContent","confirmModal","draggable","onConfirm","setConfirming"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(c,{show:n,setConfirming:f,confirmYes:r,confirmNo:i,confirmTitle:a,confirmContent:s,confirmModal:l,draggable:d,onConfirm:p}),o.a.createElement(e,h))}};t.a=function(e){return Object(l.compose)(Object(l.withState)("confirming","setConfirming",!1),Object(l.withHandlers)({onClick:function(e){var t=e.setConfirming,n=void 0===t?function(){}:t,r=e.onClick,o=void 0===r?function(){}:r,i=e.confirmPredicate,a=void 0===i||i;return function(){a?n(!0):o.apply(void 0,arguments)}},onConfirm:function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.setConfirming,o=void 0===r?function(){}:r;return function(){o(!1),n.apply(void 0,arguments)}}}),d)(e)}},"./MapStore2/web/client/components/style/ColorPicker.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/isFunction.js"),l=n.n(s),u=n("./node_modules/react-color/lib/index.js"),c=n("./node_modules/tinycolor2/tinycolor.js"),d=n.n(c),p=n("./node_modules/react-dom/index.js"),f=n("./MapStore2/web/client/utils/ConfigUtils.js");function h(){return(h=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nm/2+10&&b+w-E[0]>m/2+10,M=E[1]-y>g/2+10&&y+j-E[1]>g/2+10,A={top:{filter:function(){return C&&O-y>g+10},styles:function(){return{picker:{position:"absolute",top:O-g-10-y,left:_+S/2-m/2-b},overlay:{},arrow:{top:O+2,left:_+S/2,transform:"translate(-50%, -50%) rotateZ(270deg) translateX(50%)"}}}},right:{filter:function(){return M&&b+w-(_+S)>m+10},styles:function(){return{picker:{position:"absolute",top:O-g/2-y,left:_+S+10-b},overlay:{},arrow:{top:O+x/2,left:_+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+j-(O+x)>g+10},styles:function(){return{picker:{position:"absolute",top:O+x+10-y,left:_+S/2-m/2-b},overlay:{},arrow:{top:O+x-2,left:_+S/2,transform:"translate(-50%, -50%) rotateZ(90deg) translateX(50%)"}}}},left:{filter:function(){return M&&_-b>m+10},styles:function(){return{picker:{position:"absolute",top:O-g/2-y,left:_-m-10-b},overlay:{},arrow:{top:O+x/2,left:_+2,transform:"translate(-50%, -50%) rotateZ(180deg) translateX(50%)"}}}}};if(null!=A&&null!==(d=A[v])&&void 0!==d&&null!==(p=d.filter)&&void 0!==p&&p.call(d))return null==A||null===(f=A[v])||void 0===f||null===(h=f.styles)||void 0===h?void 0:h.call(f);if("top"!==v&&A.top.filter())return A.top.styles();if("right"!==v&&A.right.filter())return A.right.styles();if("bottom"!==v&&A.bottom.filter())return A.bottom.styles();if("left"!==v&&A.left.filter())return A.left.styles()}return{picker:{},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"},arrow:{opacity:0}}}Object(r.useEffect)((function(){var e=function(){return E(I())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){M&&E(I())}),[M]);var N,L,R=c?" ms-disabled":"",F=o.a.createElement("div",{ref:P,className:"ms-color-picker-overlay",style:g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",top:0,left:0},null==x?void 0:x.overlay)},o.a.createElement("div",{className:"ms-color-picker-cover",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0},onClick:function(){A(!1),O&&i(n?d()(O).toString(n):O)}}),o.a.createElement(u.SketchPicker,h({},f,{className:"ms-sketch-picker",styles:{picker:g({width:200,padding:"10px 10px 0",boxSizing:"initial"},null==x?void 0:x.picker)},color:d()(O||t).toRgb(),onChange:function(e){return _(e.rgb)}})),o.a.createElement("div",{className:"ms-sketch-picker-arrow",style:g({position:"absolute",borderWidth:12},null==x?void 0:x.arrow)})),z=D?Object(p.createPortal)(F,D):F;return o.a.createElement("div",{className:"ms-color-picker".concat(R)},o.a.createElement("div",{className:"ms-color-picker-swatch",ref:T,style:(N=O||t||"transparent",L=d()(N).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(L),backgroundColor:"transparent"}:{color:"transparent"===N?"#000000":d.a.mostReadable(L,["#000000"],{includeFallbackColors:!0}).toHexString(),backgroundColor:L}),onClick:function(){c||(A(!M),O&&i(n?d()(O).toString(n):O))}},a),M?z:null)}w.propTypes={value:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,onChangeColor:a.a.func,text:a.a.string,line:a.a.bool,disabled:a.a.bool,pickerProps:a.a.object,containerNode:a.a.oneOfType([a.a.node,a.a.func]),onOpen:a.a.function,placement:a.a.string},w.defaultProps={disabled:!1,line:!1,onChangeColor:function(){},pickerProps:{},onOpen:function(){},containerNode:function(){return document.querySelector("."+(Object(f.getConfigProp)("themePrefix")||"ms2")+" > div")||document.body}},t.a=w},"./MapStore2/web/client/components/style/ColorSelector.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/style/ColorPicker.jsx");function u(e){var t=e.color,n=e.format,r=e.line,i=e.onChangeColor,a=e.disableAlpha,u=e.containerNode,c=e.onOpen,d=e.presetColors,p=e.placement;return o.a.createElement("div",{className:"ms-color-selector"},o.a.createElement(l.a,{text:o.a.createElement(s.Glyphicon,{glyph:"dropper"}),format:n,line:r,value:t,onChangeColor:i,pickerProps:{disableAlpha:a,presetColors:d},containerNode:u,onOpen:c,placement:p}))}u.propTypes={color:a.a.oneOfType([a.a.string,a.a.shape({r:a.a.number,g:a.a.number,b:a.a.number,a:a.a.number})]),format:a.a.string,line:a.a.bool,onChangeColor:a.a.func,disableAlpha:a.a.bool,containerNode:a.a.node,onOpen:a.a.func,presetColors:a.a.array,placement:a.a.string},u.defaultProps={line:!1,onChangeColor:function(){},onOpen:function(){}},t.a=u},"./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(l.a)(a.NavItem);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=e.element,o=void 0===n?{}:n,l=e.tabs,f=void 0===l?[]:l,h=e.activeTab,m=e.width,g=e.groups,y=e.isLocalizedLayerStylesEnabled,b=e.setActiveTab,v=void 0===b?function(){}:b,w=e.onUpdateParams,j=void 0===w?function(){}:w,O=e.onRetrieveLayerData,_=void 0===O?function(){}:O,S=e.realtimeUpdate,x=d(e,["settings","element","tabs","activeTab","width","groups","isLocalizedLayerStylesEnabled","setActiveTab","onUpdateParams","onRetrieveLayerData","realtimeUpdate"]);return i.a.createElement(a.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},i.a.createElement(a.Col,{xs:12},i.a.createElement(a.Nav,{bsStyle:"tabs",activeKey:h,justified:!0},f.map((function(e){return i.a.createElement(p,{key:"ms-tab-settings-"+e.id,tooltip:i.a.createElement(s.default,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){return v(e.id)}},i.a.createElement(a.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement(a.Col,{xs:12},f.filter((function(e){return e.id&&e.id===h})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,u({},x,{key:"ms-tab-settings-body-"+e.id,containerWidth:m,element:o,groups:g,nodeType:t.nodeType,settings:t,retrieveLayerData:_,isLocalizedLayerStylesEnabled:y,onChange:function(e,t){return Object(r.isObject)(e)?j(e,S):j(c({},e,t),S)}}))}))))}},"./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),s=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),l=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),u=n("./MapStore2/web/client/components/TOC/TOC.jsx"),c=n("./MapStore2/node_modules/lodash/lodash.js");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.changeLayerPropertyByGroup,n=void 0===t?function(){}:t,r=e.changeLayerProperty,i=void 0===r?function(){}:r,c=e.changeGroupProperty,d=void 0===c?function(){}:c,p=e.onSort,f=e.onSelect,h=e.selectedNodes,m=e.nodes,g=void 0===m?[]:m;return o.a.createElement(u.a,{onSort:p,selectedNodes:h,onSelect:f,nodes:g},o.a.createElement(l.a,{groupElement:o.a.createElement(a.a,{onSort:p,selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(r){return n(e,r,t[r])}))},onToggle:function(e,t){return d(e,"expanded",!t)},groupVisibilityCheckbox:!0}),layerElement:o.a.createElement(s.a,{selectedNodes:h,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(n){return i(e,n,t[n])}))},onUpdateNode:function(e,t,n){return Object.keys(n).map((function(t){return i(e,t,n[t])}))},onToggle:function(e,t){return i(e,"expanded",!t)}})}))}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(o.withHandlers)({changeLayerProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?{}:o;return function(e,t,o){var a=Object(r.findIndex)(i.layers||[],{id:e});n("map.layers[".concat(a,"].").concat(t),o)}},changeLayerPropertyByGroup:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,a=void 0===o?{}:o;return function(e,t,o){return a.layers.filter(Object(i.belongsToGroup)(e)).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return Object(r.findIndex)(a.layers||[],{id:t})})).filter((function(e){return e>=0})).map((function(e){return n("map.layers[".concat(e,"].").concat(t),o)}))}},changeGroupProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.map,i=void 0===o?[]:o;return function(e,t,o){var a,s=i.groups?Object(r.castArray)(i.groups):[],l=Object(r.findIndex)(s,(function(t){return e===t.id})),u=-1===l?s.length:l;"expanded"!==t||null!=s&&null!==(a=s[u])&&void 0!==a&&a.id||n("map.groups[".concat(u,"].id"),e),n("map.groups[".concat(u,"].").concat(t),o)}},updateMapEntries:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return n("map[".concat(t,"]"),e[t])}))}}})},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js");function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.group,r=void 0===n?"Default":n;return r===e})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t}))};t.a=Object(o.compose)(Object(o.withStateHandlers)((function(){return{selectedLayers:[],selectedGroups:[]}}),{onNodeSelect:function(e,t){var n=e.selectedLayers,o=void 0===n?[]:n,a=e.selectedGroups,l=void 0===a?[]:a,u=t.map,c=void 0===u?{}:u;return function(e,t,n){return{selectedLayers:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?o.filter((function(t){return Object(r.findIndex)(s(e,c),(function(e){return e===t}))<0})):n?[].concat(i(o),i(s(e,c))):i(s(e,c)):Object(r.findIndex)(o,(function(t){return t===e}))>=0?o.filter((function(t){return t!==e})):n?[].concat(i(o),[e]):[e],selectedGroups:"group"===t?Object(r.findIndex)(l,(function(t){return t===e}))>=0?l.filter((function(t){return t!==e})):n?[].concat(i(l),[e]):[e]:n?l:[]}}}}),Object(o.withProps)((function(e){var t=e.selectedLayers,n=e.selectedGroups;return{selectedNodes:[].concat(i(t),i(n))}})))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js");t.a=Object(r.withProps)((function(e){var t,n,r,i=e.map;return{nodes:(t=Object(o.splitMapAndLayers)(i),n=t.layers,r=void 0===n?{}:n,Object(o.denormalizeGroups)(r.flat||[],r.groups||[]).groups)}}))},"./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js":function(e,t,n){"use strict";var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),s=n("./MapStore2/web/client/components/TOC/enhancers/tocItemsSettings.js"),l=n("./MapStore2/web/client/components/TOC/fragments/settings/Display.jsx"),u=n("./MapStore2/web/client/components/TOC/fragments/settings/General.jsx"),c=n("./node_modules/prop-types/index.js"),d=n.n(c),p=n("./node_modules/react/index.js"),f=n.n(p),h=n("./node_modules/react-bootstrap/es/index.js"),m=n("./node_modules/react-select/dist/react-select.es.js"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),y=n("./MapStore2/web/client/components/I18N/Message.jsx");function b(e){return(b="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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n=0||!this.props.element.style||t.push({label:this.props.element.style,value:this.props.element.style}),f.a.createElement(h.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},f.a.createElement("form",{ref:"style"},f.a.createElement(m.default.Creatable,{key:"styles-dropdown",options:t,isLoading:this.props.element&&this.props.element.capabilitiesLoading,value:this.props.element.style||"",onOpen:function(){!e.props.element||e.props.element.capabilities&&e.props.element.availableStyles||e.props.retrieveLayerData(e.props.element)},promptTextCreator:function(e){return f.a.createElement(y.default,{msgId:"layerProperties.styleCustom",msgParams:{value:e}})},onChange:function(t){e.updateEntry("style",{target:{value:t&&t.value||""}})}}),f.a.createElement("br",null),this.renderLegend(),this.renderError(),f.a.createElement(g.a,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(y.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&w(t.prototype,n),o&&w(t,o),a}(f.a.Component);E(C,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(C,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var M=C,A=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodePropertyChanges.js"),k=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/mapToNodes.js"),D=n("./node_modules/rxjs/Rx.js"),T=n.n(D),P=n("./MapStore2/web/client/observables/wms.js");function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.id===t.id})).switchMap((function(){return n.switchMap((function(e){return Object(P.b)(e).map((function(e){return{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}})).startWith({capabilitiesLoading:!0})})).catch((function(e){return T.a.Observable.of({capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:e},description:null})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(N({},t),{},{retrieveLayerData:r,element:N(N({},t.element),e)})}))}));function F(e){return(F="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)}var z=Object(o.withProps)((function(e){var t=e.nodes,n=void 0===t?{}:t,o=e.editNode,i={};return o&&function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;for(var i in t)null!==t[i]&&"object"===F(t[i])&&(Object(r.isMatch)(t[i],n)&&o.apply(void 0,[t[i]]),e(t[i],n,o))}(n,{id:o},(function(e){i=e})),{selectedNode:i}}));function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t,o=e.selectedNode,a=e.settings,s=void 0===a?{}:a;return{element:o,settings:U(U({},s),{},{nodeType:o&&o.nodes?"groups":"layers",options:{opacity:s.opacity>=0?s.opacity:o.opacity>=0?o.opacity:1}}),groups:Object(r.get)(Object(i.splitMapAndLayers)(n),"layers.groups")}})),Object(o.compose)(A.a,Object(o.withHandlers)({onUpdateNode:function(e){var t=e.changeLayerProperty,n=void 0===t?function(){}:t,r=e.changeGroupProperty,o=void 0===r?function(){}:r,i=e.editNode;return function(e,t,r){"layers"===t&&Object.keys(r).map((function(e){return n(i,e,r[e])})),"groups"===t&&Object.keys(r).map((function(e){return o(i,e,r[e])}))}}}),Object(o.withHandlers)({onUpdateParams:function(e){var t=e.settings,n=void 0===t?{}:t,r=e.onUpdateNode,o=void 0===r?function(){}:r;return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&o(n.node,n.nodeType,U(U({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),W)},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n.n(i),s=n("./node_modules/prop-types/index.js"),l=n.n(s),u=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Overlay.jsx"),d=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,a(t))},u=function(e,t,n){return function(o){return(n?l(o,Object(r.castArray)(e)).catch(n):l(o,Object(r.castArray)(e))).concat(i.a.Observable.from(Object(r.castArray)(t)))}}},"./MapStore2/web/client/observables/wms.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=(n("./MapStore2/node_modules/lodash/lodash.js"),n("./MapStore2/web/client/libs/proj4.js")),a=n.n(i),s=n("./node_modules/rxjs/Rx.js"),l=n("./MapStore2/web/client/api/WMS.js"),u=n("./MapStore2/web/client/libs/ajax.js"),c=n.n(u),d=(n("./MapStore2/web/client/utils/CoordinatesUtils.js"),n("./MapStore2/web/client/utils/LayersUtils.js")),p=n("./MapStore2/web/client/utils/ObservableUtils.js"),f=n("./MapStore2/web/client/utils/SecurityUtils.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=o.a.parse(r.url||i,!0);return o.a.format(m(m({},a),{},{search:void 0,query:m(m({},a.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(p.b)},b=function(e){return s.Observable.defer((function(){return l.a.getCapabilities(Object(d.getCapabilitiesUrl)(e))})).let(p.b).map((function(t){return l.a.parseLayerCapabilities(t,e)}))},v=function(e){return y(e).map((function(e){var t=e.data,n=void 0===t?{}:t;return n&&n.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.owsURL;return m(m({},e),{},{params:{},search:n?{type:"wfs",url:Object(f.cleanAuthParamsFromURL)(n)}:void 0})}))}},"./MapStore2/web/client/plugins/GeoStory.jsx":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"openMediaEditorForNewMedia",(function(){return ie})),n.d(r,"openWebPageComponentCreator",(function(){return se})),n.d(r,"editWebPageComponent",(function(){return le})),n.d(r,"saveGeoStoryResource",(function(){return ue})),n.d(r,"scrollToContentEpic",(function(){return ce})),n.d(r,"editMediaForBackgroundEpic",(function(){return de})),n.d(r,"loadGeostoryEpic",(function(){return pe})),n.d(r,"reloadGeoStoryOnLoginLogout",(function(){return fe})),n.d(r,"cleanUpEmptyStoryContainers",(function(){return he})),n.d(r,"sortContentEpic",(function(){return me})),n.d(r,"setFocusOnMapEditing",(function(){return ge})),n.d(r,"inlineEditorEditMap",(function(){return ye})),n.d(r,"closeShareOnGeostoryChangeMode",(function(){return be})),n.d(r,"handlePendingGeoStoryChanges",(function(){return ve})),n.d(r,"urlUpdateOnScroll",(function(){return we})),n.d(r,"scrollOnLoad",(function(){return je})),n.d(r,"loadStoryOnHistoryPop",(function(){return Oe})),n.d(r,"scrollSideBar",(function(){return _e}));var o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/react-redux/es/index.js"),s=n("./node_modules/reselect/es/index.js"),l=n("./node_modules/webfontloader/webfontloader.js"),u=n.n(l),c=n("./MapStore2/web/client/utils/PluginsUtils.js"),d=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),p=n("./MapStore2/web/client/utils/LocaleUtils.js"),f=n("./MapStore2/web/client/utils/NotificationUtils.js"),h=n("./MapStore2/web/client/actions/geostory.js"),m=n("./MapStore2/web/client/actions/mediaEditor.js"),g=n("./node_modules/rxjs/Rx.js"),y=n("./MapStore2/node_modules/lodash/head.js"),b=n.n(y),v=n("./MapStore2/node_modules/lodash/isNaN.js"),w=n.n(v),j=n("./MapStore2/node_modules/lodash/isString.js"),O=n.n(j),_=n("./MapStore2/node_modules/lodash/isNil.js"),S=n.n(_),x=n("./MapStore2/node_modules/lodash/lastIndexOf.js"),E=n.n(x),C=n("./MapStore2/node_modules/lodash/words.js"),M=n.n(C),A=n("./MapStore2/node_modules/lodash/get.js"),k=n.n(A),D=n("./MapStore2/node_modules/lodash/isArray.js"),T=n.n(D),P=n("./MapStore2/node_modules/lodash/isEmpty.js"),I=n.n(P),N=n("./node_modules/connected-react-router/esm/actions.js"),L=n("./node_modules/uuid/v1.js"),R=n.n(L),F=n("./MapStore2/web/client/libs/ajax.js"),z=n.n(F),B=n("./MapStore2/web/client/api/persistence/index.js"),U=n("./MapStore2/web/client/actions/controls.js"),H=n("./MapStore2/web/client/actions/notifications.js"),K=n("./MapStore2/web/client/actions/security.js"),W=n("./MapStore2/web/client/selectors/security.js"),V=n("./MapStore2/web/client/selectors/geostory.js"),G=n("./MapStore2/web/client/selectors/mediaEditor.js"),q=n("./MapStore2/web/client/observables/epics.js"),Y=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),Q=n("./MapStore2/web/client/actions/mapEditor.js");function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||ne(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 J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function te(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ne(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 ne(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.resource,n=e.delay,r=void 0===n?1e3:n;return(t.id?Object(B.h)(t):Object(B.b)(t)).switchMap((function(e){return g.Observable.of(Object(h.X)(e),Object(h.Q)(d.b.SHOW_SAVE,!1),t.id?Object(h.I)(e):Object(N.d)("/geostory/".concat(e))).merge(g.Observable.of(Object(H.i)({id:"STORY_SAVE_SUCCESS",title:"saveDialog.saveSuccessTitle",message:"saveDialog.saveSuccessMessage"})).delay(t.id?0:r))})).let(Object(q.a)(Object(h.K)(!0,"loading"),Object(h.K)(!1,"loading"))).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.status,n=e.statusText,r=e.data,o=e.message,i=ee(e,["status","statusText","data","message"]);return g.Observable.of(Object(h.O)(t?{status:t,statusText:n,data:r}:o||i),Object(h.K)(!1,"loading"))}))}))},ce=function(e){return e.ofType(h.a).switchMap((function(e){var t=e.element;return g.Observable.of(t).switchMap((function(){if(document.getElementById(t.id))return Object(d.z)(t.id,{behavior:"auto",block:"center"}),g.Observable.empty();throw new Error("Item not mounted yet")})).retryWhen((function(e){return e.delay(200).take(10)}))}))},de=function(e,t){return e.ofType(m.d).switchMap((function(n){var r=n.path,o=n.owner,i=Object(V.s)(r)(t.getState()),a=Object(V.r)(i)(t.getState());return g.Observable.of(Object(G.c)(t.getState())).filter((function(e){return a&&a.type!==e})).map((function(){return Object(m.G)(a.type)})).merge(g.Observable.of(Object(m.H)(o,Object(V.h)(t.getState())),Object(m.C)(i)).merge(e.let(oe(t,r)).takeUntil(e.ofType(m.e,h.a))))}))},pe=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.h).switchMap((function(e){var t=e.id;return g.Observable.defer((function(){return t&&w()(parseInt(t,10))?z.a.get("configs/".concat(t,".json")).then((function(e){var t=e.data,n=t.sections,r=T()(n)&&n.map((function(e){return X(X({},e),{},{id:R()()})}));return{data:r.length?X(X({},t),{},{sections:r}):t,isStatic:!0,canEdit:!0}})):Object(B.d)(t)})).do((function(e){if(!e.data)throw Error("Wrong data format");return!0})).switchMap((function(e){var n=e.data,o=e.isStatic,i=void 0!==o&&o,a=ee(e,["data","isStatic"]),s=r(),l=Object(W.a)(s),u=Object(W.b)(s),c=O()(n)?JSON.parse(n):n;if(!u&&w()(parseInt(t,10)))return g.Observable.of(Object(h.J)({status:403}));var p=Object(V.p)(s)===d.f.EDIT;return g.Observable.from([].concat(te(i||p?[Object(h.S)(a&&a.canEdit||l)]:[]),[Object(h.H)(t),Object(h.R)(c),Object(h.V)(a)]))})).let(Object(q.a)(Object(h.K)(!0,"loading"),Object(h.K)(!1,"loading"),(function(e){var t="geostory.errors.loading.unknownError";return 403===e.status?(t="geostory.errors.loading.pleaseLogin",(Object(W.b)(r())||Object(V.n)(r()))&&(t="geostory.errors.loading.geostoryNotAccessible")):404===e.status?t="geostory.errors.loading.geostoryDoesNotExist":S()(e.status)&&(t=e.message),g.Observable.of(Object(H.f)({title:"geostory.errors.loading.title",message:t}),Object(h.R)({}),Object(h.J)(X(X({},e),{},{messageId:t})))}))).startWith(Object(h.R)({}))}))},fe=function(e){return e.ofType(h.h).switchMap((function(t){var n=t.id;return e.ofType(K.d,K.e).switchMap((function(){return g.Observable.of(Object(h.I)(n)).delay(500)})).takeUntil(e.ofType(N.b))}))},he=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.j).switchMap((function(e){var t=e.path,n=Object(d.r)(t,Object(V.e)(r())),o=E()(n,"contents");if(o>0){var i=n.splice(0,o),a=Object(V.a)(i.join("."))(r());if(a&&a.contents&&0===a.contents.length)return g.Observable.of(Object(h.M)(i.join(".")))}return g.Observable.empty()}))},me=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.i).switchMap((function(e){var t=e.source,n=e.target,o=e.position,i=r(),a=Object(V.a)(t)(i);return g.Observable.of(Object(h.M)(t),Object(h.D)(n,o,a))}))},ge=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(h.z).filter((function(e){var t=e.path;return(void 0===t?"":t).endsWith("editMap")})).map((function(e){var t=e.path,n=e.element,o=Object(d.s)(t,Object(V.e)(r())),i=o.flatPath,a=o.path,s=i.pop(),l=i.shift(),u="background"===a[a.length-2],c=u&&"#".concat(l.id," .ms-section-background-container")||"#".concat(s.id);return Object(d.z)(s.id),Object(h.T)(n,s,c,u,t.replace(".editMap",""))}))},ye=function(e,t){var n=t.getState;return e.ofType(Q.c).filter((function(e){var t=e.owner,n=e.map;return"inlineEditor"===t&&!!n})).switchMap((function(){return e.ofType(Q.b).switchMap((function(t){var r=t.map,o=Object(V.g)(n()).path;return g.Observable.of(Object(h.bb)("".concat(o,".map"),r),Object(h.bb)("".concat(o,".editMap"),!1),Object(Q.d)()).takeUntil(e.ofType(Q.a))}))}))},be=function(e){return e.ofType(h.c).switchMap((function(){return g.Observable.of(Object(U.g)("share","enabled",!1))}))},ve=function(e){return g.Observable.merge(e.ofType(h.h).switchMap((function(){return e.ofType(h.s)}))).switchMap((function(){return e.ofType(h.a,h.z,h.j,h.b,h.e,h.C).take(1).switchMap((function(){return g.Observable.of(Object(h.U)(!0)).concat(e.ofType(h.m,N.b,K.e).take(1).switchMap((function(){return g.Observable.of(Object(h.U)(!1))})))}))}))},we=function(e,t){var n=t.getState;return e.ofType(h.A).debounceTime(50).switchMap((function(e){var t=e.sectionId,r=e.columnId;if("edit"!==Object(V.p)(n())&&(r||t)&&Object(V.z)(n())){var o,i,a=k()(n(),"geostory.resource.id"),s=Object(d.y)(window.location.href,null===(o=window)||void 0===o||null===(i=o.location)||void 0===i?void 0:i.hash,a,t,r);s&&history.pushState(null,"",s)}return g.Observable.empty()}))},je=function(e){return e.ofType(h.q).switchMap((function(){var e,t,n,r,o,i,a=null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.hash)||void 0===n?void 0:n.split("/");return null!==(r=window)&&void 0!==r&&null!==(o=r.location)&&void 0!==o&&null!==(i=o.hash)&&void 0!==i&&i.includes("shared")?Object(d.z)(a[7]||a[5],{block:"start",behavior:"auto"}):a.length>5?Object(d.z)(a[6],{block:"start",behavior:"auto"}):5===a.length&&Object(d.z)(a[4],{block:"start",behavior:"auto"}),g.Observable.empty()}))},Oe=function(e){return e.ofType(N.b).switchMap((function(e){var t,n=e.payload;if((null==n||null===(t=n.location)||void 0===t?void 0:t.pathname.includes("/geostory/"))&&"POP"===n.action){var r,o=M()(null==n||null===(r=n.location)||void 0===r?void 0:r.pathname);return o.find((function(e){return"shared"===e}))?g.Observable.of(Object(h.I)(o[2])).delay(500):g.Observable.of(Object(h.I)(o[1])).delay(500)}return g.Observable.empty()}))},_e=function(e,t){var n=t.getState;return e.ofType(h.A).filter((function(e){var t=e.columnId,r=e.sectionId;return!("edit"!==Object(V.p)(n())||!t&&!r)})).debounceTime(50).switchMap((function(){return g.Observable.of(Array.from(document.querySelectorAll(".ms-geostory-builder .mapstore-side-card.ms-highlight")).pop()).filter((function(e){return!!e})).withLatestFrom(g.Observable.of(document.querySelector(".ms-geostory-builder .ms2-border-layout-body")).filter((function(e){return!!e}))).map((function(e){var t=Z(e,2),n=t[0],r=t[1];return function(){var e=n.getBoundingClientRect(),t=e.top,o=e.bottom,i=r.getBoundingClientRect(),a=i.top,s=i.bottom;ts&&r.scrollBy({top:o-s+10,behavior:"smooth"})}})).do((function(e){return window.requestAnimationFrame(e)})).ignoreElements()}))},Se=n("./MapStore2/web/client/selectors/locale.js"),xe=n("./MapStore2/web/client/reducers/geostory.js"),Ee=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),Ce=n("./node_modules/react-container-dimensions/lib/index.js"),Me=n.n(Ce),Ae=n("./node_modules/recompose/es/Recompose.js"),ke=n("./node_modules/recompose/rxjsObservableConfig.js"),De=n.n(ke);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Pe(Pe({},e),t)}),{})),{},{updateCurrentPage:n})}))}))),Fe=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),ze=n("./MapStore2/node_modules/lodash/lodash.js");function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.interceptorTime,n=e.updateCurrentPage;return{interceptorTime:t,updateCurrentPage:n}})).distinctUntilKeyChanged("interceptorTime").switchMap((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.interceptorTime,r=void 0===n?100:n,o=t.updateCurrentPage;return e.scan((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.visible,o=t.entry;return Ue(Ue({},e),{},He({},n,{visible:r,entry:o}))}),{}).debounceTime(r).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(ze.minBy)(Object.keys(e),(function(t){return e[t].visible?Object(ze.get)(e[t],"entry.boundingClientRect.top"):1/0}));return t})).do((function(e){o&&o({sectionId:e})})).ignoreElements()}))}(r,e).startWith({}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Ue(Ue({},e),t)}),{})),{},{onVisibilityChange:n})}))}))),We=n("./node_modules/prop-types/index.js"),Ve=n.n(We),Ge=n("./MapStore2/web/client/components/misc/enhancers/localizedProps.js"),qe=(n("./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css"),n("./node_modules/draft-js/lib/Draft.js")),Ye=n("./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js"),Qe=n("./node_modules/classnames/index.js"),Ze=n.n(Qe);function Je(e){return(Je="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 Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){for(var n=0;n0&&(s="External Link"),null!=o&&o.attributes["data-geostory-interaction-name"]&&(s=o.attributes["data-geostory-interaction-name"]),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i,attributes:o&&o.attributes||{},currentSelectOption:s})})),st(it(e),"forceExpandAndShowModal",(function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n();var s="Select link target";null!=o&&o.target&&o.target.length>0&&(s="External Link"),null!=o&&o.attributes["data-geostory-interaction-name"]&&(s=o.attributes["data-geostory-interaction-name"]),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i,attributes:o&&o.attributes||{},currentSelectOption:s})})),e}return et(n,[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",attributes:{},linkTargetOption:this.props.config.defaultTargetOption,currentSelectOption:"Select link target"})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,o=e.availableStorySections,a=this.state,s=a.linkTitle,l=a.linkTarget,u=a.linkTargetOption,c=a.currentSelectOption;return i.a.createElement("div",{className:Ze()("rdw-link-modal",t),onClick:Ye.stopPropagation},i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),i.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:s}),i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),i.a.createElement(lt,{externalLinkOption:"External Link",currentSelectOption:c,onSelectionChange:this.onSelectionChange,availableStorySections:o}),"External Link"===c&&i.a.createElement(i.a.Fragment,null,i.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:l}),i.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},i.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===u,value:"_blank",onChange:this.updateTargetOption}),i.a.createElement("span",null,r["components.controls.link.linkTargetOption"]))),i.a.createElement("span",{className:"rdw-link-modal-buttonsection"},i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!l||!s},r["generic.add"]),i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,o=t.unlink,a=t.className,s=e.currentState,l=e.expanded,u=e.translations,c=this.state.showModal;return i.a.createElement("div",{className:Ze()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},n.indexOf("link")>=0&&i.a.createElement(Ye.Option,{value:"unordered-list-item",className:Ze()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":c,title:r.title||u["components.controls.link.link"]},i.a.createElement("img",{src:r.icon,alt:""})),n.indexOf("unlink")>=0&&i.a.createElement(Ye.Option,{disabled:!s.link,value:"ordered-list-item",className:Ze()(o.className),onClick:this.removeLink,title:o.title||u["components.controls.link.unlink"]},i.a.createElement("img",{src:o.icon,alt:""})),l&&c?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,o=e.doExpand,a=e.onChange,s=e.config,l=e.currentState,u=e.translations,c=s.options,d=s.link,p=s.unlink,f=s.className,h=s.dropdownClassName,m=s.title,g=this.state.showModal;return i.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:m},i.a.createElement(Ye.Dropdown,{className:Ze()("rdw-link-dropdown",f),optionWrapperClassName:Ze()(h),onChange:a,expanded:t&&!g,doExpand:o,doCollapse:r,onExpandEvent:n},i.a.createElement("img",{src:Object(Ye.getFirstIcon)(s),alt:""}),c.indexOf("link")>=0&&i.a.createElement(Ye.DropdownOption,{onClick:this.forceExpandAndShowModal,className:Ze()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.link"]},i.a.createElement("img",{src:d.icon,alt:""})),c.indexOf("unlink")>=0&&i.a.createElement(Ye.DropdownOption,{onClick:this.removeLink,disabled:!l.link,className:Ze()("rdw-link-dropdownoption",p.className),title:p.title||u["components.controls.link.unlink"]},i.a.createElement("img",{src:p.icon,alt:""}))),t&&g?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}]),n}(o.Component);st(ut,"propTypes",{expanded:Ve.a.bool,doExpand:Ve.a.func,doCollapse:Ve.a.func,onExpandEvent:Ve.a.func,config:Ve.a.object,onChange:Ve.a.func,currentState:Ve.a.object,translations:Ve.a.object,modalHandler:Ve.a.any});var ct=ut;function dt(e){return(dt="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 pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n').concat(t,"");if("LINK"===e.type){var n=e.data.targetOption||"_self",r=e.data.attributes;return r&&r["data-geostory-interaction-type"]?'").concat(t,""):'').concat(t,"")}if("IMAGE"===e.type){var o=e.data.alignment,i=o&&"none"!==o?"float: ".concat(o,";"):"display: block; margin: 0 auto 0 auto;";return'').concat(e.data.alt,'')}return"EMBEDDED_LINK"===e.type?''):t};function At(){return(At=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n:d.c,className:void 0,component:void 0,dropdownClassName:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{className:"".concat(s,"-toolbar-btn")},italic:{className:"".concat(s,"-toolbar-btn")},underline:{className:"".concat(s,"-toolbar-btn")},strikethrough:{className:"".concat(s,"-toolbar-btn")},code:{className:"".concat(s,"-toolbar-btn")}},textAlign:{left:{className:"".concat(s,"-toolbar-btn")},center:{className:"".concat(s,"-toolbar-btn")},right:{className:"".concat(s,"-toolbar-btn")},justify:{className:"".concat(s,"-toolbar-btn")}},colorPicker:{className:"".concat(s,"-toolbar-btn")},remove:{className:"".concat(s,"-toolbar-btn")}},u),toolbarClassName:"".concat(s,"-toolbar"),wrapperClassName:"".concat(s,"-wrapper"),editorClassName:"".concat(s,"-main")}})),Object(Ae.renderComponent)(Ye.Editor)),Lt=Object(Ae.compose)(Object(Ae.lifecycle)({componentWillUnmount:function(){var e=this.props,t=e.editorState,n=e.save;(void 0===n?function(){}:n)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e){var n=Object(qe.convertToRaw)(e.getCurrentContent()).blocks,r=1!==n.length||Object(qe.convertToRaw)(e.getCurrentContent()).blocks[0].text,o=St()(Object(qe.convertToRaw)(e.getCurrentContent()),null,null,Mt);return r?o:t}return t}(t,d.d))}}),Object(Ae.withHandlers)({onBlur:function(e){var t=e.toggleEditing,n=void 0===t?function(){}:t;return function(){n(!1)}}}),Object(Ae.withProps)((function(e){var t=e.sections;return{availableStorySections:(void 0===t?[]:t).reduce((function(e,t){var n=[];t.type===d.h.IMMERSIVE?t.contents.forEach((function(e){n.push(e)})):n.push(t);return[].concat(kt(e),n)}),[])}})),Object(Ae.withProps)((function(e){var t=e.availableStorySections,n=void 0===t?[]:t;return{toolbar:{link:{inDropdown:!1,className:void 0,component:function(e){return i.a.createElement(ct,At({},e,{availableStorySections:n}))},popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0,getLinkDecorator:Ot}}}})),Nt),Rt=Object(Ae.compose)(Object(Ae.withState)("contentEditing","setContentEditing",!1),Object(Ae.withState)("editorState","onEditorStateChange"),Object(Ae.withHandlers)({toggleEditing:function(e){var t=e.bubblingTextEditing,n=void 0===t?function(){}:t,r=e.sectionType,o=e.onEditorStateChange,i=void 0===o?function(){}:o,a=e.setContentEditing,s=void 0===a?function(){}:a;return function(e,t){if(e){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Et()(e,null,Ct),n=qe.ContentState.createFromBlockArray(t.contentBlocks);return qe.EditorState.createWithContent(n)}(t);if(r===d.h.TITLE&&"unstyled"===qe.RichUtils.getCurrentBlockType(o)){var a=o.getCurrentContent();a=qe.Modifier.setBlockType(a,qe.EditorState.createWithContent(a).getSelection(),"header-one"),o=qe.EditorState.createWithContent(a)}i(o),s(!0),n(!0)}else s(!1),n(!1)}}}),Object(Ae.branch)((function(e){return!!e.contentEditing}),Lt)),Ft=Object(Ae.compose)(Object(Ae.withHandlers)({save:function(e){var t=e.update,n=void 0===t?function(){}:t;return function(e){return n("html",e)}}}),Object(Ae.branch)((function(e){return e.mode===d.f.EDIT}),Rt),Object(Ae.compose)(Object(Ae.withPropsOnChange)(["sectionType"],(function(e){var t=e.sectionType;return{placeholder:d.h.TITLE===t?"geostory.builder.defaults.htmlTitlePlaceholder":"geostory.builder.defaults.htmlPlaceholder",placeholderTag:d.h.TITLE===t?"h1":"p"}})),Object(Ge.a)("placeholder")))((function(e){var t=e.placeholder,n=e.placeholderTag,r=void 0===n?"p":n,o=e.id,a=e.toggleEditing,s=void 0===a?function(){}:a,l=e.html,u=e.mode;return i.a.createElement("div",{className:"ms-text-wrapper"},l!==d.d&&i.a.createElement("div",{id:o,onClick:function(){return s(!0,l)},dangerouslySetInnerHTML:{__html:l}}),(!l||l===d.d)&&u===d.f.EDIT&&i.a.createElement("div",{className:"ms-text-placeholder",id:"placeholder"+o,onClick:function(){return s(!0,l===d.d?"":l)},dangerouslySetInnerHTML:{__html:"<".concat(r,">").concat(t,"")}}))})),zt=n("./node_modules/react-image-lightbox/dist/umd/react-image-lightbox.js"),Bt=n.n(zt),Ut=n("./node_modules/object-fit-images/dist/ofi.common-js.js"),Ht=n.n(Ut);function Kt(e){return(Kt="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 Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return vn(vn({},t),{},{mapInfo:e,getFeatureInfoHandler:r})}))})),xn=Object(Ae.branch)((function(e){var t=e.map,n=(t=void 0===t?{}:t).mapInfoControl;return void 0!==n&&n}),Object(Ae.compose)(Sn,Object(Ae.withStateHandlers)({popups:[]},{onClick:function(e,t){var n=t.getFeatureInfoHandler,r=void 0===n?function(){}:n;return function(e,t){var n=e.rawPos,o=void 0===n?[]:n,i=yn(e,["rawPos"]);return r({point:i,layerInfo:t}),{popups:[{position:{coordinates:o},id:R()()}]}}},onPopupClose:function(){return function(){return{popups:[]}}}}),Object(Ae.withPropsOnChange)(["mapInfo","popups"],(function(e){var t=e.mapInfo,n=e.popups,r=e.options,o=(r=void 0===r?{}:r).mapOptions,a=(o=void 0===o?{}:o).mapInfoFormat,s=void 0===a?_n():a,l=t.responses,u=t.requests,c=t.validResponses,d=function(){return i.a.createElement(fn,{renderEmpty:!0,responses:l,requests:u,validResponses:c,format:s,showEmptyMessageGFI:!0,missingResponses:(u||[]).length-(l||[]).length})};return{popups:n.map((function(e){return vn(vn({},e),{},{component:d})}))}})),Object(Ae.withPropsOnChange)(["plugins","onPopupClose","popups"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=e.popups,r=e.onPopupClose,o=t.PopupSupport,a=t.tools,s=void 0===a?{}:a,l=yn(t,["PopupSupport","tools"]);if(!o)return{};var u=function(e){return i.a.createElement(o,gn({},e,{popups:n,onPopupClose:r}))};return{plugins:vn(vn({},l),{},{tools:vn(vn({},s),{},{popup:u})})}})))),En=Object(Ae.withPropsOnChange)(["onClick","eventHandlers"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClick,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:vn(vn({},o),{},{onClick:n})}})),Cn=n("./MapStore2/web/client/components/map/BaseMap.jsx"),Mn=Object(Ae.compose)(an.a,Object(rn.a)(0),nn.a,xn,En,on.a,sn.a)(Cn.a),An=n("./MapStore2/web/client/components/misc/Portal.jsx"),kn=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),Dn=n("./node_modules/react-resize-detector/lib/esm/hoc/withResizeDetector.js"),Tn=n("./MapStore2/web/client/components/misc/Button.jsx");function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rn=Object(kn.a)(Tn.a),Fn=Object(Ae.compose)(Object(Ae.withState)("active","setActive",!1),Dn.a)((function(e){var t=e.id,n=e.map,r=void 0===n?{layers:[Y.b]}:n,o=e.fit,a=e.editMap,s=void 0!==a&&a,l=e.onMapViewChanges,u=e.eventHandlers,c=e.expandable,p=void 0!==c&&c,f=e.active,h=e.setActive,m=e.width,g=e.height,y=e.size,b=e.showCaption,v=e.caption,w=e.mapType,j=void 0===w?"leaflet":w,O=e.onMapTypeLoaded,_=r.data?r.data:r,S=_.layers,x=void 0===S?[]:S,E=_.mapOptions,C=void 0===E?{}:E,M=_.description,A=Ln(_,["layers","mapOptions","description"]),k=v||M,D=p?f?{zoomControl:!1,interactive:!0,mapOptions:{scrollWheelZoom:!0,interactions:{mouseWheelZoom:!0,dragPan:!0}}}:{zoomControl:!1,interactive:!1,mapOptions:{scrollWheelZoom:!1,interactions:{mouseWheelZoom:!1,dragPan:!1}}}:{mapOptions:C},T=s?{mapOptions:In(In({},C),{},{interactions:In(In({},C.interactions),{},{mouseWheelZoom:A.zoomControl})})}:D,P=A.mapInfoControl&&!(p&&!f),I=i.a.createElement(i.a.Fragment,null,i.a.createElement(Mn,{key:p?"overlay":"block",onMapViewChanges:l,eventHandlers:u,map:In(In({},A),{},{id:"media-".concat(t),resize:m+"-"+g+"_"+y,className:"aaaa",style:{cursor:P?"pointer":"default"}}),layers:x,tools:P?["popup"]:[],options:Object(d.j)(T),mapType:j,onMapTypeLoaded:O}),p&&!s&&i.a.createElement(Rn,{className:"ms-expand-media-button",onClick:function(){return h(!f)},tooltipId:f?"geostory.closeFullscreenMap":"geostory.showFullscreenMap",tooltipPosition:"left"},i.a.createElement(tn.Glyphicon,{glyph:f?"1-close":"1-full-screen"})));return i.a.createElement("div",{className:"ms-media ms-media-map ".concat(C.zoomPosition||""),style:{objectFit:o}},f&&p?i.a.createElement(An.a,null,i.a.createElement("div",{className:"ms-expanded-media-container"},I)):I,b&&k&&i.a.createElement("div",{className:"ms-media-caption"},i.a.createElement("small",null,k)))})),zn=n("./MapStore2/web/client/components/geostory/media/Video.jsx");function Bn(){return(Bn=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=en,Vn={image:en,map:Fn,video:zn.a},Gn=function(e){var t=e.debounceTime,n=e.mediaViewer,r=Kn(e,["debounceTime","mediaViewer"]),a="".concat(r.id).concat(r.resourceId?"-".concat(r.resourceId):""),s=Un(Object(o.useState)({}),2),l=s[0],u=s[1],c=void 0===l[a]||l[a],d=n||Vn[r.mediaType||r.type]||Wn;return i.a.createElement(d,Bn({sectionType:r.sectionType,debounceTime:t,loading:l,isLoading:c,onLoad:u,loadingId:a},r))};Gn.propTypes={id:Ve.a.string,lazy:Ve.a.bool,mediaType:Ve.a.string,type:Ve.a.string,debounceTime:Ve.a.number},Gn.defaultProps={id:"",lazy:!0,mediaType:"",type:""};var qn=Gn,Yn=n("./MapStore2/web/client/components/misc/Dialog.jsx");function Qn(){return(Qn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var er=function(e){var t=e.show,n=e.style,r=void 0===n?{}:n,o=e.modal,a=e.draggable,s=void 0!==a&&a,l=e.closeGlyph,u=void 0===l?"1-close":l,c=e.closable,d=void 0===c||c,p=e.onClose,f=void 0===p?function(){}:p,h=e.title,m=e.header,g=e.footer,y=e.children,b=$n(e,["show","style","modal","draggable","closeGlyph","closable","onClose","title","header","footer","children"]);return t?i.a.createElement(Yn.a,Qn({modal:o,onClickOut:d&&o?function(){return f()}:null,style:Jn(Jn({},r),{},{display:t?"block":"none"}),draggable:s},b),i.a.createElement("span",{role:"header"},h||(m||i.a.createElement("span",null," ")),d?i.a.createElement("button",{onClick:function(){return f()},className:"settings-panel-close close"},i.a.createElement(tn.Glyphicon,{glyph:u})):null),i.a.createElement("span",{role:"body"},y),g?i.a.createElement("span",{role:"footer"},g):null):null},tr=n("./MapStore2/web/client/components/I18N/Message.jsx"),nr=Object(Ae.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.viewHeight,o=e.size;return!n||!r||!o}),Object(Fe.a)((function(){return!0}),(function(){return{glyph:"code"}}))),rr=Object(Ae.compose)(nr)((function(e){var t=e.src,n=e.size,r=e.viewHeight;return i.a.createElement("div",{className:"ms-webpage-wrapper"},i.a.createElement("iframe",{src:t,height:"".concat(Object(d.u)(n,r),"px")}))})),or=n("./MapStore2/web/client/utils/URLUtils.js"),ir=n("./MapStore2/web/client/utils/ConfigUtils.js"),ar=n("./node_modules/react-intersection-observer/react-intersection-observer.esm.js"),sr=n("./MapStore2/node_modules/lodash/debounce.js"),lr=n.n(sr);function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Tr=function(e){var t=e.type;return i.a.createElement("div",{className:"ms-content ms-content-unknown"},'warning: unknown content type "'.concat(t,'"'))},Pr=function(e){var t=e.type,n=Dr(e,["type"]),r=function(e){switch(e){case d.a.TEXT:return Ft;case d.a.MEDIA:case d.e.IMAGE:case d.e.MAP:case d.e.VIDEO:return qn;case d.a.WEBPAGE:return Ar;default:return Tr}}(t);return i.a.createElement(r,kr({type:t},n))},Ir=n("./MapStore2/web/client/components/geostory/common/ToolbarPopover.jsx"),Nr=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function Lr(e){return(Lr="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 Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var no=function(e){var t=e.viewWidth,n=e.viewHeight,r=e.className,o=e.contentProps,a=void 0===o?{}:o,s=e.addButtons,l=void 0===s?[]:s,u=e.tools,c=void 0===u?[]:u,p=e.contents,f=void 0===p?[]:p,h=e.ContentComponent,m=void 0===h?Pr:h,g=e.mode,y=e.sectionType,b=e.editMedia,v=void 0===b?function(){}:b,w=e.editWebPage,j=void 0===w?function(){}:w,O=e.add,_=void 0===O?function(){}:O,S=e.update,x=void 0===S?function(){}:S,E=e.remove,C=void 0===E?function(){}:E,M=e.bubblingTextEditing,A=void 0===M?function(){}:M,k=e.storyTheme,D=e.sections,T=void 0===D?[]:D,P=e.storyFonts;return i.a.createElement("div",{className:r},f.reduce((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,o=r.id,s=to(r,["id"]),u=[i.a.createElement(m,eo({id:o,key:"".concat(o,"-content"),mode:g,viewWidth:t,sectionType:y,viewHeight:n,editMedia:function(e){for(var t=e.path,n=void 0===t?"":t,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r0&&u.push(i.a.createElement(Yr,{key:"".concat(o,"-content-add-buttons"),containerWidth:t,containerHeight:n,buttons:l.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xr(Xr({},e),{},{onClick:function(){return _("contents",o,e.template)}})}))})),[].concat(Qr(e),u)}),[]))};n("./node_modules/intersection-observer/intersection-observer.js");function ro(){return(ro=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var io=function(e){return Object(Ae.compose)(Object(Ae.withHandlers)({onVisibilityChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.onVisibilityChange,r=void 0===n?function(){}:n;return function(e,n){return r({id:t,visible:e,entry:n})}}}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onVisibilityChange,n=(e.rootSelector,oo(e,["onVisibilityChange","rootSelector"]));return function(e){return function(r){var o=r.intersectionObserverOptions,a=void 0===o?{}:o,s=r.onVisibilityChange,l=oo(r,["intersectionObserverOptions","onVisibilityChange"]),u=t||s;return i.a.createElement(ar.a,ro({},n,a,{onChange:u}),(function(t){var n=t.inView,r=t.ref,o=t.entry;return i.a.createElement(e,ro({},l,{inView:n,inViewRef:r,inViewEntry:o}))}))}}}(e))},ao=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),so=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),lo=n("./MapStore2/node_modules/lodash/find.js"),uo=n.n(lo),co=n("./MapStore2/node_modules/lodash/isFunction.js"),po=n.n(co),fo=n("./MapStore2/node_modules/lodash/isEqual.js"),ho=n.n(fo);function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return go(e,t)}(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 go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=(null==e?void 0:e.Component)||tn.MenuItem;return v(t,e)?null:i.a.createElement(n,{key:e.value,selected:t,value:e.value,active:po()(null==e?void 0:e.isActive)&&e.isActive(t)||!S()(t)&&t===e.value,onClick:null!=e&&e.Component?s:function(){return s(e.value)},onActive:function(e){return C(e)}},e.label)})))}var vo=n("./MapStore2/web/client/components/misc/withConfirm.jsx"),wo=n("./MapStore2/web/client/components/geostory/common/CustomThemePicker.jsx"),jo=n("./MapStore2/node_modules/lodash/isObject.js"),Oo=n.n(jo);function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Lo={size:function(e){return{renderButton:i.a.createElement(Mo,e)}},align:function(e){return{renderButton:i.a.createElement(Ao,e)}},theme:function(e){return{renderButton:i.a.createElement(ko,e)}},fit:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.fit,o=e.update,i=void 0===o?function(){}:o;return{value:r,glyph:"contain"===r?"fit-cover":"fit-contain",disabled:n,visible:!0,tooltipId:"contain"===r?"geostory.contentToolbar.cover":"geostory.contentToolbar.fit",onClick:function(){return i("fit","contain"===r?"cover":"contain")}}},cover:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.cover,o=e.updateSection,i=void 0===o?function(){}:o;return{value:r,glyph:r?"height-auto":"height-view",visible:!0,disabled:n,tooltipId:r?"geostory.contentToolbar.contentHeightAuto":"geostory.contentToolbar.contentHeightView",onClick:function(){return i({cover:!r},"merge")}}},editMedia:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.path,o=e.editMedia,i=void 0===o?function(){}:o;return{glyph:"pencil","data-button":"pencil",visible:!0,disabled:n,tooltipId:"geostory.contentToolbar.editMedia",onClick:function(){i({path:r})}}},remove:function(e){return{renderButton:i.a.createElement(Do,e)}},editMap:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.update,o=void 0===r?function(){}:r;return{glyph:"map-edit",visible:!0,disabled:n,bsStyle:n?"success":"default",tooltipId:"geostory.contentToolbar.editMap",onClick:function(){o("editMap",!n)}}},editURL:function(e){var t=e.editURL,n=void 0!==t&&t,r=e.path,o=e.editWebPage,i=void 0===o?function(){}:o;return{glyph:"pencil",visible:!0,disabled:n,bsStyle:n?"success":"default",tooltipId:"geostory.contentToolbar.editURL",onClick:function(){i({path:r})}}},muted:function(e){var t=e.update,n=e.muted;return{glyph:n?"muted":"audio",visible:!0,active:!n,tooltipId:n?"geostory.contentToolbar.enableAudio":"geostory.contentToolbar.disableAudio",onClick:function(){t("muted",!n)}}},autoplay:function(e){var t=e.update,n=e.autoplay;return{glyph:"play-circle",visible:!("cover"===e.fit),active:n,tooltipId:n?"geostory.contentToolbar.disableAutoplay":"geostory.contentToolbar.enableAutoplay",onClick:function(){t("autoplay",!n)}}},loop:function(e){var t=e.update,n=e.loop;return{glyph:"loop",visible:!("cover"===e.fit),active:n,tooltipId:n?"geostory.contentToolbar.disableLoop":"geostory.contentToolbar.enableLoop",onClick:function(){t("loop",!n)}}},showCaption:function(e){var t=e.editMap,n=void 0!==t&&t,r=e.update,o=e.showCaption,i=e.caption,a=e.description;return{glyph:"caption",visible:!(!i&&!a),disabled:n,active:!(!o||n),tooltipId:o?"geostory.contentToolbar.hideCaption":"geostory.contentToolbar.showCaption",onClick:function(){r("showCaption",!o)}}}};function Ro(e){var t=e.tools,n=void 0===t?[]:t,r=No(e,["tools"]);return i.a.createElement("div",{className:"ms-content-toolbar"},i.a.createElement(Nr.a,{btnDefaultProps:{className:"square-button-md no-border",noTooltipWhenDisabled:!0},buttons:n.filter((function(e){return(null==e?void 0:e.id)&&Lo[e.id]||Lo[e]})).map((function(e){return(null==e?void 0:e.id)&&Lo[e.id](Po(Po({},r),e))||Lo[e](r)}))}))}function Fo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var zo=function(e){var t=e.id,n=e.inViewRef,r=e.children,o=e.type,a=e.contentWrapperStyle,s=e.contentToolbar,l=e.mode,u=Fo(e,["id","inViewRef","children","type","contentWrapperStyle","contentToolbar","mode"]),c=s||Ro;return i.a.createElement("div",{id:t,ref:n,style:a,className:"ms-content ms-content-".concat(o).concat(Object(d.p)(u))},i.a.createElement("div",{className:"ms-content-body",style:Object(d.t)(u)},l===d.f.EDIT&&i.a.createElement(c,u),r))};function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t1?o-1:0),a=1;a1?o-1:0),a=1;a1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.visible,o=t.entry;return Zo(Zo({},e),{},Jo({},n,{visible:r,entry:o}))}),{}).debounceTime(100).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(ze.maxBy)(Object.keys(e),(function(t){return e[t].visible?Object(ze.get)(e[t],"entry.intersectionRatio"):-1/0}));return{maxItem:t,items:e}}));return g.Observable.merge(n.pluck("maxItem").distinctUntilChanged().map((function(e){return{backgroundId:e}})),n.map((function(e){var t=e.maxItem,n=e.items;return 0===Object(ze.get)(n[t],"entry.intersectionRatio")?"EMPTY":t})).withLatestFrom(t.pluck("updateCurrentPage")).do((function(e){var t=qo(e,2),n=t[0],r=t[1];return r&&r({columnId:n})})).ignoreElements())}(r,e).startWith({}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Zo(Zo({},e),t)}),{})),{},{onVisibilityChange:n})}))})),ei),ni=function(){function e(e,t){var n=void 0!==t?t:{};this.version="3.6.6",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:n.customStickyChangeNumber||null,noStyles:n.noStyles||!1,stickyBitStickyOffset:n.stickyBitStickyOffset||0,parentClass:n.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof n.scrollEl?document.querySelector(n.scrollEl):n.scrollEl||window,stickyClass:n.stickyClass||"js-is-sticky",stuckClass:n.stuckClass||"js-is-stuck",stickyChangeClass:n.stickyChangeClass||"js-is-sticky--change",useStickyClasses:n.useStickyClasses||!1,useFixed:n.useFixed||!1,useGetBoundingClientRect:n.useGetBoundingClientRect||!1,verticalPosition:n.verticalPosition||"top"},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var r=this.props,o=r.positionVal,i=r.verticalPosition,a=r.noStyles,s=r.stickyBitStickyOffset,l="top"!==i||a?"":s+"px",u="fixed"!==o?o:"";this.els="string"==typeof e?document.querySelectorAll(e):e,"length"in this.els||(this.els=[this.els]);for(var c=0;c=s&&"sticky"===o;w>i&&w=a&&w<=s;ws?b((function(){v(n,f)})):_&&b((function(){v(n,"stub",f)}))},t.update=function(e){void 0===e&&(e=null);for(var t=0;t=h?h:n,storyTheme:G,mediaViewer:L,contentToolbar:R,inView:F}))})),i.a.createElement(Go,{className:"ms-section-contents".concat(T),contents:a,mode:s,add:y,sectionType:c,update:v,remove:_,sectionId:t,contentProps:{contentWrapperStyle:p?{minHeight:h,visibility:K}:{visibility:K},mediaViewer:L,contentToolbar:R},tools:Vi({},d.a.TEXT,["size","align","theme","remove"]),focusedContent:M,bubblingTextEditing:k,storyTheme:V,sections:B,storyFonts:U}),s===d.f.EDIT&&!H&&i.a.createElement(Yr,{containerWidth:f,containerHeight:h,buttons:[{glyph:"story-title-section",tooltipId:"geostory.addTitleSection",onClick:function(){y("sections",t,d.h.TITLE)}},{glyph:"story-banner-section",tooltipId:"geostory.addBannerSection",onClick:function(){y("sections",t,d.h.BANNER)}},{glyph:"story-paragraph-section",tooltipId:"geostory.addParagraphSection",onClick:function(){y("sections",t,d.h.PARAGRAPH)}},{glyph:"story-immersive-section",tooltipId:"geostory.addImmersiveSection",onClick:function(){y("sections",t,d.h.IMMERSIVE)}},{glyph:"story-media-section",tooltipId:"geostory.addMediaSection",onClick:function(){y("sections",t,d.g.MEDIA)}},{glyph:"story-webpage-section",tooltipId:"geostory.addWebPageSection",onClick:function(){y("sections",t,d.g.WEBPAGE)}}]}))}));function qi(){return(qi=Object.assign||function(e){for(var t=1;t=f?f:n,storyTheme:M,mediaViewer:A,contentToolbar:k,inView:D}))})),i.a.createElement("div",{style:{minHeight:c?f:300,pointerEvents:"none"}}),o===d.f.EDIT&&!T&&i.a.createElement(Yr,{containerWidth:p,containerHeight:f,buttons:[{glyph:"story-title-section",tooltipId:"geostory.addTitleSection",onClick:function(){g("sections",t,d.h.TITLE)}},{glyph:"story-banner-section",tooltipId:"geostory.addBannerSection",onClick:function(){g("sections",t,d.h.BANNER)}},{glyph:"story-paragraph-section",tooltipId:"geostory.addParagraphSection",onClick:function(){g("sections",t,d.h.PARAGRAPH)}},{glyph:"story-immersive-section",tooltipId:"geostory.addImmersiveSection",onClick:function(){g("sections",t,d.h.IMMERSIVE)}},{glyph:"story-media-section",tooltipId:"geostory.addMediaSection",onClick:function(){g("sections",t,d.g.MEDIA)}},{glyph:"story-webpage-section",tooltipId:"geostory.addWebPageSection",onClick:function(){g("sections",t,d.g.WEBPAGE)}}]}))}));function Ji(e){return(Ji="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 Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/#\d|^#-\d/g,(function(e,t){return t?"#\\"+t[1]+t[2]:"#\\3"+e[1]+" "}))})),ya(ma(e),"getFocusedTarget",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.targets,n=e.props.padding,r=void 0===n?{}:n;return t.map((function(t){var n=t.selector,o=null;try{var i=window.document.querySelector(e.getAdjustedSelector(n));if(i){var a=i.getBoundingClientRect(),s=a.top,l=a.right,u=a.bottom,c=a.left;o={x:c-r,y:s-r,w:l-c+2*r,h:u-s+2*r}}}catch(e){console.warn(e)}finally{return o}})).filter((function(e){return e}))})),ya(ma(e),"getHolePath",(function(t){var n=t.x,r=t.y,o=t.w,i=t.h,a=e.props.borderRadius,s=void 0===a?8:a;return"M ".concat(n," ").concat(r+s," q 0 -").concat(s," ").concat(s," -").concat(s," h ").concat(o-2*s," q ").concat(s," 0 ").concat(s," ").concat(s," v ").concat(i-2*s," q 0 ").concat(s," -").concat(s," ").concat(s," h-").concat(o-2*s," q -").concat(s," 0 -").concat(s," -").concat(s," v-").concat(i-2*s)})),ya(ma(e),"getPath",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getFocusedTarget(),o="M 0 0 h ".concat(n," v ").concat(t," h -").concat(n," v -").concat(t),i=r.map(e.getHolePath);return o+i.join(" ")})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.onMaskClicked,r=t.stopEventsOnTargets,o=void 0!==r&&r,a=t.targets,s=this.getFocusedTarget(a.filter((function(e){var t=e.stopEventsOnTarget;return o||t})));return i.a.createElement("div",{style:{position:"fixed",height:"100vh",width:"100vw",top:0,left:0,zIndex:1e6,pointerEvents:"none"}},i.a.createElement(Me.a,null,(function(t){var r=t.width,o=t.height;return i.a.createElement("svg",{width:r,height:o,xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{d:e.getPath(o,r),fill:"rgba(0,0,0,0.7)",fillRule:"evenodd",pointerEvents:"visiblePainted",onClick:n}),s.map((function(t,n){return i.a.createElement("path",{key:n,d:e.getHolePath(t),fill:"transparent",pointerEvents:"visiblePainted"})})))})))}}])&&da(t.prototype,n),r&&da(t,r),a}(i.a.Component);ya(ba,"propTypes",{targets:Ve.a.arrayOf(Ve.a.shape({selector:Ve.a.string,stopEventsOnTarget:Ve.a.bool})),padding:Ve.a.number,borderRadius:Ve.a.number,onMaskClicked:Ve.a.func,stopEventsOnTargets:Ve.a.bool}),ya(ba,"defaultProps",{targets:[],padding:0,borderRadius:8,onMaskClicked:function(){},stopEventsOnTargets:!1});function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t=640&&t<1024?"md":""},Sa=Object(Ae.compose)(Re,Ke,function(e){var t=e.showFocusMask,n=void 0===t?function(){}:t,r=e.defaultTargets,o=void 0===r?{selector:".ms-geostory-map-editor"}:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.padding,l=void 0===s?0:s,u=a.borderRadius,c=void 0===u?8:u,d=a.stopEventsOnTargets,p=void 0!==d&&d,f=a.onMaskClicked,h=void 0===f?function(){}:f;return Object(Ae.branch)(n,(function(e){return Object(Ae.nest)((function(e){var t=e.focusedContent,n=e.children;return i.a.createElement(i.a.Fragment,null,n,i.a.createElement(ba,{targets:[t,o],padding:l,borderRadius:c,stopEventsOnTargets:p,onMaskClicked:h}))}),e)}))}({showFocusMask:function(e){var t=e.focusedContent,n=(t=void 0===t?{}:t).target;return(void 0===n?{}:n).id}}))((function(e){var t=e.mode,n=void 0===t?d.f.VIEW:t,r=e.sections,o=void 0===r?[]:r,a=e.add,s=void 0===a?function(){}:a,l=e.onVisibilityChange,u=void 0===l?function(){}:l,c=e.updateCurrentPage,p=void 0===c?function(){}:c,f=e.editMedia,h=void 0===f?function(){}:f,m=e.editWebPage,g=void 0===m?function(){}:m,y=e.update,b=void 0===y?function(){}:y,v=e.remove,w=void 0===v?function(){}:v,j=e.focusedContent,O=e.isContentFocused,_=void 0!==O&&O,S=e.getSize,x=void 0===S?_a:S,E=e.theme,C=void 0===E?{}:E,M=e.mediaViewer,A=e.contentToolbar,k=e.storyFonts;return i.a.createElement(Ee.a,{className:"ms-cascade-story ms-".concat(n)},i.a.createElement(Oa,{sections:o,add:s},(function(e){var t,r=e.width,a=e.height,l=x({width:r,height:a,mode:n}),c=l?" ms-".concat(l):"",d="sm"===l,f=C&&Oo()(C)&&C||{};return i.a.createElement("div",{id:"ms-sections-container",className:"ms-sections-container".concat(c," ms-sections-hyperlinks"),style:wa(wa({},null==f?void 0:f.general),_&&{overflow:"hidden"})},(null==f||null===(t=f.link)||void 0===t?void 0:t.color)&&i.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .ms-sections-hyperlinks .ms-text-editor-main a,\n .ms-sections-hyperlinks .ms-text-wrapper a,\n .ms-sections-hyperlinks .ms-text-editor-main a:link,\n .ms-sections-hyperlinks .ms-text-wrapper a:link,\n .ms-sections-hyperlinks .ms-text-editor-main a:visited,\n .ms-sections-hyperlinks .ms-text-wrapper a:visited,\n .ms-sections-hyperlinks .ms-text-editor-main a:active,\n .ms-sections-hyperlinks .ms-text-wrapper a:active {\n color: ".concat(f.link.color,";\n opacity: 1;\n }\n .ms-sections-hyperlinks .ms-text-editor-main a:hover,\n .ms-sections-hyperlinks .ms-text-wrapper a:hover {\n color: ").concat(f.link.color,";\n opacity: 0.75;\n }\n ")}}),o.map((function(e){var t=e.contents,l=void 0===t?[]:t,c=e.id,m=e.type,y=e.cover;return i.a.createElement(la,{focusedContent:j,onVisibilityChange:u,add:s,editMedia:h,expandableMedia:d,editWebPage:g,updateCurrentPage:p,update:b,remove:w,key:c,id:c,viewHeight:a,viewWidth:r,type:m,mode:n,contents:l,cover:y,storyTheme:f,mediaViewer:M,contentToolbar:A,sections:o,storyFonts:k})})))})))})),xa=n("./node_modules/uuid/index.js"),Ea=n.n(xa),Ca=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js");function Ma(e){return function(e){if(Array.isArray(e))return Aa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aa(e,t)}(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 Aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{focusedEl:e}}))),Object(Ae.withProps)((function(e){var t=e.focusedEl,n=(t=void 0===t?{}:t).resourceId,r=t.map;return{map:r||{},resourceId:n,disableReset:!r}}))),Fa=Object(Ae.withHandlers)({onChangeMap:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e,n){t("".concat(r.path,".map.").concat(e),n,"merge")}},onChange:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e,n){t(r.path+".".concat(e),n,"merge")}}}),za=Object(Ae.compose)(Object(a.connect)(null,{toggleAdvancedEditing:Q.e}),Object(Ae.withHandlers)({toggleAdvancedEditing:function(e){var t=e.toggleAdvancedEditing,n=void 0===t?function(){}:t,r=e.map,o=void 0===r?{}:r;return function(){var e=o.id,t=Da(o,["id"]);n("inlineEditor",{data:t,id:e})}}})),Ba=Object(Ae.withHandlers)({toggleEditing:function(e){var t=e.editMap,n=e.update,r=e.focusedContent;return function(){return n(r.path+".editMap",!t)}},onReset:function(e){var t=e.update,n=e.focusedContent,r=(n=void 0===n?{}:n).path,o=void 0===r?"":r;return function(){t(o+".map",void 0)}},discardAndClose:function(e){var t=e.update,n=e.focusedContent,r=void 0===n?{}:n;return function(e){t(r.path+".map",e),t(r.path+".editMap",!1)}}}),Ua=function(e){return i.a.createElement(Na,ka({glyph:"repeat",bsStyle:"primary",className:"square-button-md no-border",tooltipId:"geostory.contentToolbar.resetMap",confirmTitle:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.resetMapConfirm"}),confirmContent:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.resetConfirmContent"})},e))},Ha=Object(Ae.compose)(Object(Ae.withProps)((function(e){var t=e.pendingChanges,n=e.toggleEditing,r=e.disableReset,o=e.onReset,a=e.toggleAdvancedEditing,s=void 0===a?function(){}:a;return{buttons:[{glyph:"floppy-disk",disabled:!t,tooltipId:"geostory.contentToolbar.saveChanges",onClick:n},{renderButton:i.a.createElement(Ua,{disabled:r,onClick:o})},{glyph:"pencil",tooltipId:"geostory.contentToolbar.advancedMapEditor",onClick:s}]}})),Ca.a,Object(Ae.withStateHandlers)((function(){return{editNode:void 0}}),{setEditNode:function(){return function(e){return{editNode:e}}},closeNodeEditor:function(){return function(){return{editNode:void 0}}}}),Object(Ae.branch)((function(e){return!!e.editNode}),Object(Ae.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.closeNodeEditor,o=void 0===r?function(){}:r;return{buttons:[{visible:1===n.length,tooltipId:"close",glyph:"1-close",onClick:o}]}})),Object(Ae.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.setEditNode,o=void 0===r?function(){}:r,i=e.buttons,a=void 0===i?[]:i;return{buttons:[{visible:1===n.length,glyph:"wrench",tooltipId:"toc.toolLayerSettingsTooltip",onClick:function(){o(n[0])}}].concat(Ma(a))}})))),Ka=Object(Ae.compose)(Object(Ae.withPropsOnChange)(["focusedContent"],(function(e){var t=e.map,n=e.focusedEl;return{contentMap:(n=void 0===n?{}:n).map,lastSavedMap:t}})),Object(Ae.withPropsOnChange)(["map"],(function(e){var t=e.map,n=e.lastSavedMap;return{pendingChanges:!Object(ze.isEqual)(n,t)}}))),Wa=Object(Ae.compose)(Object(Ae.withProps)((function(e){var t=e.toggleEditing;return{CloseBtn:function(e){return i.a.createElement(ao.a,ka({onClick:t},e))}}})),Object(Ae.branch)((function(e){return e.pendingChanges}),Object(Ae.withProps)((function(e){var t=e.discardAndClose,n=e.contentMap;return{CloseBtn:function(e){return i.a.createElement(Na,ka({onClick:function(){return t(n)},confirmTitle:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.confirmCloseMapEditing"}),confirmContent:i.a.createElement(tr.default,{msgId:"geostory.contentToolbar.pendingChangesDiscardConfirm"})},e))}}})))),Va=Object(Ae.mapPropsStream)((function(e){var t=Object(Ae.createEventHandler)(),n=t.stream,r=t.handler;return e.pluck("map").distinctUntilChanged((function(e,t){return Object(ze.isEqual)(e,t)})).switchMap((function(e){return n.map((function(t){return{map:Pa(Pa({},e),t)}})).startWith({map:e})})).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pa(Pa({},n),{},{onMapViewLocalChanges:r,map:t})}))})),Ga=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0},qa=Object(Ae.withHandlers)({onMapViewChanges:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.update,n=e.editMap,r=void 0!==n&&n,o=e.onMapViewLocalChanges,i=e.map,a=(i=void 0===i?{}:i).center,s=void 0===a?{}:a,l=i.zoom;return function(e){var n=e.center,i=void 0===n?{}:n,a=e.zoom,u=e.mapStateSource,c=Ga(s.x,i.x)&&Ga(s.y,i.y);!r||c&&l===a?o({center:i,zoom:a,mapStateSource:u}):t("map",{center:i,zoom:a,mapStateSource:Ea()()},"merge")}}}),Ya=n("./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js"),Qa=n("./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx"),Za=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js");function Ja(){return(Ja=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $a=Object(kn.a)(tn.NavItem),es=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tabs,n=void 0===t?[]:t,r=e.activeTab,o=(e.width,e.setActiveTab),a=void 0===o?function(){}:o,s=Xa(e,["tabs","activeTab","width","setActiveTab"]);return i.a.createElement("div",{key:"ms-geostory-map-settings-navbar",className:"ms-row-tab"},i.a.createElement("div",null,i.a.createElement(tn.Nav,{bsStyle:"tabs",activeKey:r,justified:!0},n.map((function(e){return i.a.createElement($a,{key:"ms-tab-settings-"+e.id,tooltipId:e.tooltipId,eventKey:e.id,onClick:function(){return a(e.id)}},i.a.createElement(tn.Glyphicon,{glyph:e.glyph}))})))),i.a.createElement("div",null,n.filter((function(e){return e.id&&e.id===r})).filter((function(e){return e.Component})).map((function(e){return i.a.createElement(e.Component,Ja({},s,{key:"ms-geostory-tab-settings-body-"+e.id}))}))))},ts=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),ns=n("./node_modules/react-select/dist/react-select.es.js"),rs=n("./MapStore2/web/client/components/misc/switch/SwitchButton.jsx"),os=n("./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx"),is=Object(Ge.a)(["placeholder","options"])(ns.default),as=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{zoomControl:!0,mapInfoControl:!1}:t,r=e.onChangeMap,o=void 0===r?function(){}:r,a=n&&n.mapOptions||{},s=Object(d.j)({mapOptions:a,zoomControl:!!Object(ze.isNil)(n.zoomControl)||n.zoomControl,mapInfoControl:!Object(ze.isNil)(n.mapInfoControl)&&n.mapInfoControl});return i.a.createElement(tn.Form,{className:"ms-geostory-map-controls"},i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.zoom"})),i.a.createElement(rs.a,{onChange:function(){var e=!s.zoomControl;o("zoomControl",e),o("mapOptions.interactions",{doubleClickZoom:e,shiftDragZoom:e,pinchZoom:e})},className:"ms-geostory-map-controls-switch",checked:s.zoomControl}),i.a.createElement(is,{options:[{label:"geostory.mapEditor.topLeft",value:"topLeft"},{label:"geostory.mapEditor.topRight",value:"topRight"},{label:"geostory.mapEditor.bottomLeft",value:"bottomLeft"},{label:"geostory.mapEditor.bottomRight",value:"bottomRight"}],wrapperStyle:{marginTop:"10px"},value:s.mapOptions&&s.mapOptions.zoomPosition||"topLeft",clearable:!1,disabled:!s.zoomControl,onChange:function(e){return o("mapOptions.zoomPosition",e&&e.value?e.value:"topLeft")},placeholder:"geostory.builder.settings.titlePlaceholder"})),i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.pan"})),i.a.createElement(rs.a,{onChange:function(){var e=!(s.mapOptions&&s.mapOptions.interactions&&s.mapOptions.interactions.dragPan);o("mapOptions.interactions",{dragPan:e,keyboardPan:e})},className:"ms-geostory-map-controls-switch",checked:s.mapOptions&&s.mapOptions.interactions&&s.mapOptions.interactions.dragPan})),i.a.createElement(tn.FormGroup,null,i.a.createElement(tn.ControlLabel,null,i.a.createElement(tr.default,{msgId:"geostory.mapEditor.identify"})),i.a.createElement(rs.a,{onChange:function(){var e=!s.mapInfoControl;o("mapInfoControl",e)},className:"ms-geostory-map-controls-switch",checked:s.mapInfoControl}),s.mapInfoControl&&i.a.createElement(os.a,{disabled:!s.mapInfoControl,popoverMessage:"geostory.builder.settings.templateTooltip",infoFormat:s.mapOptions&&s.mapOptions.mapInfoFormat||"application/json",onInfoFormatChange:function(e){return o("mapOptions.mapInfoFormat",e)},selectProps:{wrapperStyle:{marginTop:10}}})))},ss=n("./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx"),ls=Object(Ae.withProps)((function(e){return{tabs:e.tabs||[{id:"toc",titleId:"geostory.mapEditor.toc",tooltipId:"geostory.mapEditor.toc",glyph:"1-layer",visible:!0,Component:ss.a},{id:"settings",titleId:"geostory.mapEditor.settings",tooltipId:"geostory.mapEditor.settings",glyph:"wrench",visible:!0,Component:as}]}})),us=Object(Ae.compose)(Object(ts.a)("activeTab","setActiveTab","toc"),ls),cs=Object(Ae.compose)(Za.a,Object(Ae.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),Object(Ya.a)("title"))((function(e){var t=e.title,n=e.description;return i.a.createElement("div",{className:"text-center"},i.a.createElement("div",{className:"mapstore-step-title"},t),i.a.createElement("div",{className:"mapstore-step-description"},n))})),ds=Object(Za.a)(Qa.a),ps=us(es),fs=Object(Ae.branch)((function(e){var t=e.focusedContent;return(t=void 0===t?{}:t).path}),Object(Ae.compose)(Object(Ae.defaultProps)({isFocused:!0,editMap:!0}),Ra,La,Ka,Fa,Ba,za,Ha,Wa))((function(e){var t=e.mode,n=void 0===t?d.f.VIEW:t,r=e.isFocused,o=void 0!==r&&r,a=e.map,s=void 0===a?{}:a,l=e.onChange,u=void 0===l?function(){}:l,c=e.onChangeMap,p=void 0===c?function(){}:c,f=e.onNodeSelect,h=void 0===f?function(){}:f,m=e.selectedNodes,g=e.buttons,y=void 0===g?[]:g,b=e.editNode,v=e.closeNodeEditor,w=e.CloseBtn,j=void 0===w?function(){return null}:w;return n===d.f.EDIT&&o?i.a.createElement("div",{key:"left-column",style:{order:-1,width:400,position:"relative"}},i.a.createElement(Ee.a,{className:"ms-geostory-map-editor",header:i.a.createElement("div",{className:"ms-geostory-map-editor-header text-center"},i.a.createElement(tn.Row,null,i.a.createElement(tn.Col,{md:12,className:"text-center",style:{overflow:"hidden",lineHeight:"52px"}},i.a.createElement(j,{glyph:"1-close",className:"pull-left on-close-btn square-button no-border ",tooltipId:"geostory.contentToolbar.closeMapEditing"}),i.a.createElement("div",{className:"mapstore-step-title"},i.a.createElement(tr.default,{msgId:"geostory.mapEditor.configureMapOptions"})))),i.a.createElement(Nr.a,{transitionProps:!1,btnGroupProps:{className:"ms-geostory-map-editor-toolbar"},btnDefaultProps:{className:"square-button-md no-border",bsStyle:"primary",noTooltipWhenDisabled:!0},buttons:y}))},!!b&&[i.a.createElement(cs,{map:s,editNode:b}),i.a.createElement(ds,{closeNodeEditor:v,editNode:b,map:s,onChange:u})]||[i.a.createElement(ps,{map:s,onChange:u,onChangeMap:p,selectedNodes:m,onSelect:h})])):null}));function hs(){return(hs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xs={image:Object(Ae.branch)((function(e){return e.resourceId}),Object(Ae.compose)(Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}}))),Object(Ae.withProps)((function(e){var t=e.resources,n=e.resourceId;return(uo()(t,{id:n})||{}).data}))),Object(Fe.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.sectionType;return!n&&r!==d.h.TITLE&&r!==d.h.IMMERSIVE}),(function(){return{glyph:"picture"}})))(bs(en)),map:Object(Ae.compose)(Object(Ae.branch)((function(e){return e.resourceId}),La),vs.a,Va,qa)(bs(Fn)),video:Object(Ae.branch)((function(e){return e.resourceId}),Object(Ae.compose)(Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}}))),Object(Ae.withProps)((function(e){var t=e.resources,n=e.resourceId,r=e.autoplay,o=(uo()(t,{id:n})||{}).data||{},i=o.autoplay;return Os(Os({},Ss(o,["autoplay"])),{},{autoplay:void 0!==r?r:i})}))),Object(Fe.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.src,n=void 0===t?"":t,r=e.sectionType;return!n&&r!==d.h.TITLE&&r!==d.h.IMMERSIVE}),(function(){return{glyph:"play"}})))(bs(zn.a))},Es=function(e){var t=e.type,n=Ss(e,["type"]),r=xs[t];return r?i.a.createElement(r,ws({type:t},n)):null};function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var As=Object(a.connect)(Object(s.a)(V.t,(function(e){return{resources:e}})))((function(e){var t=e.resources,n=Ms(e,["resources"]);if(n.resourceId){var r=(uo()(t,{id:n.resourceId})||{}).data||{};return i.a.createElement(Ro,Cs({},r,n))}return i.a.createElement(Ro,n)}));function ks(){return(ks=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ts=function(e){var t=e.story,n=e.mode,r=void 0===n?d.f.VIEW:n,a=e.onAdd,s=e.messages,l=e.fontFamilies,c=void 0===l?[]:l,f=e.storyFonts,h=void 0===f?[]:f,m=e.webFont,g=void 0===m?u.a:m,y=e.onUpdate,b=void 0===y?function(){}:y,v=e.onBasicError,w=void 0===v?function(){}:v,j=e.onUpdateMediaEditorSetting,O=e.mediaEditorSettings,_=Ds(e,["story","mode","onAdd","messages","fontFamilies","storyFonts","webFont","onUpdate","onBasicError","onUpdateMediaEditorSetting","mediaEditorSettings"]),S=Object(o.useCallback)((function(e){return Object(p.f)(s,e)}),[s]),x=function(e,t,n){return a(e,t,n,S)};return Object(o.useEffect)((function(){window.__geostory_interaction=function(e,t){"scrollTo"===e&&Object(d.z)(t,{behavior:"smooth"})}}),[]),Object(o.useEffect)((function(){b("settings.theme.fontFamilies",c,"merge"),O&&j(O)}),[]),Object(o.useEffect)((function(){h.length>0&&(h.filter((function(e){var t=e.src;return t&&!document.head.querySelector("link[href='".concat(t,"']"))})).length>0&&g.load(Object(d.l)(h,(function(){}),(function(){return w({message:"geostory.builder.settings.webFontLoadError"})}))))}),[h]),i.a.createElement(Ee.a,{className:"ms-geostory",columns:[i.a.createElement(fs,ks({},_,{add:x,update:b,mode:r}))]},i.a.createElement(Sa,ks({},t,_,{storyFonts:Object(d.m)(h),add:x,update:b,mode:r,mediaViewer:Es,contentToolbar:As})))};Ts.defaultProps={storyFonts:[],fontFamilies:[],onUpdateMediaEditorSetting:function(){}};t.default=Object(c.d)("GeoStory",{component:Object(a.connect)(Object(s.c)({mode:V.p,story:V.e,messages:Se.c,focusedContent:V.g,isContentFocused:V.k,theme:function(e){var t;return(null===(t=Object(V.x)(e))||void 0===t?void 0:t.theme)||{}},storyFonts:V.d}),{onAdd:h.D,onUpdate:h.bb,updateCurrentPage:h.cb,onUpdateSetting:h.eb,remove:h.M,editMedia:m.s,editWebPage:h.G,onBasicError:f.a,onUpdateMediaEditorSetting:h.db})(Ts),reducers:{geostory:xe.a},epics:r})},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e){return e.locale&&e.locale.current||"en-US"},a=function(e){return e.locale&&e.locale.messages||{}},s=Object(r.a)([i],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},i=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return D})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return N})),n.d(t,"normalizePoint",(function(){return R})),n.d(t,"reproject",(function(){return z})),n.d(t,"reprojectExtent",(function(){return U})),n.d(t,"getPolygonFromExtent",(function(){return H})),n.d(t,"getExtentFromNormalized",(function(){return K})),n.d(t,"crsCodeTable",(function(){return W})),n.d(t,"setCrsLabels",(function(){return V})),n.d(t,"getUnits",(function(){return G})),n.d(t,"getProjectedBBox",(function(){return q})),n.d(t,"createBBox",(function(){return Y})),n.d(t,"reprojectGeoJson",(function(){return Q})),n.d(t,"lineIntersectPolygon",(function(){return Z})),n.d(t,"normalizeLng",(function(){return J})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ie})),n.d(t,"filterCRSList",(function(){return ae})),n.d(t,"calculateAzimuth",(function(){return se})),n.d(t,"calculateDistance",(function(){return le})),n.d(t,"extendExtent",(function(){return ue})),n.d(t,"getGeoJSONExtent",(function(){return ce})),n.d(t,"isValidExtent",(function(){return de})),n.d(t,"calculateCircleCoordinates",(function(){return pe})),n.d(t,"transformLineToArcs",(function(){return fe})),n.d(t,"transformArcsToLine",(function(){return he})),n.d(t,"coordsOLtoLeaflet",(function(){return me})),n.d(t,"mergeToPolyGeom",(function(){return ge})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return be})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return we})),n.d(t,"parseString",(function(){return je})),n.d(t,"getWMSBoundingBox",(function(){return Oe})),n.d(t,"isSRSAllowed",(function(){return _e})),n.d(t,"getNormalizedLatLon",(function(){return Se})),n.d(t,"isInsideVisibleArea",(function(){return xe})),n.d(t,"centerToVisibleArea",(function(){return Ee})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return Ce})),n.d(t,"roundCoord",(function(){return Me})),n.d(t,"midpoint",(function(){return Ae})),n.d(t,"pointObjectToArray",(function(){return ke})),n.d(t,"isPointInsideExtent",(function(){return De})),n.d(t,"isBboxCompatible",(function(){return Te})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return Ie})),n.d(t,"makeBboxFromOWS",(function(){return Ne}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/proj4.js"),a=n.n(i),s=n("./MapStore2/web/client/libs/ajax.js"),l=n.n(s),u=n("./node_modules/object-assign/index.js"),c=n.n(u),d=n("./MapStore2/node_modules/lodash/lodash.js"),p=n("./node_modules/@turf/line-intersect/index.js"),f=n.n(p),h=n("./node_modules/@turf/polygon-to-linestring/index.js"),m=n.n(h),g=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),b=n.n(y),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),w=n("./node_modules/@turf/boolean-overlap/main.es.js"),j=n("./node_modules/@turf/boolean-contains/main.es.js");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return T(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function I(e,t,n){if(null===e)return e;var r=Object(d.cloneDeep)(e);return"Feature"===e.type?r.geometry=I(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return I(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return I(e,t,n)})):t&&t(r),n&&n(r),r}function N(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var L={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},R=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},F=function(e){var t=e;return Object(d.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(d.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},z=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=n&&a.a.defs(n)?new a.a.Proj(n):null;if(o&&i){var s=Object(d.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),l=c()({},t===n?F(s):a.a.transform(o,i,F(s)),{srs:n});return r?R(l):l}return null},B=["EPSG:900913","EPSG:4326","EPSG:3857"],U=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[z([e[0],e[1]],"EPSG:4326",t),z([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])})):[z([e[0],e[1]],"EPSG:4326",t),z([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[])},H=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},K=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[z([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),z([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(x(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,i=t*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=o*a,u=o*s,c=i*a,d=i*s,p=e.x,f=e.y,h=p-l+d,m=p-l-d,g=p+l-d,y=p+l+d,b=f-u-c,v=f-u+c,w=f+u+c,j=f+u-c,O=A.createBBox(Math.min(h,m,g,y),Math.min(b,v,w,j),Math.max(h,m,g,y),Math.max(b,v,w,j));return O},Y=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=N(r)),"string"==typeof o&&(o=N(o));var i=k(r,o);return I(e,(function(e){e.crs&&delete e.crs,e.coordinates=T(e.coordinates,(function(e){var t=E(e,2),n=t[0],r=t[1];return i.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],I(e,(function(e){T(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Z=function(e,t){var n=m()(t).features[0];return 0!==f()(e,n).features.length},J=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(d.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in r)if(r.hasOwnProperty(a)){var s=A.reproject(r[a],t,n,o);if(!s)return null;var l=s.x,u=s.y;i.push(l),i.push(u)}return i},$=function(e){var t=Object(d.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,i],[o,i],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?A.getCompatibleSRS(n,t):n},oe=function(e,t){return t[A.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:L[t]||t});return e},ae=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return c()({},-1===t.indexOf(r)?n:_(_({},n),{},S({},r,e[r])))}),{}),i=r.map((function(e){return e.code})),a=Object.keys(n).reduce((function(e,t){return c()({},-1===i.indexOf(t)?e:_(_({},e),{},S({},t,n[t])))}),{});return c()({},o,a)},se=function(e,t,n){var r=A.reproject(e,n,"EPSG:4326"),o=A.reproject(t,n,"EPSG:4326"),i=r.x*Math.PI/180,a=r.y*Math.PI/180,s=o.x*Math.PI/180,l=o.y*Math.PI/180,u=s-i,c=Math.sin(u)*Math.cos(l),d=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(u);return(180*Math.atan2(c,d)/Math.PI+360)%360},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(D).indexOf(t)?D[t](e):0},ue=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},ce=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=A.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(d.chunk)(Object(d.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return A.getGeoJSONExtent(e.geometry)}return n},de=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},pe=function(e,t,n,r){var o,i,a,s=Math.PI*(1/n-.5);r&&(s+=r/180*Math.PI);for(var l=[[]],u=0;u1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(d.head)(e),Object(d.last)(e)]:e.length>t?[Object(d.head)(e)].concat(A.transformArcsToLine(Object(d.slice)(e,t))):[]},me=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},ge=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(d.head)(B.filter((function(e){return e===t})))){var n=K(e,t),r=n.extent,o=n.isIDL,i=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var a=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:r,center:[a=a>180?a-360:a,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var s=[e.minx,e.miny,e.maxx,e.maxy],l=[s[0],s[1]],u=[s[2],s[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[l,[l[0],u[1]],u,[u[0],l[1]],l]],extent:s,center:[(s[0]+s[2])/2,(s[1]+s[3])/2]}},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=A.getViewportGeometry(t,n),i=o.extent;if(4===i.length)return A.reprojectBbox(i,n,r);var a=i.map((function(e){return e[2]-e[0]})),s=E(a,2),l=s[0],u=s[1];return l>u?A.reprojectBbox(i[0],n,r):A.reprojectBbox(i[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return l.a.get(t||P(n),null,{timeout:2e3})},we=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(d.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},je=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},Oe=function(e,t){var n=t||"EPSG:3857",r=e&&Object(d.isArray)(e)&&Object(d.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&A.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(d.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},_e=function(e){return!!a.a.defs(e)},Se=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:A.normalizeLng(n)}},xe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=A.getNormalizedLatLon(e),i=z([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=A.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),s=_({left:0,right:0,top:0,bottom:0},n),l={minx:a[0]+s.left*r,miny:a[1]+s.bottom*r,maxx:a[2]-s.right*r,maxy:a[3]-s.top*r},u=A.getViewportGeometry(l,t.projection),c=4===u.extent.length?[x(u.extent)]:x(u.extent);return Object(d.head)(c.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=A.getNormalizedLatLon(e),i=z([o.lng,o.lat],"EPSG:4326",t.projection),a=_({left:0,right:0,top:0,bottom:0},n),s={width:(t.size.width-a.right-a.left)*r,height:(t.size.height-a.top-a.bottom)*r},l={minx:i.x-s.width/2-a.left*r,miny:i.y-s.height/2-a.bottom*r,maxx:i.x+s.width/2+a.right*r,maxy:i.y+s.height/2+a.top*r},u=A.getViewportGeometry(l,t.projection);if(4===u.extent.length)return{pos:z([u.extent[0]+t.size.width/2*r,u.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(u.extent[0][2]-u.extent[0][0])>Math.abs(u.extent[1][2]-u.extent[1][0])){var c=z([u.extent[0][2]-t.size.width/2*r,u.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),d=_(_({},c),{},{x:c.x+(o.lng>c.x?360:0)});return{pos:d,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:z([u.extent[1][0]+t.size.width/2*r,u.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(d.isArray)(n)?n:[n.x,n.y];if(Object(d.isNumber)(i[0])&&!isNaN(i[0])&&Object(d.isNumber)(i[1])&&!isNaN(i[1])&&Object(d.isNumber)(t.x)&&!isNaN(t.x)&&Object(d.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(d.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,s=a&&(Object(d.isArray)(a)?a:[a.x,a.y]);return Object(d.isArray)(s)?Math.sqrt((i[0]-s[0])*(i[0]-s[0])+(i[1]-s[1])*(i[1]-s[1])):o}return o},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[n]?Math[n](o):o},Ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(d.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(d.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[i.x,i.y]:i},ke=function(e){return Object(d.isObject)(e)&&Object(d.isNumber)(e.x)&&Object(d.isNumber)(e.y)?[e.x,e.y]:e},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(H(t),b()([e.lng,e.lat]))},Te=function(e,t){return Object(w.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Ie=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=W[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ne=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var i=n.slice(),a=r.slice();n=[a[0],i[1]],r=[i[0],a[1]]}return[n[0],n[1],r[0],r[1]]};A={setCrsLabels:V,getUnits:G,reproject:z,getProjectedBBox:q,createBBox:Y,reprojectGeoJson:Q,lineIntersectPolygon:Z,normalizePoint:R,normalizeLng:J,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:se,calculateDistance:le,FORMULAS:D,extendExtent:ue,getGeoJSONExtent:ce,isValidExtent:de,calculateCircleCoordinates:pe,transformLineToArcs:fe,transformArcsToLine:he,coordsOLtoLeaflet:me,mergeToPolyGeom:ge,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:be,fetchProjRemotely:ve,parseURN:we,determineCrs:N,parseString:je,getWMSBoundingBox:Oe,isSRSAllowed:_e,getNormalizedLatLon:Se,isInsideVisibleArea:xe,centerToVisibleArea:Ee,calculateCircleRadiusFromPixel:Ce,roundCoord:Me,midpoint:Ae,pointObjectToArray:ke,getExtentFromNormalized:K,getPolygonFromExtent:H,isPointInsideExtent:De,isBboxCompatible:Te,extractCrsFromURN:Pe,crsCodeTable:W,makeNumericEPSG:Ie,makeBboxFromOWS:Ne},t.default=A},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},i=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,a=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function s(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function l(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var u={HTML:{getValidResponses:function(e,t){return t?e.filter(s):e},getNoValidResponses:function(e){return e.filter((function(e){return!s(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},C=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var a=n.startDate.toISOString?n.startDate.toISOString():n.startDate,s=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+a+"<"+r+":UpperBoundary><"+r+":Literal>"+s+"")}}else if(n.startDate){var l=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+l+"")}return o},M=function(e,t,n,r){var o;return Object(p.isNil)(n)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},A=function(e,t,n,r){var o;return j(n,t)&&(o="isNull"===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag):"="===t?i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+""):i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>*"+n+"*")),o},k=function(e,t,n,r){var o="";return j(n,t)&&"="===t&&""!==n&&(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n+"")),o},D=function(e,t,n,r){var o;if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=i.ogcComparisonOperators["<="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=i.ogcComparisonOperators[">="](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var a=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(a)||(o=i.ogcComparisonOperators[t](r,E[r].startTag+e+E[r].endTag+"<"+r+":Literal>"+a+""))}return o},T=function(e,t){var n="";switch(e.type){case"date":n=C(e.attribute,e.operator,e.values,t);break;case"number":n=D(e.attribute,e.operator,e.values,t);break;case"string":n=A(e.attribute,e.operator,e.values,t);break;case"boolean":n=k(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+A(e.attribute,o,r,t)}),""),n=i.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(w(o),"')")},I=function(e){return"collectGeometries(".concat(e,")")},N=function(e,t,n){var r,a,s,l,u=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?b.processOGCFilterGroup(e.groupFields[0],e,n):b.processOGCFilterFields(null,e,n))&&u.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var c=i.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return T(e,n)})).join(""));u.push(c)}if(Object(p.isArray)(e.spatialField)?(l=Object(p.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(s=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?l=e.spatialField:s=[e.spatialField]),l){if(Object(p.isArray)(l.geometry&&l.geometry.extent[0])){var d=l.geometry.extent.reduce((function(e,r){var o=Object.assign({},l);return l.geometry.extent=r,e+b.processOGCSpatialFilter(t,o,n)}),"");a=i.ogcLogicalOperators.OR(n,d)}u.push(a)}else if(s&&(s=s.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var f=s.map((function(e){return b.processOGCSpatialFilter(t,e,n)})).join("");a=s.length>1?i.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,f):f,u.push(a)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var h=g(g({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?h.forEach((function(e){return u.push(b.processOGCCrossLayerFilter(e,n))})):u.push(b.processOGCCrossLayerFilter(h,n))}return e.options&&e.options.cqlFilter&&u.push(v(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),u},L=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var u=x(n||"2.0"),c="2.0"===u?"fes":"ogc",d=b.getGetFeatureBase(u,r.pagination,i,a,t&&t.options),p=b.toOGCFilterParts(r,u,c),f="";return p.length>0&&(f="<"+c+":Filter>",1===p.length?f+=p[0]:(f+="<"+c+":And>",p.forEach((function(e){f+=e})),f+=""),f+=""),d+=""),d+=f,s&&(d+=s.map((function(e){return E[c].startTag+e+E[c].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(d+="<"+c+":SortBy><"+c+":SortProperty>"+E[c].startTag+o.sortBy+E[c].endTag+"<"+c+":SortOrder>"+o.sortOrder+""),d+=""},R=function(e,t,n){var r=b.processOGCFilterFields(e,t,n),o=b.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=b.processOGCFilterGroup(e,t,n)})),""!==r?i.ogcLogicalOperators[e.logic](n,r):""},F=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&j(t.value,t.operator)})):t.filterFields.filter((function(e){return j(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=C(t.attribute,t.operator,t.value,n);break;case"number":r=D(t.attribute,t.operator,t.value,n);break;case"string":r=A(t.attribute,t.operator,t.value,n);break;case"boolean":r=k(t.attribute,t.operator,t.value,n);break;case"list":r=M(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=A(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},z=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},B=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},U=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},H=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},K=function(e,t,n){if(t.collectGeometries)return b.processOGCCrossLayerFilter(t);var a=E[n].startTag+t.attribute+E[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":a+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(a+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var s=t.geometry.extent[0]+" "+t.geometry.extent[1],l=t.geometry.extent[2]+" "+t.geometry.extent[3];a+=''+s+""+l+""}return i.ogcSpatialOperators[t.operation](n,a)},W=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=x(e),a="";break;case"1.1.0":a+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",a=n?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:a+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",a=n&&!t?a+' resultType="hits"':a,a+='service="WFS" version="'+i+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return a},V=function(e){return Object(p.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(p.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(p.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&b.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},G=function(e,t){var n=t||"ogc",r=E[n].startTag+e.attribute+E[n].endTag;if(e.collectGeometries){var o=b.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),i.ogcSpatialOperators[e.operation](n,r)},q=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=b.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var i=t.simpleFilterFields.reduce((function(e,t){var n=e,r=b.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");i=i.length>0?i:"INCLUDE",o.push(i)}if(t.spatialField&&(r=b.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var a=t.crossLayerFilter,s=a.operation,l=a.attribute,u=a.collectGeometries&&a.collectGeometries.queryCollection;if(s&&l&&u){var c=u.typeName,d=u.geometryName,p=b.getCrossLayerCqlFilter(a),f=I(P({typeName:c,geometryName:d,cqlFilter:p}));o.push("".concat(s,"(").concat(l,",").concat(f,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},Y=function(e,t){var n="NOR"===e.logic?g(g({},e),{},{logic:"AND",negateAll:!0}):e,r=b.processCQLFilterFields(n,t),o=b.findSubGroups(n,t.groupFields);if(o.length>0){var i=o.map((function(e){return(n.negateAll?"NOT (":"(")+b.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,i].join(" "+n.logic+" "):i}return r},Q=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=_(e);if(!Object(p.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+w(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+w(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+w(n)+"%'")}return r},$=function(e,t,n){var r="";Object(p.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=_(e);if("><"===t)Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(p.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var i=Object(p.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(p.isNil)(i)||(r=o+" "+t+" '"+i+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return b.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=b.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=b.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=b.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=b.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=b.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=b.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=b.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=b.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=b.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ie=function(e,t){return'\n \n ')},ae=function(e,t,n){var r=b.toOGCFilter(e,t,n),o=r.search("<".concat(b.nsplaceholder,":Filter>"));if(-1!==o){var i=r.search("");r=r.substr(o,i-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},se=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?b.toOGCFilter(e.featureTypeName,g(g({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):b.toCQLFilter(e)},le=function(e){return"ilike"===e||"like"===e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,i=e.crossLayerFilter,a=void 0===i?{}:i;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||a&&a.attribute&&a.operation)},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(p.isArray)(e.spatialField)&&Object(p.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,i=void 0===o?[]:o,a=t.groupFields,s=void 0===a?[]:a,l=t.spatialField,u=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(i.length>0&&s.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(u),logic:e.logic,id:"".concat(e.id,"_").concat(u),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(i.map((function(e){return g(g({},e),{},{groupId:"".concat(e.groupId,"_").concat(u)})}))),spatialField:de(e.spatialField,l),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},fe=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,i=e.spatialField.geometry.radius,a=Object(d.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,s=o&&[(n=Object(d.reproject)(o,r,t)).x,n.y],l=i&&Object(d.reproject)([i,0],r,t).x;return g(g({},e),{},{spatialField:g(g({},e.spatialField),{},{geometry:g(g({},e.spatialField.geometry),{},{center:s,radius:l,coordinates:a,projection:t})})})},he=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?b.reprojectFilterInNativeCrs(e,t):g(g({},e),{},{spatialField:void 0}):e},me=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,i=void 0===r?"2.0":r,s=e.addXmlnsToRoot,u=void 0!==s&&s,d=e.xmlnsToAdd,h=void 0===d?[]:d,m=c()({filterNS:n,wfsVersion:i,gmlVersion:Object(o.wfsToGmlVersion)(i)}),g=l()(m),y=arguments.length,b=new Array(y>1?y-1:0),v=1;v");return"".concat(w.slice(0,j)).concat(h.length>0?" ".concat(h.join(" ")):"").concat(w.slice(j))}return w};b={processOGCFilterGroup:R,processOGCFilterFields:F,processOGCCrossLayerFilter:G,getGetFeatureBase:W,toOGCFilterParts:N,findSubGroups:te,toCQLFilter:q,getCrossLayerCqlFilter:V,processCQLFilterGroup:Y,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Z,processCQLFilterFields:re,getCQLGeometryElement:Q,cqlStringField:X,cqlDateField:J,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:L,reprojectFilterInNativeCrs:fe,processOGCSpatialFilter:K,mergeFiltersToOGC:me}},"./MapStore2/web/client/utils/IdentifyUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=function(e,t){var n=e.format,r=e.queryParams,i=void 0===r?{}:r;return i.info_format||i.outputFormat||n&&o.a[n]||t.format},a=function(e){return!!Object(r.get)(e,"layer.search.url")}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return M})),n.d(t,"h",(function(){return A})),n.d(t,"a",(function(){return k})),n.d(t,"g",(function(){return D})),n.d(t,"i",(function(){return T})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return I})),n.d(t,"j",(function(){return L})),n.d(t,"c",(function(){return R}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),i=n("./node_modules/turf-point-on-surface/index.js"),a=n.n(i),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),u=n.n(l),c=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),d=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),p=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),f=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),h=n.n(f),m=n("./MapStore2/web/client/utils/mapinfo/wms.js"),g=n.n(m),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),b=n.n(y),v=n("./MapStore2/web/client/utils/mapinfo/vector.js"),w=n.n(v);function j(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,i){if(i){var a;i.queryParams&&i.queryParams.hasOwnProperty("info_format")&&(a=i.queryParams.info_format),i.queryParams&&i.queryParams.hasOwnProperty("outputFormat")&&(a=i.queryParams.outputFormat);var s=(o.c[i.format||o.b[a]||o.b[e]]||t).getValidResponses([i],r);return[].concat(j(n),j(s))}return j(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var i;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(i=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(i=r.queryParams.outputFormat);var a=(o.c[r.format||o.b[i]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(j(n),j(a))}return j(n)}),[])}}},P=function(){var e;return x(e={},o.a.PROPERTIES,c.a),x(e,o.a.JSON,c.a),x(e,o.a.HTML,d.a),x(e,o.a.TEXT,p.a),e},I=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},N={wfs:h.a,wms:g.a,wmts:b.a,vector:w.a},L=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},R=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var i=e[n];Object.keys(i).forEach((function(e){-1===Object(s.findIndex)(o,(function(t){return t===e}))&&(t[e]=i[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:E,getDefaultInfoFormatValue:M,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[a()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(j(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:u.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:N,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&S({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return b})),n.d(t,"METERS_PER_UNIT",(function(){return v})),n.d(t,"GOOGLE_MERCATOR",(function(){return w})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return j})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return O})),n.d(t,"RESOLUTIONS_HOOK",(function(){return _})),n.d(t,"RESOLUTION_HOOK",(function(){return S})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return x})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return E})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return C})),n.d(t,"registerHook",(function(){return A})),n.d(t,"getHook",(function(){return k})),n.d(t,"executeHook",(function(){return D})),n.d(t,"clearHooks",(function(){return T})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return I})),n.d(t,"getSphericalMercatorScale",(function(){return N})),n.d(t,"getGoogleMercatorScale",(function(){return L})),n.d(t,"getSphericalMercatorScales",(function(){return R})),n.d(t,"getGoogleMercatorScales",(function(){return F})),n.d(t,"getResolutionsForScales",(function(){return z})),n.d(t,"getGoogleMercatorResolutions",(function(){return B})),n.d(t,"getResolutions",(function(){return U})),n.d(t,"getScales",(function(){return H})),n.d(t,"defaultGetZoomForExtent",(function(){return K})),n.d(t,"getZoomForExtent",(function(){return W})),n.d(t,"getCurrentResolution",(function(){return V})),n.d(t,"getCenterForExtent",(function(){return G})),n.d(t,"getBbox",(function(){return q})),n.d(t,"isNearlyEqual",(function(){return Y})),n.d(t,"mapUpdated",(function(){return Q})),n.d(t,"transformExtent",(function(){return Z})),n.d(t,"groupSaveFormatted",(function(){return J})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ie})),n.d(t,"prepareMapObjectToCompare",(function(){return ae})),n.d(t,"updateObjectFieldKey",(function(){return se})),n.d(t,"compareMapChanges",(function(){return le})),n.d(t,"createRegisterHooks",(function(){return ue}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),i=n.n(o),a=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=n("./MapStore2/web/client/utils/ImmutableUtils.js"),l=n("./MapStore2/web/client/utils/LayersUtils.js"),u=n("./node_modules/object-assign/index.js"),c=n.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 p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(d,r))}function W(e,t,n,r,o){return k("EXTENT_TO_ZOOM_HOOK")?k("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):K(e,t,n,r,o,k("RESOLUTIONS_HOOK")?k("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||b)):null)}function V(e,t,n,r){return k("RESOLUTION_HOOK")?k("RESOLUTION_HOOK")(e,t,n,r):B(t,n,r)[e]}function G(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function q(e,t){return D("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var Y=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function Q(e,t){var n,o,i,a;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(Y(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&Y(null==t||null===(i=t.center)||void 0===i?void 0:i.y,null==e||null===(a=e.center)||void 0===a?void 0:a.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Z(e,t,n,r){var o=Object(a.getUnits)(e);return"ft"===o?{width:n/v.ft,height:r/v.ft}:"us-ft"===o?{width:n/v["us-ft"],height:r/v["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var J=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,i,a,u){var d={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},p=t.map((function(e){return Object(l.saveLayer)(e)})),f=n.reduce((function(e,t){return e.concat(Object(l.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(l.getNode)(n,e);return t&&t.nodes?J(t):null})).filter((function(e){return e})),h=o.filter((function(e){return!!e.thumbnail})),m=Object(l.extractSourcesFromLayers)(p),y=p.map((function(e){return c()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),b=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==b){var v=y[b].features.map((function(e){return"FeatureCollection"===e.type?g(g({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(s.e)("properties.geometryGeodesic",null,e):{}}));y[b]=Object(s.e)("features",v,y[b])}return g({version:2,map:c()({},d,{layers:y,groups:f,backgrounds:h,text_search_config:i,bookmark_search_config:a},!Object(r.isEmpty)(m)&&{sources:m}||{})},u)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=g(g({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,"annotations"===t.id?t.id:i()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return g(g({},e),{},y({},t.id,i()()))}),{}));return Object(s.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),Object(s.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return g(g({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return g(g({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return g(g({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return g(g({},e),{},{id:n[e.id],layer:g(g({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(s.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return g(g({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),i=[].concat(f(Object(r.get)(e,"map.backgrounds",[])),f(Object(r.get)(o,"map.backgrounds",[]))),a=n(Object(r.get)(e,"map.layers",[])),s=n(Object(r.get)(o,"map.layers",[])),l=Object(r.find)(a,(function(e){return"annotations"===e.id})),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),c=[].concat(f(s.filter((function(e){return"annotations"!==e.id}))),f(a.filter((function(e){return"annotations"!==e.id}))),f(l||u?[g(g(g({},l||{}),u||{}),{},{features:[].concat(f(Object(r.get)(l,"features",[])),f(Object(r.get)(u,"features",[])))})]:[])),d=c.filter((function(e){return"background"===e.group})),p=Object(r.findIndex)(d,(function(e){return e.visibility})),h=Object(r.get)(e,"map.sources",{}),m=Object(r.get)(o,"map.sources",{}),b=g(g({},h),m),v=Object(r.get)(e,"widgetsConfig",{}),w=Object(r.get)(o,"widgetsConfig",{});return g(g(g({},o),e),{},{catalogServices:g(g({},Object(r.get)(e,"catalogServices",{})),{},{services:g(g({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:g(g(g({},o.map),e.map),{},{backgrounds:i,groups:Object(r.uniqWith)([].concat(f(Object(r.get)(e,"map.groups",[])),f(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(f(d.slice(0,p+1)),f(d.slice(p+1).map((function(e){return g(g({},e),{},{visibility:!1})}))),f(c.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(b)?void 0:b}),widgetsConfig:{collapsed:g(g({},v.collapsed),w.collapsed),layouts:Object(r.uniq)([].concat(f(Object(r.keys)(v.layouts)),f(Object(r.keys)(w.layouts)))).reduce((function(e,t){return g(g({},e),{},y({},t,[].concat(f(Object(r.get)(v,"layouts.".concat(t),[])),f(Object(r.get)(w,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(f(Object(r.get)(v,"widgets",[])),f(Object(r.get)(w,"widgets",[])))},timelineData:g(g({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:g(g({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),a=Object(r.find)(n,(function(e){return"Default"===e.id})),s=a&&{id:i()(),title:t,expanded:a.expanded},l=a?[].concat(f(o.map((function(e){var t=e.id,n=p(e,["id"]);return g({id:"".concat(s.id,".").concat(t)},n)}))),[s]):o;return g(g({},e),{},{map:g(g({},e.map),{},{groups:l,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return g(g({},p(e,["group"])),{},{group:!a||"background"===n||"Default"!==n&&n?a&&(null===(t=Object(r.find)(l,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:s.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},ae=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],i=d(o);"object"!==i||null===o||r(n)?"undefined"!==i&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},se=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),i=Object(r.pick)(Object(r.cloneDeep)(t),n);return se(o.map,"text_serch_config","text_search_config"),se(i.map,"text_serch_config","text_search_config"),ae(o),ae(i),Object(r.isEqual)(o,i)},ue=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:ue,EXTENT_TO_ZOOM_HOOK:j,RESOLUTIONS_HOOK:_,RESOLUTION_HOOK:S,COMPUTE_BBOX_HOOK:x,GET_PIXEL_FROM_COORDINATES_HOOK:E,GET_COORDINATES_FROM_PIXEL_HOOK:C,DEFAULT_SCREEN_DPI:b,ZOOM_TO_EXTENT_HOOK:O,registerHook:A,getHook:k,dpi2dpm:P,getSphericalMercatorScales:R,getSphericalMercatorScale:N,getGoogleMercatorScales:F,getGoogleMercatorResolutions:B,getGoogleMercatorScale:L,getResolutionsForScales:z,getZoomForExtent:W,defaultGetZoomForExtent:K,getCenterForExtent:G,getResolutions:U,getScales:H,getBbox:q,mapUpdated:Q,getCurrentResolution:V,transformExtent:Z,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ie,prepareMapObjectToCompare:ae,updateObjectFieldKey:se,compareMapChanges:le,clearHooks:T}},"./MapStore2/web/client/utils/MediaEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}},"./MapStore2/web/client/utils/NotificationUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("./MapStore2/web/client/actions/notifications.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"notification.warning":t,o=e.autoDismiss,i=void 0===o?6:o,a=e.position,s=void 0===a?"tc":a,l=e.message,u=void 0===l?"Error":l;return Object(r.f)({title:n,autoDismiss:i,position:s,message:u})},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=void 0===t?"notification.success":t,o=e.autoDismiss,i=void 0===o?6:o,a=e.position,s=void 0===a?"tc":a,l=e.message,u=void 0===l?"Success":l;return Object(r.j)({title:n,autoDismiss:i,position:s,message:u})}},"./MapStore2/web/client/utils/ObservableUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/xml2js/lib/xml2js.js"),s=n("./node_modules/xml2js/lib/processors.js"),l=n("./MapStore2/web/client/api/GeoStoreDAO.js");function u(e){return(u="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 c(e,t){return!t||"object"!==u(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 d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function p(e,t,n){return(p=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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&&h(e,t)}(o,e);var t,n,r=(t=o,n=f(),function(){var e,r=m(t);if(n){var o=m(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this,e)).name="OGCError",n.code=t,n}return o}(d(Error)),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[s.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o.a.Observable.bindNodeCallback((function(e,n){return Object(a.parseString)(e,t,n)}))(e)},b=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o.a.Observable.bindNodeCallback((function(e,t){return Object(a.parseString)(e,{tagNameProcessors:[s.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=Object(i.get)(e,"ExceptionReport.Exception.ExceptionText");throw new g(t||"Undefined OGC Service Error",Object(i.get)(e,"ExceptionReport.Exception.exceptionCode"))})):o.a.Observable.of(e)}))},v=function(e,t){return e?l.a.deleteResource(e,t).then((function(e){return{data:e.data,resType:"success",error:null}})).catch((function(e){return{error:e,resType:"error"}})):o.a.Observable.of({resType:"success"})}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),i=n("./MapStore2/web/client/utils/LocaleUtils.js"),a=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var i=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,a=i||t.name||"";return a;case"description":var s=t.description||"";return s;case"both":var l=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,u=l||t.nam||"",c=t.description||"";return"".concat(u).concat(o&&c?o:"").concat(c);default:return t[e]}},l=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return s(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(i=i&&i.substring(0,o.maxLength)).length===o.maxLength&&(i+="..."),{title:s("title",t,n,o.separator),tooltipText:i}},u=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(i.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return i})),n.d(t,"getCleanTemplate",(function(){return a})),n.d(t,"parseCustomTemplate",(function(){return s})),n.d(t,"generateTemplateString",(function(){return l})),n.d(t,"parseTemplate",(function(){return u}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,i)},a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},l=Object(o.isString)(e)&&e.match(n),u=l&&l.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:i(t,n,r,a)?n:s(e)}}))||null;return u&&u.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(a(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},l=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),u=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var i=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(i)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},c={generateTemplateString:l,parseTemplate:u,validateStringAttribute:i,getCleanTemplate:a,parseCustomTemplate:s};t.default=c},"./MapStore2/web/client/utils/URLUtils.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n("./node_modules/url/url.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/query-string/index.js"),s=n.n(a);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var n=e?e.split("&").filter((function(e){return!!e})):[],r=t?t.split("&").filter((function(e){return!!e})):[];return Object(i.isEqual)(Object(i.sortBy)(n),Object(i.sortBy)(r))}(a.query,s.query);return d&&f&&p&&h&&m},p=function(e){return s.a.parse(e)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,n=new RegExp(t);return n.test(e)},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/,r=new RegExp(n),o=r.test(e);if(!o)return!1;if(o&&!t)return!0;if(o&&t){var a=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return Object(i.find)(a,e)})).length}return!1}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return s}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,a=t.filterObj,s=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(a)&&Object(r.toCQLFilter)(a),t&&t.params&&t.params.CQL_FILTER,n];return(e=(s=s.filter((function(e){return!!e}))).length>1?s.map((function(e){return"(".concat(e,")")})).join(" AND "):s.pop())?i(i({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return c})),n.d(t,"toDescribeURL",(function(){return d})),n.d(t,"extractGeometryType",(function(){return p})),n.d(t,"extractGeometryAttributeName",(function(){return f}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,a=e.describeFeatureTypeURL,s=i.a.parse(a||r.url||o,!0);return i.a.format(l(l({},s),{},{search:void 0,query:l(l({},s.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},p=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},f=function(e){var t=Object(a.get)(e,"featureTypes[0].properties")||[];return t&&Object(a.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return u})),n.d(t,"getMatrixIds",(function(){return c})),n.d(t,"limitMatrix",(function(){return d})),n.d(t,"getTileMatrixSet",(function(){return p})),n.d(t,"getRequestEncoding",(function(){return f})),n.d(t,"getOperations",(function(){return h})),n.d(t,"getOperation",(function(){return m})),n.d(t,"getGetTileURL",(function(){return g})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return b})),n.d(t,"getDefaultFormat",(function(){return v})),n.d(t,"sortTileMatrix",(function(){return w})),n.d(t,"getTileMatrix",(function(){return j}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;tt?Object(i.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(i.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(i.isArray)(e)){var a=Object(i.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return a&&a["ows:Identifier"]?a["ows:Identifier"]:t}return Object(i.isObject)(e)&&e[n]||t}),a):a},f=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},m=function(e,t,n){return Object(i.head)(Object(i.castArray)(Object(i.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(i.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(i.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.head)(Object(i.castArray)(e.capabilitiesURL||e.GetTileURL))},b=function(e){return Object(i.head)(Object(i.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},v=function(e){return Object(i.head)(Object(i.castArray)(e.Format))},w=function(e,t){return e?s(s({},e),{},{TileMatrix:Object(i.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return s(s({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},j=function(e,t){var n,r,o=p(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),a=e.matrixIds&&c(e.matrixIds,o||t),s=w(Object(i.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),a),l=null==s||null===(n=(r=s.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:l&&a?a.sort((function(e,t){return l.indexOf(e.identifier)-l.indexOf(t.identifier)})):a,tileMatrixSetName:o,tileMatrixSet:s}};r={getOperations:h,getOperation:m}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,a=t.currentLocale,s=t.params,d=t.maxItems,p=void 0===d?10:d,f=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0;return{request:g(i({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:l(r.projection)||"EPSG:4326",feature_count:p},y({params:s})),e),metadata:{title:c(e.title)?e.title[a]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:f,featureInfo:h},url:u(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,i=r(n,["point"]),a=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return s.defer((function(){return f(e.url,e.name).then((function(n){var r=m(n),o=d({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:a}},params:y({},e.baseParams,e.params,i)});return h(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,i=void 0===r?{}:r,s=t.point,y=t.currentLocale,b=t.params,v=t.maxItems,w=void 0===v?10:v,j=t.env,O=arguments.length>2?arguments[2]:void 0,_=arguments.length>3?arguments[3]:void 0,S=arguments.length>4?arguments[4]:void 0,x=n&&n.height||101,E=n&&n.width||101,C=[x,E],M=0,A=a(Math.ceil(i.zoom),0,21,96),k=s.latlng.lng,D=k-360*Math.floor(k/360+.5),T={x:D,y:s.latlng.lat},P=l(T,"EPSG:4326",i.projection),I=u(P,A,M,C,null),N=e.name;e.queryLayers&&(N=e.queryLayers.join(","));var L=h(j),R=f({layerFilter:e.layerFilter,filterObj:e.filterObj,params:g({},e.baseParams,e.params,b)});return{request:m(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:N,styles:e.style,x:E%2==1?Math.ceil(E/2):E/2,y:E%2==1?Math.ceil(E/2):E/2,height:x,width:E,srs:c(i.projection)||"EPSG:4326",bbox:I.minx+","+I.miny+","+I.maxx+","+I.maxy,feature_count:w,info_format:O,ENV:L},g({},R)),e),metadata:{title:p(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:S},url:d(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},l={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},u={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},c={AND:"and",OR:"or",NOT:"not"},d={RPAREN:3,LOGICAL:2,COMPARISON:1},p=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},f=function(e,t){var n,r,o=t.length;for(n=0;n0&&d[t[t.length-1].type]<=p;)s.push(t.pop());t.push(l);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(l);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)s.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&s.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+l.type)}}for(;t.length>0;)s.push(t.pop());var f=function e(){var t=s.pop();switch(t.type){case"LOGICAL":var l=e();return{filters:[e(),l],type:c[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:c.NOT};case"BETWEEN":s.pop();var d=e(),p=e();return{property:e(),lowerBoundary:p,upperBoundary:d,type:u.BETWEEN};case"COMPARISON":var f=e();return{property:e(),value:f,type:u[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:u[t.text.toUpperCase()]};case"VALUE":var h=t.text.match(/^'(.*)'$/);return h?h[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var m=e(),g=e(),y=e(),b=e(),v=e();return{type:r,property:v,value:[b,y,g,m]};case"INTERSECTS":var w=e(),j=e();return{type:n,property:j,value:w};case"WITHIN":var O=e(),_=e();return{type:a,property:_,value:O};case"CONTAINS":var S=e(),x=e();return{type:o,property:x,value:S};case"DWITHIN":var E=e(),C=e(),M=e();return{type:i,value:C,property:M,distance:Number(E)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(s.length>0){for(var h="Remaining tokens after building AST: \n",m=s.length-1;m>=0;m--)h+=s[m].type+": "+s[m].text+"\n";throw new Error(h)}return f};e.exports={read:function(e){return h(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=f(r,o)).remainder,o=l[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),i=o.logical,a=o.spatial,s=o.comparison,l=o.literal,u=o.propertyName,c=o.valueReference,d=o.distance,p=o.lower,f=o.upper,h=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),m=h.filter,g=h.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,h=e.wfsVersion,b=void 0===h?"1.1.0":h,v=o||"3.1.1",w=function(e){return y(v,e)},j=function(e){return"object"===r(e)&&Date,l(n,e)},O=0===b.indexOf("2.")?c:u;return{filter:m.bind(null,n),fidFilter:g.bind(null,n),and:i.and.bind(null,n),or:i.or.bind(null,n),not:i.not.bind(null,n),property:function(e){return{equalTo:function(t){return s.equal(n,O(n,e),j(t))},greaterThen:function(t){return s.greater(n,O(n,e),j(t))},greaterThenOrEqualTo:function(t){return s.greaterOrEqual(n,O(n,e),j(t))},lessThen:function(t){return s.less(n,O(n,e),j(t))},lessThenOrEqualTo:function(t){return s.lessOrEqual(n,O(n,e),j(t))},notEqualTo:function(t){return s.notEqual(n,O(n,e),j(t))},between:function(t,r){return s.between(n,O(n,e),p(n,j(t)),f(n,j(r)))},like:function(t,r){return s.like(n,O(n,e),j(t),r)},ilike:function(t,r){return s.ilike(n,O(n,e),j(t),r)},isNull:function(){return s.isNull(n,O(n,e))},intersects:function(t){return a.intersects(n,O(n,e),w(t))},within:function(t){return a.within(n,O(n,e),w(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return a.dwithin(n,O(n,e),w(t),d(n,r,o))},contains:function(t){return a.contains(n,O(n,e),w(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,i=n.filters,c=void 0===i?[]:i,d=n.value,p=n.property,f=n.lowerBoundary,h=n.upperBoundary;return a(l,o)?t[o].apply(t,r(c.map(e(t)))):t.property(p)[u[o]](s(d)?f:d,h)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},i=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},a={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.AND,[t].concat(o)):i(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.OR,[t].concat(o)):i(e,r.OR,t)},not:function(e,t){return i(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a0?i(e,r.NOR,[t].concat(o)):i(e,r.NOR,t)}},s={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:a,spatial:s,comparison:l,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},i=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},a=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},s=function(e,t,n){var a=o(n),s="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=i(e).map((function(e){return e[0]+(a?",":" ")+e[1]})),r=a?"outerBoundaryIs":"exterior",o=a?"innerBoundaryIs":"exterior";s+=(t<1?"":"")+""+(a?"":"")+n.join(" ")+(a?"":"")+""+(t<1?"":"")})),s+=""},l=function(e,t,n){var r=o(n),i="':">";var a=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return i+=(r?"":"")+a.join(" ")+(r?"":""),i+=""};e.exports={closePolygon:i,pointElement:a,polygonElement:s,lineStringElement:l,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=a(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=a(t,r,e),n+="")})),n+="";break;case"LineString":n+=l(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",i="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=l(t,r,e),n+="")})),n+="";break;case"Polygon":n+=s(t.coordinates,r,e);break;case"MultiPolygon":var u="3.2"===e?"MultiSurface":"MultiPolygon",c="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,i=r.get,a=function(e){return/[<>&'"]/.test(e)?""):e},s=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,l={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},u=function(e){return i(e,"featureTypes[0].properties")},c=function(e,t){return o((u(t)||[]).filter((function(t){return t.name===e})))},d=function(e){return e.targetNamespace},p=function(e){return 0===e.type.indexOf("gml:")},f=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return f(p(r)?t:n[r.name],r)};e.exports={schemaLocation:d,isGeometryType:p,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(d(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=p(c(t,n));return o?e?s(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?a(e):e},getPropertyDesciptor:c,findGeometryProperty:function(e){return o((u(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:u,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return l[e]},processOGCGeometry:s,isValid:function(e,t){return u(t).map((function(t){return h(e,t)}))},isValidProperty:h,isValidValueForPropertyName:function(e,t,n){return f(e,c(t,n))},isValidValue:f}},"./node_modules/@icons/material/CheckIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/babel-runtime/core-js/json/stringify.js":function(e,t,n){e.exports={default:n("./node_modules/core-js/library/fn/json/stringify.js"),__esModule:!0}},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o .rw-input {\n width: 100%;\n border: none;\n outline: none;\n}\n.rw-filter-input > span {\n margin-top: -2px;\n}\n.rw-i.rw-loading {\n background: url("+n("./node_modules/react-widgets/lib/img/loading.gif")+") no-repeat center;\n width: 16px;\n height: 100%;\n}\n.rw-i.rw-loading:before {\n content: \"\";\n}\n.rw-loading-mask {\n border-radius: 4px;\n position: relative;\n}\n.rw-loading-mask:after {\n content: '';\n background: url("+n("./node_modules/react-widgets/lib/img/loader-big.gif")+') no-repeat center;\n position: absolute;\n background-color: #fff;\n opacity: 0.7;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n.rw-now {\n font-weight: 600;\n}\n.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\n.rw-state-selected {\n background-color: #adadad;\n border: #adadad 1px solid;\n color: #333;\n}\n.rw-state-disabled {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n opacity: 1;\n}\n.rw-btn,\n.rw-dropdownlist {\n cursor: pointer;\n}\n.rw-btn[disabled],\n.rw-state-disabled .rw-btn,\n.rw-state-readonly .rw-btn {\n -webkit-box-shadow: none;\n box-shadow: none;\n pointer-events: none;\n cursor: not-allowed;\n filter: alpha(opacity=65);\n opacity: .65;\n}\nul.rw-list,\n.rw-selectlist {\n margin: 0;\n padding-left: 0;\n list-style: none;\n padding: 5px 0;\n overflow: auto;\n outline: 0;\n height: 100%;\n}\nul.rw-list > li,\n.rw-selectlist > li {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\nul.rw-list > li.rw-list-optgroup,\n.rw-selectlist > li.rw-list-optgroup {\n font-weight: bold;\n}\nul.rw-list > li.rw-list-option,\nul.rw-list > li.rw-list-empty,\n.rw-selectlist > li.rw-list-option,\n.rw-selectlist > li.rw-list-empty {\n padding-left: 10px;\n padding-right: 10px;\n}\nul.rw-list > li.rw-list-option,\n.rw-selectlist > li.rw-list-option {\n cursor: pointer;\n border: 1px solid transparent;\n border-radius: 3px;\n}\nul.rw-list > li.rw-list-option:hover,\n.rw-selectlist > li.rw-list-option:hover {\n background-color: #e6e6e6;\n border-color: #adadad;\n}\nul.rw-list > li.rw-list-option.rw-state-focus,\n.rw-selectlist > li.rw-list-option.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\nul.rw-list > li.rw-list-option.rw-state-selected,\n.rw-selectlist > li.rw-list-option.rw-state-selected {\n background-color: #adadad;\n border: #adadad 1px solid;\n color: #333;\n}\nul.rw-list > li.rw-list-option.rw-state-disabled,\nul.rw-list > li.rw-list-option.rw-state-readonly,\n.rw-selectlist > li.rw-list-option.rw-state-disabled,\n.rw-selectlist > li.rw-list-option.rw-state-readonly {\n color: #777777;\n cursor: not-allowed;\n}\nul.rw-list > li.rw-list-option.rw-state-disabled:hover,\nul.rw-list > li.rw-list-option.rw-state-readonly:hover,\n.rw-selectlist > li.rw-list-option.rw-state-disabled:hover,\n.rw-selectlist > li.rw-list-option.rw-state-readonly:hover {\n background: none;\n border-color: transparent;\n}\nul.rw-list.rw-list-grouped > li.rw-list-optgroup,\n.rw-selectlist.rw-list-grouped > li.rw-list-optgroup {\n padding-left: 10px;\n}\nul.rw-list.rw-list-grouped > li.rw-list-option,\n.rw-selectlist.rw-list-grouped > li.rw-list-option {\n padding-left: 20px;\n}\n.rw-widget {\n position: relative;\n}\n.rw-open.rw-widget,\n.rw-open > .rw-multiselect-wrapper {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.rw-open-up.rw-widget,\n.rw-open-up > .rw-multiselect-wrapper {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.rw-combobox .rw-list,\n.rw-datetimepicker .rw-list,\n.rw-numberpicker .rw-list,\n.rw-dropdownlist .rw-list,\n.rw-multiselect .rw-list {\n max-height: 200px;\n height: auto;\n}\n.rw-widget {\n background-color: #fff;\n border: #ccc 1px solid;\n border-radius: 4px;\n}\n.rw-widget .rw-input {\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n}\n.rw-rtl .rw-widget .rw-input {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n}\n.rw-widget > .rw-select {\n border-left: #ccc 1px solid;\n}\n.rw-widget.rw-rtl > .rw-select {\n border-right: #ccc 1px solid;\n border-left: none;\n}\n.rw-widget.rw-state-focus,\n.rw-widget.rw-state-focus:hover {\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);\n border-color: #66afe9;\n outline: 0;\n}\n.rw-widget.rw-state-readonly,\n.rw-widget.rw-state-readonly > .rw-multiselect-wrapper {\n cursor: not-allowed;\n}\n.rw-widget.rw-state-disabled,\n.rw-widget.rw-state-disabled:hover,\n.rw-widget.rw-state-disabled:active {\n -webkit-box-shadow: none;\n box-shadow: none;\n background-color: #eeeeee;\n border-color: #ccc;\n}\n.rw-combobox,\n.rw-datetimepicker,\n.rw-numberpicker,\n.rw-dropdownlist {\n padding-right: 1.9em;\n}\n.rw-combobox.rw-rtl,\n.rw-datetimepicker.rw-rtl,\n.rw-numberpicker.rw-rtl,\n.rw-dropdownlist.rw-rtl {\n padding-right: 0;\n padding-left: 1.9em;\n}\n.rw-combobox > .rw-input,\n.rw-datetimepicker > .rw-input,\n.rw-numberpicker > .rw-input,\n.rw-dropdownlist > .rw-input {\n width: 100%;\n border: none;\n outline: 0;\n}\n.rw-combobox > .rw-input::-moz-placeholder,\n.rw-datetimepicker > .rw-input::-moz-placeholder,\n.rw-numberpicker > .rw-input::-moz-placeholder,\n.rw-dropdownlist > .rw-input::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.rw-combobox > .rw-input:-ms-input-placeholder,\n.rw-datetimepicker > .rw-input:-ms-input-placeholder,\n.rw-numberpicker > .rw-input:-ms-input-placeholder,\n.rw-dropdownlist > .rw-input:-ms-input-placeholder {\n color: #999;\n}\n.rw-combobox > .rw-input::-webkit-input-placeholder,\n.rw-datetimepicker > .rw-input::-webkit-input-placeholder,\n.rw-numberpicker > .rw-input::-webkit-input-placeholder,\n.rw-dropdownlist > .rw-input::-webkit-input-placeholder {\n color: #999;\n}\n.rw-placeholder {\n color: #999;\n}\n.rw-select {\n position: absolute;\n width: 1.9em;\n height: 100%;\n right: 0;\n top: 0;\n}\n.rw-select.rw-btn,\n.rw-select > .rw-btn {\n height: 100%;\n vertical-align: middle;\n outline: 0;\n}\n.rw-rtl .rw-select {\n left: 0;\n right: auto;\n}\n.rw-multiselect,\n.rw-combobox input.rw-input,\n.rw-datetimepicker input.rw-input,\n.rw-numberpicker input.rw-input {\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.rw-combobox:active,\n.rw-datetimepicker:active,\n.rw-dropdownlist:active,\n.rw-header > .rw-btn:active,\n.rw-numberpicker .rw-btn.rw-state-active,\n.rw-combobox:active.rw-state-focus,\n.rw-datetimepicker:active.rw-state-focus,\n.rw-dropdownlist:active.rw-state-focus,\n.rw-header > .rw-btn:active.rw-state-focus,\n.rw-numberpicker .rw-btn.rw-state-active.rw-state-focus {\n background-image: none;\n -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n}\n.rw-combobox:hover,\n.rw-datetimepicker:hover,\n.rw-numberpicker:hover,\n.rw-dropdownlist:hover {\n background-color: #e6e6e6;\n border-color: #adadad;\n}\n.rw-dropdownlist.rw-state-disabled,\n.rw-dropdownlist.rw-state-readonly {\n cursor: not-allowed;\n}\n.rw-dropdownlist > .rw-input {\n line-height: 2.286em;\n background-color: transparent;\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rw-dropdownlist.rw-rtl > .rw-input {\n padding: 0.429em 0.857em;\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.rw-dropdownlist > .rw-select,\n.rw-dropdownlist.rw-rtl > .rw-select {\n border-width: 0;\n}\n.rw-numberpicker .rw-btn {\n display: block;\n height: 1.143em;\n line-height: 1.143em;\n width: 100%;\n border-width: 0;\n}\n.rw-popup {\n position: absolute;\n -webkit-box-shadow: 0 5px 6px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 6px rgba(0, 0, 0, 0.2);\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n border: #ccc 1px solid;\n background: #fff;\n padding: 2px;\n overflow: auto;\n margin-bottom: 10px;\n left: 10px;\n right: 10px;\n}\n.rw-dropup > .rw-popup {\n margin-bottom: 0;\n margin-top: 10px;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);\n}\n.rw-popup-container {\n position: absolute;\n top: 100%;\n margin-top: 1px;\n z-index: 1005;\n left: -11px;\n right: -11px;\n}\n.rw-widget.rw-state-focus .rw-popup-container {\n z-index: 1015;\n}\n.rw-popup-container.rw-dropup {\n top: auto;\n bottom: 100%;\n}\n.rw-popup-container.rw-calendar-popup {\n right: auto;\n width: 18em;\n}\n.rw-datetimepicker .rw-btn {\n width: 1.8em;\n}\n.rw-datetimepicker.rw-has-neither {\n padding-left: 0;\n padding-right: 0;\n}\n.rw-datetimepicker.rw-has-neither .rw-input {\n border-radius: 4px;\n}\n.rw-datetimepicker.rw-has-both {\n padding-right: 3.8em;\n}\n.rw-datetimepicker.rw-has-both.rw-rtl {\n padding-right: 0;\n padding-left: 3.8em;\n}\n.rw-datetimepicker.rw-has-both > .rw-select {\n width: 3.8em;\n height: 100%;\n}\n.rw-calendar {\n background-color: #fff;\n}\n.rw-calendar thead > tr {\n border-bottom: 2px solid #ccc;\n}\n.rw-calendar .rw-header {\n padding-bottom: 5px;\n}\n.rw-calendar .rw-header .rw-btn-left,\n.rw-calendar .rw-header .rw-btn-right {\n width: 12.5%;\n}\n.rw-calendar .rw-header .rw-btn-view {\n width: 75%;\n background-color: #eeeeee;\n border-radius: 4px;\n}\n.rw-calendar .rw-header .rw-btn-view[disabled] {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n}\n.rw-calendar .rw-footer {\n border-top: 1px solid #ccc;\n}\n.rw-calendar .rw-footer .rw-btn {\n width: 100%;\n white-space: normal;\n}\n.rw-calendar .rw-footer .rw-btn:hover {\n background-color: #e6e6e6;\n}\n.rw-calendar .rw-footer .rw-btn[disabled] {\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: not-allowed;\n}\n.rw-calendar-grid {\n outline: none;\n height: 14.28571429em;\n table-layout: fixed;\n width: 100%;\n}\n.rw-calendar-grid th {\n text-align: right;\n padding: 0 .4em 0 .1em;\n}\n.rw-calendar-grid .rw-btn {\n width: 100%;\n text-align: right;\n}\n.rw-calendar-grid td .rw-btn {\n border-radius: 4px;\n padding: 0 .4em 0 .1em;\n outline: 0;\n}\n.rw-calendar-grid td .rw-btn:hover {\n background-color: #e6e6e6;\n}\n.rw-calendar-grid td .rw-btn.rw-off-range {\n color: #b3b3b3;\n}\n.rw-calendar-grid.rw-nav-view .rw-btn {\n padding: .25em 0 .3em;\n display: block;\n overflow: hidden;\n text-align: center;\n white-space: normal;\n}\n.rw-selectlist {\n padding: 2px;\n}\n.rw-selectlist > ul {\n height: 100%;\n overflow: auto;\n}\n.rw-selectlist > ul > li.rw-list-option {\n position: relative;\n min-height: 27px;\n cursor: auto;\n outline: none;\n padding-left: 5px;\n}\n.rw-selectlist > ul > li.rw-list-option > label > input {\n position: absolute;\n margin: 4px 0 0 -20px;\n}\n.rw-selectlist > ul > li.rw-list-option > label {\n padding-left: 20px;\n line-height: 1.423em;\n display: inline-block;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option {\n padding-left: 0;\n padding-right: 5px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label > input {\n margin: 4px -20px 0 0px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label {\n padding-left: 0;\n padding-right: 20px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option {\n padding-left: 0;\n padding-right: 5px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label > input {\n margin: 4px -20px 0 0px;\n}\n.rw-selectlist.rw-rtl > ul > li.rw-list-option > label {\n padding-left: 0;\n padding-right: 20px;\n}\n.rw-selectlist.rw-state-disabled > ul > li:hover,\n.rw-selectlist.rw-state-readonly > ul > li:hover {\n background: none;\n border-color: transparent;\n}\n.rw-multiselect {\n background-color: #fff;\n}\n.rw-multiselect:hover {\n border-color: #adadad;\n}\n.rw-multiselect-wrapper {\n border-radius: 4px;\n position: relative;\n cursor: text;\n}\n.rw-multiselect-wrapper:before,\n.rw-multiselect-wrapper:after {\n content: " ";\n display: table;\n}\n.rw-multiselect-wrapper:after {\n clear: both;\n}\n.rw-multiselect-wrapper span.rw-loading {\n position: absolute;\n right: 3px;\n}\n.rw-multiselect-wrapper > .rw-input {\n outline: 0;\n border-width: 0;\n line-height: normal;\n width: auto;\n max-width: 100%;\n}\n.rw-multiselect-wrapper > .rw-input::-moz-placeholder {\n color: #999;\n opacity: 1;\n}\n.rw-multiselect-wrapper > .rw-input:-ms-input-placeholder {\n color: #999;\n}\n.rw-multiselect-wrapper > .rw-input::-webkit-input-placeholder {\n color: #999;\n}\n.rw-state-readonly > .rw-multiselect-wrapper,\n.rw-state-disabled > .rw-multiselect-wrapper {\n cursor: not-allowed;\n}\n.rw-rtl .rw-multiselect-wrapper > .rw-input {\n float: right;\n}\n.rw-multiselect-create-tag {\n border-top: 1px #ccc solid;\n padding-top: 5px;\n margin-top: 5px;\n}\n.rw-multiselect-taglist {\n margin: 0;\n padding-left: 0;\n list-style: none;\n display: inline;\n padding-right: 0;\n}\n.rw-multiselect-taglist > li {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n}\n.rw-multiselect-taglist > li {\n display: inline-block;\n margin: 1px;\n padding: 0.214em 0.15em 0.214em 0.4em;\n line-height: 1.4em;\n text-align: center;\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #ccc;\n background-color: #ccc;\n cursor: pointer;\n}\n.rw-multiselect-taglist > li.rw-state-focus {\n background-color: #fff;\n border: #66afe9 1px solid;\n color: #333;\n}\n.rw-multiselect-taglist > li.rw-state-readonly,\n.rw-multiselect-taglist > li.rw-state-disabled,\n.rw-multiselect.rw-state-readonly .rw-multiselect-taglist > li,\n.rw-multiselect.rw-state-disabled .rw-multiselect-taglist > li {\n cursor: not-allowed;\n filter: alpha(opacity=65);\n opacity: .65;\n}\n.rw-multiselect-taglist > li .rw-btn {\n outline: 0;\n font-size: 115%;\n line-height: normal;\n}\n.rw-rtl .rw-multiselect-taglist > li {\n float: right;\n}\n',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .rdw-option-wrapper {\r\n border: 1px solid #F1F1F1;\r\n padding: 5px;\r\n min-width: 25px;\r\n height: 20px;\r\n border-radius: 2px;\r\n margin: 0 4px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-option-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-option-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-dropdown-wrapper {\r\n height: 30px;\r\n background: white;\r\n cursor: pointer;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n margin: 0 3px;\r\n text-transform: capitalize;\r\n background: white;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-dropdown-carettoopen {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-top: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-carettoclose {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-bottom: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-selectedtext {\r\n display: flex;\r\n position: relative;\r\n height: 100%;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper {\r\n z-index: 100;\r\n position: relative;\r\n border: 1px solid #F1F1F1;\r\n width: 98%;\r\n background: white;\r\n border-radius: 2px;\r\n margin: 0;\r\n padding: 0;\r\n max-height: 250px;\r\n overflow-y: scroll;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n\r\n.msgapi .rdw-dropdownoption-default {\r\n min-height: 25px;\r\n display: flex;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdownoption-highlighted {\r\n background: #F1F1F1;\r\n}\r\n.msgapi .rdw-dropdownoption-active {\r\n background: #f5f5f5;\r\n}\r\n.msgapi .rdw-dropdownoption-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-inline-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-inline-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-inline-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-block-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-block-dropdown {\r\n width: 110px;\r\n}\r\n\r\n.msgapi .rdw-fontsize-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontsize-dropdown {\r\n min-width: 40px;\r\n}\r\n.msgapi .rdw-fontsize-option {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-fontfamily-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontfamily-dropdown {\r\n width: 115px;\r\n}\r\n.msgapi .rdw-fontfamily-placeholder {\r\n white-space: nowrap;\r\n max-width: 90px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n.msgapi .rdw-fontfamily-optionwrapper {\r\n width: 140px;\r\n}\r\n\r\n.msgapi .rdw-list-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-list-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-list-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-text-align-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-text-align-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-text-align-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-right-aligned-block {\r\n text-align: right;\r\n}\r\n.msgapi .rdw-left-aligned-block {\r\n text-align: left !important;\r\n}\r\n.msgapi .rdw-center-aligned-block {\r\n text-align: center !important;\r\n}\r\n.msgapi .rdw-justify-aligned-block {\r\n text-align: justify !important;\r\n}\r\n.msgapi .rdw-right-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-left-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-center-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-justify-aligned-block > div {\r\n display: inline-block;\r\n}\r\n\r\n.msgapi .rdw-colorpicker-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-colorpicker-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 175px;\r\n height: 175px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-modal-header {\r\n display: flex;\r\n padding-bottom: 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label {\r\n font-size: 15px;\r\n width: 50%;\r\n text-align: center;\r\n cursor: pointer;\r\n padding: 0 10px 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label-active {\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-colorpicker-modal-options {\r\n margin: 5px auto;\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n flex-wrap: wrap;\r\n overflow: scroll;\r\n}\r\n.msgapi .rdw-colorpicker-cube {\r\n width: 22px;\r\n height: 22px;\r\n border: 1px solid #F1F1F1;\r\n}\r\n.msgapi .rdw-colorpicker-option {\r\n margin: 3px;\r\n padding: 0;\r\n min-height: 20px;\r\n border: none;\r\n width: 22px;\r\n height: 22px;\r\n min-width: 22px;\r\n box-shadow: 1px 2px 1px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-colorpicker-option:hover {\r\n box-shadow: 1px 2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option:active {\r\n box-shadow: -1px -2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option-active {\r\n box-shadow: 0px 0px 2px 2px #BFBDBD;\r\n}\r\n\r\n.msgapi .rdw-link-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-link-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-link-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-link-dropdownPlaceholder {\r\n margin-left: 8px;\r\n}\r\n.msgapi .rdw-link-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 205px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-label {\r\n font-size: 15px;\r\n}\r\n.msgapi .rdw-link-modal-input {\r\n margin-top: 5px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n height: 25px;\r\n margin-bottom: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-link-modal-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-link-modal-buttonsection {\r\n margin: 0 auto;\r\n}\r\n.msgapi .rdw-link-modal-target-option {\r\n margin-bottom: 20px;\r\n}\r\n.msgapi .rdw-link-modal-target-option > span {\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-link-modal-btn {\r\n margin-left: 10px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-link-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-link-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-link-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-link-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-embedded-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-embedded-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n justify-content: space-between;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-header {\r\n font-size: 15px;\r\n display: flex;\r\n}\r\n.msgapi .rdw-embedded-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-header-label {\r\n width: 95px;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-embedded-modal-link-section {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input {\r\n width: 88%;\r\n height: 35px;\r\n margin: 10px 0;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input-wrapper {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-embedded-modal-btn-section {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-embedded-modal-btn {\r\n margin: 0 3px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-embedded-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input {\r\n width: 80%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input:focus {\r\n outline: none;\r\n}\r\n\r\n.msgapi .rdw-emoji-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-emoji-modal {\r\n overflow: auto;\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-emoji-icon {\r\n margin: 2.5px;\r\n height: 24px;\r\n width: 24px;\r\n cursor: pointer;\r\n font-size: 22px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.msgapi .rdw-spinner {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n.msgapi .rdw-spinner > div {\r\n width: 12px;\r\n height: 12px;\r\n background-color: #333;\r\n\r\n border-radius: 100%;\r\n display: inline-block;\r\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce1 {\r\n -webkit-animation-delay: -0.32s;\r\n animation-delay: -0.32s;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce2 {\r\n -webkit-animation-delay: -0.16s;\r\n animation-delay: -0.16s;\r\n}\r\n@-webkit-keyframes sk-bouncedelay {\r\n .msgapi 0%, .msgapi 80%, .msgapi 100% { -webkit-transform: scale(0) }\r\n .msgapi 40% { -webkit-transform: scale(1.0) }\r\n}\r\n@keyframes sk-bouncedelay {\r\n 0%, 80%, 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n } 40% {\r\n -webkit-transform: scale(1.0);\r\n transform: scale(1.0);\r\n }\r\n}\r\n\r\n.msgapi .rdw-image-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-image-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-header {\r\n font-size: 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-image-modal-header-label {\r\n width: 80px;\r\n background: #f1f1f1;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n}\r\n.msgapi .rdw-image-modal-header-label-highlighted {\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option {\r\n width: 100%;\r\n color: gray;\r\n cursor: pointer;\r\n display: flex;\r\n border: none;\r\n font-size: 15px;\r\n align-items: center;\r\n justify-content: center;\r\n background-color: #f1f1f1;\r\n outline: 2px dashed gray;\r\n outline-offset: -10px;\r\n margin: 10px 0;\r\n padding: 9px 0;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-highlighted {\r\n outline: 2px dashed #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label {\r\n cursor: pointer;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 15px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label span{\r\n padding: 0 20px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-image-preview {\r\n max-width: 100%;\r\n max-height: 200px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-input {\r\n\twidth: 0.1px;\r\n\theight: 0.1px;\r\n\topacity: 0;\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\tz-index: -1;\r\n}\r\n.msgapi .rdw-image-modal-url-section {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-image-modal-url-input {\r\n width: 90%;\r\n height: 35px;\r\n margin: 15px 0 12px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-image-modal-btn-section {\r\n margin: 10px auto 0;\r\n}\r\n.msgapi .rdw-image-modal-url-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-btn {\r\n margin: 0 5px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-image-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-image-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-image-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-image-modal-spinner {\r\n position: absolute;\r\n top: -3px;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0.5;\r\n}\r\n.msgapi .rdw-image-modal-alt-input {\r\n width: 70%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-image-modal-alt-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-alt-lbl {\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-image-modal-size-input {\r\n width: 40%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-mandatory-sign {\r\n color: red;\r\n margin-left: 3px;\r\n margin-right: 3px;\r\n}\r\n\r\n.msgapi .rdw-remove-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n\r\n.msgapi .rdw-history-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-history-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-link-decorator-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-link-decorator-icon {\r\n position: absolute;\r\n left: 40%;\r\n top: 0;\r\n cursor: pointer;\r\n background-color: white;\r\n}\r\n\r\n.msgapi .rdw-mention-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-suggestion-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-suggestion-dropdown {\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n border: 1px solid #F1F1F1;\r\n min-width: 100px;\r\n max-height: 150px;\r\n overflow: auto;\r\n background: white;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-suggestion-option {\r\n padding: 7px 5px;\r\n border-bottom: 1px solid #f1f1f1;\r\n}\r\n.msgapi .rdw-suggestion-option-active {\r\n background-color: #F1F1F1;\r\n}\r\n\r\n.msgapi .rdw-hashtag-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-image-alignment-options-popup {\r\n position: absolute;\r\n background: white;\r\n display: flex;\r\n padding: 5px 2px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n width: 105px;\r\n cursor: pointer;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-alignment-option-left {\r\n justify-content: flex-start;\r\n}\r\n.msgapi .rdw-image-alignment-option {\r\n height: 15px;\r\n width: 15px;\r\n min-width: 15px;\r\n}\r\n.msgapi .rdw-image-alignment {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-imagewrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-center {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-image-left {\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-right {\r\n display: flex;\r\n justify-content: flex-end;\r\n}\r\n.msgapi .rdw-image-alignment-options-popup-right {\r\n right: 0;\r\n}\r\n\r\n.msgapi .rdw-editor-main {\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n}\r\n.msgapi .rdw-editor-toolbar {\r\n padding: 6px 5px 0;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n display: flex;\r\n justify-content: flex-start;\r\n background: white;\r\n flex-wrap: wrap;\r\n font-size: 15px;\r\n margin-bottom: 5px;\r\n user-select: none;\r\n}\r\n.msgapi .public-DraftStyleDefault-block {\r\n margin: 1em 0;\r\n}\r\n.msgapi .rdw-editor-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-editor-wrapper {\r\n box-sizing: content-box;\r\n}\r\n.msgapi .rdw-editor-main blockquote {\r\n border-left: 5px solid #f1f1f1;\r\n padding-left: 5px;\r\n}\r\n.msgapi .rdw-editor-main pre {\r\n background: #f1f1f1;\r\n border-radius: 3px;\r\n padding: 1px 10px;\r\n}\r\n/**\r\n * Draft v0.9.1\r\n *\r\n * Copyright (c) 2013-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n */\r\n.msgapi .DraftEditor-editorContainer,.msgapi .DraftEditor-root,.msgapi .public-DraftEditor-content{height:inherit;text-align:initial}.msgapi .public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.msgapi .DraftEditor-root{position:relative}.msgapi .DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.msgapi .public-DraftEditor-block{position:relative}.msgapi .DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.msgapi .DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.msgapi .DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.msgapi .DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.msgapi .DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.msgapi .DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.msgapi .public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;z-index:0}.msgapi .public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.msgapi .DraftEditorPlaceholder-hidden{display:none}.msgapi .public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.msgapi .public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.msgapi .public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.msgapi .public-DraftStyleDefault-listLTR{direction:ltr}.msgapi .public-DraftStyleDefault-listRTL{direction:rtl}.msgapi .public-DraftStyleDefault-ol,.msgapi .public-DraftStyleDefault-ul{margin:16px 0;padding:0}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.msgapi .public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.msgapi .public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1) ". ";counter-increment:ol1}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2) ". ";counter-increment:ol2}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4) ". ";counter-increment:ol4}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/I18N/css/formControlIntl.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .form-control-intl {\r\n background-color: unset !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/css/toc.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/fragments/css/groupchildren.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .toc-group-children {\r\n margin-left: 15px;\r\n}\r\n\r\n.msgapi .TOC-Node-enter, .msgapi .TOC-Node-leave {\r\n transition: all 250ms ease-out;\r\n -o-transition: all 250ms ease-out;\r\n -moz-transition: all 250ms ease-out;\r\n -webkit-transition: all 250ms ease-out;\r\n overflow: hidden;\r\n}\r\n.msgapi .TOC-Node-enter,.msgapi .TOC-Node-leave.TOC-Node-leave-active {\r\n opacity: 0;\r\n transform: scale(1, 0);\r\n transform-origin: top;\r\n}\r\n.msgapi .TOC-Node-leave, .msgapi .TOC-Node-enter.TOC-Node-enter-active {\r\n opacity: 1;\r\n transform: scale(1, 1);\r\n transform-origin: top;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/TOC/fragments/css/toctitle.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .toc-title {\r\n display: inline-block;\r\n max-width: 150px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-selectize/themes/index.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .react-selectize {\n color: #000;\n}\n.msgapi .react-selectize.root-node {\n position: relative;\n width: 300px;\n}\n.msgapi .react-selectize.root-node.disabled {\n pointer-events: none;\n}\n.msgapi .react-selectize.root-node .react-selectize-control {\n cursor: pointer;\n display: flex;\n align-items: flex-start;\n position: relative;\n padding: 2px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-placeholder {\n display: block;\n line-height: 30px;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n white-space: nowrap;\n position: absolute;\n max-width: calc(100% - 56px);\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n display: flex;\n min-height: 30px;\n flex-grow: 1;\n flex-wrap: wrap;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values .resizable-input {\n background: none;\n border: none;\n outline: none;\n font-size: 1em;\n margin: 2px;\n padding: 4px 0px;\n vertical-align: middle;\n width: 0px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-search-field-and-selected-values .value-wrapper {\n display: flex;\n align-items: center;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container,\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button-container {\n flex-grow: 0;\n flex-shrink: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container {\n width: 16px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button-container {\n width: 32px;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button-container:hover .react-selectize-reset-button path {\n stroke: #c0392b;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-reset-button path {\n transition: stroke 0.5s 0s ease;\n stroke: #999;\n stroke-linecap: square;\n stroke-linejoin: mitter;\n}\n.msgapi .react-selectize.root-node .react-selectize-control .react-selectize-toggle-button path {\n fill: #999;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper {\n position: absolute;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.tethered {\n min-width: 300px;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper:not(.tethered) {\n width: 100%;\n}\n.msgapi .react-selectize.dropdown-menu {\n box-sizing: border-box;\n overflow: auto;\n position: absolute;\n max-height: 200px;\n z-index: 10;\n}\n.msgapi .react-selectize.dropdown-menu.tethered {\n min-width: 300px;\n}\n.msgapi .react-selectize.dropdown-menu:not(.tethered) {\n width: 100%;\n}\n.msgapi .react-selectize.dropdown-menu .groups.as-columns {\n display: flex;\n}\n.msgapi .react-selectize.dropdown-menu .groups.as-columns > div {\n flex: 1;\n}\n.msgapi .react-selectize.dropdown-menu .option-wrapper {\n cursor: pointer;\n outline: none;\n}\n.msgapi .multi-select.react-selectize.root-node .simple-value {\n display: inline-block;\n margin: 2px;\n vertical-align: middle;\n}\n.msgapi .multi-select.react-selectize.root-node .simple-value span {\n display: inline-block;\n padding: 2px 5px 4px;\n vertical-align: center;\n}\n.msgapi .simple-select.react-selectize.root-node .simple-value {\n margin: 2px;\n}\n.msgapi .simple-select.react-selectize.root-node .simple-value span {\n display: inline-block;\n vertical-align: center;\n}\n.msgapi .react-selectize.default {\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control {\n background-color: #fff;\n border: 1px solid;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n font-size: 1em;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control .react-selectize-placeholder {\n color: #aaa;\n text-indent: 8px;\n}\n.msgapi .react-selectize.default.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n padding-left: 5px;\n}\n.msgapi .react-selectize.default.root-node.open.flipped .react-selectize-control {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.msgapi .react-selectize.default.root-node.open:not(.flipped) .react-selectize-control {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default {\n overflow: hidden;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.custom-leave-active {\n transition: transform 0.2s 0s ease;\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-enter {\n transform: translateY(100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-enter-active {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-leave {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu.flipped.custom-leave-active {\n transform: translateY(100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-enter {\n transform: translateY(-100%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-enter-active {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-leave {\n transform: translateY(0%);\n}\n.msgapi .react-selectize.dropdown-menu-wrapper.default .dropdown-menu:not(.flipped).custom-leave-active {\n transform: translateY(-100%);\n}\n.msgapi .react-selectize.dropdown-menu.default {\n background: #fff;\n border: 1px solid #ccc;\n margin-top: -1px;\n}\n.msgapi .react-selectize.dropdown-menu.default.flipped {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu.default:not(.flipped) {\n border-color: #b3b3b3 #ccc #d9d9d9;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.msgapi .react-selectize.dropdown-menu.default .no-results-found {\n color: #aaa !important;\n font-style: oblique;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.dropdown-menu.default .simple-group-title {\n background-color: #fafafa;\n padding: 8px 8px;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper.highlight {\n background: #f2f9fc;\n color: #333;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper .simple-option {\n color: #666;\n cursor: pointer;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.dropdown-menu.default .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.default.root-node .simple-value {\n background: #f2f9fc;\n border: 1px solid #c9e6f2;\n border-radius: 2px;\n color: #08c;\n}\n.msgapi .simple-select.react-selectize.default.root-node.open .react-selectize-control {\n background-color: #fff;\n}\n.msgapi .simple-select.react-selectize.default.root-node:not(.open) .react-selectize-control {\n background-color: #f9f9f9;\n background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);\n}\n.msgapi .react-selectize.bootstrap3 {\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n}\n.msgapi .react-selectize.bootstrap3.root-node.open .react-selectize-control {\n background-color: #fff;\n border: 1px solid #66afe9;\n box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102,175,233,0.6);\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control {\n border: 1px solid;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n font-size: 1em;\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control .react-selectize-placeholder {\n color: #aaa;\n text-indent: 8px;\n}\n.msgapi .react-selectize.bootstrap3.root-node .react-selectize-control .react-selectize-search-field-and-selected-values {\n padding-left: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper.flipped {\n margin-bottom: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper:not(.flipped) {\n margin-top: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n transition: opacity 0.2s 0s ease;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-enter-active {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu {\n background: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0,0,0,0.175);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu.flipped {\n margin-bottom: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu:not(.flipped) {\n margin-top: 5px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .no-results-found {\n color: #aaa !important;\n font-style: oblique;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .groups:not(.as-columns) > div:not(:first-child) {\n border-top: 1px solid #e5e5e5;\n margin: 12px 0px 0px 0px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .simple-group-title {\n background-color: #fff;\n color: #999;\n padding: 8px 8px;\n text-shadow: 0px 1px 0px rgba(0,0,0,0.05);\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper.highlight {\n background: #428bca;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper.highlight .simple-option {\n color: #fff;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper .simple-option {\n color: #333;\n cursor: pointer;\n padding: 8px 10px;\n}\n.msgapi .react-selectize.bootstrap3.dropdown-menu .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.bootstrap3.root-node .simple-value {\n background: #efefef;\n border-radius: 4px;\n color: #333;\n}\n.msgapi .react-selectize.material {\n font-family: Roboto, sans-serif;\n}\n.msgapi .react-selectize.material.root-node.open .react-selectize-control:after {\n transform: scaleX(1);\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control {\n border-bottom: 1px solid rgba(0,0,0,0.3);\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control:after {\n background-color: #00bcd4;\n content: "";\n transform: scaleX(0);\n transition: transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n position: absolute;\n left: 0px;\n bottom: -1px;\n width: 100%;\n height: 2px;\n}\n.msgapi .react-selectize.material.root-node .react-selectize-control .react-selectize-placeholder {\n color: rgba(0,0,0,0.3);\n text-indent: 4px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper.flipped {\n margin-bottom: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper.flipped .dropdown-menu {\n transform-origin: 100% 100%;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper:not(.flipped) {\n margin-top: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper:not(.flipped) .dropdown-menu {\n transform-origin: 0% 0%;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter-active,\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n transform: scale(0, 0);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-enter-active {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n transform: scale(1, 1);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n transform: scale(1, 1);\n}\n.msgapi .react-selectize.material.dropdown-menu-wrapper .dropdown-menu.custom-leave-active {\n opacity: 0;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\n filter: alpha(opacity=0);\n}\n.msgapi .react-selectize.material.dropdown-menu {\n background-color: #fff;\n border-radius: 2px;\n box-shadow: rgba(0,0,0,0.118) 0px 1px 6px, rgba(0,0,0,0.118) 0px 1px 4px;\n max-height: 250px;\n padding: 8px 0px;\n}\n.msgapi .react-selectize.material.dropdown-menu.flipped {\n margin-bottom: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu:not(.flipped) {\n margin-top: 8px;\n}\n.msgapi .react-selectize.material.dropdown-menu .no-results-found {\n font-style: oblique;\n font-size: 16px;\n height: 32px;\n padding: 0px 16px;\n display: flex;\n align-items: center;\n}\n.msgapi .react-selectize.material.dropdown-menu .groups:not(.as-columns) > div:not(:last-child) {\n border-bottom: 1px solid #e5e5e5;\n}\n.msgapi .react-selectize.material.dropdown-menu .simple-group-title {\n color: #8f8f8f;\n display: flex;\n align-items: center;\n font-size: 14px;\n height: 48px;\n padding: 0px 10px;\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper.highlight {\n background-color: rgba(0,0,0,0.098);\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper .simple-option {\n color: rgba(0,0,0,0.875);\n cursor: pointer;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n font-size: 16px;\n height: 48px;\n padding: 0px 16px;\n}\n.msgapi .react-selectize.material.dropdown-menu .option-wrapper .simple-option.not-selectable {\n background-color: #f8f8f8;\n color: #999;\n cursor: default;\n font-style: oblique;\n text-shadow: 0px 1px 0px #fff;\n}\n.msgapi .multi-select.react-selectize.material.root-node .simple-value span {\n padding: 0px;\n}\n.msgapi .multi-select.react-selectize.material.root-node .simple-value span:after {\n content: ",";\n}\n.msgapi .simple-select.react-selectize.material.root-node .simple-value {\n margin: 4px 3px 3px 2px;\n}\n',""])},"./node_modules/date-arithmetic/index.js":function(e,t){var n="milliseconds",r=e.exports={add:function(e,t,o){switch(e=new Date(e),o){case n:case"seconds":case"minutes":case"hours":case"year":return r[o](e,r[o](e)+t);case"day":return r.date(e,r.date(e)+t);case"week":return r.date(e,r.date(e)+7*t);case"month":return function(e,t){var n=r.month(e)+t;e=r.month(e,n);for(;n<0;)n=12+n;r.month(e)!==n%12&&(e=r.date(e,0));return e}(e,t);case"decade":return r.year(e,r.year(e)+10*t);case"century":return r.year(e,r.year(e)+100*t)}throw new TypeError('Invalid units: "'+o+'"')},subtract:function(e,t,n){return r.add(e,-t,n)},startOf:function(e,t,n){switch(e=new Date(e),t){case"century":case"decade":case"year":e=r.month(e,0);case"month":e=r.date(e,1);case"week":case"day":e=r.hours(e,0);case"hours":e=r.minutes(e,0);case"minutes":e=r.seconds(e,0);case"seconds":e=r.milliseconds(e,0)}return"decade"===t&&(e=r.subtract(e,r.year(e)%10,"year")),"century"===t&&(e=r.subtract(e,r.year(e)%100,"year")),"week"===t&&(e=r.weekday(e,0,n)),e},endOf:function(e,t,o){return e=new Date(e),e=r.startOf(e,t,o),e=r.add(e,1,t),e=r.subtract(e,1,n)},eq:i((function(e,t){return e===t})),neq:i((function(e,t){return e!==t})),gt:i((function(e,t){return e>t})),gte:i((function(e,t){return e>=t})),lt:i((function(e,t){return e0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,m(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},i.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},r}(u(p));e.exports=g},"./node_modules/draft-js/lib/ContentState.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/BlockMapBuilder.js"),o=n("./node_modules/draft-js/lib/CharacterMetadata.js"),i=n("./node_modules/draft-js/lib/ContentBlock.js"),a=n("./node_modules/draft-js/lib/ContentBlockNode.js"),s=n("./node_modules/draft-js/lib/DraftEntity.js"),l=n("./node_modules/draft-js/lib/SelectionState.js"),u=n("./node_modules/draft-js/lib/generateRandomKey.js"),c=n("./node_modules/draft-js/lib/gkx.js"),d=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),p=n("./node_modules/draft-js/lib/sanitizeDraftText.js"),f=d.List,h=d.Record,m=d.Repeat,g=function(e){var t,n;function d(){return e.apply(this,arguments)||this}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=d.prototype;return h.getEntityMap=function(){return s},h.getBlockMap=function(){return this.get("blockMap")},h.getSelectionBefore=function(){return this.get("selectionBefore")},h.getSelectionAfter=function(){return this.get("selectionAfter")},h.getBlockForKey=function(e){return this.getBlockMap().get(e)},h.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},h.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},h.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},h.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},h.getBlocksAsArray=function(){return this.getBlockMap().toArray()},h.getFirstBlock=function(){return this.getBlockMap().first()},h.getLastBlock=function(){return this.getBlockMap().last()},h.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},h.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},h.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},h.createEntity=function(e,t,n){return s.__create(e,t,n),this},h.mergeEntityData=function(e,t){return s.__mergeData(e,t),this},h.replaceEntityData=function(e,t){return s.__replaceData(e,t),this},h.addEntity=function(e){return s.__add(e),this},h.getEntity=function(e){return s.__get(e)},d.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=r.createFromArray(n),i=o.isEmpty()?new l:l.createEmpty(o.first().getKey());return new d({blockMap:o,entityMap:t||s,selectionBefore:i,selectionAfter:i})},d.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),r=n.map((function(e){return e=p(e),new(c("draft_tree_data_support")?a:i)({key:u(),text:e,type:"unstyled",characterList:f(m(o.EMPTY,e.length))})}));return d.createFromBlockArray(r)},d}(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=g},"./node_modules/draft-js/lib/ContentStateInlineStyle.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),u=t.getEndKey(),c=t.getEndOffset(),d=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;s===u?(o=l,a=c):(o=t===s?l:0,a=t===u?c:e.getLength());for(var d,p=e.getCharacterList();o0&&window.scrollTo(i.x,i.y+r+10)}else{n instanceof HTMLElement||b(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},j._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,a=w(this.props.selection,n);return this.props.tree.map((function(c,d){var h=c.get("leaves"),m=h.size-1,g=h.map((function(o,c){var p=l.encode(n,d,c),f=o.get("start"),h=o.get("end");return u.createElement(s,{key:p,offsetKey:p,block:t,start:f,selection:a?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===i&&c===m})})).toArray(),y=c.get("decoratorKey");if(null==y)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return g;var j=b.getPropsForKey(y),O=l.encode(n,d,0),_=h.first().get("start"),S=h.last().get("end"),x=r.slice(_,S),E=t.getEntityAt(c.get("start")),C=f.getHTMLDirIfDifferent(p.getDirection(x),e.props.direction),M={contentState:e.props.contentState,decoratedText:x,dir:C,key:O,start:_,end:S,blockKey:n,entityKey:E,offsetKey:O};return u.createElement(w,o({},j,M),g)})).toArray()},j.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return u.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(u.Component);e.exports=j},"./node_modules/draft-js/lib/DraftEditorBlockNode.react.js":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js");function o(){return(o=r||function(e){for(var t=1;t0&&window.scrollTo(i.x,i.y+n+10)}else{r instanceof HTMLElement||y(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&d.setTop(o,d.getTop(o)+n+10)}}},a.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,c=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,f=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,O=t.direction,_=t.forceSelection,S=t.selection,x=t.tree,E=null;n.children.size&&(E=n.children.reduce((function(t,n){var o=l.encode(n,0,0),s=p.getBlockForKey(n),f=w(s,c),g=f.CustomComponent||r,y=v(s,a),b=y.Element,O=y.wrapperTemplate,_=j(s,h,o,d,f),S=i({},e.props,{tree:m.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:s});return t.push(u.createElement(b,_,u.createElement(g,S))),!O||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.reverse()[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var d=s.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),f=p[0].key;n.push(u.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":l.encode(f,0,0)},p))}(O,b,t),t}),[]));var C=n.getKey(),M=l.encode(C,0,0),A=w(n,c),k=A.CustomComponent,D=null!=k?u.createElement(k,o({},this.props,{tree:m.getBlockTree(C),blockProps:A.customProps,offsetKey:M,block:n})):u.createElement(s,{block:n,children:E,contentState:p,customStyleFn:g,customStyleMap:y,decorator:f,direction:O,forceSelection:_,hasSelection:b(S,C),selection:S,tree:x});if(n.getParentKey())return D;var T=v(n,a).Element,P=j(n,h,M,d,A);return u.createElement(T,P,D)},r}(u.Component);e.exports=O},"./node_modules/draft-js/lib/DraftEditorCompositionHandler.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DOMObserver.js"),o=n("./node_modules/draft-js/lib/DraftModifier.js"),i=n("./node_modules/draft-js/lib/DraftOffsetKey.js"),a=n("./node_modules/draft-js/lib/EditorState.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),l=n("./node_modules/draft-js/lib/editOnSelect.js"),u=n("./node_modules/draft-js/lib/getContentEditableContainer.js"),c=n("./node_modules/draft-js/lib/getDraftEditorSelection.js"),d=n("./node_modules/draft-js/lib/getEntityKeyForSelection.js"),p=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),f=!1,h=!1,m=null;var g={onCompositionStart:function(e){h=!0,function(e){m||(m=new r(u(e))).start()}(e)},onCompositionEnd:function(e){f=!1,h=!1,setTimeout((function(){f||g.resolveComposition(e)}),20)},onSelect:l,onKeyDown:function(e,t){if(!h)return g.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!h){var t=p(m).stopAndFlushMutations();m=null,f=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),l=s.blockKey,u=s.decoratorKey,c=s.leafKey,p=n.getBlockTree(l).getIn([u,"leaves",c]),f=p.start,h=p.end,m=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:f,focusOffset:h,isBackward:!1}),g=d(r,m),y=r.getBlockForKey(l).getInlineStyleAt(f);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=c(n,u(e)).selectionState;e.restoreEditorDOM();var l=a.acceptSelection(n,s);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=g},"./node_modules/draft-js/lib/DraftEditorContents-core.react.js":function(e,t,n){"use strict";function r(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=o.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||l!==u||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,o=e.blockStyleFn,l=e.customStyleMap,p=e.customStyleFn,f=e.editorState,h=e.editorKey,m=e.textDirectionality,g=f.getCurrentContent(),y=f.getSelection(),b=f.mustForceSelection(),v=f.getDecorator(),w=c(f.getDirectionMap()),j=g.getBlocksAsArray(),O=[],_=null,S=null,x=0;x_,P));var U=k||i,H={className:B,"data-block":!0,"data-editor":h,"data-offset-key":I,key:C};void 0!==T&&(H=r({},H,{contentEditable:T,suppressContentEditableWarning:!0}));var K=s.createElement(F,H,s.createElement(U,N));O.push({block:K,wrapperTemplate:R,key:C,offsetKey:I}),_=R?E.getDepth():null,S=R}for(var W=[],V=0;V0){if(e.props.handleDroppedFiles&&c(e.props.handleDroppedFiles(p,m)))return;l(m,(function(t){t&&e.update(h(a,p,t))}))}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&c(e.props.handleDrop(p,n,g))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(a,p)):e.update(h(a,p,n.getText()))),f(e)}}}};function f(e){e._internalDrag=!1;var t=a.findDOMNode(e);if(t){var n=new MouseEvent("mouseup",{view:window,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=p},"./node_modules/draft-js/lib/DraftEditorEditHandler.js":function(e,t,n){"use strict";var r={onBeforeInput:n("./node_modules/draft-js/lib/editOnBeforeInput.js"),onBlur:n("./node_modules/draft-js/lib/editOnBlur.js"),onCompositionStart:n("./node_modules/draft-js/lib/editOnCompositionStart.js"),onCopy:n("./node_modules/draft-js/lib/editOnCopy.js"),onCut:n("./node_modules/draft-js/lib/editOnCut.js"),onDragOver:n("./node_modules/draft-js/lib/editOnDragOver.js"),onDragStart:n("./node_modules/draft-js/lib/editOnDragStart.js"),onFocus:n("./node_modules/draft-js/lib/editOnFocus.js"),onInput:n("./node_modules/draft-js/lib/editOnInput.js"),onKeyDown:n("./node_modules/draft-js/lib/editOnKeyDown.js"),onPaste:n("./node_modules/draft-js/lib/editOnPaste.js"),onSelect:n("./node_modules/draft-js/lib/editOnSelect.js")};e.exports=r},"./node_modules/draft-js/lib/DraftEditorLeaf.react.js":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js");function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n("./node_modules/draft-js/lib/DraftEditorTextNode.react.js"),s=n("./node_modules/react/index.js"),l=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),u=n("./node_modules/draft-js/lib/setDraftEditorSelection.js"),c=function(e){var t,n;function c(){for(var t,n=arguments.length,r=new Array(n),a=0;a0)return" "+e}else if(t0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,l=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(l);else if(null==u||u.depth=a;)n.shift(),u=n[0];a>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},"./node_modules/draft-js/lib/DraftTreeInvariants.js":function(e,t,n){"use strict";n("./node_modules/draft-js/node_modules/fbjs/lib/warning.js");var r={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}};e.exports=r},"./node_modules/draft-js/lib/EditorBidiService.js":function(e,t,n){"use strict";var r,o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiService.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),s=i.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=s(n.keySeq().zip(l));return null!=t&&i.is(t,u)?t:u}};e.exports=l},"./node_modules/draft-js/lib/EditorState.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("./node_modules/draft-js/lib/BlockTree.js"),i=n("./node_modules/draft-js/lib/ContentState.js"),a=n("./node_modules/draft-js/lib/EditorBidiService.js"),s=n("./node_modules/draft-js/lib/SelectionState.js"),l=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),u=l.OrderedSet,c=l.Record,d=l.Stack,p=c({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),f=function(){t.createEmpty=function(e){return t.createWithContent(i.createFromText(""),e)},t.createWithContent=function(e,n){var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:n||null,selection:s.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=function(e){for(var t=1;t0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return y(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return h(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=a.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),c=n;s!==l.getSelectionAfter()||g(e,r)?(u=u.push(l),c=c.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var p=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(p=null);var h={currentContent:c,directionMap:i,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function h(e,t,n){return f.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function g(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function y(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=f},"./node_modules/draft-js/lib/KeyBindingUtil.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),o=n("./node_modules/draft-js/lib/isSoftNewlineEvent.js"),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},"./node_modules/draft-js/lib/RawDraftContentState.js":function(e,t,n){},"./node_modules/draft-js/lib/RichTextEditorUtil.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/adjustBlockDepthForContentState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},"./node_modules/draft-js/lib/adjustBlockDepthForContentState.js":function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},"./node_modules/draft-js/lib/applyEntityToContentBlock.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js");e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(D).some((function(n){e.classList.contains(n)&&(t=D[n])})),t},N=function(e){return!(!(e instanceof HTMLAnchorElement&&e.href)||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol)},L=function(e){return!!(e instanceof HTMLImageElement&&e.attributes.getNamedItem("src")&&e.attributes.getNamedItem("src").value)},R=function(e){var t=v();if(!(e instanceof HTMLElement))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){C.indexOf(r)>=0?e.add("BOLD"):M.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},F=function(e){return"ul"===e||"ol"===e},z=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentStyle",v()),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",c),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentStyle=v(),this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e])),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t.addStyle=function(e){this.currentStyle=this.currentStyle.union(e)},t.removeStyle=function(e){this.currentStyle=this.currentStyle.subtract(e)},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||f(),n=o({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e){for(var t=[],n=0;n(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e){var t=e.textContent;""===t.trim()&&"pre"!==this.wrapper&&(t=" "),"pre"!==this.wrapper&&(t=(t=t.replace(_,"")).replace(O," ")),this._appendText(t)},t._addBreakNode=function(e){e instanceof HTMLBRElement&&this._appendText("\n")},t._addImgNode=function(e){if(e instanceof HTMLImageElement){var t=e,n={};k.forEach((function(e){var r=t.getAttribute(e);r&&(n[e]=r)})),this.currentEntity=this.entityMap.__create("IMAGE","MUTABLE",n),m("draftjs_fix_paste_for_img")?"presentation"!==e.getAttribute("role")&&this._appendText("📷"):this._appendText("📷"),this.currentEntity=null}},t._addAnchorNode=function(e,t){if(e instanceof HTMLAnchorElement){var n=e,r={};A.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),r.url=new d(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes))),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=t(e=e.trim().replace(j,"").replace(S," ").replace(x,"").replace(E,""));if(!r)return null;var o=P(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new z(o,i).addDOMNode(r).getContentBlocks()}},"./node_modules/draft-js/lib/convertFromRawToDraftState.js":function(e,t,n){"use strict";function r(e){for(var t=1;t0})),o=b&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return b?function(e,t){return e.map(S).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(S),l=new a(r({},O(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:v(s.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var u=x([],s,l);u.length>0;){var c=u.pop(),d=c.parentRef,p=d.getChildKeys(),f=p.indexOf(c.key),h=Array.isArray(c.children);if(!h){h||y(!1);break}var m=c.children.map(S),g=new a(r({},O(c,t),{parent:d.getKey(),children:v(m.map((function(e){return e.key}))),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));n=n.set(g.getKey(),g),u=x(u,m,g)}return n}),j())}(o,t):function(e,t){return j(e.map((function(e){var n=new i(O(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t)};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=E(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},"./node_modules/draft-js/lib/createCharacterList.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},"./node_modules/draft-js/lib/decodeEntityRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js").substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a=h?i.length:0),a=t.get("end"),s=a+(a>=h?i.length:0);return t.get("decoratorKey")!==n.get("decoratorKey")||t.get("leaves").size!==n.get("leaves").size||o!==n.get("start")||s!==n.get("end")}))}if(b||(g=i,b=d&&("'"==g||"/"==g)),b||(b=u(y.getDirectionMap()).get(m)!==u(r.getDirectionMap()).get(m)),b)return n.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,c((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnBlur.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/EditorState.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/getActiveElement.js");e.exports=function(e,n){if(i()===document.body){var a=t.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,u=l.getSelection();if(u.getHasFocus()){var c=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(n),e.update(r.acceptSelection(l,c))}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnCompositionStart.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/EditorState.js");e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},"./node_modules/draft-js/lib/editOnCopy.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getFragmentFromSelection.js");e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},"./node_modules/draft-js/lib/editOnCut.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/Style.js"),a=n("./node_modules/draft-js/lib/getFragmentFromSelection.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/getScrollPosition.js");e.exports=function(e,t){var n,l=e._latestEditorState,u=l.getSelection(),c=t.target;if(u.isCollapsed())t.preventDefault();else{c instanceof Node&&(n=s(i.getScrollParent(c)));var d=a(l);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(l))}),0)}}},"./node_modules/draft-js/lib/editOnDragOver.js":function(e,t,n){"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},"./node_modules/draft-js/lib/editOnDragStart.js":function(e,t,n){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},"./node_modules/draft-js/lib/editOnFocus.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/EditorState.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js");e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},"./node_modules/draft-js/lib/editOnInput.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/DraftOffsetKey.js"),i=n("./node_modules/draft-js/lib/EditorState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),s=n("./node_modules/draft-js/lib/findAncestorOffsetKey.js"),l=n("./node_modules/draft-js/lib/gkx.js"),u=n("./node_modules/draft-js/lib/keyCommandPlainBackspace.js"),c=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js"),d=a.isEngine("Gecko");e.exports=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var a=t.getSelection(),p=a.anchorNode,f=a.isCollapsed,h=p.nodeType!==Node.TEXT_NODE,m=p.nodeType!==Node.TEXT_NODE&&p.nodeType!==Node.ELEMENT_NODE;if(l("draft_killswitch_allow_nontextnodes")){if(h)return}else if(m)return;if(p.nodeType===Node.TEXT_NODE&&(null!==p.previousSibling||null!==p.nextSibling)){var g=p.parentNode;p.nodeValue=g.textContent;for(var y=g.firstChild;null!==y;y=y.nextSibling)y!==p&&g.removeChild(y)}var b=p.textContent,v=e._latestEditorState,w=c(s(p)),j=o.decode(w),O=j.blockKey,_=j.decoratorKey,S=j.leafKey,x=v.getBlockTree(O).getIn([_,"leaves",S]),E=x.start,C=x.end,M=v.getCurrentContent(),A=M.getBlockForKey(O),k=A.getText().slice(E,C);if(b.endsWith("\n\n")&&(b=b.slice(0,-1)),b!==k){var D,T,P,I,N=v.getSelection(),L=N.merge({anchorOffset:E,focusOffset:C,isBackward:!1}),R=A.getEntityAt(E),F=R&&M.getEntity(R),z="MUTABLE"===(F&&F.getMutability()),B=z?"spellcheck-change":"apply-entity",U=r.replaceText(M,L,b,A.getInlineStyleAt(E),z?A.getEntityAt(E):null);if(d)D=a.anchorOffset,T=a.focusOffset,I=(P=E+Math.min(D,T))+Math.abs(D-T),D=P,T=I;else{var H=b.length-k.length;P=N.getStartOffset(),I=N.getEndOffset(),D=f?I+H:P,T=I+H}var K=U.merge({selectionBefore:M.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:D,focusOffset:T})});e.update(i.push(v,K,B))}else{var W=n.nativeEvent.inputType;if(W){var V=function(e,t){switch(e){case"deleteContentBackward":return u(t)}return t}(W,v);if(V!==v)return e.restoreEditorDOM(),void e.update(V)}}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/editOnKeyDown.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/KeyBindingUtil.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),s=n("./node_modules/draft-js/lib/SecondaryClipboard.js"),l=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),u=n("./node_modules/draft-js/lib/isEventHandled.js"),c=n("./node_modules/draft-js/lib/keyCommandBackspaceToStartOfLine.js"),d=n("./node_modules/draft-js/lib/keyCommandBackspaceWord.js"),p=n("./node_modules/draft-js/lib/keyCommandDeleteWord.js"),f=n("./node_modules/draft-js/lib/keyCommandInsertNewline.js"),h=n("./node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js"),m=n("./node_modules/draft-js/lib/keyCommandMoveSelectionToStartOfBlock.js"),g=n("./node_modules/draft-js/lib/keyCommandPlainBackspace.js"),y=n("./node_modules/draft-js/lib/keyCommandPlainDelete.js"),b=n("./node_modules/draft-js/lib/keyCommandTransposeCharacters.js"),v=n("./node_modules/draft-js/lib/keyCommandUndo.js"),w=i.isOptionKeyCommand,j=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:j&&w(t)&&t.preventDefault()}var O=e.props.keyBindingFn(t);if(O)if("undo"!==O){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(O,i,t.timeStamp))){var _=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return c(t);case"split-block":return f(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(O,i);_!==i&&e.update(_)}}else v(t,i,e.update);else if(n===a.SPACE&&j&&w(t)){var S=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,S,"insert-characters"))}}},"./node_modules/draft-js/lib/editOnPaste.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/BlockMapBuilder.js"),o=n("./node_modules/draft-js/lib/CharacterMetadata.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/DataTransfer.js"),a=n("./node_modules/draft-js/lib/DraftModifier.js"),s=n("./node_modules/draft-js/lib/DraftPasteProcessor.js"),l=n("./node_modules/draft-js/lib/EditorState.js"),u=n("./node_modules/draft-js/lib/RichTextEditorUtil.js"),c=n("./node_modules/draft-js/lib/getEntityKeyForSelection.js"),d=n("./node_modules/draft-js/lib/getTextContentFromFiles.js"),p=n("./node_modules/draft-js/lib/isEventHandled.js"),f=n("./node_modules/draft-js/lib/splitTextIntoTextBlocks.js");function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(m)))return;return void d(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=f(t),d=o.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=s.processText(i,d,p),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(l.push(n,y,"insert-fragment"))}}))}}var y=[],b=n.getText(),v=n.getHTML(),w=e._latestEditorState;if(!e.props.handlePastedText||!p(e.props.handlePastedText(b,v,w))){if(b&&(y=f(b)),!e.props.stripPastedStyles){var j=e.getClipboard();if(n.isRichText()&&j){if(-1!==v.indexOf(e.getEditorKey())||1===y.length&&1===j.size&&j.first().getText()===b)return void e.update(h(e._latestEditorState,j))}else if(j&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,j))return void e.update(h(e._latestEditorState,j));if(v){var O=s.processHTML(v,e.props.blockRenderMap);if(O){var _=O.contentBlocks,S=O.entityMap;if(_){var x=r.createFromArray(_);return void e.update(h(e._latestEditorState,x,S))}}}e.setClipboard(null)}if(y.length){var E=o.create({style:w.getCurrentInlineStyle(),entity:c(w.getCurrentContent(),w.getSelection())}),C=u.getCurrentBlockType(w),M=s.processText(y,E,C),A=r.createFromArray(M);e.update(h(e._latestEditorState,A))}}}},"./node_modules/draft-js/lib/editOnSelect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftJsDebugLogging.js"),o=n("./node_modules/draft-js/lib/EditorState.js"),i=n("./node_modules/draft-js/lib/getContentEditableContainer.js"),a=n("./node_modules/draft-js/lib/getDraftEditorSelection.js");e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,i(e)),l=s.selectionState;l!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},"./node_modules/draft-js/lib/encodeEntityRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftStringKey.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js").strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),l=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(l)])})})),n}},"./node_modules/draft-js/lib/encodeInlineStyleRanges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js"),o=n("./node_modules/draft-js/lib/findRangesImmutable.js"),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},"./node_modules/draft-js/lib/expandRangeToStartOfLine.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js"),o=n("./node_modules/draft-js/lib/getRangeClientRects.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;f--)if(!(null!=p&&f>0&&r.isSurrogatePair(p,f-1))){if(e.setStart(c,f),!a(o(e),n))break;l=c,u=f}if(-1===f||0===c.childNodes.length)break;d=s(c=c.childNodes[f])}return e.setStart(l,u),e}},"./node_modules/draft-js/lib/findAncestorOffsetKey.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js");e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},"./node_modules/draft-js/lib/findRangesImmutable.js":function(e,t,n){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},"./node_modules/draft-js/lib/generateRandomKey.js":function(e,t,n){"use strict";var r={},o=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||r.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return r[e]=!0,e}},"./node_modules/draft-js/lib/getCharacterRemovalRange.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftEntitySegments.js"),o=n("./node_modules/draft-js/lib/getRangesForDraftEntity.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t,n,a,s,l,u){var c=n.getStartOffset(),d=n.getEndOffset(),p=e.__get(s).getMutability(),f=u?c:d;if("MUTABLE"===p)return n;var h=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});l||(u?d=m.end:c=m.start);var g=r.getRemovalRange(c,d,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),l=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!l&&!u)return r;var c=r;if(l&&l===u)c=a(e,t,c,o,l,!0,!0);else if(l&&u){var d=a(e,t,c,o,l,!1,!0),p=a(e,n,c,o,u,!1,!1);c=c.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var f=a(e,t,c,o,l,!1,!0);c=c.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,c,o,u,!1,!1);c=c.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return c}},"./node_modules/draft-js/lib/getContentEditableContainer.js":function(e,t,n){"use strict";var r=n("./node_modules/react-dom/index.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");e.exports=function(e){var t=r.findDOMNode(e.editorContainer);return t||o(!1),t.firstChild instanceof HTMLElement||o(!1),t.firstChild}},"./node_modules/draft-js/lib/getContentStateFragment.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/randomizeBlockMapKeys.js"),o=n("./node_modules/draft-js/lib/removeEntitiesAtEdges.js");e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=o(e,t).getBlockMap(),u=l.keySeq(),c=u.indexOf(n),d=u.indexOf(a)+1;return r(l.slice(c,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},"./node_modules/draft-js/lib/getDefaultKeyBinding.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/KeyBindingUtil.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/Keys.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/UserAgent.js"),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function c(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},"./node_modules/draft-js/lib/getDraftEditorSelection.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js");e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/findAncestorOffsetKey.js"),o=n("./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js"),i=n("./node_modules/draft-js/lib/getUpdatedSelectionState.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/nullthrows.js");function l(e,t,n){var i=t,l=r(i);if(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var c=null;if(null!=l)c=l;else{var d=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);c=s(o(d))}return{key:c,offset:0}}var p=i.childNodes[n-1],f=null,h=null;if(o(p)){var m=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(p);f=s(o(m)),h=u(m)}else f=s(l),h=u(p);return{key:f,offset:h}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,u){var c=n.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(c&&d)return{selectionState:i(e,s(r(n)),o,s(r(a)),u),needsRecovery:!1};var p=null,f=null,h=!0;return c?(p={key:s(r(n)),offset:o},f=l(t,a,u)):d?(f={key:s(r(a)),offset:u},p=l(t,n,o)):(p=l(t,n,o),f=l(t,a,u),n===a&&o===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,f.key,f.offset),needsRecovery:h}}},"./node_modules/draft-js/lib/getEntityKeyForSelection.js":function(e,t,n){"use strict";function r(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var o=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:r(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(a);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},"./node_modules/draft-js/lib/getFragmentFromSelection.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getContentStateFragment.js");e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},"./node_modules/draft-js/lib/getNextDelimiterBlockKey.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js");e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},"./node_modules/draft-js/lib/getRangeBoundingClientRect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/getRangeClientRects.js");e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var l=t[0];n=l.top,o=l.right,i=l.bottom,a=l.left}for(var u=1;ui){var l=r.getKeyBefore(o);if(null==l)a=o;else a=l,s=r.getBlockForKey(l).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},"./node_modules/draft-js/lib/moveSelectionForward.js":function(e,t,n){"use strict";n("./node_modules/draft-js/node_modules/fbjs/lib/warning.js");e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},"./node_modules/draft-js/lib/randomizeBlockMapKeys.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js"),o=n("./node_modules/draft-js/lib/generateRandomKey.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js").OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),u=r.getChildKeys(),c=r.getParentKey(),d=o();(n[a]=d,s)&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null));l&&(e.get(l)?e.setIn([l,"nextSibling"],d):e.setIn([a,"prevSibling"],null));if(c&&e.get(c)){var p=e.get(c).getChildKeys();e.setIn([c,"children"],p.set(p.indexOf(r.getKey()),d))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},"./node_modules/draft-js/lib/removeEntitiesAtEdges.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/CharacterMetadata.js"),o=n("./node_modules/draft-js/lib/findRangesImmutable.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,l=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,c,n),f=p.start,h=p.end;ft;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),c=t.getEndKey(),f=t.getEndOffset(),h=i.get(s),m=i.get(c),g=h instanceof r,y=[];if(g){var b=m.getChildKeys(),v=l(c,i);m.getNextSiblingKey()&&(y=y.concat(v)),b.isEmpty()||(y=y.concat(v.concat([c]))),y=y.concat(l(o(m,i),i))}n=h===m?p(h.getCharacterList(),u,f):h.getCharacterList().slice(0,u).concat(m.getCharacterList().slice(f));var w=h.merge({text:h.getText().slice(0,u)+m.getText().slice(f),characterList:n}),j=g&&0===u&&0===f&&m.getParentKey()===s&&null==m.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===c})).filter((function(e,t){return-1===y.indexOf(t)})).concat(a([[c,null]])).map((function(e,t){return t===s?w:null})),O=i.merge(j).filter((function(e){return!!e}));return g&&h!==m&&(O=d(O,h,m,i)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:u,focusKey:s,focusOffset:u,isBackward:!1})})}},"./node_modules/draft-js/lib/removeTextWithStrategy.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/DraftModifier.js"),o=n("./node_modules/draft-js/lib/gkx.js")("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),s=i,l=i.getAnchorKey(),u=i.getFocusKey(),c=a.getBlockForKey(l);if(o&&"forward"===n&&l!==u)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o)if(i.getAnchorOffset()===a.getBlockForKey(l).getLength()){var d=a.getBlockForKey(c.nextSibling);if(!d||0===d.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,s,n)}},"./node_modules/draft-js/lib/sanitizeDraftText.js":function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},"./node_modules/draft-js/lib/setDraftEditorSelection.js":function(e,t,n){"use strict";(function(t){var r=n("./node_modules/draft-js/lib/DraftEffects.js"),o=n("./node_modules/draft-js/lib/DraftJsDebugLogging.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/getActiveElement.js"),s=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js");function l(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return document.createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,s=0;sc(t)&&o.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.extend(t,n)}catch(i){throw o.logSelectionStateFailure({anonymizedDom:u(t,(function(t){var n=[];return t===s&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),i}}else{var d=e.getRangeAt(0);d.setEnd(t,n),e.addRange(d.cloneRange())}}function p(e,t,n,i){var a=document.createRange();n>c(t)&&(o.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),e.addRange(a)}e.exports=function(e,n,r,o,a){if(i(document.documentElement,n)){var s=t.getSelection(),l=e.getAnchorKey(),u=e.getAnchorOffset(),c=e.getFocusKey(),f=e.getFocusOffset(),h=e.getIsBackward();if(!s.extend&&h){var m=l,g=u;l=c,u=f,c=m,f=g,h=!1}var y=l===r&&o<=u&&a>=u,b=c===r&&o<=f&&a>=f;if(y&&b)return s.removeAllRanges(),p(s,n,u-o,e),void d(s,n,f-o,e);if(h){if(b&&(s.removeAllRanges(),p(s,n,f-o,e)),y){var v=s.focusNode,w=s.focusOffset;s.removeAllRanges(),p(s,n,u-o,e),d(s,v,w,e)}}else y&&(s.removeAllRanges(),p(s,n,u-o,e)),b&&d(s,n,f-o,e)}}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/draft-js/lib/splitBlockInContentState.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/lib/ContentBlockNode.js"),o=n("./node_modules/draft-js/lib/generateRandomKey.js"),i=n("./node_modules/draft-js/node_modules/immutable/dist/immutable.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=n("./node_modules/draft-js/lib/modifyBlockForContentState.js"),l=i.List,u=i.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),d=i.get(n),p=d.getText();if(!p){var f=d.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=d.getCharacterList(),g=o(),y=d instanceof r,b=d.merge({text:p.slice(0,h),characterList:m.slice(0,h)}),v=b.merge({key:g,text:p.slice(h),characterList:m.slice(h),data:u()}),w=i.toSeq().takeUntil((function(e){return e===d})),j=i.toSeq().skipUntil((function(e){return e===d})).rest(),O=w.concat([[n,b],[g,v]],j).toOrderedMap();return y&&(d.getChildKeys().isEmpty()||a(!1),O=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:l(i)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),c(r,e,(function(e){return e.merge({nextSibling:o})})),c(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(O,b,v)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},"./node_modules/draft-js/lib/splitTextIntoTextBlocks.js":function(e,t,n){"use strict";var r=/\r\n?|\n/g;e.exports=function(e){return e.split(r)}},"./node_modules/draft-js/node_modules/fbjs/lib/DataTransfer.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/PhotosMimeType.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/createArrayFromMixed.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/emptyFunction.js"),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=u},"./node_modules/draft-js/node_modules/fbjs/lib/Keys.js":function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},"./node_modules/draft-js/node_modules/fbjs/lib/PhotosMimeType.js":function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},"./node_modules/draft-js/node_modules/fbjs/lib/Scroll.js":function(e,t,n){"use strict";function r(e,t){return!!t&&(e===t.documentElement||e===t.body)}var o={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=o},"./node_modules/draft-js/node_modules/fbjs/lib/Style.js":function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n("./node_modules/draft-js/node_modules/fbjs/lib/getStyleProperty.js"),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},"./node_modules/draft-js/node_modules/fbjs/lib/TokenizeUtil.js":function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},"./node_modules/draft-js/node_modules/fbjs/lib/URI.js":function(e,t,n){"use strict";var r=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=r},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidi.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),l=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function c(e){var t=u(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=c(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var f={firstStrongChar:u,firstStrongCharDir:c,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=f},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1),"LTR"===e?"ltr":"rtl"}function s(e){o=e}var l={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:a(e)},setGlobalDir:s,initGlobalDir:function(){s("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}};e.exports=l},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiService.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidi.js"),i=n("./node_modules/draft-js/node_modules/fbjs/lib/UnicodeBidiDirection.js"),a=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},"./node_modules/draft-js/node_modules/fbjs/lib/UnicodeUtils.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/invariant.js"),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&i=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return c(n[0],t);var o=n[0],i=n[1];return m(o)&&m(i)||r(!1),c(">="+o,t)&&c("<="+i,t)}(e=n[0].trim(),t)}function c(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return d(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(r,s);case">":return function(e,t){return 1===v(e,t)}(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return p(e,n)&&d(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function d(e,t){return-1===v(e,t)}function p(e,t){var n=v(e,t);return 1===n||0===n}function f(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function m(e){return!f(e).modifier}function g(e,t){for(var n=e.length;nt?1:e-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},"./node_modules/draft-js/node_modules/fbjs/lib/getElementPosition.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/getElementRect.js");e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},"./node_modules/draft-js/node_modules/fbjs/lib/getElementRect.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/containsNode.js");e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},"./node_modules/draft-js/node_modules/fbjs/lib/getScrollPosition.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/getDocumentScrollElement.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/getUnboundedScrollPosition.js");e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},"./node_modules/draft-js/node_modules/fbjs/lib/getStyleProperty.js":function(e,t,n){"use strict";var r=n("./node_modules/draft-js/node_modules/fbjs/lib/camelize.js"),o=n("./node_modules/draft-js/node_modules/fbjs/lib/hyphenate.js");function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},"./node_modules/draft-js/node_modules/fbjs/lib/getUnboundedScrollPosition.js":function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},"./node_modules/draft-js/node_modules/fbjs/lib/getViewportDimensions.js":function(e,t,n){"use strict";function r(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function o(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}i.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=i},"./node_modules/draft-js/node_modules/fbjs/lib/hyphenate.js":function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},"./node_modules/draft-js/node_modules/fbjs/lib/invariant.js":function(e,t,n){"use strict";var r=function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};e.exports=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i1)for(var r=1;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function S(){return!0}function x(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function E(e,t){return M(e,t,0)}function C(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A,k,D,T="function"==typeof Symbol&&Symbol.iterator,P=T||"@@iterator";function I(e){this.next=e}function N(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function L(){return{value:void 0,done:!0}}function R(e){return!!B(e)}function F(e){return e&&"function"==typeof e.next}function z(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(T&&e[T]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function H(e){return null==e?J():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?J().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():X(e)}function W(e){return null==e?J():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():$(e)}function V(e){return(null==e?J():a(e)?s(e)?e.entrySeq():e:$(e)).toSetSeq()}function G(e){this._array=e,this.size=e.length}function q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Y(e){this._iterable=e,this.size=e.length||e.size}function Q(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function J(){return A||(A=new G([]))}function X(e){var t=Array.isArray(e)?new G(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():R(e)?new Y(e).fromEntrySeq():"object"==typeof e?new q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function $(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new G(e):F(e)?new Q(e):R(e)?new Y(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new I((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:N(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,W(n).map((function(r,o){return e(t,r,o,n)}))):ie(n)?t.call(o,r,K(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?W(e).map(oe).toList():ie(e)?K(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ae(o[1],e)&&(n||ae(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ae(t,e.get(r,m)):!ae(e.get(r,m),t))return d=!1,!1}));return d&&e.size===p}function le(e,t){if(!(this instanceof le))return new le(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(k)return k;k=this}}function ue(e,t){if(!e)throw new Error(t)}function ce(e,t,n){if(!(this instanceof ce))return new ce(e,t,n);if(ue(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:N(e,o,n[t?r-o++:o++])}))},t(q,K),q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},q.prototype.has=function(e){return this._object.hasOwnProperty(e)},q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new I((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:N(e,a,n[a])}))},q.prototype[h]=!0,t(Y,W),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._iterable),r=0;if(F(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._iterable);if(!F(n))return new I(L);var r=0;return new I((function(){var t=n.next();return t.done?t:N(e,r++,t.value)}))},t(Q,W),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return N(e,o,r[o++])}))},t(le,W),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,t){return this.has(e)?this._value:t},le.prototype.includes=function(e){return ae(this._value,e)},le.prototype.slice=function(e,t){var n=this.size;return x(e,t,n)?this:new le(this._value,C(t,n)-E(e,n))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ce.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:N(e,i++,a)}))},ce.prototype.equals=function(e){return e instanceof ce?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(pe,de),t(fe,de),t(he,de),de.Keyed=pe,de.Indexed=fe,de.Set=he;var me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ge(n)}if("string"===t)return e.length>xe?function(e){var t=Me[e];return void 0===t&&(t=be(e),Ce===Ee&&(Ce=0,Me={}),Ce++,Me[e]=t),t}(e):be(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Oe&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++_e,1073741824&_e&&(_e=0),Oe)ve.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(e);if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function be(e){for(var t=0,n=0;n>>n),s=31&(0===n?r:r>>>n);return new Le(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:j(e);return o[t]=n,o}Ie[Pe]=!0,Ie.delete=Ie.remove,Ie.removeIn=Ie.deleteIn,Ne.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=tt)return function(e,t,n,r){e||(e=new w);for(var o=new ze(e,ye(n),[n,r]),i=0;i>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[$e(i&o-1)].get(e+5,t,n,r)},Le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),l=1<=nt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Re(e,i+1,a)}(e,p,u,s,h);if(c&&!h&&2===p.length&&qe(p[1^d]))return p[1^d];if(c&&h&&1===p.length&&qe(h))return h;var g=e&&e===this.ownerID,y=c?h?u:u^l:u|l,b=c?h?et(p,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Re.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),l=o===m,u=this.nodes,c=u[s];if(l&&!c)return this;var d=Ge(c,e,t+5,n,r,o,i,a);if(d===c)return this;var p=this.count;if(c){if(!d&&--p0&&r<32?ft(0,r,5,null,new lt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(ot,fe),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=_(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?bt(e,t).set(0,n):bt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=b(y);return t>=wt(e._capacity)?r=mt(r,e.__ownerID,0,t,n,i):o=mt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ft(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){bt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new lt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=gt(this,e);if(!i)for(var l=0;l>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=gt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ut,ct,dt={};function pt(e,t){var n=e._origin,r=e._capacity,o=wt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(l===u)return dt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>32&&(c=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(u===c)return dt;var n=t?--c:u++;s=a(l&&l[n],o-5,i+(n<>>n&31,l=e&&s0){var u=e&&e.array[s],c=mt(u,t,n-5,r,o,i);return c===u?e:((a=gt(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(v(i),a=gt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function gt(e,t){return t&&e&&t===e.ownerID?e:new lt(e?e.array.slice():[],t)}function yt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function bt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new lt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=5);c&&(a+=c,o+=c,s+=c,i+=c);for(var d=wt(i),p=wt(s);p>=1<d?new lt([],r):f;if(f&&p>d&&a5;g-=5){var y=d>>>g&31;m=m.array[y]=gt(m.array[y],r)}m.array[d>>>5&31]=f}if(s=p)a-=p,s-=p,l=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p>>l&31;if(b!==p>>>l&31)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&pi&&(i=u.size),a(l)||(u=u.map((function(e){return re(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),Xe(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function jt(e){return null==e?St():Ot(e)?e:St().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ot(e){return De(e)&&c(e)}function _t(e,t,n,r){var o=Object.create(jt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function St(){return ct||(ct=_t(We(),ht()))}function xt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===m){if(!l)return e;a.size>=32&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):_t(r,o)}function Et(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function kt(e){var t=Gt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new I((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Dt(e,t,n){var r=Gt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,m);return i===m?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new I((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return N(r,s,t.call(n,a[1],s,e),o)}))},r}function Tt(e,t){var n=Gt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=kt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=qt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Pt(e,t,n,r){var o=Gt(e);return r&&(o.has=function(r){var o=e.get(r,m);return o!==m&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,m);return i!==m&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new I((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return N(o,r?u:s++,c,i)}}))},o}function It(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),x(t,n,o))return e;var i=E(t,o),a=C(n,o);if(i!=i||a!=a)return It(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Gt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Z(e)&&s>=0&&(u.get=function(t,n){return(t=_(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:N(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Nt(e,t,n,r){var o=Gt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,u=0;return new I((function(){var e,i,c;do{if((e=s.next()).done)return r||1===o?e:N(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],l&&(l=t.call(n,c,i,a))}while(l);return 2===o?e:N(o,i,c,e)}))},o}function Lt(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?X(e):$(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||l(e)&&l(i))return i}var u=new G(o);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Rt(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(l,u){var c=this;l.__iterate((function(o,l){return(!t||u0}function Ut(e,t,r){var o=Gt(e);return o.size=new G(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),z(o?e.reverse():e)})),a=0,s=!1;return new I((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:N(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ht(e,t){return Z(e)?t:e.constructor(t)}function Kt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return Ae(e.size),O(e)}function Vt(e){return s(e)?r:l(e)?o:i}function Gt(e){return Object.create((s(e)?K:l(e)?W:V).prototype)}function qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function Yt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):jn(e,t)},gn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ae(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},gn.prototype.pop=function(){return this.slice(1)},gn.prototype.unshift=function(){return this.push.apply(this,arguments)},gn.prototype.unshiftAll=function(e){return this.pushAll(e)},gn.prototype.shift=function(){return this.pop.apply(this,arguments)},gn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):On()},gn.prototype.slice=function(e,t){if(x(e,t,this.size))return this;var n=E(e,this.size);if(C(t,this.size)!==this.size)return fe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(r,o)},gn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},gn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},gn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new I((function(){if(r){var t=r.value;return r=r.next,N(e,n++,t)}return{value:void 0,done:!0}}))},gn.isStack=yn;var bn,vn="@@__IMMUTABLE_STACK__@@",wn=gn.prototype;function jn(e,t,n,r){var o=Object.create(wn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function On(){return bn||(bn=jn(0))}function _n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}wn[vn]=!0,wn.withMutations=Ie.withMutations,wn.asMutable=Ie.asMutable,wn.asImmutable=Ie.asImmutable,wn.wasAltered=Ie.wasAltered,n.Iterator=I,_n(n,{toArray:function(){Ae(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ct(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Et(this,!0)},toMap:function(){return ke(this.toKeyedSeq())},toObject:function(){Ae(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return cn(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(s(this)?this.valueSeq():this)},toList:function(){return ot(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Ht(this,Lt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ae(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Ht(this,Pt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ae(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ae(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ht(this,Dt(this,e,t))},reduce:function(e,t,n){var r,o;return Ae(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ht(this,Tt(this,!0))},slice:function(e,t){return Ht(this,It(this,e,t,!0))},some:function(e,t){return!this.every(Mn(e),t)},sort:function(e){return Ht(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new G(e._cache);var t=e.toSeq().map(Cn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Mn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(S)},flatMap:function(e,t){return Ht(this,function(e,t,n){var r=Vt(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ht(this,Rt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Qt(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,m):m)===m)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(c(e)?jt():ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Vt(e);return o.map((function(t){return Ht(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,m)!==m},hasIn:function(e){return this.getIn(e,m)!==m},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(En).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?An(e):Tn)},minBy:function(e,t){return zt(this,t?An(t):Tn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ht(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ht(this,Nt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Mn(e),t)},sortBy:function(e,t){return Ht(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ht(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ht(this,function(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new I((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?2===r?e:N(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Mn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=me(t,3432918353),t=me(t<<15|t>>>-15,461845907),t=me(t<<13|t>>>-13,5),t=me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ge((t=me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Pn(ye(e),ye(t))|0}:function(e,t){r=r+Pn(ye(e),ye(t))|0}:t?function(e){r=31*r+ye(e)|0}:function(e){r=r+ye(e)|0}),r)}(this))}});var Sn=n.prototype;Sn[d]=!0,Sn[P]=Sn.values,Sn.__toJS=Sn.toArray,Sn.__toStringMapper=kn,Sn.inspect=Sn.toSource=function(){return this.toString()},Sn.chain=Sn.flatMap,Sn.contains=Sn.includes,function(){try{Object.defineProperty(Sn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),_n(r,{flip:function(){return Ht(this,kt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ae(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Ht(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ht(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var xn=r.prototype;function En(e,t){return t}function Cn(e,t){return[t,e]}function Mn(e){return function(){return!e.apply(this,arguments)}}function An(e){return function(){return-e.apply(this,arguments)}}function kn(e){return"string"==typeof e?JSON.stringify(e):e}function Dn(){return j(arguments)}function Tn(e,t){return et?-1:0}function Pn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return xn[p]=!0,xn[P]=Sn.entries,xn.__toJS=Sn.toObject,xn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+kn(e)},_n(o,{toKeyedSeq:function(){return new Et(this,!1)},filter:function(e,t){return Ht(this,Pt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Ht(this,Tt(this,!1))},slice:function(e,t){return Ht(this,It(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=E(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ht(this,1===n?r:r.concat(j(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Ht(this,Rt(this,e,!1))},get:function(e,t){return(e=_(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=_(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0&&n'+n+"";if("LINK"===o.type){var a=o.data.targetOption||"_self";return''+n+""}return"IMAGE"===o.type?''+o.data.alt+'':"EMBEDDED_LINK"===o.type?'':n}function s(e,t,n,r){var a=[],s=e.text;if(s.length>0)for(var l=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o0?e.map((function(e){switch(e){case"\n":return"
";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):""}(t.text);return e(n,(function(e,t){r=function(e,t){return"BOLD"===e?""+t+"":"ITALIC"===e?""+t+"":"UNDERLINE"===e?""+t+"":"STRIKETHROUGH"===e?""+t+"":"CODE"===e?""+t+"":"SUPERSCRIPT"===e?""+t+"":"SUBSCRIPT"===e?""+t+"":t}(e,r)})),r}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: "+e.COLOR+";"),e.BGCOLOR&&(n+="background-color: "+e.BGCOLOR+";"),e.FONTSIZE&&(n+="font-size: "+e.FONTSIZE+(/^\d+$/.test(e.FONTSIZE)?"px":"")+";"),e.FONTFAMILY&&(n+="font-family: "+e.FONTFAMILY+";"),""+t+""}return t}(n.styles,o)}function u(e,t,n,r){var o=[],i=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var l=i.indexOf(s)>=0?i.indexOf(s):i.length,u=i.substr(0,l);u&&u.length>0&&n.push({offset:r,length:u.length+a.length,type:"HASHTAG"}),r+=a.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r'+i+""),i}(e,t,n,r);0===u&&(c=function(e){if(e){for(var t=e,n=0;n=0&&" "===t[n];n-=1)t=t.substring(0,n)+" "+t.substring(n+1);return t}return e}(c)),o.push(c)})),o.join("")}function c(e,t,o,i,a){var s=[],l=[],d=void 0;return e.forEach((function(e){var p=!1;if(d?d.type!==e.type?(s.push("\n"),s.push("<"+n(e.type)+">\n")):d.depth===e.depth?l&&l.length>0&&(s.push(c(l,t,o,i,a)),l=[]):(p=!0,l.push(e)):s.push("<"+n(e.type)+">\n"),!p){s.push(""),s.push(u(e,t,o,a)),s.push("\n"),d=e}})),l&&l.length>0&&s.push(c(l,t,o,i,a)),s.push("\n"),s.join("")}return function(e,t,o,i){var s=[];if(e){var l=e.blocks,d=e.entityMap;if(l&&l.length>0){var p=[];if(l.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)p.push(e);else{if(p.length>0){var l=c(p,d,t,i);s.push(l),p=[]}var f=function(e,t,o,i,s){var l=[];if(function(e){return e.entityRanges.length>0&&(null==(t=e.text)||0===t.length||0===t.trim().length||"atomic"===e.type);var t}(e))l.push(a(t,e.entityRanges[0].key,void 0,s));else{var c=n(e.type);if(c){l.push("<"+c);var d=r(e.data);d&&l.push(' style="'+d+'"'),i&&l.push(' dir = "auto"'),l.push(">"),l.push(u(e,t,o,s)),l.push("")}}return l.push("\n"),l.join("")}(e,d,t,o,i);s.push(f)}var h})),p.length>0){var f=c(p,d,t,o,i);s.push(f),p=[]}}}return s.join("")}}()},"./node_modules/element-class/index.js":function(e,t){function n(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1||(r.push(e),t.className=r.join(" ")),r}},r.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var r=t.className.split(" "),o=n(r,e);return o>-1&&r.splice(o,1),t.className=r.join(" "),r}},r.prototype.has=function(e){var t=this.el;if(t)return n(t.className.split(" "),e)>-1},r.prototype.toggle=function(e){this.el&&(this.has(e)?this.remove(e):this.add(e))}},"./node_modules/element-resize-detector/src/browser-detector.js":function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]>4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},"./node_modules/element-resize-detector/src/collection-utils.js":function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",i+="."+o+" { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function l(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return s(window.document),{makeDetectable:function(e,s,c){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r=t||n<0||m&&e-y>=c}function j(){var e=o();if(O(e))return w(e);d=setTimeout(j,function(e){var n=t-(e-f);return m?u(n,c-(e-y)):n}(e))}function w(e){return d=void 0,b&&s?v(e):(s=l=void 0,p)}function E(){var e=o(),n=O(e);if(s=arguments,l=this,f=e,n){if(void 0===d)return g(f);if(m)return clearTimeout(d),d=setTimeout(j,t),v(f)}return void 0===d&&(d=setTimeout(j,t)),p}return t=i(t)||0,r(n)&&(h=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,b="trailing"in n?!!n.trailing:b),E.cancel=function(){void 0!==d&&clearTimeout(d),y=0,s=f=l=d=void 0},E.flush=function(){return void 0===d?p:w(o())},E}},"./MapStore2/node_modules/lodash/findKey.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFindKey.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){return r(e,i(t,3),o)}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/web/client/actions/mapEditor.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return u}));var r="MAP_EDITOR:SHOW",o="MAP_EDITOR:HIDE",i="MAP_EDITOR:SAVE",a=function(e,t){return{type:r,owner:e,map:t}},u=function(e){return{type:o,owner:e}}},"./MapStore2/web/client/actions/mediaEditor.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"o",(function(){return f})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"h",(function(){return O})),n.d(t,"g",(function(){return j})),n.d(t,"r",(function(){return w})),n.d(t,"t",(function(){return E})),n.d(t,"v",(function(){return P})),n.d(t,"w",(function(){return S})),n.d(t,"A",(function(){return _})),n.d(t,"B",(function(){return k})),n.d(t,"C",(function(){return M})),n.d(t,"I",(function(){return D})),n.d(t,"D",(function(){return C})),n.d(t,"F",(function(){return T})),n.d(t,"G",(function(){return x})),n.d(t,"E",(function(){return A})),n.d(t,"H",(function(){return I})),n.d(t,"s",(function(){return R})),n.d(t,"u",(function(){return F})),n.d(t,"z",(function(){return N})),n.d(t,"y",(function(){return L})),n.d(t,"x",(function(){return z}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),i="MEDIA_EDITOR:ADDING_MEDIA",a="MEDIA_EDITOR:CHOOSE_MEDIA",u="MEDIA_EDITOR:EDITING_MEDIA",s="GEOSTORY:EDIT_MEDIA",l="MEDIA_EDITOR:LOAD_MEDIA",c="MEDIA_EDITOR:LOAD_MEDIA_SUCCESS",p="MEDIA_EDITOR:HIDE",d="MEDIA_EDITOR:SAVE_MEDIA",f="MEDIA_EDITOR:SET_MEDIA_TYPE",y="MEDIA_EDITOR:SET_MEDIA_SERVICE",h="MEDIA_EDITOR:SELECT_ITEM",m="MEDIA_EDITOR:SHOW",b="MEDIA_EDITOR:UPDATE_ITEM",v="MEDIA_EDITOR:IMPORT_IN_LOCAL",g="MEDIA_EDITOR:REMOVE_MEDIA",O="MEDIA_EDITOR:LOADING_SELECTED_MEDIA",j="MEDIA_EDITOR:LOADING_MEDIA_LIST",w=function(e){return{type:a,resource:e}},E=function(){return{type:p}},P=function(e,t,n){return{type:l,params:e,mediaType:t,sourceId:n}},S=function(e){var t=e.mediaType,n=e.sourceId,r=e.params,o=e.resultData;return{type:c,mediaType:t,sourceId:n,params:r,resultData:o}},_=function(e){var t=e.type,n=e.source,r=e.data;return{type:d,mediaType:t,source:n,data:r}},k=function(e){return{type:"MEDIA_EDITOR:SAVE_MEDIA_SUCCESS",mediaType:e.mediaType,source:e.source,data:e.data,id:e.id}},M=function(e){return{type:h,id:e}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"merge";return{type:b,item:e,mode:t}},C=function(e){return{type:i,adding:e}},T=function(e){return{type:y,id:Object(r.isObject)(e)?e.value:e}},x=function(e){return{type:f,mediaType:e}},A=function(e){return{type:u,editing:e}},I=function(e,t){return{type:m,owner:e,settings:t}},R=function(e){var t=e.path,n=e.owner;return{type:s,path:t,owner:void 0===n?"geostory":n}},F=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?o.a.GEOSTORY:n,i=e.owner;return{type:v,resource:t,sourceType:r,owner:void 0===i?"geostory":i}},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory";return{type:g,mediaType:e,owner:t}},L=function(e){return{type:O,loading:e}},z=function(){return{type:j}}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function u(e){return(u="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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:F[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!L&&o.a.createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:F[0],height:F[1]}}))}));t.a=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,u=e.autoplay,s=e.inView,l=e.description,p=e.showCaption,d=e.caption,f=void 0===d?l:d,h=e.thumbnail,b=e.credits,v=e.controls,g=void 0===v||v,O=e.fit,j=e.loop,w=e.muted,E=e.onPlay,P=void 0===E?function(){}:E,S=e.mode,_=e.containerInView,k=(void 0===_||_)&&s,M=y(Object(r.useState)(!1),2),D=M[0],C=M[1],T=function(e){C(e),P(e)};return Object(r.useEffect)((function(){S===c.f.EDIT&&T(!1)}),[S]),Object(r.useEffect)((function(){S===c.f.VIEW&&k&&(u||"cover"===O)&&T(!0)}),[k,u,O,S]),Object(r.useEffect)((function(){S===c.f.VIEW&&!k&&D&&T(!1)}),[k,D,S]),o.a.createElement("div",{id:t,key:"".concat(t,"-").concat(O,"-").concat(S),className:"ms-media ms-media-video"},o.a.createElement(m,{src:n,play:D&&S===c.f.VIEW,resolution:a,thumbnail:h,controls:g&&S===c.f.VIEW,onPlay:T,fit:O,loop:j,muted:w}),b&&o.a.createElement("div",{className:"ms-media-credits"},o.a.createElement("small",null,b)),p&&f&&o.a.createElement("div",{className:"ms-media-caption"},o.a.createElement("small",null,f)))}},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),u=n.n(a),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),l=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(l,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?s.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:u.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:u.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function u(e){return(u="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 s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/misc/Button.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/classnames/index.js"),u=n.n(a);function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,p=l(e,["disabled","className","onClick"]);return i.a.createElement(c,s({ref:t,className:n?u()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},p),p.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./node_modules/react/index.js"),s=n.n(u),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),p=n("./MapStore2/web/client/components/I18N/Message.jsx"),d=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n0})),P(w(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=s.a.createElement("div",{id:this.props.id,style:m({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},s.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),s.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?s.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):s.a.createElement("span",null)),n=this.props.draggable?s.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?s.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&v(t.prototype,n),r&&v(t,r),a}(s.a.Component);P(S,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),P(S,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=S},"./MapStore2/web/client/components/misc/EmptyView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,a=void 0===r?{}:r,s=e.contentStyle,l=void 0===s?{}:s,c=e.imageStyle,p=void 0===c?{}:c,d=e.glyph,f=void 0===d?"info-sign":d,y=e.iconFit,h=e.title,m=e.tooltip,b=e.tooltipId,v=e.description,g=e.content;return o.a.createElement("div",{className:"empty-state-container",style:u({height:y?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:u({height:y?"100%":void 0},a)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:u({height:y?"100%":void 0},p)},o.a.createElement(i.a,{iconFit:y,tooltip:m,tooltipId:b,glyph:f})):null,h?o.a.createElement("h1",{key:"title"},h):null,v?o.a.createElement("p",{key:"description",className:"empty-state-description"},v):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:l},g))}},"./MapStore2/web/client/components/misc/Filter.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/components/misc/style/filter.css");var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js");function s(e){return(s="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 c(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},p=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:s({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};p.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=p},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-overlays/es/index.js"),i=Object(r.a)(o.a);t.a=i},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./MapStore2/web/client/components/misc/Dialog.jsx"),u=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-addons-css-transition-group/index.js"),c=n.n(l),p=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),d={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},f={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},y=Object(s.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,s=e.loadingText,l=e.onClose,y=void 0===l?function(){}:l,h=e.title,m=void 0===h?"":h,b=e.clickOutEnabled,v=void 0===b||b,g=e.showClose,O=void 0===g||g,j=e.disabledClose,w=void 0!==j&&j,E=e.showFullscreen,P=void 0!==E&&E,S=e.fullscreenType,_=void 0===S?"full":S,k=e.buttons,M=void 0===k?[]:k,D=e.size,C=void 0===D?"":D,T=e.bodyClassName,x=void 0===T?"":T,A=e.children,I=e.draggable,R=void 0!==I&&I,F=e.fullscreenState,N=e.onFullscreen,L=e.fade,z=void 0!==L&&L,V=e.fitContent,B=e.modalClassName,W=void 0===B?"":B,H=e.dialogClassName,U=void 0===H?"":H,K=e.enableFooter,q=void 0===K||K,G=d[C]||"",Y=P&&"expanded"===F&&f.className[_]||"",$=n?o.a.createElement("div",{className:"modal-fixed ".concat(W," ")+(R?"ms-draggable":"")},o.a.createElement(a.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:v?y:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:"modal-dialog modal-content"+G+Y+U+(V?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},m),P&&f.className[_]&&o.a.createElement(i.Glyphicon,{className:"ms-header-btn",onClick:function(){return N("expanded"===F?"collapsed":"expanded")},glyph:f.glyph[F][_]}),O&&y&&o.a.createElement(i.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:y,disabled:w}))),o.a.createElement("div",{role:"body",className:x},A),q&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(p.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?s:null),o.a.createElement(u.a,{buttons:M})))):null;return z?o.a.createElement(c.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},$):$}));t.a=y},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dropzone/dist/index.js"),a=n.n(i),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),s=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),l=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function c(){return(c=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=S?["SIZE"]:[])),e)):null})).catch((function(e){return N.current?(V(!1),I(e)):null}))}}),b?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(b,")"),backgroundSize:null!=M&&M.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},h),B):o.a.createElement("div",{className:"dropzone-content-image"},h,B,m&&o.a.createElement("div",{className:"dropzone-errors"},m))))}));t.a=h},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,n=e.caption,r=e.infoExtra,u=e.className,l=void 0===u?"":u,p=e.description,d=e.fullText,f=e.onClick,y=void 0===f?function(){}:f,h=e.onMouseEnter,m=void 0===h?function(){}:h,b=e.onMouseLeave,v=void 0===b?function(){}:b,g=e.preview,O=e.selected,j=e.size,w=e.style,E=void 0===w?{}:w,P=e.stylePreview,S=void 0===P?{}:P,_=e.styleTools,k=void 0===_?{}:_,M=e.title,D=e.loading,C=e.dragSymbol,T=void 0===C?"+":C,x=e.tools,A=c(e,["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"]);return o.a.createElement("div",{className:"mapstore-side-card".concat(O?" selected":"").concat(j?" ms-"+j:"").concat(l?" ".concat(l):"").concat(d?" full-text":""),onClick:function(e){return y(s({title:M,preview:g,description:p,caption:n,tools:x},A),e)},onMouseEnter:m,onMouseLeave:v,style:E},o.a.createElement("div",{className:"ms-head"},A.isDraggable&&A.connectDragSource&&A.connectDragSource(o.a.createElement("div",{className:"mapstore-side-card-tool text-center"},o.a.createElement("div",{style:{width:10,overflow:"hidden"}},T))),g&&o.a.createElement("div",{className:"mapstore-side-preview",style:S},g),o.a.createElement("div",{className:"mapstore-side-card-container"},o.a.createElement("div",{className:"mapstore-side-card-inner"},o.a.createElement("div",{className:"mapstore-side-card-left-container"},o.a.createElement("div",{className:"mapstore-side-card-info"},M&&o.a.createElement("div",{className:"mapstore-side-card-title"},o.a.createElement("span",null,M)),p&&o.a.createElement("div",{className:"mapstore-side-card-desc"},Object(i.isObject)(p)?p:o.a.createElement("span",null,p)),n&&o.a.createElement("div",{className:"mapstore-side-card-caption"},o.a.createElement("span",null,n))),r),o.a.createElement("div",{className:"mapstore-side-card-right-container"},o.a.createElement("div",{className:"mapstore-side-card-tool text-center",style:k},x),"sm"!==j&&o.a.createElement("div",{className:"mapstore-side-card-loading"},o.a.createElement(a.a,{className:"mapstore-side-card-loader",size:12,hidden:!D})))))),t&&o.a.createElement("div",{className:"ms-body"},t))}},"./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function l(e){return(l="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 c(){return(c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),u.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),u=n("./MapStore2/web/client/components/misc/EmptyView.jsx");t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./node_modules/react-dom/index.js"),s=n.n(u);n("./node_modules/rxjs/Rx.js");function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataProp,n=void 0===t?"items":t,r=e.querySelector,i=e.closest,u=void 0!==i&&i,l=e.loadingProp,c=void 0===l?"loading":l,f=e.skip,m=void 0===f?0:f,v=e.pageSize,O=void 0===v?10:v,w=e.offsetSize,E=void 0===w?200:w;return function(e){var t,i;return i=t=function(t){h(a,t);var i=b(a);function a(){var e;d(this,a);for(var t=arguments.length,o=new Array(t),l=0;l=t.scrollHeight-n}}),i}}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/recompose/es/Recompose.js");function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},p({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},p({},o,e[o]&&d(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(u.compose)(Object(u.getContext)({messages:i.a.object}),Object(u.mapProps)((function(n){var r=n.messages,o=s(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),u=n.n(a),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,l=void 0===i?"top":i,p=t.tooltipTrigger,d=t.keyProp,f=t.idDropDown,y=t.args,h=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(u.a,{trigger:p,id:f,key:d,placement:l,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+d},r?o.a.createElement(s.default,{msgId:r,msgParams:{data:y}}):n)},o.a.createElement(e,h))}}),(function(e){return function(t){return o.a.createElement(e,Object(l.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),u=n.n(a),s=n("./node_modules/react-dom/index.js"),l=n.n(s),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");function p(e){return(p="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,s;return s=r=function(r){h(s,r);var u=b(s);function s(e){var r;return d(this,s),j(g(r=u.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=l.a.findDOMNode(g(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return y(s,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),s}(o.a.Component),j(r,"propTypes",{handleWidth:u.a.bool,handleHeight:u.a.bool,onResize:u.a.func}),j(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),s}}},"./MapStore2/web/client/components/misc/style/filter.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/style/filter.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-addons-css-transition-group/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,p=e.btnDefaultProps,d=void 0===p?{}:p,f=e.transitionProps,y=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,h=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,u=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,l({key:u.key||t},u))||o.a.createElement(s.a,l({key:u.key||t},d,u))):null}))};return o.a.createElement(u.ButtonGroup,i,y?o.a.createElement(a.a,y,h()):h())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),u=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),p=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),d=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,p.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,p=e.glyphClassName,h=void 0===p?"":p,m=e.loaderProps,b=void 0===m?{}:m,v=e.children,g=y(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(d.a,Object(u.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(s.Glyphicon,{glyph:t,className:h}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(l.a,f({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},b)):null,v)}))},"./MapStore2/web/client/components/misc/withConfirm.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),a=n("./MapStore2/web/client/components/misc/Portal.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(s.compose)(Object(s.withProps)((function(e){var t=e.setConfirming;return{onClose:function(){return t(!1)}}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmYes,n=void 0===t?o.a.createElement(u.default,{msgId:"yes"}):t,r=e.confirmNo,s=void 0===r?o.a.createElement(u.default,{msgId:"no"}):r,l=e.confirmTitle,c=void 0===l?o.a.createElement(u.default,{msgId:"confirm"}):l,p=e.confirmContent,d=e.confirmButtonBSStyle,f=void 0===d?"primary":d,y=e.show,h=void 0!==y&&y,m=e.confirmModal,b=void 0===m||m,v=e.draggable,g=void 0!==v&&v,O=e.onClose,j=void 0===O?function(){}:O,w=e.onConfirm,E=void 0===w?function(){}:w;return h?o.a.createElement(a.a,null,o.a.createElement("div",{className:"with-confirm-modal"},o.a.createElement(i.a,{draggable:g,show:h,modal:b,onClose:j,onConfirm:E,title:c,confirmButtonContent:n,closeText:s,confirmButtonBSStyle:f,closeGlyph:"1-close"},p))):null})),p=function(e){return function(t){var n=t.confirming,r=t.confirmYes,i=t.confirmNo,a=t.confirmTitle,u=t.confirmContent,s=t.confirmModal,p=t.draggable,d=t.onConfirm,f=t.setConfirming,y=l(t,["confirming","confirmYes","confirmNo","confirmTitle","confirmContent","confirmModal","draggable","onConfirm","setConfirming"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(c,{show:n,setConfirming:f,confirmYes:r,confirmNo:i,confirmTitle:a,confirmContent:u,confirmModal:s,draggable:p,onConfirm:d}),o.a.createElement(e,y))}};t.a=function(e){return Object(s.compose)(Object(s.withState)("confirming","setConfirming",!1),Object(s.withHandlers)({onClick:function(e){var t=e.setConfirming,n=void 0===t?function(){}:t,r=e.onClick,o=void 0===r?function(){}:r,i=e.confirmPredicate,a=void 0===i||i;return function(){a?n(!0):o.apply(void 0,arguments)}},onConfirm:function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.setConfirming,o=void 0===r?function(){}:r;return function(){o(!1),n.apply(void 0,arguments)}}}),p)(e)}},"./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx"),o=n("./node_modules/recompose/es/Recompose.js"),i=Object(o.compose)(Object(o.withHandlers)({onMapViewChanges:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(e){n("map",e),n("mapStateSource",e.mapStateSource)}}}));t.a=i(r.a)},"./MapStore2/web/client/components/widgets/widget/MapView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/map/enhancers/autoMapType.js"),i=n("./MapStore2/web/client/components/map/enhancers/autoResize.js"),a=n("./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js"),u=n("./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js"),s=n("./MapStore2/web/client/components/map/enhancers/mapType.js"),l=n("./MapStore2/web/client/components/map/enhancers/onMapViewChanges.js"),c=n("./MapStore2/web/client/components/map/BaseMap.jsx");t.a=Object(r.compose)(l.a,Object(i.a)(0),o.a,s.a,a.a,u.a)(c.a)},"./MapStore2/web/client/plugins/MediaEditor.jsx":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"loadMediaEditorDataEpic",(function(){return E})),n.d(r,"editorSaveUpdateMediaEpic",(function(){return P})),n.d(r,"mediaEditorNewMap",(function(){return S})),n.d(r,"mediaEditorEditMap",(function(){return _})),n.d(r,"reloadMediaResources",(function(){return k})),n.d(r,"importInLocalSource",(function(){return M})),n.d(r,"editRemoteMap",(function(){return D})),n.d(r,"removeMediaEpic",(function(){return C})),n.d(r,"updateSelectedItem",(function(){return T}));var o=n("./node_modules/react-redux/es/index.js"),i=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=n("./MapStore2/web/client/actions/mediaEditor.js"),s=n("./node_modules/rxjs/Rx.js"),l=n("./node_modules/uuid/index.js"),c=n.n(l),p=n("./MapStore2/node_modules/lodash/findKey.js"),d=n.n(p),f=n("./MapStore2/web/client/actions/mapEditor.js"),y=n("./MapStore2/web/client/selectors/mediaEditor.js"),h=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),m=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),b=n("./MapStore2/web/client/api/media/index.js");function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},r=n.map,o=(r=void 0===r?{}:r).data;return e.ofType(f.b).switchMap((function(e){var n=e.map,r=Object(y.q)(t.getState()),i=d()(r,(function(e){var t=e.type;return m.a.GEOSTORY===t})),a=j(j({},r[i]),{},{store:t});return Object(b.a)(a).save({mediaType:o.type,source:r[i],data:j(j({},o),n)}).switchMap((function(e){var t=e.id;return s.Observable.of(Object(u.F)(i),Object(u.B)({mediaType:o.type,source:r[i],data:o,id:t}),Object(u.v)(void 0,o.type,i),Object(u.C)(t),Object(f.d)())}))})).takeUntil(e.ofType(f.a))}))},C=function(e,t){return e.ofType(u.k).switchMap((function(e){var n=e.mediaType,r=j(j({},Object(y.o)(t.getState())),{},{store:t});return Object(b.a)(r).remove({mediaType:n}).switchMap((function(){return s.Observable.of(Object(u.v)(void 0,Object(y.c)(t.getState()),m.a.GEOSTORY))}))}))},T=function(e,t){return e.ofType(u.m).switchMap((function(){var e=t.getState(),n=Object(y.n)(e),r=j(j({},Object(y.o)(t.getState())),{},{store:t});return Object(b.a)(r).getData({selectedItem:n}).switchMap((function(e){return null===e?s.Observable.of(Object(u.y)(!1)):s.Observable.of(Object(u.I)(j(j({},n),{},{data:j({},e)}),"replace"),Object(u.y)(!1))})).catch((function(){return s.Observable.of(Object(u.y)(!1))})).startWith(Object(u.y)(!0))}))},x=n("./MapStore2/node_modules/lodash/lodash.js"),A=n("./node_modules/connected-react-router/esm/actions.js"),I=n("./MapStore2/web/client/utils/ImmutableUtils.js");function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae=Object(J.a)((function(e){var t=e.mediaType,n=e.selectedItem;return t===h.e.MAP&&(!n||Object(x.isEmpty)(n))}),{iconFit:!0,glyph:"1-map",imageStyle:{display:"flex",flexDirection:"column",justifyContent:"center"}})((function(e){var t=e.selectedItem,n=t.data?t.data:t,r=n.layers,o=void 0===r?[]:r,i=(n.mapOptions,ie(n,["layers","mapOptions"]));return[V.a.createElement(te.a,{key:i.id||i.mapId,styleMap:{height:"100%"},map:re(re({},i),{},{id:"map"+i.id}),id:"preview"+t.id,layers:o||[m.b],options:Object(h.j)({})})]})),ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mediaType&&V.a.createElement("div",{className:"ms-media-preview",key:"preview",style:{width:"100%",height:"100%",boxShadow:"inset 0px 0px 30px -5px rgba(0,0,0,0.16)"}},e.mediaType===h.e.IMAGE&&V.a.createElement(X,e),e.mediaType===h.e.VIDEO&&V.a.createElement(ee,e),e.mediaType===h.e.MAP&&V.a.createElement(ae,e))||null},se=Object($.a)(["placeholder","clearValueText","noResultsText"])(G.default),le=Object(B.compose)(Object(o.connect)(null,{openMapEditor:f.e,importInLocal:u.u}),Object(B.withHandlers)({setAddingMedia:function(e){var t=e.setAddingMedia,n=e.openMapEditor,r=e.mediaType;return function(e,o){r===h.e.MAP&&n("mediaEditor",o),t(e)}},editRemoteMap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openMapEditor,n=e.selectedItem,r=void 0===n?{}:n;return function(){t("mediaEditorEditRemote",r)}}})),ce=n("./MapStore2/web/client/selectors/geostory.js"),pe=Object(B.compose)(Object(o.connect)((function(e){return{isUsed:Object(ce.l)(e,Object(y.m)(e))}}),{removeMedia:u.z}),Object(B.withHandlers)({onClick:function(e){var t=e.removeMedia,n=e.mediaType;return function(){t(n)}}}),Object(B.withProps)((function(e){var t=e.isUsed;return{confirmTitle:V.a.createElement(H.default,{msgId:"mediaEditor.mediaList.removeResourceTitle"}),confirmContent:V.a.createElement(H.default,{msgId:t?"mediaEditor.mediaList.confirmRemoveUsedResource":"mediaEditor.mediaList.confirmRemoveResource"})}})),W.a,Object(B.renameProp)("onClick","removeMedia")),de=n("./MapStore2/web/client/components/misc/Filter.jsx"),fe=n("./MapStore2/web/client/components/misc/Loader.jsx"),ye=n("./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx"),he=n("./MapStore2/web/client/components/I18N/HTML.jsx"),me=n("./node_modules/prop-types/index.js"),be=n.n(me),ve=n("./MapStore2/node_modules/lodash/debounce.js"),ge=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&V.a.createElement("div",{className:"ms-media-toolbar",key:"toolbar"},V.a.createElement(Z.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:I})),V.a.createElement(Ae,{filterPlaceholder:B,filterText:R,onFilter:function(e){F({page:1,q:e})}}),u.length>0?V.a.createElement(xe,{loading:T,scrollOptions:{pageSize:k.pageSize},items:u.map((function(e){var t=e.id,n=e.data,r=void 0===n?{}:n,o=null==l?void 0:l.find((function(e){return e.id===r.sourceId}));return{preview:r.thumbnail||y===h.e.IMAGE&&r.src?V.a.createElement("div",{style:{backgroundImage:'url("'.concat(r.thumbnail||r.src,'")'),backgroundSize:"cover",backgroundPosition:"center",height:"100%",overflow:"hidden"}}):V.a.createElement(Me.a,{glyph:L,padding:20}),title:r.title||r.name,onClick:function(){return v(t)},selected:c&&c.id&&t===c.id,description:r.description,caption:o&&V.a.createElement(H.default,{msgId:o.name})}})),hasMore:function(){return M>u.length},onLoadMore:function(e){F({page:e+1})}}):!W&&V.a.createElement("div",{className:"msEmptyListMessage"},V.a.createElement(he.a,{msgId:z})),V.a.createElement("div",{className:"ms-media-list-pagination"},V.a.createElement("div",null,u.length&&M?V.a.createElement(he.a,{msgId:"mediaEditor.mediaList.resultsCount",msgParams:{count:u.length,total:M}}):null),T&&V.a.createElement(fe.a,{size:20})),(C||W)&&V.a.createElement("div",{className:"ms-media-list-loading"},V.a.createElement(fe.a,{size:70})))})),Fe=n("./node_modules/react-bootstrap/es/index.js"),Ne=n("./MapStore2/web/client/utils/LocaleUtils.js");function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t0&&V.a.createElement(Fe.Alert,{bsStyle:"danger",className:"text-center"},V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.error"})),f.map((function(e){return V.a.createElement("div",null," ",y[e])}))),Xe.map((function(e){return V.a.createElement(Fe.FormGroup,{key:e.id,validationState:e.validation&&e.validation(n)},V.a.createElement(Fe.ControlLabel,null,e.label),V.a.createElement(Fe.FormControl,{type:e.type,placeholder:Object(Ne.f)(l,e.placeholder),value:n[e.id]||"",onChange:function(t){o(Ge(Ge({},n),{},Ye({},e.id,t.target.value)))}}))}))))})),et=n("./MapStore2/web/client/utils/ThumbnailUtils.js");function tt(){return(tt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&V.a.createElement(Fe.Alert,{bsStyle:"danger",className:"text-center"},-1===a.indexOf("CREATE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.error"})),-1!==a.indexOf("FORMAT")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.errorFormat"})),-1!==a.indexOf("SIZE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.errorSize"})),-1!==a.indexOf("CREATE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"mediaEditor.mediaPicker.thumbnailCreateError"}))))},lt=function(e,t){var n=e.properties,r=e.setProperties,o=void 0===r?function(){}:r,i=e.onSave,a=void 0===i?function(){}:i,u=e.onClick,s=void 0===u?function(){}:u,l=(t||{}).messages,c=void 0===l?{}:l,p=n.src,d=n.thumbnail;return V.a.createElement(Y.a,{className:"ms-video-form",header:V.a.createElement("div",{className:"text-center",key:"toolbar",style:{borderBottom:"1px solid #ddd",padding:8}},V.a.createElement(Z.a,{btnGroupProps:{style:{marginBottom:8}},btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:[{glyph:"arrow-left",tooltipId:"mediaEditor.mediaPicker.back",onClick:s},{glyph:"floppy-disk",tooltipId:"mediaEditor.mediaPicker.save",disabled:!n.src||!n.title,onClick:function(){return a(n)}}]}))},V.a.createElement(Fe.Form,{style:{padding:8}},V.a.createElement(st,{src:p,thumbnail:d,onUpdate:function(e){return o(rt(rt({},n),{},{thumbnail:e}))}}),ut.map((function(e){return V.a.createElement(Fe.FormGroup,{key:e.id,validationState:e.validation&&e.validation(n)},V.a.createElement(Fe.ControlLabel,null,e.label),V.a.createElement(Fe.FormControl,{type:e.type,placeholder:Object(Ne.f)(c,e.placeholder),value:n[e.id]||"",onChange:function(t){o(rt(rt({},n),{},ot({},e.id,t.target.value)))}}))}))))};lt.contextTypes={messages:be.a.object};var ct,pt=Object(W.a)(lt);function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft=(dt(ct={},h.e.IMAGE,We),dt(ct,h.e.MAP,Qe),dt(ct,h.e.VIDEO,(function(e){var t=it(Object(z.useState)(!1),2),n=t[0],r=t[1],o=it(Object(z.useState)(null!=e&&e.editing?rt({},null==e?void 0:e.selectedItem.data):{}),2),i=o[0],a=o[1];return V.a.createElement(pt,tt({},e,{confirmTitle:V.a.createElement(H.default,{msgId:"mediaEditor.mediaform.confirmExitTitle"}),confirmContent:V.a.createElement(H.default,{msgId:"mediaEditor.mediaform.confirmExitContent"}),confirmPredicate:n,properties:i,setProperties:function(e){a(e),r(!0)},onClick:function(){return(null==e?void 0:e.editing)&&(null==e?void 0:e.setEditingMedia(!1))||(null==e?void 0:e.setAddingMedia(!1))}}))})),ct),yt=Object(B.compose)(Object(B.withHandlers)({onSave:function(e){var t=e.mediaType,n=e.source,r=e.saveMedia,o=void 0===r?function(){}:r;return function(e){return o({type:t,source:n,data:e})}}}),Object(B.branch)((function(e){return e.addingMedia}),Object(B.renderComponent)((function(e){var t=ft[e.mediaType||h.e.IMAGE];return V.a.createElement(t,e)}))))(Re);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=Object(o.connect)(Object(i.a)([y.d,y.n,y.p,y.o,y.e,y.f,y.g,y.i,y.h,y.l,y.b],(function(e,t,n,r,o,i,a,u,s,l,c){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:L,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case u.a:return Object(I.d)(Object(I.e)("saveState.addingMedia",n.adding),Object(I.e)("selected",""))(t);case u.c:return Object(I.d)(Object(I.e)("saveState.addingMedia",n.editing),Object(I.e)("saveState.editing",n.editing))(t);case u.e:return Object(I.d)(Object(I.e)("open",!1),Object(I.e)("owner",void 0),Object(I.e)("saveState.addingMedia",!1),Object(I.e)("saveState.editing",!1),Object(I.e)("settings",F(F({},t.stashedSettings||L.settings),(null===(e=t.settings)||void 0===e?void 0:e.mediaType)&&{mediaType:t.settings.mediaType})),Object(I.e)("stashedSettings",void 0),Object(I.f)("selected"))(t);case u.j:var r=n.resultData,o=n.params,i=n.mediaType,a=n.sourceId;return Object(I.d)(Object(I.e)('data["'.concat(i,'"]["').concat(a,'"]'),{params:o,resultData:r}),Object(I.e)("loadingList",!1))(t);case u.q:var s=n.item,l=n.mode,c=Object(y.p)({mediaEditor:t}),p=Object(y.c)({mediaEditor:t}),d=Object(y.k)({mediaEditor:t}).resources,f=Object(x.findIndex)(d,{id:s.id}),h=Object(x.find)(d,{id:s.id}),m="merge"===l?Object(x.merge)({},Object(x.merge)({},h),Object(x.merge)({},s)):s;return Object(I.e)('data["'.concat(p,'"]["').concat(c,'"].resultData.resources[').concat(f,"]"),m,t);case u.m:return n.id===t.selected?Object(I.e)("selected","",t):Object(I.e)("selected",n.id,t);case u.o:var b=Object(x.get)(t,"settings.mediaTypes[".concat(n.mediaType,"].defaultSource"),"geostory");return Object(I.d)(Object(I.e)("settings.sourceId",b),Object(I.e)("settings.mediaType",n.mediaType))(t);case u.n:return Object(I.e)("settings.sourceId",n.id,t);case u.p:var v=n.settings&&F(F({},n.settings),t.settings.mediaType&&{mediaType:t.settings.mediaType});return Object(I.d)(Object(I.e)("open",!0),Object(I.e)("owner",n.owner),Object(I.e)("settings",v||t.settings),Object(I.e)("stashedSettings",t.settings))(t);case A.b:return F(F({},L),{},{settings:F(F({},t.settings),{},{mediaType:L.settings.mediaType})});case u.h:return Object(I.e)("loadingSelected",n.loading,t);case u.g:return Object(I.e)("loadingList",!0,t);default:return t}}},epics:r})},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},i=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/utils/MediaEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.width,a=void 0===i?64:i,u=o.height,s=void 0===u?64:u,l=o.contain,c=o.type,p=void 0===c?"image/jpeg":c,d=o.quality,f=void 0===d?.5:d,y=new Image;y.crossOrigin="anonymous",y.onload=function(){var e=y.naturalWidth/y.naturalHeight,t=a,r=s,o=a/s,i=document.createElement("canvas");i.setAttribute("width",a),i.setAttribute("height",s),i.style.width=a+"px",i.style.height=s+"px";var u=i.getContext("2d"),c=!l&&eo?[t,t/e]:[r*e,r];u.save(),u.translate(t/2,r/2),u.drawImage(y,-c[0]/2,-c[1]/2,c[0],c[1]),u.restore();var d=i.toDataURL(p,f);n(d)},y.onerror=function(e){r(e)},y.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.type,a=void 0===i?"image/jpeg":i,u=o.quality,s=void 0===u?.5:u,l=document.createElement("video");l.crossOrigin="anonymous";var c=document.createElement("source"),p=document.createElement("canvas");l.addEventListener("loadedmetadata",(function(){var e=l.videoWidth,t=l.videoHeight;p.setAttribute("width",e),p.setAttribute("height",t),p.style.width=e+"px",p.style.height=t+"px"}),!0),l.addEventListener("loadeddata",(function(){l.currentTime=1}),!0),l.addEventListener("seeked",(function(){p.getContext("2d").drawImage(l,0,0);try{var e=p.toDataURL(a,s);n(e)}catch(e){r(e)}}),!0),l.addEventListener("error",(function(e){r(e)}),!0),l.appendChild(c),l.setAttribute("src",e)}))},i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,a=null===(e=t.match(i))||void 0===e?void 0:e[1];return a?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(a,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},"./node_modules/element-resize-detector/src/collection-utils.js":function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n div::-webkit-scrollbar { "+s(["display: none"])+" }\n\n",i+="."+o+" { "+s(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function s(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return u(window.document),{makeDetectable:function(e,u,c){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(u),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?r.default.createElement(e,s({},this.props,{ref:this.ref,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}])&&c(n.prototype,o),a&&c(n,a),b}(r.Component);t.default=b,m(b,"displayName","Player"),m(b,"propTypes",o.propTypes),m(b,"defaultProps",o.defaultProps)},"./node_modules/react-player/lib/Preview.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=r?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return(i="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 a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),F(x(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),F(x(e),"handleReady",(function(){e.props.onReady(x(e))})),F(x(e),"wrapperRef",(function(t){e.wrapper=t})),F(x(e),"activePlayerRef",(function(t){e.player=t})),e}return n=y,(p=[{key:"componentDidMount",value:function(){this.props.progressFrequency&&console.warn("ReactPlayer: %cprogressFrequency%c is deprecated, please use %cprogressInterval%c instead","font-weight: bold","","font-weight: bold","")}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,i.isEqual)(this.props,e)||!(0,i.isEqual)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;this.config=(0,i.getConfig)(this.props,o.defaultProps),!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"getActivePlayer",value:function(e){for(var t=0,n=[].concat(k(L),k(a.default));te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n))return S.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,i=e.controls,a=e.muted,u=e.config,s=e.width,c=e.height,p=this.shouldUseAudio(this.props)?"audio":"video",d={width:"auto"===s?s:"100%",height:"auto"===c?c:"100%"};return o.default.createElement(p,l({ref:this.ref,src:this.getSource(t),style:d,preload:"auto",autoPlay:n||void 0,controls:i,muted:a,loop:r},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}])&&p(n.prototype,r),a&&p(n,a),s}(o.Component);t.FilePlayer=M,b(M,"displayName","FilePlayer"),b(M,"canPlay",_),b(M,"canEnablePIP",(function(e){return _(e)&&(!!document.pictureInPictureEnabled||k())&&!j.test(e)}));var D=(0,a.default)(M);t.default=D},"./node_modules/react-player/lib/players/Mixcloud.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Mixcloud=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js")),i=n("./node_modules/react-player/lib/utils.js"),a=(r=n("./node_modules/react-player/lib/singlePlayer.js"))&&r.__esModule?r:{default:r};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(p);try{for(u.s();!(i=u.n()).done;){var s=i.value;!s.Player.canPlay(e)&&n[s.configKey].preload&&a.push(r.default.createElement(o.default,{key:s.Player.displayName,activePlayer:s.Player,url:s.url,controls:t,playing:!0,muted:!0,display:"none"}))}}catch(e){u.e(e)}finally{u.f()}return a};var r=l(n("./node_modules/react/index.js")),o=l(n("./node_modules/react-player/lib/Player.js")),i=n("./node_modules/react-player/lib/players/YouTube.js"),a=n("./node_modules/react-player/lib/players/SoundCloud.js"),u=n("./node_modules/react-player/lib/players/Vimeo.js"),s=n("./node_modules/react-player/lib/players/DailyMotion.js");function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),O(m(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),O(m(e),"ref",(function(t){e.player=t})),e}return function(e,t,n){t&&y(e.prototype,t);n&&y(e,n)}(s,[{key:"shouldComponentUpdate",value:function(e){return!(0,a.isEqual)(this.props,e)}},{key:"componentDidUpdate",value:function(){this.config=(0,a.getConfig)(this.props,i.defaultProps)}},{key:"render",value:function(){var t=this.config.file,n=t.forceVideo,r=t.forceAudio,s=t.forceHLS,l=t.forceDASH,p=n||r||s||l;if(!e.canPlay(this.props.url)&&!p)return null;var f=this.props,y=f.style,h=f.width,m=f.height,b=f.wrapper,v=(0,a.omit)(this.props,j,i.DEPRECATED_CONFIG_PROPS);return o.default.createElement(b,c({style:d({},y,{width:h,height:m})},v),o.default.createElement(u.default,c({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),s}(o.Component),O(t,"displayName","".concat(e.displayName,"Player")),O(t,"propTypes",i.propTypes),O(t,"defaultProps",i.defaultProps),O(t,"canPlay",e.canPlay),n};var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js")),i=n("./node_modules/react-player/lib/props.js"),a=n("./node_modules/react-player/lib/utils.js"),u=(r=n("./node_modules/react-player/lib/Player.js"))&&r.__esModule?r:{default:r};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(l="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 c(){return(c=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise((function(r,o){if(v[e])v[e].push({resolve:r,reject:o});else{v[e]=[{resolve:r,reject:o}];var a=function(t){v[e].forEach((function(e){return e.resolve(t)}))};if(n){var u=window[n];window[n]=function(){u&&u(),a(window[t])}}i(e,(function(r){r?(v[e].forEach((function(e){return e.reject(r)})),v[e]=null):n||a(window[t])}))}}))},t.getConfig=function(e,t,n){var r,o=(0,i.default)(t.config,e.config),u=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=p(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(a.DEPRECATED_CONFIG_PROPS);try{for(u.s();!(r=u.n()).done;){var s=r.value;if(e[s]){var c=s.replace(/Config$/,"");if(o=(0,i.default)(o,l({},c,e[s])),n){var d="ReactPlayer: %c".concat(s," %cis deprecated, please use the config prop instead – ").concat("https://github.com/CookPete/react-player#config-prop");console.warn(d,"font-weight: bold","")}}}}catch(e){u.e(e)}finally{u.f()}return o},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t||n<0||f&&e-c>=i}function v(){var e=p();if(b(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?w(n,i-(e-c)):n}(e))}function g(e){return u=void 0,y&&r?h(e):(r=o=void 0,a)}function E(){var e=p(),n=b(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return m(s);if(f)return clearTimeout(u),u=setTimeout(v,t),h(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=O(t)||0,l(n)&&(d=!!n.leading,i=(f="maxWait"in n)?j(O(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},E.flush=function(){return void 0===u?a:g(p())},E};var P=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return l(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),E(e,t,{leading:r,maxWait:t,trailing:o})},S={debounce:E,throttle:P},_=function(e){return"function"==typeof e},k=function(){return"undefined"==typeof window};function M(e){return(M="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 D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{handleWidth:!0,handleHeight:!0};return function(n){function r(){return u(this,r),c(this,p(r).apply(this,arguments))}return d(r,n),l(r,[{key:"render",value:function(){return o.a.createElement(i.a,t,o.a.createElement(e,this.props))}}]),r}(r.Component)}},"./node_modules/react-resize-detector/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),j="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new O(t,n,this);j.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=j.get(this))[e].apply(t,arguments)}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;t.a=E}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/react-select/dist/react-select.es.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Async",(function(){return V})),n.d(t,"AsyncCreatable",(function(){return Y})),n.d(t,"Creatable",(function(){return B})),n.d(t,"Value",(function(){return D})),n.d(t,"Option",(function(){return M})),n.d(t,"defaultMenuRenderer",(function(){return v})),n.d(t,"defaultArrowRenderer",(function(){return d})),n.d(t,"defaultClearRenderer",(function(){return f})),n.d(t,"defaultFilterOptions",(function(){return b}));var r=n("./node_modules/react-select/node_modules/react-input-autosize/lib/AutosizeInput.js"),o=n.n(r),i=n("./node_modules/classnames/index.js"),a=n.n(i),u=n("./node_modules/prop-types/index.js"),s=n.n(u),l=n("./node_modules/react/index.js"),c=n.n(l),p=n("./node_modules/react-dom/index.js"),d=function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})};d.propTypes={onMouseDown:s.a.func};var f=function(){return c.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},y=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],h=function(e){for(var t=0;t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[r.valueKey],i=e[r.labelKey],a=m(o),u=m(i);if(!a&&!u)return!1;var s=a?String(o):null,l=u?String(i):null;return r.ignoreAccents&&(s&&"label"!==r.matchProp&&(s=h(s)),l&&"value"!==r.matchProp&&(l=h(l))),r.ignoreCase&&(s&&"label"!==r.matchProp&&(s=s.toLowerCase()),l&&"value"!==r.matchProp&&(l=l.toLowerCase())),"start"===r.matchPos?s&&"label"!==r.matchProp&&s.substr(0,t.length)===t||l&&"value"!==r.matchProp&&l.substr(0,t.length)===t:s&&"label"!==r.matchProp&&s.indexOf(t)>=0||l&&"value"!==r.matchProp&&l.indexOf(t)>=0}))},v=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=e.onFocus,u=e.onOptionRef,s=e.onSelect,l=e.optionClassName,p=e.optionComponent,d=e.optionRenderer,f=e.options,y=e.removeValue,h=e.selectValue,m=e.valueArray,b=e.valueKey,v=p;return f.map((function(e,p){var f=m&&m.some((function(t){return t[b]===e[b]})),g=e===t,O=a()(l,{"Select-option":!0,"is-selected":f,"is-focused":g,"is-disabled":e.disabled});return c.a.createElement(v,{className:O,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:g,isSelected:f,key:"option-"+p+"-"+e[b],onFocus:i,onSelect:s,option:e,optionIndex:p,ref:function(e){u(e,g)},removeValue:y,selectValue:h},d(e,p,r))}))};v.propTypes={focusOption:s.a.func,focusedOption:s.a.object,inputValue:s.a.string,instancePrefix:s.a.string,onFocus:s.a.func,onOptionRef:s.a.func,onSelect:s.a.func,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,removeValue:s.a.func,selectValue:s.a.func,valueArray:s.a.array,valueKey:s.a.string};var g=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},O="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},j=(function(){function e(e){this.value=e}function t(t){var n,r;function o(n,r){try{var a=t[n](r),u=a.value;u instanceof e?Promise.resolve(u.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):i(a.done?"return":"normal",a.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var u={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=u:(n=r=u,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),w=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},M=function(e){function t(e){j(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return S(t,e),w(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:o,onMouseDown:g,onClick:g},this.props.children):c.a.createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);M.propTypes={children:s.a.node,className:s.a.string,instancePrefix:s.a.string.isRequired,isDisabled:s.a.bool,isFocused:s.a.bool,isSelected:s.a.bool,onFocus:s.a.func,onSelect:s.a.func,onUnfocus:s.a.func,option:s.a.object.isRequired,optionIndex:s.a.number};var D=function(e){function t(e){j(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return S(t,e),w(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);D.propTypes={children:s.a.node,disabled:s.a.bool,id:s.a.string,onClick:s.a.func,onRemove:s.a.func,value:s.a.object.isRequired}; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/react-select +*/ +var C=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},T=s.a.oneOfType([s.a.string,s.a.node]),x=s.a.oneOfType([s.a.string,s.a.number]),A=1,I=function(e,t){var n=void 0===e?"undefined":O(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var i=0;ia||id.bottom?l.scrollTop=s.offsetTop+s.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":O(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return I(e,n)})).filter((function(e){return e}))}var r=I(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=R(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(n){return n[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter((function(e){return!e.disabled})),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,o=0;o0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,o=e.isPseudoFocused,i=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!o&&!i}(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var i,a,u,s,l,p,d=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(t,i){return c.a.createElement(o,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+i,instancePrefix:n._instancePrefix,key:"value-"+i+"-"+t[n.props.valueKey],onClick:d,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,i),c.a.createElement("span",{className:"Select-aria-only"}," "))})):(i=this.state,a=this.props,u=i.inputValue,s=i.isPseudoFocused,l=i.isFocused,p=a.onSelectResetsInput,u&&(p||!l&&s||l&&!s)?void 0:(t&&(d=null),c.a.createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:d,placeholder:this.props.placeholder,value:e[0]},r(e[0]))))}},{key:"renderInput",value:function(e,t){var n,r=this,i=a()("Select-input",this.props.inputProps.className),u=this.state.isOpen,s=a()((E(n={},this._instancePrefix+"-list",u),E(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=this.state.inputValue;!l||this.props.onSelectResetsInput||this.state.isFocused||(l="");var p=P({},this.props.inputProps,{"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+u,"aria-haspopup":""+u,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":s,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:l});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=_(this.props.inputProps,[]),f=a()(E({},this._instancePrefix+"-list",u));return c.a.createElement("div",P({},d,{"aria-expanded":u,"aria-owns":f,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(o.a,P({id:this.props.id},p,{className:i,minWidth:"5"})):c.a.createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",P({id:this.props.id},p)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var r="function"==typeof this.props.filterOptions?this.props.filterOptions:b;return r(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return C(e[t.props.valueKey])})).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map((function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:C(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var o=-1;if(t.some((function(e,t){var i=e[n]===r[n];return i&&(o=t),i})),-1!==o)return o}for(var i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(i.Component);y.propTypes={className:u.default.string,defaultValue:u.default.any,extraWidth:u.default.oneOfType([u.default.number,u.default.string]),id:u.default.string,injectStyles:u.default.bool,inputClassName:u.default.string,inputRef:u.default.func,inputStyle:u.default.object,minWidth:u.default.oneOfType([u.default.number,u.default.string]),onAutosize:u.default.func,onChange:u.default.func,placeholder:u.default.string,placeholderIsMinWidth:u.default.bool,style:u.default.object,value:u.default.any},y.defaultProps={minWidth:1,injectStyles:!0},t.default=y},"./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},s.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},s.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},s.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),a.some((function(e){return!!~t.indexOf(e)}))&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null;var l=function(e,t){for(var n=0,r=Object.keys(t);n0;)t[n]=arguments[n+1];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=c(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n0};var j="undefined"!=typeof WeakMap?new WeakMap:new n,w=function(e){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=s.getInstance(),n=new O(e,t,this);j.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){return(t=j.get(this))[e].apply(t,arguments);var t}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;t.a=E}).call(this,n("./node_modules/webpack/buildin/global.js"))}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/plugins/media-editor-plugin.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/plugins/media-editor-plugin.849ba3b532d52b2a2861.chunk.js deleted file mode 100644 index 55bbba9665..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/plugins/media-editor-plugin.849ba3b532d52b2a2861.chunk.js +++ /dev/null @@ -1,7 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["plugins/media-editor-plugin","plugins/geostory-navigation-plugin~plugins/share-plugin"],{"./MapStore2/node_modules/lodash/_baseFindKey.js":function(e,t){e.exports=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}},"./MapStore2/node_modules/lodash/debounce.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/isObject.js"),o=n("./MapStore2/node_modules/lodash/now.js"),i=n("./MapStore2/node_modules/lodash/toNumber.js"),a=Math.max,u=Math.min;e.exports=function(e,t,n){var s,l,c,p,d,f,y=0,h=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,r=l;return s=l=void 0,y=t,p=e.apply(r,n)}function g(e){return y=e,d=setTimeout(j,t),h?v(e):p}function O(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-y>=c}function j(){var e=o();if(O(e))return w(e);d=setTimeout(j,function(e){var n=t-(e-f);return m?u(n,c-(e-y)):n}(e))}function w(e){return d=void 0,b&&s?v(e):(s=l=void 0,p)}function E(){var e=o(),n=O(e);if(s=arguments,l=this,f=e,n){if(void 0===d)return g(f);if(m)return clearTimeout(d),d=setTimeout(j,t),v(f)}return void 0===d&&(d=setTimeout(j,t)),p}return t=i(t)||0,r(n)&&(h=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,b="trailing"in n?!!n.trailing:b),E.cancel=function(){void 0!==d&&clearTimeout(d),y=0,s=f=l=d=void 0},E.flush=function(){return void 0===d?p:w(o())},E}},"./MapStore2/node_modules/lodash/findKey.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_baseFindKey.js"),o=n("./MapStore2/node_modules/lodash/_baseForOwn.js"),i=n("./MapStore2/node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){return r(e,i(t,3),o)}},"./MapStore2/node_modules/lodash/now.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"./MapStore2/web/client/actions/mapEditor.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return u}));var r="MAP_EDITOR:SHOW",o="MAP_EDITOR:HIDE",i="MAP_EDITOR:SAVE",a=function(e,t){return{type:r,owner:e,map:t}},u=function(e){return{type:o,owner:e}}},"./MapStore2/web/client/actions/mediaEditor.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"o",(function(){return f})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return h})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"h",(function(){return O})),n.d(t,"g",(function(){return j})),n.d(t,"r",(function(){return w})),n.d(t,"t",(function(){return E})),n.d(t,"v",(function(){return P})),n.d(t,"w",(function(){return S})),n.d(t,"A",(function(){return _})),n.d(t,"B",(function(){return k})),n.d(t,"C",(function(){return M})),n.d(t,"I",(function(){return D})),n.d(t,"D",(function(){return C})),n.d(t,"F",(function(){return T})),n.d(t,"G",(function(){return x})),n.d(t,"E",(function(){return A})),n.d(t,"H",(function(){return I})),n.d(t,"s",(function(){return R})),n.d(t,"u",(function(){return F})),n.d(t,"z",(function(){return N})),n.d(t,"y",(function(){return L})),n.d(t,"x",(function(){return z}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),i="MEDIA_EDITOR:ADDING_MEDIA",a="MEDIA_EDITOR:CHOOSE_MEDIA",u="MEDIA_EDITOR:EDITING_MEDIA",s="GEOSTORY:EDIT_MEDIA",l="MEDIA_EDITOR:LOAD_MEDIA",c="MEDIA_EDITOR:LOAD_MEDIA_SUCCESS",p="MEDIA_EDITOR:HIDE",d="MEDIA_EDITOR:SAVE_MEDIA",f="MEDIA_EDITOR:SET_MEDIA_TYPE",y="MEDIA_EDITOR:SET_MEDIA_SERVICE",h="MEDIA_EDITOR:SELECT_ITEM",m="MEDIA_EDITOR:SHOW",b="MEDIA_EDITOR:UPDATE_ITEM",v="MEDIA_EDITOR:IMPORT_IN_LOCAL",g="MEDIA_EDITOR:REMOVE_MEDIA",O="MEDIA_EDITOR:LOADING_SELECTED_MEDIA",j="MEDIA_EDITOR:LOADING_MEDIA_LIST",w=function(e){return{type:a,resource:e}},E=function(){return{type:p}},P=function(e,t,n){return{type:l,params:e,mediaType:t,sourceId:n}},S=function(e){var t=e.mediaType,n=e.sourceId,r=e.params,o=e.resultData;return{type:c,mediaType:t,sourceId:n,params:r,resultData:o}},_=function(e){var t=e.type,n=e.source,r=e.data;return{type:d,mediaType:t,source:n,data:r}},k=function(e){return{type:"MEDIA_EDITOR:SAVE_MEDIA_SUCCESS",mediaType:e.mediaType,source:e.source,data:e.data,id:e.id}},M=function(e){return{type:h,id:e}},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"merge";return{type:b,item:e,mode:t}},C=function(e){return{type:i,adding:e}},T=function(e){return{type:y,id:Object(r.isObject)(e)?e.value:e}},x=function(e){return{type:f,mediaType:e}},A=function(e){return{type:u,editing:e}},I=function(e,t){return{type:m,owner:e,settings:t}},R=function(e){var t=e.path,n=e.owner;return{type:s,path:t,owner:void 0===n?"geostory":n}},F=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?o.a.GEOSTORY:n,i=e.owner;return{type:v,resource:t,sourceType:r,owner:void 0===i?"geostory":i}},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory";return{type:g,mediaType:e,owner:t}},L=function(e){return{type:O,loading:e}},z=function(){return{type:j}}},"./MapStore2/web/client/components/I18N/HTML.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i);function u(e){return(u="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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:F[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!L&&o.a.createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:F[0],height:F[1]}}))}));t.a=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,u=e.autoplay,s=e.inView,l=e.description,p=e.showCaption,d=e.caption,f=void 0===d?l:d,h=e.thumbnail,b=e.credits,v=e.controls,g=void 0===v||v,O=e.fit,j=e.loop,w=e.muted,E=e.onPlay,P=void 0===E?function(){}:E,S=e.mode,_=e.containerInView,k=(void 0===_||_)&&s,M=y(Object(r.useState)(!1),2),D=M[0],C=M[1],T=function(e){C(e),P(e)};return Object(r.useEffect)((function(){S===c.f.EDIT&&T(!1)}),[S]),Object(r.useEffect)((function(){S===c.f.VIEW&&k&&(u||"cover"===O)&&T(!0)}),[k,u,O,S]),Object(r.useEffect)((function(){S===c.f.VIEW&&!k&&D&&T(!1)}),[k,D,S]),o.a.createElement("div",{id:t,key:"".concat(t,"-").concat(O,"-").concat(S),className:"ms-media ms-media-video"},o.a.createElement(m,{src:n,play:D&&S===c.f.VIEW,resolution:a,thumbnail:h,controls:g&&S===c.f.VIEW,onPlay:T,fit:O,loop:j,muted:w}),b&&o.a.createElement("div",{className:"ms-media-credits"},o.a.createElement("small",null,b)),p&&f&&o.a.createElement("div",{className:"ms-media-caption"},o.a.createElement("small",null,f)))}},"./MapStore2/web/client/components/map/BaseMap.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return(s="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(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return Object(r.compose)(Object(r.withStateHandlers)((function(){return{resize:0}}),{onResize:function(e){var t=e.resize,n=void 0===t?0:t;return function(){return{resize:n+1}}}}),Object(o.a)({debounceTime:e}),Object(r.withProps)((function(e){var t=e.options,n=e.resize;return{options:a(a({},t),{},{resize:n})}})))}},"./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/utils/ConfigUtils.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=Object(r.withProps)((function(e){var t=e.projectionDefs;return{projectionDefs:Object(i.isArray)(t)&&t.length?t:o.default.getConfigProp("projectionDefs")||[]}}));t.a=a},"./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),i=n("./MapStore2/web/client/components/I18N/Message.jsx"),a=n("./node_modules/react/index.js"),u=n.n(a),s=n("./MapStore2/web/client/utils/ConfigUtils.js"),l=Object(r.withProps)((function(e){var t=e.map;return{projection:e.projection||(t.data&&t.data.map?t.data.map.projection:t&&t.projection)}})),c=Object(r.compose)(l,Object(o.a)((function(e){var t=e.projectionDefs,n=void 0===t?s.default.getConfigProp("projectionDefs")||[]:t,r=e.projection;return r&&0===n.concat([{code:"EPSG:4326"},{code:"EPSG:3857"},{code:"EPSG:900913"}]).filter((function(e){return e.code===r})).length}),(function(e){var t=e.projection;return{glyph:"1-map",style:{width:"100%",height:"100%",display:"flex"},title:u.a.createElement(i.default,{msgId:"map.errors.loading.title"}),mainViewStyle:{margin:"auto"},imageStyle:{height:120,width:120,margin:"auto"},description:u.a.createElement(i.default,{msgId:"map.errors.loading.projectionError",msgParams:{projection:t}})}})))},"./MapStore2/web/client/components/map/enhancers/mapType.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i);function u(e){return(u="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 s(){return(s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapViewChanges,n=void 0===t?function(){}:t,r=e.eventHandlers,o=void 0===r?{}:r;return{eventHandlers:i(i({},o),{},{onMapViewChanges:n})}})))},"./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$":function(e,t,n){var r={"./cesium.js":["./MapStore2/web/client/components/map/plugins/cesium.js","vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50","vendors~map-library-cesium-js",8,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",12,10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",2,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",3,5,"map-library-openlayers-js"],"./sink.js":["./MapStore2/web/client/components/map/plugins/sink.js","map-library-sink-js"]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/components/map/plugins lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./MapStore2/web/client/components/misc/Button.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react-bootstrap/es/index.js"),o=n("./node_modules/react/index.js"),i=n.n(o),a=n("./node_modules/classnames/index.js"),u=n.n(a);function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c;t.a=(c=r.Button,i.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,a=void 0===o?function(){}:o,p=l(e,["disabled","className","onClick"]);return i.a.createElement(c,s({ref:t,className:n?u()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},p),p.children)})))},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./node_modules/react/index.js"),s=n.n(u),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/Button.jsx"),p=n("./MapStore2/web/client/components/I18N/Message.jsx"),d=n("./MapStore2/web/client/components/misc/Dialog.jsx");function f(e){return(f="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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n0})),P(w(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=s.a.createElement("div",{id:this.props.id,style:m({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},s.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),s.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?s.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):s.a.createElement("span",null)),n=this.props.draggable?s.a.createElement(c.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?s.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&v(t.prototype,n),r&&v(t,r),a}(s.a.Component);P(S,"propTypes",{id:a.a.string.isRequired,style:a.a.object,backgroundStyle:a.a.object,className:a.a.string,maskLoading:a.a.bool,containerClassName:a.a.string,headerClassName:a.a.string,bodyClassName:a.a.string,footerClassName:a.a.string,onClickOut:a.a.func,modal:a.a.bool,start:a.a.object,draggable:a.a.bool,bounds:a.a.oneOfType([a.a.string,a.a.object])}),P(S,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=S},"./MapStore2/web/client/components/misc/Filter.jsx":function(e,t,n){"use strict";n("./MapStore2/web/client/components/misc/style/filter.css");var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js");function s(e){return(s="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 c(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},p=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,i=e.hidden;return a.a.createElement("div",{className:o,style:s({width:t,height:t,overflow:"hidden"},r)},!i&&a.a.createElement("div",{className:"mapstore-".concat(c(t),"-size-loader")}))};p.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=p},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/Portal.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-overlays/es/index.js"),i=Object(r.a)(o.a);t.a=i},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-bootstrap/es/index.js"),a=n("./MapStore2/web/client/components/misc/Dialog.jsx"),u=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),s=n("./node_modules/recompose/es/Recompose.js"),l=n("./node_modules/react-addons-css-transition-group/index.js"),c=n.n(l),p=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),d={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},f={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},y=Object(s.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,s=e.loadingText,l=e.onClose,y=void 0===l?function(){}:l,h=e.title,m=void 0===h?"":h,b=e.clickOutEnabled,v=void 0===b||b,g=e.showClose,O=void 0===g||g,j=e.disabledClose,w=void 0!==j&&j,E=e.showFullscreen,P=void 0!==E&&E,S=e.fullscreenType,_=void 0===S?"full":S,k=e.buttons,M=void 0===k?[]:k,D=e.size,C=void 0===D?"":D,T=e.bodyClassName,x=void 0===T?"":T,A=e.children,I=e.draggable,R=void 0!==I&&I,F=e.fullscreenState,N=e.onFullscreen,L=e.fade,z=void 0!==L&&L,V=e.fitContent,B=e.modalClassName,W=void 0===B?"":B,H=e.dialogClassName,U=void 0===H?"":H,K=e.enableFooter,q=void 0===K||K,G=d[C]||"",Y=P&&"expanded"===F&&f.className[_]||"",$=n?o.a.createElement("div",{className:"modal-fixed ".concat(W," ")+(R?"ms-draggable":"")},o.a.createElement(a.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:v?y:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:"modal-dialog modal-content"+G+Y+U+(V?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},m),P&&f.className[_]&&o.a.createElement(i.Glyphicon,{className:"ms-header-btn",onClick:function(){return N("expanded"===F?"collapsed":"expanded")},glyph:f.glyph[F][_]}),O&&y&&o.a.createElement(i.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:y,disabled:w}))),o.a.createElement("div",{role:"body",className:x},A),q&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(p.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?s:null),o.a.createElement(u.a,{buttons:M})))):null;return z?o.a.createElement(c.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},$):$}));t.a=y},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dropzone/dist/index.js"),a=n.n(i),u=n("./MapStore2/web/client/components/misc/Loader.jsx"),s=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),l=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function c(){return(c=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=S?["SIZE"]:[])),e)):null})).catch((function(e){return N.current?(V(!1),I(e)):null}))}}),b?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(b,")"),backgroundSize:null!=M&&M.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},h),B):o.a.createElement("div",{className:"dropzone-content-image"},h,B,m&&o.a.createElement("div",{className:"dropzone-errors"},m))))}));t.a=h},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/utils/ConfigUtils.js");function a(){return(a=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/components/misc/Loader.jsx");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.body,n=e.caption,r=e.infoExtra,u=e.className,l=void 0===u?"":u,p=e.description,d=e.fullText,f=e.onClick,y=void 0===f?function(){}:f,h=e.onMouseEnter,m=void 0===h?function(){}:h,b=e.onMouseLeave,v=void 0===b?function(){}:b,g=e.preview,O=e.selected,j=e.size,w=e.style,E=void 0===w?{}:w,P=e.stylePreview,S=void 0===P?{}:P,_=e.styleTools,k=void 0===_?{}:_,M=e.title,D=e.loading,C=e.dragSymbol,T=void 0===C?"+":C,x=e.tools,A=c(e,["body","caption","infoExtra","className","description","fullText","onClick","onMouseEnter","onMouseLeave","preview","selected","size","style","stylePreview","styleTools","title","loading","dragSymbol","tools"]);return o.a.createElement("div",{className:"mapstore-side-card".concat(O?" selected":"").concat(j?" ms-"+j:"").concat(l?" ".concat(l):"").concat(d?" full-text":""),onClick:function(e){return y(s({title:M,preview:g,description:p,caption:n,tools:x},A),e)},onMouseEnter:m,onMouseLeave:v,style:E},o.a.createElement("div",{className:"ms-head"},A.isDraggable&&A.connectDragSource&&A.connectDragSource(o.a.createElement("div",{className:"mapstore-side-card-tool text-center"},o.a.createElement("div",{style:{width:10,overflow:"hidden"}},T))),g&&o.a.createElement("div",{className:"mapstore-side-preview",style:S},g),o.a.createElement("div",{className:"mapstore-side-card-container"},o.a.createElement("div",{className:"mapstore-side-card-inner"},o.a.createElement("div",{className:"mapstore-side-card-left-container"},o.a.createElement("div",{className:"mapstore-side-card-info"},M&&o.a.createElement("div",{className:"mapstore-side-card-title"},o.a.createElement("span",null,M)),p&&o.a.createElement("div",{className:"mapstore-side-card-desc"},Object(i.isObject)(p)?p:o.a.createElement("span",null,p)),n&&o.a.createElement("div",{className:"mapstore-side-card-caption"},o.a.createElement("span",null,n))),r),o.a.createElement("div",{className:"mapstore-side-card-right-container"},o.a.createElement("div",{className:"mapstore-side-card-tool text-center",style:k},x),"sm"!==j&&o.a.createElement("div",{className:"mapstore-side-card-loading"},o.a.createElement(a.a,{className:"mapstore-side-card-loader",size:12,hidden:!D})))))),t&&o.a.createElement("div",{className:"ms-body"},t))}},"./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/prop-types/index.js"),o=n.n(r),i=n("./node_modules/react/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function l(e){return(l="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 c(){return(c=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),u.a,(function(e){return function(t){return o.a.createElement(e,Object(a.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/emptyState.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/recompose/es/Recompose.js"),u=n("./MapStore2/web/client/components/misc/FitIcon.jsx");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.mainViewStyle,i=void 0===r?{}:r,a=e.contentStyle,s=void 0===a?{}:a,c=e.imageStyle,p=void 0===c?{}:c,d=e.glyph,f=void 0===d?"info-sign":d,y=e.iconFit,h=e.title,m=e.tooltip,b=e.tooltipId,v=e.description,g=e.content;return o.a.createElement("div",{className:"empty-state-container",style:l({height:y?"100%":void 0},n)},o.a.createElement("div",{key:"main-view",className:"empty-state-main-view",style:l({height:y?"100%":void 0},i)},f?o.a.createElement("div",{key:"glyph",className:"empty-state-image",style:l({height:y?"100%":void 0},p)},o.a.createElement(u.a,{iconFit:y,tooltip:m,tooltipId:b,glyph:f})):null,h?o.a.createElement("h1",{key:"title"},h):null,v?o.a.createElement("p",{key:"description",className:"empty-state-description"},v):null),o.a.createElement("div",{key:"content",className:"empty-state-content",style:s},g))};t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return Object(a.branch)(e,(function(){return function(e){return o.a.createElement(n,t&&Object(i.isFunction)(t)?t(e):t)}}))}},"./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),u=n("./node_modules/react-dom/index.js"),s=n.n(u);n("./node_modules/rxjs/Rx.js");function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataProp,n=void 0===t?"items":t,r=e.querySelector,i=e.closest,u=void 0!==i&&i,l=e.loadingProp,c=void 0===l?"loading":l,f=e.skip,m=void 0===f?0:f,v=e.pageSize,O=void 0===v?10:v,w=e.offsetSize,E=void 0===w?200:w;return function(e){var t,i;return i=t=function(t){h(a,t);var i=b(a);function a(){var e;d(this,a);for(var t=arguments.length,o=new Array(t),l=0;l=t.scrollHeight-n}}),i}}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),i=n.n(o),a=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/recompose/es/Recompose.js");function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(a.isArray)(t))return t.map((function(o){var i=Object(r.f)(e,o[n]||Object(a.isString)(o)&&o||"");return c(c({},o),{},p({},n,Object(a.isNil)(i)?t:i))}));var o=Object(r.f)(e,t);return Object(a.isNil)(o)?t:o},f=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return c(c({},r),{},p({},o,e[o]&&d(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(u.compose)(Object(u.getContext)({messages:i.a.object}),Object(u.mapProps)((function(n){var r=n.messages,o=s(n,["messages"]);return c(c({},o),Object(a.castArray)(e).reduce(f(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./node_modules/prop-types/index.js"),u=n.n(a),s=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./node_modules/react-bootstrap/es/index.js"),c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");function p(e){return(p="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,i=t.tooltipPosition,l=void 0===i?"top":i,p=t.tooltipTrigger,d=t.keyProp,f=t.idDropDown,y=t.args,h=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(u.a,{trigger:p,id:f,key:d,placement:l,overlay:o.a.createElement(a.Tooltip,{id:"tooltip-"+d},r?o.a.createElement(s.default,{msgId:r,msgParams:{data:y}}):n)},o.a.createElement(e,h))}}),(function(e){return function(t){return o.a.createElement(e,Object(l.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./node_modules/prop-types/index.js"),u=n.n(a),s=n("./node_modules/react-dom/index.js"),l=n.n(s),c=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");function p(e){return(p="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,a=void 0!==r&&r;return function(e){var r,s;return s=r=function(r){h(s,r);var u=b(s);function s(e){var r;return d(this,s),j(g(r=u.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=l.a.findDOMNode(g(r));return e&&a&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=Object(i.debounce)((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new c.a((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return y(s,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return o.a.createElement(e,this.props)}}]),s}(o.a.Component),j(r,"propTypes",{handleWidth:u.a.bool,handleHeight:u.a.bool,onResize:u.a.func}),j(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),s}}},"./MapStore2/web/client/components/misc/style/filter.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/style/filter.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-addons-css-transition-group/index.js"),a=n.n(i),u=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,i=void 0===r?{}:r,p=e.btnDefaultProps,d=void 0===p?{}:p,f=e.transitionProps,y=void 0===f?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:f,h=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,i=e.Element,a=e.renderButton,u=c(e,["visible","Element","renderButton"]);return r?a||(i&&o.a.createElement(i,l({key:u.key||t},u))||o.a.createElement(s.a,l({key:u.key||t},d,u))):null}))};return o.a.createElement(u.ButtonGroup,i,y?o.a.createElement(a.a,y,h()):h())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/recompose/es/Recompose.js"),a=n("./MapStore2/web/client/components/I18N/Message.jsx"),u=n("./MapStore2/node_modules/lodash/lodash.js"),s=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/Loader.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),p=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),d=n("./MapStore2/web/client/components/misc/Button.jsx");function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(i.compose)(c.a,p.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,i=void 0===r?"":r,c=e.textId,p=e.glyphClassName,h=void 0===p?"":p,m=e.loaderProps,b=void 0===m?{}:m,v=e.children,g=y(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(d.a,Object(u.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(s.Glyphicon,{glyph:t,className:h}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(l.a,f({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},b)):null,v)}))},"./MapStore2/web/client/components/misc/withConfirm.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),a=n("./MapStore2/web/client/components/misc/Portal.jsx"),u=n("./MapStore2/web/client/components/I18N/Message.jsx"),s=n("./node_modules/recompose/es/Recompose.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=Object(s.compose)(Object(s.withProps)((function(e){var t=e.setConfirming;return{onClose:function(){return t(!1)}}})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmYes,n=void 0===t?o.a.createElement(u.default,{msgId:"yes"}):t,r=e.confirmNo,s=void 0===r?o.a.createElement(u.default,{msgId:"no"}):r,l=e.confirmTitle,c=void 0===l?o.a.createElement(u.default,{msgId:"confirm"}):l,p=e.confirmContent,d=e.confirmButtonBSStyle,f=void 0===d?"primary":d,y=e.show,h=void 0!==y&&y,m=e.confirmModal,b=void 0===m||m,v=e.draggable,g=void 0!==v&&v,O=e.onClose,j=void 0===O?function(){}:O,w=e.onConfirm,E=void 0===w?function(){}:w;return h?o.a.createElement(a.a,null,o.a.createElement("div",{className:"with-confirm-modal"},o.a.createElement(i.a,{draggable:g,show:h,modal:b,onClose:j,onConfirm:E,title:c,confirmButtonContent:n,closeText:s,confirmButtonBSStyle:f,closeGlyph:"1-close"},p))):null})),p=function(e){return function(t){var n=t.confirming,r=t.confirmYes,i=t.confirmNo,a=t.confirmTitle,u=t.confirmContent,s=t.confirmModal,p=t.draggable,d=t.onConfirm,f=t.setConfirming,y=l(t,["confirming","confirmYes","confirmNo","confirmTitle","confirmContent","confirmModal","draggable","onConfirm","setConfirming"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(c,{show:n,setConfirming:f,confirmYes:r,confirmNo:i,confirmTitle:a,confirmContent:u,confirmModal:s,draggable:p,onConfirm:d}),o.a.createElement(e,y))}};t.a=function(e){return Object(s.compose)(Object(s.withState)("confirming","setConfirming",!1),Object(s.withHandlers)({onClick:function(e){var t=e.setConfirming,n=void 0===t?function(){}:t,r=e.onClick,o=void 0===r?function(){}:r,i=e.confirmPredicate,a=void 0===i||i;return function(){a?n(!0):o.apply(void 0,arguments)}},onConfirm:function(e){var t=e.onClick,n=void 0===t?function(){}:t,r=e.setConfirming,o=void 0===r?function(){}:r;return function(){o(!1),n.apply(void 0,arguments)}}}),p)(e)}},"./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/widgets/widget/MapView.jsx"),o=n("./node_modules/recompose/es/Recompose.js"),i=Object(o.compose)(Object(o.withHandlers)({onMapViewChanges:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(e){n("map",e),n("mapStateSource",e.mapStateSource)}}}));t.a=i(r.a)},"./MapStore2/web/client/components/widgets/widget/MapView.jsx":function(e,t,n){"use strict";var r=n("./node_modules/recompose/es/Recompose.js"),o=n("./MapStore2/web/client/components/map/enhancers/autoMapType.js"),i=n("./MapStore2/web/client/components/map/enhancers/autoResize.js"),a=n("./MapStore2/web/client/components/map/enhancers/getProjectionDefs.js"),u=n("./MapStore2/web/client/components/map/enhancers/handlingUnsupportedProjection.js"),s=n("./MapStore2/web/client/components/map/enhancers/mapType.js"),l=n("./MapStore2/web/client/components/map/enhancers/onMapViewChanges.js"),c=n("./MapStore2/web/client/components/map/BaseMap.jsx");t.a=Object(r.compose)(l.a,Object(i.a)(0),o.a,s.a,a.a,u.a)(c.a)},"./MapStore2/web/client/plugins/MediaEditor.jsx":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"loadMediaEditorDataEpic",(function(){return E})),n.d(r,"editorSaveUpdateMediaEpic",(function(){return P})),n.d(r,"mediaEditorNewMap",(function(){return S})),n.d(r,"mediaEditorEditMap",(function(){return _})),n.d(r,"reloadMediaResources",(function(){return k})),n.d(r,"importInLocalSource",(function(){return M})),n.d(r,"editRemoteMap",(function(){return D})),n.d(r,"removeMediaEpic",(function(){return C})),n.d(r,"updateSelectedItem",(function(){return T}));var o=n("./node_modules/react-redux/es/index.js"),i=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/PluginsUtils.js"),u=n("./MapStore2/web/client/actions/mediaEditor.js"),s=n("./node_modules/rxjs/Rx.js"),l=n("./node_modules/uuid/index.js"),c=n.n(l),p=n("./MapStore2/node_modules/lodash/findKey.js"),d=n.n(p),f=n("./MapStore2/web/client/actions/mapEditor.js"),y=n("./MapStore2/web/client/selectors/mediaEditor.js"),h=n("./MapStore2/web/client/utils/GeoStoryUtils.js"),m=n("./MapStore2/web/client/utils/MediaEditorUtils.js"),b=n("./MapStore2/web/client/api/media/index.js");function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},r=n.map,o=(r=void 0===r?{}:r).data;return e.ofType(f.b).switchMap((function(e){var n=e.map,r=Object(y.q)(t.getState()),i=d()(r,(function(e){var t=e.type;return m.a.GEOSTORY===t})),a=j(j({},r[i]),{},{store:t});return Object(b.a)(a).save({mediaType:o.type,source:r[i],data:j(j({},o),n)}).switchMap((function(e){var t=e.id;return s.Observable.of(Object(u.F)(i),Object(u.B)({mediaType:o.type,source:r[i],data:o,id:t}),Object(u.v)(void 0,o.type,i),Object(u.C)(t),Object(f.d)())}))})).takeUntil(e.ofType(f.a))}))},C=function(e,t){return e.ofType(u.k).switchMap((function(e){var n=e.mediaType,r=j(j({},Object(y.o)(t.getState())),{},{store:t});return Object(b.a)(r).remove({mediaType:n}).switchMap((function(){return s.Observable.of(Object(u.v)(void 0,Object(y.c)(t.getState()),m.a.GEOSTORY))}))}))},T=function(e,t){return e.ofType(u.m).switchMap((function(){var e=t.getState(),n=Object(y.n)(e),r=j(j({},Object(y.o)(t.getState())),{},{store:t});return Object(b.a)(r).getData({selectedItem:n}).switchMap((function(e){return null===e?s.Observable.of(Object(u.y)(!1)):s.Observable.of(Object(u.I)(j(j({},n),{},{data:j({},e)}),"replace"),Object(u.y)(!1))})).catch((function(){return s.Observable.of(Object(u.y)(!1))})).startWith(Object(u.y)(!0))}))},x=n("./MapStore2/node_modules/lodash/lodash.js"),A=n("./node_modules/connected-react-router/esm/actions.js"),I=n("./MapStore2/web/client/utils/ImmutableUtils.js");function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae=Object(J.a)((function(e){var t=e.mediaType,n=e.selectedItem;return t===h.e.MAP&&(!n||Object(x.isEmpty)(n))}),{iconFit:!0,glyph:"1-map",imageStyle:{display:"flex",flexDirection:"column",justifyContent:"center"}})((function(e){var t=e.selectedItem,n=t.data?t.data:t,r=n.layers,o=void 0===r?[]:r,i=(n.mapOptions,ie(n,["layers","mapOptions"]));return[V.a.createElement(te.a,{key:i.id||i.mapId,styleMap:{height:"100%"},map:re(re({},i),{},{id:"map"+i.id}),id:"preview"+t.id,layers:o||[m.b],options:Object(h.j)({})})]})),ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mediaType&&V.a.createElement("div",{className:"ms-media-preview",key:"preview",style:{width:"100%",height:"100%",boxShadow:"inset 0px 0px 30px -5px rgba(0,0,0,0.16)"}},e.mediaType===h.e.IMAGE&&V.a.createElement(X,e),e.mediaType===h.e.VIDEO&&V.a.createElement(ee,e),e.mediaType===h.e.MAP&&V.a.createElement(ae,e))||null},se=Object($.a)(["placeholder","clearValueText","noResultsText"])(G.default),le=Object(B.compose)(Object(o.connect)(null,{openMapEditor:f.e,importInLocal:u.u}),Object(B.withHandlers)({setAddingMedia:function(e){var t=e.setAddingMedia,n=e.openMapEditor,r=e.mediaType;return function(e,o){r===h.e.MAP&&n("mediaEditor",o),t(e)}},editRemoteMap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openMapEditor,n=e.selectedItem,r=void 0===n?{}:n;return function(){t("mediaEditorEditRemote",r)}}})),ce=n("./MapStore2/web/client/selectors/geostory.js"),pe=Object(B.compose)(Object(o.connect)((function(e){return{isUsed:Object(ce.l)(e,Object(y.m)(e))}}),{removeMedia:u.z}),Object(B.withHandlers)({onClick:function(e){var t=e.removeMedia,n=e.mediaType;return function(){t(n)}}}),Object(B.withProps)((function(e){var t=e.isUsed;return{confirmTitle:V.a.createElement(H.default,{msgId:"mediaEditor.mediaList.removeResourceTitle"}),confirmContent:V.a.createElement(H.default,{msgId:t?"mediaEditor.mediaList.confirmRemoveUsedResource":"mediaEditor.mediaList.confirmRemoveResource"})}})),W.a,Object(B.renameProp)("onClick","removeMedia")),de=n("./MapStore2/web/client/components/misc/Filter.jsx"),fe=n("./MapStore2/web/client/components/misc/Loader.jsx"),ye=n("./MapStore2/web/client/components/misc/cardgrids/SideGrid.jsx"),he=n("./MapStore2/web/client/components/I18N/HTML.jsx"),me=n("./node_modules/prop-types/index.js"),be=n.n(me),ve=n("./MapStore2/node_modules/lodash/debounce.js"),ge=n.n(ve);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&V.a.createElement("div",{className:"ms-media-toolbar",key:"toolbar"},V.a.createElement(Z.a,{btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:I})),V.a.createElement(Ae,{filterPlaceholder:B,filterText:R,onFilter:function(e){F({page:1,q:e})}}),u.length>0?V.a.createElement(xe,{loading:T,scrollOptions:{pageSize:k.pageSize},items:u.map((function(e){var t=e.id,n=e.data,r=void 0===n?{}:n,o=null==l?void 0:l.find((function(e){return e.id===r.sourceId}));return{preview:r.thumbnail||y===h.e.IMAGE&&r.src?V.a.createElement("div",{style:{backgroundImage:'url("'.concat(r.thumbnail||r.src,'")'),backgroundSize:"cover",backgroundPosition:"center",height:"100%",overflow:"hidden"}}):V.a.createElement(Me.a,{glyph:L,padding:20}),title:r.title||r.name,onClick:function(){return v(t)},selected:c&&c.id&&t===c.id,description:r.description,caption:o&&V.a.createElement(H.default,{msgId:o.name})}})),hasMore:function(){return M>u.length},onLoadMore:function(e){F({page:e+1})}}):!W&&V.a.createElement("div",{className:"msEmptyListMessage"},V.a.createElement(he.a,{msgId:z})),V.a.createElement("div",{className:"ms-media-list-pagination"},V.a.createElement("div",null,u.length&&M?V.a.createElement(he.a,{msgId:"mediaEditor.mediaList.resultsCount",msgParams:{count:u.length,total:M}}):null),T&&V.a.createElement(fe.a,{size:20})),(C||W)&&V.a.createElement("div",{className:"ms-media-list-loading"},V.a.createElement(fe.a,{size:70})))})),Fe=n("./node_modules/react-bootstrap/es/index.js"),Ne=n("./MapStore2/web/client/utils/LocaleUtils.js");function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t0&&V.a.createElement(Fe.Alert,{bsStyle:"danger",className:"text-center"},V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.error"})),f.map((function(e){return V.a.createElement("div",null," ",y[e])}))),Xe.map((function(e){return V.a.createElement(Fe.FormGroup,{key:e.id,validationState:e.validation&&e.validation(n)},V.a.createElement(Fe.ControlLabel,null,e.label),V.a.createElement(Fe.FormControl,{type:e.type,placeholder:Object(Ne.f)(l,e.placeholder),value:n[e.id]||"",onChange:function(t){o(Ge(Ge({},n),{},Ye({},e.id,t.target.value)))}}))}))))})),et=n("./MapStore2/web/client/utils/ThumbnailUtils.js");function tt(){return(tt=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&V.a.createElement(Fe.Alert,{bsStyle:"danger",className:"text-center"},-1===a.indexOf("CREATE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.error"})),-1!==a.indexOf("FORMAT")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.errorFormat"})),-1!==a.indexOf("SIZE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"map.errorSize"})),-1!==a.indexOf("CREATE")&&V.a.createElement("div",null,V.a.createElement(H.default,{msgId:"mediaEditor.mediaPicker.thumbnailCreateError"}))))},lt=function(e,t){var n=e.properties,r=e.setProperties,o=void 0===r?function(){}:r,i=e.onSave,a=void 0===i?function(){}:i,u=e.onClick,s=void 0===u?function(){}:u,l=(t||{}).messages,c=void 0===l?{}:l,p=n.src,d=n.thumbnail;return V.a.createElement(Y.a,{className:"ms-video-form",header:V.a.createElement("div",{className:"text-center",key:"toolbar",style:{borderBottom:"1px solid #ddd",padding:8}},V.a.createElement(Z.a,{btnGroupProps:{style:{marginBottom:8}},btnDefaultProps:{bsStyle:"primary",className:"square-button-md"},buttons:[{glyph:"arrow-left",tooltipId:"mediaEditor.mediaPicker.back",onClick:s},{glyph:"floppy-disk",tooltipId:"mediaEditor.mediaPicker.save",disabled:!n.src||!n.title,onClick:function(){return a(n)}}]}))},V.a.createElement(Fe.Form,{style:{padding:8}},V.a.createElement(st,{src:p,thumbnail:d,onUpdate:function(e){return o(rt(rt({},n),{},{thumbnail:e}))}}),ut.map((function(e){return V.a.createElement(Fe.FormGroup,{key:e.id,validationState:e.validation&&e.validation(n)},V.a.createElement(Fe.ControlLabel,null,e.label),V.a.createElement(Fe.FormControl,{type:e.type,placeholder:Object(Ne.f)(c,e.placeholder),value:n[e.id]||"",onChange:function(t){o(rt(rt({},n),{},ot({},e.id,t.target.value)))}}))}))))};lt.contextTypes={messages:be.a.object};var ct,pt=Object(W.a)(lt);function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft=(dt(ct={},h.e.IMAGE,We),dt(ct,h.e.MAP,Qe),dt(ct,h.e.VIDEO,(function(e){var t=it(Object(z.useState)(!1),2),n=t[0],r=t[1],o=it(Object(z.useState)(null!=e&&e.editing?rt({},null==e?void 0:e.selectedItem.data):{}),2),i=o[0],a=o[1];return V.a.createElement(pt,tt({},e,{confirmTitle:V.a.createElement(H.default,{msgId:"mediaEditor.mediaform.confirmExitTitle"}),confirmContent:V.a.createElement(H.default,{msgId:"mediaEditor.mediaform.confirmExitContent"}),confirmPredicate:n,properties:i,setProperties:function(e){a(e),r(!0)},onClick:function(){return(null==e?void 0:e.editing)&&(null==e?void 0:e.setEditingMedia(!1))||(null==e?void 0:e.setAddingMedia(!1))}}))})),ct),yt=Object(B.compose)(Object(B.withHandlers)({onSave:function(e){var t=e.mediaType,n=e.source,r=e.saveMedia,o=void 0===r?function(){}:r;return function(e){return o({type:t,source:n,data:e})}}}),Object(B.branch)((function(e){return e.addingMedia}),Object(B.renderComponent)((function(e){var t=ft[e.mediaType||h.e.IMAGE];return V.a.createElement(t,e)}))))(Re);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=Object(o.connect)(Object(i.a)([y.d,y.n,y.p,y.o,y.e,y.f,y.g,y.i,y.h,y.l,y.b],(function(e,t,n,r,o,i,a,u,s,l,c){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:L,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case u.a:return Object(I.d)(Object(I.e)("saveState.addingMedia",n.adding),Object(I.e)("selected",""))(t);case u.c:return Object(I.d)(Object(I.e)("saveState.addingMedia",n.editing),Object(I.e)("saveState.editing",n.editing))(t);case u.e:return Object(I.d)(Object(I.e)("open",!1),Object(I.e)("owner",void 0),Object(I.e)("saveState.addingMedia",!1),Object(I.e)("saveState.editing",!1),Object(I.e)("settings",F(F({},t.stashedSettings||L.settings),(null===(e=t.settings)||void 0===e?void 0:e.mediaType)&&{mediaType:t.settings.mediaType})),Object(I.e)("stashedSettings",void 0),Object(I.f)("selected"))(t);case u.j:var r=n.resultData,o=n.params,i=n.mediaType,a=n.sourceId;return Object(I.d)(Object(I.e)('data["'.concat(i,'"]["').concat(a,'"]'),{params:o,resultData:r}),Object(I.e)("loadingList",!1))(t);case u.q:var s=n.item,l=n.mode,c=Object(y.p)({mediaEditor:t}),p=Object(y.c)({mediaEditor:t}),d=Object(y.k)({mediaEditor:t}).resources,f=Object(x.findIndex)(d,{id:s.id}),h=Object(x.find)(d,{id:s.id}),m="merge"===l?Object(x.merge)({},Object(x.merge)({},h),Object(x.merge)({},s)):s;return Object(I.e)('data["'.concat(p,'"]["').concat(c,'"].resultData.resources[').concat(f,"]"),m,t);case u.m:return n.id===t.selected?Object(I.e)("selected","",t):Object(I.e)("selected",n.id,t);case u.o:var b=Object(x.get)(t,"settings.mediaTypes[".concat(n.mediaType,"].defaultSource"),"geostory");return Object(I.d)(Object(I.e)("settings.sourceId",b),Object(I.e)("settings.mediaType",n.mediaType))(t);case u.n:return Object(I.e)("settings.sourceId",n.id,t);case u.p:var v=n.settings&&F(F({},n.settings),t.settings.mediaType&&{mediaType:t.settings.mediaType});return Object(I.d)(Object(I.e)("open",!0),Object(I.e)("owner",n.owner),Object(I.e)("settings",v||t.settings),Object(I.e)("stashedSettings",t.settings))(t);case A.b:return F(F({},L),{},{settings:F(F({},t.settings),{},{mediaType:L.settings.mediaType})});case u.h:return Object(I.e)("loadingSelected",n.loading,t);case u.g:return Object(I.e)("loadingList",!0,t);default:return t}}},epics:r})},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},i=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/utils/MediaEditorUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.width,a=void 0===i?64:i,u=o.height,s=void 0===u?64:u,l=o.contain,c=o.type,p=void 0===c?"image/jpeg":c,d=o.quality,f=void 0===d?.5:d,y=new Image;y.crossOrigin="anonymous",y.onload=function(){var e=y.naturalWidth/y.naturalHeight,t=a,r=s,o=a/s,i=document.createElement("canvas");i.setAttribute("width",a),i.setAttribute("height",s),i.style.width=a+"px",i.style.height=s+"px";var u=i.getContext("2d"),c=!l&&eo?[t,t/e]:[r*e,r];u.save(),u.translate(t/2,r/2),u.drawImage(y,-c[0]/2,-c[1]/2,c[0],c[1]),u.restore();var d=i.toDataURL(p,f);n(d)},y.onerror=function(e){r(e)},y.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},i=o.type,a=void 0===i?"image/jpeg":i,u=o.quality,s=void 0===u?.5:u,l=document.createElement("video");l.crossOrigin="anonymous";var c=document.createElement("source"),p=document.createElement("canvas");l.addEventListener("loadedmetadata",(function(){var e=l.videoWidth,t=l.videoHeight;p.setAttribute("width",e),p.setAttribute("height",t),p.style.width=e+"px",p.style.height=t+"px"}),!0),l.addEventListener("loadeddata",(function(){l.currentTime=1}),!0),l.addEventListener("seeked",(function(){p.getContext("2d").drawImage(l,0,0);try{var e=p.toDataURL(a,s);n(e)}catch(e){r(e)}}),!0),l.addEventListener("error",(function(e){r(e)}),!0),l.appendChild(c),l.setAttribute("src",e)}))},i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,a=null===(e=t.match(i))||void 0===e?void 0:e[1];return a?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(a,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./node_modules/batch-processor/src/batch-processor.js":function(e,t,n){"use strict";var r=n("./node_modules/batch-processor/src/utils.js");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},"./node_modules/element-resize-detector/src/collection-utils.js":function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n div::-webkit-scrollbar { "+s(["display: none"])+" }\n\n",i+="."+o+" { "+s(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function s(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return u(window.document),{makeDetectable:function(e,u,c){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(u),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?r.default.createElement(e,s({},this.props,{ref:this.ref,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}])&&c(n.prototype,o),a&&c(n,a),b}(r.Component);t.default=b,m(b,"displayName","Player"),m(b,"propTypes",o.propTypes),m(b,"defaultProps",o.defaultProps)},"./node_modules/react-player/lib/Preview.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=r?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return(i="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 a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),F(x(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),F(x(e),"handleReady",(function(){e.props.onReady(x(e))})),F(x(e),"wrapperRef",(function(t){e.wrapper=t})),F(x(e),"activePlayerRef",(function(t){e.player=t})),e}return n=y,(p=[{key:"componentDidMount",value:function(){this.props.progressFrequency&&console.warn("ReactPlayer: %cprogressFrequency%c is deprecated, please use %cprogressInterval%c instead","font-weight: bold","","font-weight: bold","")}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,i.isEqual)(this.props,e)||!(0,i.isEqual)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;this.config=(0,i.getConfig)(this.props,o.defaultProps),!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"getActivePlayer",value:function(e){for(var t=0,n=[].concat(k(L),k(a.default));te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n))return S.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,i=e.controls,a=e.muted,u=e.config,s=e.width,c=e.height,p=this.shouldUseAudio(this.props)?"audio":"video",d={width:"auto"===s?s:"100%",height:"auto"===c?c:"100%"};return o.default.createElement(p,l({ref:this.ref,src:this.getSource(t),style:d,preload:"auto",autoPlay:n||void 0,controls:i,muted:a,loop:r},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}])&&p(n.prototype,r),a&&p(n,a),s}(o.Component);t.FilePlayer=M,b(M,"displayName","FilePlayer"),b(M,"canPlay",_),b(M,"canEnablePIP",(function(e){return _(e)&&(!!document.pictureInPictureEnabled||k())&&!j.test(e)}));var D=(0,a.default)(M);t.default=D},"./node_modules/react-player/lib/players/Mixcloud.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Mixcloud=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js")),i=n("./node_modules/react-player/lib/utils.js"),a=(r=n("./node_modules/react-player/lib/singlePlayer.js"))&&r.__esModule?r:{default:r};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){return(s="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(p);try{for(u.s();!(i=u.n()).done;){var s=i.value;!s.Player.canPlay(e)&&n[s.configKey].preload&&a.push(r.default.createElement(o.default,{key:s.Player.displayName,activePlayer:s.Player,url:s.url,controls:t,playing:!0,muted:!0,display:"none"}))}}catch(e){u.e(e)}finally{u.f()}return a};var r=l(n("./node_modules/react/index.js")),o=l(n("./node_modules/react-player/lib/Player.js")),i=n("./node_modules/react-player/lib/players/YouTube.js"),a=n("./node_modules/react-player/lib/players/SoundCloud.js"),u=n("./node_modules/react-player/lib/players/Vimeo.js"),s=n("./node_modules/react-player/lib/players/DailyMotion.js");function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),O(m(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),O(m(e),"ref",(function(t){e.player=t})),e}return function(e,t,n){t&&y(e.prototype,t);n&&y(e,n)}(s,[{key:"shouldComponentUpdate",value:function(e){return!(0,a.isEqual)(this.props,e)}},{key:"componentDidUpdate",value:function(){this.config=(0,a.getConfig)(this.props,i.defaultProps)}},{key:"render",value:function(){var t=this.config.file,n=t.forceVideo,r=t.forceAudio,s=t.forceHLS,l=t.forceDASH,p=n||r||s||l;if(!e.canPlay(this.props.url)&&!p)return null;var f=this.props,y=f.style,h=f.width,m=f.height,b=f.wrapper,v=(0,a.omit)(this.props,j,i.DEPRECATED_CONFIG_PROPS);return o.default.createElement(b,c({style:d({},y,{width:h,height:m})},v),o.default.createElement(u.default,c({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),s}(o.Component),O(t,"displayName","".concat(e.displayName,"Player")),O(t,"propTypes",i.propTypes),O(t,"defaultProps",i.defaultProps),O(t,"canPlay",e.canPlay),n};var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("./node_modules/react/index.js")),i=n("./node_modules/react-player/lib/props.js"),a=n("./node_modules/react-player/lib/utils.js"),u=(r=n("./node_modules/react-player/lib/Player.js"))&&r.__esModule?r:{default:r};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(l="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 c(){return(c=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise((function(r,o){if(v[e])v[e].push({resolve:r,reject:o});else{v[e]=[{resolve:r,reject:o}];var a=function(t){v[e].forEach((function(e){return e.resolve(t)}))};if(n){var u=window[n];window[n]=function(){u&&u(),a(window[t])}}i(e,(function(r){r?(v[e].forEach((function(e){return e.reject(r)})),v[e]=null):n||a(window[t])}))}}))},t.getConfig=function(e,t,n){var r,o=(0,i.default)(t.config,e.config),u=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=p(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(a.DEPRECATED_CONFIG_PROPS);try{for(u.s();!(r=u.n()).done;){var s=r.value;if(e[s]){var c=s.replace(/Config$/,"");if(o=(0,i.default)(o,l({},c,e[s])),n){var d="ReactPlayer: %c".concat(s," %cis deprecated, please use the config prop instead – ").concat("https://github.com/CookPete/react-player#config-prop");console.warn(d,"font-weight: bold","")}}}}catch(e){u.e(e)}finally{u.f()}return o},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t||n<0||f&&e-c>=i}function v(){var e=p();if(b(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?w(n,i-(e-c)):n}(e))}function g(e){return u=void 0,y&&r?h(e):(r=o=void 0,a)}function E(){var e=p(),n=b(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return m(s);if(f)return clearTimeout(u),u=setTimeout(v,t),h(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=O(t)||0,l(n)&&(d=!!n.leading,i=(f="maxWait"in n)?j(O(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},E.flush=function(){return void 0===u?a:g(p())},E};var P=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return l(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),E(e,t,{leading:r,maxWait:t,trailing:o})},S={debounce:E,throttle:P},_=function(e){return"function"==typeof e},k=function(){return"undefined"==typeof window};function M(e){return(M="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 D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{handleWidth:!0,handleHeight:!0};return function(n){function r(){return u(this,r),c(this,p(r).apply(this,arguments))}return d(r,n),l(r,[{key:"render",value:function(){return o.a.createElement(i.a,t,o.a.createElement(e,this.props))}}]),r}(r.Component)}},"./node_modules/react-resize-detector/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),j="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new O(t,n,this);j.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=j.get(this))[e].apply(t,arguments)}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;t.a=E}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/react-select/dist/react-select.es.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Async",(function(){return V})),n.d(t,"AsyncCreatable",(function(){return Y})),n.d(t,"Creatable",(function(){return B})),n.d(t,"Value",(function(){return D})),n.d(t,"Option",(function(){return M})),n.d(t,"defaultMenuRenderer",(function(){return v})),n.d(t,"defaultArrowRenderer",(function(){return d})),n.d(t,"defaultClearRenderer",(function(){return f})),n.d(t,"defaultFilterOptions",(function(){return b}));var r=n("./node_modules/react-select/node_modules/react-input-autosize/lib/AutosizeInput.js"),o=n.n(r),i=n("./node_modules/classnames/index.js"),a=n.n(i),u=n("./node_modules/prop-types/index.js"),s=n.n(u),l=n("./node_modules/react/index.js"),c=n.n(l),p=n("./node_modules/react-dom/index.js"),d=function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})};d.propTypes={onMouseDown:s.a.func};var f=function(){return c.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},y=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],h=function(e){for(var t=0;t-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[r.valueKey],i=e[r.labelKey],a=m(o),u=m(i);if(!a&&!u)return!1;var s=a?String(o):null,l=u?String(i):null;return r.ignoreAccents&&(s&&"label"!==r.matchProp&&(s=h(s)),l&&"value"!==r.matchProp&&(l=h(l))),r.ignoreCase&&(s&&"label"!==r.matchProp&&(s=s.toLowerCase()),l&&"value"!==r.matchProp&&(l=l.toLowerCase())),"start"===r.matchPos?s&&"label"!==r.matchProp&&s.substr(0,t.length)===t||l&&"value"!==r.matchProp&&l.substr(0,t.length)===t:s&&"label"!==r.matchProp&&s.indexOf(t)>=0||l&&"value"!==r.matchProp&&l.indexOf(t)>=0}))},v=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=e.onFocus,u=e.onOptionRef,s=e.onSelect,l=e.optionClassName,p=e.optionComponent,d=e.optionRenderer,f=e.options,y=e.removeValue,h=e.selectValue,m=e.valueArray,b=e.valueKey,v=p;return f.map((function(e,p){var f=m&&m.some((function(t){return t[b]===e[b]})),g=e===t,O=a()(l,{"Select-option":!0,"is-selected":f,"is-focused":g,"is-disabled":e.disabled});return c.a.createElement(v,{className:O,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:g,isSelected:f,key:"option-"+p+"-"+e[b],onFocus:i,onSelect:s,option:e,optionIndex:p,ref:function(e){u(e,g)},removeValue:y,selectValue:h},d(e,p,r))}))};v.propTypes={focusOption:s.a.func,focusedOption:s.a.object,inputValue:s.a.string,instancePrefix:s.a.string,onFocus:s.a.func,onOptionRef:s.a.func,onSelect:s.a.func,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,removeValue:s.a.func,selectValue:s.a.func,valueArray:s.a.array,valueKey:s.a.string};var g=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},O="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},j=(function(){function e(e){this.value=e}function t(t){var n,r;function o(n,r){try{var a=t[n](r),u=a.value;u instanceof e?Promise.resolve(u.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):i(a.done?"return":"normal",a.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var u={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=u:(n=r=u,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),w=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},M=function(e){function t(e){j(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return S(t,e),w(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:o,onMouseDown:g,onClick:g},this.props.children):c.a.createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);M.propTypes={children:s.a.node,className:s.a.string,instancePrefix:s.a.string.isRequired,isDisabled:s.a.bool,isFocused:s.a.bool,isSelected:s.a.bool,onFocus:s.a.func,onSelect:s.a.func,onUnfocus:s.a.func,option:s.a.object.isRequired,optionIndex:s.a.number};var D=function(e){function t(e){j(this,t);var n=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return S(t,e),w(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);D.propTypes={children:s.a.node,disabled:s.a.bool,id:s.a.string,onClick:s.a.func,onRemove:s.a.func,value:s.a.object.isRequired}; -/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/react-select -*/ -var C=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},T=s.a.oneOfType([s.a.string,s.a.node]),x=s.a.oneOfType([s.a.string,s.a.number]),A=1,I=function(e,t){var n=void 0===e?"undefined":O(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var i=0;ia||id.bottom?l.scrollTop=s.offsetTop+s.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":O(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return I(e,n)})).filter((function(e){return e}))}var r=I(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=R(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(n){return n[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter((function(e){return!e.disabled})),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,o=0;o0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,o=e.isPseudoFocused,i=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!o&&!i}(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var i,a,u,s,l,p,d=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(t,i){return c.a.createElement(o,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+i,instancePrefix:n._instancePrefix,key:"value-"+i+"-"+t[n.props.valueKey],onClick:d,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,i),c.a.createElement("span",{className:"Select-aria-only"}," "))})):(i=this.state,a=this.props,u=i.inputValue,s=i.isPseudoFocused,l=i.isFocused,p=a.onSelectResetsInput,u&&(p||!l&&s||l&&!s)?void 0:(t&&(d=null),c.a.createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:d,placeholder:this.props.placeholder,value:e[0]},r(e[0]))))}},{key:"renderInput",value:function(e,t){var n,r=this,i=a()("Select-input",this.props.inputProps.className),u=this.state.isOpen,s=a()((E(n={},this._instancePrefix+"-list",u),E(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=this.state.inputValue;!l||this.props.onSelectResetsInput||this.state.isFocused||(l="");var p=P({},this.props.inputProps,{"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+u,"aria-haspopup":""+u,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":s,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:l});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=_(this.props.inputProps,[]),f=a()(E({},this._instancePrefix+"-list",u));return c.a.createElement("div",P({},d,{"aria-expanded":u,"aria-owns":f,"aria-activedescendant":u?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(o.a,P({id:this.props.id},p,{className:i,minWidth:"5"})):c.a.createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",P({id:this.props.id},p)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var r="function"==typeof this.props.filterOptions?this.props.filterOptions:b;return r(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return C(e[t.props.valueKey])})).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map((function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:C(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var o=-1;if(t.some((function(e,t){var i=e[n]===r[n];return i&&(o=t),i})),-1!==o)return o}for(var i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(i.Component);y.propTypes={className:u.default.string,defaultValue:u.default.any,extraWidth:u.default.oneOfType([u.default.number,u.default.string]),id:u.default.string,injectStyles:u.default.bool,inputClassName:u.default.string,inputRef:u.default.func,inputStyle:u.default.object,minWidth:u.default.oneOfType([u.default.number,u.default.string]),onAutosize:u.default.func,onChange:u.default.func,placeholder:u.default.string,placeholderIsMinWidth:u.default.bool,style:u.default.object,value:u.default.any},y.defaultProps={minWidth:1,injectStyles:!0},t.default=y},"./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},s.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},s.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},s.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),a.some((function(e){return!!~t.indexOf(e)}))&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null;var l=function(e,t){for(var n=0,r=Object.keys(t);n0;)t[n]=arguments[n+1];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=c(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n0};var j="undefined"!=typeof WeakMap?new WeakMap:new n,w=function(e){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=s.getInstance(),n=new O(e,t,this);j.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){return(t=j.get(this))[e].apply(t,arguments);var t}}));var E=void 0!==o.ResizeObserver?o.ResizeObserver:w;t.a=E}).call(this,n("./node_modules/webpack/buildin/global.js"))}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/plugins/notifications-plugin.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/plugins/notifications-plugin.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/plugins/notifications-plugin.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/plugins/notifications-plugin.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.849ba3b532d52b2a2861.chunk.js b/geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.16eb7e71311ee8695d11.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.849ba3b532d52b2a2861.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.16eb7e71311ee8695d11.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/plugins/save-as-plugin.16eb7e71311ee8695d11.chunk.js b/geonode_mapstore_client/static/mapstore/dist/plugins/save-as-plugin.16eb7e71311ee8695d11.chunk.js new file mode 100644 index 0000000000..b6aee6a715 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/plugins/save-as-plugin.16eb7e71311ee8695d11.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["plugins/save-as-plugin","plugins/geostory-navigation-plugin~plugins/share-plugin"],{"./MapStore2/web/client/actions/widgets.js":function(e,t,n){"use strict";n.d(t,"m",(function(){return i})),n.d(t,"o",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return m})),n.d(t,"z",(function(){return _})),n.d(t,"y",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return M})),n.d(t,"r",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return L})),n.d(t,"v",(function(){return j})),n.d(t,"q",(function(){return v})),n.d(t,"k",(function(){return Y})),n.d(t,"l",(function(){return w})),n.d(t,"B",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"d",(function(){return D})),n.d(t,"f",(function(){return S})),n.d(t,"A",(function(){return T})),n.d(t,"t",(function(){return x})),n.d(t,"u",(function(){return E})),n.d(t,"w",(function(){return P})),n.d(t,"x",(function(){return H})),n.d(t,"G",(function(){return A})),n.d(t,"F",(function(){return F})),n.d(t,"M",(function(){return I})),n.d(t,"Y",(function(){return C})),n.d(t,"X",(function(){return N})),n.d(t,"H",(function(){return R})),n.d(t,"E",(function(){return W})),n.d(t,"D",(function(){return G})),n.d(t,"J",(function(){return z})),n.d(t,"I",(function(){return U})),n.d(t,"O",(function(){return B})),n.d(t,"C",(function(){return J})),n.d(t,"N",(function(){return V})),n.d(t,"T",(function(){return q})),n.d(t,"Q",(function(){return K})),n.d(t,"K",(function(){return Q})),n.d(t,"L",(function(){return Z})),n.d(t,"P",(function(){return X})),n.d(t,"U",(function(){return $})),n.d(t,"R",(function(){return ee})),n.d(t,"S",(function(){return te})),n.d(t,"V",(function(){return ne})),n.d(t,"W",(function(){return re}));var r=n("./node_modules/uuid/v1.js"),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i="WIDGETS:INSERT",u="WIDGETS:NEW",d="WIDGETS:EDIT",l="WIDGETS:EDIT_NEW",c="WIDGETS:EDITOR_CHANGE",m="WIDGETS:EDITOR_SETTING_CHANGE",_="WIDGETS:UPDATE_PROPERTY",f="WIDGETS:UPDATE_LAYER",p="WIDGETS:CHANGE_LAYOUT",h="WIDGETS:DELETE",y="WIDGETS:CLEAR_WIDGETS",M="WIDGETS:ADD_DEPENDENCY",g="WIDGETS:REMOVE_DEPENDENCY",b="WIDGETS:LOAD_DEPENDENCIES",L="WIDGETS:RESET_DEPENDENCIES",j="WIDGETS:TOGGLE_CONNECTION",v="WIDGETS:OPEN_FILTER_EDITOR",Y="WIDGETS:EXPORT_CSV",w="WIDGETS:EXPORT_IMAGE",O="WIDGETS:WIDGET_SELECTED",k="WIDGETS:NEW_CHART",D="floating",S="dependencySelector",T=/^widgets\["?([^"\]]*)"?\]\.?(.*)$/,x="WIDGET:TOGGLE_COLLAPSE",E="WIDGET:TOGGLE_COLLAPSE_ALL",P="WIDGET:TOGGLE_MAXIMIZE",H="WIDGET:TOGGLE_TRAY",A=function(e){return{type:u,widget:e}},F=function(){return{type:k}},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:i,target:t,id:o()(),widget:e}},C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:D;return{type:_,id:e,target:o,key:t,value:n,mode:r}},N=function(e){return{type:f,layer:e}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:h,target:t,widget:e}},W=function(){return{type:y}},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return{type:p,allLayouts:t,layout:e,target:n}},z=function(e){return{type:d,widget:e}},U=function(e,t){return{type:l,widget:e,settings:t}},B=function(e,t){return{type:c,key:e,value:t}},J=function(e,t){return{type:m,key:e,value:t}},V=function(e){return{type:b,dependencies:e}},q=function(e,t,n,r){return{type:j,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return J("step",e)},Q=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:Y,data:n,title:void 0===r?"export":r}},Z=function(e){var t=e.widgetDivId;return{type:w,widgetDivId:t}},X=function(){return{type:v}},$=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:D;return{type:x,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return{type:E,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:P,widget:e,target:t}},re=function(e){return{type:H,value:e}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return f})),n.d(t,"getFeatureSimple",(function(){return p})),n.d(t,"getCapabilitiesURL",(function(){return h})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return M})),n.d(t,"getCapabilities",(function(){return g})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return b})),n.d(t,"describeFeatureType",(function(){return L}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),a=n("./node_modules/url/url.js"),s=n.n(a),i=n("./node_modules/object-assign/index.js"),u=n.n(i);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=s.a.parse(e,!0);return s.a.format(u()({},o,{query:u()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,a=d(n,["version"]),i=s.a.parse(e,!0);return s.a.format(u()({},i,{query:u()(m({service:"WFS",typeName:t,version:o,request:"GetFeature"},a),i.query)}))},M=function(e,t,n){return o.a.get(y(e,t,n))},g=function(e){return o.a.get(h(e))},b=function(e,t){var r=s.a.parse(e,!0),a=s.a.format(u()({},r,{query:u()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(a).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},L=function(e,t){return o.a.get(f(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function u(e){return(u="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,g=/([^<]*<\/style>)/i,b=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&&c(e,t)}(s,e);var t,n,r,a=m(s);function s(){return d(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=g.exec(e),n=t&&2===t.length?g.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(M,"$1").trim();return o.a.createElement(i.a,{html:n+r})}}])&&l(t.prototype,n),r&&l(t,r),s}(o.a.Component);p=b,h="propTypes",y={response:s.a.string},h in p?Object.defineProperty(p,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[h]=y,t.a=b},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/TemplateUtils.js"),u=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),d=n("./node_modules/prop-types/index.js"),l=n.n(d),c=n("./MapStore2/web/client/utils/StringUtils.js");function m(e){return(m="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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=w[t]||w.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l;t.a=(l=r.Button,a.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,s=void 0===o?function(){}:o,c=d(e,["disabled","className","onClick"]);return a.a.createElement(l,u({ref:t,className:n?i()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},c),c.children)})))},"./MapStore2/web/client/components/misc/Dialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),u=n.n(i),d=n("./node_modules/react-draggable/dist/react-draggable.js"),l=n.n(d),c=n("./node_modules/react-spinkit/dist/index.js"),m=n.n(c),_=n("./MapStore2/web/client/components/I18N/Message.jsx");function f(e){return(f="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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0})),Y(j(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=u.a.createElement("div",{id:this.props.id,style:h({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(l.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&M(t.prototype,n),r&&M(t,r),s}(u.a.Component);Y(w,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),Y(w,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=w},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},c=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,a=e.hidden;return s.a.createElement("div",{className:o,style:u({width:t,height:t,overflow:"hidden"},r)},!a&&s.a.createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};c.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=c},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),i=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/react-addons-css-transition-group/index.js"),l=n.n(d),c=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),m={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},_={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,u=e.loadingText,d=e.onClose,f=void 0===d?function(){}:d,p=e.title,h=void 0===p?"":p,y=e.clickOutEnabled,M=void 0===y||y,g=e.showClose,b=void 0===g||g,L=e.disabledClose,j=void 0!==L&&L,v=e.showFullscreen,Y=void 0!==v&&v,w=e.fullscreenType,O=void 0===w?"full":w,k=e.buttons,D=void 0===k?[]:k,S=e.size,T=void 0===S?"":S,x=e.bodyClassName,E=void 0===x?"":x,P=e.children,H=e.draggable,A=void 0!==H&&H,F=e.fullscreenState,I=e.onFullscreen,C=e.fade,N=void 0!==C&&C,R=e.fitContent,W=e.modalClassName,G=void 0===W?"":W,z=e.dialogClassName,U=void 0===z?"":z,B=e.enableFooter,J=void 0===B||B,V=m[T]||"",q=Y&&"expanded"===F&&_.className[O]||"",K=n?o.a.createElement("div",{className:"modal-fixed ".concat(G," ")+(A?"ms-draggable":"")},o.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:M?f:function(){},containerClassName:"ms-resizable-modal",draggable:A,modal:!0,className:"modal-dialog modal-content"+V+q+U+(R?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},h),Y&&_.className[O]&&o.a.createElement(a.Glyphicon,{className:"ms-header-btn",onClick:function(){return I("expanded"===F?"collapsed":"expanded")},glyph:_.glyph[F][O]}),b&&f&&o.a.createElement(a.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:j}))),o.a.createElement("div",{role:"body",className:E},P),J&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(c.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),o.a.createElement(i.a,{buttons:D})))):null;return N?o.a.createElement(l.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));t.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),d=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=w?["SIZE"]:[])),e)):null})).catch((function(e){return I.current?(R(!1),H(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=D&&D.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},p),W):o.a.createElement("div",{className:"dropzone-content-image"},p,W,h&&o.a.createElement("div",{className:"dropzone-errors"},h))))}));t.a=p},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),i.a,(function(e){return function(t){return o.a.createElement(e,Object(s.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(t))return t.map((function(o){var a=Object(r.f)(e,o[n]||Object(s.isString)(o)&&o||"");return l(l({},o),{},c({},n,Object(s.isNil)(a)?t:a))}));var o=Object(r.f)(e,t);return Object(s.isNil)(o)?t:o},_=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return l(l({},r),{},c({},o,e[o]&&m(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(i.compose)(Object(i.getContext)({messages:a.a.object}),Object(i.mapProps)((function(n){var r=n.messages,o=u(n,["messages"]);return l(l({},o),Object(s.castArray)(e).reduce(_(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),i=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,a=t.tooltipPosition,d=void 0===a?"top":a,c=t.tooltipTrigger,m=t.keyProp,_=t.idDropDown,f=t.args,p=l(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(i.a,{trigger:c,id:_,key:m,placement:d,overlay:o.a.createElement(s.Tooltip,{id:"tooltip-"+m},r?o.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},o.a.createElement(e,p))}}),(function(e){return function(t){return o.a.createElement(e,Object(d.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(a),i=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,a=void 0===r?{}:r,c=e.btnDefaultProps,m=void 0===c?{}:c,_=e.transitionProps,f=void 0===_?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:_,p=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,a=e.Element,s=e.renderButton,i=l(e,["visible","Element","renderButton"]);return r?s||(a&&o.a.createElement(a,d({key:i.key||t},i))||o.a.createElement(u.a,d({key:i.key||t},m,i))):null}))};return o.a.createElement(i.ButtonGroup,a,f?o.a.createElement(s.a,f,p()):p())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/Loader.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),m=n("./MapStore2/web/client/components/misc/Button.jsx");function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.compose)(l.a,c.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,a=void 0===r?"":r,l=e.textId,c=e.glyphClassName,p=void 0===c?"":c,h=e.loaderProps,y=void 0===h?{}:h,M=e.children,g=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(m.a,Object(i.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(u.Glyphicon,{glyph:t,className:p}):null,l?o.a.createElement(s.default,{msgId:l}):a,n?o.a.createElement(d.a,_({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},y)):null,M)}))},"./MapStore2/web/client/product/assets/img/marker-icon-red.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwKDiknI+uvvgAABttJREFUWMOll2uMVVcVx/9773PuPY/7mBcUZ4q1JmbiF6nQwtSY2pSYtobCB2yMrxhrHGOrfioEjQYlMWikH7TxUWNbjTFWU6gComm1UEgMAi20kFCrIMPMFIZ53Xvn3vPYZ++1/HBh6GVmmDu6k/+Xk/1fv7Mfa61zBDOjnfHihzZ1Gcg+YcUyCZrkvPf2A4efG2/HK24G+cuHN/cLS59nIT7DzH1Syli5jrGZUUTkKyGuAPa3RPTsA0f3vbEkyHfEBrlunbMVUn47LBYRhkE+7/uQORdCCDAzyAA6mkEURbpWqQpm/l4Q0I57X95rFoUcWLvxvazk71039/5b+noDVymQzsCZAWcZ2BKEkhCuC+E6kDkXmbUYv3QpylJ9zhj58EPHd/9zQcgf1228Xwnxh3Jnp+rq6XE5TmAb8aJ7rnwPIvQxPTlppicnLQGf3PSPvS/Mgey/c1OPVfzv3t7ecuj7MJUZsLVodwil4JQKiHSKS6OjDaFs/4a//2kUAOS1SVbxLwulkhd4HvTENMgYMPMcQcp5n5Mx0FMV+Pk8iuWyY6369bXYEgCeX7vh06zk+lu6O/O2WgeIWiQdB25nAbmeLsiOInI9XXA7y5A5d85cW62jp6s7L5Qa2LP2oS8CgNi3ZmOQCjP+7t6+wIOEnWm0bINT8kGej/FqBY1GAyZJoVwHQamE5YUSlCWYWgUgef2MiiESEIYuvZ14pLqdBOlq5eRF6Oehr0wAdP0iqDBAKhSGRoax8v6P4M5PbULxtlvRGB3Dud0HcG7Pn7Gyuwee77W8nJ2pIlzeA6UUJZSuVpv7+jcHfmF9yVGujTIAAoCAUA5URwEj01Po/8InsOprj8Dr6oCQEvmOElbcvQb+imV462+H0VXsAGcWbLnpZwHpKjQMmyTL3pSC+Z4w7/qkM4CuS7gOalECUS6g/7Ob571R7/nYfQhvX4npRh0yl2vxk84Q5l1fMN8jCRjwXQVOdXOrrko6AnGaYtldqyCEWPDqrhhYjcSkEIpb/Jxq+K4CAQOOIRs0SwWBmWbNzAzLBKdQWDQRzdVMaPUThBAgIl8COBUlCYRSrW+SZcgrB2Ovvn5TyNjJM8iznbMTQilESQICn5RE4nAjzTKhVIuZkhTlvIvKW+cxfOTYvIDx02dx+ehr6PQDkM7mVIAo0dqyfEUaaY5X01gLpcDWzoqSFCJO0Vcs4OCWHXjz+f0g0yywRITzL76Cl778dbyrWIbKLGwjavELpVBNG9rAHBdPf/DeXmZ3eE3frZKmKuDsHZVaSridZTTY4kK9jjiOUVqxHPUr41Cui9uLJZScHMzEOJivJ6NwHciuDrw6Omxh0CeYGc/c8dFjt5XLd/VIF7Y607JsFhaqWG4mJlskWiPv5uBJBYpmYGp1CG7dalUuYoIyHqpWjz1y6qUBBwA0xK6Rev3Z5cuXBaZmm3VolgLY6jSoVoHMuSg4Dqheh87M7DwGtaxeeg5Gx6ZiDfH92QIpnfgFbYyu6QzSC5t16AaxFeDYwM4k4NgABvPOk16ISqKRWlvvfrBz7yxk8MSRjMA/uVyvxcp3wJy1XMe2BUCFPkYb9dgyPfHwzt/Z1n5i7ZMTSaoispCBD+ZsyZKBi7qOUE0TYTN6uqWfAMCjZw5dBvDk0EwUK99rNqgbesVNBUAGPi7W6zGAJx47e2hyDgQAjLY7KzpB3WRQoT9vB1xIMvAxk2nMZJaEq3/wzrgtkMfOHppkIXZdjKJYhcHV1G9vFSr0MdRoRATeOXjiSHVBCAAYL7erZqyt6RQqDCAYi8ophKjpFI3MGGvtD2+MOQfylaMHaoL5u0NxGsvAB4FBRAuKBSB8DxeiKCLJOx49c6i+KAQAkMt+FFubVrMUTiGEYF5QquihohPElhK/OvHj+cLNCxk8cSQi8PahNItl4Deb1jxnIYSA9EIMpVnMQnzrc/85nbQNAQAd0VOptfUpnUAW8vPeKFEMMaUTpNbUum3wi4ViLQj56r8Oppbpm8OZjYUfAlK2ZreUkF4ew1kWk5Tf+PiZfXrJEAAY637fM5poekqnUGEOID0rp5DHlE6RWprofrD7VzeLc1PI9oNPGSuw7SJx82xU8xNVKAkEHoZslhCw7VqN+p8gADD2uvebzJrL45mBLIQAEVSxgCvawBBGx04Hzy0WY1HIdt5PLMTWEUKCwIfwPbDvYYQ4gZRbt/N++r8hAPCluw/uNmQvjFtit7OMK8YyEZ0fPPXXPe3424LgZ8RWyceHGVoTYQQiA7Cl7X+Xdv9+AeDnH7jvtbzAHSnj5OAbL69p1yexhMFCPJ5ACBZiC5ZkXELPYGb8dNX6bUv1/Bd7pfPVmVDtrAAAAABJRU5ErkJggg=="},"./MapStore2/web/client/product/assets/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},"./MapStore2/web/client/reducers/controls.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/controls.js"),o=n("./node_modules/object-assign/index.js"),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return a()({},e,s({},t.control,a()({},e[t.control],s({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,void 0)))):a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,t.value))));case r.b:return a()({},e,s({},t.control,a()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),i=o.reduce((function(t,n){return a()(t,s({},n,a()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return a()({},e,i);default:return e}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),i=function(e){return e.backgroundSelector&&e.backgroundSelector.source},u=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},d=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},l=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},c=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},m=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},_=Object(r.a)(o.p,a.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(s.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"x",(function(){return c})),n.d(t,"e",(function(){return m})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return f})),n.d(t,"u",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return M})),n.d(t,"t",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return v})),n.d(t,"s",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"f",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return E}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/selectors/map.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(u(e),["Context"])}})),_=function(e){return m(e)},f=Object(r.a)((function(e){return Object(a.get)(l(e),"plugins")}),(function(e){return Object(a.get)(l(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(u(Object(a.get)(e,"desktop",[])),u(t.filter((function(e){return e.active}))))}})),p=(Object(r.a)(l,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(a.get)(e,"context.loading")}(e)?_(e):f(e)||m(e)}),h=function(e){return Object(r.a)(l,p,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(a.findIndex)(Object(a.get)(n,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(r.a)((function(e){return Object(i.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/dashboard.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/router.js"),a=function(e){return e&&e.dashboard&&e.dashboard.editor&&e.dashboard.editor.available},s=function(e){return e&&e.dashboard&&e.dashboard.editing},i=function(e){return e&&e.dashboard&&e.dashboard.showConnections};Object(r.a)(o.a,(function(e){return e&&e.dashboard&&e.dashboard.resource}),(function(e){return e&&e.browser&&e.browser.mobile}),(function(e,t,n){return n?!n:t&&t.canEdit||isNaN(e.substr(-4))}))},"./MapStore2/web/client/selectors/dimension.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return _})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"g",(function(){return M})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n("./MapStore2/web/client/selectors/layers.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Object(a.find)(e.dimensions||[],{name:t})},_=function(e,t){return function(n){return c(e.id,t)(n)||m(e,t)}},f=function(e){return Object(r.p)(e).reduce((function(t,n){var r=_(n,"time")(e);return r?d(d({},t),{},l({},n.id,r)):t}),{})},p=function(e){return Object(r.p)(e).filter((function(e){return m(e,"time")}))},h=function(e){var t=Object(a.get)(e,"dimension.currentTime");return t&&t.split("/")[0]},y=function(e){return Object(a.get)(e,"dimension.offsetTime")},M=function(e){return!!y(e)},g=(Object(o.a)(f,(function(e){return Object.keys(e).reduce((function(t,n){return[].concat(s(t),s(e[n]&&e[n].values||[]))}),[]).sort()||[]})),function(e){return function(t){return s(Object(a.get)(_(e,"time")(t),"values",[])).sort()}}),b=function(e,t){var n=c(t,"time")(e),r=n&&n.domain&&n.domain.split("--");if(r&&2===r.length)return r&&{start:r[0],end:r[1]};var o=n&&n.domain&&n.domain.split(",");return o&&o.length>0?{start:o[0],end:o[o.length-1]}:null}},"./MapStore2/web/client/selectors/layers.js":function(e,t,n){"use strict";n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return L})),n.d(t,"k",(function(){return j})),n.d(t,"u",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"l",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"m",(function(){return D})),n.d(t,"w",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"e",(function(){return x})),n.d(t,"v",(function(){return E})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return H})),n.d(t,"q",(function(){return A})),n.d(t,"t",(function(){return F})),n.d(t,"r",(function(){return I}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=n("./MapStore2/web/client/utils/SearchUtils.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/TOCUtils.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=e.config;return t&&Object(d.isArray)(t)?t:t&&t.flat||n&&n.layers||[]},p=function(e){return Object(d.head)(f(e).filter((function(e){return e&&e.visibility&&"background"===e.group})))},h=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.id===t})))},y=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.name===t})))},M=function(e){return f(e).filter((function(e){return"background"===e.group}))},g=function(e){return Object(d.get)(e,"mapInfo.centerToMarker","")},b=Object(r.a)([f,u.c,function(e){return e.search&&e.search},g,function(e){return Object(d.get)(e,"additionallayers",[])},function(e){return e.annotations&&e.annotations.showMarker&&e.annotations.clickPoint}],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=a.filter((function(e){return"override"===e.actionType})),c=a.filter((function(e){return"overlay"===e.actionType})).map((function(e){return e.options})),_=e.map((function(e){var t=(Object(d.head)(l.filter((function(t){return t.id===e.id})))||{}).options;return t?m(m({},e),t):m({},e)}));if(_=_.concat(c),t){_.push(Object(o.h)("GetFeatureInfoHighLight",{features:t.features},void 0,{overrideOLStyle:!0,featuresCrs:t.featuresCrs,style:m(m({},s.a),{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}));var f="enabled"===r?Object(i.getNormalizedLatLon)(t.latlng):t.latlng;_.push(Object(o.h)("GetFeatureInfo",f))}if(u){var p="enabled"===r?Object(i.getNormalizedLatLon)(u.latlng):u.latlng;_.push(Object(o.h)("Annotations",p)),_.push(Object(o.h)("GetFeatureInfo",m({},p)))}if(n&&n.markerPosition){var h=Object(d.isObject)(n.style)&&n.style||{};_.push(Object(o.h)("GeoCoder",n.markerPosition,"marker",{overrideOLStyle:!0,style:m(m({},s.a),h)},n.markerLabel))}return _})),L=function(e){return e.layers&&e.layers.flat&&e.layers.groups||[]},j=function(e){return e.layers&&e.layers.flat&&e.layers.groups&&Object(a.denormalizeGroups)(e.layers.flat,e.layers.groups).groups||[]},v=function(e){return e.layers&&e.layers.selected||[]},Y=function(e){return v(e).map((function(t){return Object(d.find)(f(e),{id:t})}))},w=function(e){var t=Y(e)||[];return t&&t[0]},O=function(e){return e.layers&&e.layers.filter||""},k=function(e){return e.layers&&e.layers.settings||{expanded:!1,options:{opacity:1}}},D=function(e){return e.layers&&e.layers.layerMetadata||{expanded:!1,metadataRecord:{},maskLoading:!1}},S=function(e){return e.controls&&e.controls.layerdownload?{expanded:e.controls.layerdownload.enabled}:{expanded:!1}},T=function(e){return e.controls&&e.controls.backgroundSelector||{}},x=function(e){var t=T(e),n=M(e)||[];return t.currentLayer&&!Object(d.isEmpty)(t.currentLayer)?t.currentLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},E=function(e){var t=T(e),n=M(e)||[];return t.tempLayer&&!Object(d.isEmpty)(t.tempLayer)?t.tempLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},P=function(e,t){return(f(e)||[]).filter((function(e){return e&&e.dimensions&&Object(d.find)(Object(d.castArray)(e.dimensions),{name:t})}))},H=function(e){var t=k(e),n=f(e),r=j(e);return"layers"===t.nodeType&&Object(d.isArray)(n)&&Object(d.head)(n.filter((function(e){return e.id===t.node})))||"groups"===t.nodeType&&Object(d.isArray)(r)&&Object(d.head)(Object(l.b)(r,0,!0).filter((function(e){return e.id===t.node})))||{}},A=function(e){return f(e).filter(o.b)},F=function(e){return"Error"===(w(e)||{}).loadingError},I=function(e){return Y(e).filter(o.b)}},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},a=function(e){return(o(e)||{}).monitorState},s=function(e){return function(t){return Object(r.get)(function(e){return Object(r.get)(o(e),"plugins")}(t),e)}},i=function(e){return Object(r.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.locale&&e.locale.current||"en-US"},s=function(e){return e.locale&&e.locale.messages||{}},i=Object(r.a)([a],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return s})),n.d(t,"o",(function(){return i})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"n",(function(){return c})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"k",(function(){return g})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return v}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},i=Object(o.a)([s],(function(e){return e&&e.projection})),u=function(e){return Object(a.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(a.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(a.get)(s(e),"mapId")&&parseInt(Object(a.get)(s(e),"mapId"),10)||null}(e)},d=function(e){return Object(a.get)(s(e),"info")},l=function(e){var t=Object(a.get)(d(e),"canEdit");return void 0===t?Object(a.get)(e,"context.resource.canEdit"):t},c=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},m=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},_=function(e){return m(e).restrictedExtent},f=function(e){return m(e).crs},p=function(e){var t=m(e),n=i(e);return n&&Object(a.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(a.get)(t,"minZoom")},h=function(e){return Object(a.get)(s(e),"bbox")},y=function(e){return Object(a.get)(function(e){return Object(a.get)(s(e),"limits")}(e),"minZoom")},M=Object(o.a)([function(e){return Object(a.get)(s(e),"resolutions")},i],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),g=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},b=function(e){return Object(a.get)(s(e),"eventListeners.mousemove",[])},L=function(e){return!!b(e).length},j=function(e){return b(e).includes("mouseposition")},v=function(e){return b(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"u",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"r",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"v",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"k",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"s",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"w",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"e",(function(){return H})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return C})),n.d(t,"q",(function(){return N}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),s=n("./MapStore2/web/client/selectors/context.js"),i=n("./MapStore2/web/client/selectors/locale.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js"),d=n("./MapStore2/web/client/selectors/maptype.js"),l=n("./MapStore2/web/client/selectors/localConfig.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&t})),h=function(e){return Object(r.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(r.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},M=function(e){return Object(r.get)(e,"mapInfo.configuration",{})},g=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},b=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},L=function(e){return Object(r.get)(e,"mapInfo.itemId",null)},j=function(e){return Object(r.get)(e,"mapInfo.overrideParams",{})},v=function(e){return Object(r.get)(e,"mapInfo.filterNameList",[])},Y=Object(o.a)((function(e){return!Object(r.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(r.get)(e,"controls.measure.enabled")&&(Object(r.get)(e,"measurement.lineMeasureEnabled")||Object(r.get)(e,"measurement.areaMeasureEnabled")||Object(r.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(r.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(r.get)(e,"annotations.editing")}),Object(s.b)("Identify"),(function(e,t,n,r,o){return e||!!t||n||!!r||!o})),w=Object(o.c)({format:h,map:a.l,point:g,currentLocale:i.b,maxItems:function(e){return Object(r.get)(e,"mapInfo.configuration.maxItems")}}),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},D=function(e){return e.mapInfo&&e.mapInfo.responses||[]},S=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},T=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},x=Object(o.a)(S,D,h,a.f,(function(e,t,n,r){var o=Object(u.i)(n);return e.length===t.length&&o.getValidResponses(t,r)})),E=Object(o.a)(x,k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),P=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.features")},H=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.featuresCrs")},A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(r.omit)(e,"radius")}},F=function(e){return function(t){return m(m({},t),{},{style:A(e)(t)})}},I=Object(o.a)(g,O,P,H,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(r.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,n,o,a,s){return a&&e?t?m(m({},e),{},{featuresCrs:o,features:n&&Object(r.isArray)(n)&&n.map(F(s))}):e:void 0})),C=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},N=function(e){var t,n;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(n=t.configuration)||void 0===n?void 0:n.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},a=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/selectors/timeline.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"k",(function(){return D})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return x})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return P})),n.d(t,"q",(function(){return H})),n.d(t,"b",(function(){return A})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return I}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),d=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/selectors/layers.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:a,type:"range",content:"".concat(u," items")}]:Object(i.l)({start:d,end:l,duration:a}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return j(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=p(n,3),o=r[0],a=r[1],s=r[2],u=Math.max.apply(Math,f(e.histogram.values)),d=Object(i.k)({start:o,end:a,duration:s});return e.histogram.values.map((function(e,t){return m(m({},d[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(i.i)(e.domain)?j(e.values||e.domain.split(","),t):n&&n.histogram?v(n,t):[]},w=Object(a.a)(u.i,M,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(e).map((function(r){return Y(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(m({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(f(e),f(t))}),[]))})),O=function(e){return Object(r.get)(e,"timeline.loading")},k=function(e){return Object(r.get)(e,"timeline.selectedLayer")},D=function(e){return Object(l.g)(e,k(e))},S=function(e){return D(e)&&D(e).name},T=function(e){return D(e)&&D(e).dimensions&&Object(r.head)(D(e).dimensions.filter((function(e){return"time"===e.name})))},x=function(e){return Object(r.get)(T(e),"source.url")},E=Object(o.a)(u.a,u.h,(function(e,t){return{start:e,end:t}})),P=function(e){return Object(u.c)(e,k(e))},H=u.f,A=Object(o.a)(H,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),F=function(e){return!g(e)&&A(e)},I=function(e){return function(t){var n=(Object(d.l)(t)||{}).bbox;if(!n)return{};var o=Object(u.b)(e,"time")(t),a=Object(r.get)(o,"source.version"),i=Object.keys(n.bounds).reduce((function(e,t){return m(m({},e),{},_({},t,parseFloat(n.bounds[t])))}),{});if(!i||!L(t))return{};if("1.1"!==a){var l=Object(u.b)(e,"space")(t),c=Object(r.get)(l,"domain.CRS");if(!c||!i||!L(t))return{};var f=p(Object(s.reprojectBbox)(i,Object(d.o)(t),c),4),h=f[0],y=f[1],M=f[2],g=f[3];return M0;)if(!n[i=a.shift()])for(n[i]=!0,s.push(i),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},a=Object.keys(o).map((function(t){return p(o[t],e)}))||[];return[].concat(c(t),c(a.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),M=n("./node_modules/reselect/es/index.js"),g=n("./MapStore2/web/client/utils/ReselectUtils.js");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),D=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].widgets"))},S=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].collapsed"))},T=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].maximized"))},x=Object(M.a)(D,S,T,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),E=Object(M.a)(S,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),P=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},H=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},A=Object(M.a)(P,H,o.l,s.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),F=Object(M.a)(P,H,o.l,s.a,O,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=a&&"map"!==a.widgetType?a&&a.layer||{}:a&&a.map&&a.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(s)||s.name===e.layer.name})).filter((function(e){return a&&a.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),I=function(e){return Object(r.get)(v(e),"".concat(i.f))},C=function(e){return Object(r.get)(I(e),"active")},N=(Object(M.a)(D,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=d(h(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(l.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layouts"))}),R=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layout"))},W=function(e){return Object(r.get)(e,"widgets.tray")},G=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},z=function(e){return Object(r.get)(O(e),"filter")},U=Object(g.a)(Y,w,(function(e){return w(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.l)(e),t.slice(4)):t.match(i.A)?function(e,t){var n=i.A.exec(e),o=n&&n[2],a=p(e,t);return o?Object(r.get)(a,o):a}(t,D(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return L(L({},t),{},j({},Object.keys(e)[o],n[o]))}),{})}));Object(M.c)({widgets:D,layouts:N})},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t,n,o){var a=e;isNaN(parseFloat(e))&&(a=r.hexToHsv(e)[0]);var s=.5/(n-1),i=t/(n-1),u=[];1===n&&(s=.5,i=t/2);for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:"red";return a()(e).toHexString()},d=function(e,t,n){var r=a()(e);return e&&r.setAlpha(Object(s.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,a,s,i,u,d=e/255,l=t/255,c=n/255;switch(o=Math.min(Math.min(d,l),c),s=(a=Math.max(Math.max(d,l),c))-o,a){case o:i=0;break;case d:i=60*(l-c)/s,l0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:u,colorToRgbaStr:d}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return x})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return A})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return N})),n.d(t,"reprojectExtent",(function(){return W})),n.d(t,"getPolygonFromExtent",(function(){return G})),n.d(t,"getExtentFromNormalized",(function(){return z})),n.d(t,"crsCodeTable",(function(){return U})),n.d(t,"setCrsLabels",(function(){return B})),n.d(t,"getUnits",(function(){return J})),n.d(t,"getProjectedBBox",(function(){return V})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return K})),n.d(t,"lineIntersectPolygon",(function(){return Q})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ae})),n.d(t,"filterCRSList",(function(){return se})),n.d(t,"calculateAzimuth",(function(){return ie})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return de})),n.d(t,"getGeoJSONExtent",(function(){return le})),n.d(t,"isValidExtent",(function(){return ce})),n.d(t,"calculateCircleCoordinates",(function(){return me})),n.d(t,"transformLineToArcs",(function(){return _e})),n.d(t,"transformArcsToLine",(function(){return fe})),n.d(t,"coordsOLtoLeaflet",(function(){return pe})),n.d(t,"mergeToPolyGeom",(function(){return he})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return Me})),n.d(t,"fetchProjRemotely",(function(){return ge})),n.d(t,"parseURN",(function(){return be})),n.d(t,"parseString",(function(){return Le})),n.d(t,"getWMSBoundingBox",(function(){return je})),n.d(t,"isSRSAllowed",(function(){return ve})),n.d(t,"getNormalizedLatLon",(function(){return Ye})),n.d(t,"isInsideVisibleArea",(function(){return we})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return De})),n.d(t,"midpoint",(function(){return Se})),n.d(t,"pointObjectToArray",(function(){return Te})),n.d(t,"isPointInsideExtent",(function(){return xe})),n.d(t,"isBboxCompatible",(function(){return Ee})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return He})),n.d(t,"makeBboxFromOWS",(function(){return Ae}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),a=n("./MapStore2/web/client/libs/proj4.js"),s=n.n(a),i=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(i),d=n("./node_modules/object-assign/index.js"),l=n.n(d),c=n("./MapStore2/node_modules/lodash/lodash.js"),m=n("./node_modules/@turf/line-intersect/index.js"),_=n.n(m),f=n("./node_modules/@turf/polygon-to-linestring/index.js"),p=n.n(f),h=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),M=n.n(y),g=n("./node_modules/@turf/bbox-polygon/main.es.js"),b=n("./node_modules/@turf/boolean-overlap/main.es.js"),L=n("./node_modules/@turf/boolean-contains/main.es.js");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return E(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function H(e,t,n){if(null===e)return e;var r=Object(c.cloneDeep)(e);return"Feature"===e.type?r.geometry=H(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return H(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return H(e,t,n)})):t&&t(r),n&&n(r),r}function A(e){return"string"==typeof e||e instanceof String?s.a.defs(e)?new s.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},C=function(e){var t=e;return Object(c.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(c.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},N=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&s.a.defs(t)?new s.a.Proj(t):null,a=n&&s.a.defs(n)?new s.a.Proj(n):null;if(o&&a){var i=Object(c.isArray)(e)?s.a.toPoint(e):s.a.toPoint([e.x,e.y]),u=l()({},t===n?C(i):s.a.transform(o,a,C(i)),{srs:n});return r?I(u):u}return null},R=["EPSG:900913","EPSG:4326","EPSG:3857"],W=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])})):[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])},G=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(g.a)(e):null},z=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[N([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),N([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),i=Math.sin(n),u=o*s,d=o*i,l=a*s,c=a*i,m=e.x,_=e.y,f=m-u+c,p=m-u-c,h=m+u-c,y=m+u+c,M=_-d-l,g=_-d+l,b=_+d+l,L=_+d-l,j=S.createBBox(Math.min(f,p,h,y),Math.min(M,g,b,L),Math.max(f,p,h,y),Math.max(M,g,b,L));return j},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=A(r)),"string"==typeof o&&(o=A(o));var a=T(r,o);return H(e,(function(e){e.crs&&delete e.crs,e.coordinates=E(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return a.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],H(e,(function(e){E(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Q=function(e,t){var n=p()(t).features[0];return 0!==_()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(c.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var a=[];for(var s in r)if(r.hasOwnProperty(s)){var i=S.reproject(r[s],t,n,o);if(!i)return null;var u=i.x,d=i.y;a.push(u),a.push(d)}return a},$=function(e){var t=Object(c.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,a=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,a],[o,a],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?S.getCompatibleSRS(n,t):n},oe=function(e,t){return t[S.getCompatibleSRS(e,t)]},ae=function(){var e={};for(var t in s.a.defs)s.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},se=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return l()({},-1===t.indexOf(r)?n:v(v({},n),{},Y({},r,e[r])))}),{}),a=r.map((function(e){return e.code})),s=Object.keys(n).reduce((function(e,t){return l()({},-1===a.indexOf(t)?e:v(v({},e),{},Y({},t,n[t])))}),{});return l()({},o,s)},ie=function(e,t,n){var r=S.reproject(e,n,"EPSG:4326"),o=S.reproject(t,n,"EPSG:4326"),a=r.x*Math.PI/180,s=r.y*Math.PI/180,i=o.x*Math.PI/180,u=o.y*Math.PI/180,d=i-a,l=Math.sin(d)*Math.cos(u),c=Math.cos(s)*Math.sin(u)-Math.sin(s)*Math.cos(u)*Math.cos(d);return(180*Math.atan2(l,c)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(x).indexOf(t)?x[t](e):0},de=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},le=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=S.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(c.chunk)(Object(c.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return S.getGeoJSONExtent(e.geometry)}return n},ce=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},me=function(e,t,n,r){var o,a,s,i=Math.PI*(1/n-.5);r&&(i+=r/180*Math.PI);for(var u=[[]],d=0;d1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(c.head)(e),Object(c.last)(e)]:e.length>t?[Object(c.head)(e)].concat(S.transformArcsToLine(Object(c.slice)(e,t))):[]},pe=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(c.head)(R.filter((function(e){return e===t})))){var n=z(e,t),r=n.extent,o=n.isIDL,a=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var s=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:a,extent:r,center:[s=s>180?s-360:s,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:a[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var i=[e.minx,e.miny,e.maxx,e.maxy],u=[i[0],i[1]],d=[i[2],i[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],d[1]],d,[d[0],u[1]],u]],extent:i,center:[(i[0]+i[2])/2,(i[1]+i[3])/2]}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=S.getViewportGeometry(t,n),a=o.extent;if(4===a.length)return S.reprojectBbox(a,n,r);var s=a.map((function(e){return e[2]-e[0]})),i=O(s,2),u=i[0],d=i[1];return u>d?S.reprojectBbox(a[0],n,r):S.reprojectBbox(a[1],n,r)},ge=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||P(n),null,{timeout:2e3})},be=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(c.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},Le=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},je=function(e,t){var n=t||"EPSG:3857",r=e&&Object(c.isArray)(e)&&Object(c.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&S.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(c.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},ve=function(e){return!!s.a.defs(e)},Ye=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:S.normalizeLng(n)}},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var s=S.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),i=v({left:0,right:0,top:0,bottom:0},n),u={minx:s[0]+i.left*r,miny:s[1]+i.bottom*r,maxx:s[2]-i.right*r,maxy:s[3]-i.top*r},d=S.getViewportGeometry(u,t.projection),l=4===d.extent.length?[w(d.extent)]:w(d.extent);return Object(c.head)(l.map((function(e){return a.x>=e[0]&&a.y>=e[1]&&a.x<=e[2]&&a.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection),s=v({left:0,right:0,top:0,bottom:0},n),i={width:(t.size.width-s.right-s.left)*r,height:(t.size.height-s.top-s.bottom)*r},u={minx:a.x-i.width/2-s.left*r,miny:a.y-i.height/2-s.bottom*r,maxx:a.x+i.width/2+s.right*r,maxy:a.y+i.height/2+s.top*r},d=S.getViewportGeometry(u,t.projection);if(4===d.extent.length)return{pos:N([d.extent[0]+t.size.width/2*r,d.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(d.extent[0][2]-d.extent[0][0])>Math.abs(d.extent[1][2]-d.extent[1][0])){var l=N([d.extent[0][2]-t.size.width/2*r,d.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),c=v(v({},l),{},{x:l.x+(o.lng>l.x?360:0)});return{pos:c,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:N([d.extent[1][0]+t.size.width/2*r,d.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,a=Object(c.isArray)(n)?n:[n.x,n.y];if(Object(c.isNumber)(a[0])&&!isNaN(a[0])&&Object(c.isNumber)(a[1])&&!isNaN(a[1])&&Object(c.isNumber)(t.x)&&!isNaN(t.x)&&Object(c.isNumber)(t.y)&&!isNaN(t.y)){var s=Object(c.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,i=s&&(Object(c.isArray)(s)?s:[s.x,s.y]);return Object(c.isArray)(i)?Math.sqrt((a[0]-i[0])*(a[0]-i[0])+(a[1]-i[1])*(a[1]-i[1])):o}return o},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,a=e.maximumFractionDigits,s=void 0===a?0:a;return 0===s&&Math[n]?Math[n](o):o},Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(c.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(c.isArray)(t)?{x:t[0],y:t[1]}:t,a={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[a.x,a.y]:a},Te=function(e){return Object(c.isObject)(e)&&Object(c.isNumber)(e.x)&&Object(c.isNumber)(e.y)?[e.x,e.y]:e},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(L.a)(G(t),M()([e.lng,e.lat]))},Ee=function(e,t){return Object(b.a)(e,t)||Object(L.a)(e,t)||Object(L.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},He=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=U[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ae=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var a=n.slice(),s=r.slice();n=[s[0],a[1]],r=[a[0],s[1]]}return[n[0],n[1],r[0],r[1]]};S={setCrsLabels:B,getUnits:J,reproject:N,getProjectedBBox:V,createBBox:q,reprojectGeoJson:K,lineIntersectPolygon:Q,normalizePoint:I,normalizeLng:Z,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ae,filterCRSList:se,calculateAzimuth:ie,calculateDistance:ue,FORMULAS:x,extendExtent:de,getGeoJSONExtent:le,isValidExtent:ce,calculateCircleCoordinates:me,transformLineToArcs:_e,transformArcsToLine:fe,coordsOLtoLeaflet:pe,mergeToPolyGeom:he,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:Me,fetchProjRemotely:ge,parseURN:be,determineCrs:A,parseString:Le,getWMSBoundingBox:je,isSRSAllowed:ve,getNormalizedLatLon:Ye,isInsideVisibleArea:we,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:De,midpoint:Se,pointObjectToArray:Te,getExtentFromNormalized:z,getPolygonFromExtent:G,isPointInsideExtent:xe,isBboxCompatible:Ee,extractCrsFromURN:Pe,crsCodeTable:U,makeNumericEPSG:He,makeBboxFromOWS:Ae},t.default=S},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},a=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,s=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function i(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function u(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var d={HTML:{getValidResponses:function(e,t){return t?e.filter(i):e},getNoValidResponses:function(e){return e.filter((function(e){return!i(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},k=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var s=n.startDate.toISOString?n.startDate.toISOString():n.startDate,i=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+s+"<"+r+":UpperBoundary><"+r+":Literal>"+i+"")}}else if(n.startDate){var u=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+u+"")}return o},D=function(e,t,n,r){var o;return Object(m.isNil)(n)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},S=function(e,t,n,r){var o;return L(n,t)&&(o="isNull"===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag):"="===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+""):a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>*"+n+"*")),o},T=function(e,t,n,r){var o="";return L(n,t)&&"="===t&&""!==n&&(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},x=function(e,t,n,r){var o;if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=a.ogcComparisonOperators["<="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=a.ogcComparisonOperators[">="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var s=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(s)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+s+""))}return o},E=function(e,t){var n="";switch(e.type){case"date":n=k(e.attribute,e.operator,e.values,t);break;case"number":n=x(e.attribute,e.operator,e.values,t);break;case"string":n=S(e.attribute,e.operator,e.values,t);break;case"boolean":n=T(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+S(e.attribute,o,r,t)}),""),n=a.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(b(o),"')")},H=function(e){return"collectGeometries(".concat(e,")")},A=function(e,t,n){var r,s,i,u,d=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?M.processOGCFilterGroup(e.groupFields[0],e,n):M.processOGCFilterFields(null,e,n))&&d.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var l=a.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return E(e,n)})).join(""));d.push(l)}if(Object(m.isArray)(e.spatialField)?(u=Object(m.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(i=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?u=e.spatialField:i=[e.spatialField]),u){if(Object(m.isArray)(u.geometry&&u.geometry.extent[0])){var c=u.geometry.extent.reduce((function(e,r){var o=Object.assign({},u);return u.geometry.extent=r,e+M.processOGCSpatialFilter(t,o,n)}),"");s=a.ogcLogicalOperators.OR(n,c)}d.push(s)}else if(i&&(i=i.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var _=i.map((function(e){return M.processOGCSpatialFilter(t,e,n)})).join("");s=i.length>1?a.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,_):_,d.push(s)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var f=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?f.forEach((function(e){return d.push(M.processOGCCrossLayerFilter(e,n))})):d.push(M.processOGCCrossLayerFilter(f,n))}return e.options&&e.options.cqlFilter&&d.push(g(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),d},F=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var d=w(n||"2.0"),l="2.0"===d?"fes":"ogc",c=M.getGetFeatureBase(d,r.pagination,a,s,t&&t.options),m=M.toOGCFilterParts(r,d,l),_="";return m.length>0&&(_="<"+l+":Filter>",1===m.length?_+=m[0]:(_+="<"+l+":And>",m.forEach((function(e){_+=e})),_+=""),_+=""),c+=""),c+=_,i&&(c+=i.map((function(e){return O[l].startTag+e+O[l].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(c+="<"+l+":SortBy><"+l+":SortProperty>"+O[l].startTag+o.sortBy+O[l].endTag+"<"+l+":SortOrder>"+o.sortOrder+""),c+=""},I=function(e,t,n){var r=M.processOGCFilterFields(e,t,n),o=M.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=M.processOGCFilterGroup(e,t,n)})),""!==r?a.ogcLogicalOperators[e.logic](n,r):""},C=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&L(t.value,t.operator)})):t.filterFields.filter((function(e){return L(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=k(t.attribute,t.operator,t.value,n);break;case"number":r=x(t.attribute,t.operator,t.value,n);break;case"string":r=S(t.attribute,t.operator,t.value,n);break;case"boolean":r=T(t.attribute,t.operator,t.value,n);break;case"list":r=D(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=S(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},N=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},R=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},W=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},G=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},z=function(e,t,n){if(t.collectGeometries)return M.processOGCCrossLayerFilter(t);var s=O[n].startTag+t.attribute+O[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":s+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(s+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var i=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];s+=''+i+""+u+""}return a.ogcSpatialOperators[t.operation](n,s)},U=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=w(e),s="";break;case"1.1.0":s+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",s=n?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:s+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",s=n&&!t?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return s},B=function(e){return Object(m.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(m.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(m.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&M.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},J=function(e,t){var n=t||"ogc",r=O[n].startTag+e.attribute+O[n].endTag;if(e.collectGeometries){var o=M.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),a.ogcSpatialOperators[e.operation](n,r)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=M.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var a=t.simpleFilterFields.reduce((function(e,t){var n=e,r=M.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");a=a.length>0?a:"INCLUDE",o.push(a)}if(t.spatialField&&(r=M.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var s=t.crossLayerFilter,i=s.operation,u=s.attribute,d=s.collectGeometries&&s.collectGeometries.queryCollection;if(i&&u&&d){var l=d.typeName,c=d.geometryName,m=M.getCrossLayerCqlFilter(s),_=H(P({typeName:l,geometryName:c,cqlFilter:m}));o.push("".concat(i,"(").concat(u,",").concat(_,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},q=function(e,t){var n="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,r=M.processCQLFilterFields(n,t),o=M.findSubGroups(n,t.groupFields);if(o.length>0){var a=o.map((function(e){return(n.negateAll?"NOT (":"(")+M.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,a].join(" "+n.logic+" "):a}return r},K=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=v(e);if(!Object(m.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+b(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+b(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+b(n)+"%'")}return r},$=function(e,t,n){var r="";Object(m.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=v(e);if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var a=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(a)||(r=o+" "+t+" '"+a+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return M.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=M.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=M.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=M.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=M.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=M.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=M.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=M.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=M.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=M.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ae=function(e,t){return'\n \n ')},se=function(e,t,n){var r=M.toOGCFilter(e,t,n),o=r.search("<".concat(M.nsplaceholder,":Filter>"));if(-1!==o){var a=r.search("");r=r.substr(o,a-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},ie=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?M.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):M.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,a=e.crossLayerFilter,s=void 0===a?{}:a;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||s&&s.attribute&&s.operation)},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(m.isArray)(e.spatialField)&&Object(m.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,a=void 0===o?[]:o,s=t.groupFields,i=void 0===s?[]:s,u=t.spatialField,d=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(a.length>0&&i.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(d),logic:e.logic,id:"".concat(e.id,"_").concat(d),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(a.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(d)})}))),spatialField:ce(e.spatialField,u),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},_e=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,a=e.spatialField.geometry.radius,s=Object(c.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,i=o&&[(n=Object(c.reproject)(o,r,t)).x,n.y],u=a&&Object(c.reproject)([a,0],r,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:i,radius:u,coordinates:s,projection:t})})})},fe=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?M.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},pe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,a=void 0===r?"2.0":r,i=e.addXmlnsToRoot,d=void 0!==i&&i,c=e.xmlnsToAdd,f=void 0===c?[]:c,p=l()({filterNS:n,wfsVersion:a,gmlVersion:Object(o.wfsToGmlVersion)(a)}),h=u()(p),y=arguments.length,M=new Array(y>1?y-1:0),g=1;g");return"".concat(b.slice(0,L)).concat(f.length>0?" ".concat(f.join(" ")):"").concat(b.slice(L))}return b};M={processOGCFilterGroup:I,processOGCFilterFields:C,processOGCCrossLayerFilter:J,getGetFeatureBase:U,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:B,processCQLFilterGroup:q,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Q,processCQLFilterFields:re,getCQLGeometryElement:K,cqlStringField:X,cqlDateField:Z,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:_e,processOGCSpatialFilter:z,mergeFiltersToOGC:pe}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return T})),n.d(t,"g",(function(){return x})),n.d(t,"i",(function(){return E})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return H})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return I}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),a=n("./node_modules/turf-point-on-surface/index.js"),s=n.n(a),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),d=n.n(u),l=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),c=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),_=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),f=n.n(_),p=n("./MapStore2/web/client/utils/mapinfo/wms.js"),h=n.n(p),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),M=n.n(y),g=n("./MapStore2/web/client/utils/mapinfo/vector.js"),b=n.n(g);function L(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,a){if(a){var s;a.queryParams&&a.queryParams.hasOwnProperty("info_format")&&(s=a.queryParams.info_format),a.queryParams&&a.queryParams.hasOwnProperty("outputFormat")&&(s=a.queryParams.outputFormat);var i=(o.c[a.format||o.b[s]||o.b[e]]||t).getValidResponses([a],r);return[].concat(L(n),L(i))}return L(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var a;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(a=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(a=r.queryParams.outputFormat);var s=(o.c[r.format||o.b[a]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(L(n),L(s))}return L(n)}),[])}}},P=function(){var e;return w(e={},o.a.PROPERTIES,l.a),w(e,o.a.JSON,l.a),w(e,o.a.HTML,c.a),w(e,o.a.TEXT,m.a),e},H=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:f.a,wms:h.a,wmts:M.a,vector:b.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},I=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var a=e[n];Object.keys(a).forEach((function(e){-1===Object(i.findIndex)(o,(function(t){return t===e}))&&(t[e]=a[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:D,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[s()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(L(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:d.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&Y({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return M})),n.d(t,"METERS_PER_UNIT",(function(){return g})),n.d(t,"GOOGLE_MERCATOR",(function(){return b})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return L})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return j})),n.d(t,"RESOLUTIONS_HOOK",(function(){return v})),n.d(t,"RESOLUTION_HOOK",(function(){return Y})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return w})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return k})),n.d(t,"registerHook",(function(){return S})),n.d(t,"getHook",(function(){return T})),n.d(t,"executeHook",(function(){return x})),n.d(t,"clearHooks",(function(){return E})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return H})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return I})),n.d(t,"getGoogleMercatorScales",(function(){return C})),n.d(t,"getResolutionsForScales",(function(){return N})),n.d(t,"getGoogleMercatorResolutions",(function(){return R})),n.d(t,"getResolutions",(function(){return W})),n.d(t,"getScales",(function(){return G})),n.d(t,"defaultGetZoomForExtent",(function(){return z})),n.d(t,"getZoomForExtent",(function(){return U})),n.d(t,"getCurrentResolution",(function(){return B})),n.d(t,"getCenterForExtent",(function(){return J})),n.d(t,"getBbox",(function(){return V})),n.d(t,"isNearlyEqual",(function(){return q})),n.d(t,"mapUpdated",(function(){return K})),n.d(t,"transformExtent",(function(){return Q})),n.d(t,"groupSaveFormatted",(function(){return Z})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ae})),n.d(t,"prepareMapObjectToCompare",(function(){return se})),n.d(t,"updateObjectFieldKey",(function(){return ie})),n.d(t,"compareMapChanges",(function(){return ue})),n.d(t,"createRegisterHooks",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./node_modules/object-assign/index.js"),l=n.n(d);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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(c,r))}function U(e,t,n,r,o){return T("EXTENT_TO_ZOOM_HOOK")?T("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):z(e,t,n,r,o,T("RESOLUTIONS_HOOK")?T("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||M)):null)}function B(e,t,n,r){return T("RESOLUTION_HOOK")?T("RESOLUTION_HOOK")(e,t,n,r):R(t,n,r)[e]}function J(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function V(e,t){return x("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var q=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function K(e,t){var n,o,a,s;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(q(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&q(null==t||null===(a=t.center)||void 0===a?void 0:a.y,null==e||null===(s=e.center)||void 0===s?void 0:s.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Q(e,t,n,r){var o=Object(s.getUnits)(e);return"ft"===o?{width:n/g.ft,height:r/g.ft}:"us-ft"===o?{width:n/g["us-ft"],height:r/g["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var Z=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,a,s,d){var c={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},m=t.map((function(e){return Object(u.saveLayer)(e)})),_=n.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(n,e);return t&&t.nodes?Z(t):null})).filter((function(e){return e})),f=o.filter((function(e){return!!e.thumbnail})),p=Object(u.extractSourcesFromLayers)(m),y=m.map((function(e){return l()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),M=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==M){var g=y[M].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):{}}));y[M]=Object(i.e)("features",g,y[M])}return h({version:2,map:l()({},c,{layers:y,groups:_,backgrounds:f,text_search_config:a,bookmark_search_config:s},!Object(r.isEmpty)(p)&&{sources:p}||{})},d)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=h(h({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,"annotations"===t.id?t.id:a()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,a()()))}),{}));return Object(i.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),Object(i.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return h(h({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:n[e.id],layer:h(h({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(i.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),a=[].concat(_(Object(r.get)(e,"map.backgrounds",[])),_(Object(r.get)(o,"map.backgrounds",[]))),s=n(Object(r.get)(e,"map.layers",[])),i=n(Object(r.get)(o,"map.layers",[])),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),d=Object(r.find)(i,(function(e){return"annotations"===e.id})),l=[].concat(_(i.filter((function(e){return"annotations"!==e.id}))),_(s.filter((function(e){return"annotations"!==e.id}))),_(u||d?[h(h(h({},u||{}),d||{}),{},{features:[].concat(_(Object(r.get)(u,"features",[])),_(Object(r.get)(d,"features",[])))})]:[])),c=l.filter((function(e){return"background"===e.group})),m=Object(r.findIndex)(c,(function(e){return e.visibility})),f=Object(r.get)(e,"map.sources",{}),p=Object(r.get)(o,"map.sources",{}),M=h(h({},f),p),g=Object(r.get)(e,"widgetsConfig",{}),b=Object(r.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(r.get)(e,"catalogServices",{})),{},{services:h(h({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:a,groups:Object(r.uniqWith)([].concat(_(Object(r.get)(e,"map.groups",[])),_(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(_(c.slice(0,m+1)),_(c.slice(m+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),_(l.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(M)?void 0:M}),widgetsConfig:{collapsed:h(h({},g.collapsed),b.collapsed),layouts:Object(r.uniq)([].concat(_(Object(r.keys)(g.layouts)),_(Object(r.keys)(b.layouts)))).reduce((function(e,t){return h(h({},e),{},y({},t,[].concat(_(Object(r.get)(g,"layouts.".concat(t),[])),_(Object(r.get)(b,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(_(Object(r.get)(g,"widgets",[])),_(Object(r.get)(b,"widgets",[])))},timelineData:h(h({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:h(h({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),s=Object(r.find)(n,(function(e){return"Default"===e.id})),i=s&&{id:a()(),title:t,expanded:s.expanded},u=s?[].concat(_(o.map((function(e){var t=e.id,n=m(e,["id"]);return h({id:"".concat(i.id,".").concat(t)},n)}))),[i]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:u,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return h(h({},m(e,["group"])),{},{group:!s||"background"===n||"Default"!==n&&n?s&&(null===(t=Object(r.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:i.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},se=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],a=c(o);"object"!==a||null===o||r(n)?"undefined"!==a&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},ie=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),a=Object(r.pick)(Object(r.cloneDeep)(t),n);return ie(o.map,"text_serch_config","text_search_config"),ie(a.map,"text_serch_config","text_search_config"),se(o),se(a),Object(r.isEqual)(o,a)},de=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:de,EXTENT_TO_ZOOM_HOOK:L,RESOLUTIONS_HOOK:v,RESOLUTION_HOOK:Y,COMPUTE_BBOX_HOOK:w,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:k,DEFAULT_SCREEN_DPI:M,ZOOM_TO_EXTENT_HOOK:j,registerHook:S,getHook:T,dpi2dpm:P,getSphericalMercatorScales:I,getSphericalMercatorScale:A,getGoogleMercatorScales:C,getGoogleMercatorResolutions:R,getGoogleMercatorScale:F,getResolutionsForScales:N,getZoomForExtent:U,defaultGetZoomForExtent:z,getCenterForExtent:J,getResolutions:W,getScales:G,getBbox:V,mapUpdated:K,getCurrentResolution:B,transformExtent:Q,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ae,prepareMapObjectToCompare:se,updateObjectFieldKey:ie,compareMapChanges:ue,clearHooks:E}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=function(e,t){return e===t},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},i=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,s())})),u=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,s(e))}))}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=n.n(r),a=n("./MapStore2/web/client/product/assets/img/marker-shadow.png"),s=n.n(a),i={iconUrl:o.a,shadowUrl:s.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},d=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),s=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var a=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,s=a||t.name||"";return s;case"description":var i=t.description||"";return i;case"both":var u=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,d=u||t.nam||"",l=t.description||"";return"".concat(d).concat(o&&l?o:"").concat(l);default:return t[e]}},u=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return i(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(a=a&&a.substring(0,o.maxLength)).length===o.maxLength&&(a+="..."),{title:i("title",t,n,o.separator),tooltipText:a}},d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(a.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return a})),n.d(t,"getCleanTemplate",(function(){return s})),n.d(t,"parseCustomTemplate",(function(){return i})),n.d(t,"generateTemplateString",(function(){return u})),n.d(t,"parseTemplate",(function(){return d}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,a)},s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(n),d=u&&u.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:a(t,n,r,s)?n:i(e)}}))||null;return d&&d.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(s(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},u=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),d=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var a=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(a)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},l={generateTemplateString:u,parseTemplate:d,validateStringAttribute:a,getCleanTemplate:s,parseCustomTemplate:i};t.default=l},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.width,s=void 0===a?64:a,i=o.height,u=void 0===i?64:i,d=o.contain,l=o.type,c=void 0===l?"image/jpeg":l,m=o.quality,_=void 0===m?.5:m,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var e=f.naturalWidth/f.naturalHeight,t=s,r=u,o=s/u,a=document.createElement("canvas");a.setAttribute("width",s),a.setAttribute("height",u),a.style.width=s+"px",a.style.height=u+"px";var i=a.getContext("2d"),l=!d&&eo?[t,t/e]:[r*e,r];i.save(),i.translate(t/2,r/2),i.drawImage(f,-l[0]/2,-l[1]/2,l[0],l[1]),i.restore();var m=a.toDataURL(c,_);n(m)},f.onerror=function(e){r(e)},f.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.type,s=void 0===a?"image/jpeg":a,i=o.quality,u=void 0===i?.5:i,d=document.createElement("video");d.crossOrigin="anonymous";var l=document.createElement("source"),c=document.createElement("canvas");d.addEventListener("loadedmetadata",(function(){var e=d.videoWidth,t=d.videoHeight;c.setAttribute("width",e),c.setAttribute("height",t),c.style.width=e+"px",c.style.height=t+"px"}),!0),d.addEventListener("loadeddata",(function(){d.currentTime=1}),!0),d.addEventListener("seeked",(function(){c.getContext("2d").drawImage(d,0,0);try{var e=c.toDataURL(s,u);n(e)}catch(e){r(e)}}),!0),d.addEventListener("error",(function(e){r(e)}),!0),d.appendChild(l),d.setAttribute("src",e)}))},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(e=t.match(a))||void 0===e?void 0:e[1];return s?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/TimeUtils.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"k",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return L})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return v}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/moment/moment.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=/PT?[\d\.]+[YMWDHMS]/,u=function(e){return e?Object(r.isString)(e)?new Date(e).getTime():(Object(r.isDate)(e)&&e.getTime(),e):null},d=function(e,t){var n=u(t),r=1/0,o=-1;return e.forEach((function(e,t){var a=u(e),s=Math.abs(a-n);s0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.start,i=o.end;if(!s||!i)return{count:l({start:t,end:n,duration:r}),start:t,end:n};var u=a.a.duration(r).asMilliseconds(),d=new Date(t).getTime(),c=new Date(n).getTime(),m=new Date(s).getTime(),_=new Date(i).getTime(),f=Math.ceil((m-d)/u),p=Math.floor((_-d)/u),h=Math.floor((c-d)/u);if(f>=0&&p<=h){var y=p-f;return{start:new Date(d+Math.max(0,f)*u),end:new Date(d+Math.min(h,p)*u),count:y}}return{count:l({start:t,end:n,duration:r}),start:t,end:n}},f=function(e){return e.match(i)[0]},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=arguments.length>1?arguments[1]:void 0,o=new Date(t),s=new Date(n),i=Math.floor(s.getTime()-o.getTime())/r,u=a.a.duration(i).toISOString(),d=f(u);return{range:{start:t,end:n},resolution:d}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[d(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},M=function(e,t){var n=a()(e).diff(t);return{start:n>=0?t:e,end:n>=0?e:t}},g=function(e){return 6e4*e.getTimezoneOffset()},b=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCHours();n=n<10?"0"+n:n;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var a=t.getUTCSeconds();return a=a<10?"0"+a:a,"".concat(n,":").concat(o,":").concat(a)},L=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCMonth()+1,o=t.getUTCDate();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(n,"-").concat(o)},j=function(e,t){var n=Object(s.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return n;default:return n+" HH:mm:SS"}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,n=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,a=Object(r.castArray)(n.DimensionDomain||[]).concat(),s=n["@version"]||n.version,i=Object(r.get)(n,"SpaceDomain.BoundingBox");return i&&a.push({Identifier:"space",Domain:i}),a.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:s,url:o},name:t,domain:n}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return i}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,s=t.filterObj,i=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(s)&&Object(r.toCQLFilter)(s),t&&t.params&&t.params.CQL_FILTER,n];return(e=(i=i.filter((function(e){return!!e}))).length>1?i.map((function(e){return"(".concat(e,")")})).join(" AND "):i.pop())?a(a({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return l})),n.d(t,"toDescribeURL",(function(){return c})),n.d(t,"extractGeometryType",(function(){return m})),n.d(t,"extractGeometryAttributeName",(function(){return _}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,s=e.describeFeatureTypeURL,i=a.a.parse(s||r.url||o,!0);return a.a.format(u(u({},i),{},{search:void 0,query:u(u({},i.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},m=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},_=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return d})),n.d(t,"getMatrixIds",(function(){return l})),n.d(t,"limitMatrix",(function(){return c})),n.d(t,"getTileMatrixSet",(function(){return m})),n.d(t,"getRequestEncoding",(function(){return _})),n.d(t,"getOperations",(function(){return f})),n.d(t,"getOperation",(function(){return p})),n.d(t,"getGetTileURL",(function(){return h})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return M})),n.d(t,"getDefaultFormat",(function(){return g})),n.d(t,"sortTileMatrix",(function(){return b})),n.d(t,"getTileMatrix",(function(){return L}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;tt?Object(a.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(a.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(a.isArray)(e)){var s=Object(a.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return s&&s["ows:Identifier"]?s["ows:Identifier"]:t}return Object(a.isObject)(e)&&e[n]||t}),s):s},_=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},p=function(e,t,n){return Object(a.head)(Object(a.castArray)(Object(a.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(a.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(a.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.head)(Object(a.castArray)(e.capabilitiesURL||e.GetTileURL))},M=function(e){return Object(a.head)(Object(a.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},g=function(e){return Object(a.head)(Object(a.castArray)(e.Format))},b=function(e,t){return e?i(i({},e),{},{TileMatrix:Object(a.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return i(i({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},L=function(e,t){var n,r,o=m(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),s=e.matrixIds&&l(e.matrixIds,o||t),i=b(Object(a.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),s),u=null==i||null===(n=(r=i.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&s?s.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):s,tileMatrixSetName:o,tileMatrixSet:i}};r={getOperations:f,getOperation:p}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,s=t.currentLocale,i=t.params,c=t.maxItems,m=void 0===c?10:c,_=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0;return{request:h(a({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(r.projection)||"EPSG:4326",feature_count:m},y({params:i})),e),metadata:{title:l(e.title)?e.title[s]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:f},url:d(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,a=r(n,["point"]),s=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return i.defer((function(){return _(e.url,e.name).then((function(n){var r=p(n),o=c({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:s}},params:y({},e.baseParams,e.params,a)});return f(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,a=void 0===r?{}:r,i=t.point,y=t.currentLocale,M=t.params,g=t.maxItems,b=void 0===g?10:g,L=t.env,j=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,Y=arguments.length>4?arguments[4]:void 0,w=n&&n.height||101,O=n&&n.width||101,k=[w,O],D=0,S=s(Math.ceil(a.zoom),0,21,96),T=i.latlng.lng,x=T-360*Math.floor(T/360+.5),E={x:x,y:i.latlng.lat},P=u(E,"EPSG:4326",a.projection),H=d(P,S,D,k,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=f(L),I=_({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,M)});return{request:p(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:w,width:O,srs:l(a.projection)||"EPSG:4326",bbox:H.minx+","+H.miny+","+H.maxx+","+H.maxy,feature_count:b,info_format:j,ENV:F},h({},I)),e),metadata:{title:m(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:v,featureInfo:Y},url:c(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},l={AND:"and",OR:"or",NOT:"not"},c={RPAREN:3,LOGICAL:2,COMPARISON:1},m=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},_=function(e,t){var n,r,o=t.length;for(n=0;n0&&c[t[t.length-1].type]<=m;)i.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)i.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&i.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)i.push(t.pop());var _=function e(){var t=i.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:l[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:l.NOT};case"BETWEEN":i.pop();var c=e(),m=e();return{property:e(),lowerBoundary:m,upperBoundary:c,type:d.BETWEEN};case"COMPARISON":var _=e();return{property:e(),value:_,type:d[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:d[t.text.toUpperCase()]};case"VALUE":var f=t.text.match(/^'(.*)'$/);return f?f[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var p=e(),h=e(),y=e(),M=e(),g=e();return{type:r,property:g,value:[M,y,h,p]};case"INTERSECTS":var b=e(),L=e();return{type:n,property:L,value:b};case"WITHIN":var j=e(),v=e();return{type:s,property:v,value:j};case"CONTAINS":var Y=e(),w=e();return{type:o,property:w,value:Y};case"DWITHIN":var O=e(),k=e(),D=e();return{type:a,value:k,property:D,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(i.length>0){for(var f="Remaining tokens after building AST: \n",p=i.length-1;p>=0;p--)f+=i[p].type+": "+i[p].text+"\n";throw new Error(f)}return _};e.exports={read:function(e){return f(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=_(r,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),a=o.logical,s=o.spatial,i=o.comparison,u=o.literal,d=o.propertyName,l=o.valueReference,c=o.distance,m=o.lower,_=o.upper,f=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),p=f.filter,h=f.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,f=e.wfsVersion,M=void 0===f?"1.1.0":f,g=o||"3.1.1",b=function(e){return y(g,e)},L=function(e){return"object"===r(e)&&Date,u(n,e)},j=0===M.indexOf("2.")?l:d;return{filter:p.bind(null,n),fidFilter:h.bind(null,n),and:a.and.bind(null,n),or:a.or.bind(null,n),not:a.not.bind(null,n),property:function(e){return{equalTo:function(t){return i.equal(n,j(n,e),L(t))},greaterThen:function(t){return i.greater(n,j(n,e),L(t))},greaterThenOrEqualTo:function(t){return i.greaterOrEqual(n,j(n,e),L(t))},lessThen:function(t){return i.less(n,j(n,e),L(t))},lessThenOrEqualTo:function(t){return i.lessOrEqual(n,j(n,e),L(t))},notEqualTo:function(t){return i.notEqual(n,j(n,e),L(t))},between:function(t,r){return i.between(n,j(n,e),m(n,L(t)),_(n,L(r)))},like:function(t,r){return i.like(n,j(n,e),L(t),r)},ilike:function(t,r){return i.ilike(n,j(n,e),L(t),r)},isNull:function(){return i.isNull(n,j(n,e))},intersects:function(t){return s.intersects(n,j(n,e),b(t))},within:function(t){return s.within(n,j(n,e),b(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s.dwithin(n,j(n,e),b(t),c(n,r,o))},contains:function(t){return s.contains(n,j(n,e),b(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,a=n.filters,l=void 0===a?[]:a,c=n.value,m=n.property,_=n.lowerBoundary,f=n.upperBoundary;return s(u,o)?t[o].apply(t,r(l.map(e(t)))):t.property(m)[d[o]](i(c)?_:c,f)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},a=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},s={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.AND,[t].concat(o)):a(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.OR,[t].concat(o)):a(e,r.OR,t)},not:function(e,t){return a(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.NOR,[t].concat(o)):a(e,r.NOR,t)}},i={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:s,spatial:i,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},a=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},s=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},i=function(e,t,n){var s=o(n),i="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=a(e).map((function(e){return e[0]+(s?",":" ")+e[1]})),r=s?"outerBoundaryIs":"exterior",o=s?"innerBoundaryIs":"exterior";i+=(t<1?"":"")+""+(s?"":"")+n.join(" ")+(s?"":"")+""+(t<1?"":"")})),i+=""},u=function(e,t,n){var r=o(n),a="':">";var s=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return a+=(r?"":"")+s.join(" ")+(r?"":""),a+=""};e.exports={closePolygon:a,pointElement:s,polygonElement:i,lineStringElement:u,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=s(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+="";break;case"LineString":n+=u(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",a="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=u(t,r,e),n+="")})),n+="";break;case"Polygon":n+=i(t.coordinates,r,e);break;case"MultiPolygon":var d="3.2"===e?"MultiSurface":"MultiPolygon",l="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=i(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,a=r.get,s=function(e){return/[<>&'"]/.test(e)?""):e},i=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},d=function(e){return a(e,"featureTypes[0].properties")},l=function(e,t){return o((d(t)||[]).filter((function(t){return t.name===e})))},c=function(e){return e.targetNamespace},m=function(e){return 0===e.type.indexOf("gml:")},_=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return _(m(r)?t:n[r.name],r)};e.exports={schemaLocation:c,isGeometryType:m,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(c(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=m(l(t,n));return o?e?i(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?s(e):e},getPropertyDesciptor:l,findGeometryProperty:function(e){return o((d(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:d,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:i,isValid:function(e,t){return d(t).map((function(t){return f(e,t)}))},isValidProperty:f,isValidValueForPropertyName:function(e,t,n){return _(e,l(t,n))},isValidValue:_}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return _})),n.d(t,"l",(function(){return f}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",a="GEONODE:SAVE_ERROR",s="GEONODE:CLEAR_SAVE",i="GEONODE:SAVE_CONTENT",u="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function d(){return{type:r}}function l(e){return{type:o,success:e}}function c(e){return{type:a,error:e}}function m(){return{type:s}}function _(e,t,n){return{type:i,id:e,metadata:t,reload:n}}function f(e){return{type:u,id:e}}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),a=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/backgroundselector.js"),i=n("./MapStore2/web/client/utils/MapUtils.js"),u=n("./node_modules/reselect/es/index.js"),d=n("./MapStore2/web/client/selectors/catalog.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),m=n("./MapStore2/web/client/selectors/dimension.js"),_=n("./MapStore2/web/client/selectors/timeline.js"),f=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},p=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-kw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ly.js":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,s){var i=n(t),u=r[e][n(t)];return 2===i&&(u=u[o?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var i=r(t),u=o[e][r(t)];return 2===i&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-ch.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-au.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-gb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ie.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-il.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-nz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-do.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-us.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,a){var s="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":s=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":s=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":s=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":s=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":s=a?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-latn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gu.js":function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it.js":function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kn.js":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ky.js":function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,s){var i=e+" ";return 1===e?i+n(0,t,a[0],s):t?i+(r(e)?o(a)[1]:o(a)[0]):s?i+o(a)[1]:i+(r(e)?o(a)[1]:o(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl-be.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pa-in.js":function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sd.js":function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ss.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tet.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tg.js":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ug-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ur.js":function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/x-pseudo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/yo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-hk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},z={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=J(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var V=/\d/,q=/\d\d/,K=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function le(e,t,n){de[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(de,e)?de[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _e={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=v(e)}),n=0;n68?1900:2e3)};var ge,be=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(ve(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ve(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ye(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ye(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function Ae(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var a,s,i=1+7*(t-1)+(7+n-r)%7+Fe(e,r,o);return i<=0?s=ye(a=e-1)+i:i>ye(e)?(a=e+1,s=i-ye(e)):(a=e,s=i),{year:a,dayOfYear:s}}function Ce(e,t,n){var r,o,a=Fe(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Ne(o=e.year()-1,t,n):s>Ne(e.year(),t,n)?(r=s-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function Ne(e,t,n){var r=Fe(e,t,n),o=Fe(e+1,t,n);return(ye(e)-r+o)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),C("week",5),C("isoWeek",5),le("w",X),le("ww",X,q),le("W",X),le("WW",X,q),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=v(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=v(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null}var Ue=ue,Be=ue,Je=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,r,o,a,s=[],i=[],u=[],d=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(r),i.push(o),u.push(a),d.push(r),d.push(o),d.push(a);for(s.sort(e),i.sort(e),u.sort(e),d.sort(e),t=0;t<7;t++)i[t]=me(i[t]),u[t]=me(u[t]),d[t]=me(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ke(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,qe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),H("hour","h"),C("hour",13),le("a",Qe),le("A",Qe),le("H",X),le("h",X),le("k",X),le("HH",X,q),le("hh",X,q),le("kk",X,q),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var r=v(e);t[3]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=v(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o))}));var Ze,Xe=Le("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:ke,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var r=null;if(!et[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),ot(r)}catch(e){}return et[t]}function ot(e,t){var n;return e&&((n=i(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=$e;if(t.abbr=e,null!=et[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new E(x(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=rt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Y(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function it(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ye(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var t,n,r,a,s,i=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,s,i,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,s=4,n=ut(t.GG,e._a[0],Ce(Yt(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(u=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var d=Ce(Yt(),a,s);n=ut(t.gg,e._a[0],d.year),r=ut(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a}r<1||r>Ne(n,a,s)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(i=Ie(n,r,o,a,s),e._a[0]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(s=ut(e._a[0],r[0]),(e._dayOfYear>ye(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ae(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:He).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function ht(e){var t,n,r,o,a,s,i=e._i,u=lt.exec(i)||ct.exec(i);if(u){for(f(e).iso=!0,t=0,n=_t.length;t0&&f(e).unusedInput.push(s),i=i.slice(i.indexOf(n)+n.length),d+=n.length),z[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),he(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=u-d,i.length>0&&f(e).unusedInput.push(i),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),dt(e),it(e)}else bt(e);else ht(e)}function jt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new b(it(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:h()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r(a=Ne(e,r,o))&&(t=a),$t.call(this,e,t,n,r,o))}function $t(e,t,n,r,o){var a=Ie(e,t,n,r,o),s=Ae(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Zt("gggg","weekYear"),Zt("ggggg","weekYear"),Zt("GGGG","isoWeekYear"),Zt("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",X,q),le("gg",X,q),le("GGGG",ne,Q),le("gggg",ne,Q),le("GGGGG",re,Z),le("ggggg",re,Z),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=v(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),H("quarter","Q"),C("quarter",7),le("Q",V),fe("Q",(function(e,t){t[1]=3*(v(e)-1)})),U("D",["DD",2],"Do","date"),H("date","D"),C("date",9),le("D",X),le("DD",X,q),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=v(e.match(X)[0])}));var en=Le("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),C("dayOfYear",4),le("DDD",te),le("DDDD",K),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=v(e)})),U("m",["mm",2],0,"minute"),H("minute","m"),C("minute",14),le("m",X),le("mm",X,q),fe(["m","mm"],4);var tn=Le("Minutes",!1);U("s",["ss",2],0,"second"),H("second","s"),C("second",15),le("s",X),le("ss",X,q),fe(["s","ss"],5);var nn,rn=Le("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),C("millisecond",16),le("S",te,V),le("SS",te,q),le("SSS",te,K),nn="SSSS";nn.length<=9;nn+="S")le(nn,oe);function on(e,t){t[6]=v(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")fe(nn,on);var an=Le("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var sn=b.prototype;function un(e){return e}sn.add=Bt,sn.calendar=function(e,t){var n=e||Yt(),r=At(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",s=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Yt(n)))},sn.clone=function(){return new b(this)},sn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":a=Vt(this,r)/12;break;case"month":a=Vt(this,r);break;case"quarter":a=Vt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:j(a)},sn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},sn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},sn.from=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.fromNow=function(e){return this.from(Yt(),e)},sn.to=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.toNow=function(e){return this.to(Yt(),e)},sn.get=function(e){return T(this[e=A(e)])?this[e]():this},sn.invalidAt=function(){return f(this).overflow},sn.isAfter=function(e,t){var n=L(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(i(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},sn.toJSON=function(){return this.isValid()?this.toISOString():null},sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},sn.unix=function(){return Math.floor(this.valueOf()/1e3)},sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},sn.year=be,sn.isLeapYear=function(){return Me(this.year())},sn.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},sn.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},sn.quarter=sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},sn.month=Te,sn.daysInMonth=function(){return Ye(this.year(),this.month())},sn.week=sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},sn.isoWeek=sn.isoWeeks=function(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},sn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},sn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},sn.date=en,sn.day=sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},sn.hour=sn.hours=Xe,sn.minute=sn.minutes=tn,sn.second=sn.seconds=rn,sn.millisecond=sn.milliseconds=an,sn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},sn.utc=function(e){return this.utcOffset(0,e)},sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},sn.isUtc=It,sn.isUTC=It,sn.zoneAbbr=function(){return this._isUTC?"UTC":""},sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},sn.dates=O("dates accessor is deprecated. Use date instead.",en),sn.months=O("months accessor is deprecated. Use month instead",Te),sn.years=O("years accessor is deprecated. Use year instead",be),sn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),sn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=jt(e))._a){var t=e._isUTC?_(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=E.prototype;function ln(e,t,n,r){var o=st(),a=_().set(r,t);return o[n](a,e)}function cn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ln(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,a=st(),s=e?a._week.dow:0;if(null!=n)return ln(t,(n+s)%7,r,"day");var i=[];for(o=0;o<7;o++)i[o]=ln(t,(o+s)%7,r,"day");return i}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=un,dn.postformat=un,dn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ot),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var _n=Math.abs;function fn(e,t,n,r){var o=Rt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function pn(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var gn=Mn("ms"),bn=Mn("s"),Ln=Mn("m"),jn=Mn("h"),vn=Mn("d"),Yn=Mn("w"),wn=Mn("M"),On=Mn("y");function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=kn("milliseconds"),Sn=kn("seconds"),Tn=kn("minutes"),xn=kn("hours"),En=kn("days"),Pn=kn("months"),Hn=kn("years"),An=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function In(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Cn=Math.abs;function Nn(e){return(e>0)-(e<0)||+e}function Rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Cn(this._milliseconds)/1e3,r=Cn(this._days),o=Cn(this._months);e=j(n/60),t=j(e/60),n%=60,e%=60;var a=j(o/12),s=o%=12,i=r,u=t,d=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var m=c<0?"-":"",_=Nn(this._months)!==Nn(c)?"-":"",f=Nn(this._days)!==Nn(c)?"-":"",p=Nn(this._milliseconds)!==Nn(c)?"-":"";return m+"P"+(a?_+a+"Y":"")+(s?_+s+"M":"")+(i?f+i+"D":"")+(u||d||l?"T":"")+(u?p+u+"H":"")+(d?p+d+"M":"")+(l?p+l+"S":"")}var Wn=St.prototype;return Wn.isValid=function(){return this._isValid},Wn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Wn.add=function(e,t){return fn(this,e,t,1)},Wn.subtract=function(e,t){return fn(this,e,t,-1)},Wn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Wn.asMilliseconds=gn,Wn.asSeconds=bn,Wn.asMinutes=Ln,Wn.asHours=jn,Wn.asDays=vn,Wn.asWeeks=Yn,Wn.asMonths=wn,Wn.asYears=On,Wn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,s=this._days,i=this._months,u=this._data;return a>=0&&s>=0&&i>=0||a<=0&&s<=0&&i<=0||(a+=864e5*pn(yn(i)+s),s=0,i=0),u.milliseconds=a%1e3,e=j(a/1e3),u.seconds=e%60,t=j(e/60),u.minutes=t%60,n=j(t/60),u.hours=n%24,s+=j(n/24),o=j(hn(s)),i+=o,s-=pn(yn(o)),r=j(i/12),i%=12,u.days=s,u.months=i,u.years=r,this},Wn.clone=function(){return Rt(this)},Wn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},Wn.milliseconds=Dn,Wn.seconds=Sn,Wn.minutes=Tn,Wn.hours=xn,Wn.days=En,Wn.weeks=function(){return j(this.days()/7)},Wn.months=Pn,Wn.years=Hn,Wn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Rt(e).abs(),o=An(r.as("s")),a=An(r.as("m")),s=An(r.as("h")),i=An(r.as("d")),u=An(r.as("M")),d=An(r.as("y")),l=o<=Fn.ss&&["s",o]||o0,l[4]=n,In.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Wn.toISOString=Rn,Wn.toString=Rn,Wn.toJSON=Rn,Wn.locale=qt,Wn.localeData=Qt,Wn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),Wn.lang=Kt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(v(e))})),o.version="2.21.0",t=Yt,o.fn=sn,o.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Yt(1e3*e)},o.months=function(e,t){return cn(e,t,"months")},o.isDate=d,o.locale=ot,o.invalid=h,o.duration=Rt,o.isMoment=L,o.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},o.parseZone=function(){return Yt.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=Tt,o.monthsShort=function(e,t){return cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},o.defineLocale=at,o.updateLocale=function(e,t){if(null!=t){var n,r,o=$e;null!=(r=rt(e))&&(o=r._config),t=x(o,t),(n=new E(t)).parentLocale=et[e],et[e]=n,ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},o.locales=function(){return k(et)},o.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=sn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/turf-center/index.js":function(e,t,n){var r=n("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=n("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=r(e),n=(t[0]+t[2])/2,a=(t[1]+t[3])/2;return o([n,a])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,n){var r=n("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return r(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(i-a)*(e[1]-s)/(u-s)+a&&(n=!n)}return n}e.exports=function(e,t){var n=r.getCoord(e),a=t.geometry.coordinates;"Polygon"===t.geometry.type&&(a=[a]);for(var s=0,i=!1;s1&&void 0!==arguments[1]?arguments[1]:D;return{type:i,target:t,id:o()(),widget:e}},C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:D;return{type:_,id:e,target:o,key:t,value:n,mode:r}},N=function(e){return{type:f,layer:e}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:h,target:t,widget:e}},W=function(){return{type:y}},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return{type:p,allLayouts:t,layout:e,target:n}},z=function(e){return{type:d,widget:e}},U=function(e,t){return{type:l,widget:e,settings:t}},B=function(e,t){return{type:c,key:e,value:t}},J=function(e,t){return{type:m,key:e,value:t}},V=function(e){return{type:b,dependencies:e}},q=function(e,t,n,r){return{type:j,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return J("step",e)},Q=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:Y,data:n,title:void 0===r?"export":r}},Z=function(e){var t=e.widgetDivId;return{type:w,widgetDivId:t}},X=function(){return{type:v}},$=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:D;return{type:x,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return{type:E,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:P,widget:e,target:t}},re=function(e){return{type:H,value:e}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return f})),n.d(t,"getFeatureSimple",(function(){return p})),n.d(t,"getCapabilitiesURL",(function(){return h})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return M})),n.d(t,"getCapabilities",(function(){return g})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return b})),n.d(t,"describeFeatureType",(function(){return L}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),a=n("./node_modules/url/url.js"),s=n.n(a),i=n("./node_modules/object-assign/index.js"),u=n.n(i);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=s.a.parse(e,!0);return s.a.format(u()({},o,{query:u()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,a=d(n,["version"]),i=s.a.parse(e,!0);return s.a.format(u()({},i,{query:u()(m({service:"WFS",typeName:t,version:o,request:"GetFeature"},a),i.query)}))},M=function(e,t,n){return o.a.get(y(e,t,n))},g=function(e){return o.a.get(h(e))},b=function(e,t){var r=s.a.parse(e,!0),a=s.a.format(u()({},r,{query:u()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(a).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},L=function(e,t){return o.a.get(f(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function u(e){return(u="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,g=/([^<]*<\/style>)/i,b=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&&c(e,t)}(s,e);var t,n,r,a=m(s);function s(){return d(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=g.exec(e),n=t&&2===t.length?g.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(M,"$1").trim();return o.a.createElement(i.a,{html:n+r})}}])&&l(t.prototype,n),r&&l(t,r),s}(o.a.Component);p=b,h="propTypes",y={response:s.a.string},h in p?Object.defineProperty(p,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[h]=y,t.a=b},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/TemplateUtils.js"),u=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),d=n("./node_modules/prop-types/index.js"),l=n.n(d),c=n("./MapStore2/web/client/utils/StringUtils.js");function m(e){return(m="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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=w[t]||w.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l;t.a=(l=r.Button,a.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,s=void 0===o?function(){}:o,c=d(e,["disabled","className","onClick"]);return a.a.createElement(l,u({ref:t,className:n?i()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},c),c.children)})))},"./MapStore2/web/client/components/misc/Dialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),u=n.n(i),d=n("./node_modules/react-draggable/dist/react-draggable.js"),l=n.n(d),c=n("./node_modules/react-spinkit/dist/index.js"),m=n.n(c),_=n("./MapStore2/web/client/components/I18N/Message.jsx");function f(e){return(f="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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0})),Y(j(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=u.a.createElement("div",{id:this.props.id,style:h({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(l.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&M(t.prototype,n),r&&M(t,r),s}(u.a.Component);Y(w,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),Y(w,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=w},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},c=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,a=e.hidden;return s.a.createElement("div",{className:o,style:u({width:t,height:t,overflow:"hidden"},r)},!a&&s.a.createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};c.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=c},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),i=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/react-addons-css-transition-group/index.js"),l=n.n(d),c=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),m={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},_={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,u=e.loadingText,d=e.onClose,f=void 0===d?function(){}:d,p=e.title,h=void 0===p?"":p,y=e.clickOutEnabled,M=void 0===y||y,g=e.showClose,b=void 0===g||g,L=e.disabledClose,j=void 0!==L&&L,v=e.showFullscreen,Y=void 0!==v&&v,w=e.fullscreenType,O=void 0===w?"full":w,k=e.buttons,D=void 0===k?[]:k,S=e.size,T=void 0===S?"":S,x=e.bodyClassName,E=void 0===x?"":x,P=e.children,H=e.draggable,A=void 0!==H&&H,F=e.fullscreenState,I=e.onFullscreen,C=e.fade,N=void 0!==C&&C,R=e.fitContent,W=e.modalClassName,G=void 0===W?"":W,z=e.dialogClassName,U=void 0===z?"":z,B=e.enableFooter,J=void 0===B||B,V=m[T]||"",q=Y&&"expanded"===F&&_.className[O]||"",K=n?o.a.createElement("div",{className:"modal-fixed ".concat(G," ")+(A?"ms-draggable":"")},o.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:M?f:function(){},containerClassName:"ms-resizable-modal",draggable:A,modal:!0,className:"modal-dialog modal-content"+V+q+U+(R?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},h),Y&&_.className[O]&&o.a.createElement(a.Glyphicon,{className:"ms-header-btn",onClick:function(){return I("expanded"===F?"collapsed":"expanded")},glyph:_.glyph[F][O]}),b&&f&&o.a.createElement(a.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:j}))),o.a.createElement("div",{role:"body",className:E},P),J&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(c.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),o.a.createElement(i.a,{buttons:D})))):null;return N?o.a.createElement(l.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));t.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),d=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=w?["SIZE"]:[])),e)):null})).catch((function(e){return I.current?(R(!1),H(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=D&&D.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},p),W):o.a.createElement("div",{className:"dropzone-content-image"},p,W,h&&o.a.createElement("div",{className:"dropzone-errors"},h))))}));t.a=p},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),i.a,(function(e){return function(t){return o.a.createElement(e,Object(s.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(t))return t.map((function(o){var a=Object(r.f)(e,o[n]||Object(s.isString)(o)&&o||"");return l(l({},o),{},c({},n,Object(s.isNil)(a)?t:a))}));var o=Object(r.f)(e,t);return Object(s.isNil)(o)?t:o},_=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return l(l({},r),{},c({},o,e[o]&&m(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(i.compose)(Object(i.getContext)({messages:a.a.object}),Object(i.mapProps)((function(n){var r=n.messages,o=u(n,["messages"]);return l(l({},o),Object(s.castArray)(e).reduce(_(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),i=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,a=t.tooltipPosition,d=void 0===a?"top":a,c=t.tooltipTrigger,m=t.keyProp,_=t.idDropDown,f=t.args,p=l(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(i.a,{trigger:c,id:_,key:m,placement:d,overlay:o.a.createElement(s.Tooltip,{id:"tooltip-"+m},r?o.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},o.a.createElement(e,p))}}),(function(e){return function(t){return o.a.createElement(e,Object(d.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(a),i=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,a=void 0===r?{}:r,c=e.btnDefaultProps,m=void 0===c?{}:c,_=e.transitionProps,f=void 0===_?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:_,p=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,a=e.Element,s=e.renderButton,i=l(e,["visible","Element","renderButton"]);return r?s||(a&&o.a.createElement(a,d({key:i.key||t},i))||o.a.createElement(u.a,d({key:i.key||t},m,i))):null}))};return o.a.createElement(i.ButtonGroup,a,f?o.a.createElement(s.a,f,p()):p())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/Loader.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),m=n("./MapStore2/web/client/components/misc/Button.jsx");function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.compose)(l.a,c.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,a=void 0===r?"":r,l=e.textId,c=e.glyphClassName,p=void 0===c?"":c,h=e.loaderProps,y=void 0===h?{}:h,M=e.children,g=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(m.a,Object(i.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(u.Glyphicon,{glyph:t,className:p}):null,l?o.a.createElement(s.default,{msgId:l}):a,n?o.a.createElement(d.a,_({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},y)):null,M)}))},"./MapStore2/web/client/product/assets/img/marker-icon-red.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwKDiknI+uvvgAABttJREFUWMOll2uMVVcVx/9773PuPY/7mBcUZ4q1JmbiF6nQwtSY2pSYtobCB2yMrxhrHGOrfioEjQYlMWikH7TxUWNbjTFWU6gComm1UEgMAi20kFCrIMPMFIZ53Xvn3vPYZ++1/HBh6GVmmDu6k/+Xk/1fv7Mfa61zBDOjnfHihzZ1Gcg+YcUyCZrkvPf2A4efG2/HK24G+cuHN/cLS59nIT7DzH1Syli5jrGZUUTkKyGuAPa3RPTsA0f3vbEkyHfEBrlunbMVUn47LBYRhkE+7/uQORdCCDAzyAA6mkEURbpWqQpm/l4Q0I57X95rFoUcWLvxvazk71039/5b+noDVymQzsCZAWcZ2BKEkhCuC+E6kDkXmbUYv3QpylJ9zhj58EPHd/9zQcgf1228Xwnxh3Jnp+rq6XE5TmAb8aJ7rnwPIvQxPTlppicnLQGf3PSPvS/Mgey/c1OPVfzv3t7ecuj7MJUZsLVodwil4JQKiHSKS6OjDaFs/4a//2kUAOS1SVbxLwulkhd4HvTENMgYMPMcQcp5n5Mx0FMV+Pk8iuWyY6369bXYEgCeX7vh06zk+lu6O/O2WgeIWiQdB25nAbmeLsiOInI9XXA7y5A5d85cW62jp6s7L5Qa2LP2oS8CgNi3ZmOQCjP+7t6+wIOEnWm0bINT8kGej/FqBY1GAyZJoVwHQamE5YUSlCWYWgUgef2MiiESEIYuvZ14pLqdBOlq5eRF6Oehr0wAdP0iqDBAKhSGRoax8v6P4M5PbULxtlvRGB3Dud0HcG7Pn7Gyuwee77W8nJ2pIlzeA6UUJZSuVpv7+jcHfmF9yVGujTIAAoCAUA5URwEj01Po/8InsOprj8Dr6oCQEvmOElbcvQb+imV462+H0VXsAGcWbLnpZwHpKjQMmyTL3pSC+Z4w7/qkM4CuS7gOalECUS6g/7Ob571R7/nYfQhvX4npRh0yl2vxk84Q5l1fMN8jCRjwXQVOdXOrrko6AnGaYtldqyCEWPDqrhhYjcSkEIpb/Jxq+K4CAQOOIRs0SwWBmWbNzAzLBKdQWDQRzdVMaPUThBAgIl8COBUlCYRSrW+SZcgrB2Ovvn5TyNjJM8iznbMTQilESQICn5RE4nAjzTKhVIuZkhTlvIvKW+cxfOTYvIDx02dx+ehr6PQDkM7mVIAo0dqyfEUaaY5X01gLpcDWzoqSFCJO0Vcs4OCWHXjz+f0g0yywRITzL76Cl778dbyrWIbKLGwjavELpVBNG9rAHBdPf/DeXmZ3eE3frZKmKuDsHZVaSridZTTY4kK9jjiOUVqxHPUr41Cui9uLJZScHMzEOJivJ6NwHciuDrw6Omxh0CeYGc/c8dFjt5XLd/VIF7Y607JsFhaqWG4mJlskWiPv5uBJBYpmYGp1CG7dalUuYoIyHqpWjz1y6qUBBwA0xK6Rev3Z5cuXBaZmm3VolgLY6jSoVoHMuSg4Dqheh87M7DwGtaxeeg5Gx6ZiDfH92QIpnfgFbYyu6QzSC5t16AaxFeDYwM4k4NgABvPOk16ISqKRWlvvfrBz7yxk8MSRjMA/uVyvxcp3wJy1XMe2BUCFPkYb9dgyPfHwzt/Z1n5i7ZMTSaoispCBD+ZsyZKBi7qOUE0TYTN6uqWfAMCjZw5dBvDk0EwUK99rNqgbesVNBUAGPi7W6zGAJx47e2hyDgQAjLY7KzpB3WRQoT9vB1xIMvAxk2nMZJaEq3/wzrgtkMfOHppkIXZdjKJYhcHV1G9vFSr0MdRoRATeOXjiSHVBCAAYL7erZqyt6RQqDCAYi8ophKjpFI3MGGvtD2+MOQfylaMHaoL5u0NxGsvAB4FBRAuKBSB8DxeiKCLJOx49c6i+KAQAkMt+FFubVrMUTiGEYF5QquihohPElhK/OvHj+cLNCxk8cSQi8PahNItl4Deb1jxnIYSA9EIMpVnMQnzrc/85nbQNAQAd0VOptfUpnUAW8vPeKFEMMaUTpNbUum3wi4ViLQj56r8Oppbpm8OZjYUfAlK2ZreUkF4ew1kWk5Tf+PiZfXrJEAAY637fM5poekqnUGEOID0rp5DHlE6RWprofrD7VzeLc1PI9oNPGSuw7SJx82xU8xNVKAkEHoZslhCw7VqN+p8gADD2uvebzJrL45mBLIQAEVSxgCvawBBGx04Hzy0WY1HIdt5PLMTWEUKCwIfwPbDvYYQ4gZRbt/N++r8hAPCluw/uNmQvjFtit7OMK8YyEZ0fPPXXPe3424LgZ8RWyceHGVoTYQQiA7Cl7X+Xdv9+AeDnH7jvtbzAHSnj5OAbL69p1yexhMFCPJ5ACBZiC5ZkXELPYGb8dNX6bUv1/Bd7pfPVmVDtrAAAAABJRU5ErkJggg=="},"./MapStore2/web/client/product/assets/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},"./MapStore2/web/client/reducers/controls.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/controls.js"),o=n("./node_modules/object-assign/index.js"),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return a()({},e,s({},t.control,a()({},e[t.control],s({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,void 0)))):a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,t.value))));case r.b:return a()({},e,s({},t.control,a()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),i=o.reduce((function(t,n){return a()(t,s({},n,a()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return a()({},e,i);default:return e}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),i=function(e){return e.backgroundSelector&&e.backgroundSelector.source},u=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},d=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},l=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},c=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},m=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},_=Object(r.a)(o.p,a.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(s.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"x",(function(){return c})),n.d(t,"e",(function(){return m})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return f})),n.d(t,"u",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return M})),n.d(t,"t",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return v})),n.d(t,"s",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"f",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return E}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/selectors/map.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(u(e),["Context"])}})),_=function(e){return m(e)},f=Object(r.a)((function(e){return Object(a.get)(l(e),"plugins")}),(function(e){return Object(a.get)(l(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(u(Object(a.get)(e,"desktop",[])),u(t.filter((function(e){return e.active}))))}})),p=(Object(r.a)(l,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(a.get)(e,"context.loading")}(e)?_(e):f(e)||m(e)}),h=function(e){return Object(r.a)(l,p,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(a.findIndex)(Object(a.get)(n,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(r.a)((function(e){return Object(i.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/dashboard.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/router.js"),a=function(e){return e&&e.dashboard&&e.dashboard.editor&&e.dashboard.editor.available},s=function(e){return e&&e.dashboard&&e.dashboard.editing},i=function(e){return e&&e.dashboard&&e.dashboard.showConnections};Object(r.a)(o.a,(function(e){return e&&e.dashboard&&e.dashboard.resource}),(function(e){return e&&e.browser&&e.browser.mobile}),(function(e,t,n){return n?!n:t&&t.canEdit||isNaN(e.substr(-4))}))},"./MapStore2/web/client/selectors/dimension.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return _})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"g",(function(){return M})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n("./MapStore2/web/client/selectors/layers.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Object(a.find)(e.dimensions||[],{name:t})},_=function(e,t){return function(n){return c(e.id,t)(n)||m(e,t)}},f=function(e){return Object(r.p)(e).reduce((function(t,n){var r=_(n,"time")(e);return r?d(d({},t),{},l({},n.id,r)):t}),{})},p=function(e){return Object(r.p)(e).filter((function(e){return m(e,"time")}))},h=function(e){var t=Object(a.get)(e,"dimension.currentTime");return t&&t.split("/")[0]},y=function(e){return Object(a.get)(e,"dimension.offsetTime")},M=function(e){return!!y(e)},g=(Object(o.a)(f,(function(e){return Object.keys(e).reduce((function(t,n){return[].concat(s(t),s(e[n]&&e[n].values||[]))}),[]).sort()||[]})),function(e){return function(t){return s(Object(a.get)(_(e,"time")(t),"values",[])).sort()}}),b=function(e,t){var n=c(t,"time")(e),r=n&&n.domain&&n.domain.split("--");if(r&&2===r.length)return r&&{start:r[0],end:r[1]};var o=n&&n.domain&&n.domain.split(",");return o&&o.length>0?{start:o[0],end:o[o.length-1]}:null}},"./MapStore2/web/client/selectors/layers.js":function(e,t,n){"use strict";n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return L})),n.d(t,"k",(function(){return j})),n.d(t,"u",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"l",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"m",(function(){return D})),n.d(t,"w",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"e",(function(){return x})),n.d(t,"v",(function(){return E})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return H})),n.d(t,"q",(function(){return A})),n.d(t,"t",(function(){return F})),n.d(t,"r",(function(){return I}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=n("./MapStore2/web/client/utils/SearchUtils.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/TOCUtils.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=e.config;return t&&Object(d.isArray)(t)?t:t&&t.flat||n&&n.layers||[]},p=function(e){return Object(d.head)(f(e).filter((function(e){return e&&e.visibility&&"background"===e.group})))},h=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.id===t})))},y=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.name===t})))},M=function(e){return f(e).filter((function(e){return"background"===e.group}))},g=function(e){return Object(d.get)(e,"mapInfo.centerToMarker","")},b=Object(r.a)([f,u.c,function(e){return e.search&&e.search},g,function(e){return Object(d.get)(e,"additionallayers",[])},function(e){return e.annotations&&e.annotations.showMarker&&e.annotations.clickPoint}],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=a.filter((function(e){return"override"===e.actionType})),c=a.filter((function(e){return"overlay"===e.actionType})).map((function(e){return e.options})),_=e.map((function(e){var t=(Object(d.head)(l.filter((function(t){return t.id===e.id})))||{}).options;return t?m(m({},e),t):m({},e)}));if(_=_.concat(c),t){_.push(Object(o.h)("GetFeatureInfoHighLight",{features:t.features},void 0,{overrideOLStyle:!0,featuresCrs:t.featuresCrs,style:m(m({},s.a),{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}));var f="enabled"===r?Object(i.getNormalizedLatLon)(t.latlng):t.latlng;_.push(Object(o.h)("GetFeatureInfo",f))}if(u){var p="enabled"===r?Object(i.getNormalizedLatLon)(u.latlng):u.latlng;_.push(Object(o.h)("Annotations",p)),_.push(Object(o.h)("GetFeatureInfo",m({},p)))}if(n&&n.markerPosition){var h=Object(d.isObject)(n.style)&&n.style||{};_.push(Object(o.h)("GeoCoder",n.markerPosition,"marker",{overrideOLStyle:!0,style:m(m({},s.a),h)},n.markerLabel))}return _})),L=function(e){return e.layers&&e.layers.flat&&e.layers.groups||[]},j=function(e){return e.layers&&e.layers.flat&&e.layers.groups&&Object(a.denormalizeGroups)(e.layers.flat,e.layers.groups).groups||[]},v=function(e){return e.layers&&e.layers.selected||[]},Y=function(e){return v(e).map((function(t){return Object(d.find)(f(e),{id:t})}))},w=function(e){var t=Y(e)||[];return t&&t[0]},O=function(e){return e.layers&&e.layers.filter||""},k=function(e){return e.layers&&e.layers.settings||{expanded:!1,options:{opacity:1}}},D=function(e){return e.layers&&e.layers.layerMetadata||{expanded:!1,metadataRecord:{},maskLoading:!1}},S=function(e){return e.controls&&e.controls.layerdownload?{expanded:e.controls.layerdownload.enabled}:{expanded:!1}},T=function(e){return e.controls&&e.controls.backgroundSelector||{}},x=function(e){var t=T(e),n=M(e)||[];return t.currentLayer&&!Object(d.isEmpty)(t.currentLayer)?t.currentLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},E=function(e){var t=T(e),n=M(e)||[];return t.tempLayer&&!Object(d.isEmpty)(t.tempLayer)?t.tempLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},P=function(e,t){return(f(e)||[]).filter((function(e){return e&&e.dimensions&&Object(d.find)(Object(d.castArray)(e.dimensions),{name:t})}))},H=function(e){var t=k(e),n=f(e),r=j(e);return"layers"===t.nodeType&&Object(d.isArray)(n)&&Object(d.head)(n.filter((function(e){return e.id===t.node})))||"groups"===t.nodeType&&Object(d.isArray)(r)&&Object(d.head)(Object(l.b)(r,0,!0).filter((function(e){return e.id===t.node})))||{}},A=function(e){return f(e).filter(o.b)},F=function(e){return"Error"===(w(e)||{}).loadingError},I=function(e){return Y(e).filter(o.b)}},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},a=function(e){return(o(e)||{}).monitorState},s=function(e){return function(t){return Object(r.get)(function(e){return Object(r.get)(o(e),"plugins")}(t),e)}},i=function(e){return Object(r.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.locale&&e.locale.current||"en-US"},s=function(e){return e.locale&&e.locale.messages||{}},i=Object(r.a)([a],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"k",(function(){return s})),n.d(t,"n",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"o",(function(){return y})),n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"f",(function(){return j}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},i=Object(o.a)([s],(function(e){return e&&e.projection})),u=function(e){return Object(a.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(a.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(a.get)(s(e),"mapId")&&parseInt(Object(a.get)(s(e),"mapId"),10)||null}(e)},d=function(e){return Object(a.get)(s(e),"info")},l=function(e){var t=Object(a.get)(d(e),"canEdit");return void 0===t?Object(a.get)(e,"context.resource.canEdit"):t},c=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},m=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},_=function(e){return m(e).restrictedExtent},f=function(e){return m(e).crs},p=function(e){var t=m(e),n=i(e);return n&&Object(a.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(a.get)(t,"minZoom")},h=function(e){return Object(a.get)(function(e){return Object(a.get)(s(e),"limits")}(e),"minZoom")},y=Object(o.a)([function(e){return Object(a.get)(s(e),"resolutions")},i],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),M=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},g=function(e){return Object(a.get)(s(e),"eventListeners.mousemove",[])},b=function(e){return!!g(e).length},L=function(e){return g(e).includes("mouseposition")},j=function(e){return g(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"u",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"r",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"v",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"k",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"s",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"w",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"e",(function(){return H})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return C})),n.d(t,"q",(function(){return N}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),s=n("./MapStore2/web/client/selectors/context.js"),i=n("./MapStore2/web/client/selectors/locale.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js"),d=n("./MapStore2/web/client/selectors/maptype.js"),l=n("./MapStore2/web/client/selectors/localConfig.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&t})),h=function(e){return Object(r.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(r.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},M=function(e){return Object(r.get)(e,"mapInfo.configuration",{})},g=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},b=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},L=function(e){return Object(r.get)(e,"mapInfo.itemId",null)},j=function(e){return Object(r.get)(e,"mapInfo.overrideParams",{})},v=function(e){return Object(r.get)(e,"mapInfo.filterNameList",[])},Y=Object(o.a)((function(e){return!Object(r.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(r.get)(e,"controls.measure.enabled")&&(Object(r.get)(e,"measurement.lineMeasureEnabled")||Object(r.get)(e,"measurement.areaMeasureEnabled")||Object(r.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(r.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(r.get)(e,"annotations.editing")}),Object(s.b)("Identify"),(function(e,t,n,r,o){return e||!!t||n||!!r||!o})),w=Object(o.c)({format:h,map:a.k,point:g,currentLocale:i.b,maxItems:function(e){return Object(r.get)(e,"mapInfo.configuration.maxItems")}}),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},D=function(e){return e.mapInfo&&e.mapInfo.responses||[]},S=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},T=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},x=Object(o.a)(S,D,h,a.f,(function(e,t,n,r){var o=Object(u.i)(n);return e.length===t.length&&o.getValidResponses(t,r)})),E=Object(o.a)(x,k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),P=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.features")},H=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.featuresCrs")},A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(r.omit)(e,"radius")}},F=function(e){return function(t){return m(m({},t),{},{style:A(e)(t)})}},I=Object(o.a)(g,O,P,H,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(r.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,n,o,a,s){return a&&e?t?m(m({},e),{},{featuresCrs:o,features:n&&Object(r.isArray)(n)&&n.map(F(s))}):e:void 0})),C=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},N=function(e){var t,n;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(n=t.configuration)||void 0===n?void 0:n.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},a=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/selectors/timeline.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"k",(function(){return D})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return x})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return P})),n.d(t,"q",(function(){return H})),n.d(t,"b",(function(){return A})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return I}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),d=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/selectors/layers.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:a,type:"range",content:"".concat(u," items")}]:Object(i.l)({start:d,end:l,duration:a}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return j(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=p(n,3),o=r[0],a=r[1],s=r[2],u=Math.max.apply(Math,f(e.histogram.values)),d=Object(i.k)({start:o,end:a,duration:s});return e.histogram.values.map((function(e,t){return m(m({},d[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(i.i)(e.domain)?j(e.values||e.domain.split(","),t):n&&n.histogram?v(n,t):[]},w=Object(a.a)(u.i,M,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(e).map((function(r){return Y(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(m({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(f(e),f(t))}),[]))})),O=function(e){return Object(r.get)(e,"timeline.loading")},k=function(e){return Object(r.get)(e,"timeline.selectedLayer")},D=function(e){return Object(l.g)(e,k(e))},S=function(e){return D(e)&&D(e).name},T=function(e){return D(e)&&D(e).dimensions&&Object(r.head)(D(e).dimensions.filter((function(e){return"time"===e.name})))},x=function(e){return Object(r.get)(T(e),"source.url")},E=Object(o.a)(u.a,u.h,(function(e,t){return{start:e,end:t}})),P=function(e){return Object(u.c)(e,k(e))},H=u.f,A=Object(o.a)(H,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),F=function(e){return!g(e)&&A(e)},I=function(e){return function(t){var n=(Object(d.k)(t)||{}).bbox;if(!n)return{};var o=Object(u.b)(e,"time")(t),a=Object(r.get)(o,"source.version"),i=Object.keys(n.bounds).reduce((function(e,t){return m(m({},e),{},_({},t,parseFloat(n.bounds[t])))}),{});if(!i||!L(t))return{};if("1.1"!==a){var l=Object(u.b)(e,"space")(t),c=Object(r.get)(l,"domain.CRS");if(!c||!i||!L(t))return{};var f=p(Object(s.reprojectBbox)(i,Object(d.n)(t),c),4),h=f[0],y=f[1],M=f[2],g=f[3];return M0;)if(!n[i=a.shift()])for(n[i]=!0,s.push(i),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},a=Object.keys(o).map((function(t){return p(o[t],e)}))||[];return[].concat(c(t),c(a.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),M=n("./node_modules/reselect/es/index.js"),g=n("./MapStore2/web/client/utils/ReselectUtils.js");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),D=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].widgets"))},S=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].collapsed"))},T=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].maximized"))},x=Object(M.a)(D,S,T,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),E=Object(M.a)(S,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),P=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},H=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},A=Object(M.a)(P,H,o.k,s.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),F=Object(M.a)(P,H,o.k,s.a,O,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=a&&"map"!==a.widgetType?a&&a.layer||{}:a&&a.map&&a.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(s)||s.name===e.layer.name})).filter((function(e){return a&&a.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),I=function(e){return Object(r.get)(v(e),"".concat(i.f))},C=function(e){return Object(r.get)(I(e),"active")},N=(Object(M.a)(D,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=d(h(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(l.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layouts"))}),R=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layout"))},W=function(e){return Object(r.get)(e,"widgets.tray")},G=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},z=function(e){return Object(r.get)(O(e),"filter")},U=Object(g.a)(Y,w,(function(e){return w(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.k)(e),t.slice(4)):t.match(i.A)?function(e,t){var n=i.A.exec(e),o=n&&n[2],a=p(e,t);return o?Object(r.get)(a,o):a}(t,D(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return L(L({},t),{},j({},Object.keys(e)[o],n[o]))}),{})}));Object(M.c)({widgets:D,layouts:N})},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t,n,o){var a=e;isNaN(parseFloat(e))&&(a=r.hexToHsv(e)[0]);var s=.5/(n-1),i=t/(n-1),u=[];1===n&&(s=.5,i=t/2);for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:"red";return a()(e).toHexString()},d=function(e,t,n){var r=a()(e);return e&&r.setAlpha(Object(s.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,a,s,i,u,d=e/255,l=t/255,c=n/255;switch(o=Math.min(Math.min(d,l),c),s=(a=Math.max(Math.max(d,l),c))-o,a){case o:i=0;break;case d:i=60*(l-c)/s,l0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:u,colorToRgbaStr:d}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return x})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return A})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return N})),n.d(t,"reprojectExtent",(function(){return W})),n.d(t,"getPolygonFromExtent",(function(){return G})),n.d(t,"getExtentFromNormalized",(function(){return z})),n.d(t,"crsCodeTable",(function(){return U})),n.d(t,"setCrsLabels",(function(){return B})),n.d(t,"getUnits",(function(){return J})),n.d(t,"getProjectedBBox",(function(){return V})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return K})),n.d(t,"lineIntersectPolygon",(function(){return Q})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ae})),n.d(t,"filterCRSList",(function(){return se})),n.d(t,"calculateAzimuth",(function(){return ie})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return de})),n.d(t,"getGeoJSONExtent",(function(){return le})),n.d(t,"isValidExtent",(function(){return ce})),n.d(t,"calculateCircleCoordinates",(function(){return me})),n.d(t,"transformLineToArcs",(function(){return _e})),n.d(t,"transformArcsToLine",(function(){return fe})),n.d(t,"coordsOLtoLeaflet",(function(){return pe})),n.d(t,"mergeToPolyGeom",(function(){return he})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return Me})),n.d(t,"fetchProjRemotely",(function(){return ge})),n.d(t,"parseURN",(function(){return be})),n.d(t,"parseString",(function(){return Le})),n.d(t,"getWMSBoundingBox",(function(){return je})),n.d(t,"isSRSAllowed",(function(){return ve})),n.d(t,"getNormalizedLatLon",(function(){return Ye})),n.d(t,"isInsideVisibleArea",(function(){return we})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return De})),n.d(t,"midpoint",(function(){return Se})),n.d(t,"pointObjectToArray",(function(){return Te})),n.d(t,"isPointInsideExtent",(function(){return xe})),n.d(t,"isBboxCompatible",(function(){return Ee})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return He})),n.d(t,"makeBboxFromOWS",(function(){return Ae}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),a=n("./MapStore2/web/client/libs/proj4.js"),s=n.n(a),i=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(i),d=n("./node_modules/object-assign/index.js"),l=n.n(d),c=n("./MapStore2/node_modules/lodash/lodash.js"),m=n("./node_modules/@turf/line-intersect/index.js"),_=n.n(m),f=n("./node_modules/@turf/polygon-to-linestring/index.js"),p=n.n(f),h=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),M=n.n(y),g=n("./node_modules/@turf/bbox-polygon/main.es.js"),b=n("./node_modules/@turf/boolean-overlap/main.es.js"),L=n("./node_modules/@turf/boolean-contains/main.es.js");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return E(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function H(e,t,n){if(null===e)return e;var r=Object(c.cloneDeep)(e);return"Feature"===e.type?r.geometry=H(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return H(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return H(e,t,n)})):t&&t(r),n&&n(r),r}function A(e){return"string"==typeof e||e instanceof String?s.a.defs(e)?new s.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},C=function(e){var t=e;return Object(c.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(c.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},N=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&s.a.defs(t)?new s.a.Proj(t):null,a=n&&s.a.defs(n)?new s.a.Proj(n):null;if(o&&a){var i=Object(c.isArray)(e)?s.a.toPoint(e):s.a.toPoint([e.x,e.y]),u=l()({},t===n?C(i):s.a.transform(o,a,C(i)),{srs:n});return r?I(u):u}return null},R=["EPSG:900913","EPSG:4326","EPSG:3857"],W=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])})):[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])},G=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(g.a)(e):null},z=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[N([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),N([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),i=Math.sin(n),u=o*s,d=o*i,l=a*s,c=a*i,m=e.x,_=e.y,f=m-u+c,p=m-u-c,h=m+u-c,y=m+u+c,M=_-d-l,g=_-d+l,b=_+d+l,L=_+d-l,j=S.createBBox(Math.min(f,p,h,y),Math.min(M,g,b,L),Math.max(f,p,h,y),Math.max(M,g,b,L));return j},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=A(r)),"string"==typeof o&&(o=A(o));var a=T(r,o);return H(e,(function(e){e.crs&&delete e.crs,e.coordinates=E(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return a.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],H(e,(function(e){E(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Q=function(e,t){var n=p()(t).features[0];return 0!==_()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(c.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var a=[];for(var s in r)if(r.hasOwnProperty(s)){var i=S.reproject(r[s],t,n,o);if(!i)return null;var u=i.x,d=i.y;a.push(u),a.push(d)}return a},$=function(e){var t=Object(c.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,a=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,a],[o,a],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?S.getCompatibleSRS(n,t):n},oe=function(e,t){return t[S.getCompatibleSRS(e,t)]},ae=function(){var e={};for(var t in s.a.defs)s.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},se=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return l()({},-1===t.indexOf(r)?n:v(v({},n),{},Y({},r,e[r])))}),{}),a=r.map((function(e){return e.code})),s=Object.keys(n).reduce((function(e,t){return l()({},-1===a.indexOf(t)?e:v(v({},e),{},Y({},t,n[t])))}),{});return l()({},o,s)},ie=function(e,t,n){var r=S.reproject(e,n,"EPSG:4326"),o=S.reproject(t,n,"EPSG:4326"),a=r.x*Math.PI/180,s=r.y*Math.PI/180,i=o.x*Math.PI/180,u=o.y*Math.PI/180,d=i-a,l=Math.sin(d)*Math.cos(u),c=Math.cos(s)*Math.sin(u)-Math.sin(s)*Math.cos(u)*Math.cos(d);return(180*Math.atan2(l,c)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(x).indexOf(t)?x[t](e):0},de=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},le=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=S.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(c.chunk)(Object(c.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return S.getGeoJSONExtent(e.geometry)}return n},ce=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},me=function(e,t,n,r){var o,a,s,i=Math.PI*(1/n-.5);r&&(i+=r/180*Math.PI);for(var u=[[]],d=0;d1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(c.head)(e),Object(c.last)(e)]:e.length>t?[Object(c.head)(e)].concat(S.transformArcsToLine(Object(c.slice)(e,t))):[]},pe=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(c.head)(R.filter((function(e){return e===t})))){var n=z(e,t),r=n.extent,o=n.isIDL,a=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var s=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:a,extent:r,center:[s=s>180?s-360:s,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:a[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var i=[e.minx,e.miny,e.maxx,e.maxy],u=[i[0],i[1]],d=[i[2],i[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],d[1]],d,[d[0],u[1]],u]],extent:i,center:[(i[0]+i[2])/2,(i[1]+i[3])/2]}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=S.getViewportGeometry(t,n),a=o.extent;if(4===a.length)return S.reprojectBbox(a,n,r);var s=a.map((function(e){return e[2]-e[0]})),i=O(s,2),u=i[0],d=i[1];return u>d?S.reprojectBbox(a[0],n,r):S.reprojectBbox(a[1],n,r)},ge=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||P(n),null,{timeout:2e3})},be=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(c.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},Le=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},je=function(e,t){var n=t||"EPSG:3857",r=e&&Object(c.isArray)(e)&&Object(c.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&S.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(c.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},ve=function(e){return!!s.a.defs(e)},Ye=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:S.normalizeLng(n)}},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var s=S.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),i=v({left:0,right:0,top:0,bottom:0},n),u={minx:s[0]+i.left*r,miny:s[1]+i.bottom*r,maxx:s[2]-i.right*r,maxy:s[3]-i.top*r},d=S.getViewportGeometry(u,t.projection),l=4===d.extent.length?[w(d.extent)]:w(d.extent);return Object(c.head)(l.map((function(e){return a.x>=e[0]&&a.y>=e[1]&&a.x<=e[2]&&a.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection),s=v({left:0,right:0,top:0,bottom:0},n),i={width:(t.size.width-s.right-s.left)*r,height:(t.size.height-s.top-s.bottom)*r},u={minx:a.x-i.width/2-s.left*r,miny:a.y-i.height/2-s.bottom*r,maxx:a.x+i.width/2+s.right*r,maxy:a.y+i.height/2+s.top*r},d=S.getViewportGeometry(u,t.projection);if(4===d.extent.length)return{pos:N([d.extent[0]+t.size.width/2*r,d.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(d.extent[0][2]-d.extent[0][0])>Math.abs(d.extent[1][2]-d.extent[1][0])){var l=N([d.extent[0][2]-t.size.width/2*r,d.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),c=v(v({},l),{},{x:l.x+(o.lng>l.x?360:0)});return{pos:c,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:N([d.extent[1][0]+t.size.width/2*r,d.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,a=Object(c.isArray)(n)?n:[n.x,n.y];if(Object(c.isNumber)(a[0])&&!isNaN(a[0])&&Object(c.isNumber)(a[1])&&!isNaN(a[1])&&Object(c.isNumber)(t.x)&&!isNaN(t.x)&&Object(c.isNumber)(t.y)&&!isNaN(t.y)){var s=Object(c.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,i=s&&(Object(c.isArray)(s)?s:[s.x,s.y]);return Object(c.isArray)(i)?Math.sqrt((a[0]-i[0])*(a[0]-i[0])+(a[1]-i[1])*(a[1]-i[1])):o}return o},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,a=e.maximumFractionDigits,s=void 0===a?0:a;return 0===s&&Math[n]?Math[n](o):o},Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(c.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(c.isArray)(t)?{x:t[0],y:t[1]}:t,a={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[a.x,a.y]:a},Te=function(e){return Object(c.isObject)(e)&&Object(c.isNumber)(e.x)&&Object(c.isNumber)(e.y)?[e.x,e.y]:e},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(L.a)(G(t),M()([e.lng,e.lat]))},Ee=function(e,t){return Object(b.a)(e,t)||Object(L.a)(e,t)||Object(L.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},He=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=U[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ae=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var a=n.slice(),s=r.slice();n=[s[0],a[1]],r=[a[0],s[1]]}return[n[0],n[1],r[0],r[1]]};S={setCrsLabels:B,getUnits:J,reproject:N,getProjectedBBox:V,createBBox:q,reprojectGeoJson:K,lineIntersectPolygon:Q,normalizePoint:I,normalizeLng:Z,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ae,filterCRSList:se,calculateAzimuth:ie,calculateDistance:ue,FORMULAS:x,extendExtent:de,getGeoJSONExtent:le,isValidExtent:ce,calculateCircleCoordinates:me,transformLineToArcs:_e,transformArcsToLine:fe,coordsOLtoLeaflet:pe,mergeToPolyGeom:he,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:Me,fetchProjRemotely:ge,parseURN:be,determineCrs:A,parseString:Le,getWMSBoundingBox:je,isSRSAllowed:ve,getNormalizedLatLon:Ye,isInsideVisibleArea:we,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:De,midpoint:Se,pointObjectToArray:Te,getExtentFromNormalized:z,getPolygonFromExtent:G,isPointInsideExtent:xe,isBboxCompatible:Ee,extractCrsFromURN:Pe,crsCodeTable:U,makeNumericEPSG:He,makeBboxFromOWS:Ae},t.default=S},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},a=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,s=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function i(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function u(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var d={HTML:{getValidResponses:function(e,t){return t?e.filter(i):e},getNoValidResponses:function(e){return e.filter((function(e){return!i(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},k=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var s=n.startDate.toISOString?n.startDate.toISOString():n.startDate,i=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+s+"<"+r+":UpperBoundary><"+r+":Literal>"+i+"")}}else if(n.startDate){var u=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+u+"")}return o},D=function(e,t,n,r){var o;return Object(m.isNil)(n)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},S=function(e,t,n,r){var o;return L(n,t)&&(o="isNull"===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag):"="===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+""):a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>*"+n+"*")),o},T=function(e,t,n,r){var o="";return L(n,t)&&"="===t&&""!==n&&(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},x=function(e,t,n,r){var o;if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=a.ogcComparisonOperators["<="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=a.ogcComparisonOperators[">="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var s=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(s)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+s+""))}return o},E=function(e,t){var n="";switch(e.type){case"date":n=k(e.attribute,e.operator,e.values,t);break;case"number":n=x(e.attribute,e.operator,e.values,t);break;case"string":n=S(e.attribute,e.operator,e.values,t);break;case"boolean":n=T(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+S(e.attribute,o,r,t)}),""),n=a.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(b(o),"')")},H=function(e){return"collectGeometries(".concat(e,")")},A=function(e,t,n){var r,s,i,u,d=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?M.processOGCFilterGroup(e.groupFields[0],e,n):M.processOGCFilterFields(null,e,n))&&d.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var l=a.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return E(e,n)})).join(""));d.push(l)}if(Object(m.isArray)(e.spatialField)?(u=Object(m.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(i=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?u=e.spatialField:i=[e.spatialField]),u){if(Object(m.isArray)(u.geometry&&u.geometry.extent[0])){var c=u.geometry.extent.reduce((function(e,r){var o=Object.assign({},u);return u.geometry.extent=r,e+M.processOGCSpatialFilter(t,o,n)}),"");s=a.ogcLogicalOperators.OR(n,c)}d.push(s)}else if(i&&(i=i.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var _=i.map((function(e){return M.processOGCSpatialFilter(t,e,n)})).join("");s=i.length>1?a.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,_):_,d.push(s)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var f=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?f.forEach((function(e){return d.push(M.processOGCCrossLayerFilter(e,n))})):d.push(M.processOGCCrossLayerFilter(f,n))}return e.options&&e.options.cqlFilter&&d.push(g(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),d},F=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var d=w(n||"2.0"),l="2.0"===d?"fes":"ogc",c=M.getGetFeatureBase(d,r.pagination,a,s,t&&t.options),m=M.toOGCFilterParts(r,d,l),_="";return m.length>0&&(_="<"+l+":Filter>",1===m.length?_+=m[0]:(_+="<"+l+":And>",m.forEach((function(e){_+=e})),_+=""),_+=""),c+=""),c+=_,i&&(c+=i.map((function(e){return O[l].startTag+e+O[l].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(c+="<"+l+":SortBy><"+l+":SortProperty>"+O[l].startTag+o.sortBy+O[l].endTag+"<"+l+":SortOrder>"+o.sortOrder+""),c+="
"},I=function(e,t,n){var r=M.processOGCFilterFields(e,t,n),o=M.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=M.processOGCFilterGroup(e,t,n)})),""!==r?a.ogcLogicalOperators[e.logic](n,r):""},C=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&L(t.value,t.operator)})):t.filterFields.filter((function(e){return L(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=k(t.attribute,t.operator,t.value,n);break;case"number":r=x(t.attribute,t.operator,t.value,n);break;case"string":r=S(t.attribute,t.operator,t.value,n);break;case"boolean":r=T(t.attribute,t.operator,t.value,n);break;case"list":r=D(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=S(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},N=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},R=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},W=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},G=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},z=function(e,t,n){if(t.collectGeometries)return M.processOGCCrossLayerFilter(t);var s=O[n].startTag+t.attribute+O[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":s+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(s+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var i=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];s+=''+i+""+u+""}return a.ogcSpatialOperators[t.operation](n,s)},U=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=w(e),s="";break;case"1.1.0":s+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",s=n?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:s+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",s=n&&!t?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return s},B=function(e){return Object(m.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(m.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(m.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&M.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},J=function(e,t){var n=t||"ogc",r=O[n].startTag+e.attribute+O[n].endTag;if(e.collectGeometries){var o=M.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),a.ogcSpatialOperators[e.operation](n,r)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=M.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var a=t.simpleFilterFields.reduce((function(e,t){var n=e,r=M.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");a=a.length>0?a:"INCLUDE",o.push(a)}if(t.spatialField&&(r=M.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var s=t.crossLayerFilter,i=s.operation,u=s.attribute,d=s.collectGeometries&&s.collectGeometries.queryCollection;if(i&&u&&d){var l=d.typeName,c=d.geometryName,m=M.getCrossLayerCqlFilter(s),_=H(P({typeName:l,geometryName:c,cqlFilter:m}));o.push("".concat(i,"(").concat(u,",").concat(_,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},q=function(e,t){var n="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,r=M.processCQLFilterFields(n,t),o=M.findSubGroups(n,t.groupFields);if(o.length>0){var a=o.map((function(e){return(n.negateAll?"NOT (":"(")+M.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,a].join(" "+n.logic+" "):a}return r},K=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=v(e);if(!Object(m.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+b(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+b(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+b(n)+"%'")}return r},$=function(e,t,n){var r="";Object(m.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=v(e);if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var a=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(a)||(r=o+" "+t+" '"+a+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return M.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=M.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=M.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=M.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=M.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=M.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=M.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=M.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=M.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=M.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ae=function(e,t){return'\n \n ')},se=function(e,t,n){var r=M.toOGCFilter(e,t,n),o=r.search("<".concat(M.nsplaceholder,":Filter>"));if(-1!==o){var a=r.search("");r=r.substr(o,a-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},ie=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?M.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):M.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,a=e.crossLayerFilter,s=void 0===a?{}:a;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||s&&s.attribute&&s.operation)},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(m.isArray)(e.spatialField)&&Object(m.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,a=void 0===o?[]:o,s=t.groupFields,i=void 0===s?[]:s,u=t.spatialField,d=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(a.length>0&&i.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(d),logic:e.logic,id:"".concat(e.id,"_").concat(d),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(a.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(d)})}))),spatialField:ce(e.spatialField,u),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},_e=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,a=e.spatialField.geometry.radius,s=Object(c.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,i=o&&[(n=Object(c.reproject)(o,r,t)).x,n.y],u=a&&Object(c.reproject)([a,0],r,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:i,radius:u,coordinates:s,projection:t})})})},fe=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?M.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},pe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,a=void 0===r?"2.0":r,i=e.addXmlnsToRoot,d=void 0!==i&&i,c=e.xmlnsToAdd,f=void 0===c?[]:c,p=l()({filterNS:n,wfsVersion:a,gmlVersion:Object(o.wfsToGmlVersion)(a)}),h=u()(p),y=arguments.length,M=new Array(y>1?y-1:0),g=1;g");return"".concat(b.slice(0,L)).concat(f.length>0?" ".concat(f.join(" ")):"").concat(b.slice(L))}return b};M={processOGCFilterGroup:I,processOGCFilterFields:C,processOGCCrossLayerFilter:J,getGetFeatureBase:U,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:B,processCQLFilterGroup:q,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Q,processCQLFilterFields:re,getCQLGeometryElement:K,cqlStringField:X,cqlDateField:Z,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:_e,processOGCSpatialFilter:z,mergeFiltersToOGC:pe}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return T})),n.d(t,"g",(function(){return x})),n.d(t,"i",(function(){return E})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return H})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return I}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),a=n("./node_modules/turf-point-on-surface/index.js"),s=n.n(a),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),d=n.n(u),l=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),c=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),_=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),f=n.n(_),p=n("./MapStore2/web/client/utils/mapinfo/wms.js"),h=n.n(p),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),M=n.n(y),g=n("./MapStore2/web/client/utils/mapinfo/vector.js"),b=n.n(g);function L(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,a){if(a){var s;a.queryParams&&a.queryParams.hasOwnProperty("info_format")&&(s=a.queryParams.info_format),a.queryParams&&a.queryParams.hasOwnProperty("outputFormat")&&(s=a.queryParams.outputFormat);var i=(o.c[a.format||o.b[s]||o.b[e]]||t).getValidResponses([a],r);return[].concat(L(n),L(i))}return L(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var a;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(a=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(a=r.queryParams.outputFormat);var s=(o.c[r.format||o.b[a]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(L(n),L(s))}return L(n)}),[])}}},P=function(){var e;return w(e={},o.a.PROPERTIES,l.a),w(e,o.a.JSON,l.a),w(e,o.a.HTML,c.a),w(e,o.a.TEXT,m.a),e},H=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:f.a,wms:h.a,wmts:M.a,vector:b.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},I=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var a=e[n];Object.keys(a).forEach((function(e){-1===Object(i.findIndex)(o,(function(t){return t===e}))&&(t[e]=a[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:D,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[s()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(L(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:d.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&Y({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return M})),n.d(t,"METERS_PER_UNIT",(function(){return g})),n.d(t,"GOOGLE_MERCATOR",(function(){return b})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return L})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return j})),n.d(t,"RESOLUTIONS_HOOK",(function(){return v})),n.d(t,"RESOLUTION_HOOK",(function(){return Y})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return w})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return k})),n.d(t,"registerHook",(function(){return S})),n.d(t,"getHook",(function(){return T})),n.d(t,"executeHook",(function(){return x})),n.d(t,"clearHooks",(function(){return E})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return H})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return I})),n.d(t,"getGoogleMercatorScales",(function(){return C})),n.d(t,"getResolutionsForScales",(function(){return N})),n.d(t,"getGoogleMercatorResolutions",(function(){return R})),n.d(t,"getResolutions",(function(){return W})),n.d(t,"getScales",(function(){return G})),n.d(t,"defaultGetZoomForExtent",(function(){return z})),n.d(t,"getZoomForExtent",(function(){return U})),n.d(t,"getCurrentResolution",(function(){return B})),n.d(t,"getCenterForExtent",(function(){return J})),n.d(t,"getBbox",(function(){return V})),n.d(t,"isNearlyEqual",(function(){return q})),n.d(t,"mapUpdated",(function(){return K})),n.d(t,"transformExtent",(function(){return Q})),n.d(t,"groupSaveFormatted",(function(){return Z})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ae})),n.d(t,"prepareMapObjectToCompare",(function(){return se})),n.d(t,"updateObjectFieldKey",(function(){return ie})),n.d(t,"compareMapChanges",(function(){return ue})),n.d(t,"createRegisterHooks",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./node_modules/object-assign/index.js"),l=n.n(d);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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(c,r))}function U(e,t,n,r,o){return T("EXTENT_TO_ZOOM_HOOK")?T("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):z(e,t,n,r,o,T("RESOLUTIONS_HOOK")?T("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||M)):null)}function B(e,t,n,r){return T("RESOLUTION_HOOK")?T("RESOLUTION_HOOK")(e,t,n,r):R(t,n,r)[e]}function J(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function V(e,t){return x("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var q=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function K(e,t){var n,o,a,s;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(q(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&q(null==t||null===(a=t.center)||void 0===a?void 0:a.y,null==e||null===(s=e.center)||void 0===s?void 0:s.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Q(e,t,n,r){var o=Object(s.getUnits)(e);return"ft"===o?{width:n/g.ft,height:r/g.ft}:"us-ft"===o?{width:n/g["us-ft"],height:r/g["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var Z=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,a,s,d){var c={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},m=t.map((function(e){return Object(u.saveLayer)(e)})),_=n.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(n,e);return t&&t.nodes?Z(t):null})).filter((function(e){return e})),f=o.filter((function(e){return!!e.thumbnail})),p=Object(u.extractSourcesFromLayers)(m),y=m.map((function(e){return l()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),M=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==M){var g=y[M].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):{}}));y[M]=Object(i.e)("features",g,y[M])}return h({version:2,map:l()({},c,{layers:y,groups:_,backgrounds:f,text_search_config:a,bookmark_search_config:s},!Object(r.isEmpty)(p)&&{sources:p}||{})},d)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=h(h({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,"annotations"===t.id?t.id:a()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,a()()))}),{}));return Object(i.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),Object(i.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return h(h({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:n[e.id],layer:h(h({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(i.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),a=[].concat(_(Object(r.get)(e,"map.backgrounds",[])),_(Object(r.get)(o,"map.backgrounds",[]))),s=n(Object(r.get)(e,"map.layers",[])),i=n(Object(r.get)(o,"map.layers",[])),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),d=Object(r.find)(i,(function(e){return"annotations"===e.id})),l=[].concat(_(i.filter((function(e){return"annotations"!==e.id}))),_(s.filter((function(e){return"annotations"!==e.id}))),_(u||d?[h(h(h({},u||{}),d||{}),{},{features:[].concat(_(Object(r.get)(u,"features",[])),_(Object(r.get)(d,"features",[])))})]:[])),c=l.filter((function(e){return"background"===e.group})),m=Object(r.findIndex)(c,(function(e){return e.visibility})),f=Object(r.get)(e,"map.sources",{}),p=Object(r.get)(o,"map.sources",{}),M=h(h({},f),p),g=Object(r.get)(e,"widgetsConfig",{}),b=Object(r.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(r.get)(e,"catalogServices",{})),{},{services:h(h({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:a,groups:Object(r.uniqWith)([].concat(_(Object(r.get)(e,"map.groups",[])),_(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(_(c.slice(0,m+1)),_(c.slice(m+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),_(l.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(M)?void 0:M}),widgetsConfig:{collapsed:h(h({},g.collapsed),b.collapsed),layouts:Object(r.uniq)([].concat(_(Object(r.keys)(g.layouts)),_(Object(r.keys)(b.layouts)))).reduce((function(e,t){return h(h({},e),{},y({},t,[].concat(_(Object(r.get)(g,"layouts.".concat(t),[])),_(Object(r.get)(b,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(_(Object(r.get)(g,"widgets",[])),_(Object(r.get)(b,"widgets",[])))},timelineData:h(h({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:h(h({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),s=Object(r.find)(n,(function(e){return"Default"===e.id})),i=s&&{id:a()(),title:t,expanded:s.expanded},u=s?[].concat(_(o.map((function(e){var t=e.id,n=m(e,["id"]);return h({id:"".concat(i.id,".").concat(t)},n)}))),[i]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:u,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return h(h({},m(e,["group"])),{},{group:!s||"background"===n||"Default"!==n&&n?s&&(null===(t=Object(r.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:i.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},se=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],a=c(o);"object"!==a||null===o||r(n)?"undefined"!==a&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},ie=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),a=Object(r.pick)(Object(r.cloneDeep)(t),n);return ie(o.map,"text_serch_config","text_search_config"),ie(a.map,"text_serch_config","text_search_config"),se(o),se(a),Object(r.isEqual)(o,a)},de=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:de,EXTENT_TO_ZOOM_HOOK:L,RESOLUTIONS_HOOK:v,RESOLUTION_HOOK:Y,COMPUTE_BBOX_HOOK:w,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:k,DEFAULT_SCREEN_DPI:M,ZOOM_TO_EXTENT_HOOK:j,registerHook:S,getHook:T,dpi2dpm:P,getSphericalMercatorScales:I,getSphericalMercatorScale:A,getGoogleMercatorScales:C,getGoogleMercatorResolutions:R,getGoogleMercatorScale:F,getResolutionsForScales:N,getZoomForExtent:U,defaultGetZoomForExtent:z,getCenterForExtent:J,getResolutions:W,getScales:G,getBbox:V,mapUpdated:K,getCurrentResolution:B,transformExtent:Q,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ae,prepareMapObjectToCompare:se,updateObjectFieldKey:ie,compareMapChanges:ue,clearHooks:E}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=function(e,t){return e===t},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},i=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,s())})),u=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,s(e))}))}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=n.n(r),a=n("./MapStore2/web/client/product/assets/img/marker-shadow.png"),s=n.n(a),i={iconUrl:o.a,shadowUrl:s.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},d=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),s=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var a=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,s=a||t.name||"";return s;case"description":var i=t.description||"";return i;case"both":var u=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,d=u||t.nam||"",l=t.description||"";return"".concat(d).concat(o&&l?o:"").concat(l);default:return t[e]}},u=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return i(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(a=a&&a.substring(0,o.maxLength)).length===o.maxLength&&(a+="..."),{title:i("title",t,n,o.separator),tooltipText:a}},d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(a.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return a})),n.d(t,"getCleanTemplate",(function(){return s})),n.d(t,"parseCustomTemplate",(function(){return i})),n.d(t,"generateTemplateString",(function(){return u})),n.d(t,"parseTemplate",(function(){return d}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,a)},s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(n),d=u&&u.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:a(t,n,r,s)?n:i(e)}}))||null;return d&&d.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(s(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},u=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),d=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var a=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(a)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},l={generateTemplateString:u,parseTemplate:d,validateStringAttribute:a,getCleanTemplate:s,parseCustomTemplate:i};t.default=l},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.width,s=void 0===a?64:a,i=o.height,u=void 0===i?64:i,d=o.contain,l=o.type,c=void 0===l?"image/jpeg":l,m=o.quality,_=void 0===m?.5:m,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var e=f.naturalWidth/f.naturalHeight,t=s,r=u,o=s/u,a=document.createElement("canvas");a.setAttribute("width",s),a.setAttribute("height",u),a.style.width=s+"px",a.style.height=u+"px";var i=a.getContext("2d"),l=!d&&eo?[t,t/e]:[r*e,r];i.save(),i.translate(t/2,r/2),i.drawImage(f,-l[0]/2,-l[1]/2,l[0],l[1]),i.restore();var m=a.toDataURL(c,_);n(m)},f.onerror=function(e){r(e)},f.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.type,s=void 0===a?"image/jpeg":a,i=o.quality,u=void 0===i?.5:i,d=document.createElement("video");d.crossOrigin="anonymous";var l=document.createElement("source"),c=document.createElement("canvas");d.addEventListener("loadedmetadata",(function(){var e=d.videoWidth,t=d.videoHeight;c.setAttribute("width",e),c.setAttribute("height",t),c.style.width=e+"px",c.style.height=t+"px"}),!0),d.addEventListener("loadeddata",(function(){d.currentTime=1}),!0),d.addEventListener("seeked",(function(){c.getContext("2d").drawImage(d,0,0);try{var e=c.toDataURL(s,u);n(e)}catch(e){r(e)}}),!0),d.addEventListener("error",(function(e){r(e)}),!0),d.appendChild(l),d.setAttribute("src",e)}))},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(e=t.match(a))||void 0===e?void 0:e[1];return s?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/TimeUtils.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"k",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return L})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return v}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/moment/moment.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=/PT?[\d\.]+[YMWDHMS]/,u=function(e){return e?Object(r.isString)(e)?new Date(e).getTime():(Object(r.isDate)(e)&&e.getTime(),e):null},d=function(e,t){var n=u(t),r=1/0,o=-1;return e.forEach((function(e,t){var a=u(e),s=Math.abs(a-n);s0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.start,i=o.end;if(!s||!i)return{count:l({start:t,end:n,duration:r}),start:t,end:n};var u=a.a.duration(r).asMilliseconds(),d=new Date(t).getTime(),c=new Date(n).getTime(),m=new Date(s).getTime(),_=new Date(i).getTime(),f=Math.ceil((m-d)/u),p=Math.floor((_-d)/u),h=Math.floor((c-d)/u);if(f>=0&&p<=h){var y=p-f;return{start:new Date(d+Math.max(0,f)*u),end:new Date(d+Math.min(h,p)*u),count:y}}return{count:l({start:t,end:n,duration:r}),start:t,end:n}},f=function(e){return e.match(i)[0]},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=arguments.length>1?arguments[1]:void 0,o=new Date(t),s=new Date(n),i=Math.floor(s.getTime()-o.getTime())/r,u=a.a.duration(i).toISOString(),d=f(u);return{range:{start:t,end:n},resolution:d}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[d(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},M=function(e,t){var n=a()(e).diff(t);return{start:n>=0?t:e,end:n>=0?e:t}},g=function(e){return 6e4*e.getTimezoneOffset()},b=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCHours();n=n<10?"0"+n:n;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var a=t.getUTCSeconds();return a=a<10?"0"+a:a,"".concat(n,":").concat(o,":").concat(a)},L=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCMonth()+1,o=t.getUTCDate();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(n,"-").concat(o)},j=function(e,t){var n=Object(s.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return n;default:return n+" HH:mm:SS"}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,n=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,a=Object(r.castArray)(n.DimensionDomain||[]).concat(),s=n["@version"]||n.version,i=Object(r.get)(n,"SpaceDomain.BoundingBox");return i&&a.push({Identifier:"space",Domain:i}),a.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:s,url:o},name:t,domain:n}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return i}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,s=t.filterObj,i=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(s)&&Object(r.toCQLFilter)(s),t&&t.params&&t.params.CQL_FILTER,n];return(e=(i=i.filter((function(e){return!!e}))).length>1?i.map((function(e){return"(".concat(e,")")})).join(" AND "):i.pop())?a(a({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return l})),n.d(t,"toDescribeURL",(function(){return c})),n.d(t,"extractGeometryType",(function(){return m})),n.d(t,"extractGeometryAttributeName",(function(){return _}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,s=e.describeFeatureTypeURL,i=a.a.parse(s||r.url||o,!0);return a.a.format(u(u({},i),{},{search:void 0,query:u(u({},i.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},m=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},_=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return d})),n.d(t,"getMatrixIds",(function(){return l})),n.d(t,"limitMatrix",(function(){return c})),n.d(t,"getTileMatrixSet",(function(){return m})),n.d(t,"getRequestEncoding",(function(){return _})),n.d(t,"getOperations",(function(){return f})),n.d(t,"getOperation",(function(){return p})),n.d(t,"getGetTileURL",(function(){return h})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return M})),n.d(t,"getDefaultFormat",(function(){return g})),n.d(t,"sortTileMatrix",(function(){return b})),n.d(t,"getTileMatrix",(function(){return L}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;tt?Object(a.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(a.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(a.isArray)(e)){var s=Object(a.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return s&&s["ows:Identifier"]?s["ows:Identifier"]:t}return Object(a.isObject)(e)&&e[n]||t}),s):s},_=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},p=function(e,t,n){return Object(a.head)(Object(a.castArray)(Object(a.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(a.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(a.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.head)(Object(a.castArray)(e.capabilitiesURL||e.GetTileURL))},M=function(e){return Object(a.head)(Object(a.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},g=function(e){return Object(a.head)(Object(a.castArray)(e.Format))},b=function(e,t){return e?i(i({},e),{},{TileMatrix:Object(a.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return i(i({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},L=function(e,t){var n,r,o=m(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),s=e.matrixIds&&l(e.matrixIds,o||t),i=b(Object(a.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),s),u=null==i||null===(n=(r=i.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&s?s.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):s,tileMatrixSetName:o,tileMatrixSet:i}};r={getOperations:f,getOperation:p}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,s=t.currentLocale,i=t.params,c=t.maxItems,m=void 0===c?10:c,_=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0;return{request:h(a({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(r.projection)||"EPSG:4326",feature_count:m},y({params:i})),e),metadata:{title:l(e.title)?e.title[s]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:f},url:d(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,a=r(n,["point"]),s=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return i.defer((function(){return _(e.url,e.name).then((function(n){var r=p(n),o=c({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:s}},params:y({},e.baseParams,e.params,a)});return f(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,a=void 0===r?{}:r,i=t.point,y=t.currentLocale,M=t.params,g=t.maxItems,b=void 0===g?10:g,L=t.env,j=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,Y=arguments.length>4?arguments[4]:void 0,w=n&&n.height||101,O=n&&n.width||101,k=[w,O],D=0,S=s(Math.ceil(a.zoom),0,21,96),T=i.latlng.lng,x=T-360*Math.floor(T/360+.5),E={x:x,y:i.latlng.lat},P=u(E,"EPSG:4326",a.projection),H=d(P,S,D,k,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=f(L),I=_({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,M)});return{request:p(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:w,width:O,srs:l(a.projection)||"EPSG:4326",bbox:H.minx+","+H.miny+","+H.maxx+","+H.maxy,feature_count:b,info_format:j,ENV:F},h({},I)),e),metadata:{title:m(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:v,featureInfo:Y},url:c(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},l={AND:"and",OR:"or",NOT:"not"},c={RPAREN:3,LOGICAL:2,COMPARISON:1},m=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},_=function(e,t){var n,r,o=t.length;for(n=0;n0&&c[t[t.length-1].type]<=m;)i.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)i.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&i.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)i.push(t.pop());var _=function e(){var t=i.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:l[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:l.NOT};case"BETWEEN":i.pop();var c=e(),m=e();return{property:e(),lowerBoundary:m,upperBoundary:c,type:d.BETWEEN};case"COMPARISON":var _=e();return{property:e(),value:_,type:d[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:d[t.text.toUpperCase()]};case"VALUE":var f=t.text.match(/^'(.*)'$/);return f?f[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var p=e(),h=e(),y=e(),M=e(),g=e();return{type:r,property:g,value:[M,y,h,p]};case"INTERSECTS":var b=e(),L=e();return{type:n,property:L,value:b};case"WITHIN":var j=e(),v=e();return{type:s,property:v,value:j};case"CONTAINS":var Y=e(),w=e();return{type:o,property:w,value:Y};case"DWITHIN":var O=e(),k=e(),D=e();return{type:a,value:k,property:D,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(i.length>0){for(var f="Remaining tokens after building AST: \n",p=i.length-1;p>=0;p--)f+=i[p].type+": "+i[p].text+"\n";throw new Error(f)}return _};e.exports={read:function(e){return f(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=_(r,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),a=o.logical,s=o.spatial,i=o.comparison,u=o.literal,d=o.propertyName,l=o.valueReference,c=o.distance,m=o.lower,_=o.upper,f=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),p=f.filter,h=f.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,f=e.wfsVersion,M=void 0===f?"1.1.0":f,g=o||"3.1.1",b=function(e){return y(g,e)},L=function(e){return"object"===r(e)&&Date,u(n,e)},j=0===M.indexOf("2.")?l:d;return{filter:p.bind(null,n),fidFilter:h.bind(null,n),and:a.and.bind(null,n),or:a.or.bind(null,n),not:a.not.bind(null,n),property:function(e){return{equalTo:function(t){return i.equal(n,j(n,e),L(t))},greaterThen:function(t){return i.greater(n,j(n,e),L(t))},greaterThenOrEqualTo:function(t){return i.greaterOrEqual(n,j(n,e),L(t))},lessThen:function(t){return i.less(n,j(n,e),L(t))},lessThenOrEqualTo:function(t){return i.lessOrEqual(n,j(n,e),L(t))},notEqualTo:function(t){return i.notEqual(n,j(n,e),L(t))},between:function(t,r){return i.between(n,j(n,e),m(n,L(t)),_(n,L(r)))},like:function(t,r){return i.like(n,j(n,e),L(t),r)},ilike:function(t,r){return i.ilike(n,j(n,e),L(t),r)},isNull:function(){return i.isNull(n,j(n,e))},intersects:function(t){return s.intersects(n,j(n,e),b(t))},within:function(t){return s.within(n,j(n,e),b(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s.dwithin(n,j(n,e),b(t),c(n,r,o))},contains:function(t){return s.contains(n,j(n,e),b(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,a=n.filters,l=void 0===a?[]:a,c=n.value,m=n.property,_=n.lowerBoundary,f=n.upperBoundary;return s(u,o)?t[o].apply(t,r(l.map(e(t)))):t.property(m)[d[o]](i(c)?_:c,f)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},a=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},s={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.AND,[t].concat(o)):a(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.OR,[t].concat(o)):a(e,r.OR,t)},not:function(e,t){return a(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.NOR,[t].concat(o)):a(e,r.NOR,t)}},i={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:s,spatial:i,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},a=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},s=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},i=function(e,t,n){var s=o(n),i="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=a(e).map((function(e){return e[0]+(s?",":" ")+e[1]})),r=s?"outerBoundaryIs":"exterior",o=s?"innerBoundaryIs":"exterior";i+=(t<1?"":"")+""+(s?"":"")+n.join(" ")+(s?"":"")+""+(t<1?"":"")})),i+=""},u=function(e,t,n){var r=o(n),a="':">";var s=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return a+=(r?"":"")+s.join(" ")+(r?"":""),a+=""};e.exports={closePolygon:a,pointElement:s,polygonElement:i,lineStringElement:u,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=s(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+="";break;case"LineString":n+=u(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",a="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=u(t,r,e),n+="")})),n+="";break;case"Polygon":n+=i(t.coordinates,r,e);break;case"MultiPolygon":var d="3.2"===e?"MultiSurface":"MultiPolygon",l="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=i(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,a=r.get,s=function(e){return/[<>&'"]/.test(e)?""):e},i=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},d=function(e){return a(e,"featureTypes[0].properties")},l=function(e,t){return o((d(t)||[]).filter((function(t){return t.name===e})))},c=function(e){return e.targetNamespace},m=function(e){return 0===e.type.indexOf("gml:")},_=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return _(m(r)?t:n[r.name],r)};e.exports={schemaLocation:c,isGeometryType:m,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(c(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=m(l(t,n));return o?e?i(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?s(e):e},getPropertyDesciptor:l,findGeometryProperty:function(e){return o((d(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:d,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:i,isValid:function(e,t){return d(t).map((function(t){return f(e,t)}))},isValidProperty:f,isValidValueForPropertyName:function(e,t,n){return _(e,l(t,n))},isValidValue:_}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return _})),n.d(t,"l",(function(){return f}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",a="GEONODE:SAVE_ERROR",s="GEONODE:CLEAR_SAVE",i="GEONODE:SAVE_CONTENT",u="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function d(){return{type:r}}function l(e){return{type:o,success:e}}function c(e){return{type:a,error:e}}function m(){return{type:s}}function _(e,t,n){return{type:i,id:e,metadata:t,reload:n}}function f(e){return{type:u,id:e}}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),a=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/backgroundselector.js"),i=n("./MapStore2/web/client/utils/MapUtils.js"),u=n("./node_modules/reselect/es/index.js"),d=n("./MapStore2/web/client/selectors/catalog.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),m=n("./MapStore2/web/client/selectors/dimension.js"),_=n("./MapStore2/web/client/selectors/timeline.js"),f=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},p=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-kw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ly.js":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,s){var i=n(t),u=r[e][n(t)];return 2===i&&(u=u[o?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var i=r(t),u=o[e][r(t)];return 2===i&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-ch.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-au.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-gb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ie.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-il.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-nz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-do.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-us.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,a){var s="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":s=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":s=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":s=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":s=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":s=a?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-latn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gu.js":function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it.js":function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kn.js":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ky.js":function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,s){var i=e+" ";return 1===e?i+n(0,t,a[0],s):t?i+(r(e)?o(a)[1]:o(a)[0]):s?i+o(a)[1]:i+(r(e)?o(a)[1]:o(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl-be.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pa-in.js":function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sd.js":function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ss.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tet.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tg.js":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ug-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ur.js":function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/x-pseudo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/yo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-hk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},z={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=J(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var V=/\d/,q=/\d\d/,K=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function le(e,t,n){de[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(de,e)?de[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _e={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=v(e)}),n=0;n68?1900:2e3)};var ge,be=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(ve(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ve(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ye(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ye(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function Ae(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var a,s,i=1+7*(t-1)+(7+n-r)%7+Fe(e,r,o);return i<=0?s=ye(a=e-1)+i:i>ye(e)?(a=e+1,s=i-ye(e)):(a=e,s=i),{year:a,dayOfYear:s}}function Ce(e,t,n){var r,o,a=Fe(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Ne(o=e.year()-1,t,n):s>Ne(e.year(),t,n)?(r=s-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function Ne(e,t,n){var r=Fe(e,t,n),o=Fe(e+1,t,n);return(ye(e)-r+o)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),C("week",5),C("isoWeek",5),le("w",X),le("ww",X,q),le("W",X),le("WW",X,q),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=v(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=v(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null}var Ue=ue,Be=ue,Je=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,r,o,a,s=[],i=[],u=[],d=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(r),i.push(o),u.push(a),d.push(r),d.push(o),d.push(a);for(s.sort(e),i.sort(e),u.sort(e),d.sort(e),t=0;t<7;t++)i[t]=me(i[t]),u[t]=me(u[t]),d[t]=me(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ke(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,qe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),H("hour","h"),C("hour",13),le("a",Qe),le("A",Qe),le("H",X),le("h",X),le("k",X),le("HH",X,q),le("hh",X,q),le("kk",X,q),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var r=v(e);t[3]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=v(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o))}));var Ze,Xe=Le("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:ke,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var r=null;if(!et[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),ot(r)}catch(e){}return et[t]}function ot(e,t){var n;return e&&((n=i(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=$e;if(t.abbr=e,null!=et[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new E(x(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=rt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Y(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function it(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ye(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var t,n,r,a,s,i=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,s,i,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,s=4,n=ut(t.GG,e._a[0],Ce(Yt(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(u=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var d=Ce(Yt(),a,s);n=ut(t.gg,e._a[0],d.year),r=ut(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a}r<1||r>Ne(n,a,s)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(i=Ie(n,r,o,a,s),e._a[0]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(s=ut(e._a[0],r[0]),(e._dayOfYear>ye(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ae(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:He).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function ht(e){var t,n,r,o,a,s,i=e._i,u=lt.exec(i)||ct.exec(i);if(u){for(f(e).iso=!0,t=0,n=_t.length;t0&&f(e).unusedInput.push(s),i=i.slice(i.indexOf(n)+n.length),d+=n.length),z[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),he(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=u-d,i.length>0&&f(e).unusedInput.push(i),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),dt(e),it(e)}else bt(e);else ht(e)}function jt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new b(it(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:h()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r(a=Ne(e,r,o))&&(t=a),$t.call(this,e,t,n,r,o))}function $t(e,t,n,r,o){var a=Ie(e,t,n,r,o),s=Ae(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Zt("gggg","weekYear"),Zt("ggggg","weekYear"),Zt("GGGG","isoWeekYear"),Zt("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",X,q),le("gg",X,q),le("GGGG",ne,Q),le("gggg",ne,Q),le("GGGGG",re,Z),le("ggggg",re,Z),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=v(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),H("quarter","Q"),C("quarter",7),le("Q",V),fe("Q",(function(e,t){t[1]=3*(v(e)-1)})),U("D",["DD",2],"Do","date"),H("date","D"),C("date",9),le("D",X),le("DD",X,q),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=v(e.match(X)[0])}));var en=Le("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),C("dayOfYear",4),le("DDD",te),le("DDDD",K),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=v(e)})),U("m",["mm",2],0,"minute"),H("minute","m"),C("minute",14),le("m",X),le("mm",X,q),fe(["m","mm"],4);var tn=Le("Minutes",!1);U("s",["ss",2],0,"second"),H("second","s"),C("second",15),le("s",X),le("ss",X,q),fe(["s","ss"],5);var nn,rn=Le("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),C("millisecond",16),le("S",te,V),le("SS",te,q),le("SSS",te,K),nn="SSSS";nn.length<=9;nn+="S")le(nn,oe);function on(e,t){t[6]=v(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")fe(nn,on);var an=Le("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var sn=b.prototype;function un(e){return e}sn.add=Bt,sn.calendar=function(e,t){var n=e||Yt(),r=At(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",s=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Yt(n)))},sn.clone=function(){return new b(this)},sn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":a=Vt(this,r)/12;break;case"month":a=Vt(this,r);break;case"quarter":a=Vt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:j(a)},sn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},sn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},sn.from=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.fromNow=function(e){return this.from(Yt(),e)},sn.to=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.toNow=function(e){return this.to(Yt(),e)},sn.get=function(e){return T(this[e=A(e)])?this[e]():this},sn.invalidAt=function(){return f(this).overflow},sn.isAfter=function(e,t){var n=L(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(i(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},sn.toJSON=function(){return this.isValid()?this.toISOString():null},sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},sn.unix=function(){return Math.floor(this.valueOf()/1e3)},sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},sn.year=be,sn.isLeapYear=function(){return Me(this.year())},sn.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},sn.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},sn.quarter=sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},sn.month=Te,sn.daysInMonth=function(){return Ye(this.year(),this.month())},sn.week=sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},sn.isoWeek=sn.isoWeeks=function(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},sn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},sn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},sn.date=en,sn.day=sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},sn.hour=sn.hours=Xe,sn.minute=sn.minutes=tn,sn.second=sn.seconds=rn,sn.millisecond=sn.milliseconds=an,sn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},sn.utc=function(e){return this.utcOffset(0,e)},sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},sn.isUtc=It,sn.isUTC=It,sn.zoneAbbr=function(){return this._isUTC?"UTC":""},sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},sn.dates=O("dates accessor is deprecated. Use date instead.",en),sn.months=O("months accessor is deprecated. Use month instead",Te),sn.years=O("years accessor is deprecated. Use year instead",be),sn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),sn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=jt(e))._a){var t=e._isUTC?_(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=E.prototype;function ln(e,t,n,r){var o=st(),a=_().set(r,t);return o[n](a,e)}function cn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ln(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,a=st(),s=e?a._week.dow:0;if(null!=n)return ln(t,(n+s)%7,r,"day");var i=[];for(o=0;o<7;o++)i[o]=ln(t,(o+s)%7,r,"day");return i}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=un,dn.postformat=un,dn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ot),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var _n=Math.abs;function fn(e,t,n,r){var o=Rt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function pn(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var gn=Mn("ms"),bn=Mn("s"),Ln=Mn("m"),jn=Mn("h"),vn=Mn("d"),Yn=Mn("w"),wn=Mn("M"),On=Mn("y");function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=kn("milliseconds"),Sn=kn("seconds"),Tn=kn("minutes"),xn=kn("hours"),En=kn("days"),Pn=kn("months"),Hn=kn("years"),An=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function In(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Cn=Math.abs;function Nn(e){return(e>0)-(e<0)||+e}function Rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Cn(this._milliseconds)/1e3,r=Cn(this._days),o=Cn(this._months);e=j(n/60),t=j(e/60),n%=60,e%=60;var a=j(o/12),s=o%=12,i=r,u=t,d=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var m=c<0?"-":"",_=Nn(this._months)!==Nn(c)?"-":"",f=Nn(this._days)!==Nn(c)?"-":"",p=Nn(this._milliseconds)!==Nn(c)?"-":"";return m+"P"+(a?_+a+"Y":"")+(s?_+s+"M":"")+(i?f+i+"D":"")+(u||d||l?"T":"")+(u?p+u+"H":"")+(d?p+d+"M":"")+(l?p+l+"S":"")}var Wn=St.prototype;return Wn.isValid=function(){return this._isValid},Wn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Wn.add=function(e,t){return fn(this,e,t,1)},Wn.subtract=function(e,t){return fn(this,e,t,-1)},Wn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Wn.asMilliseconds=gn,Wn.asSeconds=bn,Wn.asMinutes=Ln,Wn.asHours=jn,Wn.asDays=vn,Wn.asWeeks=Yn,Wn.asMonths=wn,Wn.asYears=On,Wn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,s=this._days,i=this._months,u=this._data;return a>=0&&s>=0&&i>=0||a<=0&&s<=0&&i<=0||(a+=864e5*pn(yn(i)+s),s=0,i=0),u.milliseconds=a%1e3,e=j(a/1e3),u.seconds=e%60,t=j(e/60),u.minutes=t%60,n=j(t/60),u.hours=n%24,s+=j(n/24),o=j(hn(s)),i+=o,s-=pn(yn(o)),r=j(i/12),i%=12,u.days=s,u.months=i,u.years=r,this},Wn.clone=function(){return Rt(this)},Wn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},Wn.milliseconds=Dn,Wn.seconds=Sn,Wn.minutes=Tn,Wn.hours=xn,Wn.days=En,Wn.weeks=function(){return j(this.days()/7)},Wn.months=Pn,Wn.years=Hn,Wn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Rt(e).abs(),o=An(r.as("s")),a=An(r.as("m")),s=An(r.as("h")),i=An(r.as("d")),u=An(r.as("M")),d=An(r.as("y")),l=o<=Fn.ss&&["s",o]||o0,l[4]=n,In.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Wn.toISOString=Rn,Wn.toString=Rn,Wn.toJSON=Rn,Wn.locale=qt,Wn.localeData=Qt,Wn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),Wn.lang=Kt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(v(e))})),o.version="2.21.0",t=Yt,o.fn=sn,o.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Yt(1e3*e)},o.months=function(e,t){return cn(e,t,"months")},o.isDate=d,o.locale=ot,o.invalid=h,o.duration=Rt,o.isMoment=L,o.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},o.parseZone=function(){return Yt.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=Tt,o.monthsShort=function(e,t){return cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},o.defineLocale=at,o.updateLocale=function(e,t){if(null!=t){var n,r,o=$e;null!=(r=rt(e))&&(o=r._config),t=x(o,t),(n=new E(t)).parentLocale=et[e],et[e]=n,ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},o.locales=function(){return k(et)},o.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=sn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/turf-center/index.js":function(e,t,n){var r=n("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=n("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=r(e),n=(t[0]+t[2])/2,a=(t[1]+t[3])/2;return o([n,a])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,n){var r=n("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return r(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(i-a)*(e[1]-s)/(u-s)+a&&(n=!n)}return n}e.exports=function(e,t){var n=r.getCoord(e),a=t.geometry.coordinates;"Polygon"===t.geometry.type&&(a=[a]);for(var s=0,i=!1;s1&&void 0!==arguments[1]?arguments[1]:D;return{type:i,target:t,id:o()(),widget:e}},C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:D;return{type:_,id:e,target:o,key:t,value:n,mode:r}},N=function(e){return{type:f,layer:e}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:h,target:t,widget:e}},W=function(){return{type:y}},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return{type:p,allLayouts:t,layout:e,target:n}},z=function(e){return{type:d,widget:e}},U=function(e,t){return{type:l,widget:e,settings:t}},B=function(e,t){return{type:c,key:e,value:t}},J=function(e,t){return{type:m,key:e,value:t}},V=function(e){return{type:b,dependencies:e}},q=function(e,t,n,r){return{type:j,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return J("step",e)},Q=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:Y,data:n,title:void 0===r?"export":r}},Z=function(e){var t=e.widgetDivId;return{type:w,widgetDivId:t}},X=function(){return{type:v}},$=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:D;return{type:x,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return{type:E,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:P,widget:e,target:t}},re=function(e){return{type:H,value:e}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return f})),n.d(t,"getFeatureSimple",(function(){return p})),n.d(t,"getCapabilitiesURL",(function(){return h})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return M})),n.d(t,"getCapabilities",(function(){return g})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return b})),n.d(t,"describeFeatureType",(function(){return L}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),a=n("./node_modules/url/url.js"),s=n.n(a),i=n("./node_modules/object-assign/index.js"),u=n.n(i);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=s.a.parse(e,!0);return s.a.format(u()({},o,{query:u()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,a=d(n,["version"]),i=s.a.parse(e,!0);return s.a.format(u()({},i,{query:u()(m({service:"WFS",typeName:t,version:o,request:"GetFeature"},a),i.query)}))},M=function(e,t,n){return o.a.get(y(e,t,n))},g=function(e){return o.a.get(h(e))},b=function(e,t){var r=s.a.parse(e,!0),a=s.a.format(u()({},r,{query:u()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(a).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},L=function(e,t){return o.a.get(f(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function u(e){return(u="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,g=/([^<]*<\/style>)/i,b=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&&c(e,t)}(s,e);var t,n,r,a=m(s);function s(){return d(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=g.exec(e),n=t&&2===t.length?g.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(M,"$1").trim();return o.a.createElement(i.a,{html:n+r})}}])&&l(t.prototype,n),r&&l(t,r),s}(o.a.Component);p=b,h="propTypes",y={response:s.a.string},h in p?Object.defineProperty(p,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[h]=y,t.a=b},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/TemplateUtils.js"),u=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),d=n("./node_modules/prop-types/index.js"),l=n.n(d),c=n("./MapStore2/web/client/utils/StringUtils.js");function m(e){return(m="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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=w[t]||w.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l;t.a=(l=r.Button,a.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,s=void 0===o?function(){}:o,c=d(e,["disabled","className","onClick"]);return a.a.createElement(l,u({ref:t,className:n?i()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},c),c.children)})))},"./MapStore2/web/client/components/misc/Dialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),u=n.n(i),d=n("./node_modules/react-draggable/dist/react-draggable.js"),l=n.n(d),c=n("./node_modules/react-spinkit/dist/index.js"),m=n.n(c),_=n("./MapStore2/web/client/components/I18N/Message.jsx");function f(e){return(f="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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0})),Y(j(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=u.a.createElement("div",{id:this.props.id,style:h({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(l.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&M(t.prototype,n),r&&M(t,r),s}(u.a.Component);Y(w,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),Y(w,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=w},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},c=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,a=e.hidden;return s.a.createElement("div",{className:o,style:u({width:t,height:t,overflow:"hidden"},r)},!a&&s.a.createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};c.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=c},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),i=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/react-addons-css-transition-group/index.js"),l=n.n(d),c=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),m={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},_={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,u=e.loadingText,d=e.onClose,f=void 0===d?function(){}:d,p=e.title,h=void 0===p?"":p,y=e.clickOutEnabled,M=void 0===y||y,g=e.showClose,b=void 0===g||g,L=e.disabledClose,j=void 0!==L&&L,v=e.showFullscreen,Y=void 0!==v&&v,w=e.fullscreenType,O=void 0===w?"full":w,k=e.buttons,D=void 0===k?[]:k,S=e.size,T=void 0===S?"":S,x=e.bodyClassName,E=void 0===x?"":x,P=e.children,H=e.draggable,A=void 0!==H&&H,F=e.fullscreenState,I=e.onFullscreen,C=e.fade,N=void 0!==C&&C,R=e.fitContent,W=e.modalClassName,G=void 0===W?"":W,z=e.dialogClassName,U=void 0===z?"":z,B=e.enableFooter,J=void 0===B||B,V=m[T]||"",q=Y&&"expanded"===F&&_.className[O]||"",K=n?o.a.createElement("div",{className:"modal-fixed ".concat(G," ")+(A?"ms-draggable":"")},o.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:M?f:function(){},containerClassName:"ms-resizable-modal",draggable:A,modal:!0,className:"modal-dialog modal-content"+V+q+U+(R?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},h),Y&&_.className[O]&&o.a.createElement(a.Glyphicon,{className:"ms-header-btn",onClick:function(){return I("expanded"===F?"collapsed":"expanded")},glyph:_.glyph[F][O]}),b&&f&&o.a.createElement(a.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:j}))),o.a.createElement("div",{role:"body",className:E},P),J&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(c.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),o.a.createElement(i.a,{buttons:D})))):null;return N?o.a.createElement(l.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));t.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),d=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=w?["SIZE"]:[])),e)):null})).catch((function(e){return I.current?(R(!1),H(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=D&&D.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},p),W):o.a.createElement("div",{className:"dropzone-content-image"},p,W,h&&o.a.createElement("div",{className:"dropzone-errors"},h))))}));t.a=p},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),i.a,(function(e){return function(t){return o.a.createElement(e,Object(s.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(t))return t.map((function(o){var a=Object(r.f)(e,o[n]||Object(s.isString)(o)&&o||"");return l(l({},o),{},c({},n,Object(s.isNil)(a)?t:a))}));var o=Object(r.f)(e,t);return Object(s.isNil)(o)?t:o},_=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return l(l({},r),{},c({},o,e[o]&&m(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(i.compose)(Object(i.getContext)({messages:a.a.object}),Object(i.mapProps)((function(n){var r=n.messages,o=u(n,["messages"]);return l(l({},o),Object(s.castArray)(e).reduce(_(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),i=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,a=t.tooltipPosition,d=void 0===a?"top":a,c=t.tooltipTrigger,m=t.keyProp,_=t.idDropDown,f=t.args,p=l(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(i.a,{trigger:c,id:_,key:m,placement:d,overlay:o.a.createElement(s.Tooltip,{id:"tooltip-"+m},r?o.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},o.a.createElement(e,p))}}),(function(e){return function(t){return o.a.createElement(e,Object(d.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(a),i=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,a=void 0===r?{}:r,c=e.btnDefaultProps,m=void 0===c?{}:c,_=e.transitionProps,f=void 0===_?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:_,p=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,a=e.Element,s=e.renderButton,i=l(e,["visible","Element","renderButton"]);return r?s||(a&&o.a.createElement(a,d({key:i.key||t},i))||o.a.createElement(u.a,d({key:i.key||t},m,i))):null}))};return o.a.createElement(i.ButtonGroup,a,f?o.a.createElement(s.a,f,p()):p())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/Loader.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),m=n("./MapStore2/web/client/components/misc/Button.jsx");function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.compose)(l.a,c.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,a=void 0===r?"":r,l=e.textId,c=e.glyphClassName,p=void 0===c?"":c,h=e.loaderProps,y=void 0===h?{}:h,M=e.children,g=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(m.a,Object(i.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(u.Glyphicon,{glyph:t,className:p}):null,l?o.a.createElement(s.default,{msgId:l}):a,n?o.a.createElement(d.a,_({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},y)):null,M)}))},"./MapStore2/web/client/product/assets/img/marker-icon-red.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwKDiknI+uvvgAABttJREFUWMOll2uMVVcVx/9773PuPY/7mBcUZ4q1JmbiF6nQwtSY2pSYtobCB2yMrxhrHGOrfioEjQYlMWikH7TxUWNbjTFWU6gComm1UEgMAi20kFCrIMPMFIZ53Xvn3vPYZ++1/HBh6GVmmDu6k/+Xk/1fv7Mfa61zBDOjnfHihzZ1Gcg+YcUyCZrkvPf2A4efG2/HK24G+cuHN/cLS59nIT7DzH1Syli5jrGZUUTkKyGuAPa3RPTsA0f3vbEkyHfEBrlunbMVUn47LBYRhkE+7/uQORdCCDAzyAA6mkEURbpWqQpm/l4Q0I57X95rFoUcWLvxvazk71039/5b+noDVymQzsCZAWcZ2BKEkhCuC+E6kDkXmbUYv3QpylJ9zhj58EPHd/9zQcgf1228Xwnxh3Jnp+rq6XE5TmAb8aJ7rnwPIvQxPTlppicnLQGf3PSPvS/Mgey/c1OPVfzv3t7ecuj7MJUZsLVodwil4JQKiHSKS6OjDaFs/4a//2kUAOS1SVbxLwulkhd4HvTENMgYMPMcQcp5n5Mx0FMV+Pk8iuWyY6369bXYEgCeX7vh06zk+lu6O/O2WgeIWiQdB25nAbmeLsiOInI9XXA7y5A5d85cW62jp6s7L5Qa2LP2oS8CgNi3ZmOQCjP+7t6+wIOEnWm0bINT8kGej/FqBY1GAyZJoVwHQamE5YUSlCWYWgUgef2MiiESEIYuvZ14pLqdBOlq5eRF6Oehr0wAdP0iqDBAKhSGRoax8v6P4M5PbULxtlvRGB3Dud0HcG7Pn7Gyuwee77W8nJ2pIlzeA6UUJZSuVpv7+jcHfmF9yVGujTIAAoCAUA5URwEj01Po/8InsOprj8Dr6oCQEvmOElbcvQb+imV462+H0VXsAGcWbLnpZwHpKjQMmyTL3pSC+Z4w7/qkM4CuS7gOalECUS6g/7Ob571R7/nYfQhvX4npRh0yl2vxk84Q5l1fMN8jCRjwXQVOdXOrrko6AnGaYtldqyCEWPDqrhhYjcSkEIpb/Jxq+K4CAQOOIRs0SwWBmWbNzAzLBKdQWDQRzdVMaPUThBAgIl8COBUlCYRSrW+SZcgrB2Ovvn5TyNjJM8iznbMTQilESQICn5RE4nAjzTKhVIuZkhTlvIvKW+cxfOTYvIDx02dx+ehr6PQDkM7mVIAo0dqyfEUaaY5X01gLpcDWzoqSFCJO0Vcs4OCWHXjz+f0g0yywRITzL76Cl778dbyrWIbKLGwjavELpVBNG9rAHBdPf/DeXmZ3eE3frZKmKuDsHZVaSridZTTY4kK9jjiOUVqxHPUr41Cui9uLJZScHMzEOJivJ6NwHciuDrw6Omxh0CeYGc/c8dFjt5XLd/VIF7Y607JsFhaqWG4mJlskWiPv5uBJBYpmYGp1CG7dalUuYoIyHqpWjz1y6qUBBwA0xK6Rev3Z5cuXBaZmm3VolgLY6jSoVoHMuSg4Dqheh87M7DwGtaxeeg5Gx6ZiDfH92QIpnfgFbYyu6QzSC5t16AaxFeDYwM4k4NgABvPOk16ISqKRWlvvfrBz7yxk8MSRjMA/uVyvxcp3wJy1XMe2BUCFPkYb9dgyPfHwzt/Z1n5i7ZMTSaoispCBD+ZsyZKBi7qOUE0TYTN6uqWfAMCjZw5dBvDk0EwUK99rNqgbesVNBUAGPi7W6zGAJx47e2hyDgQAjLY7KzpB3WRQoT9vB1xIMvAxk2nMZJaEq3/wzrgtkMfOHppkIXZdjKJYhcHV1G9vFSr0MdRoRATeOXjiSHVBCAAYL7erZqyt6RQqDCAYi8ophKjpFI3MGGvtD2+MOQfylaMHaoL5u0NxGsvAB4FBRAuKBSB8DxeiKCLJOx49c6i+KAQAkMt+FFubVrMUTiGEYF5QquihohPElhK/OvHj+cLNCxk8cSQi8PahNItl4Deb1jxnIYSA9EIMpVnMQnzrc/85nbQNAQAd0VOptfUpnUAW8vPeKFEMMaUTpNbUum3wi4ViLQj56r8Oppbpm8OZjYUfAlK2ZreUkF4ew1kWk5Tf+PiZfXrJEAAY637fM5poekqnUGEOID0rp5DHlE6RWprofrD7VzeLc1PI9oNPGSuw7SJx82xU8xNVKAkEHoZslhCw7VqN+p8gADD2uvebzJrL45mBLIQAEVSxgCvawBBGx04Hzy0WY1HIdt5PLMTWEUKCwIfwPbDvYYQ4gZRbt/N++r8hAPCluw/uNmQvjFtit7OMK8YyEZ0fPPXXPe3424LgZ8RWyceHGVoTYQQiA7Cl7X+Xdv9+AeDnH7jvtbzAHSnj5OAbL69p1yexhMFCPJ5ACBZiC5ZkXELPYGb8dNX6bUv1/Bd7pfPVmVDtrAAAAABJRU5ErkJggg=="},"./MapStore2/web/client/product/assets/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},"./MapStore2/web/client/reducers/controls.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/controls.js"),o=n("./node_modules/object-assign/index.js"),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return a()({},e,s({},t.control,a()({},e[t.control],s({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,void 0)))):a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,t.value))));case r.b:return a()({},e,s({},t.control,a()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),i=o.reduce((function(t,n){return a()(t,s({},n,a()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return a()({},e,i);default:return e}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),i=function(e){return e.backgroundSelector&&e.backgroundSelector.source},u=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},d=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},l=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},c=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},m=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},_=Object(r.a)(o.p,a.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(s.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"x",(function(){return c})),n.d(t,"e",(function(){return m})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return f})),n.d(t,"u",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return M})),n.d(t,"t",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return v})),n.d(t,"s",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"f",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return E}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/selectors/map.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(u(e),["Context"])}})),_=function(e){return m(e)},f=Object(r.a)((function(e){return Object(a.get)(l(e),"plugins")}),(function(e){return Object(a.get)(l(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(u(Object(a.get)(e,"desktop",[])),u(t.filter((function(e){return e.active}))))}})),p=(Object(r.a)(l,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(a.get)(e,"context.loading")}(e)?_(e):f(e)||m(e)}),h=function(e){return Object(r.a)(l,p,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(a.findIndex)(Object(a.get)(n,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(r.a)((function(e){return Object(i.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/dashboard.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/router.js"),a=function(e){return e&&e.dashboard&&e.dashboard.editor&&e.dashboard.editor.available},s=function(e){return e&&e.dashboard&&e.dashboard.editing},i=function(e){return e&&e.dashboard&&e.dashboard.showConnections};Object(r.a)(o.a,(function(e){return e&&e.dashboard&&e.dashboard.resource}),(function(e){return e&&e.browser&&e.browser.mobile}),(function(e,t,n){return n?!n:t&&t.canEdit||isNaN(e.substr(-4))}))},"./MapStore2/web/client/selectors/dimension.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return _})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"g",(function(){return M})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n("./MapStore2/web/client/selectors/layers.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Object(a.find)(e.dimensions||[],{name:t})},_=function(e,t){return function(n){return c(e.id,t)(n)||m(e,t)}},f=function(e){return Object(r.p)(e).reduce((function(t,n){var r=_(n,"time")(e);return r?d(d({},t),{},l({},n.id,r)):t}),{})},p=function(e){return Object(r.p)(e).filter((function(e){return m(e,"time")}))},h=function(e){var t=Object(a.get)(e,"dimension.currentTime");return t&&t.split("/")[0]},y=function(e){return Object(a.get)(e,"dimension.offsetTime")},M=function(e){return!!y(e)},g=(Object(o.a)(f,(function(e){return Object.keys(e).reduce((function(t,n){return[].concat(s(t),s(e[n]&&e[n].values||[]))}),[]).sort()||[]})),function(e){return function(t){return s(Object(a.get)(_(e,"time")(t),"values",[])).sort()}}),b=function(e,t){var n=c(t,"time")(e),r=n&&n.domain&&n.domain.split("--");if(r&&2===r.length)return r&&{start:r[0],end:r[1]};var o=n&&n.domain&&n.domain.split(",");return o&&o.length>0?{start:o[0],end:o[o.length-1]}:null}},"./MapStore2/web/client/selectors/layers.js":function(e,t,n){"use strict";n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return L})),n.d(t,"k",(function(){return j})),n.d(t,"u",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"l",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"m",(function(){return D})),n.d(t,"w",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"e",(function(){return x})),n.d(t,"v",(function(){return E})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return H})),n.d(t,"q",(function(){return A})),n.d(t,"t",(function(){return F})),n.d(t,"r",(function(){return I}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=n("./MapStore2/web/client/utils/SearchUtils.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/TOCUtils.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=e.config;return t&&Object(d.isArray)(t)?t:t&&t.flat||n&&n.layers||[]},p=function(e){return Object(d.head)(f(e).filter((function(e){return e&&e.visibility&&"background"===e.group})))},h=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.id===t})))},y=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.name===t})))},M=function(e){return f(e).filter((function(e){return"background"===e.group}))},g=function(e){return Object(d.get)(e,"mapInfo.centerToMarker","")},b=Object(r.a)([f,u.c,function(e){return e.search&&e.search},g,function(e){return Object(d.get)(e,"additionallayers",[])},function(e){return e.annotations&&e.annotations.showMarker&&e.annotations.clickPoint}],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=a.filter((function(e){return"override"===e.actionType})),c=a.filter((function(e){return"overlay"===e.actionType})).map((function(e){return e.options})),_=e.map((function(e){var t=(Object(d.head)(l.filter((function(t){return t.id===e.id})))||{}).options;return t?m(m({},e),t):m({},e)}));if(_=_.concat(c),t){_.push(Object(o.h)("GetFeatureInfoHighLight",{features:t.features},void 0,{overrideOLStyle:!0,featuresCrs:t.featuresCrs,style:m(m({},s.a),{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}));var f="enabled"===r?Object(i.getNormalizedLatLon)(t.latlng):t.latlng;_.push(Object(o.h)("GetFeatureInfo",f))}if(u){var p="enabled"===r?Object(i.getNormalizedLatLon)(u.latlng):u.latlng;_.push(Object(o.h)("Annotations",p)),_.push(Object(o.h)("GetFeatureInfo",m({},p)))}if(n&&n.markerPosition){var h=Object(d.isObject)(n.style)&&n.style||{};_.push(Object(o.h)("GeoCoder",n.markerPosition,"marker",{overrideOLStyle:!0,style:m(m({},s.a),h)},n.markerLabel))}return _})),L=function(e){return e.layers&&e.layers.flat&&e.layers.groups||[]},j=function(e){return e.layers&&e.layers.flat&&e.layers.groups&&Object(a.denormalizeGroups)(e.layers.flat,e.layers.groups).groups||[]},v=function(e){return e.layers&&e.layers.selected||[]},Y=function(e){return v(e).map((function(t){return Object(d.find)(f(e),{id:t})}))},w=function(e){var t=Y(e)||[];return t&&t[0]},O=function(e){return e.layers&&e.layers.filter||""},k=function(e){return e.layers&&e.layers.settings||{expanded:!1,options:{opacity:1}}},D=function(e){return e.layers&&e.layers.layerMetadata||{expanded:!1,metadataRecord:{},maskLoading:!1}},S=function(e){return e.controls&&e.controls.layerdownload?{expanded:e.controls.layerdownload.enabled}:{expanded:!1}},T=function(e){return e.controls&&e.controls.backgroundSelector||{}},x=function(e){var t=T(e),n=M(e)||[];return t.currentLayer&&!Object(d.isEmpty)(t.currentLayer)?t.currentLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},E=function(e){var t=T(e),n=M(e)||[];return t.tempLayer&&!Object(d.isEmpty)(t.tempLayer)?t.tempLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},P=function(e,t){return(f(e)||[]).filter((function(e){return e&&e.dimensions&&Object(d.find)(Object(d.castArray)(e.dimensions),{name:t})}))},H=function(e){var t=k(e),n=f(e),r=j(e);return"layers"===t.nodeType&&Object(d.isArray)(n)&&Object(d.head)(n.filter((function(e){return e.id===t.node})))||"groups"===t.nodeType&&Object(d.isArray)(r)&&Object(d.head)(Object(l.b)(r,0,!0).filter((function(e){return e.id===t.node})))||{}},A=function(e){return f(e).filter(o.b)},F=function(e){return"Error"===(w(e)||{}).loadingError},I=function(e){return Y(e).filter(o.b)}},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},a=function(e){return(o(e)||{}).monitorState},s=function(e){return function(t){return Object(r.get)(function(e){return Object(r.get)(o(e),"plugins")}(t),e)}},i=function(e){return Object(r.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.locale&&e.locale.current||"en-US"},s=function(e){return e.locale&&e.locale.messages||{}},i=Object(r.a)([a],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return s})),n.d(t,"o",(function(){return i})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"n",(function(){return c})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"k",(function(){return g})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return v}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},i=Object(o.a)([s],(function(e){return e&&e.projection})),u=function(e){return Object(a.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(a.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(a.get)(s(e),"mapId")&&parseInt(Object(a.get)(s(e),"mapId"),10)||null}(e)},d=function(e){return Object(a.get)(s(e),"info")},l=function(e){var t=Object(a.get)(d(e),"canEdit");return void 0===t?Object(a.get)(e,"context.resource.canEdit"):t},c=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},m=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},_=function(e){return m(e).restrictedExtent},f=function(e){return m(e).crs},p=function(e){var t=m(e),n=i(e);return n&&Object(a.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(a.get)(t,"minZoom")},h=function(e){return Object(a.get)(s(e),"bbox")},y=function(e){return Object(a.get)(function(e){return Object(a.get)(s(e),"limits")}(e),"minZoom")},M=Object(o.a)([function(e){return Object(a.get)(s(e),"resolutions")},i],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),g=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},b=function(e){return Object(a.get)(s(e),"eventListeners.mousemove",[])},L=function(e){return!!b(e).length},j=function(e){return b(e).includes("mouseposition")},v=function(e){return b(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"u",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"r",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"v",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"k",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"s",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"w",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"e",(function(){return H})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return C})),n.d(t,"q",(function(){return N}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),s=n("./MapStore2/web/client/selectors/context.js"),i=n("./MapStore2/web/client/selectors/locale.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js"),d=n("./MapStore2/web/client/selectors/maptype.js"),l=n("./MapStore2/web/client/selectors/localConfig.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&t})),h=function(e){return Object(r.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(r.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},M=function(e){return Object(r.get)(e,"mapInfo.configuration",{})},g=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},b=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},L=function(e){return Object(r.get)(e,"mapInfo.itemId",null)},j=function(e){return Object(r.get)(e,"mapInfo.overrideParams",{})},v=function(e){return Object(r.get)(e,"mapInfo.filterNameList",[])},Y=Object(o.a)((function(e){return!Object(r.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(r.get)(e,"controls.measure.enabled")&&(Object(r.get)(e,"measurement.lineMeasureEnabled")||Object(r.get)(e,"measurement.areaMeasureEnabled")||Object(r.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(r.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(r.get)(e,"annotations.editing")}),Object(s.b)("Identify"),(function(e,t,n,r,o){return e||!!t||n||!!r||!o})),w=Object(o.c)({format:h,map:a.l,point:g,currentLocale:i.b,maxItems:function(e){return Object(r.get)(e,"mapInfo.configuration.maxItems")}}),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},D=function(e){return e.mapInfo&&e.mapInfo.responses||[]},S=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},T=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},x=Object(o.a)(S,D,h,a.f,(function(e,t,n,r){var o=Object(u.i)(n);return e.length===t.length&&o.getValidResponses(t,r)})),E=Object(o.a)(x,k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),P=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.features")},H=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.featuresCrs")},A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(r.omit)(e,"radius")}},F=function(e){return function(t){return m(m({},t),{},{style:A(e)(t)})}},I=Object(o.a)(g,O,P,H,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(r.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,n,o,a,s){return a&&e?t?m(m({},e),{},{featuresCrs:o,features:n&&Object(r.isArray)(n)&&n.map(F(s))}):e:void 0})),C=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},N=function(e){var t,n;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(n=t.configuration)||void 0===n?void 0:n.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},a=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/selectors/timeline.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"k",(function(){return D})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return x})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return P})),n.d(t,"q",(function(){return H})),n.d(t,"b",(function(){return A})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return I}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),d=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/selectors/layers.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:a,type:"range",content:"".concat(u," items")}]:Object(i.l)({start:d,end:l,duration:a}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return j(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=p(n,3),o=r[0],a=r[1],s=r[2],u=Math.max.apply(Math,f(e.histogram.values)),d=Object(i.k)({start:o,end:a,duration:s});return e.histogram.values.map((function(e,t){return m(m({},d[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(i.i)(e.domain)?j(e.values||e.domain.split(","),t):n&&n.histogram?v(n,t):[]},w=Object(a.a)(u.i,M,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(e).map((function(r){return Y(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(m({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(f(e),f(t))}),[]))})),O=function(e){return Object(r.get)(e,"timeline.loading")},k=function(e){return Object(r.get)(e,"timeline.selectedLayer")},D=function(e){return Object(l.g)(e,k(e))},S=function(e){return D(e)&&D(e).name},T=function(e){return D(e)&&D(e).dimensions&&Object(r.head)(D(e).dimensions.filter((function(e){return"time"===e.name})))},x=function(e){return Object(r.get)(T(e),"source.url")},E=Object(o.a)(u.a,u.h,(function(e,t){return{start:e,end:t}})),P=function(e){return Object(u.c)(e,k(e))},H=u.f,A=Object(o.a)(H,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),F=function(e){return!g(e)&&A(e)},I=function(e){return function(t){var n=(Object(d.l)(t)||{}).bbox;if(!n)return{};var o=Object(u.b)(e,"time")(t),a=Object(r.get)(o,"source.version"),i=Object.keys(n.bounds).reduce((function(e,t){return m(m({},e),{},_({},t,parseFloat(n.bounds[t])))}),{});if(!i||!L(t))return{};if("1.1"!==a){var l=Object(u.b)(e,"space")(t),c=Object(r.get)(l,"domain.CRS");if(!c||!i||!L(t))return{};var f=p(Object(s.reprojectBbox)(i,Object(d.o)(t),c),4),h=f[0],y=f[1],M=f[2],g=f[3];return M0;)if(!n[i=a.shift()])for(n[i]=!0,s.push(i),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},a=Object.keys(o).map((function(t){return p(o[t],e)}))||[];return[].concat(c(t),c(a.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),M=n("./node_modules/reselect/es/index.js"),g=n("./MapStore2/web/client/utils/ReselectUtils.js");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),D=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].widgets"))},S=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].collapsed"))},T=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].maximized"))},x=Object(M.a)(D,S,T,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),E=Object(M.a)(S,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),P=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},H=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},A=Object(M.a)(P,H,o.l,s.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),F=Object(M.a)(P,H,o.l,s.a,O,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=a&&"map"!==a.widgetType?a&&a.layer||{}:a&&a.map&&a.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(s)||s.name===e.layer.name})).filter((function(e){return a&&a.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),I=function(e){return Object(r.get)(v(e),"".concat(i.f))},C=function(e){return Object(r.get)(I(e),"active")},N=(Object(M.a)(D,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=d(h(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(l.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layouts"))}),R=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layout"))},W=function(e){return Object(r.get)(e,"widgets.tray")},G=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},z=function(e){return Object(r.get)(O(e),"filter")},U=Object(g.a)(Y,w,(function(e){return w(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.l)(e),t.slice(4)):t.match(i.A)?function(e,t){var n=i.A.exec(e),o=n&&n[2],a=p(e,t);return o?Object(r.get)(a,o):a}(t,D(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return L(L({},t),{},j({},Object.keys(e)[o],n[o]))}),{})}));Object(M.c)({widgets:D,layouts:N})},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t,n,o){var a=e;isNaN(parseFloat(e))&&(a=r.hexToHsv(e)[0]);var s=.5/(n-1),i=t/(n-1),u=[];1===n&&(s=.5,i=t/2);for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:"red";return a()(e).toHexString()},d=function(e,t,n){var r=a()(e);return e&&r.setAlpha(Object(s.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,a,s,i,u,d=e/255,l=t/255,c=n/255;switch(o=Math.min(Math.min(d,l),c),s=(a=Math.max(Math.max(d,l),c))-o,a){case o:i=0;break;case d:i=60*(l-c)/s,l0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:u,colorToRgbaStr:d}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return x})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return A})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return N})),n.d(t,"reprojectExtent",(function(){return W})),n.d(t,"getPolygonFromExtent",(function(){return G})),n.d(t,"getExtentFromNormalized",(function(){return z})),n.d(t,"crsCodeTable",(function(){return U})),n.d(t,"setCrsLabels",(function(){return B})),n.d(t,"getUnits",(function(){return J})),n.d(t,"getProjectedBBox",(function(){return V})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return K})),n.d(t,"lineIntersectPolygon",(function(){return Q})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ae})),n.d(t,"filterCRSList",(function(){return se})),n.d(t,"calculateAzimuth",(function(){return ie})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return de})),n.d(t,"getGeoJSONExtent",(function(){return le})),n.d(t,"isValidExtent",(function(){return ce})),n.d(t,"calculateCircleCoordinates",(function(){return me})),n.d(t,"transformLineToArcs",(function(){return _e})),n.d(t,"transformArcsToLine",(function(){return fe})),n.d(t,"coordsOLtoLeaflet",(function(){return pe})),n.d(t,"mergeToPolyGeom",(function(){return he})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return Me})),n.d(t,"fetchProjRemotely",(function(){return ge})),n.d(t,"parseURN",(function(){return be})),n.d(t,"parseString",(function(){return Le})),n.d(t,"getWMSBoundingBox",(function(){return je})),n.d(t,"isSRSAllowed",(function(){return ve})),n.d(t,"getNormalizedLatLon",(function(){return Ye})),n.d(t,"isInsideVisibleArea",(function(){return we})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return De})),n.d(t,"midpoint",(function(){return Se})),n.d(t,"pointObjectToArray",(function(){return Te})),n.d(t,"isPointInsideExtent",(function(){return xe})),n.d(t,"isBboxCompatible",(function(){return Ee})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return He})),n.d(t,"makeBboxFromOWS",(function(){return Ae}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),a=n("./MapStore2/web/client/libs/proj4.js"),s=n.n(a),i=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(i),d=n("./node_modules/object-assign/index.js"),l=n.n(d),c=n("./MapStore2/node_modules/lodash/lodash.js"),m=n("./node_modules/@turf/line-intersect/index.js"),_=n.n(m),f=n("./node_modules/@turf/polygon-to-linestring/index.js"),p=n.n(f),h=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),M=n.n(y),g=n("./node_modules/@turf/bbox-polygon/main.es.js"),b=n("./node_modules/@turf/boolean-overlap/main.es.js"),L=n("./node_modules/@turf/boolean-contains/main.es.js");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return E(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function H(e,t,n){if(null===e)return e;var r=Object(c.cloneDeep)(e);return"Feature"===e.type?r.geometry=H(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return H(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return H(e,t,n)})):t&&t(r),n&&n(r),r}function A(e){return"string"==typeof e||e instanceof String?s.a.defs(e)?new s.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},C=function(e){var t=e;return Object(c.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(c.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},N=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&s.a.defs(t)?new s.a.Proj(t):null,a=n&&s.a.defs(n)?new s.a.Proj(n):null;if(o&&a){var i=Object(c.isArray)(e)?s.a.toPoint(e):s.a.toPoint([e.x,e.y]),u=l()({},t===n?C(i):s.a.transform(o,a,C(i)),{srs:n});return r?I(u):u}return null},R=["EPSG:900913","EPSG:4326","EPSG:3857"],W=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])})):[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])},G=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(g.a)(e):null},z=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[N([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),N([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),i=Math.sin(n),u=o*s,d=o*i,l=a*s,c=a*i,m=e.x,_=e.y,f=m-u+c,p=m-u-c,h=m+u-c,y=m+u+c,M=_-d-l,g=_-d+l,b=_+d+l,L=_+d-l,j=S.createBBox(Math.min(f,p,h,y),Math.min(M,g,b,L),Math.max(f,p,h,y),Math.max(M,g,b,L));return j},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=A(r)),"string"==typeof o&&(o=A(o));var a=T(r,o);return H(e,(function(e){e.crs&&delete e.crs,e.coordinates=E(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return a.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],H(e,(function(e){E(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Q=function(e,t){var n=p()(t).features[0];return 0!==_()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(c.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var a=[];for(var s in r)if(r.hasOwnProperty(s)){var i=S.reproject(r[s],t,n,o);if(!i)return null;var u=i.x,d=i.y;a.push(u),a.push(d)}return a},$=function(e){var t=Object(c.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,a=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,a],[o,a],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?S.getCompatibleSRS(n,t):n},oe=function(e,t){return t[S.getCompatibleSRS(e,t)]},ae=function(){var e={};for(var t in s.a.defs)s.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},se=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return l()({},-1===t.indexOf(r)?n:v(v({},n),{},Y({},r,e[r])))}),{}),a=r.map((function(e){return e.code})),s=Object.keys(n).reduce((function(e,t){return l()({},-1===a.indexOf(t)?e:v(v({},e),{},Y({},t,n[t])))}),{});return l()({},o,s)},ie=function(e,t,n){var r=S.reproject(e,n,"EPSG:4326"),o=S.reproject(t,n,"EPSG:4326"),a=r.x*Math.PI/180,s=r.y*Math.PI/180,i=o.x*Math.PI/180,u=o.y*Math.PI/180,d=i-a,l=Math.sin(d)*Math.cos(u),c=Math.cos(s)*Math.sin(u)-Math.sin(s)*Math.cos(u)*Math.cos(d);return(180*Math.atan2(l,c)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(x).indexOf(t)?x[t](e):0},de=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},le=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=S.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(c.chunk)(Object(c.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return S.getGeoJSONExtent(e.geometry)}return n},ce=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},me=function(e,t,n,r){var o,a,s,i=Math.PI*(1/n-.5);r&&(i+=r/180*Math.PI);for(var u=[[]],d=0;d1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(c.head)(e),Object(c.last)(e)]:e.length>t?[Object(c.head)(e)].concat(S.transformArcsToLine(Object(c.slice)(e,t))):[]},pe=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(c.head)(R.filter((function(e){return e===t})))){var n=z(e,t),r=n.extent,o=n.isIDL,a=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var s=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:a,extent:r,center:[s=s>180?s-360:s,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:a[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var i=[e.minx,e.miny,e.maxx,e.maxy],u=[i[0],i[1]],d=[i[2],i[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],d[1]],d,[d[0],u[1]],u]],extent:i,center:[(i[0]+i[2])/2,(i[1]+i[3])/2]}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=S.getViewportGeometry(t,n),a=o.extent;if(4===a.length)return S.reprojectBbox(a,n,r);var s=a.map((function(e){return e[2]-e[0]})),i=O(s,2),u=i[0],d=i[1];return u>d?S.reprojectBbox(a[0],n,r):S.reprojectBbox(a[1],n,r)},ge=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||P(n),null,{timeout:2e3})},be=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(c.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},Le=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},je=function(e,t){var n=t||"EPSG:3857",r=e&&Object(c.isArray)(e)&&Object(c.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&S.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(c.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},ve=function(e){return!!s.a.defs(e)},Ye=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:S.normalizeLng(n)}},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var s=S.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),i=v({left:0,right:0,top:0,bottom:0},n),u={minx:s[0]+i.left*r,miny:s[1]+i.bottom*r,maxx:s[2]-i.right*r,maxy:s[3]-i.top*r},d=S.getViewportGeometry(u,t.projection),l=4===d.extent.length?[w(d.extent)]:w(d.extent);return Object(c.head)(l.map((function(e){return a.x>=e[0]&&a.y>=e[1]&&a.x<=e[2]&&a.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection),s=v({left:0,right:0,top:0,bottom:0},n),i={width:(t.size.width-s.right-s.left)*r,height:(t.size.height-s.top-s.bottom)*r},u={minx:a.x-i.width/2-s.left*r,miny:a.y-i.height/2-s.bottom*r,maxx:a.x+i.width/2+s.right*r,maxy:a.y+i.height/2+s.top*r},d=S.getViewportGeometry(u,t.projection);if(4===d.extent.length)return{pos:N([d.extent[0]+t.size.width/2*r,d.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(d.extent[0][2]-d.extent[0][0])>Math.abs(d.extent[1][2]-d.extent[1][0])){var l=N([d.extent[0][2]-t.size.width/2*r,d.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),c=v(v({},l),{},{x:l.x+(o.lng>l.x?360:0)});return{pos:c,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:N([d.extent[1][0]+t.size.width/2*r,d.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,a=Object(c.isArray)(n)?n:[n.x,n.y];if(Object(c.isNumber)(a[0])&&!isNaN(a[0])&&Object(c.isNumber)(a[1])&&!isNaN(a[1])&&Object(c.isNumber)(t.x)&&!isNaN(t.x)&&Object(c.isNumber)(t.y)&&!isNaN(t.y)){var s=Object(c.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,i=s&&(Object(c.isArray)(s)?s:[s.x,s.y]);return Object(c.isArray)(i)?Math.sqrt((a[0]-i[0])*(a[0]-i[0])+(a[1]-i[1])*(a[1]-i[1])):o}return o},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,a=e.maximumFractionDigits,s=void 0===a?0:a;return 0===s&&Math[n]?Math[n](o):o},Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(c.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(c.isArray)(t)?{x:t[0],y:t[1]}:t,a={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[a.x,a.y]:a},Te=function(e){return Object(c.isObject)(e)&&Object(c.isNumber)(e.x)&&Object(c.isNumber)(e.y)?[e.x,e.y]:e},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(L.a)(G(t),M()([e.lng,e.lat]))},Ee=function(e,t){return Object(b.a)(e,t)||Object(L.a)(e,t)||Object(L.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},He=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=U[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ae=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var a=n.slice(),s=r.slice();n=[s[0],a[1]],r=[a[0],s[1]]}return[n[0],n[1],r[0],r[1]]};S={setCrsLabels:B,getUnits:J,reproject:N,getProjectedBBox:V,createBBox:q,reprojectGeoJson:K,lineIntersectPolygon:Q,normalizePoint:I,normalizeLng:Z,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ae,filterCRSList:se,calculateAzimuth:ie,calculateDistance:ue,FORMULAS:x,extendExtent:de,getGeoJSONExtent:le,isValidExtent:ce,calculateCircleCoordinates:me,transformLineToArcs:_e,transformArcsToLine:fe,coordsOLtoLeaflet:pe,mergeToPolyGeom:he,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:Me,fetchProjRemotely:ge,parseURN:be,determineCrs:A,parseString:Le,getWMSBoundingBox:je,isSRSAllowed:ve,getNormalizedLatLon:Ye,isInsideVisibleArea:we,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:De,midpoint:Se,pointObjectToArray:Te,getExtentFromNormalized:z,getPolygonFromExtent:G,isPointInsideExtent:xe,isBboxCompatible:Ee,extractCrsFromURN:Pe,crsCodeTable:U,makeNumericEPSG:He,makeBboxFromOWS:Ae},t.default=S},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},a=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,s=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function i(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function u(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var d={HTML:{getValidResponses:function(e,t){return t?e.filter(i):e},getNoValidResponses:function(e){return e.filter((function(e){return!i(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},k=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var s=n.startDate.toISOString?n.startDate.toISOString():n.startDate,i=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+s+"<"+r+":UpperBoundary><"+r+":Literal>"+i+"")}}else if(n.startDate){var u=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+u+"")}return o},D=function(e,t,n,r){var o;return Object(m.isNil)(n)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},S=function(e,t,n,r){var o;return L(n,t)&&(o="isNull"===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag):"="===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+""):a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>*"+n+"*")),o},T=function(e,t,n,r){var o="";return L(n,t)&&"="===t&&""!==n&&(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},x=function(e,t,n,r){var o;if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=a.ogcComparisonOperators["<="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=a.ogcComparisonOperators[">="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var s=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(s)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+s+""))}return o},E=function(e,t){var n="";switch(e.type){case"date":n=k(e.attribute,e.operator,e.values,t);break;case"number":n=x(e.attribute,e.operator,e.values,t);break;case"string":n=S(e.attribute,e.operator,e.values,t);break;case"boolean":n=T(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+S(e.attribute,o,r,t)}),""),n=a.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(b(o),"')")},H=function(e){return"collectGeometries(".concat(e,")")},A=function(e,t,n){var r,s,i,u,d=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?M.processOGCFilterGroup(e.groupFields[0],e,n):M.processOGCFilterFields(null,e,n))&&d.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var l=a.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return E(e,n)})).join(""));d.push(l)}if(Object(m.isArray)(e.spatialField)?(u=Object(m.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(i=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?u=e.spatialField:i=[e.spatialField]),u){if(Object(m.isArray)(u.geometry&&u.geometry.extent[0])){var c=u.geometry.extent.reduce((function(e,r){var o=Object.assign({},u);return u.geometry.extent=r,e+M.processOGCSpatialFilter(t,o,n)}),"");s=a.ogcLogicalOperators.OR(n,c)}d.push(s)}else if(i&&(i=i.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var _=i.map((function(e){return M.processOGCSpatialFilter(t,e,n)})).join("");s=i.length>1?a.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,_):_,d.push(s)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var f=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?f.forEach((function(e){return d.push(M.processOGCCrossLayerFilter(e,n))})):d.push(M.processOGCCrossLayerFilter(f,n))}return e.options&&e.options.cqlFilter&&d.push(g(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),d},F=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var d=w(n||"2.0"),l="2.0"===d?"fes":"ogc",c=M.getGetFeatureBase(d,r.pagination,a,s,t&&t.options),m=M.toOGCFilterParts(r,d,l),_="";return m.length>0&&(_="<"+l+":Filter>",1===m.length?_+=m[0]:(_+="<"+l+":And>",m.forEach((function(e){_+=e})),_+=""),_+=""),c+=""),c+=_,i&&(c+=i.map((function(e){return O[l].startTag+e+O[l].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(c+="<"+l+":SortBy><"+l+":SortProperty>"+O[l].startTag+o.sortBy+O[l].endTag+"<"+l+":SortOrder>"+o.sortOrder+""),c+="
"},I=function(e,t,n){var r=M.processOGCFilterFields(e,t,n),o=M.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=M.processOGCFilterGroup(e,t,n)})),""!==r?a.ogcLogicalOperators[e.logic](n,r):""},C=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&L(t.value,t.operator)})):t.filterFields.filter((function(e){return L(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=k(t.attribute,t.operator,t.value,n);break;case"number":r=x(t.attribute,t.operator,t.value,n);break;case"string":r=S(t.attribute,t.operator,t.value,n);break;case"boolean":r=T(t.attribute,t.operator,t.value,n);break;case"list":r=D(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=S(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},N=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},R=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},W=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},G=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},z=function(e,t,n){if(t.collectGeometries)return M.processOGCCrossLayerFilter(t);var s=O[n].startTag+t.attribute+O[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":s+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(s+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var i=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];s+=''+i+""+u+""}return a.ogcSpatialOperators[t.operation](n,s)},U=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=w(e),s="";break;case"1.1.0":s+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",s=n?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:s+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",s=n&&!t?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return s},B=function(e){return Object(m.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(m.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(m.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&M.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},J=function(e,t){var n=t||"ogc",r=O[n].startTag+e.attribute+O[n].endTag;if(e.collectGeometries){var o=M.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),a.ogcSpatialOperators[e.operation](n,r)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=M.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var a=t.simpleFilterFields.reduce((function(e,t){var n=e,r=M.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");a=a.length>0?a:"INCLUDE",o.push(a)}if(t.spatialField&&(r=M.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var s=t.crossLayerFilter,i=s.operation,u=s.attribute,d=s.collectGeometries&&s.collectGeometries.queryCollection;if(i&&u&&d){var l=d.typeName,c=d.geometryName,m=M.getCrossLayerCqlFilter(s),_=H(P({typeName:l,geometryName:c,cqlFilter:m}));o.push("".concat(i,"(").concat(u,",").concat(_,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},q=function(e,t){var n="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,r=M.processCQLFilterFields(n,t),o=M.findSubGroups(n,t.groupFields);if(o.length>0){var a=o.map((function(e){return(n.negateAll?"NOT (":"(")+M.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,a].join(" "+n.logic+" "):a}return r},K=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=v(e);if(!Object(m.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+b(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+b(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+b(n)+"%'")}return r},$=function(e,t,n){var r="";Object(m.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=v(e);if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var a=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(a)||(r=o+" "+t+" '"+a+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return M.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=M.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=M.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=M.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=M.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=M.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=M.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=M.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=M.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=M.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ae=function(e,t){return'\n \n ')},se=function(e,t,n){var r=M.toOGCFilter(e,t,n),o=r.search("<".concat(M.nsplaceholder,":Filter>"));if(-1!==o){var a=r.search("");r=r.substr(o,a-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},ie=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?M.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):M.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,a=e.crossLayerFilter,s=void 0===a?{}:a;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||s&&s.attribute&&s.operation)},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(m.isArray)(e.spatialField)&&Object(m.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,a=void 0===o?[]:o,s=t.groupFields,i=void 0===s?[]:s,u=t.spatialField,d=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(a.length>0&&i.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(d),logic:e.logic,id:"".concat(e.id,"_").concat(d),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(a.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(d)})}))),spatialField:ce(e.spatialField,u),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},_e=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,a=e.spatialField.geometry.radius,s=Object(c.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,i=o&&[(n=Object(c.reproject)(o,r,t)).x,n.y],u=a&&Object(c.reproject)([a,0],r,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:i,radius:u,coordinates:s,projection:t})})})},fe=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?M.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},pe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,a=void 0===r?"2.0":r,i=e.addXmlnsToRoot,d=void 0!==i&&i,c=e.xmlnsToAdd,f=void 0===c?[]:c,p=l()({filterNS:n,wfsVersion:a,gmlVersion:Object(o.wfsToGmlVersion)(a)}),h=u()(p),y=arguments.length,M=new Array(y>1?y-1:0),g=1;g");return"".concat(b.slice(0,L)).concat(f.length>0?" ".concat(f.join(" ")):"").concat(b.slice(L))}return b};M={processOGCFilterGroup:I,processOGCFilterFields:C,processOGCCrossLayerFilter:J,getGetFeatureBase:U,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:B,processCQLFilterGroup:q,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Q,processCQLFilterFields:re,getCQLGeometryElement:K,cqlStringField:X,cqlDateField:Z,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:_e,processOGCSpatialFilter:z,mergeFiltersToOGC:pe}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return T})),n.d(t,"g",(function(){return x})),n.d(t,"i",(function(){return E})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return H})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return I}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),a=n("./node_modules/turf-point-on-surface/index.js"),s=n.n(a),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),d=n.n(u),l=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),c=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),_=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),f=n.n(_),p=n("./MapStore2/web/client/utils/mapinfo/wms.js"),h=n.n(p),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),M=n.n(y),g=n("./MapStore2/web/client/utils/mapinfo/vector.js"),b=n.n(g);function L(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,a){if(a){var s;a.queryParams&&a.queryParams.hasOwnProperty("info_format")&&(s=a.queryParams.info_format),a.queryParams&&a.queryParams.hasOwnProperty("outputFormat")&&(s=a.queryParams.outputFormat);var i=(o.c[a.format||o.b[s]||o.b[e]]||t).getValidResponses([a],r);return[].concat(L(n),L(i))}return L(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var a;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(a=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(a=r.queryParams.outputFormat);var s=(o.c[r.format||o.b[a]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(L(n),L(s))}return L(n)}),[])}}},P=function(){var e;return w(e={},o.a.PROPERTIES,l.a),w(e,o.a.JSON,l.a),w(e,o.a.HTML,c.a),w(e,o.a.TEXT,m.a),e},H=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:f.a,wms:h.a,wmts:M.a,vector:b.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},I=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var a=e[n];Object.keys(a).forEach((function(e){-1===Object(i.findIndex)(o,(function(t){return t===e}))&&(t[e]=a[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:D,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[s()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(L(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:d.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&Y({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return M})),n.d(t,"METERS_PER_UNIT",(function(){return g})),n.d(t,"GOOGLE_MERCATOR",(function(){return b})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return L})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return j})),n.d(t,"RESOLUTIONS_HOOK",(function(){return v})),n.d(t,"RESOLUTION_HOOK",(function(){return Y})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return w})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return k})),n.d(t,"registerHook",(function(){return S})),n.d(t,"getHook",(function(){return T})),n.d(t,"executeHook",(function(){return x})),n.d(t,"clearHooks",(function(){return E})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return H})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return I})),n.d(t,"getGoogleMercatorScales",(function(){return C})),n.d(t,"getResolutionsForScales",(function(){return N})),n.d(t,"getGoogleMercatorResolutions",(function(){return R})),n.d(t,"getResolutions",(function(){return W})),n.d(t,"getScales",(function(){return G})),n.d(t,"defaultGetZoomForExtent",(function(){return z})),n.d(t,"getZoomForExtent",(function(){return U})),n.d(t,"getCurrentResolution",(function(){return B})),n.d(t,"getCenterForExtent",(function(){return J})),n.d(t,"getBbox",(function(){return V})),n.d(t,"isNearlyEqual",(function(){return q})),n.d(t,"mapUpdated",(function(){return K})),n.d(t,"transformExtent",(function(){return Q})),n.d(t,"groupSaveFormatted",(function(){return Z})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ae})),n.d(t,"prepareMapObjectToCompare",(function(){return se})),n.d(t,"updateObjectFieldKey",(function(){return ie})),n.d(t,"compareMapChanges",(function(){return ue})),n.d(t,"createRegisterHooks",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./node_modules/object-assign/index.js"),l=n.n(d);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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(c,r))}function U(e,t,n,r,o){return T("EXTENT_TO_ZOOM_HOOK")?T("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):z(e,t,n,r,o,T("RESOLUTIONS_HOOK")?T("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||M)):null)}function B(e,t,n,r){return T("RESOLUTION_HOOK")?T("RESOLUTION_HOOK")(e,t,n,r):R(t,n,r)[e]}function J(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function V(e,t){return x("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var q=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function K(e,t){var n,o,a,s;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(q(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&q(null==t||null===(a=t.center)||void 0===a?void 0:a.y,null==e||null===(s=e.center)||void 0===s?void 0:s.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Q(e,t,n,r){var o=Object(s.getUnits)(e);return"ft"===o?{width:n/g.ft,height:r/g.ft}:"us-ft"===o?{width:n/g["us-ft"],height:r/g["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var Z=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,a,s,d){var c={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},m=t.map((function(e){return Object(u.saveLayer)(e)})),_=n.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(n,e);return t&&t.nodes?Z(t):null})).filter((function(e){return e})),f=o.filter((function(e){return!!e.thumbnail})),p=Object(u.extractSourcesFromLayers)(m),y=m.map((function(e){return l()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),M=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==M){var g=y[M].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):{}}));y[M]=Object(i.e)("features",g,y[M])}return h({version:2,map:l()({},c,{layers:y,groups:_,backgrounds:f,text_search_config:a,bookmark_search_config:s},!Object(r.isEmpty)(p)&&{sources:p}||{})},d)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=h(h({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,"annotations"===t.id?t.id:a()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,a()()))}),{}));return Object(i.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),Object(i.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return h(h({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:n[e.id],layer:h(h({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(i.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),a=[].concat(_(Object(r.get)(e,"map.backgrounds",[])),_(Object(r.get)(o,"map.backgrounds",[]))),s=n(Object(r.get)(e,"map.layers",[])),i=n(Object(r.get)(o,"map.layers",[])),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),d=Object(r.find)(i,(function(e){return"annotations"===e.id})),l=[].concat(_(i.filter((function(e){return"annotations"!==e.id}))),_(s.filter((function(e){return"annotations"!==e.id}))),_(u||d?[h(h(h({},u||{}),d||{}),{},{features:[].concat(_(Object(r.get)(u,"features",[])),_(Object(r.get)(d,"features",[])))})]:[])),c=l.filter((function(e){return"background"===e.group})),m=Object(r.findIndex)(c,(function(e){return e.visibility})),f=Object(r.get)(e,"map.sources",{}),p=Object(r.get)(o,"map.sources",{}),M=h(h({},f),p),g=Object(r.get)(e,"widgetsConfig",{}),b=Object(r.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(r.get)(e,"catalogServices",{})),{},{services:h(h({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:a,groups:Object(r.uniqWith)([].concat(_(Object(r.get)(e,"map.groups",[])),_(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(_(c.slice(0,m+1)),_(c.slice(m+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),_(l.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(M)?void 0:M}),widgetsConfig:{collapsed:h(h({},g.collapsed),b.collapsed),layouts:Object(r.uniq)([].concat(_(Object(r.keys)(g.layouts)),_(Object(r.keys)(b.layouts)))).reduce((function(e,t){return h(h({},e),{},y({},t,[].concat(_(Object(r.get)(g,"layouts.".concat(t),[])),_(Object(r.get)(b,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(_(Object(r.get)(g,"widgets",[])),_(Object(r.get)(b,"widgets",[])))},timelineData:h(h({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:h(h({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),s=Object(r.find)(n,(function(e){return"Default"===e.id})),i=s&&{id:a()(),title:t,expanded:s.expanded},u=s?[].concat(_(o.map((function(e){var t=e.id,n=m(e,["id"]);return h({id:"".concat(i.id,".").concat(t)},n)}))),[i]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:u,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return h(h({},m(e,["group"])),{},{group:!s||"background"===n||"Default"!==n&&n?s&&(null===(t=Object(r.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:i.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},se=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],a=c(o);"object"!==a||null===o||r(n)?"undefined"!==a&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},ie=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),a=Object(r.pick)(Object(r.cloneDeep)(t),n);return ie(o.map,"text_serch_config","text_search_config"),ie(a.map,"text_serch_config","text_search_config"),se(o),se(a),Object(r.isEqual)(o,a)},de=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:de,EXTENT_TO_ZOOM_HOOK:L,RESOLUTIONS_HOOK:v,RESOLUTION_HOOK:Y,COMPUTE_BBOX_HOOK:w,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:k,DEFAULT_SCREEN_DPI:M,ZOOM_TO_EXTENT_HOOK:j,registerHook:S,getHook:T,dpi2dpm:P,getSphericalMercatorScales:I,getSphericalMercatorScale:A,getGoogleMercatorScales:C,getGoogleMercatorResolutions:R,getGoogleMercatorScale:F,getResolutionsForScales:N,getZoomForExtent:U,defaultGetZoomForExtent:z,getCenterForExtent:J,getResolutions:W,getScales:G,getBbox:V,mapUpdated:K,getCurrentResolution:B,transformExtent:Q,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ae,prepareMapObjectToCompare:se,updateObjectFieldKey:ie,compareMapChanges:ue,clearHooks:E}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=function(e,t){return e===t},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},i=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,s())})),u=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,s(e))}))}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=n.n(r),a=n("./MapStore2/web/client/product/assets/img/marker-shadow.png"),s=n.n(a),i={iconUrl:o.a,shadowUrl:s.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},d=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),s=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var a=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,s=a||t.name||"";return s;case"description":var i=t.description||"";return i;case"both":var u=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,d=u||t.nam||"",l=t.description||"";return"".concat(d).concat(o&&l?o:"").concat(l);default:return t[e]}},u=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return i(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(a=a&&a.substring(0,o.maxLength)).length===o.maxLength&&(a+="..."),{title:i("title",t,n,o.separator),tooltipText:a}},d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(a.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return a})),n.d(t,"getCleanTemplate",(function(){return s})),n.d(t,"parseCustomTemplate",(function(){return i})),n.d(t,"generateTemplateString",(function(){return u})),n.d(t,"parseTemplate",(function(){return d}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,a)},s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(n),d=u&&u.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:a(t,n,r,s)?n:i(e)}}))||null;return d&&d.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(s(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},u=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),d=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var a=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(a)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},l={generateTemplateString:u,parseTemplate:d,validateStringAttribute:a,getCleanTemplate:s,parseCustomTemplate:i};t.default=l},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.width,s=void 0===a?64:a,i=o.height,u=void 0===i?64:i,d=o.contain,l=o.type,c=void 0===l?"image/jpeg":l,m=o.quality,_=void 0===m?.5:m,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var e=f.naturalWidth/f.naturalHeight,t=s,r=u,o=s/u,a=document.createElement("canvas");a.setAttribute("width",s),a.setAttribute("height",u),a.style.width=s+"px",a.style.height=u+"px";var i=a.getContext("2d"),l=!d&&eo?[t,t/e]:[r*e,r];i.save(),i.translate(t/2,r/2),i.drawImage(f,-l[0]/2,-l[1]/2,l[0],l[1]),i.restore();var m=a.toDataURL(c,_);n(m)},f.onerror=function(e){r(e)},f.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.type,s=void 0===a?"image/jpeg":a,i=o.quality,u=void 0===i?.5:i,d=document.createElement("video");d.crossOrigin="anonymous";var l=document.createElement("source"),c=document.createElement("canvas");d.addEventListener("loadedmetadata",(function(){var e=d.videoWidth,t=d.videoHeight;c.setAttribute("width",e),c.setAttribute("height",t),c.style.width=e+"px",c.style.height=t+"px"}),!0),d.addEventListener("loadeddata",(function(){d.currentTime=1}),!0),d.addEventListener("seeked",(function(){c.getContext("2d").drawImage(d,0,0);try{var e=c.toDataURL(s,u);n(e)}catch(e){r(e)}}),!0),d.addEventListener("error",(function(e){r(e)}),!0),d.appendChild(l),d.setAttribute("src",e)}))},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(e=t.match(a))||void 0===e?void 0:e[1];return s?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/TimeUtils.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"k",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return L})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return v}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/moment/moment.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=/PT?[\d\.]+[YMWDHMS]/,u=function(e){return e?Object(r.isString)(e)?new Date(e).getTime():(Object(r.isDate)(e)&&e.getTime(),e):null},d=function(e,t){var n=u(t),r=1/0,o=-1;return e.forEach((function(e,t){var a=u(e),s=Math.abs(a-n);s0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.start,i=o.end;if(!s||!i)return{count:l({start:t,end:n,duration:r}),start:t,end:n};var u=a.a.duration(r).asMilliseconds(),d=new Date(t).getTime(),c=new Date(n).getTime(),m=new Date(s).getTime(),_=new Date(i).getTime(),f=Math.ceil((m-d)/u),p=Math.floor((_-d)/u),h=Math.floor((c-d)/u);if(f>=0&&p<=h){var y=p-f;return{start:new Date(d+Math.max(0,f)*u),end:new Date(d+Math.min(h,p)*u),count:y}}return{count:l({start:t,end:n,duration:r}),start:t,end:n}},f=function(e){return e.match(i)[0]},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=arguments.length>1?arguments[1]:void 0,o=new Date(t),s=new Date(n),i=Math.floor(s.getTime()-o.getTime())/r,u=a.a.duration(i).toISOString(),d=f(u);return{range:{start:t,end:n},resolution:d}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[d(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},M=function(e,t){var n=a()(e).diff(t);return{start:n>=0?t:e,end:n>=0?e:t}},g=function(e){return 6e4*e.getTimezoneOffset()},b=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCHours();n=n<10?"0"+n:n;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var a=t.getUTCSeconds();return a=a<10?"0"+a:a,"".concat(n,":").concat(o,":").concat(a)},L=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCMonth()+1,o=t.getUTCDate();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(n,"-").concat(o)},j=function(e,t){var n=Object(s.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return n;default:return n+" HH:mm:SS"}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,n=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,a=Object(r.castArray)(n.DimensionDomain||[]).concat(),s=n["@version"]||n.version,i=Object(r.get)(n,"SpaceDomain.BoundingBox");return i&&a.push({Identifier:"space",Domain:i}),a.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:s,url:o},name:t,domain:n}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return i}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,s=t.filterObj,i=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(s)&&Object(r.toCQLFilter)(s),t&&t.params&&t.params.CQL_FILTER,n];return(e=(i=i.filter((function(e){return!!e}))).length>1?i.map((function(e){return"(".concat(e,")")})).join(" AND "):i.pop())?a(a({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return l})),n.d(t,"toDescribeURL",(function(){return c})),n.d(t,"extractGeometryType",(function(){return m})),n.d(t,"extractGeometryAttributeName",(function(){return _}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,s=e.describeFeatureTypeURL,i=a.a.parse(s||r.url||o,!0);return a.a.format(u(u({},i),{},{search:void 0,query:u(u({},i.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},m=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},_=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return d})),n.d(t,"getMatrixIds",(function(){return l})),n.d(t,"limitMatrix",(function(){return c})),n.d(t,"getTileMatrixSet",(function(){return m})),n.d(t,"getRequestEncoding",(function(){return _})),n.d(t,"getOperations",(function(){return f})),n.d(t,"getOperation",(function(){return p})),n.d(t,"getGetTileURL",(function(){return h})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return M})),n.d(t,"getDefaultFormat",(function(){return g})),n.d(t,"sortTileMatrix",(function(){return b})),n.d(t,"getTileMatrix",(function(){return L}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;tt?Object(a.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(a.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(a.isArray)(e)){var s=Object(a.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return s&&s["ows:Identifier"]?s["ows:Identifier"]:t}return Object(a.isObject)(e)&&e[n]||t}),s):s},_=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},p=function(e,t,n){return Object(a.head)(Object(a.castArray)(Object(a.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(a.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(a.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.head)(Object(a.castArray)(e.capabilitiesURL||e.GetTileURL))},M=function(e){return Object(a.head)(Object(a.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},g=function(e){return Object(a.head)(Object(a.castArray)(e.Format))},b=function(e,t){return e?i(i({},e),{},{TileMatrix:Object(a.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return i(i({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},L=function(e,t){var n,r,o=m(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),s=e.matrixIds&&l(e.matrixIds,o||t),i=b(Object(a.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),s),u=null==i||null===(n=(r=i.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&s?s.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):s,tileMatrixSetName:o,tileMatrixSet:i}};r={getOperations:f,getOperation:p}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,s=t.currentLocale,i=t.params,c=t.maxItems,m=void 0===c?10:c,_=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0;return{request:h(a({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(r.projection)||"EPSG:4326",feature_count:m},y({params:i})),e),metadata:{title:l(e.title)?e.title[s]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:f},url:d(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,a=r(n,["point"]),s=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return i.defer((function(){return _(e.url,e.name).then((function(n){var r=p(n),o=c({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:s}},params:y({},e.baseParams,e.params,a)});return f(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,a=void 0===r?{}:r,i=t.point,y=t.currentLocale,M=t.params,g=t.maxItems,b=void 0===g?10:g,L=t.env,j=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,Y=arguments.length>4?arguments[4]:void 0,w=n&&n.height||101,O=n&&n.width||101,k=[w,O],D=0,S=s(Math.ceil(a.zoom),0,21,96),T=i.latlng.lng,x=T-360*Math.floor(T/360+.5),E={x:x,y:i.latlng.lat},P=u(E,"EPSG:4326",a.projection),H=d(P,S,D,k,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=f(L),I=_({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,M)});return{request:p(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:w,width:O,srs:l(a.projection)||"EPSG:4326",bbox:H.minx+","+H.miny+","+H.maxx+","+H.maxy,feature_count:b,info_format:j,ENV:F},h({},I)),e),metadata:{title:m(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:v,featureInfo:Y},url:c(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},l={AND:"and",OR:"or",NOT:"not"},c={RPAREN:3,LOGICAL:2,COMPARISON:1},m=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},_=function(e,t){var n,r,o=t.length;for(n=0;n0&&c[t[t.length-1].type]<=m;)i.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)i.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&i.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)i.push(t.pop());var _=function e(){var t=i.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:l[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:l.NOT};case"BETWEEN":i.pop();var c=e(),m=e();return{property:e(),lowerBoundary:m,upperBoundary:c,type:d.BETWEEN};case"COMPARISON":var _=e();return{property:e(),value:_,type:d[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:d[t.text.toUpperCase()]};case"VALUE":var f=t.text.match(/^'(.*)'$/);return f?f[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var p=e(),h=e(),y=e(),M=e(),g=e();return{type:r,property:g,value:[M,y,h,p]};case"INTERSECTS":var b=e(),L=e();return{type:n,property:L,value:b};case"WITHIN":var j=e(),v=e();return{type:s,property:v,value:j};case"CONTAINS":var Y=e(),w=e();return{type:o,property:w,value:Y};case"DWITHIN":var O=e(),k=e(),D=e();return{type:a,value:k,property:D,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(i.length>0){for(var f="Remaining tokens after building AST: \n",p=i.length-1;p>=0;p--)f+=i[p].type+": "+i[p].text+"\n";throw new Error(f)}return _};e.exports={read:function(e){return f(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=_(r,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),a=o.logical,s=o.spatial,i=o.comparison,u=o.literal,d=o.propertyName,l=o.valueReference,c=o.distance,m=o.lower,_=o.upper,f=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),p=f.filter,h=f.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,f=e.wfsVersion,M=void 0===f?"1.1.0":f,g=o||"3.1.1",b=function(e){return y(g,e)},L=function(e){return"object"===r(e)&&Date,u(n,e)},j=0===M.indexOf("2.")?l:d;return{filter:p.bind(null,n),fidFilter:h.bind(null,n),and:a.and.bind(null,n),or:a.or.bind(null,n),not:a.not.bind(null,n),property:function(e){return{equalTo:function(t){return i.equal(n,j(n,e),L(t))},greaterThen:function(t){return i.greater(n,j(n,e),L(t))},greaterThenOrEqualTo:function(t){return i.greaterOrEqual(n,j(n,e),L(t))},lessThen:function(t){return i.less(n,j(n,e),L(t))},lessThenOrEqualTo:function(t){return i.lessOrEqual(n,j(n,e),L(t))},notEqualTo:function(t){return i.notEqual(n,j(n,e),L(t))},between:function(t,r){return i.between(n,j(n,e),m(n,L(t)),_(n,L(r)))},like:function(t,r){return i.like(n,j(n,e),L(t),r)},ilike:function(t,r){return i.ilike(n,j(n,e),L(t),r)},isNull:function(){return i.isNull(n,j(n,e))},intersects:function(t){return s.intersects(n,j(n,e),b(t))},within:function(t){return s.within(n,j(n,e),b(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s.dwithin(n,j(n,e),b(t),c(n,r,o))},contains:function(t){return s.contains(n,j(n,e),b(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,a=n.filters,l=void 0===a?[]:a,c=n.value,m=n.property,_=n.lowerBoundary,f=n.upperBoundary;return s(u,o)?t[o].apply(t,r(l.map(e(t)))):t.property(m)[d[o]](i(c)?_:c,f)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},a=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},s={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.AND,[t].concat(o)):a(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.OR,[t].concat(o)):a(e,r.OR,t)},not:function(e,t){return a(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.NOR,[t].concat(o)):a(e,r.NOR,t)}},i={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:s,spatial:i,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},a=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},s=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},i=function(e,t,n){var s=o(n),i="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=a(e).map((function(e){return e[0]+(s?",":" ")+e[1]})),r=s?"outerBoundaryIs":"exterior",o=s?"innerBoundaryIs":"exterior";i+=(t<1?"":"")+""+(s?"":"")+n.join(" ")+(s?"":"")+""+(t<1?"":"")})),i+=""},u=function(e,t,n){var r=o(n),a="':">";var s=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return a+=(r?"":"")+s.join(" ")+(r?"":""),a+=""};e.exports={closePolygon:a,pointElement:s,polygonElement:i,lineStringElement:u,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=s(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+="";break;case"LineString":n+=u(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",a="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=u(t,r,e),n+="")})),n+="";break;case"Polygon":n+=i(t.coordinates,r,e);break;case"MultiPolygon":var d="3.2"===e?"MultiSurface":"MultiPolygon",l="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=i(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,a=r.get,s=function(e){return/[<>&'"]/.test(e)?""):e},i=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},d=function(e){return a(e,"featureTypes[0].properties")},l=function(e,t){return o((d(t)||[]).filter((function(t){return t.name===e})))},c=function(e){return e.targetNamespace},m=function(e){return 0===e.type.indexOf("gml:")},_=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return _(m(r)?t:n[r.name],r)};e.exports={schemaLocation:c,isGeometryType:m,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(c(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=m(l(t,n));return o?e?i(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?s(e):e},getPropertyDesciptor:l,findGeometryProperty:function(e){return o((d(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:d,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:i,isValid:function(e,t){return d(t).map((function(t){return f(e,t)}))},isValidProperty:f,isValidValueForPropertyName:function(e,t,n){return _(e,l(t,n))},isValidValue:_}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return _})),n.d(t,"l",(function(){return f}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",a="GEONODE:SAVE_ERROR",s="GEONODE:CLEAR_SAVE",i="GEONODE:SAVE_CONTENT",u="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function d(){return{type:r}}function l(e){return{type:o,success:e}}function c(e){return{type:a,error:e}}function m(){return{type:s}}function _(e,t,n){return{type:i,id:e,metadata:t,reload:n}}function f(e){return{type:u,id:e}}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),a=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/backgroundselector.js"),i=n("./MapStore2/web/client/utils/MapUtils.js"),u=n("./node_modules/reselect/es/index.js"),d=n("./MapStore2/web/client/selectors/catalog.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),m=n("./MapStore2/web/client/selectors/dimension.js"),_=n("./MapStore2/web/client/selectors/timeline.js"),f=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},p=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-kw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ly.js":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,s){var i=n(t),u=r[e][n(t)];return 2===i&&(u=u[o?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var i=r(t),u=o[e][r(t)];return 2===i&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-ch.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-au.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-gb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ie.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-il.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-nz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-do.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-us.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,a){var s="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":s=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":s=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":s=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":s=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":s=a?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-latn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gu.js":function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it.js":function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kn.js":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ky.js":function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,s){var i=e+" ";return 1===e?i+n(0,t,a[0],s):t?i+(r(e)?o(a)[1]:o(a)[0]):s?i+o(a)[1]:i+(r(e)?o(a)[1]:o(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl-be.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pa-in.js":function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sd.js":function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ss.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tet.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tg.js":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ug-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ur.js":function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/x-pseudo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/yo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-hk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},z={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=J(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var V=/\d/,q=/\d\d/,K=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function le(e,t,n){de[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(de,e)?de[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _e={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=v(e)}),n=0;n68?1900:2e3)};var ge,be=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(ve(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ve(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ye(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ye(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function Ae(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var a,s,i=1+7*(t-1)+(7+n-r)%7+Fe(e,r,o);return i<=0?s=ye(a=e-1)+i:i>ye(e)?(a=e+1,s=i-ye(e)):(a=e,s=i),{year:a,dayOfYear:s}}function Ce(e,t,n){var r,o,a=Fe(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Ne(o=e.year()-1,t,n):s>Ne(e.year(),t,n)?(r=s-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function Ne(e,t,n){var r=Fe(e,t,n),o=Fe(e+1,t,n);return(ye(e)-r+o)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),C("week",5),C("isoWeek",5),le("w",X),le("ww",X,q),le("W",X),le("WW",X,q),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=v(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=v(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null}var Ue=ue,Be=ue,Je=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,r,o,a,s=[],i=[],u=[],d=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(r),i.push(o),u.push(a),d.push(r),d.push(o),d.push(a);for(s.sort(e),i.sort(e),u.sort(e),d.sort(e),t=0;t<7;t++)i[t]=me(i[t]),u[t]=me(u[t]),d[t]=me(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ke(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,qe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),H("hour","h"),C("hour",13),le("a",Qe),le("A",Qe),le("H",X),le("h",X),le("k",X),le("HH",X,q),le("hh",X,q),le("kk",X,q),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var r=v(e);t[3]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=v(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o))}));var Ze,Xe=Le("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:ke,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var r=null;if(!et[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),ot(r)}catch(e){}return et[t]}function ot(e,t){var n;return e&&((n=i(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=$e;if(t.abbr=e,null!=et[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new E(x(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=rt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Y(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function it(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ye(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var t,n,r,a,s,i=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,s,i,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,s=4,n=ut(t.GG,e._a[0],Ce(Yt(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(u=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var d=Ce(Yt(),a,s);n=ut(t.gg,e._a[0],d.year),r=ut(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a}r<1||r>Ne(n,a,s)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(i=Ie(n,r,o,a,s),e._a[0]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(s=ut(e._a[0],r[0]),(e._dayOfYear>ye(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ae(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:He).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function ht(e){var t,n,r,o,a,s,i=e._i,u=lt.exec(i)||ct.exec(i);if(u){for(f(e).iso=!0,t=0,n=_t.length;t0&&f(e).unusedInput.push(s),i=i.slice(i.indexOf(n)+n.length),d+=n.length),z[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),he(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=u-d,i.length>0&&f(e).unusedInput.push(i),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),dt(e),it(e)}else bt(e);else ht(e)}function jt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new b(it(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:h()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r(a=Ne(e,r,o))&&(t=a),$t.call(this,e,t,n,r,o))}function $t(e,t,n,r,o){var a=Ie(e,t,n,r,o),s=Ae(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Zt("gggg","weekYear"),Zt("ggggg","weekYear"),Zt("GGGG","isoWeekYear"),Zt("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",X,q),le("gg",X,q),le("GGGG",ne,Q),le("gggg",ne,Q),le("GGGGG",re,Z),le("ggggg",re,Z),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=v(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),H("quarter","Q"),C("quarter",7),le("Q",V),fe("Q",(function(e,t){t[1]=3*(v(e)-1)})),U("D",["DD",2],"Do","date"),H("date","D"),C("date",9),le("D",X),le("DD",X,q),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=v(e.match(X)[0])}));var en=Le("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),C("dayOfYear",4),le("DDD",te),le("DDDD",K),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=v(e)})),U("m",["mm",2],0,"minute"),H("minute","m"),C("minute",14),le("m",X),le("mm",X,q),fe(["m","mm"],4);var tn=Le("Minutes",!1);U("s",["ss",2],0,"second"),H("second","s"),C("second",15),le("s",X),le("ss",X,q),fe(["s","ss"],5);var nn,rn=Le("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),C("millisecond",16),le("S",te,V),le("SS",te,q),le("SSS",te,K),nn="SSSS";nn.length<=9;nn+="S")le(nn,oe);function on(e,t){t[6]=v(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")fe(nn,on);var an=Le("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var sn=b.prototype;function un(e){return e}sn.add=Bt,sn.calendar=function(e,t){var n=e||Yt(),r=At(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",s=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Yt(n)))},sn.clone=function(){return new b(this)},sn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":a=Vt(this,r)/12;break;case"month":a=Vt(this,r);break;case"quarter":a=Vt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:j(a)},sn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},sn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},sn.from=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.fromNow=function(e){return this.from(Yt(),e)},sn.to=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.toNow=function(e){return this.to(Yt(),e)},sn.get=function(e){return T(this[e=A(e)])?this[e]():this},sn.invalidAt=function(){return f(this).overflow},sn.isAfter=function(e,t){var n=L(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(i(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},sn.toJSON=function(){return this.isValid()?this.toISOString():null},sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},sn.unix=function(){return Math.floor(this.valueOf()/1e3)},sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},sn.year=be,sn.isLeapYear=function(){return Me(this.year())},sn.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},sn.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},sn.quarter=sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},sn.month=Te,sn.daysInMonth=function(){return Ye(this.year(),this.month())},sn.week=sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},sn.isoWeek=sn.isoWeeks=function(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},sn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},sn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},sn.date=en,sn.day=sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},sn.hour=sn.hours=Xe,sn.minute=sn.minutes=tn,sn.second=sn.seconds=rn,sn.millisecond=sn.milliseconds=an,sn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},sn.utc=function(e){return this.utcOffset(0,e)},sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},sn.isUtc=It,sn.isUTC=It,sn.zoneAbbr=function(){return this._isUTC?"UTC":""},sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},sn.dates=O("dates accessor is deprecated. Use date instead.",en),sn.months=O("months accessor is deprecated. Use month instead",Te),sn.years=O("years accessor is deprecated. Use year instead",be),sn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),sn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=jt(e))._a){var t=e._isUTC?_(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=E.prototype;function ln(e,t,n,r){var o=st(),a=_().set(r,t);return o[n](a,e)}function cn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ln(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,a=st(),s=e?a._week.dow:0;if(null!=n)return ln(t,(n+s)%7,r,"day");var i=[];for(o=0;o<7;o++)i[o]=ln(t,(o+s)%7,r,"day");return i}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=un,dn.postformat=un,dn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ot),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var _n=Math.abs;function fn(e,t,n,r){var o=Rt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function pn(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var gn=Mn("ms"),bn=Mn("s"),Ln=Mn("m"),jn=Mn("h"),vn=Mn("d"),Yn=Mn("w"),wn=Mn("M"),On=Mn("y");function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=kn("milliseconds"),Sn=kn("seconds"),Tn=kn("minutes"),xn=kn("hours"),En=kn("days"),Pn=kn("months"),Hn=kn("years"),An=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function In(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Cn=Math.abs;function Nn(e){return(e>0)-(e<0)||+e}function Rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Cn(this._milliseconds)/1e3,r=Cn(this._days),o=Cn(this._months);e=j(n/60),t=j(e/60),n%=60,e%=60;var a=j(o/12),s=o%=12,i=r,u=t,d=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var m=c<0?"-":"",_=Nn(this._months)!==Nn(c)?"-":"",f=Nn(this._days)!==Nn(c)?"-":"",p=Nn(this._milliseconds)!==Nn(c)?"-":"";return m+"P"+(a?_+a+"Y":"")+(s?_+s+"M":"")+(i?f+i+"D":"")+(u||d||l?"T":"")+(u?p+u+"H":"")+(d?p+d+"M":"")+(l?p+l+"S":"")}var Wn=St.prototype;return Wn.isValid=function(){return this._isValid},Wn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Wn.add=function(e,t){return fn(this,e,t,1)},Wn.subtract=function(e,t){return fn(this,e,t,-1)},Wn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Wn.asMilliseconds=gn,Wn.asSeconds=bn,Wn.asMinutes=Ln,Wn.asHours=jn,Wn.asDays=vn,Wn.asWeeks=Yn,Wn.asMonths=wn,Wn.asYears=On,Wn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,s=this._days,i=this._months,u=this._data;return a>=0&&s>=0&&i>=0||a<=0&&s<=0&&i<=0||(a+=864e5*pn(yn(i)+s),s=0,i=0),u.milliseconds=a%1e3,e=j(a/1e3),u.seconds=e%60,t=j(e/60),u.minutes=t%60,n=j(t/60),u.hours=n%24,s+=j(n/24),o=j(hn(s)),i+=o,s-=pn(yn(o)),r=j(i/12),i%=12,u.days=s,u.months=i,u.years=r,this},Wn.clone=function(){return Rt(this)},Wn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},Wn.milliseconds=Dn,Wn.seconds=Sn,Wn.minutes=Tn,Wn.hours=xn,Wn.days=En,Wn.weeks=function(){return j(this.days()/7)},Wn.months=Pn,Wn.years=Hn,Wn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Rt(e).abs(),o=An(r.as("s")),a=An(r.as("m")),s=An(r.as("h")),i=An(r.as("d")),u=An(r.as("M")),d=An(r.as("y")),l=o<=Fn.ss&&["s",o]||o0,l[4]=n,In.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Wn.toISOString=Rn,Wn.toString=Rn,Wn.toJSON=Rn,Wn.locale=qt,Wn.localeData=Qt,Wn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),Wn.lang=Kt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(v(e))})),o.version="2.21.0",t=Yt,o.fn=sn,o.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Yt(1e3*e)},o.months=function(e,t){return cn(e,t,"months")},o.isDate=d,o.locale=ot,o.invalid=h,o.duration=Rt,o.isMoment=L,o.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},o.parseZone=function(){return Yt.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=Tt,o.monthsShort=function(e,t){return cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},o.defineLocale=at,o.updateLocale=function(e,t){if(null!=t){var n,r,o=$e;null!=(r=rt(e))&&(o=r._config),t=x(o,t),(n=new E(t)).parentLocale=et[e],et[e]=n,ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},o.locales=function(){return k(et)},o.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=sn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/turf-center/index.js":function(e,t,n){var r=n("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=n("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=r(e),n=(t[0]+t[2])/2,a=(t[1]+t[3])/2;return o([n,a])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,n){var r=n("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return r(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(i-a)*(e[1]-s)/(u-s)+a&&(n=!n)}return n}e.exports=function(e,t){var n=r.getCoord(e),a=t.geometry.coordinates;"Polygon"===t.geometry.type&&(a=[a]);for(var s=0,i=!1;s1&&void 0!==arguments[1]?arguments[1]:D;return{type:i,target:t,id:o()(),widget:e}},C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:D;return{type:_,id:e,target:o,key:t,value:n,mode:r}},N=function(e){return{type:f,layer:e}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:h,target:t,widget:e}},W=function(){return{type:y}},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return{type:p,allLayouts:t,layout:e,target:n}},z=function(e){return{type:d,widget:e}},U=function(e,t){return{type:l,widget:e,settings:t}},B=function(e,t){return{type:c,key:e,value:t}},J=function(e,t){return{type:m,key:e,value:t}},V=function(e){return{type:b,dependencies:e}},q=function(e,t,n,r){return{type:j,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return J("step",e)},Q=function(e){var t=e.data,n=void 0===t?[]:t,r=e.title;return{type:Y,data:n,title:void 0===r?"export":r}},Z=function(e){var t=e.widgetDivId;return{type:w,widgetDivId:t}},X=function(){return{type:v}},$=function(e,t){return n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:D;return{type:x,widget:e,target:t}},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return{type:E,target:e}},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return{type:P,widget:e,target:t}},re=function(e){return{type:H,value:e}}},"./MapStore2/web/client/api/WFS.js":function(e,t,n){"use strict";n.r(t),n.d(t,"toDescribeURL",(function(){return f})),n.d(t,"getFeatureSimple",(function(){return p})),n.d(t,"getCapabilitiesURL",(function(){return h})),n.d(t,"getFeatureURL",(function(){return y})),n.d(t,"getFeature",(function(){return M})),n.d(t,"getCapabilities",(function(){return g})),n.d(t,"describeFeatureTypeOGCSchemas",(function(){return b})),n.d(t,"describeFeatureType",(function(){return L}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),a=n("./node_modules/url/url.js"),s=n.n(a),i=n("./node_modules/object-assign/index.js"),u=n.n(i);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return(l="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 c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=void 0===n?"1.1.0":n,o=s.a.parse(e,!0);return s.a.format(u()({},o,{query:u()({service:"WFS",version:r,request:"GetCapabilities"},o.query)}))},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.version,o=void 0===r?"1.1.0":r,a=d(n,["version"]),i=s.a.parse(e,!0);return s.a.format(u()({},i,{query:u()(m({service:"WFS",typeName:t,version:o,request:"GetFeature"},a),i.query)}))},M=function(e,t,n){return o.a.get(y(e,t,n))},g=function(e){return o.a.get(h(e))},b=function(e,t){var r=s.a.parse(e,!0),a=s.a.format(u()({},r,{query:u()({service:"WFS",version:"1.1.0",typeName:t,request:"DescribeFeatureType"},r.query)}));return new Promise((function(e){Promise.all([n.e(1),n.e(31)]).then(function(){var t=n("./MapStore2/web/client/utils/ogc/WFS/index.js").unmarshaller;e(o.a.get(a).then((function(e){var n=t.unmarshalString(e.data);return n&&n.value})))}.bind(null,n)).catch(n.oe)}))},L=function(e,t){return o.a.get(f(e,t)).then((function(e){return e.data}))}},"./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx");function u(e){return(u="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 d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n([\s\S]*)<\/body>[\s\S]*$/i,g=/([^<]*<\/style>)/i,b=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&&c(e,t)}(s,e);var t,n,r,a=m(s);function s(){return d(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"shouldComponentUpdate",value:function(e){return e.response!==this.props.response}},{key:"render",value:function(){var e=this.props.response||"",t=g.exec(e),n=t&&2===t.length?g.exec(e)[1]:"";n=n.replace(/body[,]+/g,"");var r=e.replace(M,"$1").trim();return o.a.createElement(i.a,{html:n+r})}}])&&l(t.prototype,n),r&&l(t,r),s}(o.a.Component);p=b,h="propTypes",y={response:s.a.string},h in p?Object.defineProperty(p,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[h]=y,t.a=b},"./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/utils/TemplateUtils.js"),u=n("./MapStore2/web/client/components/misc/HtmlRenderer.jsx"),d=n("./node_modules/prop-types/index.js"),l=n.n(d),c=n("./MapStore2/web/client/utils/StringUtils.js");function m(e){return(m="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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n

"!==e.layer.featureInfo.template&&e.layer.featureInfo.format||"PROPERTIES",n=w[t]||w.PROPERTIES;return o.a.createElement(n,e)}))},"./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l;t.a=(l=r.Button,a.a.forwardRef((function(e,t){var n=e.disabled,r=e.className,o=e.onClick,s=void 0===o?function(){}:o,c=d(e,["disabled","className","onClick"]);return a.a.createElement(l,u({ref:t,className:n?i()("disabled",r):r,onClick:function(){n||s.apply(void 0,arguments)}},c),c.children)})))},"./MapStore2/web/client/components/misc/Dialog.jsx":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n.n(r),a=n("./node_modules/prop-types/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),u=n.n(i),d=n("./node_modules/react-draggable/dist/react-draggable.js"),l=n.n(d),c=n("./node_modules/react-spinkit/dist/index.js"),m=n.n(c),_=n("./MapStore2/web/client/components/I18N/Message.jsx");function f(e){return(f="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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0})),Y(j(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=u.a.createElement("div",{id:this.props.id,style:h({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},u.a.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),u.a.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?u.a.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):u.a.createElement("span",null)),n=this.props.draggable?u.a.createElement(l.a,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?u.a.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&M(t.prototype,n),r&&M(t,r),s}(u.a.Component);Y(w,"propTypes",{id:s.a.string.isRequired,style:s.a.object,backgroundStyle:s.a.object,className:s.a.string,maskLoading:s.a.bool,containerClassName:s.a.string,headerClassName:s.a.string,bodyClassName:s.a.string,footerClassName:s.a.string,onClickOut:s.a.func,modal:s.a.bool,start:s.a.object,draggable:s.a.bool,bounds:s.a.oneOfType([s.a.string,s.a.object])}),Y(w,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),t.a=w},"./MapStore2/web/client/components/misc/HtmlRenderer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/prop-types/index.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n.n(a);function i(e){return(i="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n100?"full":e>40?"medium":"small"},c=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,o=e.className,a=e.hidden;return s.a.createElement("div",{className:o,style:u({width:t,height:t,overflow:"hidden"},r)},!a&&s.a.createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};c.propTypes={size:o.a.number,className:o.a.string,style:o.a.object},t.a=c},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return o.a.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.a=Object(r.a)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/ResizableModal.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-bootstrap/es/index.js"),s=n("./MapStore2/web/client/components/misc/Dialog.jsx"),i=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),u=n("./node_modules/recompose/es/Recompose.js"),d=n("./node_modules/react-addons-css-transition-group/index.js"),l=n.n(d),c=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),m={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},_={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}},f=Object(u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,u=e.loadingText,d=e.onClose,f=void 0===d?function(){}:d,p=e.title,h=void 0===p?"":p,y=e.clickOutEnabled,M=void 0===y||y,g=e.showClose,b=void 0===g||g,L=e.disabledClose,j=void 0!==L&&L,v=e.showFullscreen,Y=void 0!==v&&v,w=e.fullscreenType,O=void 0===w?"full":w,k=e.buttons,D=void 0===k?[]:k,S=e.size,T=void 0===S?"":S,x=e.bodyClassName,E=void 0===x?"":x,P=e.children,H=e.draggable,A=void 0!==H&&H,F=e.fullscreenState,I=e.onFullscreen,C=e.fade,N=void 0!==C&&C,R=e.fitContent,W=e.modalClassName,G=void 0===W?"":W,z=e.dialogClassName,U=void 0===z?"":z,B=e.enableFooter,J=void 0===B||B,V=m[T]||"",q=Y&&"expanded"===F&&_.className[O]||"",K=n?o.a.createElement("div",{className:"modal-fixed ".concat(G," ")+(A?"ms-draggable":"")},o.a.createElement(s.a,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:M?f:function(){},containerClassName:"ms-resizable-modal",draggable:A,modal:!0,className:"modal-dialog modal-content"+V+q+U+(R?" ms-fit-content":"")},o.a.createElement("span",{role:"header"},o.a.createElement("h4",{className:"modal-title"},o.a.createElement("div",{className:"ms-title"},h),Y&&_.className[O]&&o.a.createElement(a.Glyphicon,{className:"ms-header-btn",onClick:function(){return I("expanded"===F?"collapsed":"expanded")},glyph:_.glyph[F][O]}),b&&f&&o.a.createElement(a.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:f,disabled:j}))),o.a.createElement("div",{role:"body",className:E},P),J&&o.a.createElement("div",{style:{display:"flex"},role:"footer"},o.a.createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o.a.createElement(c.a,null):null),o.a.createElement("div",{className:"ms-resizable-modal-loading-text"},r?u:null),o.a.createElement(i.a,{buttons:D})))):null;return N?o.a.createElement(l.a,{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},K):K}));t.a=f},"./MapStore2/web/client/components/misc/Thumbnail.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-dropzone/dist/index.js"),s=n.n(a),i=n("./MapStore2/web/client/components/misc/Loader.jsx"),u=n("./MapStore2/web/client/utils/ThumbnailUtils.js"),d=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx");function l(){return(l=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=w?["SIZE"]:[])),e)):null})).catch((function(e){return I.current?(R(!1),H(e)):null}))}}),y?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(y,")"),backgroundSize:null!=D&&D.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},p),W):o.a.createElement("div",{className:"dropzone-content-image"},p,W,h&&o.a.createElement("div",{className:"dropzone-errors"},h))))}));t.a=p},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./MapStore2/web/client/utils/ConfigUtils.js");function s(){return(s=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),i.a,(function(e){return function(t){return o.a.createElement(e,Object(s.omit)(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){"use strict";var r=n("./MapStore2/web/client/utils/LocaleUtils.js"),o=n("./node_modules/prop-types/index.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=n("./node_modules/recompose/es/Recompose.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(Object(s.isArray)(t))return t.map((function(o){var a=Object(r.f)(e,o[n]||Object(s.isString)(o)&&o||"");return l(l({},o),{},c({},n,Object(s.isNil)(a)?t:a))}));var o=Object(r.f)(e,t);return Object(s.isNil)(o)?t:o},_=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return l(l({},r),{},c({},o,e[o]&&m(t,e[o],n)))}};t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return Object(i.compose)(Object(i.getContext)({messages:a.a.object}),Object(i.mapProps)((function(n){var r=n.messages,o=u(n,["messages"]);return l(l({},o),Object(s.castArray)(e).reduce(_(o,r,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./node_modules/prop-types/index.js"),i=n.n(s),u=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx");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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,r=t.tooltipId,a=t.tooltipPosition,d=void 0===a?"top":a,c=t.tooltipTrigger,m=t.keyProp,_=t.idDropDown,f=t.args,p=l(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args"]);return o.a.createElement(i.a,{trigger:c,id:_,key:m,placement:d,overlay:o.a.createElement(s.Tooltip,{id:"tooltip-"+m},r?o.a.createElement(u.default,{msgId:r,msgParams:{data:f}}):n)},o.a.createElement(e,p))}}),(function(e){return function(t){return o.a.createElement(e,Object(d.omit)(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-addons-css-transition-group/index.js"),s=n.n(a),i=n("./node_modules/react-bootstrap/es/index.js"),u=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx");function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,r=e.btnGroupProps,a=void 0===r?{}:r,c=e.btnDefaultProps,m=void 0===c?{}:c,_=e.transitionProps,f=void 0===_?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:_,p=function(){return n.map((function(e,t){var n=e.visible,r=void 0===n||n,a=e.Element,s=e.renderButton,i=l(e,["visible","Element","renderButton"]);return r?s||(a&&o.a.createElement(a,d({key:i.key||t},i))||o.a.createElement(u.a,d({key:i.key||t},m,i))):null}))};return o.a.createElement(i.ButtonGroup,a,f?o.a.createElement(s.a,f,p()):p())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/recompose/es/Recompose.js"),s=n("./MapStore2/web/client/components/I18N/Message.jsx"),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./node_modules/react-bootstrap/es/index.js"),d=n("./MapStore2/web/client/components/misc/Loader.jsx"),l=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),c=n("./MapStore2/web/client/components/misc/enhancers/popover.js"),m=n("./MapStore2/web/client/components/misc/Button.jsx");function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=Object(a.compose)(l.a,c.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,r=e.text,a=void 0===r?"":r,l=e.textId,c=e.glyphClassName,p=void 0===c?"":c,h=e.loaderProps,y=void 0===h?{}:h,M=e.children,g=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(m.a,Object(i.omit)(g,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(u.Glyphicon,{glyph:t,className:p}):null,l?o.a.createElement(s.default,{msgId:l}):a,n?o.a.createElement(d.a,_({className:"ms-loader".concat(g.bsStyle&&" ms-loader-"+g.bsStyle||"").concat(g.bsSize&&" ms-loader-"+g.bsSize||"")},y)):null,M)}))},"./MapStore2/web/client/product/assets/img/marker-icon-red.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwKDiknI+uvvgAABttJREFUWMOll2uMVVcVx/9773PuPY/7mBcUZ4q1JmbiF6nQwtSY2pSYtobCB2yMrxhrHGOrfioEjQYlMWikH7TxUWNbjTFWU6gComm1UEgMAi20kFCrIMPMFIZ53Xvn3vPYZ++1/HBh6GVmmDu6k/+Xk/1fv7Mfa61zBDOjnfHihzZ1Gcg+YcUyCZrkvPf2A4efG2/HK24G+cuHN/cLS59nIT7DzH1Syli5jrGZUUTkKyGuAPa3RPTsA0f3vbEkyHfEBrlunbMVUn47LBYRhkE+7/uQORdCCDAzyAA6mkEURbpWqQpm/l4Q0I57X95rFoUcWLvxvazk71039/5b+noDVymQzsCZAWcZ2BKEkhCuC+E6kDkXmbUYv3QpylJ9zhj58EPHd/9zQcgf1228Xwnxh3Jnp+rq6XE5TmAb8aJ7rnwPIvQxPTlppicnLQGf3PSPvS/Mgey/c1OPVfzv3t7ecuj7MJUZsLVodwil4JQKiHSKS6OjDaFs/4a//2kUAOS1SVbxLwulkhd4HvTENMgYMPMcQcp5n5Mx0FMV+Pk8iuWyY6369bXYEgCeX7vh06zk+lu6O/O2WgeIWiQdB25nAbmeLsiOInI9XXA7y5A5d85cW62jp6s7L5Qa2LP2oS8CgNi3ZmOQCjP+7t6+wIOEnWm0bINT8kGej/FqBY1GAyZJoVwHQamE5YUSlCWYWgUgef2MiiESEIYuvZ14pLqdBOlq5eRF6Oehr0wAdP0iqDBAKhSGRoax8v6P4M5PbULxtlvRGB3Dud0HcG7Pn7Gyuwee77W8nJ2pIlzeA6UUJZSuVpv7+jcHfmF9yVGujTIAAoCAUA5URwEj01Po/8InsOprj8Dr6oCQEvmOElbcvQb+imV462+H0VXsAGcWbLnpZwHpKjQMmyTL3pSC+Z4w7/qkM4CuS7gOalECUS6g/7Ob571R7/nYfQhvX4npRh0yl2vxk84Q5l1fMN8jCRjwXQVOdXOrrko6AnGaYtldqyCEWPDqrhhYjcSkEIpb/Jxq+K4CAQOOIRs0SwWBmWbNzAzLBKdQWDQRzdVMaPUThBAgIl8COBUlCYRSrW+SZcgrB2Ovvn5TyNjJM8iznbMTQilESQICn5RE4nAjzTKhVIuZkhTlvIvKW+cxfOTYvIDx02dx+ehr6PQDkM7mVIAo0dqyfEUaaY5X01gLpcDWzoqSFCJO0Vcs4OCWHXjz+f0g0yywRITzL76Cl778dbyrWIbKLGwjavELpVBNG9rAHBdPf/DeXmZ3eE3frZKmKuDsHZVaSridZTTY4kK9jjiOUVqxHPUr41Cui9uLJZScHMzEOJivJ6NwHciuDrw6Omxh0CeYGc/c8dFjt5XLd/VIF7Y607JsFhaqWG4mJlskWiPv5uBJBYpmYGp1CG7dalUuYoIyHqpWjz1y6qUBBwA0xK6Rev3Z5cuXBaZmm3VolgLY6jSoVoHMuSg4Dqheh87M7DwGtaxeeg5Gx6ZiDfH92QIpnfgFbYyu6QzSC5t16AaxFeDYwM4k4NgABvPOk16ISqKRWlvvfrBz7yxk8MSRjMA/uVyvxcp3wJy1XMe2BUCFPkYb9dgyPfHwzt/Z1n5i7ZMTSaoispCBD+ZsyZKBi7qOUE0TYTN6uqWfAMCjZw5dBvDk0EwUK99rNqgbesVNBUAGPi7W6zGAJx47e2hyDgQAjLY7KzpB3WRQoT9vB1xIMvAxk2nMZJaEq3/wzrgtkMfOHppkIXZdjKJYhcHV1G9vFSr0MdRoRATeOXjiSHVBCAAYL7erZqyt6RQqDCAYi8ophKjpFI3MGGvtD2+MOQfylaMHaoL5u0NxGsvAB4FBRAuKBSB8DxeiKCLJOx49c6i+KAQAkMt+FFubVrMUTiGEYF5QquihohPElhK/OvHj+cLNCxk8cSQi8PahNItl4Deb1jxnIYSA9EIMpVnMQnzrc/85nbQNAQAd0VOptfUpnUAW8vPeKFEMMaUTpNbUum3wi4ViLQj56r8Oppbpm8OZjYUfAlK2ZreUkF4ew1kWk5Tf+PiZfXrJEAAY637fM5poekqnUGEOID0rp5DHlE6RWprofrD7VzeLc1PI9oNPGSuw7SJx82xU8xNVKAkEHoZslhCw7VqN+p8gADD2uvebzJrL45mBLIQAEVSxgCvawBBGx04Hzy0WY1HIdt5PLMTWEUKCwIfwPbDvYYQ4gZRbt/N++r8hAPCluw/uNmQvjFtit7OMK8YyEZ0fPPXXPe3424LgZ8RWyceHGVoTYQQiA7Cl7X+Xdv9+AeDnH7jvtbzAHSnj5OAbL69p1yexhMFCPJ5ACBZiC5ZkXELPYGb8dNX6bUv1/Bd7pfPVmVDtrAAAAABJRU5ErkJggg=="},"./MapStore2/web/client/product/assets/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},"./MapStore2/web/client/reducers/controls.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/controls.js"),o=n("./node_modules/object-assign/index.js"),a=n.n(o);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return a()({},e,s({},t.control,a()({},e[t.control],s({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,void 0)))):a()({},e,s({},t.control,a()({},e[t.control],s({},t.property,t.value))));case r.b:return a()({},e,s({},t.control,a()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),i=o.reduce((function(t,n){return a()(t,s({},n,a()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return a()({},e,i);default:return e}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/maptype.js"),s=n("./MapStore2/web/client/utils/LayersUtils.js"),i=function(e){return e.backgroundSelector&&e.backgroundSelector.source},u=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},d=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},l=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},c=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},m=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},_=Object(r.a)(o.p,a.c,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(s.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.d(t,"v",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"x",(function(){return c})),n.d(t,"e",(function(){return m})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return f})),n.d(t,"u",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"q",(function(){return M})),n.d(t,"t",(function(){return g})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return v})),n.d(t,"s",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"f",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return E}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/selectors/map.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return{desktop:[].concat(u(e),["Context"])}})),_=function(e){return m(e)},f=Object(r.a)((function(e){return Object(a.get)(l(e),"plugins")}),(function(e){return Object(a.get)(l(e),"userPlugins")}),(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&{desktop:[].concat(u(Object(a.get)(e,"desktop",[])),u(t.filter((function(e){return e.active}))))}})),p=(Object(r.a)(l,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.templates})),function(e){return function(e){return Object(a.get)(e,"context.loading")}(e)?_(e):f(e)||m(e)}),h=function(e){return Object(r.a)(l,p,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t||Object(a.findIndex)(Object(a.get)(n,"desktop",[]),(function(t){return t.name===e}))>-1}))};Object(r.a)((function(e){return Object(i.g)(e,Object(o.b)(e))}),(function(e){return JSON.stringify(e)}))},"./MapStore2/web/client/selectors/dashboard.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/router.js"),a=function(e){return e&&e.dashboard&&e.dashboard.editor&&e.dashboard.editor.available},s=function(e){return e&&e.dashboard&&e.dashboard.editing},i=function(e){return e&&e.dashboard&&e.dashboard.showConnections};Object(r.a)(o.a,(function(e){return e&&e.dashboard&&e.dashboard.resource}),(function(e){return e&&e.browser&&e.browser.mobile}),(function(e,t,n){return n?!n:t&&t.canEdit||isNaN(e.substr(-4))}))},"./MapStore2/web/client/selectors/dimension.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return _})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"g",(function(){return M})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n("./MapStore2/web/client/selectors/layers.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Object(a.find)(e.dimensions||[],{name:t})},_=function(e,t){return function(n){return c(e.id,t)(n)||m(e,t)}},f=function(e){return Object(r.p)(e).reduce((function(t,n){var r=_(n,"time")(e);return r?d(d({},t),{},l({},n.id,r)):t}),{})},p=function(e){return Object(r.p)(e).filter((function(e){return m(e,"time")}))},h=function(e){var t=Object(a.get)(e,"dimension.currentTime");return t&&t.split("/")[0]},y=function(e){return Object(a.get)(e,"dimension.offsetTime")},M=function(e){return!!y(e)},g=(Object(o.a)(f,(function(e){return Object.keys(e).reduce((function(t,n){return[].concat(s(t),s(e[n]&&e[n].values||[]))}),[]).sort()||[]})),function(e){return function(t){return s(Object(a.get)(_(e,"time")(t),"values",[])).sort()}}),b=function(e,t){var n=c(t,"time")(e),r=n&&n.domain&&n.domain.split("--");if(r&&2===r.length)return r&&{start:r[0],end:r[1]};var o=n&&n.domain&&n.domain.split(",");return o&&o.length>0?{start:o[0],end:o[o.length-1]}:null}},"./MapStore2/web/client/selectors/layers.js":function(e,t,n){"use strict";n.d(t,"p",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return L})),n.d(t,"k",(function(){return j})),n.d(t,"u",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"l",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"m",(function(){return D})),n.d(t,"w",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"e",(function(){return x})),n.d(t,"v",(function(){return E})),n.d(t,"i",(function(){return P})),n.d(t,"f",(function(){return H})),n.d(t,"q",(function(){return A})),n.d(t,"t",(function(){return F})),n.d(t,"r",(function(){return I}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/utils/MapInfoUtils.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),s=n("./MapStore2/web/client/utils/SearchUtils.js"),i=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),u=n("./MapStore2/web/client/selectors/mapInfo.js"),d=n("./MapStore2/node_modules/lodash/lodash.js"),l=n("./MapStore2/web/client/utils/TOCUtils.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layers,n=e.config;return t&&Object(d.isArray)(t)?t:t&&t.flat||n&&n.layers||[]},p=function(e){return Object(d.head)(f(e).filter((function(e){return e&&e.visibility&&"background"===e.group})))},h=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.id===t})))},y=function(e,t){return Object(d.head)(f(e).filter((function(e){return e.name===t})))},M=function(e){return f(e).filter((function(e){return"background"===e.group}))},g=function(e){return Object(d.get)(e,"mapInfo.centerToMarker","")},b=Object(r.a)([f,u.c,function(e){return e.search&&e.search},g,function(e){return Object(d.get)(e,"additionallayers",[])},function(e){return e.annotations&&e.annotations.showMarker&&e.annotations.clickPoint}],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=a.filter((function(e){return"override"===e.actionType})),c=a.filter((function(e){return"overlay"===e.actionType})).map((function(e){return e.options})),_=e.map((function(e){var t=(Object(d.head)(l.filter((function(t){return t.id===e.id})))||{}).options;return t?m(m({},e),t):m({},e)}));if(_=_.concat(c),t){_.push(Object(o.h)("GetFeatureInfoHighLight",{features:t.features},void 0,{overrideOLStyle:!0,featuresCrs:t.featuresCrs,style:m(m({},s.a),{color:"#3388ff",weight:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}));var f="enabled"===r?Object(i.getNormalizedLatLon)(t.latlng):t.latlng;_.push(Object(o.h)("GetFeatureInfo",f))}if(u){var p="enabled"===r?Object(i.getNormalizedLatLon)(u.latlng):u.latlng;_.push(Object(o.h)("Annotations",p)),_.push(Object(o.h)("GetFeatureInfo",m({},p)))}if(n&&n.markerPosition){var h=Object(d.isObject)(n.style)&&n.style||{};_.push(Object(o.h)("GeoCoder",n.markerPosition,"marker",{overrideOLStyle:!0,style:m(m({},s.a),h)},n.markerLabel))}return _})),L=function(e){return e.layers&&e.layers.flat&&e.layers.groups||[]},j=function(e){return e.layers&&e.layers.flat&&e.layers.groups&&Object(a.denormalizeGroups)(e.layers.flat,e.layers.groups).groups||[]},v=function(e){return e.layers&&e.layers.selected||[]},Y=function(e){return v(e).map((function(t){return Object(d.find)(f(e),{id:t})}))},w=function(e){var t=Y(e)||[];return t&&t[0]},O=function(e){return e.layers&&e.layers.filter||""},k=function(e){return e.layers&&e.layers.settings||{expanded:!1,options:{opacity:1}}},D=function(e){return e.layers&&e.layers.layerMetadata||{expanded:!1,metadataRecord:{},maskLoading:!1}},S=function(e){return e.controls&&e.controls.layerdownload?{expanded:e.controls.layerdownload.enabled}:{expanded:!1}},T=function(e){return e.controls&&e.controls.backgroundSelector||{}},x=function(e){var t=T(e),n=M(e)||[];return t.currentLayer&&!Object(d.isEmpty)(t.currentLayer)?t.currentLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},E=function(e){var t=T(e),n=M(e)||[];return t.tempLayer&&!Object(d.isEmpty)(t.tempLayer)?t.tempLayer:Object(d.head)(n.filter((function(e){return e.visibility})))||{}},P=function(e,t){return(f(e)||[]).filter((function(e){return e&&e.dimensions&&Object(d.find)(Object(d.castArray)(e.dimensions),{name:t})}))},H=function(e){var t=k(e),n=f(e),r=j(e);return"layers"===t.nodeType&&Object(d.isArray)(n)&&Object(d.head)(n.filter((function(e){return e.id===t.node})))||"groups"===t.nodeType&&Object(d.isArray)(r)&&Object(d.head)(Object(l.b)(r,0,!0).filter((function(e){return e.id===t.node})))||{}},A=function(e){return f(e).filter(o.b)},F=function(e){return"Error"===(w(e)||{}).loadingError},I=function(e){return Y(e).filter(o.b)}},"./MapStore2/web/client/selectors/localConfig.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=function(e){return e.localConfig},a=function(e){return(o(e)||{}).monitorState},s=function(e){return function(t){return Object(r.get)(function(e){return Object(r.get)(o(e),"plugins")}(t),e)}},i=function(e){return Object(r.get)(o(e),"defaultMapOptions.floatingIdentifyDelay",500)}},"./MapStore2/web/client/selectors/locale.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.locale&&e.locale.current||"en-US"},s=function(e){return e.locale&&e.locale.messages||{}},i=Object(r.a)([a],(function(e){return Object(o.head)(e.split("-"))}))},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"k",(function(){return s})),n.d(t,"n",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"c",(function(){return _})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"o",(function(){return y})),n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"f",(function(){return j}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/node_modules/lodash/lodash.js"),s=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},i=Object(o.a)([s],(function(e){return e&&e.projection})),u=function(e){return Object(a.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(a.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(a.get)(s(e),"mapId")&&parseInt(Object(a.get)(s(e),"mapId"),10)||null}(e)},d=function(e){return Object(a.get)(s(e),"info")},l=function(e){var t=Object(a.get)(d(e),"canEdit");return void 0===t?Object(a.get)(e,"context.resource.canEdit"):t},c=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},m=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},_=function(e){return m(e).restrictedExtent},f=function(e){return m(e).crs},p=function(e){var t=m(e),n=i(e);return n&&Object(a.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(a.get)(t,"minZoom")},h=function(e){return Object(a.get)(function(e){return Object(a.get)(s(e),"limits")}(e),"minZoom")},y=Object(o.a)([function(e){return Object(a.get)(s(e),"resolutions")},i],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),M=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},g=function(e){return Object(a.get)(s(e),"eventListeners.mousemove",[])},b=function(e){return!!g(e).length},L=function(e){return g(e).includes("mouseposition")},j=function(e){return g(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/selectors/mapInfo.js":function(e,t,n){"use strict";n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"u",(function(){return y})),n.d(t,"p",(function(){return M})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"r",(function(){return j})),n.d(t,"g",(function(){return v})),n.d(t,"v",(function(){return Y})),n.d(t,"i",(function(){return w})),n.d(t,"k",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"t",(function(){return D})),n.d(t,"s",(function(){return S})),n.d(t,"l",(function(){return T})),n.d(t,"w",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"e",(function(){return H})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return C})),n.d(t,"q",(function(){return N}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/selectors/map.js"),s=n("./MapStore2/web/client/selectors/context.js"),i=n("./MapStore2/web/client/selectors/locale.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js"),d=n("./MapStore2/web/client/selectors/maptype.js"),l=n("./MapStore2/web/client/selectors/localConfig.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&t})),h=function(e){return Object(r.get)(e,"mapInfo.configuration.infoFormat","text/plain")},y=function(e){return Object(r.get)(e,"mapInfo.configuration.showEmptyMessageGFI",!0)},M=function(e){return Object(r.get)(e,"mapInfo.configuration",{})},g=function(e){return e&&e.mapInfo&&e.mapInfo.clickPoint},b=function(e){return e&&e.mapInfo&&e.mapInfo.clickLayer},L=function(e){return Object(r.get)(e,"mapInfo.itemId",null)},j=function(e){return Object(r.get)(e,"mapInfo.overrideParams",{})},v=function(e){return Object(r.get)(e,"mapInfo.filterNameList",[])},Y=Object(o.a)((function(e){return!Object(r.get)(e,"mapInfo.enabled",!1)}),(function(e){return Object(r.get)(e,"controls.measure.enabled")&&(Object(r.get)(e,"measurement.lineMeasureEnabled")||Object(r.get)(e,"measurement.areaMeasureEnabled")||Object(r.get)(e,"measurement.bearingMeasureEnabled"))}),(function(e){var t=Object(r.get)(e,"draw.drawStatus",!1);return t&&"clean"!==t&&"stop"!==t}),(function(e){return Object(r.get)(e,"annotations.editing")}),Object(s.b)("Identify"),(function(e,t,n,r,o){return e||!!t||n||!!r||!o})),w=Object(o.c)({format:h,map:a.k,point:g,currentLocale:i.b,maxItems:function(e){return Object(r.get)(e,"mapInfo.configuration.maxItems")}}),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.mapInfo&&e.mapInfo.highlight},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.mapInfo&&e.mapInfo.index},D=function(e){return e.mapInfo&&e.mapInfo.responses||[]},S=function(e){var t;return(null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.requests)||[]},T=function(e){var t;return null==e||null===(t=e.mapInfo)||void 0===t?void 0:t.loaded},x=Object(o.a)(S,D,h,a.f,(function(e,t,n,r){var o=Object(u.i)(n);return e.length===t.length&&o.getValidResponses(t,r)})),E=Object(o.a)(x,k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]})),P=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.features")},H=function(e){var t=E(e)||{};return Object(r.get)(t,"layerMetadata.featuresCrs")},A=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.style||t.geometry&&("Point"===t.geometry.type||"MultiPoint"===t.geometry.type)?e:Object(r.omit)(e,"radius")}},F=function(e){return function(t){return m(m({},t),{},{style:A(e)(t)})}},I=Object(o.a)(g,O,P,H,(function(e){return e&&e.mapInfo&&e.mapInfo.showMarker}),(function(e){return Object(r.get)(e,"mapInfo.highlightStyle",{color:"#3388ff",weight:4,radius:4,dashArray:"",fillColor:"#3388ff",fillOpacity:.2})}),(function(e,t,n,o,a,s){return a&&e?t?m(m({},e),{},{featuresCrs:o,features:n&&Object(r.isArray)(n)&&n.map(F(s))}):e:void 0})),C=function(e){var t;return null===(t=e.mapInfo)||void 0===t?void 0:t.currentEditFeatureQuery},N=function(e){var t,n;return void 0===(null===(t=e.mapInfo)||void 0===t||null===(n=t.configuration)||void 0===n?void 0:n.trigger)?"click":e.mapInfo.configuration.trigger}},"./MapStore2/web/client/selectors/maptype.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=function(e){return e&&e.maptype&&e.maptype.mapType||"leaflet"},o=function(e){return"cesium"===r(e)},a=function(e){return"openlayers"===r(e)}},"./MapStore2/web/client/selectors/timeline.js":function(e,t,n){"use strict";n.d(t,"j",(function(){return M})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return L})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"k",(function(){return D})),n.d(t,"m",(function(){return S})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return x})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return P})),n.d(t,"q",(function(){return H})),n.d(t,"b",(function(){return A})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return I}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=n("./MapStore2/web/client/utils/ReselectUtils.js"),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/TimeUtils.js"),u=n("./MapStore2/web/client/selectors/dimension.js"),d=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/selectors/layers.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:a,type:"range",content:"".concat(u," items")}]:Object(i.l)({start:d,end:l,duration:a}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]}(n,t)))}),[]).filter((function(e){return e&&e.start}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return j(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=p(n,3),o=r[0],a=r[1],s=r[2],u=Math.max.apply(Math,f(e.histogram.values)),d=Object(i.k)({start:o,end:a,duration:s});return e.histogram.values.map((function(e,t){return m(m({},d[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(i.i)(e.domain)?j(e.values||e.domain.split(","),t):n&&n.histogram?v(n,t):[]},w=Object(a.a)(u.i,M,(function(e){return Object(r.get)(e,"timeline.rangeData")}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(Object.keys(e).map((function(r){return Y(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(m({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(f(e),f(t))}),[]))})),O=function(e){return Object(r.get)(e,"timeline.loading")},k=function(e){return Object(r.get)(e,"timeline.selectedLayer")},D=function(e){return Object(l.g)(e,k(e))},S=function(e){return D(e)&&D(e).name},T=function(e){return D(e)&&D(e).dimensions&&Object(r.head)(D(e).dimensions.filter((function(e){return"time"===e.name})))},x=function(e){return Object(r.get)(T(e),"source.url")},E=Object(o.a)(u.a,u.h,(function(e,t){return{start:e,end:t}})),P=function(e){return Object(u.c)(e,k(e))},H=u.f,A=Object(o.a)(H,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),F=function(e){return!g(e)&&A(e)},I=function(e){return function(t){var n=(Object(d.k)(t)||{}).bbox;if(!n)return{};var o=Object(u.b)(e,"time")(t),a=Object(r.get)(o,"source.version"),i=Object.keys(n.bounds).reduce((function(e,t){return m(m({},e),{},_({},t,parseFloat(n.bounds[t])))}),{});if(!i||!L(t))return{};if("1.1"!==a){var l=Object(u.b)(e,"space")(t),c=Object(r.get)(l,"domain.CRS");if(!c||!i||!L(t))return{};var f=p(Object(s.reprojectBbox)(i,Object(d.n)(t),c),4),h=f[0],y=f[1],M=f[2],g=f[3];return M0;)if(!n[i=a.shift()])for(n[i]=!0,s.push(i),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n){var o=Object(r.get)(n,"mapSync")&&Object(r.get)(n,"dependenciesMap")||{},a=Object.keys(o).map((function(t){return p(o[t],e)}))||[];return[].concat(c(t),c(a.filter((function(e){return void 0!==e})).map((function(e){return[n.id,e.id]}))))}),[])},y=n("./MapStore2/web/client/selectors/dashboard.js"),M=n("./node_modules/reselect/es/index.js"),g=n("./MapStore2/web/client/utils/ReselectUtils.js");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t||!r&&n})),D=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].widgets"))},S=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].collapsed"))},T=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].maximized"))},x=Object(M.a)(D,S,T,(function(e,t,n){if(e){if(null!=n&&n.widget)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return t===n.widget.id}));if(t)return e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]}))}return e})),E=Object(M.a)(S,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),P=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},H=function(e){return(D(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"table"===t}))},A=Object(M.a)(P,H,o.k,s.a,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return"map"}))).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),F=Object(M.a)(P,H,o.k,s.a,O,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=a&&"map"!==a.widgetType?a&&a.layer||{}:a&&a.map&&a.map.layers||[];return{availableDependencies:e.map((function(e){var t=e.id;return"widgets[".concat(t,"].map")})).concat(Object(r.castArray)(n).map((function(){return n?"map":null}))).filter((function(e){return e})).concat(Object(r.castArray)(t).filter((function(){return-1===o.indexOf("viewer")})).filter((function(e){return Object(r.isArray)(s)||s.name===e.layer.name})).filter((function(e){return a&&a.id!==e.id})).map((function(e){var t=e.id;return"widgets[".concat(t,"]")})))}})),I=function(e){return Object(r.get)(v(e),"".concat(i.f))},C=function(e){return Object(r.get)(I(e),"active")},N=(Object(M.a)(D,(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=d(h(e)),n={base:190,range:340,options:{base:10,range:360,s:.67,v:.67}},r=Object(l.c)(n.base,n.range,t.length+1,n.options);return t.map((function(e,t){return{color:r[t],widgets:e}}))}(e)})),function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layouts"))}),R=function(e){return Object(r.get)(e,"widgets.containers[".concat(i.d,"].layout"))},W=function(e){return Object(r.get)(e,"widgets.tray")},G=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},z=function(e){return Object(r.get)(O(e),"filter")},U=Object(g.a)(Y,w,(function(e){return w(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.k)(e),t.slice(4)):t.match(i.A)?function(e,t){var n=i.A.exec(e),o=n&&n[2],a=p(e,t);return o?Object(r.get)(a,o):a}(t,D(e)):Object(r.get)(e,t)}))}),(function(e,t,n){return t.reduce((function(t,r,o){return L(L({},t),{},j({},Object.keys(e)[o],n[o]))}),{})}));Object(M.c)({widgets:D,layouts:N})},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,o=n("./node_modules/tinycolor2/tinycolor.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js"),i=function(e,t,n,o){var a=e;isNaN(parseFloat(e))&&(a=r.hexToHsv(e)[0]);var s=.5/(n-1),i=t/(n-1),u=[];1===n&&(s=.5,i=t/2);for(var d=0;d0&&void 0!==arguments[0]?arguments[0]:"red";return a()(e).toHexString()},d=function(e,t,n){var r=a()(e);return e&&r.setAlpha(Object(s.toNumber)(void 0!==t?t:r.getAlpha())).toRgbString()||n};r={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,n){return e instanceof Array?r.rgbToHex(e[0],e[1],e[2]):"#"+r.decToHex(e)+r.decToHex(t)+r.decToHex(n)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,n){if(e instanceof Array)return r.rgbToHsv(e[0],e[1],e[2]);var o,a,s,i,u,d=e/255,l=t/255,c=n/255;switch(o=Math.min(Math.min(d,l),c),s=(a=Math.max(Math.max(d,l),c))-o,a){case o:i=0;break;case d:i=60*(l-c)/s,l0){"#"===t[0]&&(t=e.substring(1));var n=r.hexToRgb(t);return r.rgbToHsv(n)}return null},hexToRgb:function(e){var t,n,r,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),n=o.charAt(2)+o.charAt(3),r=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(n,16),parseInt(r,16)]},colorToHexStr:u,colorToRgbaStr:d}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return x})),n.d(t,"getProjUrl",(function(){return P})),n.d(t,"determineCrs",(function(){return A})),n.d(t,"normalizePoint",(function(){return I})),n.d(t,"reproject",(function(){return N})),n.d(t,"reprojectExtent",(function(){return W})),n.d(t,"getPolygonFromExtent",(function(){return G})),n.d(t,"getExtentFromNormalized",(function(){return z})),n.d(t,"crsCodeTable",(function(){return U})),n.d(t,"setCrsLabels",(function(){return B})),n.d(t,"getUnits",(function(){return J})),n.d(t,"getProjectedBBox",(function(){return V})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return K})),n.d(t,"lineIntersectPolygon",(function(){return Q})),n.d(t,"normalizeLng",(function(){return Z})),n.d(t,"reprojectBbox",(function(){return X})),n.d(t,"bboxToFeatureGeometry",(function(){return $})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ae})),n.d(t,"filterCRSList",(function(){return se})),n.d(t,"calculateAzimuth",(function(){return ie})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return de})),n.d(t,"getGeoJSONExtent",(function(){return le})),n.d(t,"isValidExtent",(function(){return ce})),n.d(t,"calculateCircleCoordinates",(function(){return me})),n.d(t,"transformLineToArcs",(function(){return _e})),n.d(t,"transformArcsToLine",(function(){return fe})),n.d(t,"coordsOLtoLeaflet",(function(){return pe})),n.d(t,"mergeToPolyGeom",(function(){return he})),n.d(t,"getViewportGeometry",(function(){return ye})),n.d(t,"getExtentFromViewport",(function(){return Me})),n.d(t,"fetchProjRemotely",(function(){return ge})),n.d(t,"parseURN",(function(){return be})),n.d(t,"parseString",(function(){return Le})),n.d(t,"getWMSBoundingBox",(function(){return je})),n.d(t,"isSRSAllowed",(function(){return ve})),n.d(t,"getNormalizedLatLon",(function(){return Ye})),n.d(t,"isInsideVisibleArea",(function(){return we})),n.d(t,"centerToVisibleArea",(function(){return Oe})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return ke})),n.d(t,"roundCoord",(function(){return De})),n.d(t,"midpoint",(function(){return Se})),n.d(t,"pointObjectToArray",(function(){return Te})),n.d(t,"isPointInsideExtent",(function(){return xe})),n.d(t,"isBboxCompatible",(function(){return Ee})),n.d(t,"extractCrsFromURN",(function(){return Pe})),n.d(t,"makeNumericEPSG",(function(){return He})),n.d(t,"makeBboxFromOWS",(function(){return Ae}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),a=n("./MapStore2/web/client/libs/proj4.js"),s=n.n(a),i=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(i),d=n("./node_modules/object-assign/index.js"),l=n.n(d),c=n("./MapStore2/node_modules/lodash/lodash.js"),m=n("./node_modules/@turf/line-intersect/index.js"),_=n.n(m),f=n("./node_modules/@turf/polygon-to-linestring/index.js"),p=n.n(f),h=n("./node_modules/@turf/great-circle/main.es.js"),y=n("./node_modules/turf-point/index.js"),M=n.n(y),g=n("./node_modules/@turf/bbox-polygon/main.es.js"),b=n("./node_modules/@turf/boolean-overlap/main.es.js"),L=n("./node_modules/@turf/boolean-contains/main.es.js");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return E(e,t)}));var n}var P=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function H(e,t,n){if(null===e)return e;var r=Object(c.cloneDeep)(e);return"Feature"===e.type?r.geometry=H(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return H(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return H(e,t,n)})):t&&t(r),n&&n(r),r}function A(e){return"string"==typeof e||e instanceof String?s.a.defs(e)?new s.a.Proj(e):null:e}var F={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},I=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},C=function(e){var t=e;return Object(c.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(c.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},N=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&s.a.defs(t)?new s.a.Proj(t):null,a=n&&s.a.defs(n)?new s.a.Proj(n):null;if(o&&a){var i=Object(c.isArray)(e)?s.a.toPoint(e):s.a.toPoint([e.x,e.y]),u=l()({},t===n?C(i):s.a.transform(o,a,C(i)),{srs:n});return r?I(u):u}return null},R=["EPSG:900913","EPSG:4326","EPSG:3857"],W=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])})):[N([e[0],e[1]],"EPSG:4326",t),N([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[])},G=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(g.a)(e):null},z=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[N([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),N([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(w(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),i=Math.sin(n),u=o*s,d=o*i,l=a*s,c=a*i,m=e.x,_=e.y,f=m-u+c,p=m-u-c,h=m+u-c,y=m+u+c,M=_-d-l,g=_-d+l,b=_+d+l,L=_+d-l,j=S.createBBox(Math.min(f,p,h,y),Math.min(M,g,b,L),Math.max(f,p,h,y),Math.max(M,g,b,L));return j},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=A(r)),"string"==typeof o&&(o=A(o));var a=T(r,o);return H(e,(function(e){e.crs&&delete e.crs,e.coordinates=E(e.coordinates,(function(e){var t=O(e,2),n=t[0],r=t[1];return a.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],H(e,(function(e){E(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},Q=function(e,t){var n=p()(t).features[0];return 0!==_()(e,n).features.length},Z=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},X=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(c.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var a=[];for(var s in r)if(r.hasOwnProperty(s)){var i=S.reproject(r[s],t,n,o);if(!i)return null;var u=i.x,d=i.y;a.push(u),a.push(d)}return a},$=function(e){var t=Object(c.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,a=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,a],[o,a],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?S.getCompatibleSRS(n,t):n},oe=function(e,t){return t[S.getCompatibleSRS(e,t)]},ae=function(){var e={};for(var t in s.a.defs)s.a.defs.hasOwnProperty(t)&&(e[t]={label:F[t]||t});return e},se=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return l()({},-1===t.indexOf(r)?n:v(v({},n),{},Y({},r,e[r])))}),{}),a=r.map((function(e){return e.code})),s=Object.keys(n).reduce((function(e,t){return l()({},-1===a.indexOf(t)?e:v(v({},e),{},Y({},t,n[t])))}),{});return l()({},o,s)},ie=function(e,t,n){var r=S.reproject(e,n,"EPSG:4326"),o=S.reproject(t,n,"EPSG:4326"),a=r.x*Math.PI/180,s=r.y*Math.PI/180,i=o.x*Math.PI/180,u=o.y*Math.PI/180,d=i-a,l=Math.sin(d)*Math.cos(u),c=Math.cos(s)*Math.sin(u)-Math.sin(s)*Math.cos(u)*Math.cos(d);return(180*Math.atan2(l,c)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(x).indexOf(t)?x[t](e):0},de=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},le=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=S.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(c.chunk)(Object(c.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return S.getGeoJSONExtent(e.geometry)}return n},ce=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},me=function(e,t,n,r){var o,a,s,i=Math.PI*(1/n-.5);r&&(i+=r/180*Math.PI);for(var u=[[]],d=0;d1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(c.head)(e),Object(c.last)(e)]:e.length>t?[Object(c.head)(e)].concat(S.transformArcsToLine(Object(c.slice)(e,t))):[]},pe=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},he=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ye=function(e,t){if(Object(c.head)(R.filter((function(e){return e===t})))){var n=z(e,t),r=n.extent,o=n.isIDL,a=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var s=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:a,extent:r,center:[s=s>180?s-360:s,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:a[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var i=[e.minx,e.miny,e.maxx,e.maxy],u=[i[0],i[1]],d=[i[2],i[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],d[1]],d,[d[0],u[1]],u]],extent:i,center:[(i[0]+i[2])/2,(i[1]+i[3])/2]}},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=S.getViewportGeometry(t,n),a=o.extent;if(4===a.length)return S.reprojectBbox(a,n,r);var s=a.map((function(e){return e[2]-e[0]})),i=O(s,2),u=i[0],d=i[1];return u>d?S.reprojectBbox(a[0],n,r):S.reprojectBbox(a[1],n,r)},ge=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||P(n),null,{timeout:2e3})},be=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(c.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},Le=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},je=function(e,t){var n=t||"EPSG:3857",r=e&&Object(c.isArray)(e)&&Object(c.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&S.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(c.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},ve=function(e){return!!s.a.defs(e)},Ye=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:S.normalizeLng(n)}},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var s=S.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),i=v({left:0,right:0,top:0,bottom:0},n),u={minx:s[0]+i.left*r,miny:s[1]+i.bottom*r,maxx:s[2]-i.right*r,maxy:s[3]-i.top*r},d=S.getViewportGeometry(u,t.projection),l=4===d.extent.length?[w(d.extent)]:w(d.extent);return Object(c.head)(l.map((function(e){return a.x>=e[0]&&a.y>=e[1]&&a.x<=e[2]&&a.y<=e[3]})).filter((function(e){return e})))||!1},Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=S.getNormalizedLatLon(e),a=N([o.lng,o.lat],"EPSG:4326",t.projection),s=v({left:0,right:0,top:0,bottom:0},n),i={width:(t.size.width-s.right-s.left)*r,height:(t.size.height-s.top-s.bottom)*r},u={minx:a.x-i.width/2-s.left*r,miny:a.y-i.height/2-s.bottom*r,maxx:a.x+i.width/2+s.right*r,maxy:a.y+i.height/2+s.top*r},d=S.getViewportGeometry(u,t.projection);if(4===d.extent.length)return{pos:N([d.extent[0]+t.size.width/2*r,d.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(d.extent[0][2]-d.extent[0][0])>Math.abs(d.extent[1][2]-d.extent[1][0])){var l=N([d.extent[0][2]-t.size.width/2*r,d.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),c=v(v({},l),{},{x:l.x+(o.lng>l.x?360:0)});return{pos:c,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:N([d.extent[1][0]+t.size.width/2*r,d.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,a=Object(c.isArray)(n)?n:[n.x,n.y];if(Object(c.isNumber)(a[0])&&!isNaN(a[0])&&Object(c.isNumber)(a[1])&&!isNaN(a[1])&&Object(c.isNumber)(t.x)&&!isNaN(t.x)&&Object(c.isNumber)(t.y)&&!isNaN(t.y)){var s=Object(c.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,i=s&&(Object(c.isArray)(s)?s:[s.x,s.y]);return Object(c.isArray)(i)?Math.sqrt((a[0]-i[0])*(a[0]-i[0])+(a[1]-i[1])*(a[1]-i[1])):o}return o},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,a=e.maximumFractionDigits,s=void 0===a?0:a;return 0===s&&Math[n]?Math[n](o):o},Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(c.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(c.isArray)(t)?{x:t[0],y:t[1]}:t,a={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[a.x,a.y]:a},Te=function(e){return Object(c.isObject)(e)&&Object(c.isNumber)(e.x)&&Object(c.isNumber)(e.y)?[e.x,e.y]:e},xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(L.a)(G(t),M()([e.lng,e.lat]))},Ee=function(e,t){return Object(b.a)(e,t)||Object(L.a)(e,t)||Object(L.a)(t,e)},Pe=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},He=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=U[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ae=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var a=n.slice(),s=r.slice();n=[s[0],a[1]],r=[a[0],s[1]]}return[n[0],n[1],r[0],r[1]]};S={setCrsLabels:B,getUnits:J,reproject:N,getProjectedBBox:V,createBBox:q,reprojectGeoJson:K,lineIntersectPolygon:Q,normalizePoint:I,normalizeLng:Z,reprojectBbox:X,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ae,filterCRSList:se,calculateAzimuth:ie,calculateDistance:ue,FORMULAS:x,extendExtent:de,getGeoJSONExtent:le,isValidExtent:ce,calculateCircleCoordinates:me,transformLineToArcs:_e,transformArcsToLine:fe,coordsOLtoLeaflet:pe,mergeToPolyGeom:he,getViewportGeometry:ye,getProjUrl:P,getExtentFromViewport:Me,fetchProjRemotely:ge,parseURN:be,determineCrs:A,parseString:Le,getWMSBoundingBox:je,isSRSAllowed:ve,getNormalizedLatLon:Ye,isInsideVisibleArea:we,centerToVisibleArea:Oe,calculateCircleRadiusFromPixel:ke,roundCoord:De,midpoint:Se,pointObjectToArray:Te,getExtentFromNormalized:z,getPolygonFromExtent:G,isPointInsideExtent:xe,isBboxCompatible:Ee,extractCrsFromURN:Pe,crsCodeTable:U,makeNumericEPSG:He,makeBboxFromOWS:Ae},t.default=S},"./MapStore2/web/client/utils/FeatureInfoUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d}));var r={TEXT:"text/plain",HTML:"text/html",JSONP:"text/javascript",PROPERTIES:"application/json",JSON:"application/json",GML2:"application/vnd.ogc.gml",GML3:"application/vnd.ogc.gml/3.1.1",TEMPLATE:"application/json"},o={"text/plain":"TEXT","text/html":"HTML","text/javascript":"JSONP","application/json":"JSON","application/vnd.ogc.gml":"GML2","application/vnd.ogc.gml/3.1.1":"GML3"},a=/^[\s\S]*]*>([\s\S]*)<\/gml:featureMembers>[\s\S]*$/i,s=/^[\s\S]*]*>([\s\S]*)<\/body>[\s\S]*$/i;function i(e){if("string"==typeof e.response&&0!==e.response.indexOf("0}return!1}function u(e){if("string"==typeof e.response&&-1!==e.response.indexOf("0}return!1}var d={HTML:{getValidResponses:function(e,t){return t?e.filter(i):e},getNoValidResponses:function(e){return e.filter((function(e){return!i(e)}))}},TEXT:{getValidResponses:function(e,t){var n=e.filter((function(e){var t=e.response;return""!==t&&"string"==typeof t&&0!==t.indexOf("e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",endTag:""},fes:{startTag:"",endTag:""}},k=function(e,t,n,r){var o;if("><"===t){if(n.startDate&&n.endDate){var s=n.startDate.toISOString?n.startDate.toISOString():n.startDate,i=n.endDate.toISOString?n.endDate.toISOString():n.endDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+s+"<"+r+":UpperBoundary><"+r+":Literal>"+i+"")}}else if(n.startDate){var u=n.startDate.toISOString?n.startDate.toISOString():n.startDate;o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+u+"")}return o},D=function(e,t,n,r){var o;return Object(m.isNil)(n)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},S=function(e,t,n,r){var o;return L(n,t)&&(o="isNull"===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag):"="===t?a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+""):a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>*"+n+"*")),o},T=function(e,t,n,r){var o="";return L(n,t)&&"="===t&&""!==n&&(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n+"")),o},x=function(e,t,n,r){var o;if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":LowerBoundary><"+r+":Literal>"+n.lowBound+"<"+r+":UpperBoundary><"+r+":Literal>"+n.upBound+"")):o=a.ogcComparisonOperators["<="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.upBound+""):o=a.ogcComparisonOperators[">="](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+n.lowBound+"");else{var s=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(s)||(o=a.ogcComparisonOperators[t](r,O[r].startTag+e+O[r].endTag+"<"+r+":Literal>"+s+""))}return o},E=function(e,t){var n="";switch(e.type){case"date":n=k(e.attribute,e.operator,e.values,t);break;case"number":n=x(e.attribute,e.operator,e.values,t);break;case"string":n=S(e.attribute,e.operator,e.values,t);break;case"boolean":n=T(e.attribute,e.operator,e.values,t);break;case"list":if(e.values&&e.values.length>0){n=e.values.reduce((function(n,r){var o=null===r||"null"===r?"isNull":"=";return n+S(e.attribute,o,r,t)}),""),n=a.ogcLogicalOperators.OR(t,n)}}return n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.typeName,n=e.geometryName,r=e.cqlFilter,o=void 0===r?"INCLUDE":r;return"queryCollection('".concat(t,"', '").concat(n,"','").concat(b(o),"')")},H=function(e){return"collectGeometries(".concat(e,")")},A=function(e,t,n){var r,s,i,u,d=[];if(e.filterFields&&e.filterFields.length>0)""!==(r=e.groupFields&&e.groupFields.length>0?M.processOGCFilterGroup(e.groupFields[0],e,n):M.processOGCFilterFields(null,e,n))&&d.push(r);else if(e.simpleFilterFields&&e.simpleFilterFields.length>0){var l=a.ogcLogicalOperators.AND(n,e.simpleFilterFields.map((function(e){return E(e,n)})).join(""));d.push(l)}if(Object(m.isArray)(e.spatialField)?(u=Object(m.find)(e.spatialField,(function(e){return"BBOX"===e.operation})))||(i=e.spatialField):e.spatialField&&("BBOX"===e.spatialField.operation?u=e.spatialField:i=[e.spatialField]),u){if(Object(m.isArray)(u.geometry&&u.geometry.extent[0])){var c=u.geometry.extent.reduce((function(e,r){var o=Object.assign({},u);return u.geometry.extent=r,e+M.processOGCSpatialFilter(t,o,n)}),"");s=a.ogcLogicalOperators.OR(n,c)}d.push(s)}else if(i&&(i=i.filter((function(e){return e&&e.geometry&&e.operation}))).length>0){var _=i.map((function(e){return M.processOGCSpatialFilter(t,e,n)})).join("");s=i.length>1?a.ogcLogicalOperators[e.spatialFieldOperator||"AND"](n,_):_,d.push(s)}if(e.crossLayerFilter&&e.crossLayerFilter.operation){var f=h(h({},e.crossLayerFilter),{},{attribute:e.crossLayerFilter.attribute});Array.isArray()?f.forEach((function(e){return d.push(M.processOGCCrossLayerFilter(e,n))})):d.push(M.processOGCCrossLayerFilter(f,n))}return e.options&&e.options.cqlFilter&&d.push(g(e.options.cqlFilter,{filterNS:n,wfsVersion:t,gmlVersion:Object(o.wfsToGmlVersion)(t)})),d},F=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"EPSG:4326";try{r=t instanceof Object?t:JSON.parse(t)}catch(e){return e}var d=w(n||"2.0"),l="2.0"===d?"fes":"ogc",c=M.getGetFeatureBase(d,r.pagination,a,s,t&&t.options),m=M.toOGCFilterParts(r,d,l),_="";return m.length>0&&(_="<"+l+":Filter>",1===m.length?_+=m[0]:(_+="<"+l+":And>",m.forEach((function(e){_+=e})),_+=""),_+=""),c+=""),c+=_,i&&(c+=i.map((function(e){return O[l].startTag+e+O[l].endTag})).join("")),o&&o.sortBy&&o.sortOrder&&(c+="<"+l+":SortBy><"+l+":SortProperty>"+O[l].startTag+o.sortBy+O[l].endTag+"<"+l+":SortOrder>"+o.sortOrder+""),c+="
"},I=function(e,t,n){var r=M.processOGCFilterFields(e,t,n),o=M.findSubGroups(e,t.groupFields);return o.length>0&&o.forEach((function(e){r+=M.processOGCFilterGroup(e,t,n)})),""!==r?a.ogcLogicalOperators[e.logic](n,r):""},C=function(e,t,n){var r=e?t.filterFields.filter((function(t){return t.groupId===e.id&&L(t.value,t.operator)})):t.filterFields.filter((function(e){return L(e.value,e.operator)}));return r.length?r.reduce((function(e,t){var r;switch(t.type){case"date":case"date-time":case"time":r=k(t.attribute,t.operator,t.value,n);break;case"number":r=x(t.attribute,t.operator,t.value,n);break;case"string":r=S(t.attribute,t.operator,t.value,n);break;case"boolean":r=T(t.attribute,t.operator,t.value,n);break;case"list":r=D(t.attribute,t.operator,t.value,n)}return"isNull"===t.operator&&(r=S(t.attribute,t.operator,t.operator,n)),r&&e.push(r),e}),[]).join(""):""},N=function(e,t,n){return Object(r.pointElement)(e,t,Object(o.wfsToGmlVersion)(n))},R=function(e,t,n){return Object(r.polygonElement)(e,t,Object(o.wfsToGmlVersion)(n))},W=function(e,t,n){return Object(r.lineStringElement)(e,t,Object(o.wfsToGmlVersion)(n))},G=function(e,t){return Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t)},z=function(e,t,n){if(t.collectGeometries)return M.processOGCCrossLayerFilter(t);var s=O[n].startTag+t.attribute+O[n].endTag;switch(t.operation){case"INTERSECTS":case"DWITHIN":case"WITHIN":case"CONTAINS":s+=Object(r.processOGCGeometry)(Object(o.wfsToGmlVersion)(e),t.geometry),"DWITHIN"===t.operation&&(s+="<"+n+':Distance units="m">'+(t.geometry.distance||0)+"");break;case"BBOX":var i=t.geometry.extent[0]+" "+t.geometry.extent[1],u=t.geometry.extent[2]+" "+t.geometry.extent[3];s+=''+i+""+u+""}return a.ogcSpatialOperators[t.operation](n,s)},U=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=w(e),s="";break;case"1.1.0":s+=t&&t.maxFeatures?'maxFeatures="'+t.maxFeatures+'" ':"",s=n?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"')+">";break;default:s+=t&&t.maxFeatures?'count="'+t.maxFeatures+'" ':"",s=n&&!t?s+' resultType="hits"':s,s+='service="WFS" version="'+a+'" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+(o.noSchemaLocation?"":'xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"')+">"}return s},B=function(e){return Object(m.get)(e,"collectGeometries.queryCollection.cqlFilter")||(Object(m.get)(e,"collectGeometries.queryCollection.filterFields")||[]).length>0&&(Object(m.get)(e,"collectGeometries.queryCollection.groupFields")||[]).length>0&&M.toCQLFilter(e.collectGeometries.queryCollection)||"INCLUDE"},J=function(e,t){var n=t||"ogc",r=O[n].startTag+e.attribute+O[n].endTag;if(e.collectGeometries){var o=M.getCrossLayerCqlFilter(e);r+=''+"".concat(e.collectGeometries.queryCollection.typeName,"")+"".concat(e.collectGeometries.queryCollection.geometryName,"")+"")+""}return"DWITHIN"===e.operation&&(r+="<"+n+':Distance units="m">'+(e.distance||0)+""),a.ogcSpatialOperators[e.operation](n,r)},V=function(e){var t;try{t=e instanceof Object?e:JSON.parse(e)}catch(e){return e}var n,r,o=[];if(t.filterFields&&t.filterFields.length>0)(n=M.processCQLFilterGroup(t.groupFields[0],t))&&o.push(n);else if(t.simpleFilterFields&&t.simpleFilterFields.length>0){var a=t.simpleFilterFields.reduce((function(e,t){var n=e,r=M.processCQLSimpleFilterField(t);return!1!==r&&(n=e.length>0?e+" AND ("+r+")":"("+r+")"),n}),"");a=a.length>0?a:"INCLUDE",o.push(a)}if(t.spatialField&&(r=M.processCQLSpatialFilter(t))&&o.push(r),t.crossLayerFilter){var s=t.crossLayerFilter,i=s.operation,u=s.attribute,d=s.collectGeometries&&s.collectGeometries.queryCollection;if(i&&u&&d){var l=d.typeName,c=d.geometryName,m=M.getCrossLayerCqlFilter(s),_=H(P({typeName:l,geometryName:c,cqlFilter:m}));o.push("".concat(i,"(").concat(u,",").concat(_,")"))}}return o.length?"("+(o.length>1?o.join(") AND ("):o[0])+")":null},q=function(e,t){var n="NOR"===e.logic?h(h({},e),{},{logic:"AND",negateAll:!0}):e,r=M.processCQLFilterFields(n,t),o=M.findSubGroups(n,t.groupFields);if(o.length>0){var a=o.map((function(e){return(n.negateAll?"NOT (":"(")+M.processCQLFilterGroup(e,t)+")"})).join(" "+n.logic+" ");return r?[r,a].join(" "+n.logic+" "):a}return r},K=function(e,t){var n=t+"(";switch(t){case"Point":n+=e.join(" ");break;case"MultiPoint":e.forEach((function(t,r){n+=t.join(" "),n+=r<"===t?n.startDate&&n.endDate&&(r="("+e+">='"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"' AND "+e+"<='"+(n.endDate.toISOString?n.endDate.toISOString():n.endDate)+"')"):n.startDate&&(r=e+t+"'"+(n.startDate.toISOString?n.startDate.toISOString():n.startDate)+"'");return r},X=function(e,t,n){var r,o=v(e);if(!Object(m.isNil)(n))if("isNull"===t)r="isNull("+o+")=true";else if("="===t){r=o+t+("'"+b(n)+"'")}else if("ilike"===t){r="strToLowerCase("+o+") LIKE "+("'%"+b(n).toLowerCase()+"%'")}else{r=o+" LIKE "+("'%"+b(n)+"%'")}return r},$=function(e,t,n){var r="";Object(m.isNil)(n)||""===n||"="===t&&(r='"'+e+'"'+t+("'"+n+"'"));return r},ee=function(e,t,n){var r,o=v(e);if("><"===t)Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound||null!==n.upBound&&void 0!==n.upBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null!==n.lowBound&&void 0!==n.lowBound?Object(m.isNil)(n)||null===n.upBound||void 0===n.upBound||null===n.lowBound||void 0===n.lowBound||(r="("+o+">='"+n.lowBound+"' AND "+o+"<='"+n.upBound+"')"):r="("+o+"<='"+n.upBound+"')":r="("+o+">='"+n.lowBound+"')";else{var a=Object(m.isNil)(n)||null===n.lowBound||void 0===n.lowBound?n:n.lowBound;Object(m.isNil)(a)||(r=o+" "+t+" '"+a+"'")}return r},te=function(e,t){return t.filter((function(t){return t.groupId===e.id}))},ne=function(e,t,n){return M.cqlStringField(e,t,n)},re=function(e,t){var n=t.filterFields.filter((function(t){return t.groupId===e.id})),r=[];return n&&(n.forEach((function(t){var n;switch(t.type){case"date":case"time":case"date-time":n=M.cqlDateField(t.attribute,t.operator,t.value);break;case"number":n=M.cqlNumberField(t.attribute,t.operator,t.value);break;case"string":n=M.cqlStringField(t.attribute,t.operator,t.value);break;case"boolean":n=M.cqlBooleanField(t.attribute,t.operator,t.value);break;case"list":n=M.cqlListField(t.attribute,t.operator,t.value)}n&&r.push(e.negateAll?"NOT ("+n+")":n)})),r=r.join(" "+e.logic+" ")),r},oe=function(e){var t=!1;switch(e.type){case"date":t=M.cqlDateField(e.attribute,e.operator,e.values);break;case"number":t=M.cqlNumberField(e.attribute,e.operator,e.values);break;case"string":t=M.cqlStringField(e.attribute,e.operator,e.values);break;case"boolean":t=M.cqlBooleanField(e.attribute,e.operator,e.values);break;case"list":if(e.values.length!==e.optionsValues.length){var n=!1,r=e.values.reduce((function(e,t){return null===t||"null"===t?n=!0:e.push("'"+t+"'"),e}),[]);t=r.length>0?e.attribute+" IN("+r.join(",")+")":t,n&&(t=t?t+" OR isNull("+e.attribute+")=true":"isNull("+e.attribute+")=true")}}return!!(t&&t.length>0)&&t},ae=function(e,t){return'\n \n ')},se=function(e,t,n){var r=M.toOGCFilter(e,t,n),o=r.search("<".concat(M.nsplaceholder,":Filter>"));if(-1!==o){var a=r.search("");r=r.substr(o,a-o)}else r="";return''.concat(e,"").concat(r,'circle#0000FF20')},ie=function(e,t){return"string"==typeof e?e:"OGC"===e.filterType?M.toOGCFilter(e.featureTypeName,h(h({},e),{},{options:t}),e.ogcVersion,e.sortOptions,e.hits):M.toCQLFilter(e)},ue=function(e){return"ilike"===e||"like"===e},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterFields,n=void 0===t?[]:t,r=e.spatialField,o=void 0===r?{}:r,a=e.crossLayerFilter,s=void 0===a?{}:a;return!(n.filter((function(e){return e.value||0===e.value})).length>0||o.geometry||s&&s.attribute&&s.operation)},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filterFields&&e.filterFields.length>0||e.simpleFilterFields&&e.simpleFilterFields.length>0||e.spatialField&&e.spatialField.geometry&&e.spatialField.operation||Object(m.isArray)(e.spatialField)&&Object(m.findIndex)(e.spatialField,(function(e){return e.operation&&e.geometry}))>-1||e.crossLayerFilter&&e.crossLayerFilter.collectGeometries&&e.crossLayerFilter.collectGeometries.queryCollection&&e.crossLayerFilter.collectGeometries.queryCollection.geometryName&&e.crossLayerFilter.collectGeometries.queryCollection.typeName},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"AND",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"AND",r={id:(new Date).getTime(),index:0,logic:t};return e.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.filterFields,a=void 0===o?[]:o,s=t.groupFields,i=void 0===s?[]:s,u=t.spatialField,d=arguments.length>2?arguments[2]:void 0;return{groupFields:e.groupFields.concat(a.length>0&&i.map((function(e){return{groupId:0===e.index&&r.id||"".concat(e.groupId,"_").concat(d),logic:e.logic,id:"".concat(e.id,"_").concat(d),index:1+e.index}}))||[]),filterFields:e.filterFields.concat(a.map((function(e){return h(h({},e),{},{groupId:"".concat(e.groupId,"_").concat(d)})}))),spatialField:ce(e.spatialField,u),spatialFieldOperator:n}}),{groupFields:[r],filterFields:[],spatialField:[]})},_e=function(e,t){var n,r=e.spatialField.geometry.projection,o=e.spatialField.geometry.center,a=e.spatialField.geometry.radius,s=Object(c.reprojectGeoJson)(e.spatialField.geometry,e.spatialField.geometry.projection||"EPSG:3857",t).coordinates,i=o&&[(n=Object(c.reproject)(o,r,t)).x,n.y],u=a&&Object(c.reproject)([a,0],r,t).x;return h(h({},e),{},{spatialField:h(h({},e.spatialField),{},{geometry:h(h({},e.spatialField.geometry),{},{center:i,radius:u,coordinates:s,projection:t})})})},fe=function(e,t){return e&&e.spatialField&&e.spatialField.geometry&&e.spatialField.geometry.coordinates&&e.spatialField.geometry.coordinates[0]&&(e.spatialField.projection||"EPSG:3857")!==t?t?M.reprojectFilterInNativeCrs(e,t):h(h({},e),{},{spatialField:void 0}):e},pe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nsPlaceholder,n=void 0===t?"ogc":t,r=e.ogcVersion,a=void 0===r?"2.0":r,i=e.addXmlnsToRoot,d=void 0!==i&&i,c=e.xmlnsToAdd,f=void 0===c?[]:c,p=l()({filterNS:n,wfsVersion:a,gmlVersion:Object(o.wfsToGmlVersion)(a)}),h=u()(p),y=arguments.length,M=new Array(y>1?y-1:0),g=1;g");return"".concat(b.slice(0,L)).concat(f.length>0?" ".concat(f.join(" ")):"").concat(b.slice(L))}return b};M={processOGCFilterGroup:I,processOGCFilterFields:C,processOGCCrossLayerFilter:J,getGetFeatureBase:U,toOGCFilterParts:A,findSubGroups:te,toCQLFilter:V,getCrossLayerCqlFilter:B,processCQLFilterGroup:q,processCQLSimpleFilterField:oe,processCQLSpatialFilter:Q,processCQLFilterFields:re,getCQLGeometryElement:K,cqlStringField:X,cqlDateField:Z,cqlNumberField:ee,cqlBooleanField:$,cqlListField:ne,toOGCFilter:F,reprojectFilterInNativeCrs:_e,processOGCSpatialFilter:z,mergeFiltersToOGC:pe}},"./MapStore2/web/client/utils/LayerLocalizationUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"generateEnvString",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length?e.map((function(e){var t=e.name,n=e.value;return"".concat(t,":").concat(n)})).join(";"):""}},"./MapStore2/web/client/utils/MapInfoUtils.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return T})),n.d(t,"g",(function(){return x})),n.d(t,"i",(function(){return E})),n.d(t,"k",(function(){return P})),n.d(t,"b",(function(){return H})),n.d(t,"j",(function(){return F})),n.d(t,"c",(function(){return I}));var r,o=n("./MapStore2/web/client/utils/FeatureInfoUtils.js"),a=n("./node_modules/turf-point-on-surface/index.js"),s=n.n(a),i=n("./MapStore2/node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),d=n.n(u),l=n("./MapStore2/web/client/components/data/identify/viewers/JSONViewer.jsx"),c=n("./MapStore2/web/client/components/data/identify/viewers/HTMLViewer.jsx"),m=n("./MapStore2/web/client/components/data/identify/viewers/TextViewer.jsx"),_=n("./MapStore2/web/client/utils/mapinfo/wfs.js"),f=n.n(_),p=n("./MapStore2/web/client/utils/mapinfo/wms.js"),h=n.n(p),y=n("./MapStore2/web/client/utils/mapinfo/wmts.js"),M=n.n(y),g=n("./MapStore2/web/client/utils/mapinfo/vector.js"),b=n.n(g);function L(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];return n.reduce((function(n,a){if(a){var s;a.queryParams&&a.queryParams.hasOwnProperty("info_format")&&(s=a.queryParams.info_format),a.queryParams&&a.queryParams.hasOwnProperty("outputFormat")&&(s=a.queryParams.outputFormat);var i=(o.c[a.format||o.b[s]||o.b[e]]||t).getValidResponses([a],r);return[].concat(L(n),L(i))}return L(n)}),[])},getNoValidResponses:function(n){return n.reduce((function(n,r){if(r){var a;r.queryParams&&r.queryParams.hasOwnProperty("info_format")&&(a=r.queryParams.info_format),r.queryParams&&r.queryParams.hasOwnProperty("outputFormat")&&(a=r.queryParams.outputFormat);var s=(o.c[r.format||o.b[a]||o.b[e]]||t).getNoValidResponses([r]);return[].concat(L(n),L(s))}return L(n)}),[])}}},P=function(){var e;return w(e={},o.a.PROPERTIES,l.a),w(e,o.a.JSON,l.a),w(e,o.a.HTML,c.a),w(e,o.a.TEXT,m.a),e},H=function(e){var t;return e.visibility&&r.services[e.type]&&(void 0===e.queryable||e.queryable)&&"background"!==e.group&&"HIDDEN"!==(null==e||null===(t=e.featureInfo)||void 0===t?void 0:t.format)},A={wfs:f.a,wms:h.a,wmts:M.a,vector:b.a},F=function(e){return r.VIEWERS[e]?r.VIEWERS[e]:null},I=function(e,t,n){var r=t||[],o=n||[];return Object.keys(e).reduce((function(t,n){if("params"!==n&&-1!==r.indexOf(n))t[n]=e[n];else if("params"===n&&o.length>0){var a=e[n];Object.keys(a).forEach((function(e){-1===Object(i.findIndex)(o,(function(t){return t===e}))&&(t[e]=a[e])}),{})}return t}),{})};r={AVAILABLE_FORMAT:["TEXT","PROPERTIES","HTML","TEMPLATE"],getAvailableInfoFormatLabels:function(){return Object.keys(r.getAvailableInfoFormat())},getAvailableInfoFormat:O,getDefaultInfoFormatValue:D,clickedPointToGeoJson:function(e){if(!e)return[];if("Feature"===e.type){var t=[s()(e)];return e&&e.geometry&&"Point"!==e.geometry.type&&t.push(e),t}return void 0===e.lng||void 0===e.lat?e.features||[]:[].concat(L(e.features||[]),[{id:"get-feature-info-point",type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.lng),parseFloat(e.lat)]},style:[{iconUrl:d.a,iconAnchor:[12,41],iconSize:[25,41]}]}])},services:A,getDefaultInfoFormatValueFromLayer:function(e,t){return e.featureInfo&&e.featureInfo.format&&o.a[e.featureInfo.format]||t.format||r.getDefaultInfoFormatValue()},getLayerFeatureInfoViewer:function(e){return e.featureInfo&&e.featureInfo.viewer?e.featureInfo.viewer:{}},getLayerFeatureInfo:function(e){return e&&e.featureInfo&&Y({},e.featureInfo)||{}},VIEWERS:{}}},"./MapStore2/web/client/utils/MapUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_SCREEN_DPI",(function(){return M})),n.d(t,"METERS_PER_UNIT",(function(){return g})),n.d(t,"GOOGLE_MERCATOR",(function(){return b})),n.d(t,"EXTENT_TO_ZOOM_HOOK",(function(){return L})),n.d(t,"ZOOM_TO_EXTENT_HOOK",(function(){return j})),n.d(t,"RESOLUTIONS_HOOK",(function(){return v})),n.d(t,"RESOLUTION_HOOK",(function(){return Y})),n.d(t,"COMPUTE_BBOX_HOOK",(function(){return w})),n.d(t,"GET_PIXEL_FROM_COORDINATES_HOOK",(function(){return O})),n.d(t,"GET_COORDINATES_FROM_PIXEL_HOOK",(function(){return k})),n.d(t,"registerHook",(function(){return S})),n.d(t,"getHook",(function(){return T})),n.d(t,"executeHook",(function(){return x})),n.d(t,"clearHooks",(function(){return E})),n.d(t,"dpi2dpm",(function(){return P})),n.d(t,"dpi2dpu",(function(){return H})),n.d(t,"getSphericalMercatorScale",(function(){return A})),n.d(t,"getGoogleMercatorScale",(function(){return F})),n.d(t,"getSphericalMercatorScales",(function(){return I})),n.d(t,"getGoogleMercatorScales",(function(){return C})),n.d(t,"getResolutionsForScales",(function(){return N})),n.d(t,"getGoogleMercatorResolutions",(function(){return R})),n.d(t,"getResolutions",(function(){return W})),n.d(t,"getScales",(function(){return G})),n.d(t,"defaultGetZoomForExtent",(function(){return z})),n.d(t,"getZoomForExtent",(function(){return U})),n.d(t,"getCurrentResolution",(function(){return B})),n.d(t,"getCenterForExtent",(function(){return J})),n.d(t,"getBbox",(function(){return V})),n.d(t,"isNearlyEqual",(function(){return q})),n.d(t,"mapUpdated",(function(){return K})),n.d(t,"transformExtent",(function(){return Q})),n.d(t,"groupSaveFormatted",(function(){return Z})),n.d(t,"saveMapConfiguration",(function(){return X})),n.d(t,"generateNewUUIDs",(function(){return $})),n.d(t,"mergeMapConfigs",(function(){return ee})),n.d(t,"addRootParentGroup",(function(){return te})),n.d(t,"isSimpleGeomType",(function(){return ne})),n.d(t,"getSimpleGeomType",(function(){return re})),n.d(t,"getIdFromUri",(function(){return oe})),n.d(t,"parseLayoutValue",(function(){return ae})),n.d(t,"prepareMapObjectToCompare",(function(){return se})),n.d(t,"updateObjectFieldKey",(function(){return ie})),n.d(t,"compareMapChanges",(function(){return ue})),n.d(t,"createRegisterHooks",(function(){return de}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/uuid/v1.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),u=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./node_modules/object-assign/index.js"),l=n.n(d);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 m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.diff?e:{diff:r,zoom:n}}),{diff:Number.POSITIVE_INFINITY,zoom:0}).zoom;return Math.max(0,Math.min(c,r))}function U(e,t,n,r,o){return T("EXTENT_TO_ZOOM_HOOK")?T("EXTENT_TO_ZOOM_HOOK")(e,t,n,r,o):z(e,t,n,r,o,T("RESOLUTIONS_HOOK")?T("RESOLUTIONS_HOOK")(e,t,n,r,o,P(o||M)):null)}function B(e,t,n,r){return T("RESOLUTION_HOOK")?T("RESOLUTION_HOOK")(e,t,n,r):R(t,n,r)[e]}function J(e,t){var n=(e[2]-e[0])/2,r=(e[3]-e[1])/2;return{x:e[0]+n,y:e[1]+r,crs:t}}function V(e,t){return x("COMPUTE_BBOX_HOOK",(function(n){return n(e,t)}))}var q=function(e,t){return void 0!==e&&void 0!==t&&e.toFixed(12)-t.toFixed(12)==0};function K(e,t){var n,o,a,s;return!(!e||Object(r.isEmpty)(e)||!t||Object(r.isEmpty)(t))&&(!(q(null==t||null===(n=t.center)||void 0===n?void 0:n.x,null==e||null===(o=e.center)||void 0===o?void 0:o.x)&&q(null==t||null===(a=t.center)||void 0===a?void 0:a.y,null==e||null===(s=e.center)||void 0===s?void 0:s.y))||(null==t?void 0:t.zoom)!==(null==e?void 0:e.zoom))}function Q(e,t,n,r){var o=Object(s.getUnits)(e);return"ft"===o?{width:n/g.ft,height:r/g.ft}:"us-ft"===o?{width:n/g["us-ft"],height:r/g["us-ft"]}:"degrees"===o?{width:n/(111132.92-559.82*Math.cos(2*t.y)+1.175*Math.cos(4*t.y)),height:r/(111412.84*Math.cos(t.y)-93.5*Math.cos(3*t.y))}:{width:n,height:r}}var Z=function(e){return{id:e.id,title:e.title,description:e.description,tooltipOptions:e.tooltipOptions,tooltipPlacement:e.tooltipPlacement,expanded:e.expanded}};function X(e,t,n,o,a,s,d){var c={center:e.center,maxExtent:e.maxExtent,projection:e.projection,units:e.units,mapInfoControl:e.mapInfoControl,zoom:e.zoom,mapOptions:e.mapOptions||{}},m=t.map((function(e){return Object(u.saveLayer)(e)})),_=n.reduce((function(e,t){return e.concat(Object(u.getGroupNodes)(t))}),[].concat(n.map((function(e){return e.id})))).map((function(e){var t=Object(u.getNode)(n,e);return t&&t.nodes?Z(t):null})).filter((function(e){return e})),f=o.filter((function(e){return!!e.thumbnail})),p=Object(u.extractSourcesFromLayers)(m),y=m.map((function(e){return l()({},e,{tileMatrixSet:e.tileMatrixSet&&e.tileMatrixSet.length>0,matrixIds:e.matrixIds&&Object.keys(e.matrixIds)})})),M=Object(r.findIndex)(y,(function(e){return"annotations"===e.id}));if(-1!==M){var g=y[M].features.map((function(e){return"FeatureCollection"===e.type?h(h({},e),{},{features:e.features.map((function(e){return e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):e}))}):e.properties.geometryGeodesic?Object(i.e)("properties.geometryGeodesic",null,e):{}}));y[M]=Object(i.e)("features",g,y[M])}return h({version:2,map:l()({},c,{layers:y,groups:_,backgrounds:f,text_search_config:a,bookmark_search_config:s},!Object(r.isEmpty)(p)&&{sources:p}||{})},d)}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(r.cloneDeep)(e),n=h(h({},Object(r.get)(e,"map.layers",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,"annotations"===t.id?t.id:a()()))}),{})),Object(r.get)(e,"widgetsConfig.widgets",[]).reduce((function(e,t){return h(h({},e),{},y({},t.id,a()()))}),{}));return Object(i.e)("map.backgrounds",Object(r.get)(e,"map.backgrounds",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),Object(i.e)("widgetsConfig",{collapsed:Object(r.mapValues)(Object(r.mapKeys)(Object(r.get)(e,"widgetsConfig.collapsed",{}),(function(e,t){return n[t]})),(function(e){return h(h({},e),{},{layouts:Object(r.mapValues)(e.layouts,(function(e){return h(h({},e),{},{i:n[e.i]})}))})})),layouts:Object(r.mapValues)(Object(r.get)(e,"widgetsConfig.layouts",{}),(function(e){return e.map((function(e){return h(h({},e),{},{i:n[e.i]})}))})),widgets:Object(r.get)(e,"widgetsConfig.widgets",[]).map((function(e){return h(h({},e),{},{id:n[e.id],layer:h(h({},Object(r.get)(e,"layer",{})),{},{id:n[Object(r.get)(e,"layer.id")]})})}))},Object(i.e)("map.layers",Object(r.get)(e,"map.layers",[]).map((function(e){return h(h({},e),{},{id:n[e.id]})})),t)))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return Object(r.pick)(e,Object(r.keys)(e).filter((function(t){return void 0!==e[t]})))}))},o=$(t),a=[].concat(_(Object(r.get)(e,"map.backgrounds",[])),_(Object(r.get)(o,"map.backgrounds",[]))),s=n(Object(r.get)(e,"map.layers",[])),i=n(Object(r.get)(o,"map.layers",[])),u=Object(r.find)(s,(function(e){return"annotations"===e.id})),d=Object(r.find)(i,(function(e){return"annotations"===e.id})),l=[].concat(_(i.filter((function(e){return"annotations"!==e.id}))),_(s.filter((function(e){return"annotations"!==e.id}))),_(u||d?[h(h(h({},u||{}),d||{}),{},{features:[].concat(_(Object(r.get)(u,"features",[])),_(Object(r.get)(d,"features",[])))})]:[])),c=l.filter((function(e){return"background"===e.group})),m=Object(r.findIndex)(c,(function(e){return e.visibility})),f=Object(r.get)(e,"map.sources",{}),p=Object(r.get)(o,"map.sources",{}),M=h(h({},f),p),g=Object(r.get)(e,"widgetsConfig",{}),b=Object(r.get)(o,"widgetsConfig",{});return h(h(h({},o),e),{},{catalogServices:h(h({},Object(r.get)(e,"catalogServices",{})),{},{services:h(h({},Object(r.get)(e,"catalogServices.services",{})),Object(r.get)(o,"catalogServices.services",{}))}),map:h(h(h({},o.map),e.map),{},{backgrounds:a,groups:Object(r.uniqWith)([].concat(_(Object(r.get)(e,"map.groups",[])),_(Object(r.get)(o,"map.groups",[]))),(function(e,t){return e.id===t.id})),layers:[].concat(_(c.slice(0,m+1)),_(c.slice(m+1).map((function(e){return h(h({},e),{},{visibility:!1})}))),_(l.filter((function(e){return"background"!==e.group})))),sources:Object(r.isEmpty)(M)?void 0:M}),widgetsConfig:{collapsed:h(h({},g.collapsed),b.collapsed),layouts:Object(r.uniq)([].concat(_(Object(r.keys)(g.layouts)),_(Object(r.keys)(b.layouts)))).reduce((function(e,t){return h(h({},e),{},y({},t,[].concat(_(Object(r.get)(g,"layouts.".concat(t),[])),_(Object(r.get)(b,"layouts.".concat(t),[])))))}),{}),widgets:[].concat(_(Object(r.get)(g,"widgets",[])),_(Object(r.get)(b,"widgets",[])))},timelineData:h(h({},Object(r.get)(e,"timelineData",{})),Object(r.get)(o,"timelineData",{})),dimensionData:h(h({},Object(r.get)(e,"dimensionData",{})),Object(r.get)(o,"dimensionData",{}))})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RootGroup",n=Object(r.get)(e,"map.groups",[]),o=n.filter((function(e){return"Default"!==e.id})),s=Object(r.find)(n,(function(e){return"Default"===e.id})),i=s&&{id:a()(),title:t,expanded:s.expanded},u=s?[].concat(_(o.map((function(e){var t=e.id,n=m(e,["id"]);return h({id:"".concat(i.id,".").concat(t)},n)}))),[i]):o;return h(h({},e),{},{map:h(h({},e.map),{},{groups:u,layers:Object(r.get)(e,"map.layers",[]).map((function(e){var t,n=e.group;return h(h({},m(e,["group"])),{},{group:!s||"background"===n||"Default"!==n&&n?s&&(null===(t=Object(r.find)(u,(function(e){var t=e.id;return t.slice(t.indexOf(".")+1)===n})))||void 0===t?void 0:t.id)||n:i.id})}))})})};function ne(e){switch(e){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":case"Text":return!1;case"Point":case"Circle":case"LineString":case"Polygon":default:return!0}}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point";switch(e){case"Point":case"LineString":case"Polygon":case"Circle":return e;case"MultiPoint":case"Marker":return"Point";case"MultiLineString":return"LineString";case"MultiPolygon":return"Polygon";case"GeometryCollection":return"GeometryCollection";case"Text":return"Point";default:return e}}var oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/data\/(\d+)/,n=decodeURIComponent(e),r=t.exec(n);return r&&r.length&&r.length>1?r[1]:null},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.isString)(e)&&-1!==e.indexOf("%")?parseFloat(Object(r.trim)(e))*t/100:Object(r.isNumber)(e)?e:0},se=function e(t){var n=["apiKey","time","args","fixed"],r=function(e){return n.reduce((function(t,n){return t||e===n}),!1)};Object.keys(t).forEach((function(n){var o=t[n],a=c(o);"object"!==a||null===o||r(n)?"undefined"!==a&&o&&!r(n)||delete t[n]:(e(o),Object.keys(o).length||delete t[n])}))},ie=function(e,t,n){e[t]&&(Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t])},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["map.layers","map.backgrounds","map.text_search_config","map.bookmark_search_config","map.text_serch_config","map.zoom","widgetsConfig"],o=Object(r.pick)(Object(r.cloneDeep)(e),n),a=Object(r.pick)(Object(r.cloneDeep)(t),n);return ie(o.map,"text_serch_config","text_search_config"),ie(a.map,"text_serch_config","text_search_config"),se(o),se(a),Object(r.isEqual)(o,a)},de=function(){var e={};return{registerHook:function(t,n){e[t]=n},getHook:function(t){return e[t]},executeHook:function(t,n,r){var o=e[t];return o?n(o):r?r():null}}};t.default={createRegisterHooks:de,EXTENT_TO_ZOOM_HOOK:L,RESOLUTIONS_HOOK:v,RESOLUTION_HOOK:Y,COMPUTE_BBOX_HOOK:w,GET_PIXEL_FROM_COORDINATES_HOOK:O,GET_COORDINATES_FROM_PIXEL_HOOK:k,DEFAULT_SCREEN_DPI:M,ZOOM_TO_EXTENT_HOOK:j,registerHook:S,getHook:T,dpi2dpm:P,getSphericalMercatorScales:I,getSphericalMercatorScale:A,getGoogleMercatorScales:C,getGoogleMercatorResolutions:R,getGoogleMercatorScale:F,getResolutionsForScales:N,getZoomForExtent:U,defaultGetZoomForExtent:z,getCenterForExtent:J,getResolutions:W,getScales:G,getBbox:V,mapUpdated:K,getCurrentResolution:B,transformExtent:Q,saveMapConfiguration:X,generateNewUUIDs:$,mergeMapConfigs:ee,addRootParentGroup:te,isSimpleGeomType:ne,getSimpleGeomType:re,getIdFromUri:oe,parseLayoutValue:ae,prepareMapObjectToCompare:se,updateObjectFieldKey:ie,compareMapChanges:ue,clearHooks:E}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),a=function(e,t){return e===t},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):Object(r.isObject)(t)&&Object(r.isObject)(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},i=Object(o.b)(o.d,(function(e,t){return Object(r.isEqualWith)(e,t,s())})),u=function(e){return Object(o.b)(o.d,(function(t,n){return Object(r.isEqualWith)(t,n,s(e))}))}},"./MapStore2/web/client/utils/SearchUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./MapStore2/web/client/product/assets/img/marker-icon-red.png"),o=n.n(r),a=n("./MapStore2/web/client/product/assets/img/marker-shadow.png"),s=n.n(a),i={iconUrl:o.a,shadowUrl:s.a,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},u=function(e){return"single_layer"===(null==e?void 0:e.launchInfoPanel)&&!(null==e||!e.openFeatureInfoButtonEnabled)},d=function(e,t){return!!e&&((null==t?void 0:t.forceSearchLayerVisibility)||!!e.visibility)}},"./MapStore2/web/client/utils/StringUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return new RegExp("<(.|\\n)*?>","g").test(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;return t.test(e)}},"./MapStore2/web/client/utils/TOCUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/utils/LayersUtils.js"),a=n("./MapStore2/web/client/utils/LocaleUtils.js"),s=function(e,t){var n=RegExp("^/|/$|/{2,}");if(0===t.length||e.map((function(e){return e.label})).indexOf(t)>-1||n.test(t))return null;var r=t.replace(/\./g,"${dot}").replace(/\//g,".");return{label:t,value:r}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"title",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" - ";switch(e){case"title":var a=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,s=a||t.name||"";return s;case"description":var i=t.description||"";return i;case"both":var u=Object(r.isObject)(t.title)?t.title[n]||t.title.default:t.title,d=u||t.nam||"",l=t.description||"";return"".concat(d).concat(o&&l?o:"").concat(l);default:return t[e]}},u=function(e){var t=e.node,n=e.currentLocale,r=e.tooltipOptions,o=void 0===r?{separator:" - ",maxLength:807}:r,a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" - ";return i(e.tooltipOptions,e,t,n)}(t,n,o.separator)||"";return(a=a&&a.substring(0,o.maxLength)).length===o.maxLength&&(a+="..."),{title:i("title",t,n,o.separator),tooltipText:a}},d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(e){return e.nodes})).reduce((function(t,o){return t.push(r?o:{label:o.id.replace(/\./g,"/").replace(/\${dot}/g,"."),value:o.id}),o.nodes.length>0?t.concat(e(o.nodes,n+1,r)):t}),[])},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.replace(/[^\.\/]+/g,(function(e){var n=Object(r.get)(Object(o.getGroupByName)(e,t),"title");return Object(r.isObject)(n)?n[Object(a.d)()]||n.default:t&&n||e}));return n=(n=n.replace(/\./g,"/")).replace(/\${dot}/g,".")}},"./MapStore2/web/client/utils/TemplateUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"validateStringAttribute",(function(){return a})),n.d(t,"getCleanTemplate",(function(){return s})),n.d(t,"parseCustomTemplate",(function(){return i})),n.d(t,"generateTemplateString",(function(){return u})),n.d(t,"parseTemplate",(function(){return d}));var r,o=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=Object(o.isString)(t)&&Object(o.trim)(t.substring(n,t.length-r))||"";return Object(o.has)(e,a)},s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return""},u=Object(o.isString)(e)&&e.match(n),d=u&&u.map((function(e){var n=e.replace(/(<([^>]+)>)/gi,"");return{previous:e,next:a(t,n,r,s)?n:i(e)}}))||null;return d&&d.reduce((function(e,t){return e.replace(t.previous,t.next)}),e)||e||""},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return"".concat(Object(o.trim)(e.substring(2,e.length-1))," Not Available")};return Object(o.template)(s(e||"",t,/\$\{.*?\}/g,2,1,n))(t)},u=(r={},function(e,t){var n=r[e];return n&&!t||(n=function(n){var r=e.replace(/\$\{([\s]*[^;\s\{]+[\s]*)\}/g,(function(e,r){return(t||function(e){return e})(r.trim().split(".").reduce((function(e,t){return e&&e[t]}),n))}));return Object(o.isString)(r)&&r||""},t||(r[e]=n)),n}),d=function(e,t){n.e(32).then(function(){var r=n("./node_modules/babel-standalone/babel.js"),o="function"==typeof e?e():e;try{var a=r.transform(o,{presets:["es2015","react","stage-0"]}).code;t(a)}catch(e){t(null,e)}}.bind(null,n)).catch(n.oe)},l={generateTemplateString:u,parseTemplate:d,validateStringAttribute:a,getCleanTemplate:s,parseCustomTemplate:i};t.default=l},"./MapStore2/web/client/utils/ThumbnailUtils.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.width,s=void 0===a?64:a,i=o.height,u=void 0===i?64:i,d=o.contain,l=o.type,c=void 0===l?"image/jpeg":l,m=o.quality,_=void 0===m?.5:m,f=new Image;f.crossOrigin="anonymous",f.onload=function(){var e=f.naturalWidth/f.naturalHeight,t=s,r=u,o=s/u,a=document.createElement("canvas");a.setAttribute("width",s),a.setAttribute("height",u),a.style.width=s+"px",a.style.height=u+"px";var i=a.getContext("2d"),l=!d&&eo?[t,t/e]:[r*e,r];i.save(),i.translate(t/2,r/2),i.drawImage(f,-l[0]/2,-l[1]/2,l[0],l[1]),i.restore();var m=a.toDataURL(c,_);n(m)},f.onerror=function(e){r(e)},f.src=e}))},o=function(e,t){return new Promise((function(n,r){var o=t||{},a=o.type,s=void 0===a?"image/jpeg":a,i=o.quality,u=void 0===i?.5:i,d=document.createElement("video");d.crossOrigin="anonymous";var l=document.createElement("source"),c=document.createElement("canvas");d.addEventListener("loadedmetadata",(function(){var e=d.videoWidth,t=d.videoHeight;c.setAttribute("width",e),c.setAttribute("height",t),c.style.width=e+"px",c.style.height=t+"px"}),!0),d.addEventListener("loadeddata",(function(){d.currentTime=1}),!0),d.addEventListener("seeked",(function(){c.getContext("2d").drawImage(d,0,0);try{var e=c.toDataURL(s,u);n(e)}catch(e){r(e)}}),!0),d.addEventListener("error",(function(e){r(e)}),!0),d.appendChild(l),d.setAttribute("src",e)}))},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,s=null===(e=t.match(a))||void 0===e?void 0:e[1];return s?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(s,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?o(t).then((function(e){return r(e,n)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},"./MapStore2/web/client/utils/TimeUtils.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"k",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"j",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return L})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return v}));var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=n("./node_modules/moment/moment.js"),a=n.n(o),s=n("./MapStore2/web/client/utils/LocaleUtils.js"),i=/PT?[\d\.]+[YMWDHMS]/,u=function(e){return e?Object(r.isString)(e)?new Date(e).getTime():(Object(r.isDate)(e)&&e.getTime(),e):null},d=function(e,t){var n=u(t),r=1/0,o=-1;return e.forEach((function(e,t){var a=u(e),s=Math.abs(a-n);s0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.start,i=o.end;if(!s||!i)return{count:l({start:t,end:n,duration:r}),start:t,end:n};var u=a.a.duration(r).asMilliseconds(),d=new Date(t).getTime(),c=new Date(n).getTime(),m=new Date(s).getTime(),_=new Date(i).getTime(),f=Math.ceil((m-d)/u),p=Math.floor((_-d)/u),h=Math.floor((c-d)/u);if(f>=0&&p<=h){var y=p-f;return{start:new Date(d+Math.max(0,f)*u),end:new Date(d+Math.min(h,p)*u),count:y}}return{count:l({start:t,end:n,duration:r}),start:t,end:n}},f=function(e){return e.match(i)[0]},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,n=e.end,r=arguments.length>1?arguments[1]:void 0,o=new Date(t),s=new Date(n),i=Math.floor(s.getTime()-o.getTime())/r,u=a.a.duration(i).toISOString(),d=f(u);return{range:{start:t,end:n},resolution:d}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e[d(e,t)]},y=function(e){return e&&e.indexOf&&e.indexOf("--")>0},M=function(e,t){var n=a()(e).diff(t);return{start:n>=0?t:e,end:n>=0?e:t}},g=function(e){return 6e4*e.getTimezoneOffset()},b=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCHours();n=n<10?"0"+n:n;var o=t.getUTCMinutes();o=o<10?"0"+o:o;var a=t.getUTCSeconds();return a=a<10?"0"+a:a,"".concat(n,":").concat(o,":").concat(a)},L=function(e){var t=e;!Object(r.isDate)(e)&Object(r.isString)(e)&&(t=new Date(e));var n=t.getUTCMonth()+1,o=t.getUTCDate();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t.getUTCFullYear(),"-").concat(n,"-").concat(o)},j=function(e,t){var n=Object(s.b)(e);switch(t){case"time":return"HH:mm:SS";case"date":return n;default:return n+" HH:mm:SS"}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Domains,n=void 0===t?{}:t,o=arguments.length>1?arguments[1]:void 0,a=Object(r.castArray)(n.DimensionDomain||[]).concat(),s=n["@version"]||n.version,i=Object(r.get)(n,"SpaceDomain.BoundingBox");return i&&a.push({Identifier:"space",Domain:i}),a.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:s,url:o},name:t,domain:n}}))}},"./MapStore2/web/client/utils/VendorParamsUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsToVendorParams",(function(){return i}));var r=n("./MapStore2/web/client/utils/FilterUtils.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t.layerFilter,s=t.filterObj,i=[Object(r.isFilterValid)(o)&&!o.disabled&&Object(r.toCQLFilter)(o),Object(r.isFilterValid)(s)&&Object(r.toCQLFilter)(s),t&&t.params&&t.params.CQL_FILTER,n];return(e=(i=i.filter((function(e){return!!e}))).length>1?i.map((function(e){return"(".concat(e,")")})).join(" AND "):i.pop())?a(a({},t.params),{},{CQL_FILTER:e}):t.params}},"./MapStore2/web/client/utils/WFSLayerUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"needsReload",(function(){return l})),n.d(t,"toDescribeURL",(function(){return c})),n.d(t,"extractGeometryType",(function(){return m})),n.d(t,"extractGeometryAttributeName",(function(){return _}));var r=n("./MapStore2/web/client/utils/VendorParamsUtils.js"),o=n("./node_modules/url/url.js"),a=n.n(o),s=n("./MapStore2/node_modules/lodash/lodash.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,o=e.url,s=e.describeFeatureTypeURL,i=a.a.parse(s||r.url||o,!0);return a.a.format(u(u({},i),{},{search:void 0,query:u(u({},i.query),{},{service:"WFS",version:"1.1.0",typeName:t,outputFormat:"application/json",request:"DescribeFeatureType"})}))},m=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.type.split(":")[1]})))},_=function(e){var t=Object(s.get)(e,"featureTypes[0].properties")||[];return t&&Object(s.head)(t.filter((function(e){return 0===e.type.indexOf("gml:")})).map((function(e){return e.name})))}},"./MapStore2/web/client/utils/WMTSUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultMatrixId",(function(){return d})),n.d(t,"getMatrixIds",(function(){return l})),n.d(t,"limitMatrix",(function(){return c})),n.d(t,"getTileMatrixSet",(function(){return m})),n.d(t,"getRequestEncoding",(function(){return _})),n.d(t,"getOperations",(function(){return f})),n.d(t,"getOperation",(function(){return p})),n.d(t,"getGetTileURL",(function(){return h})),n.d(t,"getCapabilitiesURL",(function(){return y})),n.d(t,"getDefaultStyleIdentifier",(function(){return M})),n.d(t,"getDefaultFormat",(function(){return g})),n.d(t,"sortTileMatrix",(function(){return b})),n.d(t,"getTileMatrix",(function(){return L}));var r,o=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=n("./MapStore2/node_modules/lodash/lodash.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;tt?Object(a.slice)(e,0,t):e.length3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t;return e&&Object(a.isString)(e)?e:e?Object(o.getEquivalentSRS)(t,n).reduce((function(t,n){if(Object(a.isArray)(e)){var s=Object(a.head)(e.filter((function(e){return(e["ows:Identifier"]===n||Object(o.getEPSGCode)(e["ows:SupportedCRS"])===n)&&r[e["ows:Identifier"]]})));return s&&s["ows:Identifier"]?s["ows:Identifier"]:t}return Object(a.isObject)(e)&&e[n]||t}),s):s},_=function(e){var t=r.getOperations(e);return r.getOperation(t,"GetTile","KVP")?"KVP":r.getOperation(t,"GetTile","RESTful")&&"RESTful"},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.castArray)(e.Capabilities["ows:OperationsMetadata"]["ows:Operation"])},p=function(e,t,n){return Object(a.head)(Object(a.castArray)(Object(a.head)(e.filter((function(e){return e.$.name===t})).map((function(e){return Object(a.castArray)(e["ows:DCP"]["ows:HTTP"]["ows:Get"])})))||[]).filter((function(e){return(e["ows:Constraint"]&&e["ows:Constraint"]["ows:AllowedValues"]["ows:Value"])===n})).map((function(e){return e.$["xlink:href"]})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ResourceURL,n=e.GetTileURL,r=e.requestEncoding;return"KVP"===r?n:t&&Object(a.castArray)(t).map((function(e){var t=e.$,n=void 0===t?{}:t;return n.template||n.value}))||n},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.head)(Object(a.castArray)(e.capabilitiesURL||e.GetTileURL))},M=function(e){return Object(a.head)(Object(a.castArray)(e.Style).filter((function(e){var t=e.$;return"true"===(void 0===t?{}:t).isDefault})).map((function(e){return e["ows:Identifier"]})))},g=function(e){return Object(a.head)(Object(a.castArray)(e.Format))},b=function(e,t){return e?i(i({},e),{},{TileMatrix:Object(a.sortBy)(null==e?void 0:e.TileMatrix.map((function(e){return i(i({},e),{},{ScaleDenominator:Number(e.ScaleDenominator)})})),"ScaleDenominator").reverse().filter((function(e){return!t||t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identifier;return t})).indexOf(e["ows:Identifier"])>=0}))}):e},L=function(e,t){var n,r,o=m(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds),s=e.matrixIds&&l(e.matrixIds,o||t),i=b(Object(a.head)(e.tileMatrixSet.filter((function(e){return e["ows:Identifier"]===o}))),s),u=null==i||null===(n=(r=i.TileMatrix).map)||void 0===n?void 0:n.call(r,(function(e){return e["ows:Identifier"]}));return{matrixIds:u&&s?s.sort((function(e,t){return u.indexOf(e.identifier)-u.indexOf(t.identifier)})):s,tileMatrixSetName:o,tileMatrixSet:i}};r={getOperations:f,getOperation:p}},"./MapStore2/web/client/utils/mapinfo/vector.js":function(e,t,n){var r=n("./MapStore2/web/client/utils/MapUtils.js").getCurrentResolution;e.exports={buildRequest:function(e,t){var n,o;return{request:{lat:t.point.latlng.lat,lng:t.point.latlng.lng},metadata:{fields:(null===(n=e.features)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.properties)&&Object.keys(e.features[0].properties)||[],title:e.name,resolution:t.map&&t.map&&t.map.zoom&&r(t.map.zoom,0,21,96),buffer:t.buffer||2,units:t.map&&t.map.units,rowViewer:e.rowViewer,viewer:e.viewer},url:""}}}},"./MapStore2/web/client/utils/mapinfo/wfs.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.map,r=void 0===n?{}:n,o=t.point,s=t.currentLocale,i=t.params,c=t.maxItems,m=void 0===c?10:c,_=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0;return{request:h(a({point:o,service:"WFS",version:"1.1.1",request:"GetFeature",outputFormat:"application/json",exceptions:"application/json",id:e.id,typeName:e.name,srs:u(r.projection)||"EPSG:4326",feature_count:m},y({params:i})),e),metadata:{title:l(e.title)?e.title[s]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:_,featureInfo:f},url:d(e).replace(/[?].*$/g,"")}},getIdentifyFlow:function(e,t,n){var o=n.point,a=r(n,["point"]),s=function(e){var t,n,r=null==e||null===(t=e.geometricFilter)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.geometry;if(r)return r;var o=e.latlng.lng;return{coordinates:[o-360*Math.floor(o/360+.5),e.latlng.lat],projection:"EPSG:4326",type:"Point"}}(o);return i.defer((function(){return _(e.url,e.name).then((function(n){var r=p(n),o=c({layerFilter:e.layerFilter,filterObj:{spatialField:{attribute:r,operation:"INTERSECTS",geometry:s}},params:y({},e.baseParams,e.params,a)});return f(t,e.name,o)}))}))}}},"./MapStore2/web/client/utils/mapinfo/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.sizeBBox,r=t.map,a=void 0===r?{}:r,i=t.point,y=t.currentLocale,M=t.params,g=t.maxItems,b=void 0===g?10:g,L=t.env,j=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0,Y=arguments.length>4?arguments[4]:void 0,w=n&&n.height||101,O=n&&n.width||101,k=[w,O],D=0,S=s(Math.ceil(a.zoom),0,21,96),T=i.latlng.lng,x=T-360*Math.floor(T/360+.5),E={x:x,y:i.latlng.lat},P=u(E,"EPSG:4326",a.projection),H=d(P,S,D,k,null),A=e.name;e.queryLayers&&(A=e.queryLayers.join(","));var F=f(L),I=_({layerFilter:e.layerFilter,filterObj:e.filterObj,params:h({},e.baseParams,e.params,M)});return{request:p(o({service:"WMS",version:"1.1.1",request:"GetFeatureInfo",exceptions:"application/json",id:e.id,layers:e.name,query_layers:A,styles:e.style,x:O%2==1?Math.ceil(O/2):O/2,y:O%2==1?Math.ceil(O/2):O/2,height:w,width:O,srs:l(a.projection)||"EPSG:4326",bbox:H.minx+","+H.miny+","+H.maxx+","+H.maxy,feature_count:b,info_format:j,ENV:F},h({},I)),e),metadata:{title:m(e.title)?e.title[y]||e.title.default:e.title,regex:e.featureInfoRegex,viewer:v,featureInfo:Y},url:c(e).replace(/[?].*$/g,"")}}}},"./MapStore2/web/client/utils/mapinfo/wmts.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t|<=|<|>=|>|LIKE)/i,IS_NULL:/^IS NULL/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(e){var t=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(e);if(t){var n=e.length,r=e.indexOf("(",t[0].length);if(r>-1)for(var o=1;r0;)switch(r++,e.charAt(r)){case"(":o++;break;case")":o--}return[e.substr(0,r+1)]}return null},END:/^$/},u={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA","IS_NULL"],BETWEEN:["VALUE"],IS_NULL:["END"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":"=","<>":"<>","<":"<","<=":"<=",">":">",">=":">=",LIKE:"like",ILIKE:"ilike",BETWEEN:"><","IS NULL":"isNull"},l={AND:"and",OR:"or",NOT:"not"},c={RPAREN:3,LOGICAL:2,COMPARISON:1},m=function(e,t){return t instanceof RegExp?t.exec(e):t(e)},_=function(e,t){var n,r,o=t.length;for(n=0;n0&&c[t[t.length-1].type]<=m;)i.push(t.pop());t.push(u);break;case"SPATIAL":case"NOT":case"LPAREN":t.push(u);break;case"RPAREN":for(;t.length>0&&"LPAREN"!==t[t.length-1].type;)i.push(t.pop());t.pop(),t.length>0&&"SPATIAL"===t[t.length-1].type&&i.push(t.pop());break;case"COMMA":case"END":break;default:throw new Error("Unknown token type "+u.type)}}for(;t.length>0;)i.push(t.pop());var _=function e(){var t=i.pop();switch(t.type){case"LOGICAL":var u=e();return{filters:[e(),u],type:l[t.text.toUpperCase()]};case"NOT":return{filters:[e()],type:l.NOT};case"BETWEEN":i.pop();var c=e(),m=e();return{property:e(),lowerBoundary:m,upperBoundary:c,type:d.BETWEEN};case"COMPARISON":var _=e();return{property:e(),value:_,type:d[t.text.toUpperCase()]};case"IS_NULL":return{property:e(),type:d[t.text.toUpperCase()]};case"VALUE":var f=t.text.match(/^'(.*)'$/);return f?f[1].replace(/''/g,"'"):Number(t.text);case"SPATIAL":switch(t.text.toUpperCase()){case"BBOX":var p=e(),h=e(),y=e(),M=e(),g=e();return{type:r,property:g,value:[M,y,h,p]};case"INTERSECTS":var b=e(),L=e();return{type:n,property:L,value:b};case"WITHIN":var j=e(),v=e();return{type:s,property:v,value:j};case"CONTAINS":var Y=e(),w=e();return{type:o,property:w,value:Y};case"DWITHIN":var O=e(),k=e(),D=e();return{type:a,value:k,property:D,distance:Number(O)};default:return null}case"GEOMETRY":return function(){throw new Error("WKT parsing for CQL filter not supported yet")}(t.text);default:return t.text}}();if(i.length>0){for(var f="Remaining tokens after building AST: \n",p=i.length-1;p>=0;p--)f+=i[p].type+": "+i[p].text+"\n";throw new Error(f)}return _};e.exports={read:function(e){return f(function(e){var t,n=[],r=e,o=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{if(r=(t=_(r,o)).remainder,o=u[t.type],"END"!==t.type&&!o)throw new Error("No follows list for "+t.type);n.push(t)}while("END"!==t.type);return n}(e))}}},"./MapStore2/web/client/utils/ogc/Filter/FilterBuilder.js":function(e,t,n){function r(e){return(r="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)}var o=n("./MapStore2/web/client/utils/ogc/Filter/operators.js"),a=o.logical,s=o.spatial,i=o.comparison,u=o.literal,d=o.propertyName,l=o.valueReference,c=o.distance,m=o.lower,_=o.upper,f=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),p=f.filter,h=f.fidFilter,y=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry;e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterNS,n=void 0===t?"ogc":t,o=e.gmlVersion,f=e.wfsVersion,M=void 0===f?"1.1.0":f,g=o||"3.1.1",b=function(e){return y(g,e)},L=function(e){return"object"===r(e)&&Date,u(n,e)},j=0===M.indexOf("2.")?l:d;return{filter:p.bind(null,n),fidFilter:h.bind(null,n),and:a.and.bind(null,n),or:a.or.bind(null,n),not:a.not.bind(null,n),property:function(e){return{equalTo:function(t){return i.equal(n,j(n,e),L(t))},greaterThen:function(t){return i.greater(n,j(n,e),L(t))},greaterThenOrEqualTo:function(t){return i.greaterOrEqual(n,j(n,e),L(t))},lessThen:function(t){return i.less(n,j(n,e),L(t))},lessThenOrEqualTo:function(t){return i.lessOrEqual(n,j(n,e),L(t))},notEqualTo:function(t){return i.notEqual(n,j(n,e),L(t))},between:function(t,r){return i.between(n,j(n,e),m(n,L(t)),_(n,L(r)))},like:function(t,r){return i.like(n,j(n,e),L(t),r)},ilike:function(t,r){return i.ilike(n,j(n,e),L(t),r)},isNull:function(){return i.isNull(n,j(n,e))},intersects:function(t){return s.intersects(n,j(n,e),b(t))},within:function(t){return s.within(n,j(n,e),b(t))},dwithin:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s.dwithin(n,j(n,e),b(t),c(n,r,o))},contains:function(t){return s.contains(n,j(n,e),b(t))}}}}}},"./MapStore2/web/client/utils/ogc/Filter/filter.js":function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return"<".concat(e,":Filter>").concat(Array.isArray(t)?t.join(""):t,"")};e.exports={fidFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ogc",t=arguments.length>1?arguments[1]:void 0;return n(e,"<".concat(e,':FeatureId fid="').concat(t,'"/>'))},filter:n}},"./MapStore2/web/client/utils/ogc/Filter/fromObject.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":"notEqualTo","><":"between","<":"lessThen","<=":"lessThenOrEqualTo",">":"greaterThen",">=":"greaterThenOrEqualTo",like:"like",ilike:"ilike"};e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var o=n.type,a=n.filters,l=void 0===a?[]:a,c=n.value,m=n.property,_=n.lowerBoundary,f=n.upperBoundary;return s(u,o)?t[o].apply(t,r(l.map(e(t)))):t.property(m)[d[o]](i(c)?_:c,f)}}},"./MapStore2/web/client/utils/ogc/Filter/operators.js":function(e,t){var n={"=":function(e,t){return"<".concat(e,":PropertyIsEqualTo>").concat(t,"")},">":function(e,t){return"<".concat(e,":PropertyIsGreaterThan>").concat(t,"")},"<":function(e,t){return"<".concat(e,":PropertyIsLessThan>").concat(t,"")},">=":function(e,t){return"<".concat(e,":PropertyIsGreaterThanOrEqualTo>").concat(t,"")},"<=":function(e,t){return"<".concat(e,":PropertyIsLessThanOrEqualTo>").concat(t,"")},"<>":function(e,t){return"<".concat(e,":PropertyIsNotEqualTo>").concat(t,"")},"><":function(e,t){return"<".concat(e,":PropertyIsBetween>").concat(t,"")},like:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},ilike:function(e,t){return"<".concat(e,':PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">').concat(t,"")},isNull:function(e,t){return"<".concat(e,":PropertyIsNull>").concat(t,"")}},r={AND:function(e,t){return"<".concat(e,":And>").concat(t,"")},OR:function(e,t){return"<".concat(e,":Or>").concat(t,"")},NOR:function(e,t){return"<".concat(e,":Not><").concat(e,":Or>").concat(t,"")},NOT:function(e,t){return"<".concat(e,":Not>").concat(t,"")}},o={INTERSECTS:function(e,t){return"<".concat(e,":Intersects>").concat(t,"")},BBOX:function(e,t){return"<".concat(e,":BBOX>").concat(t,"")},CONTAINS:function(e,t){return"<".concat(e,":Contains>").concat(t,"")},DWITHIN:function(e,t){return"<".concat(e,":DWithin>").concat(t,"")},WITHIN:function(e,t){return"<".concat(e,":Within>").concat(t,"")}},a=function(e,t,n){return t(e,Array.isArray(n)?n.join(""):n)},s={and:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.AND,[t].concat(o)):a(e,r.AND,t)},or:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.OR,[t].concat(o)):a(e,r.OR,t)},not:function(e,t){return a(e,r.NOT,t)},nor:function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s0?a(e,r.NOR,[t].concat(o)):a(e,r.NOR,t)}},i={intersects:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),o=1;o"],r)},less:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o="],r)},lessOrEqual:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o"],r)},between:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<"],r)},like:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),o=1;o").concat(t,"")},valueReference:function(e,t){return"<".concat(e,":ValueReference>").concat(t,"")},distance:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return"<".concat(e,':Distance units="').concat(n,'">').concat(t,"")},literal:function(e,t){return"<".concat(e,":Literal>").concat(t,"")},logical:s,spatial:i,comparison:u,lower:function(e,t){return"<".concat(e,":LowerBoundary>").concat(t,"")},upper:function(e,t){return"<".concat(e,":UpperBoundary>").concat(t,"")}}},"./MapStore2/web/client/utils/ogc/GML/index.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js").isArray,o=function(e){return 0===e.indexOf("2.")},a=function(e){if(e.length>=3){var t=e[0],n=e[e.length-1];if(t[0]!==n[0]||t[1]!==n[1])return e.concat([e[0]])}return e},s=function(e,t,n){var r='':">",r+=o(n)?""+e[0]+""+e[1]+"":""+e.join(" ")+"",r+=""},i=function(e,t,n){var s=o(n),i="':">",(e.length&&r(e[0])&&e[0].length&&r(e[0][0])?e:[e]).forEach((function(e,t){var n=a(e).map((function(e){return e[0]+(s?",":" ")+e[1]})),r=s?"outerBoundaryIs":"exterior",o=s?"innerBoundaryIs":"exterior";i+=(t<1?"":"")+""+(s?"":"")+n.join(" ")+(s?"":"")+""+(t<1?"":"")})),i+=""},u=function(e,t,n){var r=o(n),a="':">";var s=e.map((function(e){return e[0]+(r?",":" ")+e[1]}));return a+=(r?"":"")+s.join(" ")+(r?"":""),a+=""};e.exports={closePolygon:a,pointElement:s,polygonElement:i,lineStringElement:u,processOGCGeometry:function(e,t){var n="",r=t.projection||"EPSG:4326";switch(t.type){case"Point":n+=s(t.coordinates,r,e);break;case"MultiPoint":n+='',t.coordinates.forEach((function(t){t&&(n+="",n+=s(t,r,e),n+="")})),n+="";break;case"LineString":n+=u(t.coordinates,r,e);break;case"MultiLineString":var o="3.2"===e?"MultiCurve":"MultiLineString",a="3.2"===e?"curveMember":"lineStringMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=u(t,r,e),n+="")})),n+="";break;case"Polygon":n+=i(t.coordinates,r,e);break;case"MultiPolygon":var d="3.2"===e?"MultiSurface":"MultiPolygon",l="3.2"===e?"surfaceMembers":"polygonMember";n+="'),t.coordinates.forEach((function(t){t&&(n+="",n+=i(t,r,e),n+="")})),n+=""}return n}}},"./MapStore2/web/client/utils/ogc/WFS/base.js":function(e,t,n){var r=n("./MapStore2/node_modules/lodash/lodash.js"),o=r.head,a=r.get,s=function(e){return/[<>&'"]/.test(e)?""):e},i=n("./MapStore2/web/client/utils/ogc/GML/index.js").processOGCGeometry,u={"1.0.0":"2.0","1.1.0":"3.1.1","2.0":"3.2","2.0.0":"3.2"},d=function(e){return a(e,"featureTypes[0].properties")},l=function(e,t){return o((d(t)||[]).filter((function(t){return t.name===e})))},c=function(e){return e.targetNamespace},m=function(e){return 0===e.type.indexOf("gml:")},_=function(e,t){return null==t||t&&!0===t.nillable||t&&!1===t.nillable&&null!=e},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geom,n=e.properties,r=arguments.length>1?arguments[1]:void 0;return _(m(r)?t:n[r.name],r)};e.exports={schemaLocation:c,isGeometryType:m,featureTypeSchema:function(e){return"xmlns:".concat(e.targetPrefix,'="').concat(c(e),'"')},getValue:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"1.1.0",o=m(l(t,n));return o?e?i(r,{type:e.type,coordinates:e.coordinates}):"":null==e?"":"string"==typeof e?s(e):e},getPropertyDesciptor:l,findGeometryProperty:function(e){return o((d(e)||[]).filter((function(e){return 0===e.type.indexOf("gml:")})))},getFeatureTypeProperties:d,getTypeName:function(e){return e.targetPrefix?e.targetPrefix+":"+e.featureTypes[0].typeName:e.featureTypes[0].typeName},wfsToGmlVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.1.0";return u[e]},processOGCGeometry:i,isValid:function(e,t){return d(t).map((function(t){return f(e,t)}))},isValidProperty:f,isValidValueForPropertyName:function(e,t,n){return _(e,l(t,n))},isValidValue:_}},"./js/actions/gnsave.js":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return _})),n.d(t,"l",(function(){return f}));var r="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",a="GEONODE:SAVE_ERROR",s="GEONODE:CLEAR_SAVE",i="GEONODE:SAVE_CONTENT",u="GEONODE:UPDATE_RESOURCE_BEFORE_SAVE";function d(){return{type:r}}function l(e){return{type:o,success:e}}function c(e){return{type:a,error:e}}function m(){return{type:s}}function _(e,t,n){return{type:i,id:e,metadata:t,reload:n}}function f(e){return{type:u,id:e}}},"./js/epics/gnsave.js":function(e,t,n){"use strict";var r=n("./node_modules/rxjs/Rx.js"),o=n("./MapStore2/web/client/selectors/map.js"),a=n("./MapStore2/web/client/selectors/layers.js"),s=n("./MapStore2/web/client/selectors/backgroundselector.js"),i=n("./MapStore2/web/client/utils/MapUtils.js"),u=n("./node_modules/reselect/es/index.js"),d=n("./MapStore2/web/client/selectors/catalog.js"),l=n("./MapStore2/web/client/selectors/widgets.js"),c=n("./MapStore2/web/client/selectors/mapInfo.js"),m=n("./MapStore2/web/client/selectors/dimension.js"),_=n("./MapStore2/web/client/selectors/timeline.js"),f=function(e){return e.searchconfig&&e.searchconfig.textSearchConfig},p=function(e){return e.searchbookmarkconfig&&e.searchbookmarkconfig.bookmarkSearchConfig};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.e:return{saving:!0};case r.d:return{success:t.success,saving:!1};case r.c:return{error:t.error,saving:!1};case r.a:return{};default:return e}}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var r={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-kw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ly.js":function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,s){var i=n(t),u=r[e][n(t)];return 2===i&&(u=u[o?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-ma.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-sa.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-tn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar.js":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var i=r(t),u=o[e][r(t)];return 2===i&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/az.js":function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/be.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bg.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bn.js":function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bo.js":function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/br.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/bs.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cs.js":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(t,n),shortMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(n),longMonthsParse:function(e){var t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n}(t),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/cy.js":function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/da.js":function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-at.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de-ch.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/de.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/dv.js":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/el.js":function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-au.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-gb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-ie.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-il.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/en-nz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-do.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es-us.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/es.js":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/et.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/eu.js":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fa.js":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fi.js":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,a){var s="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":s=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":s=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":s=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":s=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":s=a?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ca.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr-ch.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fr.js":function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/fy.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gd.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gl.js":function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gom-latn.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/gu.js":function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/he.js":function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hi.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hr.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hu.js":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/hy-am.js":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/id.js":function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/is.js":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/it.js":function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ja.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/jv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ka.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kk.js":function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/km.js":function(e,t,n){!function(e){"use strict";e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/kn.js":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ko.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ky.js":function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lb.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lt.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,s){var i=e+" ";return 1===e?i+n(0,t,a[0],s):t?i+(r(e)?o(a)[1]:o(a)[0]):s?i+o(a)[1]:i+(r(e)?o(a)[1]:o(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/lv.js":function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/me.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ml.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mr.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms-my.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ms.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/mt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/my.js":function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nb.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ne.js":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl-be.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nl.js":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/nn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pa-in.js":function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pl.js":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var o=e+" ";switch(n){case"ss":return o+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(r(e)?"godziny":"godzin");case"MM":return o+(r(e)?"miesiące":"miesięcy");case"yy":return o+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt-br.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/pt.js":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ro.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ru.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sd.js":function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/se.js":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/si.js":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sk.js":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sq.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr-cyrl.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sr.js":function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ss.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sv.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/sw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ta.js":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/te.js":function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tet.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tg.js":function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/th.js":function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tl-ph.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tlh.js":function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}(e);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tr.js":function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzl.js":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/tzm.js":function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ug-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uk.js":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ur.js":function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz-latn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/uz.js":function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/vi.js":function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/x-pseudo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/yo.js":function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-cn.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-hk.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},z={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=J(t,e.localeData()),G[t]=G[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var V=/\d/,q=/\d\d/,K=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};function le(e,t,n){de[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(de,e)?de[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _e={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=v(e)}),n=0;n68?1900:2e3)};var ge,be=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(ve(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ve(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ye(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ye(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function Ae(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var a,s,i=1+7*(t-1)+(7+n-r)%7+Fe(e,r,o);return i<=0?s=ye(a=e-1)+i:i>ye(e)?(a=e+1,s=i-ye(e)):(a=e,s=i),{year:a,dayOfYear:s}}function Ce(e,t,n){var r,o,a=Fe(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Ne(o=e.year()-1,t,n):s>Ne(e.year(),t,n)?(r=s-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function Ne(e,t,n){var r=Fe(e,t,n),o=Fe(e+1,t,n);return(ye(e)-r+o)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),C("week",5),C("isoWeek",5),le("w",X),le("ww",X,q),le("W",X),le("WW",X,q),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=v(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=v(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._minWeekdaysParse,s))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,s))||-1!==(o=ge.call(this._weekdaysParse,s))||-1!==(o=ge.call(this._shortWeekdaysParse,s))?o:null}var Ue=ue,Be=ue,Je=ue;function Ve(){function e(e,t){return t.length-e.length}var t,n,r,o,a,s=[],i=[],u=[],d=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(r),i.push(o),u.push(a),d.push(r),d.push(o),d.push(a);for(s.sort(e),i.sort(e),u.sort(e),d.sort(e),t=0;t<7;t++)i[t]=me(i[t]),u[t]=me(u[t]),d[t]=me(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ke(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,qe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),H("hour","h"),C("hour",13),le("a",Qe),le("A",Qe),le("H",X),le("h",X),le("k",X),le("HH",X,q),le("hh",X,q),le("kk",X,q),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var r=v(e);t[3]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=v(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=v(e.substr(0,r)),t[4]=v(e.substr(r,2)),t[5]=v(e.substr(o))}));var Ze,Xe=Le("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:ke,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var r=null;if(!et[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+t),ot(r)}catch(e){}return et[t]}function ot(e,t){var n;return e&&((n=i(t)?st(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=$e;if(t.abbr=e,null!=et[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new E(x(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=rt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Y(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function it(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ye(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function dt(e){var t,n,r,a,s,i=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,s,i,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,s=4,n=ut(t.GG,e._a[0],Ce(Yt(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(u=!0);else{a=e._locale._week.dow,s=e._locale._week.doy;var d=Ce(Yt(),a,s);n=ut(t.gg,e._a[0],d.year),r=ut(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a}r<1||r>Ne(n,a,s)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(i=Ie(n,r,o,a,s),e._a[0]=i.year,e._dayOfYear=i.dayOfYear)}(e),null!=e._dayOfYear&&(s=ut(e._a[0],r[0]),(e._dayOfYear>ye(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ae(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:He).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function ht(e){var t,n,r,o,a,s,i=e._i,u=lt.exec(i)||ct.exec(i);if(u){for(f(e).iso=!0,t=0,n=_t.length;t0&&f(e).unusedInput.push(s),i=i.slice(i.indexOf(n)+n.length),d+=n.length),z[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),he(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=u-d,i.length>0&&f(e).unusedInput.push(i),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),dt(e),it(e)}else bt(e);else ht(e)}function jt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),L(t)?new b(it(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:h()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],r=1;r(a=Ne(e,r,o))&&(t=a),$t.call(this,e,t,n,r,o))}function $t(e,t,n,r,o){var a=Ie(e,t,n,r,o),s=Ae(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Zt("gggg","weekYear"),Zt("ggggg","weekYear"),Zt("GGGG","isoWeekYear"),Zt("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",X,q),le("gg",X,q),le("GGGG",ne,Q),le("gggg",ne,Q),le("GGGGG",re,Z),le("ggggg",re,Z),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=v(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),H("quarter","Q"),C("quarter",7),le("Q",V),fe("Q",(function(e,t){t[1]=3*(v(e)-1)})),U("D",["DD",2],"Do","date"),H("date","D"),C("date",9),le("D",X),le("DD",X,q),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=v(e.match(X)[0])}));var en=Le("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),C("dayOfYear",4),le("DDD",te),le("DDDD",K),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=v(e)})),U("m",["mm",2],0,"minute"),H("minute","m"),C("minute",14),le("m",X),le("mm",X,q),fe(["m","mm"],4);var tn=Le("Minutes",!1);U("s",["ss",2],0,"second"),H("second","s"),C("second",15),le("s",X),le("ss",X,q),fe(["s","ss"],5);var nn,rn=Le("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),C("millisecond",16),le("S",te,V),le("SS",te,q),le("SSS",te,K),nn="SSSS";nn.length<=9;nn+="S")le(nn,oe);function on(e,t){t[6]=v(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")fe(nn,on);var an=Le("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var sn=b.prototype;function un(e){return e}sn.add=Bt,sn.calendar=function(e,t){var n=e||Yt(),r=At(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",s=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Yt(n)))},sn.clone=function(){return new b(this)},sn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=At(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":a=Vt(this,r)/12;break;case"month":a=Vt(this,r);break;case"quarter":a=Vt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:j(a)},sn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},sn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},sn.from=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.fromNow=function(e){return this.from(Yt(),e)},sn.to=function(e,t){return this.isValid()&&(L(e)&&e.isValid()||Yt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},sn.toNow=function(e){return this.to(Yt(),e)},sn.get=function(e){return T(this[e=A(e)])?this[e]():this},sn.invalidAt=function(){return f(this).overflow},sn.isAfter=function(e,t){var n=L(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(i(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},sn.toJSON=function(){return this.isValid()?this.toISOString():null},sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},sn.unix=function(){return Math.floor(this.valueOf()/1e3)},sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},sn.year=be,sn.isLeapYear=function(){return Me(this.year())},sn.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},sn.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},sn.quarter=sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},sn.month=Te,sn.daysInMonth=function(){return Ye(this.year(),this.month())},sn.week=sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},sn.isoWeek=sn.isoWeeks=function(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},sn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},sn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},sn.date=en,sn.day=sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},sn.hour=sn.hours=Xe,sn.minute=sn.minutes=tn,sn.second=sn.seconds=rn,sn.millisecond=sn.milliseconds=an,sn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},sn.utc=function(e){return this.utcOffset(0,e)},sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},sn.isUtc=It,sn.isUTC=It,sn.zoneAbbr=function(){return this._isUTC?"UTC":""},sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},sn.dates=O("dates accessor is deprecated. Use date instead.",en),sn.months=O("months accessor is deprecated. Use month instead",Te),sn.years=O("years accessor is deprecated. Use year instead",be),sn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),sn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=jt(e))._a){var t=e._isUTC?_(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=E.prototype;function ln(e,t,n,r){var o=st(),a=_().set(r,t);return o[n](a,e)}function cn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ln(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,a=st(),s=e?a._week.dow:0;if(null!=n)return ln(t,(n+s)%7,r,"day");var i=[];for(o=0;o<7;o++)i[o]=ln(t,(o+s)%7,r,"day");return i}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=un,dn.postformat=un,dn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ot),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var _n=Math.abs;function fn(e,t,n,r){var o=Rt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function pn(e){return e<0?Math.floor(e):Math.ceil(e)}function hn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var gn=Mn("ms"),bn=Mn("s"),Ln=Mn("m"),jn=Mn("h"),vn=Mn("d"),Yn=Mn("w"),wn=Mn("M"),On=Mn("y");function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=kn("milliseconds"),Sn=kn("seconds"),Tn=kn("minutes"),xn=kn("hours"),En=kn("days"),Pn=kn("months"),Hn=kn("years"),An=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function In(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Cn=Math.abs;function Nn(e){return(e>0)-(e<0)||+e}function Rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Cn(this._milliseconds)/1e3,r=Cn(this._days),o=Cn(this._months);e=j(n/60),t=j(e/60),n%=60,e%=60;var a=j(o/12),s=o%=12,i=r,u=t,d=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var m=c<0?"-":"",_=Nn(this._months)!==Nn(c)?"-":"",f=Nn(this._days)!==Nn(c)?"-":"",p=Nn(this._milliseconds)!==Nn(c)?"-":"";return m+"P"+(a?_+a+"Y":"")+(s?_+s+"M":"")+(i?f+i+"D":"")+(u||d||l?"T":"")+(u?p+u+"H":"")+(d?p+d+"M":"")+(l?p+l+"S":"")}var Wn=St.prototype;return Wn.isValid=function(){return this._isValid},Wn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Wn.add=function(e,t){return fn(this,e,t,1)},Wn.subtract=function(e,t){return fn(this,e,t,-1)},Wn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+hn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Wn.asMilliseconds=gn,Wn.asSeconds=bn,Wn.asMinutes=Ln,Wn.asHours=jn,Wn.asDays=vn,Wn.asWeeks=Yn,Wn.asMonths=wn,Wn.asYears=On,Wn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,s=this._days,i=this._months,u=this._data;return a>=0&&s>=0&&i>=0||a<=0&&s<=0&&i<=0||(a+=864e5*pn(yn(i)+s),s=0,i=0),u.milliseconds=a%1e3,e=j(a/1e3),u.seconds=e%60,t=j(e/60),u.minutes=t%60,n=j(t/60),u.hours=n%24,s+=j(n/24),o=j(hn(s)),i+=o,s-=pn(yn(o)),r=j(i/12),i%=12,u.days=s,u.months=i,u.years=r,this},Wn.clone=function(){return Rt(this)},Wn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},Wn.milliseconds=Dn,Wn.seconds=Sn,Wn.minutes=Tn,Wn.hours=xn,Wn.days=En,Wn.weeks=function(){return j(this.days()/7)},Wn.months=Pn,Wn.years=Hn,Wn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Rt(e).abs(),o=An(r.as("s")),a=An(r.as("m")),s=An(r.as("h")),i=An(r.as("d")),u=An(r.as("M")),d=An(r.as("y")),l=o<=Fn.ss&&["s",o]||o0,l[4]=n,In.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Wn.toISOString=Rn,Wn.toString=Rn,Wn.toJSON=Rn,Wn.locale=qt,Wn.localeData=Qt,Wn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),Wn.lang=Kt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(v(e))})),o.version="2.21.0",t=Yt,o.fn=sn,o.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Yt(1e3*e)},o.months=function(e,t){return cn(e,t,"months")},o.isDate=d,o.locale=ot,o.invalid=h,o.duration=Rt,o.isMoment=L,o.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},o.parseZone=function(){return Yt.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=Tt,o.monthsShort=function(e,t){return cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},o.defineLocale=at,o.updateLocale=function(e,t){if(null!=t){var n,r,o=$e;null!=(r=rt(e))&&(o=r._config),t=x(o,t),(n=new E(t)).parentLocale=et[e],et[e]=n,ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},o.locales=function(){return k(et)},o.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=sn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/turf-center/index.js":function(e,t,n){var r=n("./node_modules/turf-center/node_modules/turf-bbox/index.js"),o=n("./node_modules/turf-helpers/index.js").point;e.exports=function(e){var t=r(e),n=(t[0]+t[2])/2,a=(t[1]+t[3])/2;return o([n,a])}},"./node_modules/turf-center/node_modules/turf-bbox/index.js":function(e,t,n){var r=n("./node_modules/turf-meta/index.js").coordEach;e.exports=function(e){var t=[1/0,1/0,-1/0,-1/0];return r(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]e[1]!=u>e[1]&&e[0]<(i-a)*(e[1]-s)/(u-s)+a&&(n=!n)}return n}e.exports=function(e,t){var n=r.getCoord(e),a=t.geometry.coordinates;"Polygon"===t.geometry.type&&(a=[a]);for(var s=0,i=!1;s0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return i()({},e,a({},t.control,i()({},e[t.control],a({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?i()({},e,a({},t.control,i()({},e[t.control],a({},t.property,void 0)))):i()({},e,a({},t.control,i()({},e[t.control],a({},t.property,t.value))));case r.b:return i()({},e,a({},t.control,i()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),c=o.reduce((function(t,n){return i()(t,a({},n,i()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return i()({},e,c);default:return e}}},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"l",(function(){return a})),n.d(t,"o",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return s})),n.d(t,"n",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"m",(function(){return g})),n.d(t,"p",(function(){return h})),n.d(t,"k",(function(){return v})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return S})),n.d(t,"f",(function(){return O}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},c=Object(o.a)([a],(function(e){return e&&e.projection})),u=function(e){return Object(i.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(i.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(i.get)(a(e),"mapId")&&parseInt(Object(i.get)(a(e),"mapId"),10)||null}(e)},l=function(e){return Object(i.get)(a(e),"info")},s=function(e){var t=Object(i.get)(l(e),"canEdit");return void 0===t?Object(i.get)(e,"context.resource.canEdit"):t},f=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},d=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},p=function(e){return d(e).restrictedExtent},m=function(e){return d(e).crs},y=function(e){var t=d(e),n=c(e);return n&&Object(i.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(i.get)(t,"minZoom")},b=function(e){return Object(i.get)(a(e),"bbox")},g=function(e){return Object(i.get)(function(e){return Object(i.get)(a(e),"limits")}(e),"minZoom")},h=Object(o.a)([function(e){return Object(i.get)(a(e),"resolutions")},c],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),v=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},x=function(e){return Object(i.get)(a(e),"eventListeners.mousemove",[])},j=function(e){return!!x(e).length},S=function(e){return x(e).includes("mouseposition")},O=function(e){return x(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return A})),n.d(t,"getProjUrl",(function(){return N})),n.d(t,"determineCrs",(function(){return I})),n.d(t,"normalizePoint",(function(){return F})),n.d(t,"reproject",(function(){return D})),n.d(t,"reprojectExtent",(function(){return z})),n.d(t,"getPolygonFromExtent",(function(){return B})),n.d(t,"getExtentFromNormalized",(function(){return V})),n.d(t,"crsCodeTable",(function(){return $})),n.d(t,"setCrsLabels",(function(){return J})),n.d(t,"getUnits",(function(){return W})),n.d(t,"getProjectedBBox",(function(){return X})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return Z})),n.d(t,"lineIntersectPolygon",(function(){return H})),n.d(t,"normalizeLng",(function(){return K})),n.d(t,"reprojectBbox",(function(){return Q})),n.d(t,"bboxToFeatureGeometry",(function(){return Y})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ie})),n.d(t,"filterCRSList",(function(){return ae})),n.d(t,"calculateAzimuth",(function(){return ce})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return le})),n.d(t,"getGeoJSONExtent",(function(){return se})),n.d(t,"isValidExtent",(function(){return fe})),n.d(t,"calculateCircleCoordinates",(function(){return de})),n.d(t,"transformLineToArcs",(function(){return pe})),n.d(t,"transformArcsToLine",(function(){return me})),n.d(t,"coordsOLtoLeaflet",(function(){return ye})),n.d(t,"mergeToPolyGeom",(function(){return be})),n.d(t,"getViewportGeometry",(function(){return ge})),n.d(t,"getExtentFromViewport",(function(){return he})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return xe})),n.d(t,"parseString",(function(){return je})),n.d(t,"getWMSBoundingBox",(function(){return Se})),n.d(t,"isSRSAllowed",(function(){return Oe})),n.d(t,"getNormalizedLatLon",(function(){return Pe})),n.d(t,"isInsideVisibleArea",(function(){return Ee})),n.d(t,"centerToVisibleArea",(function(){return we})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return Ce})),n.d(t,"roundCoord",(function(){return Ge})),n.d(t,"midpoint",(function(){return Me})),n.d(t,"pointObjectToArray",(function(){return _e})),n.d(t,"isPointInsideExtent",(function(){return Ae})),n.d(t,"isBboxCompatible",(function(){return Te})),n.d(t,"extractCrsFromURN",(function(){return Ne})),n.d(t,"makeNumericEPSG",(function(){return Re})),n.d(t,"makeBboxFromOWS",(function(){return Ie}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/proj4.js"),a=n.n(i),c=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(c),l=n("./node_modules/object-assign/index.js"),s=n.n(l),f=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/@turf/line-intersect/index.js"),p=n.n(d),m=n("./node_modules/@turf/polygon-to-linestring/index.js"),y=n.n(m),b=n("./node_modules/@turf/great-circle/main.es.js"),g=n("./node_modules/turf-point/index.js"),h=n.n(g),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),x=n("./node_modules/@turf/boolean-overlap/main.es.js"),j=n("./node_modules/@turf/boolean-contains/main.es.js");function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return T(e,t)}));var n}var N=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function R(e,t,n){if(null===e)return e;var r=Object(f.cloneDeep)(e);return"Feature"===e.type?r.geometry=R(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return R(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return R(e,t,n)})):t&&t(r),n&&n(r),r}function I(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var L={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},F=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},k=function(e){var t=e;return Object(f.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(f.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},D=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=n&&a.a.defs(n)?new a.a.Proj(n):null;if(o&&i){var c=Object(f.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),u=s()({},t===n?k(c):a.a.transform(o,i,k(c)),{srs:n});return r?F(u):u}return null},U=["EPSG:900913","EPSG:4326","EPSG:3857"],z=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[D([e[0],e[1]],"EPSG:4326",t),D([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[])})):[D([e[0],e[1]],"EPSG:4326",t),D([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[])},B=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},V=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[D([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),D([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,i=t*r[1]/2,a=Math.cos(n),c=Math.sin(n),u=o*a,l=o*c,s=i*a,f=i*c,d=e.x,p=e.y,m=d-u+f,y=d-u-f,b=d+u-f,g=d+u+f,h=p-l-s,v=p-l+s,x=p+l+s,j=p+l-s,S=M.createBBox(Math.min(m,y,b,g),Math.min(h,v,x,j),Math.max(m,y,b,g),Math.max(h,v,x,j));return S},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=I(r)),"string"==typeof o&&(o=I(o));var i=_(r,o);return R(e,(function(e){e.crs&&delete e.crs,e.coordinates=T(e.coordinates,(function(e){var t=w(e,2),n=t[0],r=t[1];return i.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],R(e,(function(e){T(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},H=function(e,t){var n=y()(t).features[0];return 0!==p()(e,n).features.length},K=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(f.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in r)if(r.hasOwnProperty(a)){var c=M.reproject(r[a],t,n,o);if(!c)return null;var u=c.x,l=c.y;i.push(u),i.push(l)}return i},Y=function(e){var t=Object(f.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,i],[o,i],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?M.getCompatibleSRS(n,t):n},oe=function(e,t){return t[M.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:L[t]||t});return e},ae=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return s()({},-1===t.indexOf(r)?n:O(O({},n),{},P({},r,e[r])))}),{}),i=r.map((function(e){return e.code})),a=Object.keys(n).reduce((function(e,t){return s()({},-1===i.indexOf(t)?e:O(O({},e),{},P({},t,n[t])))}),{});return s()({},o,a)},ce=function(e,t,n){var r=M.reproject(e,n,"EPSG:4326"),o=M.reproject(t,n,"EPSG:4326"),i=r.x*Math.PI/180,a=r.y*Math.PI/180,c=o.x*Math.PI/180,u=o.y*Math.PI/180,l=c-i,s=Math.sin(l)*Math.cos(u),f=Math.cos(a)*Math.sin(u)-Math.sin(a)*Math.cos(u)*Math.cos(l);return(180*Math.atan2(s,f)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(A).indexOf(t)?A[t](e):0},le=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},se=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=M.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(f.chunk)(Object(f.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return M.getGeoJSONExtent(e.geometry)}return n},fe=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},de=function(e,t,n,r){var o,i,a,c=Math.PI*(1/n-.5);r&&(c+=r/180*Math.PI);for(var u=[[]],l=0;l1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(f.head)(e),Object(f.last)(e)]:e.length>t?[Object(f.head)(e)].concat(M.transformArcsToLine(Object(f.slice)(e,t))):[]},ye=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},be=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ge=function(e,t){if(Object(f.head)(U.filter((function(e){return e===t})))){var n=V(e,t),r=n.extent,o=n.isIDL,i=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var a=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:r,center:[a=a>180?a-360:a,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var c=[e.minx,e.miny,e.maxx,e.maxy],u=[c[0],c[1]],l=[c[2],c[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],l[1]],l,[l[0],u[1]],u]],extent:c,center:[(c[0]+c[2])/2,(c[1]+c[3])/2]}},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=M.getViewportGeometry(t,n),i=o.extent;if(4===i.length)return M.reprojectBbox(i,n,r);var a=i.map((function(e){return e[2]-e[0]})),c=w(a,2),u=c[0],l=c[1];return u>l?M.reprojectBbox(i[0],n,r):M.reprojectBbox(i[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||N(n),null,{timeout:2e3})},xe=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(f.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},je=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},Se=function(e,t){var n=t||"EPSG:3857",r=e&&Object(f.isArray)(e)&&Object(f.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&M.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(f.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},Oe=function(e){return!!a.a.defs(e)},Pe=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:M.normalizeLng(n)}},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=M.getNormalizedLatLon(e),i=D([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=M.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),c=O({left:0,right:0,top:0,bottom:0},n),u={minx:a[0]+c.left*r,miny:a[1]+c.bottom*r,maxx:a[2]-c.right*r,maxy:a[3]-c.top*r},l=M.getViewportGeometry(u,t.projection),s=4===l.extent.length?[E(l.extent)]:E(l.extent);return Object(f.head)(s.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=M.getNormalizedLatLon(e),i=D([o.lng,o.lat],"EPSG:4326",t.projection),a=O({left:0,right:0,top:0,bottom:0},n),c={width:(t.size.width-a.right-a.left)*r,height:(t.size.height-a.top-a.bottom)*r},u={minx:i.x-c.width/2-a.left*r,miny:i.y-c.height/2-a.bottom*r,maxx:i.x+c.width/2+a.right*r,maxy:i.y+c.height/2+a.top*r},l=M.getViewportGeometry(u,t.projection);if(4===l.extent.length)return{pos:D([l.extent[0]+t.size.width/2*r,l.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(l.extent[0][2]-l.extent[0][0])>Math.abs(l.extent[1][2]-l.extent[1][0])){var s=D([l.extent[0][2]-t.size.width/2*r,l.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),f=O(O({},s),{},{x:s.x+(o.lng>s.x?360:0)});return{pos:f,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:D([l.extent[1][0]+t.size.width/2*r,l.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(f.isArray)(n)?n:[n.x,n.y];if(Object(f.isNumber)(i[0])&&!isNaN(i[0])&&Object(f.isNumber)(i[1])&&!isNaN(i[1])&&Object(f.isNumber)(t.x)&&!isNaN(t.x)&&Object(f.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(f.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,c=a&&(Object(f.isArray)(a)?a:[a.x,a.y]);return Object(f.isArray)(c)?Math.sqrt((i[0]-c[0])*(i[0]-c[0])+(i[1]-c[1])*(i[1]-c[1])):o}return o},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[n]?Math[n](o):o},Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(f.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(f.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[i.x,i.y]:i},_e=function(e){return Object(f.isObject)(e)&&Object(f.isNumber)(e.x)&&Object(f.isNumber)(e.y)?[e.x,e.y]:e},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(B(t),h()([e.lng,e.lat]))},Te=function(e,t){return Object(x.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},Ne=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Re=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=$[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ie=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var i=n.slice(),a=r.slice();n=[a[0],i[1]],r=[i[0],a[1]]}return[n[0],n[1],r[0],r[1]]};M={setCrsLabels:J,getUnits:W,reproject:D,getProjectedBBox:X,createBBox:q,reprojectGeoJson:Z,lineIntersectPolygon:H,normalizePoint:F,normalizeLng:K,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:ce,calculateDistance:ue,FORMULAS:A,extendExtent:le,getGeoJSONExtent:se,isValidExtent:fe,calculateCircleCoordinates:de,transformLineToArcs:pe,transformArcsToLine:me,coordsOLtoLeaflet:ye,mergeToPolyGeom:be,getViewportGeometry:ge,getProjUrl:N,getExtentFromViewport:he,fetchProjRemotely:ve,parseURN:xe,determineCrs:I,parseString:je,getWMSBoundingBox:Se,isSRSAllowed:Oe,getNormalizedLatLon:Pe,isInsideVisibleArea:Ee,centerToVisibleArea:we,calculateCircleRadiusFromPixel:Ce,roundCoord:Ge,midpoint:Me,pointObjectToArray:_e,getExtentFromNormalized:V,getPolygonFromExtent:B,isPointInsideExtent:Ae,isBboxCompatible:Te,extractCrsFromURN:Ne,crsCodeTable:$,makeNumericEPSG:Re,makeBboxFromOWS:Ie},t.default=M},"./js/plugins/Share.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),c=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),l=n("./MapStore2/web/client/utils/PluginsUtils.js"),s=n("./MapStore2/web/client/actions/controls.js"),f=n("./MapStore2/web/client/components/I18N/Message.jsx"),d=n("./node_modules/react-bootstrap/es/index.js"),p=n("./MapStore2/web/client/reducers/controls.js"),m=n("./node_modules/react-copy-to-clipboard/lib/index.js"),y=n.n(m),b=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),h=Object(b.a)(y.a),v=function(e){var t=e.shareUrl,n=void 0===t?"":t,r=e.copied,i=void 0!==r&&r,a=e.onCopy,c=void 0===a?function(){}:a,u=e.onMouseLeave,l=void 0===u?function(){}:u;return o.a.createElement(h,{text:n,tooltipId:i?"share.msgCopiedUrl":"share.msgToCopyUrl",tooltipPosition:"bottom",key:i.toString(),onCopy:function(){return c(n)}},o.a.createElement(g.a,{bsStyle:"primary",onMouseLeave:function(){return l()}},o.a.createElement(d.Glyphicon,{glyph:"copy"})))},x=n("./node_modules/url/url.js"),j=n.n(x);function S(e){return(S="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 O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n';return o.a.createElement("div",{className:"input-link"},o.a.createElement("div",{className:"input-link-head"},o.a.createElement("h4",null,o.a.createElement(f.default,{msgId:"share.embeddedLinkTitle"})),o.a.createElement(v,{copied:this.state.copied,shareUrl:t,onCopy:function(){return e.setState({copied:!0})},onMouseLeave:function(){return e.setState({copied:!1})}})),o.a.createElement("div",{className:"input-link-tools"},this.renderTools()),o.a.createElement("pre",null,o.a.createElement("code",null,t)))}}])&&P(t.prototype,n),r&&P(t,r),a}(o.a.Component);_(A,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),_(A,"defaultProps",{showTOCToggle:!0,shareUrl:""});var T=A;function N(e){return(N="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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["text","onCopy","options","children"]),o=i.default.Children.only(t);return i.default.cloneElement(o,r({},n,{onClick:this.onClick}))}}]),t}(i.default.PureComponent)},"./node_modules/react-copy-to-clipboard/lib/index.js":function(e,t,n){"use strict";var r=n("./node_modules/react-copy-to-clipboard/lib/Component.js").CopyToClipboard;e.exports=r},"./node_modules/toggle-selection/index.js":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.d:var n=t.property||"enabled";return i()({},e,a({},t.control,i()({},e[t.control],a({},n,!(e[t.control]||{})[n]))));case r.c:return!0===t.toggle&&e[t.control]&&e[t.control][t.property]===t.value?i()({},e,a({},t.control,i()({},e[t.control],a({},t.property,void 0)))):i()({},e,a({},t.control,i()({},e[t.control],a({},t.property,t.value))));case r.b:return i()({},e,a({},t.control,i()({},e[t.control],t.properties)));case r.a:var o=Object.keys(e).filter((function(e){return-1===(t.skip||[]).indexOf(e)})),c=o.reduce((function(t,n){return i()(t,a({},n,i()({},e[n],!0===e[n].enabled?{enabled:!1}:{})))}),{});return i()({},e,c);default:return e}}},"./MapStore2/web/client/selectors/map.js":function(e,t,n){"use strict";n.d(t,"k",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"m",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"l",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"j",(function(){return h})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return S}));var r=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/node_modules/lodash/lodash.js"),a=function(e){return e.map&&e.map.present||e.map||e.config&&e.config.map||null},c=Object(o.a)([a],(function(e){return e&&e.projection})),u=function(e){return Object(i.get)(e,"mapInitialConfig.mapId")&&parseInt(Object(i.get)(e,"mapInitialConfig.mapId"),10)||function(e){return Object(i.get)(a(e),"mapId")&&parseInt(Object(i.get)(a(e),"mapId"),10)||null}(e)},l=function(e){return Object(i.get)(a(e),"info")},s=function(e){var t=Object(i.get)(l(e),"canEdit");return void 0===t?Object(i.get)(e,"context.resource.canEdit"):t},f=function(e){return e.localConfig&&e.localConfig.projectionDefs||[]},d=function(e){return e.localConfig&&e.localConfig.mapConstraints||{}},p=function(e){return d(e).restrictedExtent},m=function(e){return d(e).crs},y=function(e){var t=d(e),n=c(e);return n&&Object(i.get)(t,'projectionsConstraints["'.concat(n,'"].minZoom'))||Object(i.get)(t,"minZoom")},b=function(e){return Object(i.get)(function(e){return Object(i.get)(a(e),"limits")}(e),"minZoom")},g=Object(o.a)([function(e){return Object(i.get)(a(e),"resolutions")},c],(function(e,t){if(e&&t){var n=r.default.getUnits(t);return e.map((function(e){return e*(100/2.54*96)*("degrees"===n?111194.87428468118:1)}))}return[]})),h=function(e){return e.map&&e.map.present&&e.map.present.info&&e.map.present.info.name||""},v=function(e){return Object(i.get)(a(e),"eventListeners.mousemove",[])},x=function(e){return!!v(e).length},j=function(e){return v(e).includes("mouseposition")},S=function(e){return v(e).includes("identifyFloatingTool")}},"./MapStore2/web/client/utils/CoordinatesUtils.js":function(e,t,n){"use strict";n.r(t),n.d(t,"FORMULAS",(function(){return A})),n.d(t,"getProjUrl",(function(){return N})),n.d(t,"determineCrs",(function(){return I})),n.d(t,"normalizePoint",(function(){return F})),n.d(t,"reproject",(function(){return D})),n.d(t,"reprojectExtent",(function(){return z})),n.d(t,"getPolygonFromExtent",(function(){return B})),n.d(t,"getExtentFromNormalized",(function(){return V})),n.d(t,"crsCodeTable",(function(){return $})),n.d(t,"setCrsLabels",(function(){return J})),n.d(t,"getUnits",(function(){return W})),n.d(t,"getProjectedBBox",(function(){return X})),n.d(t,"createBBox",(function(){return q})),n.d(t,"reprojectGeoJson",(function(){return Z})),n.d(t,"lineIntersectPolygon",(function(){return H})),n.d(t,"normalizeLng",(function(){return K})),n.d(t,"reprojectBbox",(function(){return Q})),n.d(t,"bboxToFeatureGeometry",(function(){return Y})),n.d(t,"getCompatibleSRS",(function(){return ee})),n.d(t,"getEquivalentSRS",(function(){return te})),n.d(t,"getEPSGCode",(function(){return ne})),n.d(t,"normalizeSRS",(function(){return re})),n.d(t,"isAllowedSRS",(function(){return oe})),n.d(t,"getAvailableCRS",(function(){return ie})),n.d(t,"filterCRSList",(function(){return ae})),n.d(t,"calculateAzimuth",(function(){return ce})),n.d(t,"calculateDistance",(function(){return ue})),n.d(t,"extendExtent",(function(){return le})),n.d(t,"getGeoJSONExtent",(function(){return se})),n.d(t,"isValidExtent",(function(){return fe})),n.d(t,"calculateCircleCoordinates",(function(){return de})),n.d(t,"transformLineToArcs",(function(){return pe})),n.d(t,"transformArcsToLine",(function(){return me})),n.d(t,"coordsOLtoLeaflet",(function(){return ye})),n.d(t,"mergeToPolyGeom",(function(){return be})),n.d(t,"getViewportGeometry",(function(){return ge})),n.d(t,"getExtentFromViewport",(function(){return he})),n.d(t,"fetchProjRemotely",(function(){return ve})),n.d(t,"parseURN",(function(){return xe})),n.d(t,"parseString",(function(){return je})),n.d(t,"getWMSBoundingBox",(function(){return Se})),n.d(t,"isSRSAllowed",(function(){return Oe})),n.d(t,"getNormalizedLatLon",(function(){return Pe})),n.d(t,"isInsideVisibleArea",(function(){return Ee})),n.d(t,"centerToVisibleArea",(function(){return we})),n.d(t,"calculateCircleRadiusFromPixel",(function(){return Ce})),n.d(t,"roundCoord",(function(){return Ge})),n.d(t,"midpoint",(function(){return Me})),n.d(t,"pointObjectToArray",(function(){return _e})),n.d(t,"isPointInsideExtent",(function(){return Ae})),n.d(t,"isBboxCompatible",(function(){return Te})),n.d(t,"extractCrsFromURN",(function(){return Ne})),n.d(t,"makeNumericEPSG",(function(){return Re})),n.d(t,"makeBboxFromOWS",(function(){return Ie}));var r=n("./node_modules/node-geo-distance/index.js"),o=n.n(r),i=n("./MapStore2/web/client/libs/proj4.js"),a=n.n(i),c=n("./MapStore2/web/client/libs/ajax.js"),u=n.n(c),l=n("./node_modules/object-assign/index.js"),s=n.n(l),f=n("./MapStore2/node_modules/lodash/lodash.js"),d=n("./node_modules/@turf/line-intersect/index.js"),p=n.n(d),m=n("./node_modules/@turf/polygon-to-linestring/index.js"),y=n.n(m),b=n("./node_modules/@turf/great-circle/main.es.js"),g=n("./node_modules/turf-point/index.js"),h=n.n(g),v=n("./node_modules/@turf/bbox-polygon/main.es.js"),x=n("./node_modules/@turf/boolean-overlap/main.es.js"),j=n("./node_modules/@turf/boolean-contains/main.es.js");function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&"number"==typeof n[0]&&"number"==typeof n[1]?t(e):e.map((function(e){return T(e,t)}));var n}var N=function(e){return"http://spatialreference.org/ref/epsg/".concat(e,"/proj4/")};function R(e,t,n){if(null===e)return e;var r=Object(f.cloneDeep)(e);return"Feature"===e.type?r.geometry=R(e.geometry,t,n):"FeatureCollection"===e.type?r.features=r.features.map((function(e){return R(e,t,n)})):"GeometryCollection"===e.type?r.geometries=r.geometries.map((function(e){return R(e,t,n)})):t&&t(r),n&&n(r),r}function I(e){return"string"==typeof e||e instanceof String?a.a.defs(e)?new a.a.Proj(e):null:e}var L={"EPSG:4326":"WGS 84","EPSG:3857":"EPSG:3857"},F=function(e){return{x:e.x||0,y:e.y||0,srs:e.srs||e.crs||"EPSG:4326",crs:e.srs||e.crs||"EPSG:4326"}},k=function(e){var t=e;return Object(f.isNumber)(e.x)||(t.x=parseFloat(e.x)),Object(f.isNumber)(e.y)||(t.y=parseFloat(e.y)),t},D=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t&&a.a.defs(t)?new a.a.Proj(t):null,i=n&&a.a.defs(n)?new a.a.Proj(n):null;if(o&&i){var c=Object(f.isArray)(e)?a.a.toPoint(e):a.a.toPoint([e.x,e.y]),u=s()({},t===n?k(c):a.a.transform(o,i,k(c)),{srs:n});return r?F(u):u}return null},U=["EPSG:900913","EPSG:4326","EPSG:3857"],z=function(e,t,n){return"EPSG:4326"===t?e:n?e.map((function(e){return[D([e[0],e[1]],"EPSG:4326",t),D([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[])})):[D([e[0],e[1]],"EPSG:4326",t),D([e[2],e[3]],"EPSG:4326",t)].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[])},B=function(e){return e?e.hasOwnProperty("geometry")&&"Polygon"===e.geometry.type?e:Object(v.a)(e):null},V=function(e,t){var n=function(e,t){var n="EPSG:4326"!==t?[D([parseFloat(e.minx),parseFloat(e.miny)],t,"EPSG:4326"),D([parseFloat(e.maxx),parseFloat(e.maxy)],t,"EPSG:4326")].reduce((function(e,t){return[].concat(E(e),[t.x,t.y])}),[]):[parseFloat(e.minx),parseFloat(e.miny),parseFloat(e.maxx),parseFloat(e.maxy)],r=!1;return"EPSG:4326"===t?r=Math.abs(e.maxx-e.minx)>=360:"EPSG:900913"!==t&&"EPSG:3857"!==t||(r=Math.abs(e.maxx-e.minx)>=40075016.68557849),r?[0,n[1],360,n[3]]:[(n[0]+180)%360,n[1],(n[2]+180)%360,n[3]].map((function(e,t){return t%2==0&&e<0?360+e:e}))}(e,t),r=n[2]2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,o=t*r[0]/2,i=t*r[1]/2,a=Math.cos(n),c=Math.sin(n),u=o*a,l=o*c,s=i*a,f=i*c,d=e.x,p=e.y,m=d-u+f,y=d-u-f,b=d+u-f,g=d+u+f,h=p-l-s,v=p-l+s,x=p+l+s,j=p+l-s,S=M.createBBox(Math.min(m,y,b,g),Math.min(h,v,x,j),Math.max(m,y,b,g),Math.max(h,v,x,j));return S},q=function(e,t,n,r){return{minx:e,miny:t,maxx:n,maxy:r}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326",r=t,o=n;"string"==typeof r&&(r=I(r)),"string"==typeof o&&(o=I(o));var i=_(r,o);return R(e,(function(e){e.crs&&delete e.crs,e.coordinates=T(e.coordinates,(function(e){var t=w(e,2),n=t[0],r=t[1];return i.forward([n,r])}))}),(function(e){var t,n;e.bbox&&(e.bbox=(t=[Number.MAX_VALUE,Number.MAX_VALUE],n=[-Number.MAX_VALUE,-Number.MAX_VALUE],R(e,(function(e){T(e.coordinates,(function(e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),n[0]=Math.max(n[0],e[0]),n[1]=Math.max(n[1],e[1])}))})),[t[0],t[1],n[0],n[1]]))}))},H=function(e,t){var n=y()(t).features[0];return 0!==p()(e,n).features.length},K=function(e){var t=e/360%1*360;return t<-180?t+=360:t>180&&(t-=360),t},Q=function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=Object(f.isArray)(e)?{sw:[e[0],e[1]],ne:[e[2],e[3]]}:{sw:[e.minx,e.miny],ne:[e.maxx,e.maxy]};var i=[];for(var a in r)if(r.hasOwnProperty(a)){var c=M.reproject(r[a],t,n,o);if(!c)return null;var u=c.x,l=c.y;i.push(u),i.push(l)}return i},Y=function(e){var t=Object(f.isArray)(e)?{minx:e[0],miny:e[1],maxx:e[2],maxy:e[3]}:e,n=t.minx,r=t.miny,o=t.maxx,i=t.maxy;return{type:"Polygon",coordinates:[[[n,r],[n,i],[o,i],[o,r],[n,r]]]}},ee=function(e,t){return"EPSG:900913"===e&&!t["EPSG:900913"]&&t["EPSG:3857"]?"EPSG:3857":"EPSG:3857"===e&&!t["EPSG:3857"]&&t["EPSG:900913"]?"EPSG:900913":e},te=function(e){return"EPSG:900913"===e||"EPSG:3857"===e?["EPSG:3857","EPSG:900913"]:[e]},ne=function(e){return-1!==e.indexOf(":")?"EPSG:"+e.substring(e.lastIndexOf(":")+1):e},re=function(e,t){var n="EPSG:900913"===e?"EPSG:3857":e;return t&&!t[n]?M.getCompatibleSRS(n,t):n},oe=function(e,t){return t[M.getCompatibleSRS(e,t)]},ie=function(){var e={};for(var t in a.a.defs)a.a.defs.hasOwnProperty(t)&&(e[t]={label:L[t]||t});return e},ae=function(e,t,n,r){var o=Object.keys(e).reduce((function(n,r){return s()({},-1===t.indexOf(r)?n:O(O({},n),{},P({},r,e[r])))}),{}),i=r.map((function(e){return e.code})),a=Object.keys(n).reduce((function(e,t){return s()({},-1===i.indexOf(t)?e:O(O({},e),{},P({},t,n[t])))}),{});return s()({},o,a)},ce=function(e,t,n){var r=M.reproject(e,n,"EPSG:4326"),o=M.reproject(t,n,"EPSG:4326"),i=r.x*Math.PI/180,a=r.y*Math.PI/180,c=o.x*Math.PI/180,u=o.y*Math.PI/180,l=c-i,s=Math.sin(l)*Math.cos(u),f=Math.cos(a)*Math.sin(u)-Math.sin(a)*Math.cos(u)*Math.cos(l);return(180*Math.atan2(s,f)/Math.PI+360)%360},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"haversine";return e.length>=2&&-1!==Object.keys(A).indexOf(t)?A[t](e):0},le=function(e,t){var n=e.slice();return t[0]e[2]&&(n[2]=t[2]),t[1]e[3]&&(n[3]=t[3]),n},se=function(e){var t=this,n=[1/0,1/0,-1/0,-1/0],r=function(e,n){var r=M.getGeoJSONExtent(n);return t.isValidExtent(r)?t.extendExtent(r,e):r};if(e.coordinates){if("Point"===e.type){var o=e.coordinates;n[0]=o[0]-.01*o[0],n[1]=o[1]-.01*o[1],n[2]=o[0]+.01*o[0],n[3]=o[1]+.01*o[1]}return Object(f.chunk)(Object(f.flattenDeep)(e.coordinates),2).reduce((function(e,t){return[t[0]e[2]?t[0]:e[2],t[1]>e[3]?t[1]:e[3]]}),n)}if("GeometryCollection"===e.type)return e.geometries.reduce(r,n);if(e.type){if("FeatureCollection"===e.type)return e.features.reduce(r,n);if("Feature"===e.type&&e.geometry)return M.getGeoJSONExtent(e.geometry)}return n},fe=function(e){return!(-1!==e.indexOf(1/0)||-1!==e.indexOf(-1/0)||e[0]>e[2]||e[1]>e[3])},de=function(e,t,n,r){var o,i,a,c=Math.PI*(1/n-.5);r&&(c+=r/180*Math.PI);for(var u=[[]],l=0;l1&&void 0!==arguments[1]?arguments[1]:{npoints:100,offset:10,properties:{}},n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:100;return e.length<=t?[Object(f.head)(e),Object(f.last)(e)]:e.length>t?[Object(f.head)(e)].concat(M.transformArcsToLine(Object(f.slice)(e,t))):[]},ye=function(e){var t=e.coordinates;switch(e.type){case"Polygon":return t.map((function(e){return e.map((function(e){return e.reverse()}))}));case"LineString":return t.map((function(e){return e.reverse()}));case"Point":return t.reverse();default:return[]}},be=function(e){return 1===e.length?e[0].geometry:{type:"GeometryCollection",geometries:e.map((function(e){return e.geometry}))}},ge=function(e,t){if(Object(f.head)(U.filter((function(e){return e===t})))){var n=V(e,t),r=n.extent,o=n.isIDL,i=(o?r:[r]).map((function(e){var t=[e[0],e[1]],n=[e[2],e[3]];return[[t,[t[0],n[1]],n,[n[0],t[1]],t]]}));if(o){var a=r[1][0]+(Math.abs(r[0][0]-r[0][2])+Math.abs(r[1][0]-r[1][2]))/2;return{type:"MultiPolygon",radius:0,projection:t,coordinates:i,extent:r,center:[a=a>180?a-360:a,(r[0][1]+r[0][3])/2]}}return{type:"Polygon",radius:0,projection:t,coordinates:i[0],extent:r,center:[(r[0]+r[2])/2,(r[1]+r[3])/2]}}var c=[e.minx,e.miny,e.maxx,e.maxy],u=[c[0],c[1]],l=[c[2],c[3]];return{type:"Polygon",radius:0,projection:t,coordinates:[[u,[u[0],l[1]],l,[l[0],u[1]],u]],extent:c,center:[(c[0]+c[2])/2,(c[1]+c[3])/2]}},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bounds,n=e.crs,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326";if(!t||!n)return null;var o=M.getViewportGeometry(t,n),i=o.extent;if(4===i.length)return M.reprojectBbox(i,n,r);var a=i.map((function(e){return e[2]-e[0]})),c=w(a,2),u=c[0],l=c[1];return u>l?M.reprojectBbox(i[0],n,r):M.reprojectBbox(i[1],n,r)},ve=function(e,t){var n=2===e.split(":").length?e.split(":")[1]:"3857";return u.a.get(t||N(n),null,{timeout:2e3})},xe=function(e){var t=e&&e.properties&&e.properties.name||e&&e.name||e&&e.properties&&e.properties.code||e,n=t&&Object(f.last)(t.split(":"));return"WGS 1984"===n||"WGS84"===n?"EPSG:4326":n?"EPSG:"+n:null},je=function(e){var t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return!isNaN(n)&&!isNaN(r)&&{x:n,y:r}||null},Se=function(e,t){var n=t||"EPSG:3857",r=e&&Object(f.isArray)(e)&&Object(f.head)(e.filter((function(e){return e&&e.$&&e.$.SRS===n&&e.$.maxx&&e.$.maxy&&e.$.minx&&e.$.miny})).map((function(e){return e&&e.$&&M.reprojectBbox([parseFloat(e.$.minx),parseFloat(e.$.miny),parseFloat(e.$.maxx),parseFloat(e.$.maxy)],n,"EPSG:4326")})));return Object(f.isArray)(r)&&{minx:r[0],miny:r[1],maxx:r[2],maxy:r[3]}||null},Oe=function(e){return!!a.a.defs(e)},Pe=function(e){var t=e.lng,n=void 0===t?1:t,r=e.lat;return{lat:void 0===r?1:r,lng:M.normalizeLng(n)}},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=M.getNormalizedLatLon(e),i=D([o.lng,o.lat],"EPSG:4326",t.projection);if(!t.bbox)return!1;var a=M.reprojectBbox(t.bbox.bounds,t.bbox.crs,t.projection),c=O({left:0,right:0,top:0,bottom:0},n),u={minx:a[0]+c.left*r,miny:a[1]+c.bottom*r,maxx:a[2]-c.right*r,maxy:a[3]-c.top*r},l=M.getViewportGeometry(u,t.projection),s=4===l.extent.length?[E(l.extent)]:E(l.extent);return Object(f.head)(s.map((function(e){return i.x>=e[0]&&i.y>=e[1]&&i.x<=e[2]&&i.y<=e[3]})).filter((function(e){return e})))||!1},we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=M.getNormalizedLatLon(e),i=D([o.lng,o.lat],"EPSG:4326",t.projection),a=O({left:0,right:0,top:0,bottom:0},n),c={width:(t.size.width-a.right-a.left)*r,height:(t.size.height-a.top-a.bottom)*r},u={minx:i.x-c.width/2-a.left*r,miny:i.y-c.height/2-a.bottom*r,maxx:i.x+c.width/2+a.right*r,maxy:i.y+c.height/2+a.top*r},l=M.getViewportGeometry(u,t.projection);if(4===l.extent.length)return{pos:D([l.extent[0]+t.size.width/2*r,l.extent[1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"};if(Math.abs(l.extent[0][2]-l.extent[0][0])>Math.abs(l.extent[1][2]-l.extent[1][0])){var s=D([l.extent[0][2]-t.size.width/2*r,l.extent[0][3]-t.size.height/2*r],t.projection,"EPSG:4326"),f=O(O({},s),{},{x:s.x+(o.lng>s.x?360:0)});return{pos:f,zoom:t.zoom,crs:"EPSG:4326"}}return{pos:D([l.extent[1][0]+t.size.width/2*r,l.extent[1][1]+t.size.height/2*r],t.projection,"EPSG:4326"),zoom:t.zoom,crs:"EPSG:4326"}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.01,i=Object(f.isArray)(n)?n:[n.x,n.y];if(Object(f.isNumber)(i[0])&&!isNaN(i[0])&&Object(f.isNumber)(i[1])&&!isNaN(i[1])&&Object(f.isNumber)(t.x)&&!isNaN(t.x)&&Object(f.isNumber)(t.y)&&!isNaN(t.y)){var a=Object(f.isFunction)(e)?e([t.x,t.y>=r?t.y-r:t.y+r]):null,c=a&&(Object(f.isArray)(a)?a:[a.x,a.y]);return Object(f.isArray)(c)?Math.sqrt((i[0]-c[0])*(i[0]-c[0])+(i[1]-c[1])*(i[1]-c[1])):o}return o},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.roundingBehaviour,n=void 0===t?"round":t,r=e.value,o=void 0===r?0:r,i=e.maximumFractionDigits,a=void 0===i?0:i;return 0===a&&Math[n]?Math[n](o):o},Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(f.isArray)(e)?{x:e[0],y:e[1]}:e,o=Object(f.isArray)(t)?{x:t[0],y:t[1]}:t,i={x:.5*(r.x+o.x),y:.5*(r.y+o.y)};return n?[i.x,i.y]:i},_e=function(e){return Object(f.isObject)(e)&&Object(f.isNumber)(e.x)&&Object(f.isNumber)(e.y)?[e.x,e.y]:e},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{lat:1,lng:1},t=arguments.length>1?arguments[1]:void 0;return Object(j.a)(B(t),h()([e.lng,e.lat]))},Te=function(e,t){return Object(x.a)(e,t)||Object(j.a)(e,t)||Object(j.a)(t,e)},Ne=function(e){if(e){var t=e.split(":");if(!("urn"!==t[0]||"ogc"!==t[1]&&"x-ogc"!==t[1]||"def"!==t[2]||"crs"!==t[3]||!t[4]&&!t[6])){var n=t[4],r=t[6];return n?"".concat(n,":").concat(r):r}}return null},Re=function(e){if(!e||"EPSG:"!==e.slice(0,5))return null;var t=e.slice(5),n=parseInt(t,10);if(n>=1024&&n<=32767)return e;var r=t.replace(" ","").replace(":","").toLowerCase(),o=$[r];return o>=1024&&o<=32767?"EPSG:".concat(o):null},Ie=function(e,t){var n=[e[0],e[1]],r=[t[0],t[1]];if(n[1]>r[1]){var o=n;n=r,r=o}if(n[0]>r[0]){var i=n.slice(),a=r.slice();n=[a[0],i[1]],r=[i[0],a[1]]}return[n[0],n[1],r[0],r[1]]};M={setCrsLabels:J,getUnits:W,reproject:D,getProjectedBBox:X,createBBox:q,reprojectGeoJson:Z,lineIntersectPolygon:H,normalizePoint:F,normalizeLng:K,reprojectBbox:Q,getCompatibleSRS:ee,getEquivalentSRS:te,getEPSGCode:ne,normalizeSRS:re,isAllowedSRS:oe,getAvailableCRS:ie,filterCRSList:ae,calculateAzimuth:ce,calculateDistance:ue,FORMULAS:A,extendExtent:le,getGeoJSONExtent:se,isValidExtent:fe,calculateCircleCoordinates:de,transformLineToArcs:pe,transformArcsToLine:me,coordsOLtoLeaflet:ye,mergeToPolyGeom:be,getViewportGeometry:ge,getProjUrl:N,getExtentFromViewport:he,fetchProjRemotely:ve,parseURN:xe,determineCrs:I,parseString:je,getWMSBoundingBox:Se,isSRSAllowed:Oe,getNormalizedLatLon:Pe,isInsideVisibleArea:Ee,centerToVisibleArea:we,calculateCircleRadiusFromPixel:Ce,roundCoord:Ge,midpoint:Me,pointObjectToArray:_e,getExtentFromNormalized:V,getPolygonFromExtent:B,isPointInsideExtent:Ae,isBboxCompatible:Te,extractCrsFromURN:Ne,crsCodeTable:$,makeNumericEPSG:Re,makeBboxFromOWS:Ie},t.default=M},"./js/plugins/Share.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),c=n("./node_modules/react-redux/es/index.js"),u=n("./node_modules/reselect/es/index.js"),l=n("./MapStore2/web/client/utils/PluginsUtils.js"),s=n("./MapStore2/web/client/actions/controls.js"),f=n("./MapStore2/web/client/components/I18N/Message.jsx"),d=n("./node_modules/react-bootstrap/es/index.js"),p=n("./MapStore2/web/client/reducers/controls.js"),m=n("./node_modules/react-copy-to-clipboard/lib/index.js"),y=n.n(m),b=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx"),g=n("./MapStore2/web/client/components/misc/Button.jsx"),h=Object(b.a)(y.a),v=function(e){var t=e.shareUrl,n=void 0===t?"":t,r=e.copied,i=void 0!==r&&r,a=e.onCopy,c=void 0===a?function(){}:a,u=e.onMouseLeave,l=void 0===u?function(){}:u;return o.a.createElement(h,{text:n,tooltipId:i?"share.msgCopiedUrl":"share.msgToCopyUrl",tooltipPosition:"bottom",key:i.toString(),onCopy:function(){return c(n)}},o.a.createElement(g.a,{bsStyle:"primary",onMouseLeave:function(){return l()}},o.a.createElement(d.Glyphicon,{glyph:"copy"})))},x=n("./node_modules/url/url.js"),j=n.n(x);function S(e){return(S="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 O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n';return o.a.createElement("div",{className:"input-link"},o.a.createElement("div",{className:"input-link-head"},o.a.createElement("h4",null,o.a.createElement(f.default,{msgId:"share.embeddedLinkTitle"})),o.a.createElement(v,{copied:this.state.copied,shareUrl:t,onCopy:function(){return e.setState({copied:!0})},onMouseLeave:function(){return e.setState({copied:!1})}})),o.a.createElement("div",{className:"input-link-tools"},this.renderTools()),o.a.createElement("pre",null,o.a.createElement("code",null,t)))}}])&&P(t.prototype,n),r&&P(t,r),a}(o.a.Component);_(A,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),_(A,"defaultProps",{showTOCToggle:!0,shareUrl:""});var T=A;function N(e){return(N="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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["text","onCopy","options","children"]),o=i.default.Children.only(t);return i.default.cloneElement(o,r({},n,{onClick:this.onClick}))}}]),t}(i.default.PureComponent)},"./node_modules/react-copy-to-clipboard/lib/index.js":function(e,t,n){"use strict";var r=n("./node_modules/react-copy-to-clipboard/lib/Component.js").CopyToClipboard;e.exports=r},"./node_modules/toggle-selection/index.js":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r